source: branches/devel/Cbc/configure @ 489

Last change on this file since 489 was 459, checked in by andreasw, 13 years ago

updated autotools generated files in devel according to current BuildTools?/stable/0.5

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