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

Last change on this file since 3042 was 3042, checked in by stefan, 6 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 744.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartySoplex 1.2.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2010,2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartySoplex'
431PACKAGE_TARNAME='thirdpartysoplex'
432PACKAGE_VERSION='1.2.3'
433PACKAGE_STRING='ThirdPartySoplex 1.2.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="soplex/src/soplex.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SOPLEX_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE SOPLEX_WITH_GMP_CFLAG SOPLEX_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
981ac_env_PKG_CONFIG_value=$PKG_CONFIG
982ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
983ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartySoplex 1.2.3 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartySoplex 1.2.3:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-soplex compile project SoPlex with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --enable-static[=PKGS]
1088                          build static libraries [default=no]
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-maintainer-mode  enable make rules and dependencies not useful
1092                          (and sometimes confusing) to the casual installer
1093  --enable-shared[=PKGS]
1094                          build shared libraries [default=yes]
1095  --enable-fast-install[=PKGS]
1096                          optimize for fast installation [default=yes]
1097  --disable-libtool-lock  avoid locking (might break parallel builds)
1098  --disable-zlib          do not compile with compression library zlib
1099  --disable-gmp           do not compile with GNU multiple precision library
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1104  --with-soplex-verbosity specify the debug verbosity level for project SoPlex
1105  --with-soplex-checklevel
1106                          specify the sanity check level for project SoPlex
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1128  ADD_CXXFLAGS
1129              Additional C++ compiler options
1130  DBG_CXXFLAGS
1131              Debug C++ compiler options
1132  OPT_CXXFLAGS
1133              Optimize C++ compiler options
1134  CXX         C++ compiler command
1135  CXXFLAGS    C++ compiler flags
1136  MPICXX      C++ MPI Compiler
1137  PKG_CONFIG  path to pkg-config utility
1138  CPP         C preprocessor
1139  CXXCPP      C++ preprocessor
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142
1143Use these variables to override the choices made by `configure' or to help
1144it to find libraries and programs with nonstandard names/locations.
1145
1146Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1147_ACEOF
1148fi
1149
1150if test "$ac_init_help" = "recursive"; then
1151  # If there are subdirs, report their specific --help.
1152  ac_popdir=`pwd`
1153  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1154    test -d $ac_dir || continue
1155    ac_builddir=.
1156
1157if test "$ac_dir" != .; then
1158  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1159  # A "../" for each directory in $ac_dir_suffix.
1160  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161else
1162  ac_dir_suffix= ac_top_builddir=
1163fi
1164
1165case $srcdir in
1166  .)  # No --srcdir option.  We are building in place.
1167    ac_srcdir=.
1168    if test -z "$ac_top_builddir"; then
1169       ac_top_srcdir=.
1170    else
1171       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172    fi ;;
1173  [\\/]* | ?:[\\/]* )  # Absolute path.
1174    ac_srcdir=$srcdir$ac_dir_suffix;
1175    ac_top_srcdir=$srcdir ;;
1176  *) # Relative path.
1177    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1178    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1179esac
1180
1181# Do not use `cd foo && pwd` to compute absolute paths, because
1182# the directories may not exist.
1183case `pwd` in
1184.) ac_abs_builddir="$ac_dir";;
1185*)
1186  case "$ac_dir" in
1187  .) ac_abs_builddir=`pwd`;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1189  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_top_builddir=${ac_top_builddir}.;;
1194*)
1195  case ${ac_top_builddir}. in
1196  .) ac_abs_top_builddir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1198  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_srcdir=$ac_srcdir;;
1203*)
1204  case $ac_srcdir in
1205  .) ac_abs_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1207  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_srcdir=$ac_top_srcdir;;
1212*)
1213  case $ac_top_srcdir in
1214  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1216  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1217  esac;;
1218esac
1219
1220    cd $ac_dir
1221    # Check for guested configure; otherwise get Cygnus style configure.
1222    if test -f $ac_srcdir/configure.gnu; then
1223      echo
1224      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1225    elif test -f $ac_srcdir/configure; then
1226      echo
1227      $SHELL $ac_srcdir/configure  --help=recursive
1228    elif test -f $ac_srcdir/configure.ac ||
1229           test -f $ac_srcdir/configure.in; then
1230      echo
1231      $ac_configure --help
1232    else
1233      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1234    fi
1235    cd $ac_popdir
1236  done
1237fi
1238
1239test -n "$ac_init_help" && exit 0
1240if $ac_init_version; then
1241  cat <<\_ACEOF
1242ThirdPartySoplex configure 1.2.3
1243generated by GNU Autoconf 2.59
1244
1245Copyright (C) 2003 Free Software Foundation, Inc.
1246This configure script is free software; the Free Software Foundation
1247gives unlimited permission to copy, distribute and modify it.
1248
1249
1250Copyright 2010,2011 Stefan Vigerske and others.
1251All Rights Reserved.
1252This file is part of the open source package COIN-OR which is distributed
1253under the Eclipse Public License.
1254_ACEOF
1255  exit 0
1256fi
1257exec 5>config.log
1258cat >&5 <<_ACEOF
1259This file contains any messages produced by compilers while
1260running configure, to aid debugging if configure makes a mistake.
1261
1262It was created by ThirdPartySoplex $as_me 1.2.3, which was
1263generated by GNU Autoconf 2.59.  Invocation command line was
1264
1265  $ $0 $@
1266
1267_ACEOF
1268{
1269cat <<_ASUNAME
1270## --------- ##
1271## Platform. ##
1272## --------- ##
1273
1274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1275uname -m = `(uname -m) 2>/dev/null || echo unknown`
1276uname -r = `(uname -r) 2>/dev/null || echo unknown`
1277uname -s = `(uname -s) 2>/dev/null || echo unknown`
1278uname -v = `(uname -v) 2>/dev/null || echo unknown`
1279
1280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1282
1283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1286hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1290
1291_ASUNAME
1292
1293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294for as_dir in $PATH
1295do
1296  IFS=$as_save_IFS
1297  test -z "$as_dir" && as_dir=.
1298  echo "PATH: $as_dir"
1299done
1300
1301} >&5
1302
1303cat >&5 <<_ACEOF
1304
1305
1306## ----------- ##
1307## Core tests. ##
1308## ----------- ##
1309
1310_ACEOF
1311
1312
1313# Keep a trace of the command line.
1314# Strip out --no-create and --no-recursion so they do not pile up.
1315# Strip out --silent because we don't want to record it for future runs.
1316# Also quote any args containing shell meta-characters.
1317# Make two passes to allow for proper duplicate-argument suppression.
1318ac_configure_args=
1319ac_configure_args0=
1320ac_configure_args1=
1321ac_sep=
1322ac_must_keep_next=false
1323for ac_pass in 1 2
1324do
1325  for ac_arg
1326  do
1327    case $ac_arg in
1328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330    | -silent | --silent | --silen | --sile | --sil)
1331      continue ;;
1332    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1333      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1334    esac
1335    case $ac_pass in
1336    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1337    2)
1338      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1339      if test $ac_must_keep_next = true; then
1340        ac_must_keep_next=false # Got value, back to normal.
1341      else
1342        case $ac_arg in
1343          *=* | --config-cache | -C | -disable-* | --disable-* \
1344          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1345          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1346          | -with-* | --with-* | -without-* | --without-* | --x)
1347            case "$ac_configure_args0 " in
1348              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1349            esac
1350            ;;
1351          -* ) ac_must_keep_next=true ;;
1352        esac
1353      fi
1354      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1355      # Get rid of the leading space.
1356      ac_sep=" "
1357      ;;
1358    esac
1359  done
1360done
1361$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1362$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1363
1364# When interrupted or exit'd, cleanup temporary files, and complete
1365# config.log.  We remove comments because anyway the quotes in there
1366# would cause problems or look ugly.
1367# WARNING: Be sure not to use single quotes in there, as some shells,
1368# such as our DU 5.0 friend, will then `close' the trap.
1369trap 'exit_status=$?
1370  # Save into config.log some information that might help in debugging.
1371  {
1372    echo
1373
1374    cat <<\_ASBOX
1375## ---------------- ##
1376## Cache variables. ##
1377## ---------------- ##
1378_ASBOX
1379    echo
1380    # The following way of writing the cache mishandles newlines in values,
1381{
1382  (set) 2>&1 |
1383    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1384    *ac_space=\ *)
1385      sed -n \
1386        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1387          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1388      ;;
1389    *)
1390      sed -n \
1391        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1392      ;;
1393    esac;
1394}
1395    echo
1396
1397    cat <<\_ASBOX
1398## ----------------- ##
1399## Output variables. ##
1400## ----------------- ##
1401_ASBOX
1402    echo
1403    for ac_var in $ac_subst_vars
1404    do
1405      eval ac_val=$`echo $ac_var`
1406      echo "$ac_var='"'"'$ac_val'"'"'"
1407    done | sort
1408    echo
1409
1410    if test -n "$ac_subst_files"; then
1411      cat <<\_ASBOX
1412## ------------- ##
1413## Output files. ##
1414## ------------- ##
1415_ASBOX
1416      echo
1417      for ac_var in $ac_subst_files
1418      do
1419        eval ac_val=$`echo $ac_var`
1420        echo "$ac_var='"'"'$ac_val'"'"'"
1421      done | sort
1422      echo
1423    fi
1424
1425    if test -s confdefs.h; then
1426      cat <<\_ASBOX
1427## ----------- ##
1428## confdefs.h. ##
1429## ----------- ##
1430_ASBOX
1431      echo
1432      sed "/^$/d" confdefs.h | sort
1433      echo
1434    fi
1435    test "$ac_signal" != 0 &&
1436      echo "$as_me: caught signal $ac_signal"
1437    echo "$as_me: exit $exit_status"
1438  } >&5
1439  rm -f core *.core &&
1440  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1441    exit $exit_status
1442     ' 0
1443for ac_signal in 1 2 13 15; do
1444  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1445done
1446ac_signal=0
1447
1448# confdefs.h avoids OS command line length limits that DEFS can exceed.
1449rm -rf conftest* confdefs.h
1450# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1451echo >confdefs.h
1452
1453# Predefined preprocessor variables.
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_NAME "$PACKAGE_NAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_VERSION "$PACKAGE_VERSION"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_STRING "$PACKAGE_STRING"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1477_ACEOF
1478
1479
1480# Let the site file select an alternate cache file if it wants to.
1481# Prefer explicitly selected file to automatically selected ones.
1482if test -z "$CONFIG_SITE"; then
1483  if test "x$prefix" != xNONE; then
1484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1485  else
1486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1487  fi
1488fi
1489for ac_site_file in $CONFIG_SITE; do
1490  if test -r "$ac_site_file"; then
1491    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1492echo "$as_me: loading site script $ac_site_file" >&6;}
1493    sed 's/^/| /' "$ac_site_file" >&5
1494    . "$ac_site_file"
1495  fi
1496done
1497
1498if test -r "$cache_file"; then
1499  # Some versions of bash will fail to source /dev/null (special
1500  # files actually), so we avoid doing that.
1501  if test -f "$cache_file"; then
1502    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1503echo "$as_me: loading cache $cache_file" >&6;}
1504    case $cache_file in
1505      [\\/]* | ?:[\\/]* ) . $cache_file;;
1506      *)                      . ./$cache_file;;
1507    esac
1508  fi
1509else
1510  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1511echo "$as_me: creating cache $cache_file" >&6;}
1512  >$cache_file
1513fi
1514
1515# Check that the precious variables saved in the cache have kept the same
1516# value.
1517ac_cache_corrupted=false
1518for ac_var in `(set) 2>&1 |
1519               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1520  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1521  eval ac_new_set=\$ac_env_${ac_var}_set
1522  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1523  eval ac_new_val="\$ac_env_${ac_var}_value"
1524  case $ac_old_set,$ac_new_set in
1525    set,)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,set)
1530      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1531echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1532      ac_cache_corrupted=: ;;
1533    ,);;
1534    *)
1535      if test "x$ac_old_val" != "x$ac_new_val"; then
1536        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1537echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1538        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1539echo "$as_me:   former value:  $ac_old_val" >&2;}
1540        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1541echo "$as_me:   current value: $ac_new_val" >&2;}
1542        ac_cache_corrupted=:
1543      fi;;
1544  esac
1545  # Pass precious variables to config.status.
1546  if test "$ac_new_set" = set; then
1547    case $ac_new_val in
1548    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1550    *) ac_arg=$ac_var=$ac_new_val ;;
1551    esac
1552    case " $ac_configure_args " in
1553      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1554      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1555    esac
1556  fi
1557done
1558if $ac_cache_corrupted; then
1559  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1560echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1561  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1562echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1563   { (exit 1); exit 1; }; }
1564fi
1565
1566ac_ext=c
1567ac_cpp='$CPP $CPPFLAGS'
1568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601# List one file in the package so that the configure script can test
1602# whether the package is actually there
1603
1604
1605# Where should everything be installed by default?  Here, we want it
1606# to be installed directly in 'bin', 'lib', 'include' subdirectories
1607# of the directory where configure is run.  The default would be
1608# /usr/local.
1609
1610
1611
1612# As backup, we make sure we don't loose an FLIBS if it has been set
1613# by the user
1614save_FLIBS="$FLIBS"
1615
1616# A useful makefile conditional that is always false
1617
1618
1619if false; then
1620  ALWAYS_FALSE_TRUE=
1621  ALWAYS_FALSE_FALSE='#'
1622else
1623  ALWAYS_FALSE_TRUE='#'
1624  ALWAYS_FALSE_FALSE=
1625fi
1626
1627
1628# We set the following variable so that we know later in AC_COIN_FINALIZE
1629# that we are in a project main directory
1630coin_projectdir=yes
1631
1632# Set the project's version numbers
1633
1634
1635cat >>confdefs.h <<_ACEOF
1636#define SOPLEX_VERSION "$PACKAGE_VERSION"
1637_ACEOF
1638
1639
1640  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1641  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1642  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1643  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1644  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1645  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1646
1647cat >>confdefs.h <<_ACEOF
1648#define SOPLEX_VERSION_MAJOR $coin_majorver
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define SOPLEX_VERSION_MINOR $coin_minorver
1654_ACEOF
1655
1656
1657cat >>confdefs.h <<_ACEOF
1658#define SOPLEX_VERSION_RELEASE $coin_releasever
1659_ACEOF
1660
1661
1662  # We use the following variable to have a string with the upper case
1663  # version of the project name
1664  COIN_PRJCT=SOPLEX
1665
1666  # Set the project's SVN revision number. The complicated sed expression
1667  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1668  # as a single number.
1669  # Extract the first word of "svnversion", so it can be a program name with args.
1670set dummy svnversion; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_have_svnversion+set}" = set; then
1674  echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676  if test -n "$have_svnversion"; then
1677  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682  IFS=$as_save_IFS
1683  test -z "$as_dir" && as_dir=.
1684  for ac_exec_ext in '' $ac_executable_extensions; do
1685  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686    ac_cv_prog_have_svnversion="yes"
1687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688    break 2
1689  fi
1690done
1691done
1692
1693  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1694fi
1695fi
1696have_svnversion=$ac_cv_prog_have_svnversion
1697if test -n "$have_svnversion"; then
1698  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1699echo "${ECHO_T}$have_svnversion" >&6
1700else
1701  echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705  if test "x$have_svnversion" = xyes; then
1706
1707    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1708    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1709      SOPLEX_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1710
1711cat >>confdefs.h <<_ACEOF
1712#define SOPLEX_SVN_REV $SOPLEX_SVN_REV
1713_ACEOF
1714
1715    fi
1716  fi
1717
1718
1719
1720# Capture libtool library version, if given.
1721 coin_libversion=3:3:2
1722
1723
1724
1725
1726#############################################################################
1727#                         Standard build tool stuff                         #
1728#############################################################################
1729
1730# Get the system type
1731ac_aux_dir=
1732for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1733  if test -f $ac_dir/install-sh; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/install-sh -c"
1736    break
1737  elif test -f $ac_dir/install.sh; then
1738    ac_aux_dir=$ac_dir
1739    ac_install_sh="$ac_aux_dir/install.sh -c"
1740    break
1741  elif test -f $ac_dir/shtool; then
1742    ac_aux_dir=$ac_dir
1743    ac_install_sh="$ac_aux_dir/shtool install -c"
1744    break
1745  fi
1746done
1747if test -z "$ac_aux_dir"; then
1748  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1749echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1750   { (exit 1); exit 1; }; }
1751fi
1752ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1753ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1754ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1755
1756# Make sure we can run config.sub.
1757$ac_config_sub sun4 >/dev/null 2>&1 ||
1758  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1759echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1760   { (exit 1); exit 1; }; }
1761
1762echo "$as_me:$LINENO: checking build system type" >&5
1763echo $ECHO_N "checking build system type... $ECHO_C" >&6
1764if test "${ac_cv_build+set}" = set; then
1765  echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767  ac_cv_build_alias=$build_alias
1768test -z "$ac_cv_build_alias" &&
1769  ac_cv_build_alias=`$ac_config_guess`
1770test -z "$ac_cv_build_alias" &&
1771  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1772echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1773   { (exit 1); exit 1; }; }
1774ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1775  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1776echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1777   { (exit 1); exit 1; }; }
1778
1779fi
1780echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1781echo "${ECHO_T}$ac_cv_build" >&6
1782build=$ac_cv_build
1783build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786
1787
1788
1789# Check if user wants to produce debugging code
1790
1791echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1792echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1793
1794# Check whether --enable-debug or --disable-debug was given.
1795if test "${enable_debug+set}" = set; then
1796  enableval="$enable_debug"
1797  case "${enableval}" in
1798   yes) coin_debug_compile=true
1799        if test "${enable_shared+set}" = set; then :; else
1800          enable_shared=no
1801        fi
1802        ;;
1803   no)  coin_debug_compile=false
1804        ;;
1805   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1806echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1807   { (exit 1); exit 1; }; }
1808        ;;
1809esac
1810else
1811  coin_debug_compile=false
1812fi;
1813
1814# Check whether --enable-debug-soplex or --disable-debug-soplex was given.
1815if test "${enable_debug_soplex+set}" = set; then
1816  enableval="$enable_debug_soplex"
1817  case "${enableval}" in
1818    yes) coin_debug_compile=true
1819         ;;
1820    no)  coin_debug_compile=false
1821         ;;
1822    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-soplex" >&5
1823echo "$as_me: error: bad value ${enableval} for --enable-debug-soplex" >&2;}
1824   { (exit 1); exit 1; }; }
1825         ;;
1826 esac
1827else
1828  :
1829fi;
1830
1831 # m4_ifvaln([SoPlex],
1832
1833if test $coin_debug_compile = true; then
1834  echo "$as_me:$LINENO: result: yes" >&5
1835echo "${ECHO_T}yes" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841
1842# Check whether --with-soplex-verbosity or --without-soplex-verbosity was given.
1843if test "${with_soplex_verbosity+set}" = set; then
1844  withval="$with_soplex_verbosity"
1845  if test "$withval" = yes; then
1846                withval=1
1847              fi
1848              coin_soplex_verbosity=$withval
1849else
1850  coin_soplex_verbosity=0
1851fi;
1852
1853cat >>confdefs.h <<_ACEOF
1854#define COIN_SOPLEX_VERBOSITY $coin_soplex_verbosity
1855_ACEOF
1856
1857
1858
1859# Check whether --with-soplex-checklevel or --without-soplex-checklevel was given.
1860if test "${with_soplex_checklevel+set}" = set; then
1861  withval="$with_soplex_checklevel"
1862  if test "$withval" = yes; then
1863                withval=1
1864              fi
1865              coin_soplex_checklevel=$withval
1866else
1867  coin_soplex_checklevel=0
1868fi;
1869
1870cat >>confdefs.h <<_ACEOF
1871#define COIN_SOPLEX_CHECKLEVEL $coin_soplex_checklevel
1872_ACEOF
1873
1874
1875 # m4_ifvaln([SoPlex],
1876
1877
1878
1879# Get the name of the C compiler and appropriate compiler options
1880
1881
1882  # for backward compatibility
1883  # Check whether --enable-doscompile or --disable-doscompile was given.
1884if test "${enable_doscompile+set}" = set; then
1885  enableval="$enable_doscompile"
1886  enable_doscompile=$enableval
1887else
1888  enable_doscompile=no
1889fi;
1890
1891  # Check whether --enable-msvc or --disable-msvc was given.
1892if test "${enable_msvc+set}" = set; then
1893  enableval="$enable_msvc"
1894  enable_msvc=$enableval
1895else
1896  enable_msvc=no
1897     if test "$enable_doscompile" = msvc ; then
1898       enable_msvc=yes
1899     elif test "$enable_doscompile" != no ; then
1900       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1901echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1902   { (exit 1); exit 1; }; }
1903     fi
1904
1905fi;
1906
1907  if test "$enable_msvc" = MD; then
1908    enable_shared=yes
1909    enable_msvc=yes
1910  fi
1911
1912  if test "$enable_msvc" = yes; then
1913    case $build in
1914      *-cygwin* | *-mingw*) ;;
1915      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1916echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1917   { (exit 1); exit 1; }; } ;;
1918    esac
1919  fi
1920
1921
1922 case $build in
1923  *-mingw*)
1924    if test "${LD+set}" = set; then :; else
1925      LD=link
1926    fi
1927    ;;
1928 esac
1929 if test $enable_msvc = yes ; then
1930   if test "x${LD+set}" = xset; then :; else
1931     LD=link
1932   fi
1933 fi
1934
1935
1936
1937
1938ac_ext=c
1939ac_cpp='$CPP $CPPFLAGS'
1940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1942ac_compiler_gnu=$ac_cv_c_compiler_gnu
1943
1944
1945# For consistency, we set the C compiler to the same value of the C++
1946# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1947if test x"$CXX" != x; then
1948  case "$CXX" in
1949    clang* ) ;;
1950    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1951      if test x"$CC" = x; then
1952        CC="$CXX"
1953        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1954echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1955      fi
1956      ;;
1957  esac
1958fi
1959
1960
1961
1962
1963
1964
1965coin_has_cc=yes
1966
1967save_cflags="$CFLAGS"
1968
1969# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1970# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1971# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1972# compiler. In this case, put cc after gcc.
1973
1974case $build in
1975  *-cygwin* | *-mingw*)
1976             if test "$enable_msvc" = yes ; then
1977               comps="icl cl gcc"
1978             else
1979               comps="gcc icl cl"
1980             fi ;;
1981  *-*-solaris*)
1982             # Extract the first word of "cc", so it can be a program name with args.
1983set dummy cc; ac_word=$2
1984echo "$as_me:$LINENO: checking for $ac_word" >&5
1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1987  echo $ECHO_N "(cached) $ECHO_C" >&6
1988else
1989  if test -n "$sol_cc_compiler"; then
1990  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1991else
1992  ac_prog_rejected=no
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2001       ac_prog_rejected=yes
2002       continue
2003     fi
2004    ac_cv_prog_sol_cc_compiler="cc"
2005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006    break 2
2007  fi
2008done
2009done
2010
2011if test $ac_prog_rejected = yes; then
2012  # We found a bogon in the path, so make sure we never use it.
2013  set dummy $ac_cv_prog_sol_cc_compiler
2014  shift
2015  if test $# != 0; then
2016    # We chose a different compiler from the bogus one.
2017    # However, it has the same basename, so the bogon will be chosen
2018    # first if we set sol_cc_compiler to just the basename; use the full file name.
2019    shift
2020    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2021  fi
2022fi
2023fi
2024fi
2025sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2026if test -n "$sol_cc_compiler"; then
2027  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2028echo "${ECHO_T}$sol_cc_compiler" >&6
2029else
2030  echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034             if test "$sol_cc_compiler" = "cc" ; then
2035               comps="cc xlc gcc pgcc icc"
2036             else
2037               comps="xlc gcc pgcc icc cc"
2038             fi
2039             ;;
2040  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2041  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2042  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2043esac
2044
2045# We delete the cached value, since the test might not have been
2046# performed with our choice of compilers earlier
2047$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2048# AC_MSG_NOTICE([C compiler candidates: $comps])
2049ac_ext=c
2050ac_cpp='$CPP $CPPFLAGS'
2051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054if test -n "$ac_tool_prefix"; then
2055  for ac_prog in $comps
2056  do
2057    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2058set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2059echo "$as_me:$LINENO: checking for $ac_word" >&5
2060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061if test "${ac_cv_prog_CC+set}" = set; then
2062  echo $ECHO_N "(cached) $ECHO_C" >&6
2063else
2064  if test -n "$CC"; then
2065  ac_cv_prog_CC="$CC" # Let the user override the test.
2066else
2067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068for as_dir in $PATH
2069do
2070  IFS=$as_save_IFS
2071  test -z "$as_dir" && as_dir=.
2072  for ac_exec_ext in '' $ac_executable_extensions; do
2073  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076    break 2
2077  fi
2078done
2079done
2080
2081fi
2082fi
2083CC=$ac_cv_prog_CC
2084if test -n "$CC"; then
2085  echo "$as_me:$LINENO: result: $CC" >&5
2086echo "${ECHO_T}$CC" >&6
2087else
2088  echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092    test -n "$CC" && break
2093  done
2094fi
2095if test -z "$CC"; then
2096  ac_ct_CC=$CC
2097  for ac_prog in $comps
2098do
2099  # Extract the first word of "$ac_prog", so it can be a program name with args.
2100set dummy $ac_prog; ac_word=$2
2101echo "$as_me:$LINENO: checking for $ac_word" >&5
2102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104  echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
2106  if test -n "$ac_ct_CC"; then
2107  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2108else
2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110for as_dir in $PATH
2111do
2112  IFS=$as_save_IFS
2113  test -z "$as_dir" && as_dir=.
2114  for ac_exec_ext in '' $ac_executable_extensions; do
2115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116    ac_cv_prog_ac_ct_CC="$ac_prog"
2117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118    break 2
2119  fi
2120done
2121done
2122
2123fi
2124fi
2125ac_ct_CC=$ac_cv_prog_ac_ct_CC
2126if test -n "$ac_ct_CC"; then
2127  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128echo "${ECHO_T}$ac_ct_CC" >&6
2129else
2130  echo "$as_me:$LINENO: result: no" >&5
2131echo "${ECHO_T}no" >&6
2132fi
2133
2134  test -n "$ac_ct_CC" && break
2135done
2136
2137  CC=$ac_ct_CC
2138fi
2139
2140
2141test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: no acceptable C compiler found in \$PATH
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146
2147# Provide some information about the compiler.
2148echo "$as_me:$LINENO:" \
2149     "checking for C compiler version" >&5
2150ac_compiler=`set X $ac_compile; echo $2`
2151{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2152  (eval $ac_compiler --version </dev/null >&5) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }
2156{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2157  (eval $ac_compiler -v </dev/null >&5) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }
2161{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2162  (eval $ac_compiler -V </dev/null >&5) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }
2166
2167cat >conftest.$ac_ext <<_ACEOF
2168/* confdefs.h.  */
2169_ACEOF
2170cat confdefs.h >>conftest.$ac_ext
2171cat >>conftest.$ac_ext <<_ACEOF
2172/* end confdefs.h.  */
2173
2174int
2175main ()
2176{
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182ac_clean_files_save=$ac_clean_files
2183ac_clean_files="$ac_clean_files a.out a.exe b.out"
2184# Try to create an executable without -o first, disregard a.out.
2185# It will help us diagnose broken compilers, and finding out an intuition
2186# of exeext.
2187echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2188echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2189ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2190if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2191  (eval $ac_link_default) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; then
2195  # Find the output, starting from the most likely.  This scheme is
2196# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2197# resort.
2198
2199# Be careful to initialize this variable, since it used to be cached.
2200# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2201ac_cv_exeext=
2202# b.out is created by i960 compilers.
2203for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2204do
2205  test -f "$ac_file" || continue
2206  case $ac_file in
2207    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2208        ;;
2209    conftest.$ac_ext )
2210        # This is the source file.
2211        ;;
2212    [ab].out )
2213        # We found the default executable, but exeext='' is most
2214        # certainly right.
2215        break;;
2216    *.* )
2217        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218        # FIXME: I believe we export ac_cv_exeext for Libtool,
2219        # but it would be cool to find out if it's true.  Does anybody
2220        # maintain Libtool? --akim.
2221        export ac_cv_exeext
2222        break;;
2223    * )
2224        break;;
2225  esac
2226done
2227else
2228  echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: C compiler cannot create executables
2234See \`config.log' for more details." >&2;}
2235   { (exit 77); exit 77; }; }
2236fi
2237
2238ac_exeext=$ac_cv_exeext
2239echo "$as_me:$LINENO: result: $ac_file" >&5
2240echo "${ECHO_T}$ac_file" >&6
2241
2242# Check the compiler produces executables we can run.  If not, either
2243# the compiler is broken, or we cross compile.
2244echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2245echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2246# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2247# If not cross compiling, check that we can run a simple program.
2248if test "$cross_compiling" != yes; then
2249  if { ac_try='./$ac_file'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; }; then
2255    cross_compiling=no
2256  else
2257    if test "$cross_compiling" = maybe; then
2258        cross_compiling=yes
2259    else
2260        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2261If you meant to cross compile, use \`--host'.
2262See \`config.log' for more details." >&5
2263echo "$as_me: error: cannot run C compiled programs.
2264If you meant to cross compile, use \`--host'.
2265See \`config.log' for more details." >&2;}
2266   { (exit 1); exit 1; }; }
2267    fi
2268  fi
2269fi
2270echo "$as_me:$LINENO: result: yes" >&5
2271echo "${ECHO_T}yes" >&6
2272
2273rm -f a.out a.exe conftest$ac_cv_exeext b.out
2274ac_clean_files=$ac_clean_files_save
2275# Check the compiler produces executables we can run.  If not, either
2276# the compiler is broken, or we cross compile.
2277echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2278echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2279echo "$as_me:$LINENO: result: $cross_compiling" >&5
2280echo "${ECHO_T}$cross_compiling" >&6
2281
2282echo "$as_me:$LINENO: checking for suffix of executables" >&5
2283echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2285  (eval $ac_link) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; then
2289  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2290# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2291# work properly (i.e., refer to `conftest.exe'), while it won't with
2292# `rm'.
2293for ac_file in conftest.exe conftest conftest.*; do
2294  test -f "$ac_file" || continue
2295  case $ac_file in
2296    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2297    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298          export ac_cv_exeext
2299          break;;
2300    * ) break;;
2301  esac
2302done
2303else
2304  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&5
2306echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&2;}
2308   { (exit 1); exit 1; }; }
2309fi
2310
2311rm -f conftest$ac_cv_exeext
2312echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2313echo "${ECHO_T}$ac_cv_exeext" >&6
2314
2315rm -f conftest.$ac_ext
2316EXEEXT=$ac_cv_exeext
2317ac_exeext=$EXEEXT
2318echo "$as_me:$LINENO: checking for suffix of object files" >&5
2319echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2320if test "${ac_cv_objext+set}" = set; then
2321  echo $ECHO_N "(cached) $ECHO_C" >&6
2322else
2323  cat >conftest.$ac_ext <<_ACEOF
2324/* confdefs.h.  */
2325_ACEOF
2326cat confdefs.h >>conftest.$ac_ext
2327cat >>conftest.$ac_ext <<_ACEOF
2328/* end confdefs.h.  */
2329
2330int
2331main ()
2332{
2333
2334  ;
2335  return 0;
2336}
2337_ACEOF
2338rm -f conftest.o conftest.obj
2339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2340  (eval $ac_compile) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; then
2344  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2345  case $ac_file in
2346    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2347    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2348       break;;
2349  esac
2350done
2351else
2352  echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&5
2357echo "$as_me: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&2;}
2359   { (exit 1); exit 1; }; }
2360fi
2361
2362rm -f conftest.$ac_cv_objext conftest.$ac_ext
2363fi
2364echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2365echo "${ECHO_T}$ac_cv_objext" >&6
2366OBJEXT=$ac_cv_objext
2367ac_objext=$OBJEXT
2368echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2369echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2370if test "${ac_cv_c_compiler_gnu+set}" = set; then
2371  echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373  cat >conftest.$ac_ext <<_ACEOF
2374/* confdefs.h.  */
2375_ACEOF
2376cat confdefs.h >>conftest.$ac_ext
2377cat >>conftest.$ac_ext <<_ACEOF
2378/* end confdefs.h.  */
2379
2380int
2381main ()
2382{
2383#ifndef __GNUC__
2384       choke me
2385#endif
2386
2387  ;
2388  return 0;
2389}
2390_ACEOF
2391rm -f conftest.$ac_objext
2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393  (eval $ac_compile) 2>conftest.er1
2394  ac_status=$?
2395  grep -v '^ *+' conftest.er1 >conftest.err
2396  rm -f conftest.er1
2397  cat conftest.err >&5
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); } &&
2400         { ac_try='test -z "$ac_c_werror_flag"
2401                         || test ! -s conftest.err'
2402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403  (eval $ac_try) 2>&5
2404  ac_status=$?
2405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406  (exit $ac_status); }; } &&
2407         { ac_try='test -s conftest.$ac_objext'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; }; then
2413  ac_compiler_gnu=yes
2414else
2415  echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418ac_compiler_gnu=no
2419fi
2420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429CFLAGS="-g"
2430echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2431echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2432if test "${ac_cv_prog_cc_g+set}" = set; then
2433  echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435  cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h.  */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h.  */
2441
2442int
2443main ()
2444{
2445
2446  ;
2447  return 0;
2448}
2449_ACEOF
2450rm -f conftest.$ac_objext
2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452  (eval $ac_compile) 2>conftest.er1
2453  ac_status=$?
2454  grep -v '^ *+' conftest.er1 >conftest.err
2455  rm -f conftest.er1
2456  cat conftest.err >&5
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); } &&
2459         { ac_try='test -z "$ac_c_werror_flag"
2460                         || test ! -s conftest.err'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; } &&
2466         { ac_try='test -s conftest.$ac_objext'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; }; then
2472  ac_cv_prog_cc_g=yes
2473else
2474  echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477ac_cv_prog_cc_g=no
2478fi
2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480fi
2481echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2482echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2483if test "$ac_test_CFLAGS" = set; then
2484  CFLAGS=$ac_save_CFLAGS
2485elif test $ac_cv_prog_cc_g = yes; then
2486  if test "$GCC" = yes; then
2487    CFLAGS="-g -O2"
2488  else
2489    CFLAGS="-g"
2490  fi
2491else
2492  if test "$GCC" = yes; then
2493    CFLAGS="-O2"
2494  else
2495    CFLAGS=
2496  fi
2497fi
2498echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2499echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2500if test "${ac_cv_prog_cc_stdc+set}" = set; then
2501  echo $ECHO_N "(cached) $ECHO_C" >&6
2502else
2503  ac_cv_prog_cc_stdc=no
2504ac_save_CC=$CC
2505cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h.  */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h.  */
2511#include <stdarg.h>
2512#include <stdio.h>
2513#include <sys/types.h>
2514#include <sys/stat.h>
2515/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2516struct buf { int x; };
2517FILE * (*rcsopen) (struct buf *, struct stat *, int);
2518static char *e (p, i)
2519     char **p;
2520     int i;
2521{
2522  return p[i];
2523}
2524static char *f (char * (*g) (char **, int), char **p, ...)
2525{
2526  char *s;
2527  va_list v;
2528  va_start (v,p);
2529  s = g (p, va_arg (v,int));
2530  va_end (v);
2531  return s;
2532}
2533
2534/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2535   function prototypes and stuff, but not '\xHH' hex character constants.
2536   These don't provoke an error unfortunately, instead are silently treated
2537   as 'x'.  The following induces an error, until -std1 is added to get
2538   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2539   array size at least.  It's necessary to write '\x00'==0 to get something
2540   that's true only with -std1.  */
2541int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2542
2543int test (int i, double x);
2544struct s1 {int (*f) (int a);};
2545struct s2 {int (*f) (double a);};
2546int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2547int argc;
2548char **argv;
2549int
2550main ()
2551{
2552return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2553  ;
2554  return 0;
2555}
2556_ACEOF
2557# Don't try gcc -ansi; that turns off useful extensions and
2558# breaks some systems' header files.
2559# AIX                   -qlanglvl=ansi
2560# Ultrix and OSF/1      -std1
2561# HP-UX 10.20 and later -Ae
2562# HP-UX older versions  -Aa -D_HPUX_SOURCE
2563# SVR4                  -Xc -D__EXTENSIONS__
2564for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2565do
2566  CC="$ac_save_CC $ac_arg"
2567  rm -f conftest.$ac_objext
2568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569  (eval $ac_compile) 2>conftest.er1
2570  ac_status=$?
2571  grep -v '^ *+' conftest.er1 >conftest.err
2572  rm -f conftest.er1
2573  cat conftest.err >&5
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); } &&
2576         { ac_try='test -z "$ac_c_werror_flag"
2577                         || test ! -s conftest.err'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; } &&
2583         { ac_try='test -s conftest.$ac_objext'
2584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585  (eval $ac_try) 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }; }; then
2589  ac_cv_prog_cc_stdc=$ac_arg
2590break
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595fi
2596rm -f conftest.err conftest.$ac_objext
2597done
2598rm -f conftest.$ac_ext conftest.$ac_objext
2599CC=$ac_save_CC
2600
2601fi
2602
2603case "x$ac_cv_prog_cc_stdc" in
2604  x|xno)
2605    echo "$as_me:$LINENO: result: none needed" >&5
2606echo "${ECHO_T}none needed" >&6 ;;
2607  *)
2608    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2609echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2610    CC="$CC $ac_cv_prog_cc_stdc" ;;
2611esac
2612
2613# Some people use a C++ compiler to compile C.  Since we use `exit',
2614# in C++ we need to declare it.  In case someone uses the same compiler
2615# for both compiling C and C++ we need to have the C++ compiler decide
2616# the declaration of exit, since it's the most demanding environment.
2617cat >conftest.$ac_ext <<_ACEOF
2618#ifndef __cplusplus
2619  choke me
2620#endif
2621_ACEOF
2622rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624  (eval $ac_compile) 2>conftest.er1
2625  ac_status=$?
2626  grep -v '^ *+' conftest.er1 >conftest.err
2627  rm -f conftest.er1
2628  cat conftest.err >&5
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); } &&
2631         { ac_try='test -z "$ac_c_werror_flag"
2632                         || test ! -s conftest.err'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; } &&
2638         { ac_try='test -s conftest.$ac_objext'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; }; then
2644  for ac_declaration in \
2645   '' \
2646   'extern "C" void std::exit (int) throw (); using std::exit;' \
2647   'extern "C" void std::exit (int); using std::exit;' \
2648   'extern "C" void exit (int) throw ();' \
2649   'extern "C" void exit (int);' \
2650   'void exit (int);'
2651do
2652  cat >conftest.$ac_ext <<_ACEOF
2653/* confdefs.h.  */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h.  */
2658$ac_declaration
2659#include <stdlib.h>
2660int
2661main ()
2662{
2663exit (42);
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext
2669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2670  (eval $ac_compile) 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -z "$ac_c_werror_flag"
2678                         || test ! -s conftest.err'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; } &&
2684         { ac_try='test -s conftest.$ac_objext'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; }; then
2690  :
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695continue
2696fi
2697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2698  cat >conftest.$ac_ext <<_ACEOF
2699/* confdefs.h.  */
2700_ACEOF
2701cat confdefs.h >>conftest.$ac_ext
2702cat >>conftest.$ac_ext <<_ACEOF
2703/* end confdefs.h.  */
2704$ac_declaration
2705int
2706main ()
2707{
2708exit (42);
2709  ;
2710  return 0;
2711}
2712_ACEOF
2713rm -f conftest.$ac_objext
2714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715  (eval $ac_compile) 2>conftest.er1
2716  ac_status=$?
2717  grep -v '^ *+' conftest.er1 >conftest.err
2718  rm -f conftest.er1
2719  cat conftest.err >&5
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); } &&
2722         { ac_try='test -z "$ac_c_werror_flag"
2723                         || test ! -s conftest.err'
2724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725  (eval $ac_try) 2>&5
2726  ac_status=$?
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); }; } &&
2729         { ac_try='test -s conftest.$ac_objext'
2730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731  (eval $ac_try) 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }; }; then
2735  break
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742done
2743rm -f conftest*
2744if test -n "$ac_declaration"; then
2745  echo '#ifdef __cplusplus' >>confdefs.h
2746  echo $ac_declaration      >>confdefs.h
2747  echo '#endif'             >>confdefs.h
2748fi
2749
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762if test -z "$CC" ; then
2763  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2764echo "$as_me: error: Failed to find a C compiler!" >&2;}
2765   { (exit 1); exit 1; }; }
2766fi
2767# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2768case "$CC" in
2769  clang* ) ;;
2770  cl* | */cl* | CL* | */CL* )
2771    if test "$ac_cv_prog_cc_g" = yes ; then
2772      ac_cv_prog_cc_g=no
2773      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2774echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2775    fi ;;
2776  * )
2777    CYGPATH_W=echo
2778    ;;
2779esac
2780CFLAGS="$save_cflags"
2781
2782# add automake conditional so we can recognize cl compiler in makefile
2783coin_cc_is_cl=false
2784case "$CC" in
2785  clang* ) ;;
2786  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2787    coin_cc_is_cl=true
2788    ;;
2789esac
2790
2791
2792if test $coin_cc_is_cl = true; then
2793  COIN_CC_IS_CL_TRUE=
2794  COIN_CC_IS_CL_FALSE='#'
2795else
2796  COIN_CC_IS_CL_TRUE='#'
2797  COIN_CC_IS_CL_FALSE=
2798fi
2799
2800
2801# Check if a project specific CFLAGS variable has been set
2802if test x$COIN_PRJCT != x; then
2803  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2804  if test x$coin_tmp = xset; then
2805    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2806  fi
2807fi
2808
2809if test x"$CFLAGS" = x; then
2810
2811  coin_add_cflags=
2812  coin_opt_cflags=
2813  coin_dbg_cflags=
2814  coin_warn_cflags=
2815
2816  if test "$GCC" = "yes"; then
2817    case "$CC" in
2818      icc* | */icc*)
2819        ;;
2820      *)
2821        coin_opt_cflags="-O3"
2822        coin_add_cflags="-pipe"
2823        coin_dbg_cflags="-g -O0"
2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2825        case $build in
2826          *-darwin*)
2827            ;;
2828          *)
2829            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2830            ;;
2831        esac
2832    esac
2833  fi
2834  if test -z "$coin_opt_cflags"; then
2835    case $build in
2836      *-cygwin* | *-mingw*)
2837        case "$CC" in
2838          clang* ) ;;
2839          cl* | */cl* | CL* | */CL*)
2840            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2841              coin_opt_cflags='-MD -O2'
2842              coin_dbg_cflags='-MDd'
2843            else
2844              coin_opt_cflags='-MT -O2'
2845              coin_dbg_cflags='-MTd'
2846            fi
2847            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2848            ;;
2849          icl* | */icl* | ICL* | */ICL*)
2850            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2851              coin_opt_cflags='-MD -Ox'
2852              coin_dbg_cflags='-MDd -debug'
2853            else
2854              coin_opt_cflags='-MT -Ox'
2855              coin_dbg_cflags='-MTd -debug'
2856            fi
2857            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2858            ;;
2859        esac
2860        ;;
2861      *-linux-*)
2862        case "$CC" in
2863          icc* | */icc*)
2864            coin_opt_cflags="-O3 -ip -mp1"
2865            coin_add_cflags=""
2866            coin_dbg_cflags="-g"
2867            # Check if -i_dynamic is necessary (for new glibc library)
2868            CFLAGS=
2869            cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879int i=0; i++;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886  (eval $ac_link) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893         { ac_try='test -z "$ac_c_werror_flag"
2894                         || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900         { ac_try='test -s conftest$ac_exeext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  :
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911coin_add_cflags="-i_dynamic $coin_add_cflags"
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915            ;;
2916          pgcc* | */pgcc*)
2917            coin_opt_cflags="-fast"
2918            coin_add_cflags="-Kieee -pc 64"
2919            coin_dbg_cflags="-g"
2920            ;;
2921        esac
2922        ;;
2923      *-ibm-*)
2924        case "$CC" in
2925          xlc* | */xlc* | mpxlc* | */mpxlc*)
2926            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2927            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2928            coin_dbg_cflags="-g"
2929          ;;
2930        esac
2931        ;;
2932      *-hp-*)
2933        coin_opt_cflags="-O"
2934        coin_add_cflags="-Ae"
2935        coin_dbg_cflags="-g"
2936        ;;
2937      *-*-solaris*)
2938        coin_opt_cflags="-xO4"
2939        coin_dbg_cflags="-g"
2940        ;;
2941      *-sgi-*)
2942        coin_opt_cflags="-O -OPT:Olimit=0"
2943        coin_dbg_cflags="-g"
2944        ;;
2945    esac
2946  fi
2947
2948  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2949    coin_dbg_cflags="-g"
2950  fi
2951
2952  if test -z "$coin_opt_cflags"; then
2953    # Try if -O option works if nothing else is set
2954    CFLAGS="-O"
2955    cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h.  */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h.  */
2961
2962int
2963main ()
2964{
2965int i=0; i++;
2966  ;
2967  return 0;
2968}
2969_ACEOF
2970rm -f conftest.$ac_objext conftest$ac_exeext
2971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972  (eval $ac_link) 2>conftest.er1
2973  ac_status=$?
2974  grep -v '^ *+' conftest.er1 >conftest.err
2975  rm -f conftest.er1
2976  cat conftest.err >&5
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); } &&
2979         { ac_try='test -z "$ac_c_werror_flag"
2980                         || test ! -s conftest.err'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; } &&
2986         { ac_try='test -s conftest$ac_exeext'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; }; then
2992  coin_opt_cflags="-O"
2993else
2994  echo "$as_me: failed program was:" >&5
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
2997fi
2998rm -f conftest.err conftest.$ac_objext \
2999      conftest$ac_exeext conftest.$ac_ext
3000  fi
3001
3002  # if PM doesn't want the warning messages, take them out
3003  if test x"$coin_skip_warn_cflags" = xyes; then
3004    coin_warn_cflags=
3005  fi
3006
3007  if test x${DBG_CFLAGS+set} != xset; then
3008    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3009  fi
3010  if test x${OPT_CFLAGS+set} != xset; then
3011    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3012  fi
3013
3014  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3015  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3016
3017  if test "$coin_debug_compile" = "true"; then
3018    CFLAGS="$DBG_CFLAGS"
3019  else
3020    CFLAGS="$OPT_CFLAGS"
3021  fi
3022else
3023  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3024  if test x${DBG_CFLAGS+set} != xset; then
3025    DBG_CFLAGS="$CFLAGS"
3026  fi
3027  if test x${OPT_CFLAGS+set} != xset; then
3028    OPT_CFLAGS="$CFLAGS"
3029  fi
3030fi
3031
3032# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3033if test x$COIN_PRJCT != x; then
3034  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3035fi
3036
3037# Try if CFLAGS works
3038save_CFLAGS="$CFLAGS"
3039cat >conftest.$ac_ext <<_ACEOF
3040/* confdefs.h.  */
3041_ACEOF
3042cat confdefs.h >>conftest.$ac_ext
3043cat >>conftest.$ac_ext <<_ACEOF
3044/* end confdefs.h.  */
3045
3046int
3047main ()
3048{
3049int i=0; i++;
3050  ;
3051  return 0;
3052}
3053_ACEOF
3054rm -f conftest.$ac_objext conftest$ac_exeext
3055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3056  (eval $ac_link) 2>conftest.er1
3057  ac_status=$?
3058  grep -v '^ *+' conftest.er1 >conftest.err
3059  rm -f conftest.er1
3060  cat conftest.err >&5
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); } &&
3063         { ac_try='test -z "$ac_c_werror_flag"
3064                         || test ! -s conftest.err'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; } &&
3070         { ac_try='test -s conftest$ac_exeext'
3071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072  (eval $ac_try) 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; }; then
3076  :
3077else
3078  echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081CFLAGS=
3082fi
3083rm -f conftest.err conftest.$ac_objext \
3084      conftest$ac_exeext conftest.$ac_ext
3085if test -z "$CFLAGS"; then
3086  { 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
3087echo "$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;}
3088  CFLAGS='-O'
3089  cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099int i=0; i++;
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext conftest$ac_exeext
3105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106  (eval $ac_link) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113         { ac_try='test -z "$ac_c_werror_flag"
3114                         || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120         { ac_try='test -s conftest$ac_exeext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  :
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131CFLAGS=
3132fi
3133rm -f conftest.err conftest.$ac_objext \
3134      conftest$ac_exeext conftest.$ac_ext
3135  if test -z "$CFLAGS"; then
3136    { 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
3137echo "$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;}
3138  fi
3139fi
3140
3141{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3142echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3143
3144
3145if test x"$MPICC" = x; then :; else
3146  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3147echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3148  CC="$MPICC"
3149fi
3150
3151# Correct the LD variable if we are using the MS or Intel-windows compiler
3152case "$CC" in
3153  clang* ) ;;
3154  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3155
3156 case $build in
3157  *-mingw*)
3158    if test "${LD+set}" = set; then :; else
3159      LD=link
3160    fi
3161    ;;
3162 esac
3163 if test $enable_msvc = yes ; then
3164   if test "x${LD+set}" = xset; then :; else
3165     LD=link
3166   fi
3167 fi
3168
3169    ;;
3170esac
3171
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179
3180# Get the name of the C++ compiler and appropriate compiler options
3181
3182 #Let's try if that overcomes configuration problem with VC++ 6.0
3183
3184ac_ext=cc
3185ac_cpp='$CXXCPP $CPPFLAGS'
3186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3189
3190
3191
3192
3193
3194
3195
3196coin_has_cxx=yes
3197
3198save_cxxflags="$CXXFLAGS"
3199# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3200case $build in
3201  *-cygwin* | *-mingw*)
3202      if test "$enable_msvc" = yes ; then
3203         comps="icl cl g++"
3204      else
3205         comps="g++ icl cl"
3206      fi ;;
3207  *-*-solaris*)
3208             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3209  *-darwin*) comps="g++ c++ CC" ;;
3210  *-linux-gnu*)
3211             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3212          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3213esac
3214
3215# We delete the cached value, since the test might not have been
3216# performed with our choice of compilers earlier
3217$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3218# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3219ac_ext=cc
3220ac_cpp='$CXXCPP $CPPFLAGS'
3221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224if test -n "$ac_tool_prefix"; then
3225  for ac_prog in $CCC $comps
3226  do
3227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3229echo "$as_me:$LINENO: checking for $ac_word" >&5
3230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3231if test "${ac_cv_prog_CXX+set}" = set; then
3232  echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234  if test -n "$CXX"; then
3235  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3236else
3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240  IFS=$as_save_IFS
3241  test -z "$as_dir" && as_dir=.
3242  for ac_exec_ext in '' $ac_executable_extensions; do
3243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246    break 2
3247  fi
3248done
3249done
3250
3251fi
3252fi
3253CXX=$ac_cv_prog_CXX
3254if test -n "$CXX"; then
3255  echo "$as_me:$LINENO: result: $CXX" >&5
3256echo "${ECHO_T}$CXX" >&6
3257else
3258  echo "$as_me:$LINENO: result: no" >&5
3259echo "${ECHO_T}no" >&6
3260fi
3261
3262    test -n "$CXX" && break
3263  done
3264fi
3265if test -z "$CXX"; then
3266  ac_ct_CXX=$CXX
3267  for ac_prog in $CCC $comps
3268do
3269  # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271echo "$as_me:$LINENO: checking for $ac_word" >&5
3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  if test -n "$ac_ct_CXX"; then
3277  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284  for ac_exec_ext in '' $ac_executable_extensions; do
3285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_ac_ct_CXX="$ac_prog"
3287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291done
3292
3293fi
3294fi
3295ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3296if test -n "$ac_ct_CXX"; then
3297  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3298echo "${ECHO_T}$ac_ct_CXX" >&6
3299else
3300  echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6
3302fi
3303
3304  test -n "$ac_ct_CXX" && break
3305done
3306test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3307
3308  CXX=$ac_ct_CXX
3309fi
3310
3311
3312# Provide some information about the compiler.
3313echo "$as_me:$LINENO:" \
3314     "checking for C++ compiler version" >&5
3315ac_compiler=`set X $ac_compile; echo $2`
3316{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3317  (eval $ac_compiler --version </dev/null >&5) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }
3321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3322  (eval $ac_compiler -v </dev/null >&5) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }
3326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3327  (eval $ac_compiler -V </dev/null >&5) 2>&5
3328  ac_status=$?
3329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330  (exit $ac_status); }
3331
3332echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3333echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3334if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3335  echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337  cat >conftest.$ac_ext <<_ACEOF
3338/* confdefs.h.  */
3339_ACEOF
3340cat confdefs.h >>conftest.$ac_ext
3341cat >>conftest.$ac_ext <<_ACEOF
3342/* end confdefs.h.  */
3343
3344int
3345main ()
3346{
3347#ifndef __GNUC__
3348       choke me
3349#endif
3350
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357  (eval $ac_compile) 2>conftest.er1
3358  ac_status=$?
3359  grep -v '^ *+' conftest.er1 >conftest.err
3360  rm -f conftest.er1
3361  cat conftest.err >&5
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } &&
3364         { ac_try='test -z "$ac_cxx_werror_flag"
3365                         || test ! -s conftest.err'
3366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367  (eval $ac_try) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); }; } &&
3371         { ac_try='test -s conftest.$ac_objext'
3372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373  (eval $ac_try) 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }; }; then
3377  ac_compiler_gnu=yes
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382ac_compiler_gnu=no
3383fi
3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3386
3387fi
3388echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3389echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3390GXX=`test $ac_compiler_gnu = yes && echo yes`
3391ac_test_CXXFLAGS=${CXXFLAGS+set}
3392ac_save_CXXFLAGS=$CXXFLAGS
3393CXXFLAGS="-g"
3394echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3395echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3396if test "${ac_cv_prog_cxx_g+set}" = set; then
3397  echo $ECHO_N "(cached) $ECHO_C" >&6
3398else
3399  cat >conftest.$ac_ext <<_ACEOF
3400/* confdefs.h.  */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h.  */
3405
3406int
3407main ()
3408{
3409
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414rm -f conftest.$ac_objext
3415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416  (eval $ac_compile) 2>conftest.er1
3417  ac_status=$?
3418  grep -v '^ *+' conftest.er1 >conftest.err
3419  rm -f conftest.er1
3420  cat conftest.err >&5
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); } &&
3423         { ac_try='test -z "$ac_cxx_werror_flag"
3424                         || test ! -s conftest.err'
3425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426  (eval $ac_try) 2>&5
3427  ac_status=$?
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); }; } &&
3430         { ac_try='test -s conftest.$ac_objext'
3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432  (eval $ac_try) 2>&5
3433  ac_status=$?
3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435  (exit $ac_status); }; }; then
3436  ac_cv_prog_cxx_g=yes
3437else
3438  echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441ac_cv_prog_cxx_g=no
3442fi
3443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3446echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3447if test "$ac_test_CXXFLAGS" = set; then
3448  CXXFLAGS=$ac_save_CXXFLAGS
3449elif test $ac_cv_prog_cxx_g = yes; then
3450  if test "$GXX" = yes; then
3451    CXXFLAGS="-g -O2"
3452  else
3453    CXXFLAGS="-g"
3454  fi
3455else
3456  if test "$GXX" = yes; then
3457    CXXFLAGS="-O2"
3458  else
3459    CXXFLAGS=
3460  fi
3461fi
3462for ac_declaration in \
3463   '' \
3464   'extern "C" void std::exit (int) throw (); using std::exit;' \
3465   'extern "C" void std::exit (int); using std::exit;' \
3466   'extern "C" void exit (int) throw ();' \
3467   'extern "C" void exit (int);' \
3468   'void exit (int);'
3469do
3470  cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476$ac_declaration
3477#include <stdlib.h>
3478int
3479main ()
3480{
3481exit (42);
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_cxx_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  :
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513continue
3514fi
3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516  cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h.  */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h.  */
3522$ac_declaration
3523int
3524main ()
3525{
3526exit (42);
3527  ;
3528  return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext
3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533  (eval $ac_compile) 2>conftest.er1
3534  ac_status=$?
3535  grep -v '^ *+' conftest.er1 >conftest.err
3536  rm -f conftest.er1
3537  cat conftest.err >&5
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); } &&
3540         { ac_try='test -z "$ac_cxx_werror_flag"
3541                         || test ! -s conftest.err'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; } &&
3547         { ac_try='test -s conftest.$ac_objext'
3548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549  (eval $ac_try) 2>&5
3550  ac_status=$?
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); }; }; then
3553  break
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558fi
3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560done
3561rm -f conftest*
3562if test -n "$ac_declaration"; then
3563  echo '#ifdef __cplusplus' >>confdefs.h
3564  echo $ac_declaration      >>confdefs.h
3565  echo '#endif'             >>confdefs.h
3566fi
3567
3568ac_ext=cc
3569ac_cpp='$CXXCPP $CPPFLAGS'
3570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3573
3574
3575#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3576#thus, we test here whether $CXX is actually working
3577ac_ext=cc
3578ac_cpp='$CXXCPP $CPPFLAGS'
3579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3582
3583echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3584echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3585cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595int i=0;
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext
3601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602  (eval $ac_compile) 2>conftest.er1
3603  ac_status=$?
3604  grep -v '^ *+' conftest.er1 >conftest.err
3605  rm -f conftest.er1
3606  cat conftest.err >&5
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); } &&
3609         { ac_try='test -z "$ac_cxx_werror_flag"
3610                         || test ! -s conftest.err'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; } &&
3616         { ac_try='test -s conftest.$ac_objext'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; }; then
3622  echo "$as_me:$LINENO: result: yes" >&5
3623echo "${ECHO_T}yes" >&6
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628echo "$as_me:$LINENO: result: no" >&5
3629echo "${ECHO_T}no" >&6
3630   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3631echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3632   { (exit 1); exit 1; }; }
3633
3634fi
3635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3636ac_ext=cc
3637ac_cpp='$CXXCPP $CPPFLAGS'
3638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3641
3642
3643coin_cxx_is_cl=false
3644# It seems that we need to cleanup something here for the Windows
3645case "$CXX" in
3646  clang* ) ;;
3647  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3648    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3649    mv confdefs.hh confdefs.h
3650    coin_cxx_is_cl=true
3651    ;;
3652esac
3653
3654# add automake conditional so we can recognize cl compiler in makefile
3655
3656
3657if test $coin_cxx_is_cl = true; then
3658  COIN_CXX_IS_CL_TRUE=
3659  COIN_CXX_IS_CL_FALSE='#'
3660else
3661  COIN_CXX_IS_CL_TRUE='#'
3662  COIN_CXX_IS_CL_FALSE=
3663fi
3664
3665
3666# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3667case "$CXX" in
3668  clang* ) ;;
3669  cl* | */cl* | CL* | */CL* )
3670    if test "$ac_cv_prog_cxx_g" = yes ; then
3671      ac_cv_prog_cxx_g=no
3672      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3673echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3674    fi ;;
3675  * )
3676    CYGPATH_W=echo
3677    ;;
3678esac
3679CXXFLAGS="$save_cxxflags"
3680
3681# Check if a project specific CXXFLAGS variable has been set
3682if test x$COIN_PRJCT != x; then
3683  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3684  if test x$coin_tmp = xset; then
3685    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3686  fi
3687fi
3688
3689if test x"$CXXFLAGS" = x; then
3690
3691# ToDo decide whether we want -DNDEBUG for optimization
3692  coin_add_cxxflags=
3693  coin_opt_cxxflags=
3694  coin_dbg_cxxflags=
3695  coin_warn_cxxflags=
3696
3697  if test "$GXX" = "yes"; then
3698    case "$CXX" in
3699      icpc* | */icpc*)
3700        ;;
3701      *)
3702# ToDo decide about unroll-loops
3703        coin_opt_cxxflags="-O3"
3704        coin_add_cxxflags="-pipe"
3705        coin_dbg_cxxflags="-g -O0"
3706        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3707        case $build in
3708          *-darwin*)
3709            ;;
3710          *)
3711            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3712            ;;
3713        esac
3714    esac
3715  fi
3716
3717# Note that we do not need to cover GCC in the following tests.
3718
3719  if test -z "$coin_opt_cxxflags"; then
3720    case $build in
3721      *-cygwin* | *-mingw*)
3722        case "$CXX" in
3723          clang* ) ;;
3724          cl* | */cl* | CL* | */CL*)
3725            # The MT and MTd options are mutually exclusive
3726            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3727               coin_opt_cxxflags='-MD -O2'
3728               coin_dbg_cxxflags='-MDd'
3729            else
3730               coin_opt_cxxflags='-MT -O2'
3731               coin_dbg_cxxflags='-MTd'
3732            fi
3733            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3734            ;;
3735          icl* | */icl* | ICL* | */ICL*)
3736          # The MT and MTd options are mutually exclusive
3737            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3738              coin_opt_cxxflags='-MD -Ox'
3739              coin_dbg_cxxflags='-MDd -debug'
3740            else
3741              coin_opt_cxxflags='-MT -Ox'
3742              coin_dbg_cxxflags='-MTd -debug'
3743            fi
3744            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3745            ;;
3746        esac
3747        ;;
3748      *-linux-*)
3749        case "$CXX" in
3750          icpc* | */icpc*)
3751            coin_opt_cxxflags="-O3 -ip -mp1"
3752            coin_add_cxxflags=""
3753            coin_dbg_cxxflags="-g"
3754            # Check if -i_dynamic is necessary (for new glibc library)
3755            CXXFLAGS=
3756            cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h.  */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h.  */
3762
3763int
3764main ()
3765{
3766int i=0; i++;
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771rm -f conftest.$ac_objext conftest$ac_exeext
3772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773  (eval $ac_link) 2>conftest.er1
3774  ac_status=$?
3775  grep -v '^ *+' conftest.er1 >conftest.err
3776  rm -f conftest.er1
3777  cat conftest.err >&5
3778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779  (exit $ac_status); } &&
3780         { ac_try='test -z "$ac_cxx_werror_flag"
3781                         || test ! -s conftest.err'
3782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783  (eval $ac_try) 2>&5
3784  ac_status=$?
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); }; } &&
3787         { ac_try='test -s conftest$ac_exeext'
3788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789  (eval $ac_try) 2>&5
3790  ac_status=$?
3791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792  (exit $ac_status); }; }; then
3793  :
3794else
3795  echo "$as_me: failed program was:" >&5
3796sed 's/^/| /' conftest.$ac_ext >&5
3797
3798coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3799fi
3800rm -f conftest.err conftest.$ac_objext \
3801      conftest$ac_exeext conftest.$ac_ext
3802            ;;
3803          pgCC* | */pgCC*)
3804            coin_opt_cxxflags="-fast"
3805            coin_add_cxxflags="-Kieee -pc 64"
3806            coin_dbg_cxxflags="-g"
3807            ;;
3808        esac
3809        ;;
3810      *-ibm-*)
3811        case "$CXX" in
3812          xlC* | */xlC* | mpxlC* | */mpxlC*)
3813            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3814            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3815            coin_dbg_cxxflags="-g"
3816            ;;
3817        esac
3818        ;;
3819      *-hp-*)
3820        case "$CXX" in
3821          aCC* | */aCC* )
3822            coin_opt_cxxflags="-O"
3823            coin_add_cxxflags="-AA"
3824            coin_dbg_cxxflags="-g"
3825            ;;
3826        esac
3827        ;;
3828      *-*-solaris*)
3829          coin_opt_cxxflags="-O4"
3830          coin_dbg_cxxflags="-g"
3831        ;;
3832    esac
3833  fi
3834
3835# Generic flag settings. If these don't work, add a case above.
3836
3837  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3838    coin_dbg_cxxflags="-g"
3839  fi
3840
3841  if test -z "$coin_opt_cxxflags"; then
3842    # Try if -O option works if nothing else is set
3843    CXXFLAGS=-O
3844    cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h.  */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854int i=0; i++;
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859rm -f conftest.$ac_objext conftest$ac_exeext
3860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3861  (eval $ac_link) 2>conftest.er1
3862  ac_status=$?
3863  grep -v '^ *+' conftest.er1 >conftest.err
3864  rm -f conftest.er1
3865  cat conftest.err >&5
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); } &&
3868         { ac_try='test -z "$ac_cxx_werror_flag"
3869                         || test ! -s conftest.err'
3870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871  (eval $ac_try) 2>&5
3872  ac_status=$?
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); }; } &&
3875         { ac_try='test -s conftest$ac_exeext'
3876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877  (eval $ac_try) 2>&5
3878  ac_status=$?
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); }; }; then
3881  coin_opt_cxxflags="-O"
3882else
3883  echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886fi
3887rm -f conftest.err conftest.$ac_objext \
3888      conftest$ac_exeext conftest.$ac_ext
3889  fi
3890
3891  # if PM doesn't want the warning messages, take them out
3892  if test x"$coin_skip_warn_cxxflags" = xyes; then
3893    coin_warn_cxxflags=
3894  fi
3895
3896# Do final setup of flags based on values determined above.
3897
3898  if test x${DBG_CXXFLAGS+set} != xset; then
3899    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3900  fi
3901  if test x${OPT_CXXFLAGS+set} != xset; then
3902    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3903  fi
3904
3905  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3906  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3907
3908  if test "$coin_debug_compile" = "true"; then
3909    CXXFLAGS="$DBG_CXXFLAGS"
3910  else
3911    CXXFLAGS="$OPT_CXXFLAGS"
3912  fi
3913
3914# Handle the case where CXXFLAGS was set externally.
3915else
3916  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3917  if test x${DBG_CXXFLAGS+set} != xset; then
3918    DBG_CXXFLAGS="$CXXFLAGS"
3919  fi
3920  if test x${OPT_CXXFLAGS+set} != xset; then
3921    OPT_CXXFLAGS="$CXXFLAGS"
3922  fi
3923fi
3924
3925# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3926if test x$COIN_PRJCT != x; then
3927  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3928fi
3929
3930# Try if CXXFLAGS works
3931save_CXXFLAGS="$CXXFLAGS"
3932cat >conftest.$ac_ext <<_ACEOF
3933/* confdefs.h.  */
3934_ACEOF
3935cat confdefs.h >>conftest.$ac_ext
3936cat >>conftest.$ac_ext <<_ACEOF
3937/* end confdefs.h.  */
3938
3939int
3940main ()
3941{
3942int i=0; i++;
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext conftest$ac_exeext
3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949  (eval $ac_link) 2>conftest.er1
3950  ac_status=$?
3951  grep -v '^ *+' conftest.er1 >conftest.err
3952  rm -f conftest.er1
3953  cat conftest.err >&5
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); } &&
3956         { ac_try='test -z "$ac_cxx_werror_flag"
3957                         || test ! -s conftest.err'
3958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959  (eval $ac_try) 2>&5
3960  ac_status=$?
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); }; } &&
3963         { ac_try='test -s conftest$ac_exeext'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; }; then
3969  :
3970else
3971  echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974CXXFLAGS=
3975fi
3976rm -f conftest.err conftest.$ac_objext \
3977      conftest$ac_exeext conftest.$ac_ext
3978if test -z "$CXXFLAGS"; then
3979  { 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
3980echo "$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;}
3981  CXXFLAGS='-O'
3982  cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h.  */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h.  */
3988
3989int
3990main ()
3991{
3992int i=0; i++;
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
3998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999  (eval $ac_link) 2>conftest.er1
4000  ac_status=$?
4001  grep -v '^ *+' conftest.er1 >conftest.err
4002  rm -f conftest.er1
4003  cat conftest.err >&5
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); } &&
4006         { ac_try='test -z "$ac_cxx_werror_flag"
4007                         || test ! -s conftest.err'
4008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009  (eval $ac_try) 2>&5
4010  ac_status=$?
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); }; } &&
4013         { ac_try='test -s conftest$ac_exeext'
4014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015  (eval $ac_try) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }; }; then
4019  :
4020else
4021  echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024CXXFLAGS=
4025fi
4026rm -f conftest.err conftest.$ac_objext \
4027      conftest$ac_exeext conftest.$ac_ext
4028  if test -z "$CXXFLAGS"; then
4029    { 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
4030echo "$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;}
4031  fi
4032fi
4033
4034{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4035echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4036
4037
4038if test x"$MPICXX" = x; then :; else
4039  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4040echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4041  CXX="$MPICXX"
4042fi
4043
4044# correct the LD variable in a mingw build with MS or intel compiler
4045case "$CXX" in
4046  clang* ) ;;
4047  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4048
4049 case $build in
4050  *-mingw*)
4051    if test "${LD+set}" = set; then :; else
4052      LD=link
4053    fi
4054    ;;
4055 esac
4056 if test $enable_msvc = yes ; then
4057   if test "x${LD+set}" = xset; then :; else
4058     LD=link
4059   fi
4060 fi
4061
4062    ;;
4063esac
4064
4065ac_ext=c
4066ac_cpp='$CPP $CPPFLAGS'
4067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072
4073# Check if pkg-config is available (to setup addlibs file)
4074
4075
4076# Check whether --enable-pkg-config or --disable-pkg-config was given.
4077if test "${enable_pkg_config+set}" = set; then
4078  enableval="$enable_pkg_config"
4079  use_pkgconfig="$enableval"
4080else
4081  if test x$coin_cc_is_cl = xtrue; then
4082     use_pkgconfig=no
4083   else
4084     use_pkgconfig=yes
4085   fi
4086fi;
4087
4088if test $use_pkgconfig = yes ; then
4089  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4090    if test -n "$ac_tool_prefix"; then
4091  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4092set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4093echo "$as_me:$LINENO: checking for $ac_word" >&5
4094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098  if test -n "$PKG_CONFIG"; then
4099  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106  for ac_exec_ext in '' $ac_executable_extensions; do
4107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110    break 2
4111  fi
4112done
4113done
4114
4115fi
4116fi
4117PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4118if test -n "$PKG_CONFIG"; then
4119  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4120echo "${ECHO_T}$PKG_CONFIG" >&6
4121else
4122  echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124fi
4125
4126fi
4127if test -z "$ac_cv_prog_PKG_CONFIG"; then
4128  ac_ct_PKG_CONFIG=$PKG_CONFIG
4129  # Extract the first word of "pkg-config", so it can be a program name with args.
4130set dummy pkg-config; ac_word=$2
4131echo "$as_me:$LINENO: checking for $ac_word" >&5
4132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4134  echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136  if test -n "$ac_ct_PKG_CONFIG"; then
4137  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144  for ac_exec_ext in '' $ac_executable_extensions; do
4145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148    break 2
4149  fi
4150done
4151done
4152
4153fi
4154fi
4155ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4156if test -n "$ac_ct_PKG_CONFIG"; then
4157  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4158echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4159else
4160  echo "$as_me:$LINENO: result: no" >&5
4161echo "${ECHO_T}no" >&6
4162fi
4163
4164  PKG_CONFIG=$ac_ct_PKG_CONFIG
4165else
4166  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4167fi
4168
4169  fi
4170  if test -n "$PKG_CONFIG"; then
4171    _pkg_min_version=0.16.0
4172    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4173echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4174    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4175      echo "$as_me:$LINENO: result: yes" >&5
4176echo "${ECHO_T}yes" >&6
4177    else
4178      echo "$as_me:$LINENO: result: no" >&5
4179echo "${ECHO_T}no" >&6
4180      PKG_CONFIG=""
4181    fi
4182  fi
4183
4184  # check if pkg-config supports the short-errors flag
4185  if test -n "$PKG_CONFIG" && \
4186    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4187    pkg_short_errors=" --short-errors "
4188  else
4189    pkg_short_errors=""
4190  fi
4191fi
4192
4193
4194
4195if test -n "$PKG_CONFIG"; then
4196  COIN_HAS_PKGCONFIG_TRUE=
4197  COIN_HAS_PKGCONFIG_FALSE='#'
4198else
4199  COIN_HAS_PKGCONFIG_TRUE='#'
4200  COIN_HAS_PKGCONFIG_FALSE=
4201fi
4202
4203
4204
4205# assemble pkg-config search path for installed projects
4206COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4207
4208# 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
4209# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4210# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4211if test "x${prefix}" = xNONE ; then
4212  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4213else
4214  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4215fi
4216
4217
4218# Check whether --with-coin-instdir or --without-coin-instdir was given.
4219if test "${with_coin_instdir+set}" = set; then
4220  withval="$with_coin_instdir"
4221  if test -d "$withval"; then : ; else
4222     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4223echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4224   { (exit 1); exit 1; }; }
4225   fi
4226   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4227
4228fi;
4229
4230
4231
4232# assemble additional pkg-config search paths for uninstalled projects
4233if test x$coin_projectdir = xyes ; then
4234  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4235  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4236  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4237  # 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)
4238  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4239  if test -f ../coin_subdirs.txt ; then
4240    for i in `cat ../coin_subdirs.txt` ; do
4241      if test -d ../$i ; then
4242        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4243      fi
4244      if test -d ../$i/pkgconfig ; then
4245        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4246      fi
4247    done
4248  fi
4249
4250  if test -f ../../coin_subdirs.txt ; then
4251    for i in `cat ../../coin_subdirs.txt` ; do
4252      if test -d ../../$i ; then
4253        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4254      fi
4255      if test -d ../../$i/pkgconfig ; then
4256        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4257      fi
4258    done
4259  fi
4260
4261
4262fi
4263
4264if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4265  { 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
4266echo "$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;}
4267fi
4268
4269
4270
4271# Initialize automake
4272{
4273
4274
4275
4276# START
4277
4278coin_disable_shared=no
4279# Test if force_shared has been set
4280if test "x" = xforce_shared; then
4281  if test x$enable_shared = xno; then
4282    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4283echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4284   { (exit 1); exit 1; }; }
4285  fi
4286  enable_shared=yes;
4287else
4288  # On Cygwin and AIX, building DLLs doesn't work
4289  case $build in
4290    *-cygwin* | *-mingw*)
4291      coin_disable_shared=yes
4292      if test x"$enable_shared" = xyes; then
4293        case "$CXX" in
4294          clang* )
4295            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4296echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4297            ;;
4298          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4299            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4300echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4301            ;;
4302          *)
4303            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4304echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4305            ;;
4306        esac
4307      fi
4308    ;;
4309    *-aix*)
4310      coin_disable_shared=yes
4311      platform=AIX
4312      if test x"$enable_shared" = xyes; then
4313        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4314echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4315      fi
4316    ;;
4317  esac
4318fi
4319if test x"$coin_disable_shared" = xyes; then
4320  if test x"$enable_shared" = xyes; then
4321    :
4322  else
4323    # we don't disable shared, because it was not selected anyway
4324    coin_disable_shared=no
4325  fi
4326  enable_shared=no
4327fi
4328# By default, we only want the shared objects to be compiled
4329# Check whether --enable-static or --disable-static was given.
4330if test "${enable_static+set}" = set; then
4331  enableval="$enable_static"
4332  p=${PACKAGE-default}
4333    case $enableval in
4334    yes) enable_static=yes ;;
4335    no) enable_static=no ;;
4336    *)
4337     enable_static=no
4338      # Look at the argument we got.  We use all the common list separators.
4339      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4340      for pkg in $enableval; do
4341        IFS="$lt_save_ifs"
4342        if test "X$pkg" = "X$p"; then
4343          enable_static=yes
4344        fi
4345      done
4346      IFS="$lt_save_ifs"
4347      ;;
4348    esac
4349else
4350  enable_static=no
4351fi;
4352
4353
4354
4355
4356# Initialize automake
4357echo "$as_me:$LINENO: checking for egrep" >&5
4358echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4359if test "${ac_cv_prog_egrep+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4363    then ac_cv_prog_egrep='grep -E'
4364    else ac_cv_prog_egrep='egrep'
4365    fi
4366fi
4367echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4368echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4369 EGREP=$ac_cv_prog_egrep
4370
4371
4372echo "$as_me:$LINENO: checking whether ln -s works" >&5
4373echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4374LN_S=$as_ln_s
4375if test "$LN_S" = "ln -s"; then
4376  echo "$as_me:$LINENO: result: yes" >&5
4377echo "${ECHO_T}yes" >&6
4378else
4379  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4380echo "${ECHO_T}no, using $LN_S" >&6
4381fi
4382
4383am__api_version="1.9"
4384# Find a good install program.  We prefer a C program (faster),
4385# so one script is as good as another.  But avoid the broken or
4386# incompatible versions:
4387# SysV /etc/install, /usr/sbin/install
4388# SunOS /usr/etc/install
4389# IRIX /sbin/install
4390# AIX /bin/install
4391# AmigaOS /C/install, which installs bootblocks on floppy discs
4392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4395# OS/2's system install, which has a completely different semantic
4396# ./install, which can be erroneously created by make from ./install.sh.
4397echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4398echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4399if test -z "$INSTALL"; then
4400if test "${ac_cv_path_install+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406  IFS=$as_save_IFS
4407  test -z "$as_dir" && as_dir=.
4408  # Account for people who put trailing slashes in PATH elements.
4409case $as_dir/ in
4410  ./ | .// | /cC/* | \
4411  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4412  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4413  /usr/ucb/* ) ;;
4414  *)
4415    # OSF1 and SCO ODT 3.0 have their own names for install.
4416    # Don't use installbsd from OSF since it installs stuff as root
4417    # by default.
4418    for ac_prog in ginstall scoinst install; do
4419      for ac_exec_ext in '' $ac_executable_extensions; do
4420        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4421          if test $ac_prog = install &&
4422            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4423            # AIX install.  It has an incompatible calling convention.
4424            :
4425          elif test $ac_prog = install &&
4426            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4427            # program-specific install script used by HP pwplus--don't use.
4428            :
4429          else
4430            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4431            break 3
4432          fi
4433        fi
4434      done
4435    done
4436    ;;
4437esac
4438done
4439
4440
4441fi
4442  if test "${ac_cv_path_install+set}" = set; then
4443    INSTALL=$ac_cv_path_install
4444  else
4445    # As a last resort, use the slow shell script.  We don't cache a
4446    # path for INSTALL within a source directory, because that will
4447    # break other packages using the cache if that directory is
4448    # removed, or if the path is relative.
4449    INSTALL=$ac_install_sh
4450  fi
4451fi
4452echo "$as_me:$LINENO: result: $INSTALL" >&5
4453echo "${ECHO_T}$INSTALL" >&6
4454
4455# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4456# It thinks the first close brace ends the variable substitution.
4457test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4458
4459test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4460
4461test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4462
4463echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4464echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4465# Just in case
4466sleep 1
4467echo timestamp > conftest.file
4468# Do `set' in a subshell so we don't clobber the current shell's
4469# arguments.  Must try -L first in case configure is actually a
4470# symlink; some systems play weird games with the mod time of symlinks
4471# (eg FreeBSD returns the mod time of the symlink's containing
4472# directory).
4473if (
4474   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4475   if test "$*" = "X"; then
4476      # -L didn't work.
4477      set X `ls -t $srcdir/configure conftest.file`
4478   fi
4479   rm -f conftest.file
4480   if test "$*" != "X $srcdir/configure conftest.file" \
4481      && test "$*" != "X conftest.file $srcdir/configure"; then
4482
4483      # If neither matched, then we have a broken ls.  This can happen
4484      # if, for instance, CONFIG_SHELL is bash and it inherits a
4485      # broken ls alias from the environment.  This has actually
4486      # happened.  Such a system could not be considered "sane".
4487      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4488alias in your environment" >&5
4489echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4490alias in your environment" >&2;}
4491   { (exit 1); exit 1; }; }
4492   fi
4493
4494   test "$2" = conftest.file
4495   )
4496then
4497   # Ok.
4498   :
4499else
4500   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4501Check your system clock" >&5
4502echo "$as_me: error: newly created file is older than distributed files!
4503Check your system clock" >&2;}
4504   { (exit 1); exit 1; }; }
4505fi
4506echo "$as_me:$LINENO: result: yes" >&5
4507echo "${ECHO_T}yes" >&6
4508test "$program_prefix" != NONE &&
4509  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4510# Use a double $ so make ignores it.
4511test "$program_suffix" != NONE &&
4512  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4513# Double any \ or $.  echo might interpret backslashes.
4514# By default was `s,x,x', remove it if useless.
4515cat <<\_ACEOF >conftest.sed
4516s/[\\$]/&&/g;s/;s,x,x,$//
4517_ACEOF
4518program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4519rm conftest.sed
4520
4521# expand $ac_aux_dir to an absolute path
4522am_aux_dir=`cd $ac_aux_dir && pwd`
4523
4524test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4525# Use eval to expand $SHELL
4526if eval "$MISSING --run true"; then
4527  am_missing_run="$MISSING --run "
4528else
4529  am_missing_run=
4530  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4531echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4532fi
4533
4534if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4535  # We used to keeping the `.' as first argument, in order to
4536  # allow $(mkdir_p) to be used without argument.  As in
4537  #   $(mkdir_p) $(somedir)
4538  # where $(somedir) is conditionally defined.  However this is wrong
4539  # for two reasons:
4540  #  1. if the package is installed by a user who cannot write `.'
4541  #     make install will fail,
4542  #  2. the above comment should most certainly read
4543  #     $(mkdir_p) $(DESTDIR)$(somedir)
4544  #     so it does not work when $(somedir) is undefined and
4545  #     $(DESTDIR) is not.
4546  #  To support the latter case, we have to write
4547  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4548  #  so the `.' trick is pointless.
4549  mkdir_p='mkdir -p --'
4550else
4551  # On NextStep and OpenStep, the `mkdir' command does not
4552  # recognize any option.  It will interpret all options as
4553  # directories to create, and then abort because `.' already
4554  # exists.
4555  for d in ./-p ./--version;
4556  do
4557    test -d $d && rmdir $d
4558  done
4559  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4560  if test -f "$ac_aux_dir/mkinstalldirs"; then
4561    mkdir_p='$(mkinstalldirs)'
4562  else
4563    mkdir_p='$(install_sh) -d'
4564  fi
4565fi
4566
4567for ac_prog in gawk mawk nawk awk
4568do
4569  # Extract the first word of "$ac_prog", so it can be a program name with args.
4570set dummy $ac_prog; ac_word=$2
4571echo "$as_me:$LINENO: checking for $ac_word" >&5
4572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573if test "${ac_cv_prog_AWK+set}" = set; then
4574  echo $ECHO_N "(cached) $ECHO_C" >&6
4575else
4576  if test -n "$AWK"; then
4577  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4578else
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582  IFS=$as_save_IFS
4583  test -z "$as_dir" && as_dir=.
4584  for ac_exec_ext in '' $ac_executable_extensions; do
4585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586    ac_cv_prog_AWK="$ac_prog"
4587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588    break 2
4589  fi
4590done
4591done
4592
4593fi
4594fi
4595AWK=$ac_cv_prog_AWK
4596if test -n "$AWK"; then
4597  echo "$as_me:$LINENO: result: $AWK" >&5
4598echo "${ECHO_T}$AWK" >&6
4599else
4600  echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
4602fi
4603
4604  test -n "$AWK" && break
4605done
4606
4607echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4608echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4609set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4610if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  cat >conftest.make <<\_ACEOF
4614all:
4615        @echo 'ac_maketemp="$(MAKE)"'
4616_ACEOF
4617# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4618eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4619if test -n "$ac_maketemp"; then
4620  eval ac_cv_prog_make_${ac_make}_set=yes
4621else
4622  eval ac_cv_prog_make_${ac_make}_set=no
4623fi
4624rm -f conftest.make
4625fi
4626if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4627  echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629  SET_MAKE=
4630else
4631  echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633  SET_MAKE="MAKE=${MAKE-make}"
4634fi
4635
4636rm -rf .tst 2>/dev/null
4637mkdir .tst 2>/dev/null
4638if test -d .tst; then
4639  am__leading_dot=.
4640else
4641  am__leading_dot=_
4642fi
4643rmdir .tst 2>/dev/null
4644
4645DEPDIR="${am__leading_dot}deps"
4646
4647          ac_config_commands="$ac_config_commands depfiles"
4648
4649
4650am_make=${MAKE-make}
4651cat > confinc << 'END'
4652am__doit:
4653        @echo done
4654.PHONY: am__doit
4655END
4656# If we don't find an include directive, just comment out the code.
4657echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4658echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4659am__include="#"
4660am__quote=
4661_am_result=none
4662# First try GNU make style include.
4663echo "include confinc" > confmf
4664# We grep out `Entering directory' and `Leaving directory'
4665# messages which can occur if `w' ends up in MAKEFLAGS.
4666# In particular we don't look at `^make:' because GNU make might
4667# be invoked under some other name (usually "gmake"), in which
4668# case it prints its new name instead of `make'.
4669if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4670   am__include=include
4671   am__quote=
4672   _am_result=GNU
4673fi
4674# Now try BSD make style include.
4675if test "$am__include" = "#"; then
4676   echo '.include "confinc"' > confmf
4677   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4678      am__include=.include
4679      am__quote="\""
4680      _am_result=BSD
4681   fi
4682fi
4683
4684
4685echo "$as_me:$LINENO: result: $_am_result" >&5
4686echo "${ECHO_T}$_am_result" >&6
4687rm -f confinc confmf
4688
4689# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4690if test "${enable_dependency_tracking+set}" = set; then
4691  enableval="$enable_dependency_tracking"
4692
4693fi;
4694if test "x$enable_dependency_tracking" != xno; then
4695  am_depcomp="$ac_aux_dir/depcomp"
4696  AMDEPBACKSLASH='\'
4697fi
4698
4699
4700if test "x$enable_dependency_tracking" != xno; then
4701  AMDEP_TRUE=
4702  AMDEP_FALSE='#'
4703else
4704  AMDEP_TRUE='#'
4705  AMDEP_FALSE=
4706fi
4707
4708
4709
4710
4711
4712
4713# AC_MSG_NOTICE([Beginning automake initialisation.])
4714# Stuff for automake
4715# test to see if srcdir already configured
4716if test "`cd $srcdir && pwd`" != "`pwd`" &&
4717   test -f $srcdir/config.status; then
4718  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4719echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4720   { (exit 1); exit 1; }; }
4721fi
4722
4723# test whether we have cygpath
4724if test -z "$CYGPATH_W"; then
4725  if (cygpath --version) >/dev/null 2>/dev/null; then
4726    CYGPATH_W='cygpath -w'
4727  else
4728    CYGPATH_W=echo
4729  fi
4730fi
4731
4732
4733# Define the identity of the package.
4734 PACKAGE='thirdpartysoplex'
4735 VERSION='1.2.3'
4736
4737
4738cat >>confdefs.h <<_ACEOF
4739#define PACKAGE "$PACKAGE"
4740_ACEOF
4741
4742
4743cat >>confdefs.h <<_ACEOF
4744#define VERSION "$VERSION"
4745_ACEOF
4746
4747# Some tools Automake needs.
4748
4749ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4750
4751
4752AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4753
4754
4755AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4756
4757
4758AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4759
4760
4761MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4762
4763install_sh=${install_sh-"$am_aux_dir/install-sh"}
4764
4765# Installed binaries are usually stripped using `strip' when the user
4766# run `make install-strip'.  However `strip' might not be the right
4767# tool to use in cross-compilation environments, therefore Automake
4768# will honor the `STRIP' environment variable to overrule this program.
4769if test "$cross_compiling" != no; then
4770  if test -n "$ac_tool_prefix"; then
4771  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4772set dummy ${ac_tool_prefix}strip; ac_word=$2
4773echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775if test "${ac_cv_prog_STRIP+set}" = set; then
4776  echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778  if test -n "$STRIP"; then
4779  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786  for ac_exec_ext in '' $ac_executable_extensions; do
4787  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793done
4794
4795fi
4796fi
4797STRIP=$ac_cv_prog_STRIP
4798if test -n "$STRIP"; then
4799  echo "$as_me:$LINENO: result: $STRIP" >&5
4800echo "${ECHO_T}$STRIP" >&6
4801else
4802  echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
4804fi
4805
4806fi
4807if test -z "$ac_cv_prog_STRIP"; then
4808  ac_ct_STRIP=$STRIP
4809  # Extract the first word of "strip", so it can be a program name with args.
4810set dummy strip; ac_word=$2
4811echo "$as_me:$LINENO: checking for $ac_word" >&5
4812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4814  echo $ECHO_N "(cached) $ECHO_C" >&6
4815else
4816  if test -n "$ac_ct_STRIP"; then
4817  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822  IFS=$as_save_IFS
4823  test -z "$as_dir" && as_dir=.
4824  for ac_exec_ext in '' $ac_executable_extensions; do
4825  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826    ac_cv_prog_ac_ct_STRIP="strip"
4827    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828    break 2
4829  fi
4830done
4831done
4832
4833  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4834fi
4835fi
4836ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4837if test -n "$ac_ct_STRIP"; then
4838  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4839echo "${ECHO_T}$ac_ct_STRIP" >&6
4840else
4841  echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843fi
4844
4845  STRIP=$ac_ct_STRIP
4846else
4847  STRIP="$ac_cv_prog_STRIP"
4848fi
4849
4850fi
4851INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4852
4853# We need awk for the "check" target.  The system "awk" is bad on
4854# some platforms.
4855# Always define AMTAR for backward compatibility.
4856
4857AMTAR=${AMTAR-"${am_missing_run}tar"}
4858
4859am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4860
4861
4862
4863
4864depcc="$CC"   am_compiler_list=
4865
4866echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4867echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4868if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4872  # We make a subdir and do the tests there.  Otherwise we can end up
4873  # making bogus files that we don't know about and never remove.  For
4874  # instance it was reported that on HP-UX the gcc test will end up
4875  # making a dummy file named `D' -- because `-MD' means `put the output
4876  # in D'.
4877  mkdir conftest.dir
4878  # Copy depcomp to subdir because otherwise we won't find it if we're
4879  # using a relative directory.
4880  cp "$am_depcomp" conftest.dir
4881  cd conftest.dir
4882  # We will build objects and dependencies in a subdirectory because
4883  # it helps to detect inapplicable dependency modes.  For instance
4884  # both Tru64's cc and ICC support -MD to output dependencies as a
4885  # side effect of compilation, but ICC will put the dependencies in
4886  # the current directory while Tru64 will put them in the object
4887  # directory.
4888  mkdir sub
4889
4890  am_cv_CC_dependencies_compiler_type=none
4891  if test "$am_compiler_list" = ""; then
4892     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4893  fi
4894  for depmode in $am_compiler_list; do
4895    # Setup a source with many dependencies, because some compilers
4896    # like to wrap large dependency lists on column 80 (with \), and
4897    # we should not choose a depcomp mode which is confused by this.
4898    #
4899    # We need to recreate these files for each test, as the compiler may
4900    # overwrite some of them when testing with obscure command lines.
4901    # This happens at least with the AIX C compiler.
4902    : > sub/conftest.c
4903    for i in 1 2 3 4 5 6; do
4904      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4905      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4906      # Solaris 8's {/usr,}/bin/sh.
4907      touch sub/conftst$i.h
4908    done
4909    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4910
4911    case $depmode in
4912    nosideeffect)
4913      # after this tag, mechanisms are not by side-effect, so they'll
4914      # only be used when explicitly requested
4915      if test "x$enable_dependency_tracking" = xyes; then
4916        continue
4917      else
4918        break
4919      fi
4920      ;;
4921    none) break ;;
4922    esac
4923    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4924    # mode.  It turns out that the SunPro C++ compiler does not properly
4925    # handle `-M -o', and we need to detect this.
4926    if depmode=$depmode \
4927       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4928       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4929       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4930         >/dev/null 2>conftest.err &&
4931       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4932       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4933       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4934      # icc doesn't choke on unknown options, it will just issue warnings
4935      # or remarks (even with -Werror).  So we grep stderr for any message
4936      # that says an option was ignored or not supported.
4937      # When given -MP, icc 7.0 and 7.1 complain thusly:
4938      #   icc: Command line warning: ignoring option '-M'; no argument required
4939      # The diagnosis changed in icc 8.0:
4940      #   icc: Command line remark: option '-MP' not supported
4941      if (grep 'ignoring option' conftest.err ||
4942          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4943        am_cv_CC_dependencies_compiler_type=$depmode
4944        break
4945      fi
4946    fi
4947  done
4948
4949  cd ..
4950  rm -rf conftest.dir
4951else
4952  am_cv_CC_dependencies_compiler_type=none
4953fi
4954
4955fi
4956echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4957echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4958CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4959
4960
4961
4962if
4963  test "x$enable_dependency_tracking" != xno \
4964  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4965  am__fastdepCC_TRUE=
4966  am__fastdepCC_FALSE='#'
4967else
4968  am__fastdepCC_TRUE='#'
4969  am__fastdepCC_FALSE=
4970fi
4971
4972
4973depcc="$CXX"  am_compiler_list=
4974
4975echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4976echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4977if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4978  echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4981  # We make a subdir and do the tests there.  Otherwise we can end up
4982  # making bogus files that we don't know about and never remove.  For
4983  # instance it was reported that on HP-UX the gcc test will end up
4984  # making a dummy file named `D' -- because `-MD' means `put the output
4985  # in D'.
4986  mkdir conftest.dir
4987  # Copy depcomp to subdir because otherwise we won't find it if we're
4988  # using a relative directory.
4989  cp "$am_depcomp" conftest.dir
4990  cd conftest.dir
4991  # We will build objects and dependencies in a subdirectory because
4992  # it helps to detect inapplicable dependency modes.  For instance
4993  # both Tru64's cc and ICC support -MD to output dependencies as a
4994  # side effect of compilation, but ICC will put the dependencies in
4995  # the current directory while Tru64 will put them in the object
4996  # directory.
4997  mkdir sub
4998
4999  am_cv_CXX_dependencies_compiler_type=none
5000  if test "$am_compiler_list" = ""; then
5001     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5002  fi
5003  for depmode in $am_compiler_list; do
5004    # Setup a source with many dependencies, because some compilers
5005    # like to wrap large dependency lists on column 80 (with \), and
5006    # we should not choose a depcomp mode which is confused by this.
5007    #
5008    # We need to recreate these files for each test, as the compiler may
5009    # overwrite some of them when testing with obscure command lines.
5010    # This happens at least with the AIX C compiler.
5011    : > sub/conftest.c
5012    for i in 1 2 3 4 5 6; do
5013      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5014      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5015      # Solaris 8's {/usr,}/bin/sh.
5016      touch sub/conftst$i.h
5017    done
5018    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5019
5020    case $depmode in
5021    nosideeffect)
5022      # after this tag, mechanisms are not by side-effect, so they'll
5023      # only be used when explicitly requested
5024      if test "x$enable_dependency_tracking" = xyes; then
5025        continue
5026      else
5027        break
5028      fi
5029      ;;
5030    none) break ;;
5031    esac
5032    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5033    # mode.  It turns out that the SunPro C++ compiler does not properly
5034    # handle `-M -o', and we need to detect this.
5035    if depmode=$depmode \
5036       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5037       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5038       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5039         >/dev/null 2>conftest.err &&
5040       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5041       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5042       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5043      # icc doesn't choke on unknown options, it will just issue warnings
5044      # or remarks (even with -Werror).  So we grep stderr for any message
5045      # that says an option was ignored or not supported.
5046      # When given -MP, icc 7.0 and 7.1 complain thusly:
5047      #   icc: Command line warning: ignoring option '-M'; no argument required
5048      # The diagnosis changed in icc 8.0:
5049      #   icc: Command line remark: option '-MP' not supported
5050      if (grep 'ignoring option' conftest.err ||
5051          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5052        am_cv_CXX_dependencies_compiler_type=$depmode
5053        break
5054      fi
5055    fi
5056  done
5057
5058  cd ..
5059  rm -rf conftest.dir
5060else
5061  am_cv_CXX_dependencies_compiler_type=none
5062fi
5063
5064fi
5065echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5066echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5067CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5068
5069
5070
5071if
5072  test "x$enable_dependency_tracking" != xno \
5073  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5074  am__fastdepCXX_TRUE=
5075  am__fastdepCXX_FALSE='#'
5076else
5077  am__fastdepCXX_TRUE='#'
5078  am__fastdepCXX_FALSE=
5079fi
5080
5081
5082
5083echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5084echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5085    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5086if test "${enable_maintainer_mode+set}" = set; then
5087  enableval="$enable_maintainer_mode"
5088  USE_MAINTAINER_MODE=$enableval
5089else
5090  USE_MAINTAINER_MODE=no
5091fi;
5092  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5093echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5094
5095
5096if test $USE_MAINTAINER_MODE = yes; then
5097  MAINTAINER_MODE_TRUE=
5098  MAINTAINER_MODE_FALSE='#'
5099else
5100  MAINTAINER_MODE_TRUE='#'
5101  MAINTAINER_MODE_FALSE=
5102fi
5103
5104  MAINT=$MAINTAINER_MODE_TRUE
5105
5106
5107
5108coin_have_externals=no
5109if test "$enable_maintainer_mode" = yes; then
5110
5111  # If maintainer mode is chosen, we make sure that the correct versions
5112  # of the tools are used, and that we know where libtool.m4 is (to
5113  # recreate acinclude.m4)
5114
5115
5116  LIBTOOLM4=
5117  # Normally, $HOME
5118  AUTOTOOLS_DFLT=$HOME
5119
5120  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5121echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5122if test "${ac_cv_use_correct_autotools+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125  ac_cv_use_correct_autotools=check
5126fi
5127echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5128echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5129
5130  if test $ac_cv_use_correct_autotools = check; then
5131    ac_cv_use_correct_autotools=yes
5132    # Check if we have autoconf
5133    # Extract the first word of "autoconf", so it can be a program name with args.
5134set dummy autoconf; ac_word=$2
5135echo "$as_me:$LINENO: checking for $ac_word" >&5
5136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5137if test "${ac_cv_prog_have_autoconf+set}" = set; then
5138  echo $ECHO_N "(cached) $ECHO_C" >&6
5139else
5140  if test -n "$have_autoconf"; then
5141  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5142else
5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144for as_dir in $PATH
5145do
5146  IFS=$as_save_IFS
5147  test -z "$as_dir" && as_dir=.
5148  for ac_exec_ext in '' $ac_executable_extensions; do
5149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150    ac_cv_prog_have_autoconf="yes"
5151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152    break 2
5153  fi
5154done
5155done
5156
5157  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5158fi
5159fi
5160have_autoconf=$ac_cv_prog_have_autoconf
5161if test -n "$have_autoconf"; then
5162  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5163echo "${ECHO_T}$have_autoconf" >&6
5164else
5165  echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167fi
5168
5169    if test $have_autoconf = no; then
5170      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5171echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5172   { (exit 1); exit 1; }; }
5173    fi
5174
5175    # Check whether autoconf is the correct version
5176    correct_version='2.59'
5177    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5178    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5179echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5180    autoconf --version > confauto.out 2>&1
5181    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5182      echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
5184    else
5185      rm -f confauto.out
5186      echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
5188      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5189echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5190   { (exit 1); exit 1; }; }
5191    fi
5192    rm -f confauto.out
5193
5194    # Check if the executable autoconf is picked up from the correct location
5195    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5196echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5197    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5198    autoconf_dir=`cd $autoconf_dir; pwd`
5199    if test x$AUTOTOOLS_DIR = x; then
5200      want_dir=$AUTOTOOLS_DFLT/bin
5201    else
5202      want_dir=$AUTOTOOLS_DIR/bin
5203    fi
5204    if test $autoconf_dir = `cd $want_dir; pwd`; then
5205      echo "$as_me:$LINENO: result: yes" >&5
5206echo "${ECHO_T}yes" >&6
5207    else
5208      rm -f confauto.out
5209      echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5212echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5213   { (exit 1); exit 1; }; }
5214    fi
5215
5216    # Check if we have automake
5217    # Extract the first word of "automake", so it can be a program name with args.
5218set dummy automake; ac_word=$2
5219echo "$as_me:$LINENO: checking for $ac_word" >&5
5220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221if test "${ac_cv_prog_have_automake+set}" = set; then
5222  echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224  if test -n "$have_automake"; then
5225  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230  IFS=$as_save_IFS
5231  test -z "$as_dir" && as_dir=.
5232  for ac_exec_ext in '' $ac_executable_extensions; do
5233  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234    ac_cv_prog_have_automake="yes"
5235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236    break 2
5237  fi
5238done
5239done
5240
5241  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5242fi
5243fi
5244have_automake=$ac_cv_prog_have_automake
5245if test -n "$have_automake"; then
5246  echo "$as_me:$LINENO: result: $have_automake" >&5
5247echo "${ECHO_T}$have_automake" >&6
5248else
5249  echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251fi
5252
5253    if test $have_automake = no; then
5254      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5255echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5256   { (exit 1); exit 1; }; }
5257    fi
5258
5259    # Check whether automake is the correct version
5260    correct_version='1.9.6'
5261    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5262    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5263echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5264    automake --version > confauto.out 2>&1
5265    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5266      echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268    else
5269      rm -f confauto.out
5270      echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5273echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5274   { (exit 1); exit 1; }; }
5275    fi
5276    rm -f confauto.out
5277
5278    # Check if the executable automake is picked up from the correct location
5279    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5280echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5281    automake_dir=`which automake | sed -e 's=/automake=='`
5282    automake_dir=`cd $automake_dir; pwd`
5283    if test x$AUTOTOOLS_DIR = x; then
5284      want_dir=$AUTOTOOLS_DFLT/bin
5285    else
5286      want_dir=$AUTOTOOLS_DIR/bin
5287    fi
5288    if test $automake_dir = `cd $want_dir; pwd`; then
5289      echo "$as_me:$LINENO: result: yes" >&5
5290echo "${ECHO_T}yes" >&6
5291    else
5292      rm -f confauto.out
5293      echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5296echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5297   { (exit 1); exit 1; }; }
5298    fi
5299
5300    # Check if this is the correct version of libtool (with escaped dots)
5301    if test x$AUTOTOOLS_DIR = x; then
5302      want_dir=$AUTOTOOLS_DFLT/share
5303    else
5304      want_dir=$AUTOTOOLS_DIR/share
5305    fi
5306    correct_version='1.5.22'
5307    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5308    if test -r $want_dir/libtool/ltmain.sh; then
5309  have_ltmain=yes
5310  :
5311else
5312  have_ltmain=no
5313  :
5314fi
5315
5316    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5317echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5318    if test $have_ltmain = yes; then
5319    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5320        echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322      else
5323        echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5326echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5327   { (exit 1); exit 1; }; }
5328      fi
5329    else
5330      echo "$as_me:$LINENO: result: no" >&5
5331echo "${ECHO_T}no" >&6
5332      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5333echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5334   { (exit 1); exit 1; }; }
5335    fi
5336  fi
5337
5338  # Check if we can find the libtool file
5339  if test x$AUTOTOOLS_DIR = x; then
5340    want_dir=$AUTOTOOLS_DFLT/share
5341  else
5342    want_dir=$AUTOTOOLS_DIR/share
5343  fi
5344  if test -r $want_dir/aclocal/libtool.m4; then
5345  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5346  :
5347else
5348  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5349echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5350   { (exit 1); exit 1; }; }
5351  :
5352fi
5353
5354
5355  # Check if we have an Dependencies file
5356  if test -r $srcdir/Dependencies; then
5357    coin_have_externals=yes
5358  fi
5359  # Check if subversion is installed and understands https
5360  # Extract the first word of "svn", so it can be a program name with args.
5361set dummy svn; ac_word=$2
5362echo "$as_me:$LINENO: checking for $ac_word" >&5
5363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5364if test "${ac_cv_prog_have_svn+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  if test -n "$have_svn"; then
5368  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5369else
5370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371for as_dir in $PATH
5372do
5373  IFS=$as_save_IFS
5374  test -z "$as_dir" && as_dir=.
5375  for ac_exec_ext in '' $ac_executable_extensions; do
5376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377    ac_cv_prog_have_svn="yes"
5378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5379    break 2
5380  fi
5381done
5382done
5383
5384  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5385fi
5386fi
5387have_svn=$ac_cv_prog_have_svn
5388if test -n "$have_svn"; then
5389  echo "$as_me:$LINENO: result: $have_svn" >&5
5390echo "${ECHO_T}$have_svn" >&6
5391else
5392  echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394fi
5395
5396  if test x$have_svn = xyes; then
5397    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5398echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5399if test "${ac_cv_svn_understands_https+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  svn --version > confauto.out 2>&1
5403                    if $EGREP https confauto.out >/dev/null 2>&1; then
5404                      ac_cv_svn_understands_https=yes
5405                    else
5406                      ac_cv_svn_understands_https=no
5407                      have_svn=no
5408                      ac_cv_prog_have_svn=no
5409                    fi
5410                    rm -f confauto.out
5411fi
5412echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5413echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5414  fi
5415
5416  # Find the location of the BuildTools directory
5417  BUILDTOOLSDIR=
5418  if test -r $srcdir/BuildTools/coin.m4; then
5419    BUILDTOOLSDIR=$srcdir/BuildTools
5420  else
5421    if test -r $srcdir/../BuildTools/coin.m4; then
5422      BUILDTOOLSDIR=$srcdir/../BuildTools
5423    else
5424      if test -r $srcdir/../../BuildTools/coin.m4; then
5425        BUILDTOOLSDIR=$srcdir/../../BuildTools
5426      else
5427        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5428echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5429   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5430      fi
5431    fi
5432  fi
5433
5434
5435  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5436  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5437    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5438  fi
5439
5440  # The following variable is set to the name of the directory where
5441  # the autotool scripts are located
5442
5443  AUX_DIR=$ac_aux_dir
5444fi
5445
5446# helpful variable for the base directory of this package
5447abs_source_dir=`cd $srcdir; pwd`
5448
5449
5450# Stuff for example Makefiles
5451if test x$prefix = xNONE; then
5452  full_prefix=$ac_default_prefix
5453else
5454  full_prefix=$prefix
5455fi
5456full_prefix=`cd $full_prefix ; pwd`
5457
5458abs_lib_dir=$full_prefix/lib
5459
5460abs_include_dir=$full_prefix/include
5461
5462abs_bin_dir=$full_prefix/bin
5463
5464
5465
5466if test $coin_have_externals = yes && test x$have_svn = xyes; then
5467  HAVE_EXTERNALS_TRUE=
5468  HAVE_EXTERNALS_FALSE='#'
5469else
5470  HAVE_EXTERNALS_TRUE='#'
5471  HAVE_EXTERNALS_FALSE=
5472fi
5473
5474
5475# AC_MSG_NOTICE([End automake initialisation.])
5476
5477
5478
5479LIBTOOL=
5480if test -f ../libtool; then
5481  coin_config_dir=..
5482  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5483fi
5484if test "x$LIBTOOL" = x; then
5485  if test -f ../../libtool; then
5486    coin_config_dir=../..
5487    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5488  fi
5489fi
5490
5491if test "x$LIBTOOL" = x; then
5492# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5493  # Stuff for libtool
5494  # Check whether --enable-shared or --disable-shared was given.
5495if test "${enable_shared+set}" = set; then
5496  enableval="$enable_shared"
5497  p=${PACKAGE-default}
5498    case $enableval in
5499    yes) enable_shared=yes ;;
5500    no) enable_shared=no ;;
5501    *)
5502      enable_shared=no
5503      # Look at the argument we got.  We use all the common list separators.
5504      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5505      for pkg in $enableval; do
5506        IFS="$lt_save_ifs"
5507        if test "X$pkg" = "X$p"; then
5508          enable_shared=yes
5509        fi
5510      done
5511      IFS="$lt_save_ifs"
5512      ;;
5513    esac
5514else
5515  enable_shared=yes
5516fi;
5517
5518# Check whether --enable-fast-install or --disable-fast-install was given.
5519if test "${enable_fast_install+set}" = set; then
5520  enableval="$enable_fast_install"
5521  p=${PACKAGE-default}
5522    case $enableval in
5523    yes) enable_fast_install=yes ;;
5524    no) enable_fast_install=no ;;
5525    *)
5526      enable_fast_install=no
5527      # Look at the argument we got.  We use all the common list separators.
5528      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5529      for pkg in $enableval; do
5530        IFS="$lt_save_ifs"
5531        if test "X$pkg" = "X$p"; then
5532          enable_fast_install=yes
5533        fi
5534      done
5535      IFS="$lt_save_ifs"
5536      ;;
5537    esac
5538else
5539  enable_fast_install=yes
5540fi;
5541
5542echo "$as_me:$LINENO: checking host system type" >&5
5543echo $ECHO_N "checking host system type... $ECHO_C" >&6
5544if test "${ac_cv_host+set}" = set; then
5545  echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547  ac_cv_host_alias=$host_alias
5548test -z "$ac_cv_host_alias" &&
5549  ac_cv_host_alias=$ac_cv_build_alias
5550ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5551  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5552echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5553   { (exit 1); exit 1; }; }
5554
5555fi
5556echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5557echo "${ECHO_T}$ac_cv_host" >&6
5558host=$ac_cv_host
5559host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5560host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5561host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5562
5563
5564echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5565echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5566if test "${lt_cv_path_SED+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569  # Loop through the user's path and test for sed and gsed.
5570# Then use that list of sed's as ones to test for truncation.
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574  IFS=$as_save_IFS
5575  test -z "$as_dir" && as_dir=.
5576  for lt_ac_prog in sed gsed; do
5577    for ac_exec_ext in '' $ac_executable_extensions; do
5578      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5579        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5580      fi
5581    done
5582  done
5583done
5584lt_ac_max=0
5585lt_ac_count=0
5586# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5587# along with /bin/sed that truncates output.
5588for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5589  test ! -f $lt_ac_sed && continue
5590  cat /dev/null > conftest.in
5591  lt_ac_count=0
5592  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5593  # Check for GNU sed and select it if it is found.
5594  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5595    lt_cv_path_SED=$lt_ac_sed
5596    break
5597  fi
5598  while true; do
5599    cat conftest.in conftest.in >conftest.tmp
5600    mv conftest.tmp conftest.in
5601    cp conftest.in conftest.nl
5602    echo >>conftest.nl
5603    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5604    cmp -s conftest.out conftest.nl || break
5605    # 10000 chars as input seems more than enough
5606    test $lt_ac_count -gt 10 && break
5607    lt_ac_count=`expr $lt_ac_count + 1`
5608    if test $lt_ac_count -gt $lt_ac_max; then
5609      lt_ac_max=$lt_ac_count
5610      lt_cv_path_SED=$lt_ac_sed
5611    fi
5612  done
5613done
5614
5615fi
5616
5617SED=$lt_cv_path_SED
5618echo "$as_me:$LINENO: result: $SED" >&5
5619echo "${ECHO_T}$SED" >&6
5620
5621
5622# Check whether --with-gnu-ld or --without-gnu-ld was given.
5623if test "${with_gnu_ld+set}" = set; then
5624  withval="$with_gnu_ld"
5625  test "$withval" = no || with_gnu_ld=yes
5626else
5627  with_gnu_ld=no
5628fi;
5629ac_prog=ld
5630if test "$GCC" = yes; then
5631  # Check if gcc -print-prog-name=ld gives a path.
5632  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5633echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5634  case $host in
5635  *-*-mingw*)
5636    # gcc leaves a trailing carriage return which upsets mingw
5637    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5638  *)
5639    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5640  esac
5641  case $ac_prog in
5642    # Accept absolute paths.
5643    [\\/]* | ?:[\\/]*)
5644      re_direlt='/[^/][^/]*/\.\./'
5645      # Canonicalize the pathname of ld
5646      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5647      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5648        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5649      done
5650      test -z "$LD" && LD="$ac_prog"
5651      ;;
5652  "")
5653    # If it fails, then pretend we aren't using GCC.
5654    ac_prog=ld
5655    ;;
5656  *)
5657    # If it is relative, then search for the first ld in PATH.
5658    with_gnu_ld=unknown
5659    ;;
5660  esac
5661elif test "$with_gnu_ld" = yes; then
5662  echo "$as_me:$LINENO: checking for GNU ld" >&5
5663echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5664else
5665  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5666echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5667fi
5668if test "${lt_cv_path_LD+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  if test -z "$LD"; then
5672  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673  for ac_dir in $PATH; do
5674    IFS="$lt_save_ifs"
5675    test -z "$ac_dir" && ac_dir=.
5676    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5677      lt_cv_path_LD="$ac_dir/$ac_prog"
5678      # Check to see if the program is GNU ld.  I'd rather use --version,
5679      # but apparently some variants of GNU ld only accept -v.
5680      # Break only if it was the GNU/non-GNU ld that we prefer.
5681      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5682      *GNU* | *'with BFD'*)
5683        test "$with_gnu_ld" != no && break
5684        ;;
5685      *)
5686        test "$with_gnu_ld" != yes && break
5687        ;;
5688      esac
5689    fi
5690  done
5691  IFS="$lt_save_ifs"
5692else
5693  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5694fi
5695fi
5696
5697LD="$lt_cv_path_LD"
5698if test -n "$LD"; then
5699  echo "$as_me:$LINENO: result: $LD" >&5
5700echo "${ECHO_T}$LD" >&6
5701else
5702  echo "$as_me:$LINENO: result: no" >&5
5703echo "${ECHO_T}no" >&6
5704fi
5705test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5706echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5707   { (exit 1); exit 1; }; }
5708echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5709echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5710if test "${lt_cv_prog_gnu_ld+set}" = set; then
5711  echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5714case `$LD -v 2>&1 </dev/null` in
5715*GNU* | *'with BFD'*)
5716  lt_cv_prog_gnu_ld=yes
5717  ;;
5718*)
5719  lt_cv_prog_gnu_ld=no
5720  ;;
5721esac
5722fi
5723echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5724echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5725with_gnu_ld=$lt_cv_prog_gnu_ld
5726
5727
5728echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5729echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5730if test "${lt_cv_ld_reload_flag+set}" = set; then
5731  echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733  lt_cv_ld_reload_flag='-r'
5734fi
5735echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5736echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5737reload_flag=$lt_cv_ld_reload_flag
5738case $reload_flag in
5739"" | " "*) ;;
5740*) reload_flag=" $reload_flag" ;;
5741esac
5742reload_cmds='$LD$reload_flag -o $output$reload_objs'
5743case $host_os in
5744  darwin*)
5745    if test "$GCC" = yes; then
5746      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5747    else
5748      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5749    fi
5750    ;;
5751esac
5752
5753echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5754echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5755if test "${lt_cv_path_NM+set}" = set; then
5756  echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758  if test -n "$NM"; then
5759  # Let the user override the test.
5760  lt_cv_path_NM="$NM"
5761else
5762  lt_nm_to_check="${ac_tool_prefix}nm"
5763  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5764    lt_nm_to_check="$lt_nm_to_check nm"
5765  fi
5766  for lt_tmp_nm in $lt_nm_to_check; do
5767    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5768    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5769      IFS="$lt_save_ifs"
5770      test -z "$ac_dir" && ac_dir=.
5771      tmp_nm="$ac_dir/$lt_tmp_nm"
5772      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5773        # Check to see if the nm accepts a BSD-compat flag.
5774        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5775        #   nm: unknown option "B" ignored
5776        # Tru64's nm complains that /dev/null is an invalid object file
5777        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5778        */dev/null* | *'Invalid file or object type'*)
5779          lt_cv_path_NM="$tmp_nm -B"
5780          break
5781          ;;
5782        *)
5783          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5784          */dev/null*)
5785            lt_cv_path_NM="$tmp_nm -p"
5786            break
5787            ;;
5788          *)
5789            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5790            continue # so that we can try to find one that supports BSD flags
5791            ;;
5792          esac
5793          ;;
5794        esac
5795      fi
5796    done
5797    IFS="$lt_save_ifs"
5798  done
5799  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5800fi
5801fi
5802echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5803echo "${ECHO_T}$lt_cv_path_NM" >&6
5804NM="$lt_cv_path_NM"
5805
5806echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5807echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5808if test "${lt_cv_deplibs_check_method+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  lt_cv_file_magic_cmd='$MAGIC_CMD'
5812lt_cv_file_magic_test_file=
5813lt_cv_deplibs_check_method='unknown'
5814# Need to set the preceding variable on all platforms that support
5815# interlibrary dependencies.
5816# 'none' -- dependencies not supported.
5817# `unknown' -- same as none, but documents that we really don't know.
5818# 'pass_all' -- all dependencies passed with no checks.
5819# 'test_compile' -- check by making test program.
5820# 'file_magic [[regex]]' -- check by looking for files in library path
5821# which responds to the $file_magic_cmd with a given extended regex.
5822# If you have `file' or equivalent on your system and you're not sure
5823# whether `pass_all' will *always* work, you probably want this one.
5824
5825case $host_os in
5826aix4* | aix5*)
5827  lt_cv_deplibs_check_method=pass_all
5828  ;;
5829
5830beos*)
5831  lt_cv_deplibs_check_method=pass_all
5832  ;;
5833
5834bsdi[45]*)
5835  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5836  lt_cv_file_magic_cmd='/usr/bin/file -L'
5837  lt_cv_file_magic_test_file=/shlib/libc.so
5838  ;;
5839
5840cygwin*)
5841  # func_win32_libid is a shell function defined in ltmain.sh
5842  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5843  lt_cv_file_magic_cmd='func_win32_libid'
5844  ;;
5845
5846mingw* | pw32*)
5847  # Base MSYS/MinGW do not provide the 'file' command needed by
5848  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5849  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5850  lt_cv_file_magic_cmd='$OBJDUMP -f'
5851  ;;
5852
5853darwin* | rhapsody*)
5854  lt_cv_deplibs_check_method=pass_all
5855  ;;
5856
5857freebsd* | kfreebsd*-gnu | dragonfly*)
5858  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5859    case $host_cpu in
5860    i*86 )
5861      # Not sure whether the presence of OpenBSD here was a mistake.
5862      # Let's accept both of them until this is cleared up.
5863      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5864      lt_cv_file_magic_cmd=/usr/bin/file
5865      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5866      ;;
5867    esac
5868  else
5869    lt_cv_deplibs_check_method=pass_all
5870  fi
5871  ;;
5872
5873gnu*)
5874  lt_cv_deplibs_check_method=pass_all
5875  ;;
5876
5877hpux10.20* | hpux11*)
5878  lt_cv_file_magic_cmd=/usr/bin/file
5879  case $host_cpu in
5880  ia64*)
5881    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5882    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5883    ;;
5884  hppa*64*)
5885    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]'
5886    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5887    ;;
5888  *)
5889    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5890    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5891    ;;
5892  esac
5893  ;;
5894
5895interix3*)
5896  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5897  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5898  ;;
5899
5900irix5* | irix6* | nonstopux*)
5901  case $LD in
5902  *-32|*"-32 ") libmagic=32-bit;;
5903  *-n32|*"-n32 ") libmagic=N32;;
5904  *-64|*"-64 ") libmagic=64-bit;;
5905  *) libmagic=never-match;;
5906  esac
5907  lt_cv_deplibs_check_method=pass_all
5908  ;;
5909
5910# This must be Linux ELF.
5911linux*)
5912  lt_cv_deplibs_check_method=pass_all
5913  ;;
5914
5915netbsd*)
5916  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5918  else
5919    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5920  fi
5921  ;;
5922
5923newos6*)
5924  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5925  lt_cv_file_magic_cmd=/usr/bin/file
5926  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5927  ;;
5928
5929nto-qnx*)
5930  lt_cv_deplibs_check_method=unknown
5931  ;;
5932
5933openbsd*)
5934  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5935    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5936  else
5937    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5938  fi
5939  ;;
5940
5941osf3* | osf4* | osf5*)
5942  lt_cv_deplibs_check_method=pass_all
5943  ;;
5944
5945solaris*)
5946  lt_cv_deplibs_check_method=pass_all
5947  ;;
5948
5949sysv4 | sysv4.3*)
5950  case $host_vendor in
5951  motorola)
5952    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]'
5953    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5954    ;;
5955  ncr)
5956    lt_cv_deplibs_check_method=pass_all
5957    ;;
5958  sequent)
5959    lt_cv_file_magic_cmd='/bin/file'
5960    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5961    ;;
5962  sni)
5963    lt_cv_file_magic_cmd='/bin/file'
5964    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5965    lt_cv_file_magic_test_file=/lib/libc.so
5966    ;;
5967  siemens)
5968    lt_cv_deplibs_check_method=pass_all
5969    ;;
5970  pc)
5971    lt_cv_deplibs_check_method=pass_all
5972    ;;
5973  esac
5974  ;;
5975
5976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979esac
5980
5981fi
5982echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5983echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5984file_magic_cmd=$lt_cv_file_magic_cmd
5985deplibs_check_method=$lt_cv_deplibs_check_method
5986test -z "$deplibs_check_method" && deplibs_check_method=unknown
5987
5988
5989
5990
5991# If no C compiler was specified, use CC.
5992LTCC=${LTCC-"$CC"}
5993
5994# If no C compiler flags were specified, use CFLAGS.
5995LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5996
5997# Allow CC to be a program name with arguments.
5998compiler=$CC
5999
6000# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6001if test "${enable_libtool_lock+set}" = set; then
6002  enableval="$enable_libtool_lock"
6003
6004fi;
6005test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6006
6007# Some flags need to be propagated to the compiler or linker for good
6008# libtool support.
6009case $host in
6010ia64-*-hpux*)
6011  # Find out which ABI we are using.
6012  echo 'int i;' > conftest.$ac_ext
6013  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014  (eval $ac_compile) 2>&5
6015  ac_status=$?
6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017  (exit $ac_status); }; then
6018    case `/usr/bin/file conftest.$ac_objext` in
6019    *ELF-32*)
6020      HPUX_IA64_MODE="32"
6021      ;;
6022    *ELF-64*)
6023      HPUX_IA64_MODE="64"
6024      ;;
6025    esac
6026  fi
6027  rm -rf conftest*
6028  ;;
6029*-*-irix6*)
6030  # Find out which ABI we are using.
6031  echo '#line 6031 "configure"' > conftest.$ac_ext
6032  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033  (eval $ac_compile) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; then
6037   if test "$lt_cv_prog_gnu_ld" = yes; then
6038    case `/usr/bin/file conftest.$ac_objext` in
6039    *32-bit*)
6040      LD="${LD-ld} -melf32bsmip"
6041      ;;
6042    *N32*)
6043      LD="${LD-ld} -melf32bmipn32"
6044      ;;
6045    *64-bit*)
6046      LD="${LD-ld} -melf64bmip"
6047      ;;
6048    esac
6049   else
6050    case `/usr/bin/file conftest.$ac_objext` in
6051    *32-bit*)
6052      LD="${LD-ld} -32"
6053      ;;
6054    *N32*)
6055      LD="${LD-ld} -n32"
6056      ;;
6057    *64-bit*)
6058      LD="${LD-ld} -64"
6059      ;;
6060    esac
6061   fi
6062  fi
6063  rm -rf conftest*
6064  ;;
6065
6066x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6067  # Find out which ABI we are using.
6068  echo 'int i;' > conftest.$ac_ext
6069  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070  (eval $ac_compile) 2>&5
6071  ac_status=$?
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); }; then
6074    case `/usr/bin/file conftest.o` in
6075    *32-bit*)
6076      case $host in
6077        x86_64-*linux*)
6078          LD="${LD-ld} -m elf_i386"
6079          ;;
6080        ppc64-*linux*|powerpc64-*linux*)
6081          LD="${LD-ld} -m elf32ppclinux"
6082          ;;
6083        s390x-*linux*)
6084          LD="${LD-ld} -m elf_s390"
6085          ;;
6086        sparc64-*linux*)
6087          LD="${LD-ld} -m elf32_sparc"
6088          ;;
6089      esac
6090      ;;
6091    *64-bit*)
6092      case $host in
6093        x86_64-*linux*)
6094          LD="${LD-ld} -m elf_x86_64"
6095          ;;
6096        ppc*-*linux*|powerpc*-*linux*)
6097          LD="${LD-ld} -m elf64ppc"
6098          ;;
6099        s390*-*linux*)
6100          LD="${LD-ld} -m elf64_s390"
6101          ;;
6102        sparc*-*linux*)
6103          LD="${LD-ld} -m elf64_sparc"
6104          ;;
6105      esac
6106      ;;
6107    esac
6108  fi
6109  rm -rf conftest*
6110  ;;
6111
6112*-*-sco3.2v5*)
6113  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6114  SAVE_CFLAGS="$CFLAGS"
6115  CFLAGS="$CFLAGS -belf"
6116  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6117echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6118if test "${lt_cv_cc_needs_belf+set}" = set; then
6119  echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121  ac_ext=c
6122ac_cpp='$CPP $CPPFLAGS'
6123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
6127     cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h.  */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h.  */
6133
6134int
6135main ()
6136{
6137
6138  ;
6139  return 0;
6140}
6141_ACEOF
6142rm -f conftest.$ac_objext conftest$ac_exeext
6143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144  (eval $ac_link) 2>conftest.er1
6145  ac_status=$?
6146  grep -v '^ *+' conftest.er1 >conftest.err
6147  rm -f conftest.er1
6148  cat conftest.err >&5
6149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150  (exit $ac_status); } &&
6151         { ac_try='test -z "$ac_c_werror_flag"
6152                         || test ! -s conftest.err'
6153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154  (eval $ac_try) 2>&5
6155  ac_status=$?
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); }; } &&
6158         { ac_try='test -s conftest$ac_exeext'
6159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160  (eval $ac_try) 2>&5
6161  ac_status=$?
6162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163  (exit $ac_status); }; }; then
6164  lt_cv_cc_needs_belf=yes
6165else
6166  echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5
6168
6169lt_cv_cc_needs_belf=no
6170fi
6171rm -f conftest.err conftest.$ac_objext \
6172      conftest$ac_exeext conftest.$ac_ext
6173     ac_ext=c
6174ac_cpp='$CPP $CPPFLAGS'
6175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179fi
6180echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6181echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6182  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6183    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6184    CFLAGS="$SAVE_CFLAGS"
6185  fi
6186  ;;
6187sparc*-*solaris*)
6188  # Find out which ABI we are using.
6189  echo 'int i;' > conftest.$ac_ext
6190  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191  (eval $ac_compile) 2>&5
6192  ac_status=$?
6193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194  (exit $ac_status); }; then
6195    case `/usr/bin/file conftest.o` in
6196    *64-bit*)
6197      case $lt_cv_prog_gnu_ld in
6198      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6199      *)    LD="${LD-ld} -64" ;;
6200      esac
6201      ;;
6202    esac
6203  fi
6204  rm -rf conftest*
6205  ;;
6206
6207
6208esac
6209
6210need_locks="$enable_libtool_lock"
6211
6212
6213ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6219echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6220# On Suns, sometimes $CPP names a directory.
6221if test -n "$CPP" && test -d "$CPP"; then
6222  CPP=
6223fi
6224if test -z "$CPP"; then
6225  if test "${ac_cv_prog_CPP+set}" = set; then
6226  echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228      # Double quotes because CPP needs to be expanded
6229    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6230    do
6231      ac_preproc_ok=false
6232for ac_c_preproc_warn_flag in '' yes
6233do
6234  # Use a header file that comes with gcc, so configuring glibc
6235  # with a fresh cross-compiler works.
6236  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6237  # <limits.h> exists even on freestanding compilers.
6238  # On the NeXT, cc -E runs the code through the compiler's parser,
6239  # not just through cpp. "Syntax error" is here to catch this case.
6240  cat >conftest.$ac_ext <<_ACEOF
6241/* confdefs.h.  */
6242_ACEOF
6243cat confdefs.h >>conftest.$ac_ext
6244cat >>conftest.$ac_ext <<_ACEOF
6245/* end confdefs.h.  */
6246#ifdef __STDC__
6247# include <limits.h>
6248#else
6249# include <assert.h>
6250#endif
6251                     Syntax error
6252_ACEOF
6253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6255  ac_status=$?
6256  grep -v '^ *+' conftest.er1 >conftest.err
6257  rm -f conftest.er1
6258  cat conftest.err >&5
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); } >/dev/null; then
6261  if test -s conftest.err; then
6262    ac_cpp_err=$ac_c_preproc_warn_flag
6263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6264  else
6265    ac_cpp_err=
6266  fi
6267else
6268  ac_cpp_err=yes
6269fi
6270if test -z "$ac_cpp_err"; then
6271  :
6272else
6273  echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276  # Broken: fails on valid input.
6277continue
6278fi
6279rm -f conftest.err conftest.$ac_ext
6280
6281  # OK, works on sane cases.  Now check whether non-existent headers
6282  # can be detected and how.
6283  cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h.  */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h.  */
6289#include <ac_nonexistent.h>
6290_ACEOF
6291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6293  ac_status=$?
6294  grep -v '^ *+' conftest.er1 >conftest.err
6295  rm -f conftest.er1
6296  cat conftest.err >&5
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); } >/dev/null; then
6299  if test -s conftest.err; then
6300    ac_cpp_err=$ac_c_preproc_warn_flag
6301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6302  else
6303    ac_cpp_err=
6304  fi
6305else
6306  ac_cpp_err=yes
6307fi
6308if test -z "$ac_cpp_err"; then
6309  # Broken: success on invalid input.
6310continue
6311else
6312  echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315  # Passes both tests.
6316ac_preproc_ok=:
6317break
6318fi
6319rm -f conftest.err conftest.$ac_ext
6320
6321done
6322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6323rm -f conftest.err conftest.$ac_ext
6324if $ac_preproc_ok; then
6325  break
6326fi
6327
6328    done
6329    ac_cv_prog_CPP=$CPP
6330
6331fi
6332  CPP=$ac_cv_prog_CPP
6333else
6334  ac_cv_prog_CPP=$CPP
6335fi
6336echo "$as_me:$LINENO: result: $CPP" >&5
6337echo "${ECHO_T}$CPP" >&6
6338ac_preproc_ok=false
6339for ac_c_preproc_warn_flag in '' yes
6340do
6341  # Use a header file that comes with gcc, so configuring glibc
6342  # with a fresh cross-compiler works.
6343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344  # <limits.h> exists even on freestanding compilers.
6345  # On the NeXT, cc -E runs the code through the compiler's parser,
6346  # not just through cpp. "Syntax error" is here to catch this case.
6347  cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h.  */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h.  */
6353#ifdef __STDC__
6354# include <limits.h>
6355#else
6356# include <assert.h>
6357#endif
6358                     Syntax error
6359_ACEOF
6360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362  ac_status=$?
6363  grep -v '^ *+' conftest.er1 >conftest.err
6364  rm -f conftest.er1
6365  cat conftest.err >&5
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } >/dev/null; then
6368  if test -s conftest.err; then
6369    ac_cpp_err=$ac_c_preproc_warn_flag
6370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371  else
6372    ac_cpp_err=
6373  fi
6374else
6375  ac_cpp_err=yes
6376fi
6377if test -z "$ac_cpp_err"; then
6378  :
6379else
6380  echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383  # Broken: fails on valid input.
6384continue
6385fi
6386rm -f conftest.err conftest.$ac_ext
6387
6388  # OK, works on sane cases.  Now check whether non-existent headers
6389  # can be detected and how.
6390  cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h.  */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h.  */
6396#include <ac_nonexistent.h>
6397_ACEOF
6398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6399  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6400  ac_status=$?
6401  grep -v '^ *+' conftest.er1 >conftest.err
6402  rm -f conftest.er1
6403  cat conftest.err >&5
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); } >/dev/null; then
6406  if test -s conftest.err; then
6407    ac_cpp_err=$ac_c_preproc_warn_flag
6408    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409  else
6410    ac_cpp_err=
6411  fi
6412else
6413  ac_cpp_err=yes
6414fi
6415if test -z "$ac_cpp_err"; then
6416  # Broken: success on invalid input.
6417continue
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422  # Passes both tests.
6423ac_preproc_ok=:
6424break
6425fi
6426rm -f conftest.err conftest.$ac_ext
6427
6428done
6429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6430rm -f conftest.err conftest.$ac_ext
6431if $ac_preproc_ok; then
6432  :
6433else
6434  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6435See \`config.log' for more details." >&5
6436echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6437See \`config.log' for more details." >&2;}
6438   { (exit 1); exit 1; }; }
6439fi
6440
6441ac_ext=c
6442ac_cpp='$CPP $CPPFLAGS'
6443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446
6447
6448echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6449echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6450if test "${ac_cv_header_stdc+set}" = set; then
6451  echo $ECHO_N "(cached) $ECHO_C" >&6
6452else
6453  cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h.  */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h.  */
6459#include <stdlib.h>
6460#include <stdarg.h>
6461#include <string.h>
6462#include <float.h>
6463
6464int
6465main ()
6466{
6467
6468  ;
6469  return 0;
6470}
6471_ACEOF
6472rm -f conftest.$ac_objext
6473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474  (eval $ac_compile) 2>conftest.er1
6475  ac_status=$?
6476  grep -v '^ *+' conftest.er1 >conftest.err
6477  rm -f conftest.er1
6478  cat conftest.err >&5
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); } &&
6481         { ac_try='test -z "$ac_c_werror_flag"
6482                         || test ! -s conftest.err'
6483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484  (eval $ac_try) 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); }; } &&
6488         { ac_try='test -s conftest.$ac_objext'
6489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490  (eval $ac_try) 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; }; then
6494  ac_cv_header_stdc=yes
6495else
6496  echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6498
6499ac_cv_header_stdc=no
6500fi
6501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502
6503if test $ac_cv_header_stdc = yes; then
6504  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6505  cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h.  */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h.  */
6511#include <string.h>
6512
6513_ACEOF
6514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515  $EGREP "memchr" >/dev/null 2>&1; then
6516  :
6517else
6518  ac_cv_header_stdc=no
6519fi
6520rm -f conftest*
6521
6522fi
6523
6524if test $ac_cv_header_stdc = yes; then
6525  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6526  cat >conftest.$ac_ext <<_ACEOF
6527/* confdefs.h.  */
6528_ACEOF
6529cat confdefs.h >>conftest.$ac_ext
6530cat >>conftest.$ac_ext <<_ACEOF
6531/* end confdefs.h.  */
6532#include <stdlib.h>
6533
6534_ACEOF
6535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6536  $EGREP "free" >/dev/null 2>&1; then
6537  :
6538else
6539  ac_cv_header_stdc=no
6540fi
6541rm -f conftest*
6542
6543fi
6544
6545if test $ac_cv_header_stdc = yes; then
6546  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6547  if test "$cross_compiling" = yes; then
6548  :
6549else
6550  cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h.  */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h.  */
6556#include <ctype.h>
6557#if ((' ' & 0x0FF) == 0x020)
6558# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6559# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6560#else
6561# define ISLOWER(c) \
6562                   (('a' <= (c) && (c) <= 'i') \
6563                     || ('j' <= (c) && (c) <= 'r') \
6564                     || ('s' <= (c) && (c) <= 'z'))
6565# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6566#endif
6567
6568#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6569int
6570main ()
6571{
6572  int i;
6573  for (i = 0; i < 256; i++)
6574    if (XOR (islower (i), ISLOWER (i))
6575        || toupper (i) != TOUPPER (i))
6576      exit(2);
6577  exit (0);
6578}
6579_ACEOF
6580rm -f conftest$ac_exeext
6581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582  (eval $ac_link) 2>&5
6583  ac_status=$?
6584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587  (eval $ac_try) 2>&5
6588  ac_status=$?
6589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590  (exit $ac_status); }; }; then
6591  :
6592else
6593  echo "$as_me: program exited with status $ac_status" >&5
6594echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597( exit $ac_status )
6598ac_cv_header_stdc=no
6599fi
6600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6601fi
6602fi
6603fi
6604echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6605echo "${ECHO_T}$ac_cv_header_stdc" >&6
6606if test $ac_cv_header_stdc = yes; then
6607
6608cat >>confdefs.h <<\_ACEOF
6609#define STDC_HEADERS 1
6610_ACEOF
6611
6612fi
6613
6614# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6625                  inttypes.h stdint.h unistd.h
6626do
6627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6628echo "$as_me:$LINENO: checking for $ac_header" >&5
6629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6630if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631  echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633  cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h.  */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h.  */
6639$ac_includes_default
6640
6641#include <$ac_header>
6642_ACEOF
6643rm -f conftest.$ac_objext
6644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645  (eval $ac_compile) 2>conftest.er1
6646  ac_status=$?
6647  grep -v '^ *+' conftest.er1 >conftest.err
6648  rm -f conftest.er1
6649  cat conftest.err >&5
6650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651  (exit $ac_status); } &&
6652         { ac_try='test -z "$ac_c_werror_flag"
6653                         || test ! -s conftest.err'
6654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655  (eval $ac_try) 2>&5
6656  ac_status=$?
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); }; } &&
6659         { ac_try='test -s conftest.$ac_objext'
6660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661  (eval $ac_try) 2>&5
6662  ac_status=$?
6663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664  (exit $ac_status); }; }; then
6665  eval "$as_ac_Header=yes"
6666else
6667  echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670eval "$as_ac_Header=no"
6671fi
6672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6676if test `eval echo '${'$as_ac_Header'}'` = yes; then
6677  cat >>confdefs.h <<_ACEOF
6678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6679_ACEOF
6680
6681fi
6682
6683done
6684
6685
6686
6687for ac_header in dlfcn.h
6688do
6689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6690if eval "test \"\${$as_ac_Header+set}\" = set"; then
6691  echo "$as_me:$LINENO: checking for $ac_header" >&5
6692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6693if eval "test \"\${$as_ac_Header+set}\" = set"; then
6694  echo $ECHO_N "(cached) $ECHO_C" >&6
6695fi
6696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6698else
6699  # Is the header compilable?
6700echo "$as_me:$LINENO: checking $ac_header usability" >&5
6701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6702cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h.  */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h.  */
6708$ac_includes_default
6709#include <$ac_header>
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6713  (eval $ac_compile) 2>conftest.er1
6714  ac_status=$?
6715  grep -v '^ *+' conftest.er1 >conftest.err
6716  rm -f conftest.er1
6717  cat conftest.err >&5
6718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719  (exit $ac_status); } &&
6720         { ac_try='test -z "$ac_c_werror_flag"
6721                         || test ! -s conftest.err'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; } &&
6727         { ac_try='test -s conftest.$ac_objext'
6728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729  (eval $ac_try) 2>&5
6730  ac_status=$?
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); }; }; then
6733  ac_header_compiler=yes
6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738ac_header_compiler=no
6739fi
6740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6742echo "${ECHO_T}$ac_header_compiler" >&6
6743
6744# Is the header present?
6745echo "$as_me:$LINENO: checking $ac_header presence" >&5
6746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6747cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753#include <$ac_header>
6754_ACEOF
6755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6757  ac_status=$?
6758  grep -v '^ *+' conftest.er1 >conftest.err
6759  rm -f conftest.er1
6760  cat conftest.err >&5
6761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); } >/dev/null; then
6763  if test -s conftest.err; then
6764    ac_cpp_err=$ac_c_preproc_warn_flag
6765    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6766  else
6767    ac_cpp_err=
6768  fi
6769else
6770  ac_cpp_err=yes
6771fi
6772if test -z "$ac_cpp_err"; then
6773  ac_header_preproc=yes
6774else
6775  echo "$as_me: failed program was:" >&5
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
6778  ac_header_preproc=no
6779fi
6780rm -f conftest.err conftest.$ac_ext
6781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6782echo "${ECHO_T}$ac_header_preproc" >&6
6783
6784# So?  What about this header?
6785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6786  yes:no: )
6787    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6791    ac_header_preproc=yes
6792    ;;
6793  no:yes:* )
6794    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6796    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6797echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6798    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6800    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6801echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6804    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6806    (
6807      cat <<\_ASBOX
6808## --------------------------------------------------------------- ##
6809## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6810## --------------------------------------------------------------- ##
6811_ASBOX
6812    ) |
6813      sed "s/^/$as_me: WARNING:     /" >&2
6814    ;;
6815esac
6816echo "$as_me:$LINENO: checking for $ac_header" >&5
6817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821  eval "$as_ac_Header=\$ac_header_preproc"
6822fi
6823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6825
6826fi
6827if test `eval echo '${'$as_ac_Header'}'` = yes; then
6828  cat >>confdefs.h <<_ACEOF
6829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6830_ACEOF
6831
6832fi
6833
6834done
6835
6836
6837
6838if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6839    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6840    (test "X$CXX" != "Xg++"))) ; then
6841  ac_ext=cc
6842ac_cpp='$CXXCPP $CPPFLAGS'
6843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6846echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6847echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6848if test -z "$CXXCPP"; then
6849  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6850  echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852      # Double quotes because CXXCPP needs to be expanded
6853    for CXXCPP in "$CXX -E" "/lib/cpp"
6854    do
6855      ac_preproc_ok=false
6856for ac_cxx_preproc_warn_flag in '' yes
6857do
6858  # Use a header file that comes with gcc, so configuring glibc
6859  # with a fresh cross-compiler works.
6860  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861  # <limits.h> exists even on freestanding compilers.
6862  # On the NeXT, cc -E runs the code through the compiler's parser,
6863  # not just through cpp. "Syntax error" is here to catch this case.
6864  cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h.  */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h.  */
6870#ifdef __STDC__
6871# include <limits.h>
6872#else
6873# include <assert.h>
6874#endif
6875                     Syntax error
6876_ACEOF
6877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879  ac_status=$?
6880  grep -v '^ *+' conftest.er1 >conftest.err
6881  rm -f conftest.er1
6882  cat conftest.err >&5
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); } >/dev/null; then
6885  if test -s conftest.err; then
6886    ac_cpp_err=$ac_cxx_preproc_warn_flag
6887    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6888  else
6889    ac_cpp_err=
6890  fi
6891else
6892  ac_cpp_err=yes
6893fi
6894if test -z "$ac_cpp_err"; then
6895  :
6896else
6897  echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900  # Broken: fails on valid input.
6901continue
6902fi
6903rm -f conftest.err conftest.$ac_ext
6904
6905  # OK, works on sane cases.  Now check whether non-existent headers
6906  # can be detected and how.
6907  cat >conftest.$ac_ext <<_ACEOF
6908/* confdefs.h.  */
6909_ACEOF
6910cat confdefs.h >>conftest.$ac_ext
6911cat >>conftest.$ac_ext <<_ACEOF
6912/* end confdefs.h.  */
6913#include <ac_nonexistent.h>
6914_ACEOF
6915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6916  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6917  ac_status=$?
6918  grep -v '^ *+' conftest.er1 >conftest.err
6919  rm -f conftest.er1
6920  cat conftest.err >&5
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); } >/dev/null; then
6923  if test -s conftest.err; then
6924    ac_cpp_err=$ac_cxx_preproc_warn_flag
6925    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6926  else
6927    ac_cpp_err=
6928  fi
6929else
6930  ac_cpp_err=yes
6931fi
6932if test -z "$ac_cpp_err"; then
6933  # Broken: success on invalid input.
6934continue
6935else
6936  echo "$as_me: failed program was:" >&5
6937sed 's/^/| /' conftest.$ac_ext >&5
6938
6939  # Passes both tests.
6940ac_preproc_ok=:
6941break
6942fi
6943rm -f conftest.err conftest.$ac_ext
6944
6945done
6946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6947rm -f conftest.err conftest.$ac_ext
6948if $ac_preproc_ok; then
6949  break
6950fi
6951
6952    done
6953    ac_cv_prog_CXXCPP=$CXXCPP
6954
6955fi
6956  CXXCPP=$ac_cv_prog_CXXCPP
6957else
6958  ac_cv_prog_CXXCPP=$CXXCPP
6959fi
6960echo "$as_me:$LINENO: result: $CXXCPP" >&5
6961echo "${ECHO_T}$CXXCPP" >&6
6962ac_preproc_ok=false
6963for ac_cxx_preproc_warn_flag in '' yes
6964do
6965  # Use a header file that comes with gcc, so configuring glibc
6966  # with a fresh cross-compiler works.
6967  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968  # <limits.h> exists even on freestanding compilers.
6969  # On the NeXT, cc -E runs the code through the compiler's parser,
6970  # not just through cpp. "Syntax error" is here to catch this case.
6971  cat >conftest.$ac_ext <<_ACEOF
6972/* confdefs.h.  */
6973_ACEOF
6974cat confdefs.h >>conftest.$ac_ext
6975cat >>conftest.$ac_ext <<_ACEOF
6976/* end confdefs.h.  */
6977#ifdef __STDC__
6978# include <limits.h>
6979#else
6980# include <assert.h>
6981#endif
6982                     Syntax error
6983_ACEOF
6984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6985  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6986  ac_status=$?
6987  grep -v '^ *+' conftest.er1 >conftest.err
6988  rm -f conftest.er1
6989  cat conftest.err >&5
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); } >/dev/null; then
6992  if test -s conftest.err; then
6993    ac_cpp_err=$ac_cxx_preproc_warn_flag
6994    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6995  else
6996    ac_cpp_err=
6997  fi
6998else
6999  ac_cpp_err=yes
7000fi
7001if test -z "$ac_cpp_err"; then
7002  :
7003else
7004  echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007  # Broken: fails on valid input.
7008continue
7009fi
7010rm -f conftest.err conftest.$ac_ext
7011
7012  # OK, works on sane cases.  Now check whether non-existent headers
7013  # can be detected and how.
7014  cat >conftest.$ac_ext <<_ACEOF
7015/* confdefs.h.  */
7016_ACEOF
7017cat confdefs.h >>conftest.$ac_ext
7018cat >>conftest.$ac_ext <<_ACEOF
7019/* end confdefs.h.  */
7020#include <ac_nonexistent.h>
7021_ACEOF
7022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7023  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7024  ac_status=$?
7025  grep -v '^ *+' conftest.er1 >conftest.err
7026  rm -f conftest.er1
7027  cat conftest.err >&5
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); } >/dev/null; then
7030  if test -s conftest.err; then
7031    ac_cpp_err=$ac_cxx_preproc_warn_flag
7032    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7033  else
7034    ac_cpp_err=
7035  fi
7036else
7037  ac_cpp_err=yes
7038fi
7039if test -z "$ac_cpp_err"; then
7040  # Broken: success on invalid input.
7041continue
7042else
7043  echo "$as_me: failed program was:" >&5
7044sed 's/^/| /' conftest.$ac_ext >&5
7045
7046  # Passes both tests.
7047ac_preproc_ok=:
7048break
7049fi
7050rm -f conftest.err conftest.$ac_ext
7051
7052done
7053# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7054rm -f conftest.err conftest.$ac_ext
7055if $ac_preproc_ok; then
7056  :
7057else
7058  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7059See \`config.log' for more details." >&5
7060echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7061See \`config.log' for more details." >&2;}
7062   { (exit 1); exit 1; }; }
7063fi
7064
7065ac_ext=cc
7066ac_cpp='$CXXCPP $CPPFLAGS'
7067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7070
7071fi
7072
7073ac_ext=f
7074ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7075ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7077if test -n "$ac_tool_prefix"; then
7078  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7079  do
7080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7082echo "$as_me:$LINENO: checking for $ac_word" >&5
7083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7084if test "${ac_cv_prog_F77+set}" = set; then
7085  echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087  if test -n "$F77"; then
7088  ac_cv_prog_F77="$F77" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093  IFS=$as_save_IFS
7094  test -z "$as_dir" && as_dir=.
7095  for ac_exec_ext in '' $ac_executable_extensions; do
7096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099    break 2
7100  fi
7101done
7102done
7103
7104fi
7105fi
7106F77=$ac_cv_prog_F77
7107if test -n "$F77"; then
7108  echo "$as_me:$LINENO: result: $F77" >&5
7109echo "${ECHO_T}$F77" >&6
7110else
7111  echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
7113fi
7114
7115    test -n "$F77" && break
7116  done
7117fi
7118if test -z "$F77"; then
7119  ac_ct_F77=$F77
7120  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7121do
7122  # Extract the first word of "$ac_prog", so it can be a program name with args.
7123set dummy $ac_prog; ac_word=$2
7124echo "$as_me:$LINENO: checking for $ac_word" >&5
7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7126if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7127  echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129  if test -n "$ac_ct_F77"; then
7130  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137  for ac_exec_ext in '' $ac_executable_extensions; do
7138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139    ac_cv_prog_ac_ct_F77="$ac_prog"
7140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144done
7145
7146fi
7147fi
7148ac_ct_F77=$ac_cv_prog_ac_ct_F77
7149if test -n "$ac_ct_F77"; then
7150  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7151echo "${ECHO_T}$ac_ct_F77" >&6
7152else
7153  echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6
7155fi
7156
7157  test -n "$ac_ct_F77" && break
7158done
7159
7160  F77=$ac_ct_F77
7161fi
7162
7163
7164# Provide some information about the compiler.
7165echo "$as_me:7165:" \
7166     "checking for Fortran 77 compiler version" >&5
7167ac_compiler=`set X $ac_compile; echo $2`
7168{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7169  (eval $ac_compiler --version </dev/null >&5) 2>&5
7170  ac_status=$?
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); }
7173{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7174  (eval $ac_compiler -v </dev/null >&5) 2>&5
7175  ac_status=$?
7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177  (exit $ac_status); }
7178{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7179  (eval $ac_compiler -V </dev/null >&5) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); }
7183rm -f a.out
7184
7185# If we don't use `.F' as extension, the preprocessor is not run on the
7186# input file.  (Note that this only needs to work for GNU compilers.)
7187ac_save_ext=$ac_ext
7188ac_ext=F
7189echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7190echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7191if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194  cat >conftest.$ac_ext <<_ACEOF
7195      program main
7196#ifndef __GNUC__
7197       choke me
7198#endif
7199
7200      end
7201_ACEOF
7202rm -f conftest.$ac_objext
7203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204  (eval $ac_compile) 2>conftest.er1
7205  ac_status=$?
7206  grep -v '^ *+' conftest.er1 >conftest.err
7207  rm -f conftest.er1
7208  cat conftest.err >&5
7209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210  (exit $ac_status); } &&
7211         { ac_try='test -z "$ac_f77_werror_flag"
7212                         || test ! -s conftest.err'
7213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214  (eval $ac_try) 2>&5
7215  ac_status=$?
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); }; } &&
7218         { ac_try='test -s conftest.$ac_objext'
7219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220  (eval $ac_try) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; }; then
7224  ac_compiler_gnu=yes
7225else
7226  echo "$as_me: failed program was:" >&5
7227sed 's/^/| /' conftest.$ac_ext >&5
7228
7229ac_compiler_gnu=no
7230fi
7231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7232ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7233
7234fi
7235echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7236echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7237ac_ext=$ac_save_ext
7238ac_test_FFLAGS=${FFLAGS+set}
7239ac_save_FFLAGS=$FFLAGS
7240FFLAGS=
7241echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7242echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7243if test "${ac_cv_prog_f77_g+set}" = set; then
7244  echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246  FFLAGS=-g
7247cat >conftest.$ac_ext <<_ACEOF
7248      program main
7249
7250      end
7251_ACEOF
7252rm -f conftest.$ac_objext
7253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254  (eval $ac_compile) 2>conftest.er1
7255  ac_status=$?
7256  grep -v '^ *+' conftest.er1 >conftest.err
7257  rm -f conftest.er1
7258  cat conftest.err >&5
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); } &&
7261         { ac_try='test -z "$ac_f77_werror_flag"
7262                         || test ! -s conftest.err'
7263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264  (eval $ac_try) 2>&5
7265  ac_status=$?
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); }; } &&
7268         { ac_try='test -s conftest.$ac_objext'
7269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270  (eval $ac_try) 2>&5
7271  ac_status=$?
7272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273  (exit $ac_status); }; }; then
7274  ac_cv_prog_f77_g=yes
7275else
7276  echo "$as_me: failed program was:" >&5
7277sed 's/^/| /' conftest.$ac_ext >&5
7278
7279ac_cv_prog_f77_g=no
7280fi
7281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282
7283fi
7284echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7285echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7286if test "$ac_test_FFLAGS" = set; then
7287  FFLAGS=$ac_save_FFLAGS
7288elif test $ac_cv_prog_f77_g = yes; then
7289  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7290    FFLAGS="-g -O2"
7291  else
7292    FFLAGS="-g"
7293  fi
7294else
7295  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7296    FFLAGS="-O2"
7297  else
7298    FFLAGS=
7299  fi
7300fi
7301
7302G77=`test $ac_compiler_gnu = yes && echo yes`
7303ac_ext=c
7304ac_cpp='$CPP $CPPFLAGS'
7305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307ac_compiler_gnu=$ac_cv_c_compiler_gnu
7308
7309
7310
7311# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7312
7313# find the maximum length of command line arguments
7314echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7315echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7316if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319    i=0
7320  teststring="ABCD"
7321
7322  case $build_os in
7323  msdosdjgpp*)
7324    # On DJGPP, this test can blow up pretty badly due to problems in libc
7325    # (any single argument exceeding 2000 bytes causes a buffer overrun
7326    # during glob expansion).  Even if it were fixed, the result of this
7327    # check would be larger than it should be.
7328    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7329    ;;
7330
7331  gnu*)
7332    # Under GNU Hurd, this test is not required because there is
7333    # no limit to the length of command line arguments.
7334    # Libtool will interpret -1 as no limit whatsoever
7335    lt_cv_sys_max_cmd_len=-1;
7336    ;;
7337
7338  cygwin* | mingw*)
7339    # On Win9x/ME, this test blows up -- it succeeds, but takes
7340    # about 5 minutes as the teststring grows exponentially.
7341    # Worse, since 9x/ME are not pre-emptively multitasking,
7342    # you end up with a "frozen" computer, even though with patience
7343    # the test eventually succeeds (with a max line length of 256k).
7344    # Instead, let's just punt: use the minimum linelength reported by
7345    # all of the supported platforms: 8192 (on NT/2K/XP).
7346    lt_cv_sys_max_cmd_len=8192;
7347    ;;
7348
7349  amigaos*)
7350    # On AmigaOS with pdksh, this test takes hours, literally.
7351    # So we just punt and use a minimum line length of 8192.
7352    lt_cv_sys_max_cmd_len=8192;
7353    ;;
7354
7355  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7356    # This has been around since 386BSD, at least.  Likely further.
7357    if test -x /sbin/sysctl; then
7358      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7359    elif test -x /usr/sbin/sysctl; then
7360      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7361    else
7362      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7363    fi
7364    # And add a safety zone
7365    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7366    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7367    ;;
7368
7369  interix*)
7370    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7371    lt_cv_sys_max_cmd_len=196608
7372    ;;
7373
7374  osf*)
7375    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7376    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7377    # nice to cause kernel panics so lets avoid the loop below.
7378    # First set a reasonable default.
7379    lt_cv_sys_max_cmd_len=16384
7380    #
7381    if test -x /sbin/sysconfig; then
7382      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7383        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7384      esac
7385    fi
7386    ;;
7387  sco3.2v5*)
7388    lt_cv_sys_max_cmd_len=102400
7389    ;;
7390  sysv5* | sco5v6* | sysv4.2uw2*)
7391    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7392    if test -n "$kargmax"; then
7393      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7394    else
7395      lt_cv_sys_max_cmd_len=32768
7396    fi
7397    ;;
7398  *)
7399    # If test is not a shell built-in, we'll probably end up computing a
7400    # maximum length that is only half of the actual maximum length, but
7401    # we can't tell.
7402    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7403    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7404               = "XX$teststring") >/dev/null 2>&1 &&
7405            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7406            lt_cv_sys_max_cmd_len=$new_result &&
7407            test $i != 17 # 1/2 MB should be enough
7408    do
7409      i=`expr $i + 1`
7410      teststring=$teststring$teststring
7411    done
7412    teststring=
7413    # Add a significant safety factor because C++ compilers can tack on massive
7414    # amounts of additional arguments before passing them to the linker.
7415    # It appears as though 1/2 is a usable value.
7416    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7417    ;;
7418  esac
7419
7420fi
7421
7422if test -n $lt_cv_sys_max_cmd_len ; then
7423  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7424echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7425else
7426  echo "$as_me:$LINENO: result: none" >&5
7427echo "${ECHO_T}none" >&6
7428fi
7429
7430
7431
7432
7433# Check for command to grab the raw symbol name followed by C symbol from nm.
7434echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7435echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7436if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439
7440# These are sane defaults that work on at least a few old systems.
7441# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7442
7443# Character class describing NM global symbol codes.
7444symcode='[BCDEGRST]'
7445
7446# Regexp to match symbols that can be accessed directly from C.
7447sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7448
7449# Transform an extracted symbol line into a proper C declaration
7450lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7451
7452# Transform an extracted symbol line into symbol name and symbol address
7453lt_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'"
7454
7455# Define system-specific variables.
7456case $host_os in
7457aix*)
7458  symcode='[BCDT]'
7459  ;;
7460cygwin* | mingw* | pw32*)
7461  symcode='[ABCDGISTW]'
7462  ;;
7463hpux*) # Its linker distinguishes data from code symbols
7464  if test "$host_cpu" = ia64; then
7465    symcode='[ABCDEGRST]'
7466  fi
7467  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7468  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'"
7469  ;;
7470linux*)
7471  if test "$host_cpu" = ia64; then
7472    symcode='[ABCDGIRSTW]'
7473    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7474    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'"
7475  fi
7476  ;;
7477irix* | nonstopux*)
7478  symcode='[BCDEGRST]'
7479  ;;
7480osf*)
7481  symcode='[BCDEGQRST]'
7482  ;;
7483solaris*)
7484  symcode='[BDRT]'
7485  ;;
7486sco3.2v5*)
7487  symcode='[DT]'
7488  ;;
7489sysv4.2uw2*)
7490  symcode='[DT]'
7491  ;;
7492sysv5* | sco5v6* | unixware* | OpenUNIX*)
7493  symcode='[ABDT]'
7494  ;;
7495sysv4)
7496  symcode='[DFNSTU]'
7497  ;;
7498esac
7499
7500# Handle CRLF in mingw tool chain
7501opt_cr=
7502case $build_os in
7503mingw*)
7504  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7505  ;;
7506esac
7507
7508# If we're using GNU nm, then use its standard symbol codes.
7509case `$NM -V 2>&1` in
7510*GNU* | *'with BFD'*)
7511  symcode='[ABCDGIRSTW]' ;;
7512esac
7513
7514# Try without a prefix undercore, then with it.
7515for ac_symprfx in "" "_"; do
7516
7517  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7518  symxfrm="\\1 $ac_symprfx\\2 \\2"
7519
7520  # Write the raw and C identifiers.
7521  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7522
7523  # Check to see that the pipe works correctly.
7524  pipe_works=no
7525
7526  rm -f conftest*
7527  cat > conftest.$ac_ext <<EOF
7528#ifdef __cplusplus
7529extern "C" {
7530#endif
7531char nm_test_var;
7532void nm_test_func(){}
7533#ifdef __cplusplus
7534}
7535#endif
7536int main(){nm_test_var='a';nm_test_func();return(0);}
7537EOF
7538
7539  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7540  (eval $ac_compile) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); }; then
7544    # Now try to grab the symbols.
7545    nlist=conftest.nm
7546    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7547  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7548  ac_status=$?
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); } && test -s "$nlist"; then
7551      # Try sorting and uniquifying the output.
7552      if sort "$nlist" | uniq > "$nlist"T; then
7553        mv -f "$nlist"T "$nlist"
7554      else
7555        rm -f "$nlist"T
7556      fi
7557
7558      # Make sure that we snagged all the symbols we need.
7559      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7560        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7561          cat <<EOF > conftest.$ac_ext
7562#ifdef __cplusplus
7563extern "C" {
7564#endif
7565
7566EOF
7567          # Now generate the symbol file.
7568          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7569
7570          cat <<EOF >> conftest.$ac_ext
7571#if defined (__STDC__) && __STDC__
7572# define lt_ptr_t void *
7573#else
7574# define lt_ptr_t char *
7575# define const
7576#endif
7577
7578/* The mapping between symbol names and symbols. */
7579const struct {
7580  const char *name;
7581  lt_ptr_t address;
7582}
7583lt_preloaded_symbols[] =
7584{
7585EOF
7586          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7587          cat <<\EOF >> conftest.$ac_ext
7588  {0, (lt_ptr_t) 0}
7589};
7590
7591#ifdef __cplusplus
7592}
7593#endif
7594EOF
7595          # Now try linking the two files.
7596          mv conftest.$ac_objext conftstm.$ac_objext
7597          lt_save_LIBS="$LIBS"
7598          lt_save_CFLAGS="$CFLAGS"
7599          LIBS="conftstm.$ac_objext"
7600          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7601          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602  (eval $ac_link) 2>&5
7603  ac_status=$?
7604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7606            pipe_works=yes
7607          fi
7608          LIBS="$lt_save_LIBS"
7609          CFLAGS="$lt_save_CFLAGS"
7610        else
7611          echo "cannot find nm_test_func in $nlist" >&5
7612        fi
7613      else
7614        echo "cannot find nm_test_var in $nlist" >&5
7615      fi
7616    else
7617      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7618    fi
7619  else
7620    echo "$progname: failed program was:" >&5
7621    cat conftest.$ac_ext >&5
7622  fi
7623  rm -f conftest* conftst*
7624
7625  # Do not use the global_symbol_pipe unless it works.
7626  if test "$pipe_works" = yes; then
7627    break
7628  else
7629    lt_cv_sys_global_symbol_pipe=
7630  fi
7631done
7632
7633fi
7634
7635if test -z "$lt_cv_sys_global_symbol_pipe"; then
7636  lt_cv_sys_global_symbol_to_cdecl=
7637fi
7638if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7639  echo "$as_me:$LINENO: result: failed" >&5
7640echo "${ECHO_T}failed" >&6
7641else
7642  echo "$as_me:$LINENO: result: ok" >&5
7643echo "${ECHO_T}ok" >&6
7644fi
7645
7646echo "$as_me:$LINENO: checking for objdir" >&5
7647echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7648if test "${lt_cv_objdir+set}" = set; then
7649  echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651  rm -f .libs 2>/dev/null
7652mkdir .libs 2>/dev/null
7653if test -d .libs; then
7654  lt_cv_objdir=.libs
7655else
7656  # MS-DOS does not allow filenames that begin with a dot.
7657  lt_cv_objdir=_libs
7658fi
7659rmdir .libs 2>/dev/null
7660fi
7661echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7662echo "${ECHO_T}$lt_cv_objdir" >&6
7663objdir=$lt_cv_objdir
7664
7665
7666
7667
7668
7669case $host_os in
7670aix3*)
7671  # AIX sometimes has problems with the GCC collect2 program.  For some
7672  # reason, if we set the COLLECT_NAMES environment variable, the problems
7673  # vanish in a puff of smoke.
7674  if test "X${COLLECT_NAMES+set}" != Xset; then
7675    COLLECT_NAMES=
7676    export COLLECT_NAMES
7677  fi
7678  ;;
7679esac
7680
7681# Sed substitution that helps us do robust quoting.  It backslashifies
7682# metacharacters that are still active within double-quoted strings.
7683Xsed='sed -e 1s/^X//'
7684sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7685
7686# Same as above, but do not quote variable references.
7687double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7688
7689# Sed substitution to delay expansion of an escaped shell variable in a
7690# double_quote_subst'ed string.
7691delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7692
7693# Sed substitution to avoid accidental globbing in evaled expressions
7694no_glob_subst='s/\*/\\\*/g'
7695
7696# Constants:
7697rm="rm -f"
7698
7699# Global variables:
7700default_ofile=libtool
7701can_build_shared=yes
7702
7703# All known linkers require a `.a' archive for static linking (except MSVC,
7704# which needs '.lib').
7705libext=a
7706ltmain="$ac_aux_dir/ltmain.sh"
7707ofile="$default_ofile"
7708with_gnu_ld="$lt_cv_prog_gnu_ld"
7709
7710if test -n "$ac_tool_prefix"; then
7711  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7712set dummy ${ac_tool_prefix}ar; ac_word=$2
7713echo "$as_me:$LINENO: checking for $ac_word" >&5
7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7715if test "${ac_cv_prog_AR+set}" = set; then
7716  echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718  if test -n "$AR"; then
7719  ac_cv_prog_AR="$AR" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726  for ac_exec_ext in '' $ac_executable_extensions; do
7727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_AR="${ac_tool_prefix}ar"
7729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733done
7734
7735fi
7736fi
7737AR=$ac_cv_prog_AR
7738if test -n "$AR"; then
7739  echo "$as_me:$LINENO: result: $AR" >&5
7740echo "${ECHO_T}$AR" >&6
7741else
7742  echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744fi
7745
7746fi
7747if test -z "$ac_cv_prog_AR"; then
7748  ac_ct_AR=$AR
7749  # Extract the first word of "ar", so it can be a program name with args.
7750set dummy ar; ac_word=$2
7751echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7754  echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756  if test -n "$ac_ct_AR"; then
7757  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762  IFS=$as_save_IFS
7763  test -z "$as_dir" && as_dir=.
7764  for ac_exec_ext in '' $ac_executable_extensions; do
7765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766    ac_cv_prog_ac_ct_AR="ar"
7767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768    break 2
7769  fi
7770done
7771done
7772
7773  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7774fi
7775fi
7776ac_ct_AR=$ac_cv_prog_ac_ct_AR
7777if test -n "$ac_ct_AR"; then
7778  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7779echo "${ECHO_T}$ac_ct_AR" >&6
7780else
7781  echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784
7785  AR=$ac_ct_AR
7786else
7787  AR="$ac_cv_prog_AR"
7788fi
7789
7790if test -n "$ac_tool_prefix"; then
7791  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_prog_RANLIB+set}" = set; then
7796  echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798  if test -n "$RANLIB"; then
7799  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806  for ac_exec_ext in '' $ac_executable_extensions; do
7807  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813done
7814
7815fi
7816fi
7817RANLIB=$ac_cv_prog_RANLIB
7818if test -n "$RANLIB"; then
7819  echo "$as_me:$LINENO: result: $RANLIB" >&5
7820echo "${ECHO_T}$RANLIB" >&6
7821else
7822  echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
7824fi
7825
7826fi
7827if test -z "$ac_cv_prog_RANLIB"; then
7828  ac_ct_RANLIB=$RANLIB
7829  # Extract the first word of "ranlib", so it can be a program name with args.
7830set dummy ranlib; ac_word=$2
7831echo "$as_me:$LINENO: checking for $ac_word" >&5
7832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7833if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7834  echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836  if test -n "$ac_ct_RANLIB"; then
7837  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842  IFS=$as_save_IFS
7843  test -z "$as_dir" && as_dir=.
7844  for ac_exec_ext in '' $ac_executable_extensions; do
7845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846    ac_cv_prog_ac_ct_RANLIB="ranlib"
7847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848    break 2
7849  fi
7850done
7851done
7852
7853  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7854fi
7855fi
7856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7857if test -n "$ac_ct_RANLIB"; then
7858  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7859echo "${ECHO_T}$ac_ct_RANLIB" >&6
7860else
7861  echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6
7863fi
7864
7865  RANLIB=$ac_ct_RANLIB
7866else
7867  RANLIB="$ac_cv_prog_RANLIB"
7868fi
7869
7870if test -n "$ac_tool_prefix"; then
7871  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7872set dummy ${ac_tool_prefix}strip; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_STRIP+set}" = set; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  if test -n "$STRIP"; then
7879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884  IFS=$as_save_IFS
7885  test -z "$as_dir" && as_dir=.
7886  for ac_exec_ext in '' $ac_executable_extensions; do
7887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890    break 2
7891  fi
7892done
7893done
7894
7895fi
7896fi
7897STRIP=$ac_cv_prog_STRIP
7898if test -n "$STRIP"; then
7899  echo "$as_me:$LINENO: result: $STRIP" >&5
7900echo "${ECHO_T}$STRIP" >&6
7901else
7902  echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906fi
7907if test -z "$ac_cv_prog_STRIP"; then
7908  ac_ct_STRIP=$STRIP
7909  # Extract the first word of "strip", so it can be a program name with args.
7910set dummy strip; ac_word=$2
7911echo "$as_me:$LINENO: checking for $ac_word" >&5
7912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7914  echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916  if test -n "$ac_ct_STRIP"; then
7917  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7918else
7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922  IFS=$as_save_IFS
7923  test -z "$as_dir" && as_dir=.
7924  for ac_exec_ext in '' $ac_executable_extensions; do
7925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7926    ac_cv_prog_ac_ct_STRIP="strip"
7927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928    break 2
7929  fi
7930done
7931done
7932
7933  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7934fi
7935fi
7936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7937if test -n "$ac_ct_STRIP"; then
7938  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7939echo "${ECHO_T}$ac_ct_STRIP" >&6
7940else
7941  echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943fi
7944
7945  STRIP=$ac_ct_STRIP
7946else
7947  STRIP="$ac_cv_prog_STRIP"
7948fi
7949
7950
7951old_CC="$CC"
7952old_CFLAGS="$CFLAGS"
7953
7954# Set sane defaults for various variables
7955test -z "$AR" && AR=ar
7956test -z "$AR_FLAGS" && AR_FLAGS=cru
7957test -z "$AS" && AS=as
7958test -z "$CC" && CC=cc
7959test -z "$LTCC" && LTCC=$CC
7960test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7961test -z "$DLLTOOL" && DLLTOOL=dlltool
7962test -z "$LD" && LD=ld
7963test -z "$LN_S" && LN_S="ln -s"
7964test -z "$MAGIC_CMD" && MAGIC_CMD=file
7965test -z "$NM" && NM=nm
7966test -z "$SED" && SED=sed
7967test -z "$OBJDUMP" && OBJDUMP=objdump
7968test -z "$RANLIB" && RANLIB=:
7969test -z "$STRIP" && STRIP=:
7970test -z "$ac_objext" && ac_objext=o
7971
7972# Determine commands to create old-style static archives.
7973old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7974old_postinstall_cmds='chmod 644 $oldlib'
7975old_postuninstall_cmds=
7976
7977if test -n "$RANLIB"; then
7978  case $host_os in
7979  openbsd*)
7980    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7981    ;;
7982  *)
7983    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7984    ;;
7985  esac
7986  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7987fi
7988
7989for cc_temp in $compiler""; do
7990  case $cc_temp in
7991    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7992    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7993    \-*) ;;
7994    *) break;;
7995  esac
7996done
7997cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7998
7999
8000# Only perform the check for file, if the check method requires it
8001case $deplibs_check_method in
8002file_magic*)
8003  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8004    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8005echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8006if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  case $MAGIC_CMD in
8010[\\/*] |  ?:[\\/]*)
8011  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8012  ;;
8013*)
8014  lt_save_MAGIC_CMD="$MAGIC_CMD"
8015  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017  for ac_dir in $ac_dummy; do
8018    IFS="$lt_save_ifs"
8019    test -z "$ac_dir" && ac_dir=.
8020    if test -f $ac_dir/${ac_tool_prefix}file; then
8021      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8022      if test -n "$file_magic_test_file"; then
8023        case $deplibs_check_method in
8024        "file_magic "*)
8025          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8026          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028            $EGREP "$file_magic_regex" > /dev/null; then
8029            :
8030          else
8031            cat <<EOF 1>&2
8032
8033*** Warning: the command libtool uses to detect shared libraries,
8034*** $file_magic_cmd, produces output that libtool cannot recognize.
8035*** The result is that libtool may fail to recognize shared libraries
8036*** as such.  This will affect the creation of libtool libraries that
8037*** depend on shared libraries, but programs linked with such libtool
8038*** libraries will work regardless of this problem.  Nevertheless, you
8039*** may want to report the problem to your system manager and/or to
8040*** bug-libtool@gnu.org
8041
8042EOF
8043          fi ;;
8044        esac
8045      fi
8046      break
8047    fi
8048  done
8049  IFS="$lt_save_ifs"
8050  MAGIC_CMD="$lt_save_MAGIC_CMD"
8051  ;;
8052esac
8053fi
8054
8055MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056if test -n "$MAGIC_CMD"; then
8057  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8058echo "${ECHO_T}$MAGIC_CMD" >&6
8059else
8060  echo "$as_me:$LINENO: result: no" >&5
8061echo "${ECHO_T}no" >&6
8062fi
8063
8064if test -z "$lt_cv_path_MAGIC_CMD"; then
8065  if test -n "$ac_tool_prefix"; then
8066    echo "$as_me:$LINENO: checking for file" >&5
8067echo $ECHO_N "checking for file... $ECHO_C" >&6
8068if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8069  echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071  case $MAGIC_CMD in
8072[\\/*] |  ?:[\\/]*)
8073  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8074  ;;
8075*)
8076  lt_save_MAGIC_CMD="$MAGIC_CMD"
8077  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8078  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8079  for ac_dir in $ac_dummy; do
8080    IFS="$lt_save_ifs"
8081    test -z "$ac_dir" && ac_dir=.
8082    if test -f $ac_dir/file; then
8083      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8084      if test -n "$file_magic_test_file"; then
8085        case $deplibs_check_method in
8086        "file_magic "*)
8087          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8088          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8090            $EGREP "$file_magic_regex" > /dev/null; then
8091            :
8092          else
8093            cat <<EOF 1>&2
8094
8095*** Warning: the command libtool uses to detect shared libraries,
8096*** $file_magic_cmd, produces output that libtool cannot recognize.
8097*** The result is that libtool may fail to recognize shared libraries
8098*** as such.  This will affect the creation of libtool libraries that
8099*** depend on shared libraries, but programs linked with such libtool
8100*** libraries will work regardless of this problem.  Nevertheless, you
8101*** may want to report the problem to your system manager and/or to
8102*** bug-libtool@gnu.org
8103
8104EOF
8105          fi ;;
8106        esac
8107      fi
8108      break
8109    fi
8110  done
8111  IFS="$lt_save_ifs"
8112  MAGIC_CMD="$lt_save_MAGIC_CMD"
8113  ;;
8114esac
8115fi
8116
8117MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8118if test -n "$MAGIC_CMD"; then
8119  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8120echo "${ECHO_T}$MAGIC_CMD" >&6
8121else
8122  echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
8124fi
8125
8126  else
8127    MAGIC_CMD=:
8128  fi
8129fi
8130
8131  fi
8132  ;;
8133esac
8134
8135enable_dlopen=no
8136enable_win32_dll=no
8137
8138# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8139if test "${enable_libtool_lock+set}" = set; then
8140  enableval="$enable_libtool_lock"
8141
8142fi;
8143test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8144
8145
8146# Check whether --with-pic or --without-pic was given.
8147if test "${with_pic+set}" = set; then
8148  withval="$with_pic"
8149  pic_mode="$withval"
8150else
8151  pic_mode=default
8152fi;
8153test -z "$pic_mode" && pic_mode=default
8154
8155# Use C for the default configuration in the libtool script
8156tagname=
8157lt_save_CC="$CC"
8158ac_ext=c
8159ac_cpp='$CPP $CPPFLAGS'
8160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162ac_compiler_gnu=$ac_cv_c_compiler_gnu
8163
8164
8165# Source file extension for C test sources.
8166ac_ext=c
8167
8168# Object file extension for compiled C test sources.
8169objext=o
8170objext=$objext
8171
8172# Code to be used in simple compile tests
8173lt_simple_compile_test_code="int some_variable = 0;\n"
8174
8175# Code to be used in simple link tests
8176lt_simple_link_test_code='int main(){return(0);}\n'
8177
8178
8179# If no C compiler was specified, use CC.
8180LTCC=${LTCC-"$CC"}
8181
8182# If no C compiler flags were specified, use CFLAGS.
8183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8184
8185# Allow CC to be a program name with arguments.
8186compiler=$CC
8187
8188
8189# save warnings/boilerplate of simple test code
8190ac_outfile=conftest.$ac_objext
8191printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8192eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8193_lt_compiler_boilerplate=`cat conftest.err`
8194$rm conftest*
8195
8196ac_outfile=conftest.$ac_objext
8197printf "$lt_simple_link_test_code" >conftest.$ac_ext
8198eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8199_lt_linker_boilerplate=`cat conftest.err`
8200$rm conftest*
8201
8202
8203## CAVEAT EMPTOR:
8204## There is no encapsulation within the following macros, do not change
8205## the running order or otherwise move them around unless you know exactly
8206## what you are doing...
8207
8208lt_prog_compiler_no_builtin_flag=
8209
8210if test "$GCC" = yes; then
8211  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8212
8213
8214echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8215echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8216if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8217  echo $ECHO_N "(cached) $ECHO_C" >&6
8218else
8219  lt_cv_prog_compiler_rtti_exceptions=no
8220  ac_outfile=conftest.$ac_objext
8221   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8222   lt_compiler_flag="-fno-rtti -fno-exceptions"
8223   # Insert the option either (1) after the last *FLAGS variable, or
8224   # (2) before a word containing "conftest.", or (3) at the end.
8225   # Note that $ac_compile itself does not contain backslashes and begins
8226   # with a dollar sign (not a hyphen), so the echo should work correctly.
8227   # The option is referenced via a variable to avoid confusing sed.
8228   lt_compile=`echo "$ac_compile" | $SED \
8229   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231   -e 's:$: $lt_compiler_flag:'`
8232   (eval echo "\"\$as_me:8232: $lt_compile\"" >&5)
8233   (eval "$lt_compile" 2>conftest.err)
8234   ac_status=$?
8235   cat conftest.err >&5
8236   echo "$as_me:8236: \$? = $ac_status" >&5
8237   if (exit $ac_status) && test -s "$ac_outfile"; then
8238     # The compiler can only warn and ignore the option if not recognized
8239     # So say no if there are warnings other than the usual output.
8240     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8241     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8243       lt_cv_prog_compiler_rtti_exceptions=yes
8244     fi
8245   fi
8246   $rm conftest*
8247
8248fi
8249echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8250echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8251
8252if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8253    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8254else
8255    :
8256fi
8257
8258fi
8259
8260lt_prog_compiler_wl=
8261lt_prog_compiler_pic=
8262lt_prog_compiler_static=
8263
8264echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8265echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8266
8267  if test "$GCC" = yes; then
8268    lt_prog_compiler_wl='-Wl,'
8269    lt_prog_compiler_static='-static'
8270
8271    case $host_os in
8272      aix*)
8273      # All AIX code is PIC.
8274      if test "$host_cpu" = ia64; then
8275        # AIX 5 now supports IA64 processor
8276        lt_prog_compiler_static='-Bstatic'
8277      fi
8278      ;;
8279
8280    amigaos*)
8281      # FIXME: we need at least 68020 code to build shared libraries, but
8282      # adding the `-m68020' flag to GCC prevents building anything better,
8283      # like `-m68040'.
8284      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8285      ;;
8286
8287    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8288      # PIC is the default for these OSes.
8289      ;;
8290
8291    mingw* | pw32* | os2*)
8292      # This hack is so that the source file can tell whether it is being
8293      # built for inclusion in a dll (and should export symbols for example).
8294      lt_prog_compiler_pic='-DDLL_EXPORT'
8295      ;;
8296
8297    darwin* | rhapsody*)
8298      # PIC is the default on this platform
8299      # Common symbols not allowed in MH_DYLIB files
8300      lt_prog_compiler_pic='-fno-common'
8301      ;;
8302
8303    interix3*)
8304      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8305      # Instead, we relocate shared libraries at runtime.
8306      ;;
8307
8308    msdosdjgpp*)
8309      # Just because we use GCC doesn't mean we suddenly get shared libraries
8310      # on systems that don't support them.
8311      lt_prog_compiler_can_build_shared=no
8312      enable_shared=no
8313      ;;
8314
8315    sysv4*MP*)
8316      if test -d /usr/nec; then
8317        lt_prog_compiler_pic=-Kconform_pic
8318      fi
8319      ;;
8320
8321    hpux*)
8322      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8323      # not for PA HP-UX.
8324      case $host_cpu in
8325      hppa*64*|ia64*)
8326        # +Z the default
8327        ;;
8328      *)
8329        lt_prog_compiler_pic='-fPIC'
8330        ;;
8331      esac
8332      ;;
8333
8334    *)
8335      lt_prog_compiler_pic='-fPIC'
8336      ;;
8337    esac
8338  else
8339    # PORTME Check for flag to pass linker flags through the system compiler.
8340    case $host_os in
8341    aix*)
8342      lt_prog_compiler_wl='-Wl,'
8343      if test "$host_cpu" = ia64; then
8344        # AIX 5 now supports IA64 processor
8345        lt_prog_compiler_static='-Bstatic'
8346      else
8347        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8348      fi
8349      ;;
8350      darwin*)
8351        # PIC is the default on this platform
8352        # Common symbols not allowed in MH_DYLIB files
8353       case $cc_basename in
8354         xlc*)
8355         lt_prog_compiler_pic='-qnocommon'
8356         lt_prog_compiler_wl='-Wl,'
8357         ;;
8358       esac
8359       ;;
8360
8361    mingw* | pw32* | os2*)
8362      # This hack is so that the source file can tell whether it is being
8363      # built for inclusion in a dll (and should export symbols for example).
8364      lt_prog_compiler_pic='-DDLL_EXPORT'
8365      ;;
8366
8367    hpux9* | hpux10* | hpux11*)
8368      lt_prog_compiler_wl='-Wl,'
8369      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8370      # not for PA HP-UX.
8371      case $host_cpu in
8372      hppa*64*|ia64*)
8373        # +Z the default
8374        ;;
8375      *)
8376        lt_prog_compiler_pic='+Z'
8377        ;;
8378      esac
8379      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8380      lt_prog_compiler_static='${wl}-a ${wl}archive'
8381      ;;
8382
8383    irix5* | irix6* | nonstopux*)
8384      lt_prog_compiler_wl='-Wl,'
8385      # PIC (with -KPIC) is the default.
8386      lt_prog_compiler_static='-non_shared'
8387      ;;
8388
8389    newsos6)
8390      lt_prog_compiler_pic='-KPIC'
8391      lt_prog_compiler_static='-Bstatic'
8392      ;;
8393
8394    linux*)
8395      case $cc_basename in
8396      icc* | ecc*)
8397        lt_prog_compiler_wl='-Wl,'
8398        lt_prog_compiler_pic='-KPIC'
8399        lt_prog_compiler_static='-static'
8400        ;;
8401      pgcc* | pgf77* | pgf90* | pgf95*)
8402        # Portland Group compilers (*not* the Pentium gcc compiler,
8403        # which looks to be a dead project)
8404        lt_prog_compiler_wl='-Wl,'
8405        lt_prog_compiler_pic='-fpic'
8406        lt_prog_compiler_static='-Bstatic'
8407        ;;
8408      ccc*)
8409        lt_prog_compiler_wl='-Wl,'
8410        # All Alpha code is PIC.
8411        lt_prog_compiler_static='-non_shared'
8412        ;;
8413      esac
8414      ;;
8415
8416    osf3* | osf4* | osf5*)
8417      lt_prog_compiler_wl='-Wl,'
8418      # All OSF/1 code is PIC.
8419      lt_prog_compiler_static='-non_shared'
8420      ;;
8421
8422    solaris*)
8423      lt_prog_compiler_pic='-KPIC'
8424      lt_prog_compiler_static='-Bstatic'
8425      case $cc_basename in
8426      f77* | f90* | f95*)
8427        lt_prog_compiler_wl='-Qoption ld ';;
8428      *)
8429        lt_prog_compiler_wl='-Wl,';;
8430      esac
8431      ;;
8432
8433    sunos4*)
8434      lt_prog_compiler_wl='-Qoption ld '
8435      lt_prog_compiler_pic='-PIC'
8436      lt_prog_compiler_static='-Bstatic'
8437      ;;
8438
8439    sysv4 | sysv4.2uw2* | sysv4.3*)
8440      lt_prog_compiler_wl='-Wl,'
8441      lt_prog_compiler_pic='-KPIC'
8442      lt_prog_compiler_static='-Bstatic'
8443      ;;
8444
8445    sysv4*MP*)
8446      if test -d /usr/nec ;then
8447        lt_prog_compiler_pic='-Kconform_pic'
8448        lt_prog_compiler_static='-Bstatic'
8449      fi
8450      ;;
8451
8452    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8453      lt_prog_compiler_wl='-Wl,'
8454      lt_prog_compiler_pic='-KPIC'
8455      lt_prog_compiler_static='-Bstatic'
8456      ;;
8457
8458    unicos*)
8459      lt_prog_compiler_wl='-Wl,'
8460      lt_prog_compiler_can_build_shared=no
8461      ;;
8462
8463    uts4*)
8464      lt_prog_compiler_pic='-pic'
8465      lt_prog_compiler_static='-Bstatic'
8466      ;;
8467
8468    *)
8469      lt_prog_compiler_can_build_shared=no
8470      ;;
8471    esac
8472  fi
8473
8474echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8475echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8476
8477#
8478# Check to make sure the PIC flag actually works.
8479#
8480if test -n "$lt_prog_compiler_pic"; then
8481
8482echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8483echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8484if test "${lt_prog_compiler_pic_works+set}" = set; then
8485  echo $ECHO_N "(cached) $ECHO_C" >&6
8486else
8487  lt_prog_compiler_pic_works=no
8488  ac_outfile=conftest.$ac_objext
8489   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8490   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8491   # Insert the option either (1) after the last *FLAGS variable, or
8492   # (2) before a word containing "conftest.", or (3) at the end.
8493   # Note that $ac_compile itself does not contain backslashes and begins
8494   # with a dollar sign (not a hyphen), so the echo should work correctly.
8495   # The option is referenced via a variable to avoid confusing sed.
8496   lt_compile=`echo "$ac_compile" | $SED \
8497   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499   -e 's:$: $lt_compiler_flag:'`
8500   (eval echo "\"\$as_me:8500: $lt_compile\"" >&5)
8501   (eval "$lt_compile" 2>conftest.err)
8502   ac_status=$?
8503   cat conftest.err >&5
8504   echo "$as_me:8504: \$? = $ac_status" >&5
8505   if (exit $ac_status) && test -s "$ac_outfile"; then
8506     # The compiler can only warn and ignore the option if not recognized
8507     # So say no if there are warnings other than the usual output.
8508     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8509     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8510     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8511       lt_prog_compiler_pic_works=yes
8512     fi
8513   fi
8514   $rm conftest*
8515
8516fi
8517echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8518echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8519
8520if test x"$lt_prog_compiler_pic_works" = xyes; then
8521    case $lt_prog_compiler_pic in
8522     "" | " "*) ;;
8523     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8524     esac
8525else
8526    lt_prog_compiler_pic=
8527     lt_prog_compiler_can_build_shared=no
8528fi
8529
8530fi
8531case $host_os in
8532  # For platforms which do not support PIC, -DPIC is meaningless:
8533  *djgpp*)
8534    lt_prog_compiler_pic=
8535    ;;
8536  *)
8537    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8538    ;;
8539esac
8540
8541#
8542# Check to make sure the static flag actually works.
8543#
8544wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8545echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8546echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8547if test "${lt_prog_compiler_static_works+set}" = set; then
8548  echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550  lt_prog_compiler_static_works=no
8551   save_LDFLAGS="$LDFLAGS"
8552   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8553   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8554   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8555     # The linker can only warn and ignore the option if not recognized
8556     # So say no if there are warnings
8557     if test -s conftest.err; then
8558       # Append any errors to the config.log.
8559       cat conftest.err 1>&5
8560       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8561       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8562       if diff conftest.exp conftest.er2 >/dev/null; then
8563         lt_prog_compiler_static_works=yes
8564       fi
8565     else
8566       lt_prog_compiler_static_works=yes
8567     fi
8568   fi
8569   $rm conftest*
8570   LDFLAGS="$save_LDFLAGS"
8571
8572fi
8573echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8574echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8575
8576if test x"$lt_prog_compiler_static_works" = xyes; then
8577    :
8578else
8579    lt_prog_compiler_static=
8580fi
8581
8582
8583echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8584echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8585if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8586  echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588  lt_cv_prog_compiler_c_o=no
8589   $rm -r conftest 2>/dev/null
8590   mkdir conftest
8591   cd conftest
8592   mkdir out
8593   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8594
8595   lt_compiler_flag="-o out/conftest2.$ac_objext"
8596   # Insert the option either (1) after the last *FLAGS variable, or
8597   # (2) before a word containing "conftest.", or (3) at the end.
8598   # Note that $ac_compile itself does not contain backslashes and begins
8599   # with a dollar sign (not a hyphen), so the echo should work correctly.
8600   lt_compile=`echo "$ac_compile" | $SED \
8601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603   -e 's:$: $lt_compiler_flag:'`
8604   (eval echo "\"\$as_me:8604: $lt_compile\"" >&5)
8605   (eval "$lt_compile" 2>out/conftest.err)
8606   ac_status=$?
8607   cat out/conftest.err >&5
8608   echo "$as_me:8608: \$? = $ac_status" >&5
8609   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8610   then
8611     # The compiler can only warn and ignore the option if not recognized
8612     # So say no if there are warnings
8613     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8614     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8615     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8616       lt_cv_prog_compiler_c_o=yes
8617     fi
8618   fi
8619   chmod u+w . 2>&5
8620   $rm conftest*
8621   # SGI C++ compiler will create directory out/ii_files/ for
8622   # template instantiation
8623   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8624   $rm out/* && rmdir out
8625   cd ..
8626   rmdir conftest
8627   $rm conftest*
8628
8629fi
8630echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8631echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8632
8633
8634hard_links="nottested"
8635if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8636  # do not overwrite the value of need_locks provided by the user
8637  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8638echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8639  hard_links=yes
8640  $rm conftest*
8641  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8642  touch conftest.a
8643  ln conftest.a conftest.b 2>&5 || hard_links=no
8644  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8645  echo "$as_me:$LINENO: result: $hard_links" >&5
8646echo "${ECHO_T}$hard_links" >&6
8647  if test "$hard_links" = no; then
8648    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8649echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8650    need_locks=warn
8651  fi
8652else
8653  need_locks=no
8654fi
8655
8656echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8657echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8658
8659  runpath_var=
8660  allow_undefined_flag=
8661  enable_shared_with_static_runtimes=no
8662  archive_cmds=
8663  archive_expsym_cmds=
8664  old_archive_From_new_cmds=
8665  old_archive_from_expsyms_cmds=
8666  export_dynamic_flag_spec=
8667  whole_archive_flag_spec=
8668  thread_safe_flag_spec=
8669  hardcode_libdir_flag_spec=
8670  hardcode_libdir_flag_spec_ld=
8671  hardcode_libdir_separator=
8672  hardcode_direct=no
8673  hardcode_minus_L=no
8674  hardcode_shlibpath_var=unsupported
8675  link_all_deplibs=unknown
8676  hardcode_automatic=no
8677  module_cmds=
8678  module_expsym_cmds=
8679  always_export_symbols=no
8680  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8681  # include_expsyms should be a list of space-separated symbols to be *always*
8682  # included in the symbol list
8683  include_expsyms=
8684  # exclude_expsyms can be an extended regexp of symbols to exclude
8685  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8686  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8687  # as well as any symbol that contains `d'.
8688  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8689  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8690  # platforms (ab)use it in PIC code, but their linkers get confused if
8691  # the symbol is explicitly referenced.  Since portable code cannot
8692  # rely on this symbol name, it's probably fine to never include it in
8693  # preloaded symbol tables.
8694  extract_expsyms_cmds=
8695  # Just being paranoid about ensuring that cc_basename is set.
8696  for cc_temp in $compiler""; do
8697  case $cc_temp in
8698    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8699    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8700    \-*) ;;
8701    *) break;;
8702  esac
8703done
8704cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8705
8706  case $host_os in
8707  cygwin* | mingw* | pw32*)
8708    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8709    # When not using gcc, we currently assume that we are using
8710    # Microsoft Visual C++.
8711    if test "$GCC" != yes; then
8712      with_gnu_ld=no
8713    fi
8714    ;;
8715  interix*)
8716    # we just hope/assume this is gcc and not c89 (= MSVC++)
8717    with_gnu_ld=yes
8718    ;;
8719  openbsd*)
8720    with_gnu_ld=no
8721    ;;
8722  esac
8723
8724  ld_shlibs=yes
8725  if test "$with_gnu_ld" = yes; then
8726    # If archive_cmds runs LD, not CC, wlarc should be empty
8727    wlarc='${wl}'
8728
8729    # Set some defaults for GNU ld with shared library support. These
8730    # are reset later if shared libraries are not supported. Putting them
8731    # here allows them to be overridden if necessary.
8732    runpath_var=LD_RUN_PATH
8733    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8734    export_dynamic_flag_spec='${wl}--export-dynamic'
8735    # ancient GNU ld didn't support --whole-archive et. al.
8736    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8737        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8738      else
8739        whole_archive_flag_spec=
8740    fi
8741    supports_anon_versioning=no
8742    case `$LD -v 2>/dev/null` in
8743      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8744      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8745      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8746      *\ 2.11.*) ;; # other 2.11 versions
8747      *) supports_anon_versioning=yes ;;
8748    esac
8749
8750    # See if GNU ld supports shared libraries.
8751    case $host_os in
8752    aix3* | aix4* | aix5*)
8753      # On AIX/PPC, the GNU linker is very broken
8754      if test "$host_cpu" != ia64; then
8755        ld_shlibs=no
8756        cat <<EOF 1>&2
8757
8758*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8759*** to be unable to reliably create shared libraries on AIX.
8760*** Therefore, libtool is disabling shared libraries support.  If you
8761*** really care for shared libraries, you may want to modify your PATH
8762*** so that a non-GNU linker is found, and then restart.
8763
8764EOF
8765      fi
8766      ;;
8767
8768    amigaos*)
8769      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)'
8770      hardcode_libdir_flag_spec='-L$libdir'
8771      hardcode_minus_L=yes
8772
8773      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8774      # that the semantics of dynamic libraries on AmigaOS, at least up
8775      # to version 4, is to share data among multiple programs linked
8776      # with the same dynamic library.  Since this doesn't match the
8777      # behavior of shared libraries on other platforms, we can't use
8778      # them.
8779      ld_shlibs=no
8780      ;;
8781
8782    beos*)
8783      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8784        allow_undefined_flag=unsupported
8785        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8786        # support --undefined.  This deserves some investigation.  FIXME
8787        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8788      else
8789        ld_shlibs=no
8790      fi
8791      ;;
8792
8793    cygwin* | mingw* | pw32*)
8794      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8795      # as there is no search path for DLLs.
8796      hardcode_libdir_flag_spec='-L$libdir'
8797      allow_undefined_flag=unsupported
8798      always_export_symbols=no
8799      enable_shared_with_static_runtimes=yes
8800      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8801
8802      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8803        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8804        # If the export-symbols file already is a .def file (1st line
8805        # is EXPORTS), use it as is; otherwise, prepend...
8806        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8807          cp $export_symbols $output_objdir/$soname.def;
8808        else
8809          echo EXPORTS > $output_objdir/$soname.def;
8810          cat $export_symbols >> $output_objdir/$soname.def;
8811        fi~
8812        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8813      else
8814        ld_shlibs=no
8815      fi
8816      ;;
8817
8818    interix3*)
8819      hardcode_direct=no
8820      hardcode_shlibpath_var=no
8821      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822      export_dynamic_flag_spec='${wl}-E'
8823      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8824      # Instead, shared libraries are loaded at an image base (0x10000000 by
8825      # default) and relocated if they conflict, which is a slow very memory
8826      # consuming and fragmenting process.  To avoid this, we pick a random,
8827      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8828      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8829      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8830      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'
8831      ;;
8832
8833    linux*)
8834      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8835        tmp_addflag=
8836        case $cc_basename,$host_cpu in
8837        pgcc*)                          # Portland Group C compiler
8838          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'
8839          tmp_addflag=' $pic_flag'
8840          ;;
8841        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8842          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'
8843          tmp_addflag=' $pic_flag -Mnomain' ;;
8844        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8845          tmp_addflag=' -i_dynamic' ;;
8846        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8847          tmp_addflag=' -i_dynamic -nofor_main' ;;
8848        ifc* | ifort*)                  # Intel Fortran compiler
8849          tmp_addflag=' -nofor_main' ;;
8850        esac
8851        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852
8853        if test $supports_anon_versioning = yes; then
8854          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8855  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8856  $echo "local: *; };" >> $output_objdir/$libname.ver~
8857          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8858        fi
8859      else
8860        ld_shlibs=no
8861      fi
8862      ;;
8863
8864    netbsd*)
8865      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8866        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8867        wlarc=
8868      else
8869        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8871      fi
8872      ;;
8873
8874    solaris*)
8875      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8876        ld_shlibs=no
8877        cat <<EOF 1>&2
8878
8879*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8880*** create shared libraries on Solaris systems.  Therefore, libtool
8881*** is disabling shared libraries support.  We urge you to upgrade GNU
8882*** binutils to release 2.9.1 or newer.  Another option is to modify
8883*** your PATH or compiler configuration so that the native linker is
8884*** used, and then restart.
8885
8886EOF
8887      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8888        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8890      else
8891        ld_shlibs=no
8892      fi
8893      ;;
8894
8895    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8896      case `$LD -v 2>&1` in
8897        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8898        ld_shlibs=no
8899        cat <<_LT_EOF 1>&2
8900
8901*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8902*** reliably create shared libraries on SCO systems.  Therefore, libtool
8903*** is disabling shared libraries support.  We urge you to upgrade GNU
8904*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8905*** your PATH or compiler configuration so that the native linker is
8906*** used, and then restart.
8907
8908_LT_EOF
8909        ;;
8910        *)
8911          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8912            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8913            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8914            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8915          else
8916            ld_shlibs=no
8917          fi
8918        ;;
8919      esac
8920      ;;
8921
8922    sunos4*)
8923      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8924      wlarc=
8925      hardcode_direct=yes
8926      hardcode_shlibpath_var=no
8927      ;;
8928
8929    *)
8930      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8931        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8933      else
8934        ld_shlibs=no
8935      fi
8936      ;;
8937    esac
8938
8939    if test "$ld_shlibs" = no; then
8940      runpath_var=
8941      hardcode_libdir_flag_spec=
8942      export_dynamic_flag_spec=
8943      whole_archive_flag_spec=
8944    fi
8945  else
8946    # PORTME fill in a description of your system's linker (not GNU ld)
8947    case $host_os in
8948    aix3*)
8949      allow_undefined_flag=unsupported
8950      always_export_symbols=yes
8951      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'
8952      # Note: this linker hardcodes the directories in LIBPATH if there
8953      # are no directories specified by -L.
8954      hardcode_minus_L=yes
8955      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8956        # Neither direct hardcoding nor static linking is supported with a
8957        # broken collect2.
8958        hardcode_direct=unsupported
8959      fi
8960      ;;
8961
8962    aix4* | aix5*)
8963      if test "$host_cpu" = ia64; then
8964        # On IA64, the linker does run time linking by default, so we don't
8965        # have to do anything special.
8966        aix_use_runtimelinking=no
8967        exp_sym_flag='-Bexport'
8968        no_entry_flag=""
8969      else
8970        # If we're using GNU nm, then we don't want the "-C" option.
8971        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8972        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8973          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'
8974        else
8975          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'
8976        fi
8977        aix_use_runtimelinking=no
8978
8979        # Test if we are trying to use run time linking or normal
8980        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8981        # need to do runtime linking.
8982        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8983          for ld_flag in $LDFLAGS; do
8984          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8985            aix_use_runtimelinking=yes
8986            break
8987          fi
8988          done
8989          ;;
8990        esac
8991
8992        exp_sym_flag='-bexport'
8993        no_entry_flag='-bnoentry'
8994      fi
8995
8996      # When large executables or shared objects are built, AIX ld can
8997      # have problems creating the table of contents.  If linking a library
8998      # or program results in "error TOC overflow" add -mminimal-toc to
8999      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9000      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9001
9002      archive_cmds=''
9003      hardcode_direct=yes
9004      hardcode_libdir_separator=':'
9005      link_all_deplibs=yes
9006
9007      if test "$GCC" = yes; then
9008        case $host_os in aix4.[012]|aix4.[012].*)
9009        # We only want to do this on AIX 4.2 and lower, the check
9010        # below for broken collect2 doesn't work under 4.3+
9011          collect2name=`${CC} -print-prog-name=collect2`
9012          if test -f "$collect2name" && \
9013           strings "$collect2name" | grep resolve_lib_name >/dev/null
9014          then
9015          # We have reworked collect2
9016          hardcode_direct=yes
9017          else
9018          # We have old collect2
9019          hardcode_direct=unsupported
9020          # It fails to find uninstalled libraries when the uninstalled
9021          # path is not listed in the libpath.  Setting hardcode_minus_L
9022          # to unsupported forces relinking
9023          hardcode_minus_L=yes
9024          hardcode_libdir_flag_spec='-L$libdir'
9025          hardcode_libdir_separator=
9026          fi
9027          ;;
9028        esac
9029        shared_flag='-shared'
9030        if test "$aix_use_runtimelinking" = yes; then
9031          shared_flag="$shared_flag "'${wl}-G'
9032        fi
9033      else
9034        # not using gcc
9035        if test "$host_cpu" = ia64; then
9036        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9037        # chokes on -Wl,-G. The following line is correct:
9038          shared_flag='-G'
9039        else
9040          if test "$aix_use_runtimelinking" = yes; then
9041            shared_flag='${wl}-G'
9042          else
9043            shared_flag='${wl}-bM:SRE'
9044          fi
9045        fi
9046      fi
9047
9048      # It seems that -bexpall does not export symbols beginning with
9049      # underscore (_), so it is better to generate a list of symbols to export.
9050      always_export_symbols=yes
9051      if test "$aix_use_runtimelinking" = yes; then
9052        # Warning - without using the other runtime loading flags (-brtl),
9053        # -berok will link without error, but may produce a broken library.
9054        allow_undefined_flag='-berok'
9055       # Determine the default libpath from the value encoded in an empty executable.
9056       cat >conftest.$ac_ext <<_ACEOF
9057/* confdefs.h.  */
9058_ACEOF
9059cat confdefs.h >>conftest.$ac_ext
9060cat >>conftest.$ac_ext <<_ACEOF
9061/* end confdefs.h.  */
9062
9063int
9064main ()
9065{
9066
9067  ;
9068  return 0;
9069}
9070_ACEOF
9071rm -f conftest.$ac_objext conftest$ac_exeext
9072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073  (eval $ac_link) 2>conftest.er1
9074  ac_status=$?
9075  grep -v '^ *+' conftest.er1 >conftest.err
9076  rm -f conftest.er1
9077  cat conftest.err >&5
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); } &&
9080         { ac_try='test -z "$ac_c_werror_flag"
9081                         || test ! -s conftest.err'
9082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083  (eval $ac_try) 2>&5
9084  ac_status=$?
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); }; } &&
9087         { ac_try='test -s conftest$ac_exeext'
9088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089  (eval $ac_try) 2>&5
9090  ac_status=$?
9091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092  (exit $ac_status); }; }; then
9093
9094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9095}'`
9096# Check for a 64-bit object if we didn't find anything.
9097if 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; }
9098}'`; fi
9099else
9100  echo "$as_me: failed program was:" >&5
9101sed 's/^/| /' conftest.$ac_ext >&5
9102
9103fi
9104rm -f conftest.err conftest.$ac_objext \
9105      conftest$ac_exeext conftest.$ac_ext
9106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9107
9108       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109        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"
9110       else
9111        if test "$host_cpu" = ia64; then
9112          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9113          allow_undefined_flag="-z nodefs"
9114          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"
9115        else
9116         # Determine the default libpath from the value encoded in an empty executable.
9117         cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h.  */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
9122/* end confdefs.h.  */
9123
9124int
9125main ()
9126{
9127
9128  ;
9129  return 0;
9130}
9131_ACEOF
9132rm -f conftest.$ac_objext conftest$ac_exeext
9133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9134  (eval $ac_link) 2>conftest.er1
9135  ac_status=$?
9136  grep -v '^ *+' conftest.er1 >conftest.err
9137  rm -f conftest.er1
9138  cat conftest.err >&5
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); } &&
9141         { ac_try='test -z "$ac_c_werror_flag"
9142                         || test ! -s conftest.err'
9143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144  (eval $ac_try) 2>&5
9145  ac_status=$?
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); }; } &&
9148         { ac_try='test -s conftest$ac_exeext'
9149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150  (eval $ac_try) 2>&5
9151  ac_status=$?
9152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153  (exit $ac_status); }; }; then
9154
9155aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9156}'`
9157# Check for a 64-bit object if we didn't find anything.
9158if 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; }
9159}'`; fi
9160else
9161  echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164fi
9165rm -f conftest.err conftest.$ac_objext \
9166      conftest$ac_exeext conftest.$ac_ext
9167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9168
9169         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9170          # Warning - without using the other run time loading flags,
9171          # -berok will link without error, but may produce a broken library.
9172          no_undefined_flag=' ${wl}-bernotok'
9173          allow_undefined_flag=' ${wl}-berok'
9174          # Exported symbols can be pulled into shared objects from archives
9175          whole_archive_flag_spec='$convenience'
9176          archive_cmds_need_lc=yes
9177          # This is similar to how AIX traditionally builds its shared libraries.
9178          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'
9179        fi
9180      fi
9181      ;;
9182
9183    amigaos*)
9184      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)'
9185      hardcode_libdir_flag_spec='-L$libdir'
9186      hardcode_minus_L=yes
9187      # see comment about different semantics on the GNU ld section
9188      ld_shlibs=no
9189      ;;
9190
9191    bsdi[45]*)
9192      export_dynamic_flag_spec=-rdynamic
9193      ;;
9194
9195    cygwin* | mingw* | pw32*)
9196      # When not using gcc, we currently assume that we are using
9197      # Microsoft Visual C++.
9198      # hardcode_libdir_flag_spec is actually meaningless, as there is
9199      # no search path for DLLs.
9200      hardcode_libdir_flag_spec=' '
9201      allow_undefined_flag=unsupported
9202      # Tell ltmain to make .lib files, not .a files.
9203      libext=lib
9204      # Tell ltmain to make .dll files, not .so files.
9205      shrext_cmds=".dll"
9206      # FIXME: Setting linknames here is a bad hack.
9207      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9208      # The linker will automatically build a .lib file if we build a DLL.
9209      old_archive_From_new_cmds='true'
9210      # FIXME: Should let the user specify the lib program.
9211      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9212      fix_srcfile_path='`cygpath -w "$srcfile"`'
9213      enable_shared_with_static_runtimes=yes
9214      ;;
9215
9216    darwin* | rhapsody*)
9217      case $host_os in
9218        rhapsody* | darwin1.[012])
9219         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9220         ;;
9221       *) # Darwin 1.3 on
9222         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9223           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9224         else
9225           case ${MACOSX_DEPLOYMENT_TARGET} in
9226             10.[012])
9227               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9228               ;;
9229             10.*)
9230               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9231               ;;
9232           esac
9233         fi
9234         ;;
9235      esac
9236      archive_cmds_need_lc=no
9237      hardcode_direct=no
9238      hardcode_automatic=yes
9239      hardcode_shlibpath_var=unsupported
9240      whole_archive_flag_spec=''
9241      link_all_deplibs=yes
9242    if test "$GCC" = yes ; then
9243        output_verbose_link_cmd='echo'
9244        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9245      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9246      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9247      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}'
9248      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}'
9249    else
9250      case $cc_basename in
9251        xlc*)
9252         output_verbose_link_cmd='echo'
9253         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9254         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9255          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9256         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}'
9257          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}'
9258          ;;
9259       *)
9260         ld_shlibs=no
9261          ;;
9262      esac
9263    fi
9264      ;;
9265
9266    dgux*)
9267      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268      hardcode_libdir_flag_spec='-L$libdir'
9269      hardcode_shlibpath_var=no
9270      ;;
9271
9272    freebsd1*)
9273      ld_shlibs=no
9274      ;;
9275
9276    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9277    # support.  Future versions do this automatically, but an explicit c++rt0.o
9278    # does not break anything, and helps significantly (at the cost of a little
9279    # extra space).
9280    freebsd2.2*)
9281      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9282      hardcode_libdir_flag_spec='-R$libdir'
9283      hardcode_direct=yes
9284      hardcode_shlibpath_var=no
9285      ;;
9286
9287    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9288    freebsd2*)
9289      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9290      hardcode_direct=yes
9291      hardcode_minus_L=yes
9292      hardcode_shlibpath_var=no
9293      ;;
9294
9295    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9296    freebsd* | kfreebsd*-gnu | dragonfly*)
9297      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9298      hardcode_libdir_flag_spec='-R$libdir'
9299      hardcode_direct=yes
9300      hardcode_shlibpath_var=no
9301      ;;
9302
9303    hpux9*)
9304      if test "$GCC" = yes; then
9305        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'
9306      else
9307        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'
9308      fi
9309      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9310      hardcode_libdir_separator=:
9311      hardcode_direct=yes
9312
9313      # hardcode_minus_L: Not really in the search PATH,
9314      # but as the default location of the library.
9315      hardcode_minus_L=yes
9316      export_dynamic_flag_spec='${wl}-E'
9317      ;;
9318
9319    hpux10*)
9320      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9321        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9322      else
9323        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9324      fi
9325      if test "$with_gnu_ld" = no; then
9326        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9327        hardcode_libdir_separator=:
9328
9329        hardcode_direct=yes
9330        export_dynamic_flag_spec='${wl}-E'
9331
9332        # hardcode_minus_L: Not really in the search PATH,
9333        # but as the default location of the library.
9334        hardcode_minus_L=yes
9335      fi
9336      ;;
9337
9338    hpux11*)
9339      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9340        case $host_cpu in
9341        hppa*64*)
9342          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9343          ;;
9344        ia64*)
9345          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9346          ;;
9347        *)
9348          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9349          ;;
9350        esac
9351      else
9352        case $host_cpu in
9353        hppa*64*)
9354          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9355          ;;
9356        ia64*)
9357          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9358          ;;
9359        *)
9360          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9361          ;;
9362        esac
9363      fi
9364      if test "$with_gnu_ld" = no; then
9365        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9366        hardcode_libdir_separator=:
9367
9368        case $host_cpu in
9369        hppa*64*|ia64*)
9370          hardcode_libdir_flag_spec_ld='+b $libdir'
9371          hardcode_direct=no
9372          hardcode_shlibpath_var=no
9373          ;;
9374        *)
9375          hardcode_direct=yes
9376          export_dynamic_flag_spec='${wl}-E'
9377
9378          # hardcode_minus_L: Not really in the search PATH,
9379          # but as the default location of the library.
9380          hardcode_minus_L=yes
9381          ;;
9382        esac
9383      fi
9384      ;;
9385
9386    irix5* | irix6* | nonstopux*)
9387      if test "$GCC" = yes; then
9388        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'
9389      else
9390        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'
9391        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9392      fi
9393      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394      hardcode_libdir_separator=:
9395      link_all_deplibs=yes
9396      ;;
9397
9398    netbsd*)
9399      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9400        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9401      else
9402        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9403      fi
9404      hardcode_libdir_flag_spec='-R$libdir'
9405      hardcode_direct=yes
9406      hardcode_shlibpath_var=no
9407      ;;
9408
9409    newsos6)
9410      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411      hardcode_direct=yes
9412      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413      hardcode_libdir_separator=:
9414      hardcode_shlibpath_var=no
9415      ;;
9416
9417    openbsd*)
9418      hardcode_direct=yes
9419      hardcode_shlibpath_var=no
9420      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9421        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9422        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9423        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424        export_dynamic_flag_spec='${wl}-E'
9425      else
9426       case $host_os in
9427         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9428           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9429           hardcode_libdir_flag_spec='-R$libdir'
9430           ;;
9431         *)
9432           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9433           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9434           ;;
9435       esac
9436      fi
9437      ;;
9438
9439    os2*)
9440      hardcode_libdir_flag_spec='-L$libdir'
9441      hardcode_minus_L=yes
9442      allow_undefined_flag=unsupported
9443      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'
9444      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9445      ;;
9446
9447    osf3*)
9448      if test "$GCC" = yes; then
9449        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9450        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'
9451      else
9452        allow_undefined_flag=' -expect_unresolved \*'
9453        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'
9454      fi
9455      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9456      hardcode_libdir_separator=:
9457      ;;
9458
9459    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9460      if test "$GCC" = yes; then
9461        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9462        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'
9463        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464      else
9465        allow_undefined_flag=' -expect_unresolved \*'
9466        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'
9467        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9468        $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'
9469
9470        # Both c and cxx compiler support -rpath directly
9471        hardcode_libdir_flag_spec='-rpath $libdir'
9472      fi
9473      hardcode_libdir_separator=:
9474      ;;
9475
9476    solaris*)
9477      no_undefined_flag=' -z text'
9478      if test "$GCC" = yes; then
9479        wlarc='${wl}'
9480        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9482          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9483      else
9484        wlarc=''
9485        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9487        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9488      fi
9489      hardcode_libdir_flag_spec='-R$libdir'
9490      hardcode_shlibpath_var=no
9491      case $host_os in
9492      solaris2.[0-5] | solaris2.[0-5].*) ;;
9493      *)
9494        # The compiler driver will combine linker options so we
9495        # cannot just pass the convience library names through
9496        # without $wl, iff we do not link with $LD.
9497        # Luckily, gcc supports the same syntax we need for Sun Studio.
9498        # Supported since Solaris 2.6 (maybe 2.5.1?)
9499        case $wlarc in
9500        '')
9501          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9502        *)
9503          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' ;;
9504        esac ;;
9505      esac
9506      link_all_deplibs=yes
9507      ;;
9508
9509    sunos4*)
9510      if test "x$host_vendor" = xsequent; then
9511        # Use $CC to link under sequent, because it throws in some extra .o
9512        # files that make .init and .fini sections work.
9513        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9514      else
9515        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9516      fi
9517      hardcode_libdir_flag_spec='-L$libdir'
9518      hardcode_direct=yes
9519      hardcode_minus_L=yes
9520      hardcode_shlibpath_var=no
9521      ;;
9522
9523    sysv4)
9524      case $host_vendor in
9525        sni)
9526          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527          hardcode_direct=yes # is this really true???
9528        ;;
9529        siemens)
9530          ## LD is ld it makes a PLAMLIB
9531          ## CC just makes a GrossModule.
9532          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9533          reload_cmds='$CC -r -o $output$reload_objs'
9534          hardcode_direct=no
9535        ;;
9536        motorola)
9537          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9539        ;;
9540      esac
9541      runpath_var='LD_RUN_PATH'
9542      hardcode_shlibpath_var=no
9543      ;;
9544
9545    sysv4.3*)
9546      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547      hardcode_shlibpath_var=no
9548      export_dynamic_flag_spec='-Bexport'
9549      ;;
9550
9551    sysv4*MP*)
9552      if test -d /usr/nec; then
9553        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554        hardcode_shlibpath_var=no
9555        runpath_var=LD_RUN_PATH
9556        hardcode_runpath_var=yes
9557        ld_shlibs=yes
9558      fi
9559      ;;
9560
9561    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9562      no_undefined_flag='${wl}-z,text'
9563      archive_cmds_need_lc=no
9564      hardcode_shlibpath_var=no
9565      runpath_var='LD_RUN_PATH'
9566
9567      if test "$GCC" = yes; then
9568        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570      else
9571        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573      fi
9574      ;;
9575
9576    sysv5* | sco3.2v5* | sco5v6*)
9577      # Note: We can NOT use -z defs as we might desire, because we do not
9578      # link with -lc, and that would cause any symbols used from libc to
9579      # always be unresolved, which means just about no library would
9580      # ever link correctly.  If we're not using GNU ld we use -z text
9581      # though, which does catch some bad symbols but isn't as heavy-handed
9582      # as -z defs.
9583      no_undefined_flag='${wl}-z,text'
9584      allow_undefined_flag='${wl}-z,nodefs'
9585      archive_cmds_need_lc=no
9586      hardcode_shlibpath_var=no
9587      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9588      hardcode_libdir_separator=':'
9589      link_all_deplibs=yes
9590      export_dynamic_flag_spec='${wl}-Bexport'
9591      runpath_var='LD_RUN_PATH'
9592
9593      if test "$GCC" = yes; then
9594        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9595        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9596      else
9597        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599      fi
9600      ;;
9601
9602    uts4*)
9603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604      hardcode_libdir_flag_spec='-L$libdir'
9605      hardcode_shlibpath_var=no
9606      ;;
9607
9608    *)
9609      ld_shlibs=no
9610      ;;
9611    esac
9612  fi
9613
9614echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9615echo "${ECHO_T}$ld_shlibs" >&6
9616test "$ld_shlibs" = no && can_build_shared=no
9617
9618#
9619# Do we need to explicitly link libc?
9620#
9621case "x$archive_cmds_need_lc" in
9622x|xyes)
9623  # Assume -lc should be added
9624  archive_cmds_need_lc=yes
9625
9626  if test "$enable_shared" = yes && test "$GCC" = yes; then
9627    case $archive_cmds in
9628    *'~'*)
9629      # FIXME: we may have to deal with multi-command sequences.
9630      ;;
9631    '$CC '*)
9632      # Test whether the compiler implicitly links with -lc since on some
9633      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9634      # to ld, don't add -lc before -lgcc.
9635      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9636echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9637      $rm conftest*
9638      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9639
9640      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641  (eval $ac_compile) 2>&5
9642  ac_status=$?
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); } 2>conftest.err; then
9645        soname=conftest
9646        lib=conftest
9647        libobjs=conftest.$ac_objext
9648        deplibs=
9649        wl=$lt_prog_compiler_wl
9650        pic_flag=$lt_prog_compiler_pic
9651        compiler_flags=-v
9652        linker_flags=-v
9653        verstring=
9654        output_objdir=.
9655        libname=conftest
9656        lt_save_allow_undefined_flag=$allow_undefined_flag
9657        allow_undefined_flag=
9658        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9659  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9660  ac_status=$?
9661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662  (exit $ac_status); }
9663        then
9664          archive_cmds_need_lc=no
9665        else
9666          archive_cmds_need_lc=yes
9667        fi
9668        allow_undefined_flag=$lt_save_allow_undefined_flag
9669      else
9670        cat conftest.err 1>&5
9671      fi
9672      $rm conftest*
9673      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9674echo "${ECHO_T}$archive_cmds_need_lc" >&6
9675      ;;
9676    esac
9677  fi
9678  ;;
9679esac
9680
9681echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9682echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9683library_names_spec=
9684libname_spec='lib$name'
9685soname_spec=
9686shrext_cmds=".so"
9687postinstall_cmds=
9688postuninstall_cmds=
9689finish_cmds=
9690finish_eval=
9691shlibpath_var=
9692shlibpath_overrides_runpath=unknown
9693version_type=none
9694dynamic_linker="$host_os ld.so"
9695sys_lib_dlsearch_path_spec="/lib /usr/lib"
9696if test "$GCC" = yes; then
9697  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9698  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9699    # if the path contains ";" then we assume it to be the separator
9700    # otherwise default to the standard path separator (i.e. ":") - it is
9701    # assumed that no part of a normal pathname contains ";" but that should
9702    # okay in the real world where ";" in dirpaths is itself problematic.
9703    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9704  else
9705    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9706  fi
9707else
9708  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9709fi
9710need_lib_prefix=unknown
9711hardcode_into_libs=no
9712
9713# when you set need_version to no, make sure it does not cause -set_version
9714# flags to be left without arguments
9715need_version=unknown
9716
9717case $host_os in
9718aix3*)
9719  version_type=linux
9720  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9721  shlibpath_var=LIBPATH
9722
9723  # AIX 3 has no versioning support, so we append a major version to the name.
9724  soname_spec='${libname}${release}${shared_ext}$major'
9725  ;;
9726
9727aix4* | aix5*)
9728  version_type=linux
9729  need_lib_prefix=no
9730  need_version=no
9731  hardcode_into_libs=yes
9732  if test "$host_cpu" = ia64; then
9733    # AIX 5 supports IA64
9734    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9735    shlibpath_var=LD_LIBRARY_PATH
9736  else
9737    # With GCC up to 2.95.x, collect2 would create an import file
9738    # for dependence libraries.  The import file would start with
9739    # the line `#! .'.  This would cause the generated library to
9740    # depend on `.', always an invalid library.  This was fixed in
9741    # development snapshots of GCC prior to 3.0.
9742    case $host_os in
9743      aix4 | aix4.[01] | aix4.[01].*)
9744      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9745           echo ' yes '
9746           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9747        :
9748      else
9749        can_build_shared=no
9750      fi
9751      ;;
9752    esac
9753    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9754    # soname into executable. Probably we can add versioning support to
9755    # collect2, so additional links can be useful in future.
9756    if test "$aix_use_runtimelinking" = yes; then
9757      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9758      # instead of lib<name>.a to let people know that these are not
9759      # typical AIX shared libraries.
9760      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761    else
9762      # We preserve .a as extension for shared libraries through AIX4.2
9763      # and later when we are not doing run time linking.
9764      library_names_spec='${libname}${release}.a $libname.a'
9765      soname_spec='${libname}${release}${shared_ext}$major'
9766    fi
9767    shlibpath_var=LIBPATH
9768  fi
9769  ;;
9770
9771amigaos*)
9772  library_names_spec='$libname.ixlibrary $libname.a'
9773  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9774  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'
9775  ;;
9776
9777beos*)
9778  library_names_spec='${libname}${shared_ext}'
9779  dynamic_linker="$host_os ld.so"
9780  shlibpath_var=LIBRARY_PATH
9781  ;;
9782
9783bsdi[45]*)
9784  version_type=linux
9785  need_version=no
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9789  shlibpath_var=LD_LIBRARY_PATH
9790  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9791  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9792  # the default ld.so.conf also contains /usr/contrib/lib and
9793  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9794  # libtool to hard-code these into programs
9795  ;;
9796
9797cygwin* | mingw* | pw32*)
9798  version_type=windows
9799  shrext_cmds=".dll"
9800  need_version=no
9801  need_lib_prefix=no
9802
9803  case $GCC,$host_os in
9804  yes,cygwin* | yes,mingw* | yes,pw32*)
9805    library_names_spec='$libname.dll.a'
9806    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9807    postinstall_cmds='base_file=`basename \${file}`~
9808      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9809      dldir=$destdir/`dirname \$dlpath`~
9810      test -d \$dldir || mkdir -p \$dldir~
9811      $install_prog $dir/$dlname \$dldir/$dlname~
9812      chmod a+x \$dldir/$dlname'
9813    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9814      dlpath=$dir/\$dldll~
9815       $rm \$dlpath'
9816    shlibpath_overrides_runpath=yes
9817
9818    case $host_os in
9819    cygwin*)
9820      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9821      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9822      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9823      ;;
9824    mingw*)
9825      # MinGW DLLs use traditional 'lib' prefix
9826      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9827      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9828      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9829        # It is most probably a Windows format PATH printed by
9830        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9831        # path with ; separators, and with drive letters. We can handle the
9832        # drive letters (cygwin fileutils understands them), so leave them,
9833        # especially as we might pass files found there to a mingw objdump,
9834        # which wouldn't understand a cygwinified path. Ahh.
9835        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9836      else
9837        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9838      fi
9839      ;;
9840    pw32*)
9841      # pw32 DLLs use 'pw' prefix rather than 'lib'
9842      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9843      ;;
9844    esac
9845    ;;
9846
9847  *)
9848    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9849    ;;
9850  esac
9851  dynamic_linker='Win32 ld.exe'
9852  # FIXME: first we should search . and the directory the executable is in
9853  shlibpath_var=PATH
9854  ;;
9855
9856darwin* | rhapsody*)
9857  dynamic_linker="$host_os dyld"
9858  version_type=darwin
9859  need_lib_prefix=no
9860  need_version=no
9861  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9862  soname_spec='${libname}${release}${major}$shared_ext'
9863  shlibpath_overrides_runpath=yes
9864  shlibpath_var=DYLD_LIBRARY_PATH
9865  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9866  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9867  if test "$GCC" = yes; then
9868    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"`
9869  else
9870    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9871  fi
9872  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9873  ;;
9874
9875dgux*)
9876  version_type=linux
9877  need_lib_prefix=no
9878  need_version=no
9879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9880  soname_spec='${libname}${release}${shared_ext}$major'
9881  shlibpath_var=LD_LIBRARY_PATH
9882  ;;
9883
9884freebsd1*)
9885  dynamic_linker=no
9886  ;;
9887
9888kfreebsd*-gnu)
9889  version_type=linux
9890  need_lib_prefix=no
9891  need_version=no
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893  soname_spec='${libname}${release}${shared_ext}$major'
9894  shlibpath_var=LD_LIBRARY_PATH
9895  shlibpath_overrides_runpath=no
9896  hardcode_into_libs=yes
9897  dynamic_linker='GNU ld.so'
9898  ;;
9899
9900freebsd* | dragonfly*)
9901  # DragonFly does not have aout.  When/if they implement a new
9902  # versioning mechanism, adjust this.
9903  if test -x /usr/bin/objformat; then
9904    objformat=`/usr/bin/objformat`
9905  else
9906    case $host_os in
9907    freebsd[123]*) objformat=aout ;;
9908    *) objformat=elf ;;
9909    esac
9910  fi
9911  version_type=freebsd-$objformat
9912  case $version_type in
9913    freebsd-elf*)
9914      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9915      need_version=no
9916      need_lib_prefix=no
9917      ;;
9918    freebsd-*)
9919      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9920      need_version=yes
9921      ;;
9922  esac
9923  shlibpath_var=LD_LIBRARY_PATH
9924  case $host_os in
9925  freebsd2*)
9926    shlibpath_overrides_runpath=yes
9927    ;;
9928  freebsd3.[01]* | freebsdelf3.[01]*)
9929    shlibpath_overrides_runpath=yes
9930    hardcode_into_libs=yes
9931    ;;
9932  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9933  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9934    shlibpath_overrides_runpath=no
9935    hardcode_into_libs=yes
9936    ;;
9937  freebsd*) # from 4.6 on
9938    shlibpath_overrides_runpath=yes
9939    hardcode_into_libs=yes
9940    ;;
9941  esac
9942  ;;
9943
9944gnu*)
9945  version_type=linux
9946  need_lib_prefix=no
9947  need_version=no
9948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9949  soname_spec='${libname}${release}${shared_ext}$major'
9950  shlibpath_var=LD_LIBRARY_PATH
9951  hardcode_into_libs=yes
9952  ;;
9953
9954hpux9* | hpux10* | hpux11*)
9955  # Give a soname corresponding to the major version so that dld.sl refuses to
9956  # link against other versions.
9957  version_type=sunos
9958  need_lib_prefix=no
9959  need_version=no
9960  case $host_cpu in
9961  ia64*)
9962    shrext_cmds='.so'
9963    hardcode_into_libs=yes
9964    dynamic_linker="$host_os dld.so"
9965    shlibpath_var=LD_LIBRARY_PATH
9966    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9967    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968    soname_spec='${libname}${release}${shared_ext}$major'
9969    if test "X$HPUX_IA64_MODE" = X32; then
9970      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9971    else
9972      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9973    fi
9974    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9975    ;;
9976   hppa*64*)
9977     shrext_cmds='.sl'
9978     hardcode_into_libs=yes
9979     dynamic_linker="$host_os dld.sl"
9980     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983     soname_spec='${libname}${release}${shared_ext}$major'
9984     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9985     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9986     ;;
9987   *)
9988    shrext_cmds='.sl'
9989    dynamic_linker="$host_os dld.sl"
9990    shlibpath_var=SHLIB_PATH
9991    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9992    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993    soname_spec='${libname}${release}${shared_ext}$major'
9994    ;;
9995  esac
9996  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9997  postinstall_cmds='chmod 555 $lib'
9998  ;;
9999
10000interix3*)
10001  version_type=linux
10002  need_lib_prefix=no
10003  need_version=no
10004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10005  soname_spec='${libname}${release}${shared_ext}$major'
10006  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10007  shlibpath_var=LD_LIBRARY_PATH
10008  shlibpath_overrides_runpath=no
10009  hardcode_into_libs=yes
10010  ;;
10011
10012irix5* | irix6* | nonstopux*)
10013  case $host_os in
10014    nonstopux*) version_type=nonstopux ;;
10015    *)
10016        if test "$lt_cv_prog_gnu_ld" = yes; then
10017                version_type=linux
10018        else
10019                version_type=irix
10020        fi ;;
10021  esac
10022  need_lib_prefix=no
10023  need_version=no
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10026  case $host_os in
10027  irix5* | nonstopux*)
10028    libsuff= shlibsuff=
10029    ;;
10030  *)
10031    case $LD in # libtool.m4 will add one of these switches to LD
10032    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10033      libsuff= shlibsuff= libmagic=32-bit;;
10034    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10035      libsuff=32 shlibsuff=N32 libmagic=N32;;
10036    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10037      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10038    *) libsuff= shlibsuff= libmagic=never-match;;
10039    esac
10040    ;;
10041  esac
10042  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10043  shlibpath_overrides_runpath=no
10044  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10045  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10046  hardcode_into_libs=yes
10047  ;;
10048
10049# No shared lib support for Linux oldld, aout, or coff.
10050linux*oldld* | linux*aout* | linux*coff*)
10051  dynamic_linker=no
10052  ;;
10053
10054# This must be Linux ELF.
10055linux*)
10056  version_type=linux
10057  need_lib_prefix=no
10058  need_version=no
10059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060  soname_spec='${libname}${release}${shared_ext}$major'
10061  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10062  shlibpath_var=LD_LIBRARY_PATH
10063  shlibpath_overrides_runpath=no
10064  # This implies no fast_install, which is unacceptable.
10065  # Some rework will be needed to allow for fast_install
10066  # before this can be enabled.
10067  hardcode_into_libs=yes
10068
10069  # Append ld.so.conf contents to the search path
10070  if test -f /etc/ld.so.conf; then
10071    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' ' '`
10072    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10073  fi
10074
10075  # We used to test for /lib/ld.so.1 and disable shared libraries on
10076  # powerpc, because MkLinux only supported shared libraries with the
10077  # GNU dynamic linker.  Since this was broken with cross compilers,
10078  # most powerpc-linux boxes support dynamic linking these days and
10079  # people can always --disable-shared, the test was removed, and we
10080  # assume the GNU/Linux dynamic linker is in use.
10081  dynamic_linker='GNU/Linux ld.so'
10082  ;;
10083
10084knetbsd*-gnu)
10085  version_type=linux
10086  need_lib_prefix=no
10087  need_version=no
10088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089  soname_spec='${libname}${release}${shared_ext}$major'
10090  shlibpath_var=LD_LIBRARY_PATH
10091  shlibpath_overrides_runpath=no
10092  hardcode_into_libs=yes
10093  dynamic_linker='GNU ld.so'
10094  ;;
10095
10096netbsd*)
10097  version_type=sunos
10098  need_lib_prefix=no
10099  need_version=no
10100  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10101    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10102    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10103    dynamic_linker='NetBSD (a.out) ld.so'
10104  else
10105    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10106    soname_spec='${libname}${release}${shared_ext}$major'
10107    dynamic_linker='NetBSD ld.elf_so'
10108  fi
10109  shlibpath_var=LD_LIBRARY_PATH
10110  shlibpath_overrides_runpath=yes
10111  hardcode_into_libs=yes
10112  ;;
10113
10114newsos6)
10115  version_type=linux
10116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117  shlibpath_var=LD_LIBRARY_PATH
10118  shlibpath_overrides_runpath=yes
10119  ;;
10120
10121nto-qnx*)
10122  version_type=linux
10123  need_lib_prefix=no
10124  need_version=no
10125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126  soname_spec='${libname}${release}${shared_ext}$major'
10127  shlibpath_var=LD_LIBRARY_PATH
10128  shlibpath_overrides_runpath=yes
10129  ;;
10130
10131openbsd*)
10132  version_type=sunos
10133  sys_lib_dlsearch_path_spec="/usr/lib"
10134  need_lib_prefix=no
10135  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10136  case $host_os in
10137    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10138    *)                         need_version=no  ;;
10139  esac
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10141  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10144    case $host_os in
10145      openbsd2.[89] | openbsd2.[89].*)
10146        shlibpath_overrides_runpath=no
10147        ;;
10148      *)
10149        shlibpath_overrides_runpath=yes
10150        ;;
10151      esac
10152  else
10153    shlibpath_overrides_runpath=yes
10154  fi
10155  ;;
10156
10157os2*)
10158  libname_spec='$name'
10159  shrext_cmds=".dll"
10160  need_lib_prefix=no
10161  library_names_spec='$libname${shared_ext} $libname.a'
10162  dynamic_linker='OS/2 ld.exe'
10163  shlibpath_var=LIBPATH
10164  ;;
10165
10166osf3* | osf4* | osf5*)
10167  version_type=osf
10168  need_lib_prefix=no
10169  need_version=no
10170  soname_spec='${libname}${release}${shared_ext}$major'
10171  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172  shlibpath_var=LD_LIBRARY_PATH
10173  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10174  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10175  ;;
10176
10177solaris*)
10178  version_type=linux
10179  need_lib_prefix=no
10180  need_version=no
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182  soname_spec='${libname}${release}${shared_ext}$major'
10183  shlibpath_var=LD_LIBRARY_PATH
10184  shlibpath_overrides_runpath=yes
10185  hardcode_into_libs=yes
10186  # ldd complains unless libraries are executable
10187  postinstall_cmds='chmod +x $lib'
10188  ;;
10189
10190sunos4*)
10191  version_type=sunos
10192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10194  shlibpath_var=LD_LIBRARY_PATH
10195  shlibpath_overrides_runpath=yes
10196  if test "$with_gnu_ld" = yes; then
10197    need_lib_prefix=no
10198  fi
10199  need_version=yes
10200  ;;
10201
10202sysv4 | sysv4.3*)
10203  version_type=linux
10204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205  soname_spec='${libname}${release}${shared_ext}$major'
10206  shlibpath_var=LD_LIBRARY_PATH
10207  case $host_vendor in
10208    sni)
10209      shlibpath_overrides_runpath=no
10210      need_lib_prefix=no
10211      export_dynamic_flag_spec='${wl}-Blargedynsym'
10212      runpath_var=LD_RUN_PATH
10213      ;;
10214    siemens)
10215      need_lib_prefix=no
10216      ;;
10217    motorola)
10218      need_lib_prefix=no
10219      need_version=no
10220      shlibpath_overrides_runpath=no
10221      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10222      ;;
10223  esac
10224  ;;
10225
10226sysv4*MP*)
10227  if test -d /usr/nec ;then
10228    version_type=linux
10229    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10230    soname_spec='$libname${shared_ext}.$major'
10231    shlibpath_var=LD_LIBRARY_PATH
10232  fi
10233  ;;
10234
10235sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10236  version_type=freebsd-elf
10237  need_lib_prefix=no
10238  need_version=no
10239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10240  soname_spec='${libname}${release}${shared_ext}$major'
10241  shlibpath_var=LD_LIBRARY_PATH
10242  hardcode_into_libs=yes
10243  if test "$with_gnu_ld" = yes; then
10244    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10245    shlibpath_overrides_runpath=no
10246  else
10247    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10248    shlibpath_overrides_runpath=yes
10249    case $host_os in
10250      sco3.2v5*)
10251        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10252        ;;
10253    esac
10254  fi
10255  sys_lib_dlsearch_path_spec='/usr/lib'
10256  ;;
10257
10258uts4*)
10259  version_type=linux
10260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  shlibpath_var=LD_LIBRARY_PATH
10263  ;;
10264
10265*)
10266  dynamic_linker=no
10267  ;;
10268esac
10269echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10270echo "${ECHO_T}$dynamic_linker" >&6
10271test "$dynamic_linker" = no && can_build_shared=no
10272
10273variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10274if test "$GCC" = yes; then
10275  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10276fi
10277
10278echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10279echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10280hardcode_action=
10281if test -n "$hardcode_libdir_flag_spec" || \
10282   test -n "$runpath_var" || \
10283   test "X$hardcode_automatic" = "Xyes" ; then
10284
10285  # We can hardcode non-existant directories.
10286  if test "$hardcode_direct" != no &&
10287     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10288     # have to relink, otherwise we might link with an installed library
10289     # when we should be linking with a yet-to-be-installed one
10290     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10291     test "$hardcode_minus_L" != no; then
10292    # Linking always hardcodes the temporary library directory.
10293    hardcode_action=relink
10294  else
10295    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10296    hardcode_action=immediate
10297  fi
10298else
10299  # We cannot hardcode anything, or else we can only hardcode existing
10300  # directories.
10301  hardcode_action=unsupported
10302fi
10303echo "$as_me:$LINENO: result: $hardcode_action" >&5
10304echo "${ECHO_T}$hardcode_action" >&6
10305
10306if test "$hardcode_action" = relink; then
10307  # Fast installation is not supported
10308  enable_fast_install=no
10309elif test "$shlibpath_overrides_runpath" = yes ||
10310     test "$enable_shared" = no; then
10311  # Fast installation is not necessary
10312  enable_fast_install=needless
10313fi
10314
10315striplib=
10316old_striplib=
10317echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10318echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10319if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10320  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10321  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10322  echo "$as_me:$LINENO: result: yes" >&5
10323echo "${ECHO_T}yes" >&6
10324else
10325# FIXME - insert some real tests, host_os isn't really good enough
10326  case $host_os in
10327   darwin*)
10328       if test -n "$STRIP" ; then
10329         striplib="$STRIP -x"
10330         echo "$as_me:$LINENO: result: yes" >&5
10331echo "${ECHO_T}yes" >&6
10332       else
10333  echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335fi
10336       ;;
10337   *)
10338  echo "$as_me:$LINENO: result: no" >&5
10339echo "${ECHO_T}no" >&6
10340    ;;
10341  esac
10342fi
10343
10344if test "x$enable_dlopen" != xyes; then
10345  enable_dlopen=unknown
10346  enable_dlopen_self=unknown
10347  enable_dlopen_self_static=unknown
10348else
10349  lt_cv_dlopen=no
10350  lt_cv_dlopen_libs=
10351
10352  case $host_os in
10353  beos*)
10354    lt_cv_dlopen="load_add_on"
10355    lt_cv_dlopen_libs=
10356    lt_cv_dlopen_self=yes
10357    ;;
10358
10359  mingw* | pw32*)
10360    lt_cv_dlopen="LoadLibrary"
10361    lt_cv_dlopen_libs=
10362   ;;
10363
10364  cygwin*)
10365    lt_cv_dlopen="dlopen"
10366    lt_cv_dlopen_libs=
10367   ;;
10368
10369  darwin*)
10370  # if libdl is installed we need to link against it
10371    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10372echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10373if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10374  echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376  ac_check_lib_save_LIBS=$LIBS
10377LIBS="-ldl  $LIBS"
10378cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h.  */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h.  */
10384
10385/* Override any gcc2 internal prototype to avoid an error.  */
10386#ifdef __cplusplus
10387extern "C"
10388#endif
10389/* We use char because int might match the return type of a gcc2
10390   builtin and then its argument prototype would still apply.  */
10391char dlopen ();
10392int
10393main ()
10394{
10395dlopen ();
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402  (eval $ac_link) 2>conftest.er1
10403  ac_status=$?
10404  grep -v '^ *+' conftest.er1 >conftest.err
10405  rm -f conftest.er1
10406  cat conftest.err >&5
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); } &&
10409         { ac_try='test -z "$ac_c_werror_flag"
10410                         || test ! -s conftest.err'
10411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412  (eval $ac_try) 2>&5
10413  ac_status=$?
10414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415  (exit $ac_status); }; } &&
10416         { ac_try='test -s conftest$ac_exeext'
10417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418  (eval $ac_try) 2>&5
10419  ac_status=$?
10420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); }; }; then
10422  ac_cv_lib_dl_dlopen=yes
10423else
10424  echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427ac_cv_lib_dl_dlopen=no
10428fi
10429rm -f conftest.err conftest.$ac_objext \
10430      conftest$ac_exeext conftest.$ac_ext
10431LIBS=$ac_check_lib_save_LIBS
10432fi
10433echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10434echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10435if test $ac_cv_lib_dl_dlopen = yes; then
10436  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10437else
10438
10439    lt_cv_dlopen="dyld"
10440    lt_cv_dlopen_libs=
10441    lt_cv_dlopen_self=yes
10442
10443fi
10444
10445   ;;
10446
10447  *)
10448    echo "$as_me:$LINENO: checking for shl_load" >&5
10449echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10450if test "${ac_cv_func_shl_load+set}" = set; then
10451  echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453  cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h.  */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h.  */
10459/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10460   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10461#define shl_load innocuous_shl_load
10462
10463/* System header to define __stub macros and hopefully few prototypes,
10464    which can conflict with char shl_load (); below.
10465    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10466    <limits.h> exists even on freestanding compilers.  */
10467
10468#ifdef __STDC__
10469# include <limits.h>
10470#else
10471# include <assert.h>
10472#endif
10473
10474#undef shl_load
10475
10476/* Override any gcc2 internal prototype to avoid an error.  */
10477#ifdef __cplusplus
10478extern "C"
10479{
10480#endif
10481/* We use char because int might match the return type of a gcc2
10482   builtin and then its argument prototype would still apply.  */
10483char shl_load ();
10484/* The GNU C library defines this for functions which it implements
10485    to always fail with ENOSYS.  Some functions are actually named
10486    something starting with __ and the normal name is an alias.  */
10487#if defined (__stub_shl_load) || defined (__stub___shl_load)
10488choke me
10489#else
10490char (*f) () = shl_load;
10491#endif
10492#ifdef __cplusplus
10493}
10494#endif
10495
10496int
10497main ()
10498{
10499return f != shl_load;
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
10505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506  (eval $ac_link) 2>conftest.er1
10507  ac_status=$?
10508  grep -v '^ *+' conftest.er1 >conftest.err
10509  rm -f conftest.er1
10510  cat conftest.err >&5
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); } &&
10513         { ac_try='test -z "$ac_c_werror_flag"
10514                         || test ! -s conftest.err'
10515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516  (eval $ac_try) 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; } &&
10520         { ac_try='test -s conftest$ac_exeext'
10521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522  (eval $ac_try) 2>&5
10523  ac_status=$?
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); }; }; then
10526  ac_cv_func_shl_load=yes
10527else
10528  echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531ac_cv_func_shl_load=no
10532fi
10533rm -f conftest.err conftest.$ac_objext \
10534      conftest$ac_exeext conftest.$ac_ext
10535fi
10536echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10537echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10538if test $ac_cv_func_shl_load = yes; then
10539  lt_cv_dlopen="shl_load"
10540else
10541  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10542echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10543if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10544  echo $ECHO_N "(cached) $ECHO_C" >&6
10545else
10546  ac_check_lib_save_LIBS=$LIBS
10547LIBS="-ldld  $LIBS"
10548cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h.  */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h.  */
10554
10555/* Override any gcc2 internal prototype to avoid an error.  */
10556#ifdef __cplusplus
10557extern "C"
10558#endif
10559/* We use char because int might match the return type of a gcc2
10560   builtin and then its argument prototype would still apply.  */
10561char shl_load ();
10562int
10563main ()
10564{
10565shl_load ();
10566  ;
10567  return 0;
10568}
10569_ACEOF
10570rm -f conftest.$ac_objext conftest$ac_exeext
10571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572  (eval $ac_link) 2>conftest.er1
10573  ac_status=$?
10574  grep -v '^ *+' conftest.er1 >conftest.err
10575  rm -f conftest.er1
10576  cat conftest.err >&5
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); } &&
10579         { ac_try='test -z "$ac_c_werror_flag"
10580                         || test ! -s conftest.err'
10581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582  (eval $ac_try) 2>&5
10583  ac_status=$?
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); }; } &&
10586         { ac_try='test -s conftest$ac_exeext'
10587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588  (eval $ac_try) 2>&5
10589  ac_status=$?
10590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591  (exit $ac_status); }; }; then
10592  ac_cv_lib_dld_shl_load=yes
10593else
10594  echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
10597ac_cv_lib_dld_shl_load=no
10598fi
10599rm -f conftest.err conftest.$ac_objext \
10600      conftest$ac_exeext conftest.$ac_ext
10601LIBS=$ac_check_lib_save_LIBS
10602fi
10603echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10604echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10605if test $ac_cv_lib_dld_shl_load = yes; then
10606  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10607else
10608  echo "$as_me:$LINENO: checking for dlopen" >&5
10609echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10610if test "${ac_cv_func_dlopen+set}" = set; then
10611  echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613  cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h.  */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h.  */
10619/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10620   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10621#define dlopen innocuous_dlopen
10622
10623/* System header to define __stub macros and hopefully few prototypes,
10624    which can conflict with char dlopen (); below.
10625    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626    <limits.h> exists even on freestanding compilers.  */
10627
10628#ifdef __STDC__
10629# include <limits.h>
10630#else
10631# include <assert.h>
10632#endif
10633
10634#undef dlopen
10635
10636/* Override any gcc2 internal prototype to avoid an error.  */
10637#ifdef __cplusplus
10638extern "C"
10639{
10640#endif
10641/* We use char because int might match the return type of a gcc2
10642   builtin and then its argument prototype would still apply.  */
10643char dlopen ();
10644/* The GNU C library defines this for functions which it implements
10645    to always fail with ENOSYS.  Some functions are actually named
10646    something starting with __ and the normal name is an alias.  */
10647#if defined (__stub_dlopen) || defined (__stub___dlopen)
10648choke me
10649#else
10650char (*f) () = dlopen;
10651#endif
10652#ifdef __cplusplus
10653}
10654#endif
10655
10656int
10657main ()
10658{
10659return f != dlopen;
10660  ;
10661  return 0;
10662}
10663_ACEOF
10664rm -f conftest.$ac_objext conftest$ac_exeext
10665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666  (eval $ac_link) 2>conftest.er1
10667  ac_status=$?
10668  grep -v '^ *+' conftest.er1 >conftest.err
10669  rm -f conftest.er1
10670  cat conftest.err >&5
10671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672  (exit $ac_status); } &&
10673         { ac_try='test -z "$ac_c_werror_flag"
10674                         || test ! -s conftest.err'
10675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676  (eval $ac_try) 2>&5
10677  ac_status=$?
10678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679  (exit $ac_status); }; } &&
10680         { ac_try='test -s conftest$ac_exeext'
10681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682  (eval $ac_try) 2>&5
10683  ac_status=$?
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); }; }; then
10686  ac_cv_func_dlopen=yes
10687else
10688  echo "$as_me: failed program was:" >&5
10689sed 's/^/| /' conftest.$ac_ext >&5
10690
10691ac_cv_func_dlopen=no
10692fi
10693rm -f conftest.err conftest.$ac_objext \
10694      conftest$ac_exeext conftest.$ac_ext
10695fi
10696echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10697echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10698if test $ac_cv_func_dlopen = yes; then
10699  lt_cv_dlopen="dlopen"
10700else
10701  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10702echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10703if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10704  echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706  ac_check_lib_save_LIBS=$LIBS
10707LIBS="-ldl  $LIBS"
10708cat >conftest.$ac_ext <<_ACEOF
10709/* confdefs.h.  */
10710_ACEOF
10711cat confdefs.h >>conftest.$ac_ext
10712cat >>conftest.$ac_ext <<_ACEOF
10713/* end confdefs.h.  */
10714
10715/* Override any gcc2 internal prototype to avoid an error.  */
10716#ifdef __cplusplus
10717extern "C"
10718#endif
10719/* We use char because int might match the return type of a gcc2
10720   builtin and then its argument prototype would still apply.  */
10721char dlopen ();
10722int
10723main ()
10724{
10725dlopen ();
10726  ;
10727  return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext conftest$ac_exeext
10731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732  (eval $ac_link) 2>conftest.er1
10733  ac_status=$?
10734  grep -v '^ *+' conftest.er1 >conftest.err
10735  rm -f conftest.er1
10736  cat conftest.err >&5
10737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738  (exit $ac_status); } &&
10739         { ac_try='test -z "$ac_c_werror_flag"
10740                         || test ! -s conftest.err'
10741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742  (eval $ac_try) 2>&5
10743  ac_status=$?
10744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745  (exit $ac_status); }; } &&
10746         { ac_try='test -s conftest$ac_exeext'
10747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748  (eval $ac_try) 2>&5
10749  ac_status=$?
10750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751  (exit $ac_status); }; }; then
10752  ac_cv_lib_dl_dlopen=yes
10753else
10754  echo "$as_me: failed program was:" >&5
10755sed 's/^/| /' conftest.$ac_ext >&5
10756
10757ac_cv_lib_dl_dlopen=no