source: branches/devel/Clp/configure @ 837

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

took over latest changes from trunk

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