source: trunk/Clp/configure @ 1601

Last change on this file since 1601 was 1601, checked in by lou, 9 years ago

Capture BuildTools? change that makes XXX_SVN_REV numeric.

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