source: trunk/CoinMP/configure @ 524

Last change on this file since 524 was 479, checked in by stefan, 6 years ago

run autotools with BuildTools?/stable/0.7

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