source: trunk/Clp/configure @ 794

Last change on this file since 794 was 794, checked in by andreasw, 14 years ago

included bugfix in coin.m4

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