source: trunk/Cbc/configure @ 836

Last change on this file since 836 was 836, checked in by lou, 13 years ago

Updates to match OsiMsk? updates, Osi r1140.

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