source: trunk/Vol/configure @ 112

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

reran autotools with latest coin.m4 in trunk; replaced make by $(MAKE); generate libtool in base directory

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