source: trunk/Clp/configure @ 810

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

slightly modified MinGW modification

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