source: trunk/Clp/configure @ 1588

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

add prefix to COIN_PKG_CONFIG_PATH, also if it does not exists at configure time

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