source: trunk/Cbc/configure @ 398

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

corrected handling of CXXDEFS and CDEFS for --enable-debug (was ignored)

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