source: branches/devel/Cbc/configure @ 529

Last change on this file since 529 was 499, checked in by andreasw, 13 years ago

added ASL library also for linking of cbc-generic

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