source: trunk/Vol/configure @ 295

Last change on this file since 295 was 295, checked in by stefan, 9 years ago

rerun autotools

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