source: trunk/Clp/configure @ 1088

Last change on this file since 1088 was 1088, checked in by andreasw, 12 years ago

merging changes from Bug Squashing Party Aug 2007 to regular trunk

  • Property svn:executable set to *
File size: 724.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.4trunk.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.4trunk'
433PACKAGE_STRING='Clp 1.4trunk'
434PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
435
436ac_unique_file="src/ClpCholeskyBase.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Clp 1.4trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Clp 1.4trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-clp compile this project (Clp) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link. Default
1082                          when mentioned: mingw. Default when not mentioned:
1083                          disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-gnu-packages   compile with GNU packages (disabled by default)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-clp-verbosity specify the debug verbosity level for project Clp
1101  --with-clp-checklevel specify the sanity check level for project Clp
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-wsmp             specify WSMP library
1108
1109Some influential environment variables:
1110  CDEFS       Additional -D flags to be used when compiling C code.
1111  ADD_CFLAGS  Additional C compiler options
1112  DBG_CFLAGS  Debug C compiler options
1113  OPT_CFLAGS  Optimize C compiler options
1114  CC          C compiler command
1115  CFLAGS      C compiler flags
1116  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1117              nonstandard directory <lib dir>
1118  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1119              headers in a nonstandard directory <include dir>
1120  MPICC       C MPI Compiler
1121  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1122  ADD_CXXFLAGS
1123              Additional C++ compiler options
1124  DBG_CXXFLAGS
1125              Debug C++ compiler options
1126  OPT_CXXFLAGS
1127              Optimize C++ compiler options
1128  CXX         C++ compiler command
1129  CXXFLAGS    C++ compiler flags
1130  MPICXX      C++ MPI Compiler
1131  CPP         C preprocessor
1132  CXXCPP      C++ preprocessor
1133  F77         Fortran 77 compiler command
1134  FFLAGS      Fortran 77 compiler flags
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <coin-clp@list.coin-or.org>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235Clp configure 1.4trunk
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Common Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by Clp $as_me 1.4trunk, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604#############################################################################
1605#                         Standard build tool stuff                         #
1606#############################################################################
1607
1608# Get the system type
1609ac_aux_dir=
1610for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1611  if test -f $ac_dir/install-sh; then
1612    ac_aux_dir=$ac_dir
1613    ac_install_sh="$ac_aux_dir/install-sh -c"
1614    break
1615  elif test -f $ac_dir/install.sh; then
1616    ac_aux_dir=$ac_dir
1617    ac_install_sh="$ac_aux_dir/install.sh -c"
1618    break
1619  elif test -f $ac_dir/shtool; then
1620    ac_aux_dir=$ac_dir
1621    ac_install_sh="$ac_aux_dir/shtool install -c"
1622    break
1623  fi
1624done
1625if test -z "$ac_aux_dir"; then
1626  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1627echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1631ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1632ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1633
1634# Make sure we can run config.sub.
1635$ac_config_sub sun4 >/dev/null 2>&1 ||
1636  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1637echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640echo "$as_me:$LINENO: checking build system type" >&5
1641echo $ECHO_N "checking build system type... $ECHO_C" >&6
1642if test "${ac_cv_build+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  ac_cv_build_alias=$build_alias
1646test -z "$ac_cv_build_alias" &&
1647  ac_cv_build_alias=`$ac_config_guess`
1648test -z "$ac_cv_build_alias" &&
1649  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1650echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1651   { (exit 1); exit 1; }; }
1652ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1653  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657fi
1658echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1659echo "${ECHO_T}$ac_cv_build" >&6
1660build=$ac_cv_build
1661build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666
1667# If this project depends on external projects, the Externals file in
1668# the source root directory contains definition of where to find those
1669# externals.  The following macro ensures that those externals are
1670# retrieved by svn if they are not there yet.
1671# Initialize the ADDLIBS variable
1672ADDLIBS="-lm $LIBS"
1673
1674
1675# Initialize the FADDLIBS variable (which is to be used with a fortran
1676# compiler and will not include FLIBS)
1677FADDLIBS="$LIBS"
1678
1679
1680# A useful makefile conditional that is always false
1681
1682
1683if false; then
1684  ALWAYS_FALSE_TRUE=
1685  ALWAYS_FALSE_FALSE='#'
1686else
1687  ALWAYS_FALSE_TRUE='#'
1688  ALWAYS_FALSE_FALSE=
1689fi
1690
1691
1692# We set the following variable so that we know later in AC_COIN_FINALIZE
1693# that we are in a project main directory
1694coin_projectdir=yes
1695
1696
1697# Check if user wants to produce debugging code
1698
1699echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1700echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1701
1702# Check whether --enable-debug or --disable-debug was given.
1703if test "${enable_debug+set}" = set; then
1704  enableval="$enable_debug"
1705  case "${enableval}" in
1706   yes) coin_debug_compile=true
1707        if test "${enable_shared+set}" = set; then :; else
1708          enable_shared=no
1709        fi
1710        ;;
1711   no)  coin_debug_compile=false
1712        ;;
1713   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1715   { (exit 1); exit 1; }; }
1716        ;;
1717esac
1718else
1719  coin_debug_compile=false
1720fi;
1721
1722# Check whether --enable-debug-clp or --disable-debug-clp was given.
1723if test "${enable_debug_clp+set}" = set; then
1724  enableval="$enable_debug_clp"
1725  case "${enableval}" in
1726    yes) coin_debug_compile=true
1727         enable_shared=no
1728         ;;
1729    no)  coin_debug_compile=false
1730         ;;
1731    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1732echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1733   { (exit 1); exit 1; }; }
1734         ;;
1735 esac
1736else
1737  :
1738fi;
1739
1740 # m4_ifvaln([Clp],
1741
1742if test $coin_debug_compile = true; then
1743  echo "$as_me:$LINENO: result: yes" >&5
1744echo "${ECHO_T}yes" >&6
1745else
1746  echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750
1751# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1752if test "${with_clp_verbosity+set}" = set; then
1753  withval="$with_clp_verbosity"
1754  if test "$withval" = yes; then
1755                withval=1
1756              fi
1757              coin_clp_verbosity=$withval
1758else
1759  coin_clp_verbosity=0
1760fi;
1761
1762cat >>confdefs.h <<_ACEOF
1763#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1764_ACEOF
1765
1766
1767
1768# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1769if test "${with_clp_checklevel+set}" = set; then
1770  withval="$with_clp_checklevel"
1771  if test "$withval" = yes; then
1772                withval=1
1773              fi
1774              coin_clp_checklevel=$withval
1775else
1776  coin_clp_checklevel=0
1777fi;
1778
1779cat >>confdefs.h <<_ACEOF
1780#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1781_ACEOF
1782
1783
1784# We use the following variable to have a string with the upper case
1785# version of the project name
1786COIN_PRJCT=CLP
1787
1788
1789 # m4_ifvaln([Clp],
1790
1791
1792
1793# Get the name of the C++ compiler and appropriate compiler options
1794case $build in
1795  *-mingw*)
1796    if test "${LD+set}" = set; then :; else
1797      LD=link
1798    fi
1799    ;;
1800 esac
1801 case $enable_doscompile in
1802   msvc)
1803     if test "x${LD+set}" = xset; then :; else
1804       LD=link
1805     fi
1806     ;;
1807 esac
1808
1809
1810 # Check whether --enable-doscompile or --disable-doscompile was given.
1811if test "${enable_doscompile+set}" = set; then
1812  enableval="$enable_doscompile"
1813  if test "$enable_doscompile" != no; then
1814     case $build in
1815       *-cygwin* | *-mingw*) ;;
1816       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1817echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1818   { (exit 1); exit 1; }; } ;;
1819     esac
1820   fi
1821else
1822  enable_doscompile=no
1823fi;
1824 case "$enable_doscompile" in
1825   mingw)
1826     case $build in
1827       *-mingw*) enable_doscompile=no ;;
1828     esac
1829     ;;
1830   msvc|no) ;;
1831   yes) enable_doscompile=mingw ;;
1832   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1833                    Try configure --help=recursive." >&5
1834echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1835                    Try configure --help=recursive." >&2;}
1836   { (exit 1); exit 1; }; }
1837      ;;
1838  esac
1839  if test "$enable_doscompile" != no ; then
1840    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1841echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1842  fi
1843
1844
1845
1846
1847ac_ext=c
1848ac_cpp='$CPP $CPPFLAGS'
1849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852
1853
1854# For consistency, we set the C compiler to the same value of the C++
1855# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1856if test x"$CXX" != x; then
1857  case "$CXX" in
1858    cl* | */cl* | CL* | */CL*)
1859      if test x"$CC" = x; then
1860        CC="$CXX"
1861        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1862echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1863      fi
1864      ;;
1865  esac
1866fi
1867
1868
1869
1870
1871
1872
1873coin_has_cc=yes
1874
1875save_cflags="$CFLAGS"
1876# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1877# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1878# is likely to be a non-functional shell. But many installations will have
1879# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1880case $build in
1881  *-cygwin* | *-mingw*)
1882             if test "$enable_doscompile" = msvc ; then
1883               comps="cl"
1884             else
1885               comps="gcc cl"
1886             fi ;;
1887  sparc-sun-solaris*)
1888             comps="cc xlc gcc pgcc icc" ;;
1889  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1890  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1891esac
1892
1893# We delete the cached value, since the test might not have been
1894# performed with our choice of compilers earlier
1895$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1896# AC_MSG_NOTICE([C compiler candidates: $comps])
1897ac_ext=c
1898ac_cpp='$CPP $CPPFLAGS'
1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902if test -n "$ac_tool_prefix"; then
1903  for ac_prog in $comps
1904  do
1905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_CC+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  if test -n "$CC"; then
1913  ac_cv_prog_CC="$CC" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920  for ac_exec_ext in '' $ac_executable_extensions; do
1921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924    break 2
1925  fi
1926done
1927done
1928
1929fi
1930fi
1931CC=$ac_cv_prog_CC
1932if test -n "$CC"; then
1933  echo "$as_me:$LINENO: result: $CC" >&5
1934echo "${ECHO_T}$CC" >&6
1935else
1936  echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6
1938fi
1939
1940    test -n "$CC" && break
1941  done
1942fi
1943if test -z "$CC"; then
1944  ac_ct_CC=$CC
1945  for ac_prog in $comps
1946do
1947  # Extract the first word of "$ac_prog", so it can be a program name with args.
1948set dummy $ac_prog; ac_word=$2
1949echo "$as_me:$LINENO: checking for $ac_word" >&5
1950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954  if test -n "$ac_ct_CC"; then
1955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956else
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  for ac_exec_ext in '' $ac_executable_extensions; do
1963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964    ac_cv_prog_ac_ct_CC="$ac_prog"
1965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966    break 2
1967  fi
1968done
1969done
1970
1971fi
1972fi
1973ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974if test -n "$ac_ct_CC"; then
1975  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976echo "${ECHO_T}$ac_ct_CC" >&6
1977else
1978  echo "$as_me:$LINENO: result: no" >&5
1979echo "${ECHO_T}no" >&6
1980fi
1981
1982  test -n "$ac_ct_CC" && break
1983done
1984
1985  CC=$ac_ct_CC
1986fi
1987
1988
1989test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1990See \`config.log' for more details." >&5
1991echo "$as_me: error: no acceptable C compiler found in \$PATH
1992See \`config.log' for more details." >&2;}
1993   { (exit 1); exit 1; }; }
1994
1995# Provide some information about the compiler.
1996echo "$as_me:$LINENO:" \
1997     "checking for C compiler version" >&5
1998ac_compiler=`set X $ac_compile; echo $2`
1999{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2000  (eval $ac_compiler --version </dev/null >&5) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2005  (eval $ac_compiler -v </dev/null >&5) 2>&5
2006  ac_status=$?
2007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008  (exit $ac_status); }
2009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2010  (eval $ac_compiler -V </dev/null >&5) 2>&5
2011  ac_status=$?
2012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013  (exit $ac_status); }
2014
2015cat >conftest.$ac_ext <<_ACEOF
2016/* confdefs.h.  */
2017_ACEOF
2018cat confdefs.h >>conftest.$ac_ext
2019cat >>conftest.$ac_ext <<_ACEOF
2020/* end confdefs.h.  */
2021
2022int
2023main ()
2024{
2025
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030ac_clean_files_save=$ac_clean_files
2031ac_clean_files="$ac_clean_files a.out a.exe b.out"
2032# Try to create an executable without -o first, disregard a.out.
2033# It will help us diagnose broken compilers, and finding out an intuition
2034# of exeext.
2035echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2036echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2037ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2038if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2039  (eval $ac_link_default) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; then
2043  # Find the output, starting from the most likely.  This scheme is
2044# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045# resort.
2046
2047# Be careful to initialize this variable, since it used to be cached.
2048# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049ac_cv_exeext=
2050# b.out is created by i960 compilers.
2051for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2052do
2053  test -f "$ac_file" || continue
2054  case $ac_file in
2055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056        ;;
2057    conftest.$ac_ext )
2058        # This is the source file.
2059        ;;
2060    [ab].out )
2061        # We found the default executable, but exeext='' is most
2062        # certainly right.
2063        break;;
2064    *.* )
2065        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2066        # FIXME: I believe we export ac_cv_exeext for Libtool,
2067        # but it would be cool to find out if it's true.  Does anybody
2068        # maintain Libtool? --akim.
2069        export ac_cv_exeext
2070        break;;
2071    * )
2072        break;;
2073  esac
2074done
2075else
2076  echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: C compiler cannot create executables
2082See \`config.log' for more details." >&2;}
2083   { (exit 77); exit 77; }; }
2084fi
2085
2086ac_exeext=$ac_cv_exeext
2087echo "$as_me:$LINENO: result: $ac_file" >&5
2088echo "${ECHO_T}$ac_file" >&6
2089
2090# Check the compiler produces executables we can run.  If not, either
2091# the compiler is broken, or we cross compile.
2092echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2093echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2094# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2095# If not cross compiling, check that we can run a simple program.
2096if test "$cross_compiling" != yes; then
2097  if { ac_try='./$ac_file'
2098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099  (eval $ac_try) 2>&5
2100  ac_status=$?
2101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102  (exit $ac_status); }; }; then
2103    cross_compiling=no
2104  else
2105    if test "$cross_compiling" = maybe; then
2106        cross_compiling=yes
2107    else
2108        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2109If you meant to cross compile, use \`--host'.
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: cannot run C compiled programs.
2112If you meant to cross compile, use \`--host'.
2113See \`config.log' for more details." >&2;}
2114   { (exit 1); exit 1; }; }
2115    fi
2116  fi
2117fi
2118echo "$as_me:$LINENO: result: yes" >&5
2119echo "${ECHO_T}yes" >&6
2120
2121rm -f a.out a.exe conftest$ac_cv_exeext b.out
2122ac_clean_files=$ac_clean_files_save
2123# Check the compiler produces executables we can run.  If not, either
2124# the compiler is broken, or we cross compile.
2125echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2126echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2127echo "$as_me:$LINENO: result: $cross_compiling" >&5
2128echo "${ECHO_T}$cross_compiling" >&6
2129
2130echo "$as_me:$LINENO: checking for suffix of executables" >&5
2131echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2133  (eval $ac_link) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }; then
2137  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2138# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2139# work properly (i.e., refer to `conftest.exe'), while it won't with
2140# `rm'.
2141for ac_file in conftest.exe conftest conftest.*; do
2142  test -f "$ac_file" || continue
2143  case $ac_file in
2144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2145    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146          export ac_cv_exeext
2147          break;;
2148    * ) break;;
2149  esac
2150done
2151else
2152  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2153See \`config.log' for more details." >&5
2154echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2155See \`config.log' for more details." >&2;}
2156   { (exit 1); exit 1; }; }
2157fi
2158
2159rm -f conftest$ac_cv_exeext
2160echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2161echo "${ECHO_T}$ac_cv_exeext" >&6
2162
2163rm -f conftest.$ac_ext
2164EXEEXT=$ac_cv_exeext
2165ac_exeext=$EXEEXT
2166echo "$as_me:$LINENO: checking for suffix of object files" >&5
2167echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2168if test "${ac_cv_objext+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177
2178int
2179main ()
2180{
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186rm -f conftest.o conftest.obj
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188  (eval $ac_compile) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193  case $ac_file in
2194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2195    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196       break;;
2197  esac
2198done
2199else
2200  echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: cannot compute suffix of object files: cannot compile
2206See \`config.log' for more details." >&2;}
2207   { (exit 1); exit 1; }; }
2208fi
2209
2210rm -f conftest.$ac_cv_objext conftest.$ac_ext
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2213echo "${ECHO_T}$ac_cv_objext" >&6
2214OBJEXT=$ac_cv_objext
2215ac_objext=$OBJEXT
2216echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2217echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2218if test "${ac_cv_c_compiler_gnu+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231#ifndef __GNUC__
2232       choke me
2233#endif
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>conftest.er1
2242  ac_status=$?
2243  grep -v '^ *+' conftest.er1 >conftest.err
2244  rm -f conftest.er1
2245  cat conftest.err >&5
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); } &&
2248         { ac_try='test -z "$ac_c_werror_flag"
2249                         || test ! -s conftest.err'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; } &&
2255         { ac_try='test -s conftest.$ac_objext'
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  ac_compiler_gnu=yes
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266ac_compiler_gnu=no
2267fi
2268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270
2271fi
2272echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2273echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2274GCC=`test $ac_compiler_gnu = yes && echo yes`
2275ac_test_CFLAGS=${CFLAGS+set}
2276ac_save_CFLAGS=$CFLAGS
2277CFLAGS="-g"
2278echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2279echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2280if test "${ac_cv_prog_cc_g+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h.  */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h.  */
2289
2290int
2291main ()
2292{
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>conftest.er1
2301  ac_status=$?
2302  grep -v '^ *+' conftest.er1 >conftest.err
2303  rm -f conftest.er1
2304  cat conftest.err >&5
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); } &&
2307         { ac_try='test -z "$ac_c_werror_flag"
2308                         || test ! -s conftest.err'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; } &&
2314         { ac_try='test -s conftest.$ac_objext'
2315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316  (eval $ac_try) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; }; then
2320  ac_cv_prog_cc_g=yes
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325ac_cv_prog_cc_g=no
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331if test "$ac_test_CFLAGS" = set; then
2332  CFLAGS=$ac_save_CFLAGS
2333elif test $ac_cv_prog_cc_g = yes; then
2334  if test "$GCC" = yes; then
2335    CFLAGS="-g -O2"
2336  else
2337    CFLAGS="-g"
2338  fi
2339else
2340  if test "$GCC" = yes; then
2341    CFLAGS="-O2"
2342  else
2343    CFLAGS=
2344  fi
2345fi
2346echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2347echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2348if test "${ac_cv_prog_cc_stdc+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  ac_cv_prog_cc_stdc=no
2352ac_save_CC=$CC
2353cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h.  */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h.  */
2359#include <stdarg.h>
2360#include <stdio.h>
2361#include <sys/types.h>
2362#include <sys/stat.h>
2363/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2364struct buf { int x; };
2365FILE * (*rcsopen) (struct buf *, struct stat *, int);
2366static char *e (p, i)
2367     char **p;
2368     int i;
2369{
2370  return p[i];
2371}
2372static char *f (char * (*g) (char **, int), char **p, ...)
2373{
2374  char *s;
2375  va_list v;
2376  va_start (v,p);
2377  s = g (p, va_arg (v,int));
2378  va_end (v);
2379  return s;
2380}
2381
2382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2383   function prototypes and stuff, but not '\xHH' hex character constants.
2384   These don't provoke an error unfortunately, instead are silently treated
2385   as 'x'.  The following induces an error, until -std1 is added to get
2386   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2387   array size at least.  It's necessary to write '\x00'==0 to get something
2388   that's true only with -std1.  */
2389int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2390
2391int test (int i, double x);
2392struct s1 {int (*f) (int a);};
2393struct s2 {int (*f) (double a);};
2394int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2395int argc;
2396char **argv;
2397int
2398main ()
2399{
2400return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405# Don't try gcc -ansi; that turns off useful extensions and
2406# breaks some systems' header files.
2407# AIX                   -qlanglvl=ansi
2408# Ultrix and OSF/1      -std1
2409# HP-UX 10.20 and later -Ae
2410# HP-UX older versions  -Aa -D_HPUX_SOURCE
2411# SVR4                  -Xc -D__EXTENSIONS__
2412for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2413do
2414  CC="$ac_save_CC $ac_arg"
2415  rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_cv_prog_cc_stdc=$ac_arg
2438break
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443fi
2444rm -f conftest.err conftest.$ac_objext
2445done
2446rm -f conftest.$ac_ext conftest.$ac_objext
2447CC=$ac_save_CC
2448
2449fi
2450
2451case "x$ac_cv_prog_cc_stdc" in
2452  x|xno)
2453    echo "$as_me:$LINENO: result: none needed" >&5
2454echo "${ECHO_T}none needed" >&6 ;;
2455  *)
2456    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2457echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2458    CC="$CC $ac_cv_prog_cc_stdc" ;;
2459esac
2460
2461# Some people use a C++ compiler to compile C.  Since we use `exit',
2462# in C++ we need to declare it.  In case someone uses the same compiler
2463# for both compiling C and C++ we need to have the C++ compiler decide
2464# the declaration of exit, since it's the most demanding environment.
2465cat >conftest.$ac_ext <<_ACEOF
2466#ifndef __cplusplus
2467  choke me
2468#endif
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472  (eval $ac_compile) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } &&
2479         { ac_try='test -z "$ac_c_werror_flag"
2480                         || test ! -s conftest.err'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  for ac_declaration in \
2493   '' \
2494   'extern "C" void std::exit (int) throw (); using std::exit;' \
2495   'extern "C" void std::exit (int); using std::exit;' \
2496   'extern "C" void exit (int) throw ();' \
2497   'extern "C" void exit (int);' \
2498   'void exit (int);'
2499do
2500  cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h.  */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h.  */
2506$ac_declaration
2507#include <stdlib.h>
2508int
2509main ()
2510{
2511exit (42);
2512  ;
2513  return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518  (eval $ac_compile) 2>conftest.er1
2519  ac_status=$?
2520  grep -v '^ *+' conftest.er1 >conftest.err
2521  rm -f conftest.er1
2522  cat conftest.err >&5
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525         { ac_try='test -z "$ac_c_werror_flag"
2526                         || test ! -s conftest.err'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; } &&
2532         { ac_try='test -s conftest.$ac_objext'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  :
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543continue
2544fi
2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546  cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h.  */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h.  */
2552$ac_declaration
2553int
2554main ()
2555{
2556exit (42);
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563  (eval $ac_compile) 2>conftest.er1
2564  ac_status=$?
2565  grep -v '^ *+' conftest.er1 >conftest.err
2566  rm -f conftest.er1
2567  cat conftest.err >&5
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); } &&
2570         { ac_try='test -z "$ac_c_werror_flag"
2571                         || test ! -s conftest.err'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; } &&
2577         { ac_try='test -s conftest.$ac_objext'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; }; then
2583  break
2584else
2585  echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590done
2591rm -f conftest*
2592if test -n "$ac_declaration"; then
2593  echo '#ifdef __cplusplus' >>confdefs.h
2594  echo $ac_declaration      >>confdefs.h
2595  echo '#endif'             >>confdefs.h
2596fi
2597
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602fi
2603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604ac_ext=c
2605ac_cpp='$CPP $CPPFLAGS'
2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610if test -z "$CC" ; then
2611  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2612echo "$as_me: error: Failed to find a C compiler!" >&2;}
2613   { (exit 1); exit 1; }; }
2614fi
2615# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2616case "$CC" in
2617  cl* | */cl* | CL* | */CL* )
2618    if test "$ac_cv_prog_cc_g" = yes ; then
2619      ac_cv_prog_cc_g=no
2620      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2621echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2622    fi ;;
2623esac
2624CFLAGS="$save_cflags"
2625
2626# Check if a project specific CFLAGS variable has been set
2627if test x$COIN_PRJCT != x; then
2628  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2629  if test x$coin_tmp = xset; then
2630    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2631  fi
2632fi
2633
2634if test x"$CFLAGS" = x; then
2635
2636  coin_add_cflags=
2637  coin_opt_cflags=
2638  coin_dbg_cflags=
2639  coin_warn_cflags=
2640
2641  if test "$GCC" = "yes"; then
2642    case "$CC" in
2643      icc* | */icc*)
2644        ;;
2645      *)
2646        coin_opt_cflags="-O3 -fomit-frame-pointer"
2647        coin_add_cflags="-pipe"
2648        coin_dbg_cflags="-g"
2649        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2650        case $enable_doscompile in
2651          mingw)
2652            CFLAGS="-mno-cygwin"
2653            cat >conftest.$ac_ext <<_ACEOF
2654/* confdefs.h.  */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h.  */
2659
2660int
2661main ()
2662{
2663int i=0; i++;
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670  (eval $ac_link) 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -z "$ac_c_werror_flag"
2678                         || test ! -s conftest.err'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; } &&
2684         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2690  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695fi
2696rm -f conftest.err conftest.$ac_objext \
2697      conftest$ac_exeext conftest.$ac_ext
2698            CFLAGS=
2699          ;;
2700        esac
2701    esac
2702  fi
2703  if test -z "$coin_opt_cflags"; then
2704    case $build in
2705      *-cygwin* | *-mingw*)
2706        case "$CC" in
2707          cl* | */cl* | CL* | */CL*)
2708            coin_opt_cflags='-MT -O2'
2709            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2710            coin_dbg_cflags='-MTd'
2711            ;;
2712        esac
2713        ;;
2714      *-linux-*)
2715        case "$CC" in
2716          icc* | */icc*)
2717            coin_opt_cflags="-O3 -ip"
2718            coin_add_cflags=""
2719            coin_dbg_cflags="-g"
2720            # Check if -i_dynamic is necessary (for new glibc library)
2721            CFLAGS=
2722            cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h.  */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h.  */
2728
2729int
2730main ()
2731{
2732int i=0; i++;
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext conftest$ac_exeext
2738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2739  (eval $ac_link) 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746         { ac_try='test -z "$ac_c_werror_flag"
2747                         || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753         { ac_try='test -s conftest$ac_exeext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  :
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764coin_add_cflags="-i_dynamic $coin_add_cflags"
2765fi
2766rm -f conftest.err conftest.$ac_objext \
2767      conftest$ac_exeext conftest.$ac_ext
2768            ;;
2769          pgcc* | */pgcc*)
2770            coin_opt_cflags="-fast"
2771            coin_add_cflags="-Kieee -pc 64"
2772            coin_dbg_cflags="-g"
2773            ;;
2774        esac
2775        ;;
2776      *-ibm-*)
2777        case "$CC" in
2778          xlc* | */xlc* | mpxlc* | */mpxlc*)
2779            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2780            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2781            coin_dbg_cflags="-g"
2782          ;;
2783        esac
2784        ;;
2785      *-hp-*)
2786        coin_opt_cflags="-O"
2787        coin_add_cflags="-Ae"
2788        coin_dbg_cflags="-g"
2789        ;;
2790      *-sun-*)
2791        coin_opt_cflags="-xO4"
2792        coin_dbg_cflags="-g"
2793        ;;
2794      *-sgi-*)
2795        coin_opt_cflags="-O -OPT:Olimit=0"
2796        coin_dbg_cflags="-g"
2797        ;;
2798    esac
2799  fi
2800
2801  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2802    coin_dbg_cflags="-g"
2803  fi
2804
2805  if test -z "$coin_opt_cflags"; then
2806    # Try if -O option works if nothing else is set
2807    CFLAGS="-O"
2808    cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h.  */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h.  */
2814
2815int
2816main ()
2817{
2818int i=0; i++;
2819  ;
2820  return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext conftest$ac_exeext
2824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2825  (eval $ac_link) 2>conftest.er1
2826  ac_status=$?
2827  grep -v '^ *+' conftest.er1 >conftest.err
2828  rm -f conftest.er1
2829  cat conftest.err >&5
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); } &&
2832         { ac_try='test -z "$ac_c_werror_flag"
2833                         || test ! -s conftest.err'
2834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835  (eval $ac_try) 2>&5
2836  ac_status=$?
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); }; } &&
2839         { ac_try='test -s conftest$ac_exeext'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; }; then
2845  coin_opt_cflags="-O"
2846else
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850fi
2851rm -f conftest.err conftest.$ac_objext \
2852      conftest$ac_exeext conftest.$ac_ext
2853  fi
2854
2855  # if PM doesn't want the warning messages, take them out
2856  if test x"$coin_skip_warn_cflags" = xyes; then
2857    coin_warn_cflags=
2858  fi
2859
2860  if test x${DBG_CFLAGS+set} != xset; then
2861    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2862  fi
2863  if test x${OPT_CFLAGS+set} != xset; then
2864    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2865  fi
2866
2867  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2868  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2869
2870  if test "$coin_debug_compile" = "true"; then
2871    CFLAGS="$DBG_CFLAGS"
2872  else
2873    CFLAGS="$OPT_CFLAGS"
2874  fi
2875else
2876  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2877  if test x${DBG_CFLAGS+set} != xset; then
2878    DBG_CFLAGS="$CFLAGS"
2879  fi
2880  if test x${OPT_CFLAGS+set} != xset; then
2881    OPT_CFLAGS="$CFLAGS"
2882  fi
2883fi
2884
2885# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2886
2887case "$CFLAGS" in
2888  *-mno-cygwin*)
2889    if test x${CPPFLAGS+set} != xset ; then
2890      CPPFLAGS="-mno-cygwin"
2891    else
2892      case "$CPPFLAGS" in
2893        *-mno-cygwin*)
2894          ;;
2895        *)
2896          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2897          ;;
2898      esac
2899    fi ;;
2900esac
2901
2902# Try if CFLAGS works
2903save_CFLAGS="$CFLAGS"
2904cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h.  */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h.  */
2910
2911int
2912main ()
2913{
2914int i=0; i++;
2915  ;
2916  return 0;
2917}
2918_ACEOF
2919rm -f conftest.$ac_objext conftest$ac_exeext
2920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921  (eval $ac_link) 2>conftest.er1
2922  ac_status=$?
2923  grep -v '^ *+' conftest.er1 >conftest.err
2924  rm -f conftest.er1
2925  cat conftest.err >&5
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); } &&
2928         { ac_try='test -z "$ac_c_werror_flag"
2929                         || test ! -s conftest.err'
2930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931  (eval $ac_try) 2>&5
2932  ac_status=$?
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); }; } &&
2935         { ac_try='test -s conftest$ac_exeext'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; }; then
2941  :
2942else
2943  echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946CFLAGS=
2947fi
2948rm -f conftest.err conftest.$ac_objext \
2949      conftest$ac_exeext conftest.$ac_ext
2950if test -z "$CFLAGS"; then
2951  { 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
2952echo "$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;}
2953  CFLAGS='-O'
2954  cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964int i=0; i++;
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext conftest$ac_exeext
2970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2971  (eval $ac_link) 2>conftest.er1
2972  ac_status=$?
2973  grep -v '^ *+' conftest.er1 >conftest.err
2974  rm -f conftest.er1
2975  cat conftest.err >&5
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); } &&
2978         { ac_try='test -z "$ac_c_werror_flag"
2979                         || test ! -s conftest.err'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; } &&
2985         { ac_try='test -s conftest$ac_exeext'
2986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987  (eval $ac_try) 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; }; then
2991  :
2992else
2993  echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996CFLAGS=
2997fi
2998rm -f conftest.err conftest.$ac_objext \
2999      conftest$ac_exeext conftest.$ac_ext
3000  if test -z "$CFLAGS"; then
3001    { 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
3002echo "$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;}
3003  fi
3004fi
3005
3006{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3007echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3008
3009
3010if test x"$MPICC" = x; then :; else
3011  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3012echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3013  CC="$MPICC"
3014fi
3015
3016# Correct ADDLIBS initialization if we are using the MS compiler
3017case "$CC" in
3018  cl* | */cl* | CL* | */CL*)
3019    ADDLIBS=
3020    case $build in
3021  *-mingw*)
3022    if test "${LD+set}" = set; then :; else
3023      LD=link
3024    fi
3025    ;;
3026 esac
3027 case $enable_doscompile in
3028   msvc)
3029     if test "x${LD+set}" = xset; then :; else
3030       LD=link
3031     fi
3032     ;;
3033 esac
3034
3035    ;;
3036esac
3037
3038ac_ext=c
3039ac_cpp='$CPP $CPPFLAGS'
3040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044
3045
3046 #Let's try if that overcomes configuration problem with VC++ 6.0
3047
3048ac_ext=cc
3049ac_cpp='$CXXCPP $CPPFLAGS'
3050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3053
3054
3055
3056
3057
3058
3059
3060coin_has_cxx=yes
3061
3062save_cxxflags="$CXXFLAGS"
3063# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
3064case $build in
3065  *-cygwin* | *-mingw*)
3066             if test "$enable_doscompile" = msvc ; then
3067               comps="cl"
3068             else
3069               comps="g++ cl"
3070             fi ;;
3071  sparc-sun-solaris*)
3072             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3073  *-darwin*) comps="g++ c++ CC" ;;
3074          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3075esac
3076
3077# We delete the cached value, since the test might not have been
3078# performed with our choice of compilers earlier
3079$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3080# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3081ac_ext=cc
3082ac_cpp='$CXXCPP $CPPFLAGS'
3083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3086if test -n "$ac_tool_prefix"; then
3087  for ac_prog in $CCC $comps
3088  do
3089    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091echo "$as_me:$LINENO: checking for $ac_word" >&5
3092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093if test "${ac_cv_prog_CXX+set}" = set; then
3094  echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096  if test -n "$CXX"; then
3097  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104  for ac_exec_ext in '' $ac_executable_extensions; do
3105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111done
3112
3113fi
3114fi
3115CXX=$ac_cv_prog_CXX
3116if test -n "$CXX"; then
3117  echo "$as_me:$LINENO: result: $CXX" >&5
3118echo "${ECHO_T}$CXX" >&6
3119else
3120  echo "$as_me:$LINENO: result: no" >&5
3121echo "${ECHO_T}no" >&6
3122fi
3123
3124    test -n "$CXX" && break
3125  done
3126fi
3127if test -z "$CXX"; then
3128  ac_ct_CXX=$CXX
3129  for ac_prog in $CCC $comps
3130do
3131  # Extract the first word of "$ac_prog", so it can be a program name with args.
3132set dummy $ac_prog; ac_word=$2
3133echo "$as_me:$LINENO: checking for $ac_word" >&5
3134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3136  echo $ECHO_N "(cached) $ECHO_C" >&6
3137else
3138  if test -n "$ac_ct_CXX"; then
3139  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3140else
3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142for as_dir in $PATH
3143do
3144  IFS=$as_save_IFS
3145  test -z "$as_dir" && as_dir=.
3146  for ac_exec_ext in '' $ac_executable_extensions; do
3147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148    ac_cv_prog_ac_ct_CXX="$ac_prog"
3149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153done
3154
3155fi
3156fi
3157ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3158if test -n "$ac_ct_CXX"; then
3159  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3160echo "${ECHO_T}$ac_ct_CXX" >&6
3161else
3162  echo "$as_me:$LINENO: result: no" >&5
3163echo "${ECHO_T}no" >&6
3164fi
3165
3166  test -n "$ac_ct_CXX" && break
3167done
3168test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3169
3170  CXX=$ac_ct_CXX
3171fi
3172
3173
3174# Provide some information about the compiler.
3175echo "$as_me:$LINENO:" \
3176     "checking for C++ compiler version" >&5
3177ac_compiler=`set X $ac_compile; echo $2`
3178{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3179  (eval $ac_compiler --version </dev/null >&5) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }
3183{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3184  (eval $ac_compiler -v </dev/null >&5) 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }
3188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3189  (eval $ac_compiler -V </dev/null >&5) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }
3193
3194echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3195echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3196if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h.  */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h.  */
3205
3206int
3207main ()
3208{
3209#ifndef __GNUC__
3210       choke me
3211#endif
3212
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext
3218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219  (eval $ac_compile) 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } &&
3226         { ac_try='test -z "$ac_cxx_werror_flag"
3227                         || test ! -s conftest.err'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; } &&
3233         { ac_try='test -s conftest.$ac_objext'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  ac_compiler_gnu=yes
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244ac_compiler_gnu=no
3245fi
3246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3247ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3248
3249fi
3250echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3251echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3252GXX=`test $ac_compiler_gnu = yes && echo yes`
3253ac_test_CXXFLAGS=${CXXFLAGS+set}
3254ac_save_CXXFLAGS=$CXXFLAGS
3255CXXFLAGS="-g"
3256echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3257echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3258if test "${ac_cv_prog_cxx_g+set}" = set; then
3259  echo $ECHO_N "(cached) $ECHO_C" >&6
3260else
3261  cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h.  */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h.  */
3267
3268int
3269main ()
3270{
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278  (eval $ac_compile) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285         { ac_try='test -z "$ac_cxx_werror_flag"
3286                         || test ! -s conftest.err'
3287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288  (eval $ac_try) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; } &&
3292         { ac_try='test -s conftest.$ac_objext'
3293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294  (eval $ac_try) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }; }; then
3298  ac_cv_prog_cxx_g=yes
3299else
3300  echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303ac_cv_prog_cxx_g=no
3304fi
3305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306fi
3307echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3308echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3309if test "$ac_test_CXXFLAGS" = set; then
3310  CXXFLAGS=$ac_save_CXXFLAGS
3311elif test $ac_cv_prog_cxx_g = yes; then
3312  if test "$GXX" = yes; then
3313    CXXFLAGS="-g -O2"
3314  else
3315    CXXFLAGS="-g"
3316  fi
3317else
3318  if test "$GXX" = yes; then
3319    CXXFLAGS="-O2"
3320  else
3321    CXXFLAGS=
3322  fi
3323fi
3324for ac_declaration in \
3325   '' \
3326   'extern "C" void std::exit (int) throw (); using std::exit;' \
3327   'extern "C" void std::exit (int); using std::exit;' \
3328   'extern "C" void exit (int) throw ();' \
3329   'extern "C" void exit (int);' \
3330   'void exit (int);'
3331do
3332  cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338$ac_declaration
3339#include <stdlib.h>
3340int
3341main ()
3342{
3343exit (42);
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3350  (eval $ac_compile) 2>conftest.er1
3351  ac_status=$?
3352  grep -v '^ *+' conftest.er1 >conftest.err
3353  rm -f conftest.er1
3354  cat conftest.err >&5
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); } &&
3357         { ac_try='test -z "$ac_cxx_werror_flag"
3358                         || test ! -s conftest.err'
3359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3360  (eval $ac_try) 2>&5
3361  ac_status=$?
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); }; } &&
3364         { ac_try='test -s conftest.$ac_objext'
3365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366  (eval $ac_try) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }; }; then
3370  :
3371else
3372  echo "$as_me: failed program was:" >&5
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
3375continue
3376fi
3377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378  cat >conftest.$ac_ext <<_ACEOF
3379/* confdefs.h.  */
3380_ACEOF
3381cat confdefs.h >>conftest.$ac_ext
3382cat >>conftest.$ac_ext <<_ACEOF
3383/* end confdefs.h.  */
3384$ac_declaration
3385int
3386main ()
3387{
3388exit (42);
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393rm -f conftest.$ac_objext
3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3395  (eval $ac_compile) 2>conftest.er1
3396  ac_status=$?
3397  grep -v '^ *+' conftest.er1 >conftest.err
3398  rm -f conftest.er1
3399  cat conftest.err >&5
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); } &&
3402         { ac_try='test -z "$ac_cxx_werror_flag"
3403                         || test ! -s conftest.err'
3404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405  (eval $ac_try) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }; } &&
3409         { ac_try='test -s conftest.$ac_objext'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; }; then
3415  break
3416else
3417  echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420fi
3421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3422done
3423rm -f conftest*
3424if test -n "$ac_declaration"; then
3425  echo '#ifdef __cplusplus' >>confdefs.h
3426  echo $ac_declaration      >>confdefs.h
3427  echo '#endif'             >>confdefs.h
3428fi
3429
3430ac_ext=cc
3431ac_cpp='$CXXCPP $CPPFLAGS'
3432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3435
3436if test -z "$CXX" ; then
3437  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3438echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3439   { (exit 1); exit 1; }; }
3440fi
3441
3442# It seems that we need to cleanup something here for the Windows
3443case "$CXX" in
3444  cl* | */cl* | CL* | */CL* )
3445    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3446    mv confdefs.hh confdefs.h
3447    ;;
3448esac
3449
3450# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3451case "$CXX" in
3452  cl* | */cl* | CL* | */CL* )
3453    if test "$ac_cv_prog_cxx_g" = yes ; then
3454      ac_cv_prog_cxx_g=no
3455      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3456echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3457    fi ;;
3458esac
3459CXXFLAGS="$save_cxxflags"
3460
3461# Check if a project specific CXXFLAGS variable has been set
3462if test x$COIN_PRJCT != x; then
3463  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3464  if test x$coin_tmp = xset; then
3465    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3466  fi
3467fi
3468
3469if test x"$CXXFLAGS" = x; then
3470
3471# ToDo decide whether we want -DNDEBUG for optimization
3472  coin_add_cxxflags=
3473  coin_opt_cxxflags=
3474  coin_dbg_cxxflags=
3475  coin_warn_cxxflags=
3476
3477  if test "$GXX" = "yes"; then
3478    case "$CXX" in
3479      icpc* | */icpc*)
3480        ;;
3481      *)
3482# ToDo decide about unroll-loops
3483        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3484        coin_add_cxxflags="-pipe"
3485        coin_dbg_cxxflags="-g"
3486        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3487        case $enable_doscompile in
3488          mingw)
3489            CXXFLAGS="-mno-cygwin"
3490            cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496
3497int
3498main ()
3499{
3500int i=0; i++;
3501  ;
3502  return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext conftest$ac_exeext
3506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507  (eval $ac_link) 2>conftest.er1
3508  ac_status=$?
3509  grep -v '^ *+' conftest.er1 >conftest.err
3510  rm -f conftest.er1
3511  cat conftest.err >&5
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); } &&
3514         { ac_try='test -z "$ac_cxx_werror_flag"
3515                         || test ! -s conftest.err'
3516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517  (eval $ac_try) 2>&5
3518  ac_status=$?
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); }; } &&
3521         { ac_try='test -s conftest$ac_exeext'
3522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523  (eval $ac_try) 2>&5
3524  ac_status=$?
3525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526  (exit $ac_status); }; }; then
3527  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532fi
3533rm -f conftest.err conftest.$ac_objext \
3534      conftest$ac_exeext conftest.$ac_ext
3535            CXXFLAGS=
3536            ;;
3537        esac
3538    esac
3539  fi
3540
3541# Note that we do not need to cover GCC in the following tests.
3542
3543  if test -z "$coin_opt_cxxflags"; then
3544    case $build in
3545      *-cygwin* | *-mingw*)
3546        case "$CXX" in
3547          cl* | */cl* | CL* | */CL*)
3548            # The MT and MTd options are mutually exclusive
3549            coin_opt_cxxflags='-MT -O2'
3550            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3551            coin_dbg_cxxflags='-MTd'
3552            ;;
3553        esac
3554        ;;
3555      *-linux-*)
3556        case "$CXX" in
3557          icpc* | */icpc*)
3558            coin_opt_cxxflags="-O3 -ip"
3559            coin_add_cxxflags=""
3560            coin_dbg_cxxflags="-g"
3561            # Check if -i_dynamic is necessary (for new glibc library)
3562            CXXFLAGS=
3563            cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h.  */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573int i=0; i++;
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578rm -f conftest.$ac_objext conftest$ac_exeext
3579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3580  (eval $ac_link) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } &&
3587         { ac_try='test -z "$ac_cxx_werror_flag"
3588                         || test ! -s conftest.err'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; } &&
3594         { ac_try='test -s conftest$ac_exeext'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; }; then
3600  :
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3606fi
3607rm -f conftest.err conftest.$ac_objext \
3608      conftest$ac_exeext conftest.$ac_ext
3609            ;;
3610          pgCC* | */pgCC*)
3611            coin_opt_cxxflags="-fast"
3612            coin_add_cxxflags="-Kieee -pc 64"
3613            coin_dbg_cxxflags="-g"
3614            ;;
3615        esac
3616        ;;
3617      *-ibm-*)
3618        case "$CXX" in
3619          xlC* | */xlC* | mpxlC* | */mpxlC*)
3620            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3621            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
3622            coin_dbg_cxxflags="-g"
3623            ;;
3624        esac
3625        ;;
3626      *-hp-*)
3627        case "$CXX" in
3628          aCC* | */aCC* )
3629            coin_opt_cxxflags="-O"
3630            coin_add_cxxflags="-AA"
3631            coin_dbg_cxxflags="-g"
3632            ;;
3633        esac
3634        ;;
3635      *-sun-*)
3636          coin_opt_cxxflags="-O4"
3637          coin_dbg_cxxflags="-g"
3638        ;;
3639    esac
3640  fi
3641
3642# Generic flag settings. If these don't work, add a case above.
3643
3644  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3645    coin_dbg_cxxflags="-g"
3646  fi
3647
3648  if test -z "$coin_opt_cxxflags"; then
3649    # Try if -O option works if nothing else is set
3650    CXXFLAGS=-O
3651    cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h.  */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661int i=0; i++;
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666rm -f conftest.$ac_objext conftest$ac_exeext
3667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668  (eval $ac_link) 2>conftest.er1
3669  ac_status=$?
3670  grep -v '^ *+' conftest.er1 >conftest.err
3671  rm -f conftest.er1
3672  cat conftest.err >&5
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); } &&
3675         { ac_try='test -z "$ac_cxx_werror_flag"
3676                         || test ! -s conftest.err'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; } &&
3682         { ac_try='test -s conftest$ac_exeext'
3683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684  (eval $ac_try) 2>&5
3685  ac_status=$?
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); }; }; then
3688  coin_opt_cxxflags="-O"
3689else
3690  echo "$as_me: failed program was:" >&5
3691sed 's/^/| /' conftest.$ac_ext >&5
3692
3693fi
3694rm -f conftest.err conftest.$ac_objext \
3695      conftest$ac_exeext conftest.$ac_ext
3696  fi
3697
3698  # if PM doesn't want the warning messages, take them out
3699  if test x"$coin_skip_warn_cxxflags" = xyes; then
3700    coin_warn_cxxflags=
3701  fi
3702
3703# Do final setup of flags based on values determined above.
3704
3705  if test x${DBG_CXXFLAGS+set} != xset; then
3706    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3707  fi
3708  if test x${OPT_CXXFLAGS+set} != xset; then
3709    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3710  fi
3711
3712  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3713  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3714
3715  if test "$coin_debug_compile" = "true"; then
3716    CXXFLAGS="$DBG_CXXFLAGS"
3717  else
3718    CXXFLAGS="$OPT_CXXFLAGS"
3719  fi
3720
3721# Handle the case where CXXFLAGS was set externally.
3722else
3723  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3724  if test x${DBG_CXXFLAGS+set} != xset; then
3725    DBG_CXXFLAGS="$CXXFLAGS"
3726  fi
3727  if test x${OPT_CXXFLAGS+set} != xset; then
3728    OPT_CXXFLAGS="$CXXFLAGS"
3729  fi
3730fi
3731
3732# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3733
3734case "$CXXFLAGS" in
3735  *-mno-cygwin*)
3736    if test x${CPPFLAGS+set} != xset ; then
3737      CPPFLAGS="-mno-cygwin"
3738    else
3739      case "$CPPFLAGS" in
3740        *-mno-cygwin*)
3741          ;;
3742        *)
3743          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3744          ;;
3745      esac
3746    fi ;;
3747esac
3748
3749# Try if CXXFLAGS works
3750save_CXXFLAGS="$CXXFLAGS"
3751cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761int i=0; i++;
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext conftest$ac_exeext
3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3768  (eval $ac_link) 2>conftest.er1
3769  ac_status=$?
3770  grep -v '^ *+' conftest.er1 >conftest.err
3771  rm -f conftest.er1
3772  cat conftest.err >&5
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); } &&
3775         { ac_try='test -z "$ac_cxx_werror_flag"
3776                         || test ! -s conftest.err'
3777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778  (eval $ac_try) 2>&5
3779  ac_status=$?
3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781  (exit $ac_status); }; } &&
3782         { ac_try='test -s conftest$ac_exeext'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; }; then
3788  :
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793CXXFLAGS=
3794fi
3795rm -f conftest.err conftest.$ac_objext \
3796      conftest$ac_exeext conftest.$ac_ext
3797if test -z "$CXXFLAGS"; then
3798  { 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
3799echo "$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;}
3800  CXXFLAGS='-O'
3801  cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811int i=0; i++;
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext conftest$ac_exeext
3817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818  (eval $ac_link) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } &&
3825         { ac_try='test -z "$ac_cxx_werror_flag"
3826                         || test ! -s conftest.err'
3827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828  (eval $ac_try) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); }; } &&
3832         { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  :
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843CXXFLAGS=
3844fi
3845rm -f conftest.err conftest.$ac_objext \
3846      conftest$ac_exeext conftest.$ac_ext
3847  if test -z "$CXXFLAGS"; then
3848    { 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
3849echo "$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;}
3850  fi
3851fi
3852
3853{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3854echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3855
3856
3857if test x"$MPICXX" = x; then :; else
3858  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3859echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3860  CXX="$MPICXX"
3861fi
3862
3863case "$CXX" in
3864  cl* | */cl* | CL* | */CL* )
3865    case $build in
3866  *-mingw*)
3867    if test "${LD+set}" = set; then :; else
3868      LD=link
3869    fi
3870    ;;
3871 esac
3872 case $enable_doscompile in
3873   msvc)
3874     if test "x${LD+set}" = xset; then :; else
3875       LD=link
3876     fi
3877     ;;
3878 esac
3879
3880    ;;
3881esac
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890
3891# Initialize automake and libtool
3892{
3893
3894
3895
3896# START
3897
3898# On Cygwin, building DLLs doesn't work
3899case $build in
3900  *-cygwin*)
3901    coin_disable_shared=yes
3902    platform=Cygwin
3903  ;;
3904  *-mingw*)
3905    coin_disable_shared=yes
3906    platform="Msys"
3907#    case "$CXX" in
3908#      cl*)
3909#        coin_disable_shared=yes
3910#        platform="Msys with cl"
3911#    ;;
3912#    esac
3913  ;;
3914esac
3915if test x"$coin_disable_shared" = xyes; then
3916  if test x"$enable_shared" = xyes; then
3917    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3918echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3919  fi
3920  enable_shared=no
3921fi
3922# By default, we only want the shared objects to be compiled
3923# Check whether --enable-static or --disable-static was given.
3924if test "${enable_static+set}" = set; then
3925  enableval="$enable_static"
3926  p=${PACKAGE-default}
3927    case $enableval in
3928    yes) enable_static=yes ;;
3929    no) enable_static=no ;;
3930    *)
3931     enable_static=no
3932      # Look at the argument we got.  We use all the common list separators.
3933      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3934      for pkg in $enableval; do
3935        IFS="$lt_save_ifs"
3936        if test "X$pkg" = "X$p"; then
3937          enable_static=yes
3938        fi
3939      done
3940      IFS="$lt_save_ifs"
3941      ;;
3942    esac
3943else
3944  enable_static=no
3945fi;
3946
3947
3948
3949
3950# Initialize automake
3951echo "$as_me:$LINENO: checking for egrep" >&5
3952echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3953if test "${ac_cv_prog_egrep+set}" = set; then
3954  echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3957    then ac_cv_prog_egrep='grep -E'
3958    else ac_cv_prog_egrep='egrep'
3959    fi
3960fi
3961echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3962echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3963 EGREP=$ac_cv_prog_egrep
3964
3965
3966am__api_version="1.9"
3967# Find a good install program.  We prefer a C program (faster),
3968# so one script is as good as another.  But avoid the broken or
3969# incompatible versions:
3970# SysV /etc/install, /usr/sbin/install
3971# SunOS /usr/etc/install
3972# IRIX /sbin/install
3973# AIX /bin/install
3974# AmigaOS /C/install, which installs bootblocks on floppy discs
3975# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3976# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3977# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3978# OS/2's system install, which has a completely different semantic
3979# ./install, which can be erroneously created by make from ./install.sh.
3980echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3981echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3982if test -z "$INSTALL"; then
3983if test "${ac_cv_path_install+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989  IFS=$as_save_IFS
3990  test -z "$as_dir" && as_dir=.
3991  # Account for people who put trailing slashes in PATH elements.
3992case $as_dir/ in
3993  ./ | .// | /cC/* | \
3994  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3995  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3996  /usr/ucb/* ) ;;
3997  *)
3998    # OSF1 and SCO ODT 3.0 have their own names for install.
3999    # Don't use installbsd from OSF since it installs stuff as root
4000    # by default.
4001    for ac_prog in ginstall scoinst install; do
4002      for ac_exec_ext in '' $ac_executable_extensions; do
4003        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4004          if test $ac_prog = install &&
4005            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4006            # AIX install.  It has an incompatible calling convention.
4007            :
4008          elif test $ac_prog = install &&
4009            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4010            # program-specific install script used by HP pwplus--don't use.
4011            :
4012          else
4013            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4014            break 3
4015          fi
4016        fi
4017      done
4018    done
4019    ;;
4020esac
4021done
4022
4023
4024fi
4025  if test "${ac_cv_path_install+set}" = set; then
4026    INSTALL=$ac_cv_path_install
4027  else
4028    # As a last resort, use the slow shell script.  We don't cache a
4029    # path for INSTALL within a source directory, because that will
4030    # break other packages using the cache if that directory is
4031    # removed, or if the path is relative.
4032    INSTALL=$ac_install_sh
4033  fi
4034fi
4035echo "$as_me:$LINENO: result: $INSTALL" >&5
4036echo "${ECHO_T}$INSTALL" >&6
4037
4038# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039# It thinks the first close brace ends the variable substitution.
4040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4041
4042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4043
4044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4045
4046echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4047echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4048# Just in case
4049sleep 1
4050echo timestamp > conftest.file
4051# Do `set' in a subshell so we don't clobber the current shell's
4052# arguments.  Must try -L first in case configure is actually a
4053# symlink; some systems play weird games with the mod time of symlinks
4054# (eg FreeBSD returns the mod time of the symlink's containing
4055# directory).
4056if (
4057   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4058   if test "$*" = "X"; then
4059      # -L didn't work.
4060      set X `ls -t $srcdir/configure conftest.file`
4061   fi
4062   rm -f conftest.file
4063   if test "$*" != "X $srcdir/configure conftest.file" \
4064      && test "$*" != "X conftest.file $srcdir/configure"; then
4065
4066      # If neither matched, then we have a broken ls.  This can happen
4067      # if, for instance, CONFIG_SHELL is bash and it inherits a
4068      # broken ls alias from the environment.  This has actually
4069      # happened.  Such a system could not be considered "sane".
4070      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4071alias in your environment" >&5
4072echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4073alias in your environment" >&2;}
4074   { (exit 1); exit 1; }; }
4075   fi
4076
4077   test "$2" = conftest.file
4078   )
4079then
4080   # Ok.
4081   :
4082else
4083   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4084Check your system clock" >&5
4085echo "$as_me: error: newly created file is older than distributed files!
4086Check your system clock" >&2;}
4087   { (exit 1); exit 1; }; }
4088fi
4089echo "$as_me:$LINENO: result: yes" >&5
4090echo "${ECHO_T}yes" >&6
4091test "$program_prefix" != NONE &&
4092  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4093# Use a double $ so make ignores it.
4094test "$program_suffix" != NONE &&
4095  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4096# Double any \ or $.  echo might interpret backslashes.
4097# By default was `s,x,x', remove it if useless.
4098cat <<\_ACEOF >conftest.sed
4099s/[\\$]/&&/g;s/;s,x,x,$//
4100_ACEOF
4101program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4102rm conftest.sed
4103
4104# expand $ac_aux_dir to an absolute path
4105am_aux_dir=`cd $ac_aux_dir && pwd`
4106
4107test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4108# Use eval to expand $SHELL
4109if eval "$MISSING --run true"; then
4110  am_missing_run="$MISSING --run "
4111else
4112  am_missing_run=
4113  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4114echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4115fi
4116
4117if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4118  # We used to keeping the `.' as first argument, in order to
4119  # allow $(mkdir_p) to be used without argument.  As in
4120  #   $(mkdir_p) $(somedir)
4121  # where $(somedir) is conditionally defined.  However this is wrong
4122  # for two reasons:
4123  #  1. if the package is installed by a user who cannot write `.'
4124  #     make install will fail,
4125  #  2. the above comment should most certainly read
4126  #     $(mkdir_p) $(DESTDIR)$(somedir)
4127  #     so it does not work when $(somedir) is undefined and
4128  #     $(DESTDIR) is not.
4129  #  To support the latter case, we have to write
4130  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4131  #  so the `.' trick is pointless.
4132  mkdir_p='mkdir -p --'
4133else
4134  # On NextStep and OpenStep, the `mkdir' command does not
4135  # recognize any option.  It will interpret all options as
4136  # directories to create, and then abort because `.' already
4137  # exists.
4138  for d in ./-p ./--version;
4139  do
4140    test -d $d && rmdir $d
4141  done
4142  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4143  if test -f "$ac_aux_dir/mkinstalldirs"; then
4144    mkdir_p='$(mkinstalldirs)'
4145  else
4146    mkdir_p='$(install_sh) -d'
4147  fi
4148fi
4149
4150for ac_prog in gawk mawk nawk awk
4151do
4152  # Extract the first word of "$ac_prog", so it can be a program name with args.
4153set dummy $ac_prog; ac_word=$2
4154echo "$as_me:$LINENO: checking for $ac_word" >&5
4155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156if test "${ac_cv_prog_AWK+set}" = set; then
4157  echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159  if test -n "$AWK"; then
4160  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167  for ac_exec_ext in '' $ac_executable_extensions; do
4168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169    ac_cv_prog_AWK="$ac_prog"
4170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171    break 2
4172  fi
4173done
4174done
4175
4176fi
4177fi
4178AWK=$ac_cv_prog_AWK
4179if test -n "$AWK"; then
4180  echo "$as_me:$LINENO: result: $AWK" >&5
4181echo "${ECHO_T}$AWK" >&6
4182else
4183  echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6
4185fi
4186
4187  test -n "$AWK" && break
4188done
4189
4190echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4191echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4192set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4193if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  cat >conftest.make <<\_ACEOF
4197all:
4198        @echo 'ac_maketemp="$(MAKE)"'
4199_ACEOF
4200# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4201eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4202if test -n "$ac_maketemp"; then
4203  eval ac_cv_prog_make_${ac_make}_set=yes
4204else
4205  eval ac_cv_prog_make_${ac_make}_set=no
4206fi
4207rm -f conftest.make
4208fi
4209if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4210  echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6
4212  SET_MAKE=
4213else
4214  echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
4216  SET_MAKE="MAKE=${MAKE-make}"
4217fi
4218
4219rm -rf .tst 2>/dev/null
4220mkdir .tst 2>/dev/null
4221if test -d .tst; then
4222  am__leading_dot=.
4223else
4224  am__leading_dot=_
4225fi
4226rmdir .tst 2>/dev/null
4227
4228DEPDIR="${am__leading_dot}deps"
4229
4230          ac_config_commands="$ac_config_commands depfiles"
4231
4232
4233am_make=${MAKE-make}
4234cat > confinc << 'END'
4235am__doit:
4236        @echo done
4237.PHONY: am__doit
4238END
4239# If we don't find an include directive, just comment out the code.
4240echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4241echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4242am__include="#"
4243am__quote=
4244_am_result=none
4245# First try GNU make style include.
4246echo "include confinc" > confmf
4247# We grep out `Entering directory' and `Leaving directory'
4248# messages which can occur if `w' ends up in MAKEFLAGS.
4249# In particular we don't look at `^make:' because GNU make might
4250# be invoked under some other name (usually "gmake"), in which
4251# case it prints its new name instead of `make'.
4252if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4253   am__include=include
4254   am__quote=
4255   _am_result=GNU
4256fi
4257# Now try BSD make style include.
4258if test "$am__include" = "#"; then
4259   echo '.include "confinc"' > confmf
4260   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4261      am__include=.include
4262      am__quote="\""
4263      _am_result=BSD
4264   fi
4265fi
4266
4267
4268echo "$as_me:$LINENO: result: $_am_result" >&5
4269echo "${ECHO_T}$_am_result" >&6
4270rm -f confinc confmf
4271
4272# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4273if test "${enable_dependency_tracking+set}" = set; then
4274  enableval="$enable_dependency_tracking"
4275
4276fi;
4277if test "x$enable_dependency_tracking" != xno; then
4278  am_depcomp="$ac_aux_dir/depcomp"
4279  AMDEPBACKSLASH='\'
4280fi
4281
4282
4283if test "x$enable_dependency_tracking" != xno; then
4284  AMDEP_TRUE=
4285  AMDEP_FALSE='#'
4286else
4287  AMDEP_TRUE='#'
4288  AMDEP_FALSE=
4289fi
4290
4291
4292
4293
4294
4295# AC_MSG_NOTICE([Beginning automake initialisation.])
4296# Stuff for automake
4297# test to see if srcdir already configured
4298if test "`cd $srcdir && pwd`" != "`pwd`" &&
4299   test -f $srcdir/config.status; then
4300  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4301echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4302   { (exit 1); exit 1; }; }
4303fi
4304
4305# test whether we have cygpath
4306if test -z "$CYGPATH_W"; then
4307  if (cygpath --version) >/dev/null 2>/dev/null; then
4308    CYGPATH_W='cygpath -w'
4309  else
4310    CYGPATH_W=echo
4311  fi
4312fi
4313
4314
4315# Define the identity of the package.
4316 PACKAGE='clp'
4317 VERSION='1.4trunk'
4318
4319
4320cat >>confdefs.h <<_ACEOF
4321#define PACKAGE "$PACKAGE"
4322_ACEOF
4323
4324
4325cat >>confdefs.h <<_ACEOF
4326#define VERSION "$VERSION"
4327_ACEOF
4328
4329# Some tools Automake needs.
4330
4331ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4332
4333
4334AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4335
4336
4337AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4338
4339
4340AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4341
4342
4343MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4344
4345install_sh=${install_sh-"$am_aux_dir/install-sh"}
4346
4347# Installed binaries are usually stripped using `strip' when the user
4348# run `make install-strip'.  However `strip' might not be the right
4349# tool to use in cross-compilation environments, therefore Automake
4350# will honor the `STRIP' environment variable to overrule this program.
4351if test "$cross_compiling" != no; then
4352  if test -n "$ac_tool_prefix"; then
4353  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4354set dummy ${ac_tool_prefix}strip; ac_word=$2
4355echo "$as_me:$LINENO: checking for $ac_word" >&5
4356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357if test "${ac_cv_prog_STRIP+set}" = set; then
4358  echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360  if test -n "$STRIP"; then
4361  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366  IFS=$as_save_IFS
4367  test -z "$as_dir" && as_dir=.
4368  for ac_exec_ext in '' $ac_executable_extensions; do
4369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372    break 2
4373  fi
4374done
4375done
4376
4377fi
4378fi
4379STRIP=$ac_cv_prog_STRIP
4380if test -n "$STRIP"; then
4381  echo "$as_me:$LINENO: result: $STRIP" >&5
4382echo "${ECHO_T}$STRIP" >&6
4383else
4384  echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6
4386fi
4387
4388fi
4389if test -z "$ac_cv_prog_STRIP"; then
4390  ac_ct_STRIP=$STRIP
4391  # Extract the first word of "strip", so it can be a program name with args.
4392set dummy strip; ac_word=$2
4393echo "$as_me:$LINENO: checking for $ac_word" >&5
4394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4395if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398  if test -n "$ac_ct_STRIP"; then
4399  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406  for ac_exec_ext in '' $ac_executable_extensions; do
4407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408    ac_cv_prog_ac_ct_STRIP="strip"
4409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410    break 2
4411  fi
4412done
4413done
4414
4415  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4416fi
4417fi
4418ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4419if test -n "$ac_ct_STRIP"; then
4420  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4421echo "${ECHO_T}$ac_ct_STRIP" >&6
4422else
4423  echo "$as_me:$LINENO: result: no" >&5
4424echo "${ECHO_T}no" >&6
4425fi
4426
4427  STRIP=$ac_ct_STRIP
4428else
4429  STRIP="$ac_cv_prog_STRIP"
4430fi
4431
4432fi
4433INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4434
4435# We need awk for the "check" target.  The system "awk" is bad on
4436# some platforms.
4437# Always define AMTAR for backward compatibility.
4438
4439AMTAR=${AMTAR-"${am_missing_run}tar"}
4440
4441am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4442
4443
4444
4445
4446depcc="$CC"   am_compiler_list=
4447
4448echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4449echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4450if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4451  echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4454  # We make a subdir and do the tests there.  Otherwise we can end up
4455  # making bogus files that we don't know about and never remove.  For
4456  # instance it was reported that on HP-UX the gcc test will end up
4457  # making a dummy file named `D' -- because `-MD' means `put the output
4458  # in D'.
4459  mkdir conftest.dir
4460  # Copy depcomp to subdir because otherwise we won't find it if we're
4461  # using a relative directory.
4462  cp "$am_depcomp" conftest.dir
4463  cd conftest.dir
4464  # We will build objects and dependencies in a subdirectory because
4465  # it helps to detect inapplicable dependency modes.  For instance
4466  # both Tru64's cc and ICC support -MD to output dependencies as a
4467  # side effect of compilation, but ICC will put the dependencies in
4468  # the current directory while Tru64 will put them in the object
4469  # directory.
4470  mkdir sub
4471
4472  am_cv_CC_dependencies_compiler_type=none
4473  if test "$am_compiler_list" = ""; then
4474     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475  fi
4476  for depmode in $am_compiler_list; do
4477    # Setup a source with many dependencies, because some compilers
4478    # like to wrap large dependency lists on column 80 (with \), and
4479    # we should not choose a depcomp mode which is confused by this.
4480    #
4481    # We need to recreate these files for each test, as the compiler may
4482    # overwrite some of them when testing with obscure command lines.
4483    # This happens at least with the AIX C compiler.
4484    : > sub/conftest.c
4485    for i in 1 2 3 4 5 6; do
4486      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4487      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4488      # Solaris 8's {/usr,}/bin/sh.
4489      touch sub/conftst$i.h
4490    done
4491    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4492
4493    case $depmode in
4494    nosideeffect)
4495      # after this tag, mechanisms are not by side-effect, so they'll
4496      # only be used when explicitly requested
4497      if test "x$enable_dependency_tracking" = xyes; then
4498        continue
4499      else
4500        break
4501      fi
4502      ;;
4503    none) break ;;
4504    esac
4505    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4506    # mode.  It turns out that the SunPro C++ compiler does not properly
4507    # handle `-M -o', and we need to detect this.
4508    if depmode=$depmode \
4509       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4510       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4511       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4512         >/dev/null 2>conftest.err &&
4513       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4515       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516      # icc doesn't choke on unknown options, it will just issue warnings
4517      # or remarks (even with -Werror).  So we grep stderr for any message
4518      # that says an option was ignored or not supported.
4519      # When given -MP, icc 7.0 and 7.1 complain thusly:
4520      #   icc: Command line warning: ignoring option '-M'; no argument required
4521      # The diagnosis changed in icc 8.0:
4522      #   icc: Command line remark: option '-MP' not supported
4523      if (grep 'ignoring option' conftest.err ||
4524          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525        am_cv_CC_dependencies_compiler_type=$depmode
4526        break
4527      fi
4528    fi
4529  done
4530
4531  cd ..
4532  rm -rf conftest.dir
4533else
4534  am_cv_CC_dependencies_compiler_type=none
4535fi
4536
4537fi
4538echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4539echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542
4543
4544if
4545  test "x$enable_dependency_tracking" != xno \
4546  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4547  am__fastdepCC_TRUE=
4548  am__fastdepCC_FALSE='#'
4549else
4550  am__fastdepCC_TRUE='#'
4551  am__fastdepCC_FALSE=
4552fi
4553
4554
4555depcc="$CXX"  am_compiler_list=
4556
4557echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4558echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4559if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4563  # We make a subdir and do the tests there.  Otherwise we can end up
4564  # making bogus files that we don't know about and never remove.  For
4565  # instance it was reported that on HP-UX the gcc test will end up
4566  # making a dummy file named `D' -- because `-MD' means `put the output
4567  # in D'.
4568  mkdir conftest.dir
4569  # Copy depcomp to subdir because otherwise we won't find it if we're
4570  # using a relative directory.
4571  cp "$am_depcomp" conftest.dir
4572  cd conftest.dir
4573  # We will build objects and dependencies in a subdirectory because
4574  # it helps to detect inapplicable dependency modes.  For instance
4575  # both Tru64's cc and ICC support -MD to output dependencies as a
4576  # side effect of compilation, but ICC will put the dependencies in
4577  # the current directory while Tru64 will put them in the object
4578  # directory.
4579  mkdir sub
4580
4581  am_cv_CXX_dependencies_compiler_type=none
4582  if test "$am_compiler_list" = ""; then
4583     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4584  fi
4585  for depmode in $am_compiler_list; do
4586    # Setup a source with many dependencies, because some compilers
4587    # like to wrap large dependency lists on column 80 (with \), and
4588    # we should not choose a depcomp mode which is confused by this.
4589    #
4590    # We need to recreate these files for each test, as the compiler may
4591    # overwrite some of them when testing with obscure command lines.
4592    # This happens at least with the AIX C compiler.
4593    : > sub/conftest.c
4594    for i in 1 2 3 4 5 6; do
4595      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4596      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4597      # Solaris 8's {/usr,}/bin/sh.
4598      touch sub/conftst$i.h
4599    done
4600    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4601
4602    case $depmode in
4603    nosideeffect)
4604      # after this tag, mechanisms are not by side-effect, so they'll
4605      # only be used when explicitly requested
4606      if test "x$enable_dependency_tracking" = xyes; then
4607        continue
4608      else
4609        break
4610      fi
4611      ;;
4612    none) break ;;
4613    esac
4614    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4615    # mode.  It turns out that the SunPro C++ compiler does not properly
4616    # handle `-M -o', and we need to detect this.
4617    if depmode=$depmode \
4618       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4619       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4620       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4621         >/dev/null 2>conftest.err &&
4622       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4623       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4624       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4625      # icc doesn't choke on unknown options, it will just issue warnings
4626      # or remarks (even with -Werror).  So we grep stderr for any message
4627      # that says an option was ignored or not supported.
4628      # When given -MP, icc 7.0 and 7.1 complain thusly:
4629      #   icc: Command line warning: ignoring option '-M'; no argument required
4630      # The diagnosis changed in icc 8.0:
4631      #   icc: Command line remark: option '-MP' not supported
4632      if (grep 'ignoring option' conftest.err ||
4633          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4634        am_cv_CXX_dependencies_compiler_type=$depmode
4635        break
4636      fi
4637    fi
4638  done
4639
4640  cd ..
4641  rm -rf conftest.dir
4642else
4643  am_cv_CXX_dependencies_compiler_type=none
4644fi
4645
4646fi
4647echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4648echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4649CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4650
4651
4652
4653if
4654  test "x$enable_dependency_tracking" != xno \
4655  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4656  am__fastdepCXX_TRUE=
4657  am__fastdepCXX_FALSE='#'
4658else
4659  am__fastdepCXX_TRUE='#'
4660  am__fastdepCXX_FALSE=
4661fi
4662
4663
4664
4665echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4666echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4667    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4668if test "${enable_maintainer_mode+set}" = set; then
4669  enableval="$enable_maintainer_mode"
4670  USE_MAINTAINER_MODE=$enableval
4671else
4672  USE_MAINTAINER_MODE=no
4673fi;
4674  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4675echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4676
4677
4678if test $USE_MAINTAINER_MODE = yes; then
4679  MAINTAINER_MODE_TRUE=
4680  MAINTAINER_MODE_FALSE='#'
4681else
4682  MAINTAINER_MODE_TRUE='#'
4683  MAINTAINER_MODE_FALSE=
4684fi
4685
4686  MAINT=$MAINTAINER_MODE_TRUE
4687
4688
4689
4690coin_have_externals=no
4691if test "$enable_maintainer_mode" = yes; then
4692
4693  # If maintainer mode is chosen, we make sure that the correct versions
4694  # of the tools are used, and that we know where libtool.m4 is (to
4695  # recreate acinclude.m4)
4696
4697
4698  LIBTOOLM4=
4699  # Normally, $HOME
4700  AUTOTOOLS_DFLT=$HOME
4701
4702  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4703echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4704if test "${ac_cv_use_correct_autotools+set}" = set; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  ac_cv_use_correct_autotools=check
4708fi
4709echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4710echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4711
4712  if test $ac_cv_use_correct_autotools = check; then
4713    ac_cv_use_correct_autotools=yes
4714    # Check if we have autoconf
4715    # Extract the first word of "autoconf", so it can be a program name with args.
4716set dummy autoconf; ac_word=$2
4717echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719if test "${ac_cv_prog_have_autoconf+set}" = set; then
4720  echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722  if test -n "$have_autoconf"; then
4723  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730  for ac_exec_ext in '' $ac_executable_extensions; do
4731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4732    ac_cv_prog_have_autoconf="yes"
4733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734    break 2
4735  fi
4736done
4737done
4738
4739  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4740fi
4741fi
4742have_autoconf=$ac_cv_prog_have_autoconf
4743if test -n "$have_autoconf"; then
4744  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4745echo "${ECHO_T}$have_autoconf" >&6
4746else
4747  echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
4749fi
4750
4751    if test $have_autoconf = no; then
4752      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4753echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4754   { (exit 1); exit 1; }; }
4755    fi
4756
4757    # Check whether autoconf is the correct version
4758    correct_version='2.59'
4759    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4760    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4761echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4762    autoconf --version > confauto.out 2>&1
4763    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4764      echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
4766    else
4767      rm -f confauto.out
4768      echo "$as_me:$LINENO: result: no" >&5
4769echo "${ECHO_T}no" >&6
4770      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4771echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4772   { (exit 1); exit 1; }; }
4773    fi
4774    rm -f confauto.out
4775
4776    # Check if the executable autoconf is picked up from the correct location
4777    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4778echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4779    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4780    autoconf_dir=`cd $autoconf_dir; pwd`
4781    if test x$AUTOTOOLS_DIR = x; then
4782      want_dir=$AUTOTOOLS_DFLT/bin
4783    else
4784      want_dir=$AUTOTOOLS_DIR/bin
4785    fi
4786    if test $autoconf_dir = `cd $want_dir; pwd`; then
4787      echo "$as_me:$LINENO: result: yes" >&5
4788echo "${ECHO_T}yes" >&6
4789    else
4790      rm -f confauto.out
4791      echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4794echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4795   { (exit 1); exit 1; }; }
4796    fi
4797
4798    # Check if we have automake
4799    # Extract the first word of "automake", so it can be a program name with args.
4800set dummy automake; ac_word=$2
4801echo "$as_me:$LINENO: checking for $ac_word" >&5
4802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803if test "${ac_cv_prog_have_automake+set}" = set; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  if test -n "$have_automake"; then
4807  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4808else
4809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814  for ac_exec_ext in '' $ac_executable_extensions; do
4815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816    ac_cv_prog_have_automake="yes"
4817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818    break 2
4819  fi
4820done
4821done
4822
4823  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4824fi
4825fi
4826have_automake=$ac_cv_prog_have_automake
4827if test -n "$have_automake"; then
4828  echo "$as_me:$LINENO: result: $have_automake" >&5
4829echo "${ECHO_T}$have_automake" >&6
4830else
4831  echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833fi
4834
4835    if test $have_automake = no; then
4836      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4837echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4838   { (exit 1); exit 1; }; }
4839    fi
4840
4841    # Check whether automake is the correct version
4842    correct_version='1.9.6'
4843    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4844    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4845echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4846    automake --version > confauto.out 2>&1
4847    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4848      echo "$as_me:$LINENO: result: yes" >&5
4849echo "${ECHO_T}yes" >&6
4850    else
4851      rm -f confauto.out
4852      echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4855echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4856   { (exit 1); exit 1; }; }
4857    fi
4858    rm -f confauto.out
4859
4860    # Check if the executable automake is picked up from the correct location
4861    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4862echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4863    automake_dir=`which automake | sed -e 's=/automake=='`
4864    automake_dir=`cd $automake_dir; pwd`
4865    if test x$AUTOTOOLS_DIR = x; then
4866      want_dir=$AUTOTOOLS_DFLT/bin
4867    else
4868      want_dir=$AUTOTOOLS_DIR/bin
4869    fi
4870    if test $automake_dir = `cd $want_dir; pwd`; then
4871      echo "$as_me:$LINENO: result: yes" >&5
4872echo "${ECHO_T}yes" >&6
4873    else
4874      rm -f confauto.out
4875      echo "$as_me:$LINENO: result: no" >&5
4876echo "${ECHO_T}no" >&6
4877      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4878echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4879   { (exit 1); exit 1; }; }
4880    fi
4881
4882    # Check if this is the correct version of libtool (with escaped dots)
4883    if test x$AUTOTOOLS_DIR = x; then
4884      want_dir=$AUTOTOOLS_DFLT/share
4885    else
4886      want_dir=$AUTOTOOLS_DIR/share
4887    fi
4888    correct_version='1.5.22'
4889    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4890    if test -r $want_dir/libtool/ltmain.sh; then
4891  have_ltmain=yes
4892  :
4893else
4894  have_ltmain=no
4895  :
4896fi
4897
4898    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4899echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4900    if test $have_ltmain = yes; then
4901    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4902        echo "$as_me:$LINENO: result: yes" >&5
4903echo "${ECHO_T}yes" >&6
4904      else
4905        echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6
4907        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4908echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4909   { (exit 1); exit 1; }; }
4910      fi
4911    else
4912      echo "$as_me:$LINENO: result: no" >&5
4913echo "${ECHO_T}no" >&6
4914      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4915echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4916   { (exit 1); exit 1; }; }
4917    fi
4918  fi
4919
4920  # Check if we can find the libtool file
4921  if test x$AUTOTOOLS_DIR = x; then
4922    want_dir=$AUTOTOOLS_DFLT/share
4923  else
4924    want_dir=$AUTOTOOLS_DIR/share
4925  fi
4926  if test -r $want_dir/aclocal/libtool.m4; then
4927  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4928  :
4929else
4930  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4931echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4932   { (exit 1); exit 1; }; }
4933  :
4934fi
4935
4936
4937  # Check if we have an Externals file
4938  if test -r $srcdir/Externals; then
4939    coin_have_externals=yes
4940  fi
4941  # Check if subversion is installed and understands https
4942  # Extract the first word of "svn", so it can be a program name with args.
4943set dummy svn; ac_word=$2
4944echo "$as_me:$LINENO: checking for $ac_word" >&5
4945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946if test "${ac_cv_prog_have_svn+set}" = set; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949  if test -n "$have_svn"; then
4950  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4951else
4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955  IFS=$as_save_IFS
4956  test -z "$as_dir" && as_dir=.
4957  for ac_exec_ext in '' $ac_executable_extensions; do
4958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959    ac_cv_prog_have_svn="yes"
4960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961    break 2
4962  fi
4963done
4964done
4965
4966  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4967fi
4968fi
4969have_svn=$ac_cv_prog_have_svn
4970if test -n "$have_svn"; then
4971  echo "$as_me:$LINENO: result: $have_svn" >&5
4972echo "${ECHO_T}$have_svn" >&6
4973else
4974  echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
4976fi
4977
4978  if test x$have_svn = xyes; then
4979    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4980echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4981if test "${ac_cv_svn_understands_https+set}" = set; then
4982  echo $ECHO_N "(cached) $ECHO_C" >&6
4983else
4984  svn --version > confauto.out 2>&1
4985                    if $EGREP https confauto.out >/dev/null 2>&1; then
4986                      ac_cv_svn_understands_https=yes
4987                    else
4988                      ac_cv_svn_understands_https=no
4989                      have_svn=no
4990                      ac_cv_prog_have_svn=no
4991                    fi
4992                    rm -f confauto.out
4993fi
4994echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4995echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4996  fi
4997
4998  # Find the location of the BuildTools directory
4999  BUILDTOOLSDIR=
5000  if test -r $srcdir/BuildTools/coin.m4; then
5001    BUILDTOOLSDIR=$srcdir/BuildTools
5002  else
5003    if test -r $srcdir/../BuildTools/coin.m4; then
5004      BUILDTOOLSDIR=$srcdir/../BuildTools
5005    else
5006      if test -r $srcdir/../../BuildTools/coin.m4; then
5007        BUILDTOOLSDIR=$srcdir/../../BuildTools
5008      else
5009        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5010echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5011   { (exit 1); exit 1; }; }
5012      fi
5013    fi
5014  fi
5015
5016
5017  # The following variable is set to the name of the directory where
5018  # the autotool scripts are located
5019
5020  AUX_DIR=$ac_aux_dir
5021fi
5022
5023# helpful variable for the base directory of this package
5024abs_source_dir=`cd $srcdir; pwd`
5025
5026
5027# Stuff for example Makefiles
5028if test x$prefix = xNONE; then
5029  full_prefix=$ac_default_prefix
5030else
5031  full_prefix=$prefix
5032fi
5033full_prefix=`cd $full_prefix ; pwd`
5034
5035abs_lib_dir=$full_prefix/lib
5036
5037abs_include_dir=$full_prefix/include
5038
5039abs_bin_dir=$full_prefix/bin
5040
5041
5042
5043if test $coin_have_externals = yes && test x$have_svn = xyes; then
5044  HAVE_EXTERNALS_TRUE=
5045  HAVE_EXTERNALS_FALSE='#'
5046else
5047  HAVE_EXTERNALS_TRUE='#'
5048  HAVE_EXTERNALS_FALSE=
5049fi
5050
5051
5052# AC_MSG_NOTICE([End automake initialisation.])
5053
5054
5055
5056LIBTOOL=
5057if test -r ../libtool; then
5058  coin_config_dir=..
5059  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5060fi
5061if test "x$LIBTOOL" = x; then
5062  if test -r ../../libtool; then
5063    coin_config_dir=../..
5064    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5065  fi
5066fi
5067
5068if test "x$LIBTOOL" = x; then
5069# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5070  # Stuff for libtool
5071  # Check whether --enable-shared or --disable-shared was given.
5072if test "${enable_shared+set}" = set; then
5073  enableval="$enable_shared"
5074  p=${PACKAGE-default}
5075    case $enableval in
5076    yes) enable_shared=yes ;;
5077    no) enable_shared=no ;;
5078    *)
5079      enable_shared=no
5080      # Look at the argument we got.  We use all the common list separators.
5081      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5082      for pkg in $enableval; do
5083        IFS="$lt_save_ifs"
5084        if test "X$pkg" = "X$p"; then
5085          enable_shared=yes
5086        fi
5087      done
5088      IFS="$lt_save_ifs"
5089      ;;
5090    esac
5091else
5092  enable_shared=yes
5093fi;
5094
5095# Check whether --enable-fast-install or --disable-fast-install was given.
5096if test "${enable_fast_install+set}" = set; then
5097  enableval="$enable_fast_install"
5098  p=${PACKAGE-default}
5099    case $enableval in
5100    yes) enable_fast_install=yes ;;
5101    no) enable_fast_install=no ;;
5102    *)
5103      enable_fast_install=no
5104      # Look at the argument we got.  We use all the common list separators.
5105      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5106      for pkg in $enableval; do
5107        IFS="$lt_save_ifs"
5108        if test "X$pkg" = "X$p"; then
5109          enable_fast_install=yes
5110        fi
5111      done
5112      IFS="$lt_save_ifs"
5113      ;;
5114    esac
5115else
5116  enable_fast_install=yes
5117fi;
5118
5119echo "$as_me:$LINENO: checking host system type" >&5
5120echo $ECHO_N "checking host system type... $ECHO_C" >&6
5121if test "${ac_cv_host+set}" = set; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  ac_cv_host_alias=$host_alias
5125test -z "$ac_cv_host_alias" &&
5126  ac_cv_host_alias=$ac_cv_build_alias
5127ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5128  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5129echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5130   { (exit 1); exit 1; }; }
5131
5132fi
5133echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5134echo "${ECHO_T}$ac_cv_host" >&6
5135host=$ac_cv_host
5136host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5137host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5138host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5139
5140
5141echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5142echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5143if test "${lt_cv_path_SED+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  # Loop through the user's path and test for sed and gsed.
5147# Then use that list of sed's as ones to test for truncation.
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153  for lt_ac_prog in sed gsed; do
5154    for ac_exec_ext in '' $ac_executable_extensions; do
5155      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5156        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5157      fi
5158    done
5159  done
5160done
5161lt_ac_max=0
5162lt_ac_count=0
5163# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5164# along with /bin/sed that truncates output.
5165for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5166  test ! -f $lt_ac_sed && continue
5167  cat /dev/null > conftest.in
5168  lt_ac_count=0
5169  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5170  # Check for GNU sed and select it if it is found.
5171  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5172    lt_cv_path_SED=$lt_ac_sed
5173    break
5174  fi
5175  while true; do
5176    cat conftest.in conftest.in >conftest.tmp
5177    mv conftest.tmp conftest.in
5178    cp conftest.in conftest.nl
5179    echo >>conftest.nl
5180    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5181    cmp -s conftest.out conftest.nl || break
5182    # 10000 chars as input seems more than enough
5183    test $lt_ac_count -gt 10 && break
5184    lt_ac_count=`expr $lt_ac_count + 1`
5185    if test $lt_ac_count -gt $lt_ac_max; then
5186      lt_ac_max=$lt_ac_count
5187      lt_cv_path_SED=$lt_ac_sed
5188    fi
5189  done
5190done
5191
5192fi
5193
5194SED=$lt_cv_path_SED
5195echo "$as_me:$LINENO: result: $SED" >&5
5196echo "${ECHO_T}$SED" >&6
5197
5198
5199# Check whether --with-gnu-ld or --without-gnu-ld was given.
5200if test "${with_gnu_ld+set}" = set; then
5201  withval="$with_gnu_ld"
5202  test "$withval" = no || with_gnu_ld=yes
5203else
5204  with_gnu_ld=no
5205fi;
5206ac_prog=ld
5207if test "$GCC" = yes; then
5208  # Check if gcc -print-prog-name=ld gives a path.
5209  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5210echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5211  case $host in
5212  *-*-mingw*)
5213    # gcc leaves a trailing carriage return which upsets mingw
5214    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5215  *)
5216    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5217  esac
5218  case $ac_prog in
5219    # Accept absolute paths.
5220    [\\/]* | ?:[\\/]*)
5221      re_direlt='/[^/][^/]*/\.\./'
5222      # Canonicalize the pathname of ld
5223      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5224      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5225        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5226      done
5227      test -z "$LD" && LD="$ac_prog"
5228      ;;
5229  "")
5230    # If it fails, then pretend we aren't using GCC.
5231    ac_prog=ld
5232    ;;
5233  *)
5234    # If it is relative, then search for the first ld in PATH.
5235    with_gnu_ld=unknown
5236    ;;
5237  esac
5238elif test "$with_gnu_ld" = yes; then
5239  echo "$as_me:$LINENO: checking for GNU ld" >&5
5240echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5241else
5242  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5243echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5244fi
5245if test "${lt_cv_path_LD+set}" = set; then
5246  echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248  if test -z "$LD"; then
5249  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5250  for ac_dir in $PATH; do
5251    IFS="$lt_save_ifs"
5252    test -z "$ac_dir" && ac_dir=.
5253    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5254      lt_cv_path_LD="$ac_dir/$ac_prog"
5255      # Check to see if the program is GNU ld.  I'd rather use --version,
5256      # but apparently some variants of GNU ld only accept -v.
5257      # Break only if it was the GNU/non-GNU ld that we prefer.
5258      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5259      *GNU* | *'with BFD'*)
5260        test "$with_gnu_ld" != no && break
5261        ;;
5262      *)
5263        test "$with_gnu_ld" != yes && break
5264        ;;
5265      esac
5266    fi
5267  done
5268  IFS="$lt_save_ifs"
5269else
5270  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5271fi
5272fi
5273
5274LD="$lt_cv_path_LD"
5275if test -n "$LD"; then
5276  echo "$as_me:$LINENO: result: $LD" >&5
5277echo "${ECHO_T}$LD" >&6
5278else
5279  echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281fi
5282test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5283echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5284   { (exit 1); exit 1; }; }
5285echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5286echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5287if test "${lt_cv_prog_gnu_ld+set}" = set; then
5288  echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5291case `$LD -v 2>&1 </dev/null` in
5292*GNU* | *'with BFD'*)
5293  lt_cv_prog_gnu_ld=yes
5294  ;;
5295*)
5296  lt_cv_prog_gnu_ld=no
5297  ;;
5298esac
5299fi
5300echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5301echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5302with_gnu_ld=$lt_cv_prog_gnu_ld
5303
5304
5305echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5306echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5307if test "${lt_cv_ld_reload_flag+set}" = set; then
5308  echo $ECHO_N "(cached) $ECHO_C" >&6
5309else
5310  lt_cv_ld_reload_flag='-r'
5311fi
5312echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5313echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5314reload_flag=$lt_cv_ld_reload_flag
5315case $reload_flag in
5316"" | " "*) ;;
5317*) reload_flag=" $reload_flag" ;;
5318esac
5319reload_cmds='$LD$reload_flag -o $output$reload_objs'
5320case $host_os in
5321  darwin*)
5322    if test "$GCC" = yes; then
5323      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5324    else
5325      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5326    fi
5327    ;;
5328esac
5329
5330echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5331echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5332if test "${lt_cv_path_NM+set}" = set; then
5333  echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335  if test -n "$NM"; then
5336  # Let the user override the test.
5337  lt_cv_path_NM="$NM"
5338else
5339  lt_nm_to_check="${ac_tool_prefix}nm"
5340  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5341    lt_nm_to_check="$lt_nm_to_check nm"
5342  fi
5343  for lt_tmp_nm in $lt_nm_to_check; do
5344    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5345    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5346      IFS="$lt_save_ifs"
5347      test -z "$ac_dir" && ac_dir=.
5348      tmp_nm="$ac_dir/$lt_tmp_nm"
5349      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5350        # Check to see if the nm accepts a BSD-compat flag.
5351        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5352        #   nm: unknown option "B" ignored
5353        # Tru64's nm complains that /dev/null is an invalid object file
5354        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5355        */dev/null* | *'Invalid file or object type'*)
5356          lt_cv_path_NM="$tmp_nm -B"
5357          break
5358          ;;
5359        *)
5360          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5361          */dev/null*)
5362            lt_cv_path_NM="$tmp_nm -p"
5363            break
5364            ;;
5365          *)
5366            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5367            continue # so that we can try to find one that supports BSD flags
5368            ;;
5369          esac
5370          ;;
5371        esac
5372      fi
5373    done
5374    IFS="$lt_save_ifs"
5375  done
5376  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5377fi
5378fi
5379echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5380echo "${ECHO_T}$lt_cv_path_NM" >&6
5381NM="$lt_cv_path_NM"
5382
5383echo "$as_me:$LINENO: checking whether ln -s works" >&5
5384echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5385LN_S=$as_ln_s
5386if test "$LN_S" = "ln -s"; then
5387  echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389else
5390  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5391echo "${ECHO_T}no, using $LN_S" >&6
5392fi
5393
5394echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5395echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5396if test "${lt_cv_deplibs_check_method+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  lt_cv_file_magic_cmd='$MAGIC_CMD'
5400lt_cv_file_magic_test_file=
5401lt_cv_deplibs_check_method='unknown'
5402# Need to set the preceding variable on all platforms that support
5403# interlibrary dependencies.
5404# 'none' -- dependencies not supported.
5405# `unknown' -- same as none, but documents that we really don't know.
5406# 'pass_all' -- all dependencies passed with no checks.
5407# 'test_compile' -- check by making test program.
5408# 'file_magic [[regex]]' -- check by looking for files in library path
5409# which responds to the $file_magic_cmd with a given extended regex.
5410# If you have `file' or equivalent on your system and you're not sure
5411# whether `pass_all' will *always* work, you probably want this one.
5412
5413case $host_os in
5414aix4* | aix5*)
5415  lt_cv_deplibs_check_method=pass_all
5416  ;;
5417
5418beos*)
5419  lt_cv_deplibs_check_method=pass_all
5420  ;;
5421
5422bsdi[45]*)
5423  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5424  lt_cv_file_magic_cmd='/usr/bin/file -L'
5425  lt_cv_file_magic_test_file=/shlib/libc.so
5426  ;;
5427
5428cygwin*)
5429  # func_win32_libid is a shell function defined in ltmain.sh
5430  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431  lt_cv_file_magic_cmd='func_win32_libid'
5432  ;;
5433
5434mingw* | pw32*)
5435  # Base MSYS/MinGW do not provide the 'file' command needed by
5436  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5437  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438  lt_cv_file_magic_cmd='$OBJDUMP -f'
5439  ;;
5440
5441darwin* | rhapsody*)
5442  lt_cv_deplibs_check_method=pass_all
5443  ;;
5444
5445freebsd* | kfreebsd*-gnu | dragonfly*)
5446  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5447    case $host_cpu in
5448    i*86 )
5449      # Not sure whether the presence of OpenBSD here was a mistake.
5450      # Let's accept both of them until this is cleared up.
5451      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5452      lt_cv_file_magic_cmd=/usr/bin/file
5453      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5454      ;;
5455    esac
5456  else
5457    lt_cv_deplibs_check_method=pass_all
5458  fi
5459  ;;
5460
5461gnu*)
5462  lt_cv_deplibs_check_method=pass_all
5463  ;;
5464
5465hpux10.20* | hpux11*)
5466  lt_cv_file_magic_cmd=/usr/bin/file
5467  case $host_cpu in
5468  ia64*)
5469    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5470    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5471    ;;
5472  hppa*64*)
5473    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]'
5474    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5475    ;;
5476  *)
5477    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5478    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5479    ;;
5480  esac
5481  ;;
5482
5483interix3*)
5484  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5485  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5486  ;;
5487
5488irix5* | irix6* | nonstopux*)
5489  case $LD in
5490  *-32|*"-32 ") libmagic=32-bit;;
5491  *-n32|*"-n32 ") libmagic=N32;;
5492  *-64|*"-64 ") libmagic=64-bit;;
5493  *) libmagic=never-match;;
5494  esac
5495  lt_cv_deplibs_check_method=pass_all
5496  ;;
5497
5498# This must be Linux ELF.
5499linux*)
5500  lt_cv_deplibs_check_method=pass_all
5501  ;;
5502
5503netbsd*)
5504  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5505    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5506  else
5507    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5508  fi
5509  ;;
5510
5511newos6*)
5512  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5513  lt_cv_file_magic_cmd=/usr/bin/file
5514  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5515  ;;
5516
5517nto-qnx*)
5518  lt_cv_deplibs_check_method=unknown
5519  ;;
5520
5521openbsd*)
5522  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5523    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5524  else
5525    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5526  fi
5527  ;;
5528
5529osf3* | osf4* | osf5*)
5530  lt_cv_deplibs_check_method=pass_all
5531  ;;
5532
5533solaris*)
5534  lt_cv_deplibs_check_method=pass_all
5535  ;;
5536
5537sysv4 | sysv4.3*)
5538  case $host_vendor in
5539  motorola)
5540    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]'
5541    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5542    ;;
5543  ncr)
5544    lt_cv_deplibs_check_method=pass_all
5545    ;;
5546  sequent)
5547    lt_cv_file_magic_cmd='/bin/file'
5548    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5549    ;;
5550  sni)
5551    lt_cv_file_magic_cmd='/bin/file'
5552    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5553    lt_cv_file_magic_test_file=/lib/libc.so
5554    ;;
5555  siemens)
5556    lt_cv_deplibs_check_method=pass_all
5557    ;;
5558  pc)
5559    lt_cv_deplibs_check_method=pass_all
5560    ;;
5561  esac
5562  ;;
5563
5564sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5565  lt_cv_deplibs_check_method=pass_all
5566  ;;
5567esac
5568
5569fi
5570echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5571echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5572file_magic_cmd=$lt_cv_file_magic_cmd
5573deplibs_check_method=$lt_cv_deplibs_check_method
5574test -z "$deplibs_check_method" && deplibs_check_method=unknown
5575
5576
5577
5578
5579# If no C compiler was specified, use CC.
5580LTCC=${LTCC-"$CC"}
5581
5582# If no C compiler flags were specified, use CFLAGS.
5583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5584
5585# Allow CC to be a program name with arguments.
5586compiler=$CC
5587
5588# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5589if test "${enable_libtool_lock+set}" = set; then
5590  enableval="$enable_libtool_lock"
5591
5592fi;
5593test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5594
5595# Some flags need to be propagated to the compiler or linker for good
5596# libtool support.
5597case $host in
5598ia64-*-hpux*)
5599  # Find out which ABI we are using.
5600  echo 'int i;' > conftest.$ac_ext
5601  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602  (eval $ac_compile) 2>&5
5603  ac_status=$?
5604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605  (exit $ac_status); }; then
5606    case `/usr/bin/file conftest.$ac_objext` in
5607    *ELF-32*)
5608      HPUX_IA64_MODE="32"
5609      ;;
5610    *ELF-64*)
5611      HPUX_IA64_MODE="64"
5612      ;;
5613    esac
5614  fi
5615  rm -rf conftest*
5616  ;;
5617*-*-irix6*)
5618  # Find out which ABI we are using.
5619  echo '#line 5619 "configure"' > conftest.$ac_ext
5620  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621  (eval $ac_compile) 2>&5
5622  ac_status=$?
5623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624  (exit $ac_status); }; then
5625   if test "$lt_cv_prog_gnu_ld" = yes; then
5626    case `/usr/bin/file conftest.$ac_objext` in
5627    *32-bit*)
5628      LD="${LD-ld} -melf32bsmip"
5629      ;;
5630    *N32*)
5631      LD="${LD-ld} -melf32bmipn32"
5632      ;;
5633    *64-bit*)
5634      LD="${LD-ld} -melf64bmip"
5635      ;;
5636    esac
5637   else
5638    case `/usr/bin/file conftest.$ac_objext` in
5639    *32-bit*)
5640      LD="${LD-ld} -32"
5641      ;;
5642    *N32*)
5643      LD="${LD-ld} -n32"
5644      ;;
5645    *64-bit*)
5646      LD="${LD-ld} -64"
5647      ;;
5648    esac
5649   fi
5650  fi
5651  rm -rf conftest*
5652  ;;
5653
5654x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5655  # Find out which ABI we are using.
5656  echo 'int i;' > conftest.$ac_ext
5657  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658  (eval $ac_compile) 2>&5
5659  ac_status=$?
5660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661  (exit $ac_status); }; then
5662    case `/usr/bin/file conftest.o` in
5663    *32-bit*)
5664      case $host in
5665        x86_64-*linux*)
5666          LD="${LD-ld} -m elf_i386"
5667          ;;
5668        ppc64-*linux*|powerpc64-*linux*)
5669          LD="${LD-ld} -m elf32ppclinux"
5670          ;;
5671        s390x-*linux*)
5672          LD="${LD-ld} -m elf_s390"
5673          ;;
5674        sparc64-*linux*)
5675          LD="${LD-ld} -m elf32_sparc"
5676          ;;
5677      esac
5678      ;;
5679    *64-bit*)
5680      case $host in
5681        x86_64-*linux*)
5682          LD="${LD-ld} -m elf_x86_64"
5683          ;;
5684        ppc*-*linux*|powerpc*-*linux*)
5685          LD="${LD-ld} -m elf64ppc"
5686          ;;
5687        s390*-*linux*)
5688          LD="${LD-ld} -m elf64_s390"
5689          ;;
5690        sparc*-*linux*)
5691          LD="${LD-ld} -m elf64_sparc"
5692          ;;
5693      esac
5694      ;;
5695    esac
5696  fi
5697  rm -rf conftest*
5698  ;;
5699
5700*-*-sco3.2v5*)
5701  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5702  SAVE_CFLAGS="$CFLAGS"
5703  CFLAGS="$CFLAGS -belf"
5704  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5705echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5706if test "${lt_cv_cc_needs_belf+set}" = set; then
5707  echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709  ac_ext=c
5710ac_cpp='$CPP $CPPFLAGS'
5711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5713ac_compiler_gnu=$ac_cv_c_compiler_gnu
5714
5715     cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h.  */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h.  */
5721
5722int
5723main ()
5724{
5725
5726  ;
5727  return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext conftest$ac_exeext
5731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732  (eval $ac_link) 2>conftest.er1
5733  ac_status=$?
5734  grep -v '^ *+' conftest.er1 >conftest.err
5735  rm -f conftest.er1
5736  cat conftest.err >&5
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); } &&
5739         { ac_try='test -z "$ac_c_werror_flag"
5740                         || test ! -s conftest.err'
5741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742  (eval $ac_try) 2>&5
5743  ac_status=$?
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); }; } &&
5746         { ac_try='test -s conftest$ac_exeext'
5747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748  (eval $ac_try) 2>&5
5749  ac_status=$?
5750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751  (exit $ac_status); }; }; then
5752  lt_cv_cc_needs_belf=yes
5753else
5754  echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757lt_cv_cc_needs_belf=no
5758fi
5759rm -f conftest.err conftest.$ac_objext \
5760      conftest$ac_exeext conftest.$ac_ext
5761     ac_ext=c
5762ac_cpp='$CPP $CPPFLAGS'
5763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766
5767fi
5768echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5769echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5770  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5771    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5772    CFLAGS="$SAVE_CFLAGS"
5773  fi
5774  ;;
5775sparc*-*solaris*)
5776  # Find out which ABI we are using.
5777  echo 'int i;' > conftest.$ac_ext
5778  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779  (eval $ac_compile) 2>&5
5780  ac_status=$?
5781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782  (exit $ac_status); }; then
5783    case `/usr/bin/file conftest.o` in
5784    *64-bit*)
5785      case $lt_cv_prog_gnu_ld in
5786      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5787      *)    LD="${LD-ld} -64" ;;
5788      esac
5789      ;;
5790    esac
5791  fi
5792  rm -rf conftest*
5793  ;;
5794
5795
5796esac
5797
5798need_locks="$enable_libtool_lock"
5799
5800
5801ac_ext=c
5802ac_cpp='$CPP $CPPFLAGS'
5803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5807echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5808# On Suns, sometimes $CPP names a directory.
5809if test -n "$CPP" && test -d "$CPP"; then
5810  CPP=
5811fi
5812if test -z "$CPP"; then
5813  if test "${ac_cv_prog_CPP+set}" = set; then
5814  echo $ECHO_N "(cached) $ECHO_C" >&6
5815else
5816      # Double quotes because CPP needs to be expanded
5817    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5818    do
5819      ac_preproc_ok=false
5820for ac_c_preproc_warn_flag in '' yes
5821do
5822  # Use a header file that comes with gcc, so configuring glibc
5823  # with a fresh cross-compiler works.
5824  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825  # <limits.h> exists even on freestanding compilers.
5826  # On the NeXT, cc -E runs the code through the compiler's parser,
5827  # not just through cpp. "Syntax error" is here to catch this case.
5828  cat >conftest.$ac_ext <<_ACEOF
5829/* confdefs.h.  */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h.  */
5834#ifdef __STDC__
5835# include <limits.h>
5836#else
5837# include <assert.h>
5838#endif
5839                     Syntax error
5840_ACEOF
5841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5842  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5843  ac_status=$?
5844  grep -v '^ *+' conftest.er1 >conftest.err
5845  rm -f conftest.er1
5846  cat conftest.err >&5
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); } >/dev/null; then
5849  if test -s conftest.err; then
5850    ac_cpp_err=$ac_c_preproc_warn_flag
5851    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5852  else
5853    ac_cpp_err=
5854  fi
5855else
5856  ac_cpp_err=yes
5857fi
5858if test -z "$ac_cpp_err"; then
5859  :
5860else
5861  echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864  # Broken: fails on valid input.
5865continue
5866fi
5867rm -f conftest.err conftest.$ac_ext
5868
5869  # OK, works on sane cases.  Now check whether non-existent headers
5870  # can be detected and how.
5871  cat >conftest.$ac_ext <<_ACEOF
5872/* confdefs.h.  */
5873_ACEOF
5874cat confdefs.h >>conftest.$ac_ext
5875cat >>conftest.$ac_ext <<_ACEOF
5876/* end confdefs.h.  */
5877#include <ac_nonexistent.h>
5878_ACEOF
5879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5880  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5881  ac_status=$?
5882  grep -v '^ *+' conftest.er1 >conftest.err
5883  rm -f conftest.er1
5884  cat conftest.err >&5
5885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886  (exit $ac_status); } >/dev/null; then
5887  if test -s conftest.err; then
5888    ac_cpp_err=$ac_c_preproc_warn_flag
5889    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5890  else
5891    ac_cpp_err=
5892  fi
5893else
5894  ac_cpp_err=yes
5895fi
5896if test -z "$ac_cpp_err"; then
5897  # Broken: success on invalid input.
5898continue
5899else
5900  echo "$as_me: failed program was:" >&5
5901sed 's/^/| /' conftest.$ac_ext >&5
5902
5903  # Passes both tests.
5904ac_preproc_ok=:
5905break
5906fi
5907rm -f conftest.err conftest.$ac_ext
5908
5909done
5910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5911rm -f conftest.err conftest.$ac_ext
5912if $ac_preproc_ok; then
5913  break
5914fi
5915
5916    done
5917    ac_cv_prog_CPP=$CPP
5918
5919fi
5920  CPP=$ac_cv_prog_CPP
5921else
5922  ac_cv_prog_CPP=$CPP
5923fi
5924echo "$as_me:$LINENO: result: $CPP" >&5
5925echo "${ECHO_T}$CPP" >&6
5926ac_preproc_ok=false
5927for ac_c_preproc_warn_flag in '' yes
5928do
5929  # Use a header file that comes with gcc, so configuring glibc
5930  # with a fresh cross-compiler works.
5931  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5932  # <limits.h> exists even on freestanding compilers.
5933  # On the NeXT, cc -E runs the code through the compiler's parser,
5934  # not just through cpp. "Syntax error" is here to catch this case.
5935  cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941#ifdef __STDC__
5942# include <limits.h>
5943#else
5944# include <assert.h>
5945#endif
5946                     Syntax error
5947_ACEOF
5948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } >/dev/null; then
5956  if test -s conftest.err; then
5957    ac_cpp_err=$ac_c_preproc_warn_flag
5958    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5959  else
5960    ac_cpp_err=
5961  fi
5962else
5963  ac_cpp_err=yes
5964fi
5965if test -z "$ac_cpp_err"; then
5966  :
5967else
5968  echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
5971  # Broken: fails on valid input.
5972continue
5973fi
5974rm -f conftest.err conftest.$ac_ext
5975
5976  # OK, works on sane cases.  Now check whether non-existent headers
5977  # can be detected and how.
5978  cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h.  */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h.  */
5984#include <ac_nonexistent.h>
5985_ACEOF
5986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5988  ac_status=$?
5989  grep -v '^ *+' conftest.er1 >conftest.err
5990  rm -f conftest.er1
5991  cat conftest.err >&5
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); } >/dev/null; then
5994  if test -s conftest.err; then
5995    ac_cpp_err=$ac_c_preproc_warn_flag
5996    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5997  else
5998    ac_cpp_err=
5999  fi
6000else
6001  ac_cpp_err=yes
6002fi
6003if test -z "$ac_cpp_err"; then
6004  # Broken: success on invalid input.
6005continue
6006else
6007  echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010  # Passes both tests.
6011ac_preproc_ok=:
6012break
6013fi
6014rm -f conftest.err conftest.$ac_ext
6015
6016done
6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6018rm -f conftest.err conftest.$ac_ext
6019if $ac_preproc_ok; then
6020  :
6021else
6022  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6023See \`config.log' for more details." >&5
6024echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6025See \`config.log' for more details." >&2;}
6026   { (exit 1); exit 1; }; }
6027fi
6028
6029ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035
6036echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6037echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6038if test "${ac_cv_header_stdc+set}" = set; then
6039  echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041  cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h.  */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h.  */
6047#include <stdlib.h>
6048#include <stdarg.h>
6049#include <string.h>
6050#include <float.h>
6051
6052int
6053main ()
6054{
6055
6056  ;
6057  return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
6061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062  (eval $ac_compile) 2>conftest.er1
6063  ac_status=$?
6064  grep -v '^ *+' conftest.er1 >conftest.err
6065  rm -f conftest.er1
6066  cat conftest.err >&5
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); } &&
6069         { ac_try='test -z "$ac_c_werror_flag"
6070                         || test ! -s conftest.err'
6071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072  (eval $ac_try) 2>&5
6073  ac_status=$?
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); }; } &&
6076         { ac_try='test -s conftest.$ac_objext'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; }; then
6082  ac_cv_header_stdc=yes
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087ac_cv_header_stdc=no
6088fi
6089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6090
6091if test $ac_cv_header_stdc = yes; then
6092  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6093  cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099#include <string.h>
6100
6101_ACEOF
6102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6103  $EGREP "memchr" >/dev/null 2>&1; then
6104  :
6105else
6106  ac_cv_header_stdc=no
6107fi
6108rm -f conftest*
6109
6110fi
6111
6112if test $ac_cv_header_stdc = yes; then
6113  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6114  cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h.  */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h.  */
6120#include <stdlib.h>
6121
6122_ACEOF
6123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6124  $EGREP "free" >/dev/null 2>&1; then
6125  :
6126else
6127  ac_cv_header_stdc=no
6128fi
6129rm -f conftest*
6130
6131fi
6132
6133if test $ac_cv_header_stdc = yes; then
6134  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6135  if test "$cross_compiling" = yes; then
6136  :
6137else
6138  cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h.  */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h.  */
6144#include <ctype.h>
6145#if ((' ' & 0x0FF) == 0x020)
6146# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6147# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6148#else
6149# define ISLOWER(c) \
6150                   (('a' <= (c) && (c) <= 'i') \
6151                     || ('j' <= (c) && (c) <= 'r') \
6152                     || ('s' <= (c) && (c) <= 'z'))
6153# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6154#endif
6155
6156#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6157int
6158main ()
6159{
6160  int i;
6161  for (i = 0; i < 256; i++)
6162    if (XOR (islower (i), ISLOWER (i))
6163        || toupper (i) != TOUPPER (i))
6164      exit(2);
6165  exit (0);
6166}
6167_ACEOF
6168rm -f conftest$ac_exeext
6169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170  (eval $ac_link) 2>&5
6171  ac_status=$?
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175  (eval $ac_try) 2>&5
6176  ac_status=$?
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); }; }; then
6179  :
6180else
6181  echo "$as_me: program exited with status $ac_status" >&5
6182echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185( exit $ac_status )
6186ac_cv_header_stdc=no
6187fi
6188rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6189fi
6190fi
6191fi
6192echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6193echo "${ECHO_T}$ac_cv_header_stdc" >&6
6194if test $ac_cv_header_stdc = yes; then
6195
6196cat >>confdefs.h <<\_ACEOF
6197#define STDC_HEADERS 1
6198_ACEOF
6199
6200fi
6201
6202# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6213                  inttypes.h stdint.h unistd.h
6214do
6215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216echo "$as_me:$LINENO: checking for $ac_header" >&5
6217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6218if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219  echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221  cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h.  */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h.  */
6227$ac_includes_default
6228
6229#include <$ac_header>
6230_ACEOF
6231rm -f conftest.$ac_objext
6232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233  (eval $ac_compile) 2>conftest.er1
6234  ac_status=$?
6235  grep -v '^ *+' conftest.er1 >conftest.err
6236  rm -f conftest.er1
6237  cat conftest.err >&5
6238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239  (exit $ac_status); } &&
6240         { ac_try='test -z "$ac_c_werror_flag"
6241                         || test ! -s conftest.err'
6242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243  (eval $ac_try) 2>&5
6244  ac_status=$?
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); }; } &&
6247         { ac_try='test -s conftest.$ac_objext'
6248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249  (eval $ac_try) 2>&5
6250  ac_status=$?
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); }; }; then
6253  eval "$as_ac_Header=yes"
6254else
6255  echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258eval "$as_ac_Header=no"
6259fi
6260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6261fi
6262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6264if test `eval echo '${'$as_ac_Header'}'` = yes; then
6265  cat >>confdefs.h <<_ACEOF
6266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267_ACEOF
6268
6269fi
6270
6271done
6272
6273
6274
6275for ac_header in dlfcn.h
6276do
6277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279  echo "$as_me:$LINENO: checking for $ac_header" >&5
6280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6281if eval "test \"\${$as_ac_Header+set}\" = set"; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283fi
6284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286else
6287  # Is the header compilable?
6288echo "$as_me:$LINENO: checking $ac_header usability" >&5
6289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6290cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h.  */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h.  */
6296$ac_includes_default
6297#include <$ac_header>
6298_ACEOF
6299rm -f conftest.$ac_objext
6300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301  (eval $ac_compile) 2>conftest.er1
6302  ac_status=$?
6303  grep -v '^ *+' conftest.er1 >conftest.err
6304  rm -f conftest.er1
6305  cat conftest.err >&5
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); } &&
6308         { ac_try='test -z "$ac_c_werror_flag"
6309                         || test ! -s conftest.err'
6310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311  (eval $ac_try) 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); }; } &&
6315         { ac_try='test -s conftest.$ac_objext'
6316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317  (eval $ac_try) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; }; then
6321  ac_header_compiler=yes
6322else
6323  echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326ac_header_compiler=no
6327fi
6328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330echo "${ECHO_T}$ac_header_compiler" >&6
6331
6332# Is the header present?
6333echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6335cat >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_header>
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  ac_header_preproc=yes
6362else
6363  echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366  ac_header_preproc=no
6367fi
6368rm -f conftest.err conftest.$ac_ext
6369echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370echo "${ECHO_T}$ac_header_preproc" >&6
6371
6372# So?  What about this header?
6373case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374  yes:no: )
6375    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379    ac_header_preproc=yes
6380    ;;
6381  no:yes:* )
6382    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6385echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6386    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6389echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6394    (
6395      cat <<\_ASBOX
6396## ---------------------------------------- ##
6397## Report this to coin-clp@list.coin-or.org ##
6398## ---------------------------------------- ##
6399_ASBOX
6400    ) |
6401      sed "s/^/$as_me: WARNING:     /" >&2
6402    ;;
6403esac
6404echo "$as_me:$LINENO: checking for $ac_header" >&5
6405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  eval "$as_ac_Header=\$ac_header_preproc"
6410fi
6411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413
6414fi
6415if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416  cat >>confdefs.h <<_ACEOF
6417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418_ACEOF
6419
6420fi
6421
6422done
6423
6424
6425
6426if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6427    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6428    (test "X$CXX" != "Xg++"))) ; then
6429  ac_ext=cc
6430ac_cpp='$CXXCPP $CPPFLAGS'
6431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6434echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6435echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6436if test -z "$CXXCPP"; then
6437  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6438  echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440      # Double quotes because CXXCPP needs to be expanded
6441    for CXXCPP in "$CXX -E" "/lib/cpp"
6442    do
6443      ac_preproc_ok=false
6444for ac_cxx_preproc_warn_flag in '' yes
6445do
6446  # Use a header file that comes with gcc, so configuring glibc
6447  # with a fresh cross-compiler works.
6448  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6449  # <limits.h> exists even on freestanding compilers.
6450  # On the NeXT, cc -E runs the code through the compiler's parser,
6451  # not just through cpp. "Syntax error" is here to catch this case.
6452  cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h.  */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h.  */
6458#ifdef __STDC__
6459# include <limits.h>
6460#else
6461# include <assert.h>
6462#endif
6463                     Syntax error
6464_ACEOF
6465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6466  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6467  ac_status=$?
6468  grep -v '^ *+' conftest.er1 >conftest.err
6469  rm -f conftest.er1
6470  cat conftest.err >&5
6471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472  (exit $ac_status); } >/dev/null; then
6473  if test -s conftest.err; then
6474    ac_cpp_err=$ac_cxx_preproc_warn_flag
6475    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6476  else
6477    ac_cpp_err=
6478  fi
6479else
6480  ac_cpp_err=yes
6481fi
6482if test -z "$ac_cpp_err"; then
6483  :
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488  # Broken: fails on valid input.
6489continue
6490fi
6491rm -f conftest.err conftest.$ac_ext
6492
6493  # OK, works on sane cases.  Now check whether non-existent headers
6494  # can be detected and how.
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 <ac_nonexistent.h>
6502_ACEOF
6503if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6504  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6505  ac_status=$?
6506  grep -v '^ *+' conftest.er1 >conftest.err
6507  rm -f conftest.er1
6508  cat conftest.err >&5
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); } >/dev/null; then
6511  if test -s conftest.err; then
6512    ac_cpp_err=$ac_cxx_preproc_warn_flag
6513    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6514  else
6515    ac_cpp_err=
6516  fi
6517else
6518  ac_cpp_err=yes
6519fi
6520if test -z "$ac_cpp_err"; then
6521  # Broken: success on invalid input.
6522continue
6523else
6524  echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527  # Passes both tests.
6528ac_preproc_ok=:
6529break
6530fi
6531rm -f conftest.err conftest.$ac_ext
6532
6533done
6534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6535rm -f conftest.err conftest.$ac_ext
6536if $ac_preproc_ok; then
6537  break
6538fi
6539
6540    done
6541    ac_cv_prog_CXXCPP=$CXXCPP
6542
6543fi
6544  CXXCPP=$ac_cv_prog_CXXCPP
6545else
6546  ac_cv_prog_CXXCPP=$CXXCPP
6547fi
6548echo "$as_me:$LINENO: result: $CXXCPP" >&5
6549echo "${ECHO_T}$CXXCPP" >&6
6550ac_preproc_ok=false
6551for ac_cxx_preproc_warn_flag in '' yes
6552do
6553  # Use a header file that comes with gcc, so configuring glibc
6554  # with a fresh cross-compiler works.
6555  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6556  # <limits.h> exists even on freestanding compilers.
6557  # On the NeXT, cc -E runs the code through the compiler's parser,
6558  # not just through cpp. "Syntax error" is here to catch this case.
6559  cat >conftest.$ac_ext <<_ACEOF
6560/* confdefs.h.  */
6561_ACEOF
6562cat confdefs.h >>conftest.$ac_ext
6563cat >>conftest.$ac_ext <<_ACEOF
6564/* end confdefs.h.  */
6565#ifdef __STDC__
6566# include <limits.h>
6567#else
6568# include <assert.h>
6569#endif
6570                     Syntax error
6571_ACEOF
6572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6573  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6574  ac_status=$?
6575  grep -v '^ *+' conftest.er1 >conftest.err
6576  rm -f conftest.er1
6577  cat conftest.err >&5
6578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579  (exit $ac_status); } >/dev/null; then
6580  if test -s conftest.err; then
6581    ac_cpp_err=$ac_cxx_preproc_warn_flag
6582    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6583  else
6584    ac_cpp_err=
6585  fi
6586else
6587  ac_cpp_err=yes
6588fi
6589if test -z "$ac_cpp_err"; then
6590  :
6591else
6592  echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595  # Broken: fails on valid input.
6596continue
6597fi
6598rm -f conftest.err conftest.$ac_ext
6599
6600  # OK, works on sane cases.  Now check whether non-existent headers
6601  # can be detected and how.
6602  cat >conftest.$ac_ext <<_ACEOF
6603/* confdefs.h.  */
6604_ACEOF
6605cat confdefs.h >>conftest.$ac_ext
6606cat >>conftest.$ac_ext <<_ACEOF
6607/* end confdefs.h.  */
6608#include <ac_nonexistent.h>
6609_ACEOF
6610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612  ac_status=$?
6613  grep -v '^ *+' conftest.er1 >conftest.err
6614  rm -f conftest.er1
6615  cat conftest.err >&5
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); } >/dev/null; then
6618  if test -s conftest.err; then
6619    ac_cpp_err=$ac_cxx_preproc_warn_flag
6620    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6621  else
6622    ac_cpp_err=
6623  fi
6624else
6625  ac_cpp_err=yes
6626fi
6627if test -z "$ac_cpp_err"; then
6628  # Broken: success on invalid input.
6629continue
6630else
6631  echo "$as_me: failed program was:" >&5
6632sed 's/^/| /' conftest.$ac_ext >&5
6633
6634  # Passes both tests.
6635ac_preproc_ok=:
6636break
6637fi
6638rm -f conftest.err conftest.$ac_ext
6639
6640done
6641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6642rm -f conftest.err conftest.$ac_ext
6643if $ac_preproc_ok; then
6644  :
6645else
6646  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6647See \`config.log' for more details." >&5
6648echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6649See \`config.log' for more details." >&2;}
6650   { (exit 1); exit 1; }; }
6651fi
6652
6653ac_ext=cc
6654ac_cpp='$CXXCPP $CPPFLAGS'
6655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6658
6659fi
6660
6661ac_ext=f
6662ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6663ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6664ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6665if test -n "$ac_tool_prefix"; then
6666  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6667  do
6668    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6670echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6672if test "${ac_cv_prog_F77+set}" = set; then
6673  echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675  if test -n "$F77"; then
6676  ac_cv_prog_F77="$F77" # Let the user override the test.
6677else
6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681  IFS=$as_save_IFS
6682  test -z "$as_dir" && as_dir=.
6683  for ac_exec_ext in '' $ac_executable_extensions; do
6684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687    break 2
6688  fi
6689done
6690done
6691
6692fi
6693fi
6694F77=$ac_cv_prog_F77
6695if test -n "$F77"; then
6696  echo "$as_me:$LINENO: result: $F77" >&5
6697echo "${ECHO_T}$F77" >&6
6698else
6699  echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
6701fi
6702
6703    test -n "$F77" && break
6704  done
6705fi
6706if test -z "$F77"; then
6707  ac_ct_F77=$F77
6708  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6709do
6710  # Extract the first word of "$ac_prog", so it can be a program name with args.
6711set dummy $ac_prog; ac_word=$2
6712echo "$as_me:$LINENO: checking for $ac_word" >&5
6713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6714if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6715  echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717  if test -n "$ac_ct_F77"; then
6718  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723  IFS=$as_save_IFS
6724  test -z "$as_dir" && as_dir=.
6725  for ac_exec_ext in '' $ac_executable_extensions; do
6726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727    ac_cv_prog_ac_ct_F77="$ac_prog"
6728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729    break 2
6730  fi
6731done
6732done
6733
6734fi
6735fi
6736ac_ct_F77=$ac_cv_prog_ac_ct_F77
6737if test -n "$ac_ct_F77"; then
6738  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6739echo "${ECHO_T}$ac_ct_F77" >&6
6740else
6741  echo "$as_me:$LINENO: result: no" >&5
6742echo "${ECHO_T}no" >&6
6743fi
6744
6745  test -n "$ac_ct_F77" && break
6746done
6747
6748  F77=$ac_ct_F77
6749fi
6750
6751
6752# Provide some information about the compiler.
6753echo "$as_me:6753:" \
6754     "checking for Fortran 77 compiler version" >&5
6755ac_compiler=`set X $ac_compile; echo $2`
6756{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6757  (eval $ac_compiler --version </dev/null >&5) 2>&5
6758  ac_status=$?
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); }
6761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6762  (eval $ac_compiler -v </dev/null >&5) 2>&5
6763  ac_status=$?
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); }
6766{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6767  (eval $ac_compiler -V </dev/null >&5) 2>&5
6768  ac_status=$?
6769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770  (exit $ac_status); }
6771rm -f a.out
6772
6773# If we don't use `.F' as extension, the preprocessor is not run on the
6774# input file.  (Note that this only needs to work for GNU compilers.)
6775ac_save_ext=$ac_ext
6776ac_ext=F
6777echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6778echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6779if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6780  echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782  cat >conftest.$ac_ext <<_ACEOF
6783      program main
6784#ifndef __GNUC__
6785       choke me
6786#endif
6787
6788      end
6789_ACEOF
6790rm -f conftest.$ac_objext
6791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792  (eval $ac_compile) 2>conftest.er1
6793  ac_status=$?
6794  grep -v '^ *+' conftest.er1 >conftest.err
6795  rm -f conftest.er1
6796  cat conftest.err >&5
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); } &&
6799         { ac_try='test -z "$ac_f77_werror_flag"
6800                         || test ! -s conftest.err'
6801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802  (eval $ac_try) 2>&5
6803  ac_status=$?
6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805  (exit $ac_status); }; } &&
6806         { ac_try='test -s conftest.$ac_objext'
6807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808  (eval $ac_try) 2>&5
6809  ac_status=$?
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); }; }; then
6812  ac_compiler_gnu=yes
6813else
6814  echo "$as_me: failed program was:" >&5
6815sed 's/^/| /' conftest.$ac_ext >&5
6816
6817ac_compiler_gnu=no
6818fi
6819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6820ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6821
6822fi
6823echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6824echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6825ac_ext=$ac_save_ext
6826ac_test_FFLAGS=${FFLAGS+set}
6827ac_save_FFLAGS=$FFLAGS
6828FFLAGS=
6829echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6830echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6831if test "${ac_cv_prog_f77_g+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  FFLAGS=-g
6835cat >conftest.$ac_ext <<_ACEOF
6836      program main
6837
6838      end
6839_ACEOF
6840rm -f conftest.$ac_objext
6841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842  (eval $ac_compile) 2>conftest.er1
6843  ac_status=$?
6844  grep -v '^ *+' conftest.er1 >conftest.err
6845  rm -f conftest.er1
6846  cat conftest.err >&5
6847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848  (exit $ac_status); } &&
6849         { ac_try='test -z "$ac_f77_werror_flag"
6850                         || test ! -s conftest.err'
6851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852  (eval $ac_try) 2>&5
6853  ac_status=$?
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); }; } &&
6856         { ac_try='test -s conftest.$ac_objext'
6857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858  (eval $ac_try) 2>&5
6859  ac_status=$?
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); }; }; then
6862  ac_cv_prog_f77_g=yes
6863else
6864  echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
6866
6867ac_cv_prog_f77_g=no
6868fi
6869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6870
6871fi
6872echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6873echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6874if test "$ac_test_FFLAGS" = set; then
6875  FFLAGS=$ac_save_FFLAGS
6876elif test $ac_cv_prog_f77_g = yes; then
6877  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6878    FFLAGS="-g -O2"
6879  else
6880    FFLAGS="-g"
6881  fi
6882else
6883  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6884    FFLAGS="-O2"
6885  else
6886    FFLAGS=
6887  fi
6888fi
6889
6890G77=`test $ac_compiler_gnu = yes && echo yes`
6891ac_ext=c
6892ac_cpp='$CPP $CPPFLAGS'
6893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897
6898
6899# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6900
6901# find the maximum length of command line arguments
6902echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6903echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6904if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6905  echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907    i=0
6908  teststring="ABCD"
6909
6910  case $build_os in
6911  msdosdjgpp*)
6912    # On DJGPP, this test can blow up pretty badly due to problems in libc
6913    # (any single argument exceeding 2000 bytes causes a buffer overrun
6914    # during glob expansion).  Even if it were fixed, the result of this
6915    # check would be larger than it should be.
6916    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6917    ;;
6918
6919  gnu*)
6920    # Under GNU Hurd, this test is not required because there is
6921    # no limit to the length of command line arguments.
6922    # Libtool will interpret -1 as no limit whatsoever
6923    lt_cv_sys_max_cmd_len=-1;
6924    ;;
6925
6926  cygwin* | mingw*)
6927    # On Win9x/ME, this test blows up -- it succeeds, but takes
6928    # about 5 minutes as the teststring grows exponentially.
6929    # Worse, since 9x/ME are not pre-emptively multitasking,
6930    # you end up with a "frozen" computer, even though with patience
6931    # the test eventually succeeds (with a max line length of 256k).
6932    # Instead, let's just punt: use the minimum linelength reported by
6933    # all of the supported platforms: 8192 (on NT/2K/XP).
6934    lt_cv_sys_max_cmd_len=8192;
6935    ;;
6936
6937  amigaos*)
6938    # On AmigaOS with pdksh, this test takes hours, literally.
6939    # So we just punt and use a minimum line length of 8192.
6940    lt_cv_sys_max_cmd_len=8192;
6941    ;;
6942
6943  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6944    # This has been around since 386BSD, at least.  Likely further.
6945    if test -x /sbin/sysctl; then
6946      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6947    elif test -x /usr/sbin/sysctl; then
6948      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6949    else
6950      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6951    fi
6952    # And add a safety zone
6953    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6954    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6955    ;;
6956
6957  interix*)
6958    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6959    lt_cv_sys_max_cmd_len=196608
6960    ;;
6961
6962  osf*)
6963    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6964    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6965    # nice to cause kernel panics so lets avoid the loop below.
6966    # First set a reasonable default.
6967    lt_cv_sys_max_cmd_len=16384
6968    #
6969    if test -x /sbin/sysconfig; then
6970      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6971        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6972      esac
6973    fi
6974    ;;
6975  sco3.2v5*)
6976    lt_cv_sys_max_cmd_len=102400
6977    ;;
6978  sysv5* | sco5v6* | sysv4.2uw2*)
6979    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6980    if test -n "$kargmax"; then
6981      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6982    else
6983      lt_cv_sys_max_cmd_len=32768
6984    fi
6985    ;;
6986  *)
6987    # If test is not a shell built-in, we'll probably end up computing a
6988    # maximum length that is only half of the actual maximum length, but
6989    # we can't tell.
6990    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6991    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6992               = "XX$teststring") >/dev/null 2>&1 &&
6993            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6994            lt_cv_sys_max_cmd_len=$new_result &&
6995            test $i != 17 # 1/2 MB should be enough
6996    do
6997      i=`expr $i + 1`
6998      teststring=$teststring$teststring
6999    done
7000    teststring=
7001    # Add a significant safety factor because C++ compilers can tack on massive
7002    # amounts of additional arguments before passing them to the linker.
7003    # It appears as though 1/2 is a usable value.
7004    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7005    ;;
7006  esac
7007
7008fi
7009
7010if test -n $lt_cv_sys_max_cmd_len ; then
7011  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7012echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7013else
7014  echo "$as_me:$LINENO: result: none" >&5
7015echo "${ECHO_T}none" >&6
7016fi
7017
7018
7019
7020
7021# Check for command to grab the raw symbol name followed by C symbol from nm.
7022echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7023echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7024if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7025  echo $ECHO_N "(cached) $ECHO_C" >&6
7026else
7027
7028# These are sane defaults that work on at least a few old systems.
7029# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7030
7031# Character class describing NM global symbol codes.
7032symcode='[BCDEGRST]'
7033
7034# Regexp to match symbols that can be accessed directly from C.
7035sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7036
7037# Transform an extracted symbol line into a proper C declaration
7038lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7039
7040# Transform an extracted symbol line into symbol name and symbol address
7041lt_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'"
7042
7043# Define system-specific variables.
7044case $host_os in
7045aix*)
7046  symcode='[BCDT]'
7047  ;;
7048cygwin* | mingw* | pw32*)
7049  symcode='[ABCDGISTW]'
7050  ;;
7051hpux*) # Its linker distinguishes data from code symbols
7052  if test "$host_cpu" = ia64; then
7053    symcode='[ABCDEGRST]'
7054  fi
7055  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7056  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'"
7057  ;;
7058linux*)
7059  if test "$host_cpu" = ia64; then
7060    symcode='[ABCDGIRSTW]'
7061    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7062    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'"
7063  fi
7064  ;;
7065irix* | nonstopux*)
7066  symcode='[BCDEGRST]'
7067  ;;
7068osf*)
7069  symcode='[BCDEGQRST]'
7070  ;;
7071solaris*)
7072  symcode='[BDRT]'
7073  ;;
7074sco3.2v5*)
7075  symcode='[DT]'
7076  ;;
7077sysv4.2uw2*)
7078  symcode='[DT]'
7079  ;;
7080sysv5* | sco5v6* | unixware* | OpenUNIX*)
7081  symcode='[ABDT]'
7082  ;;
7083sysv4)
7084  symcode='[DFNSTU]'
7085  ;;
7086esac
7087
7088# Handle CRLF in mingw tool chain
7089opt_cr=
7090case $build_os in
7091mingw*)
7092  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7093  ;;
7094esac
7095
7096# If we're using GNU nm, then use its standard symbol codes.
7097case `$NM -V 2>&1` in
7098*GNU* | *'with BFD'*)
7099  symcode='[ABCDGIRSTW]' ;;
7100esac
7101
7102# Try without a prefix undercore, then with it.
7103for ac_symprfx in "" "_"; do
7104
7105  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7106  symxfrm="\\1 $ac_symprfx\\2 \\2"
7107
7108  # Write the raw and C identifiers.
7109  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7110
7111  # Check to see that the pipe works correctly.
7112  pipe_works=no
7113
7114  rm -f conftest*
7115  cat > conftest.$ac_ext <<EOF
7116#ifdef __cplusplus
7117extern "C" {
7118#endif
7119char nm_test_var;
7120void nm_test_func(){}
7121#ifdef __cplusplus
7122}
7123#endif
7124int main(){nm_test_var='a';nm_test_func();return(0);}
7125EOF
7126
7127  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7128  (eval $ac_compile) 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }; then
7132    # Now try to grab the symbols.
7133    nlist=conftest.nm
7134    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7135  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); } && test -s "$nlist"; then
7139      # Try sorting and uniquifying the output.
7140      if sort "$nlist" | uniq > "$nlist"T; then
7141        mv -f "$nlist"T "$nlist"
7142      else
7143        rm -f "$nlist"T
7144      fi
7145
7146      # Make sure that we snagged all the symbols we need.
7147      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7148        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7149          cat <<EOF > conftest.$ac_ext
7150#ifdef __cplusplus
7151extern "C" {
7152#endif
7153
7154EOF
7155          # Now generate the symbol file.
7156          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7157
7158          cat <<EOF >> conftest.$ac_ext
7159#if defined (__STDC__) && __STDC__
7160# define lt_ptr_t void *
7161#else
7162# define lt_ptr_t char *
7163# define const
7164#endif
7165
7166/* The mapping between symbol names and symbols. */
7167const struct {
7168  const char *name;
7169  lt_ptr_t address;
7170}
7171lt_preloaded_symbols[] =
7172{
7173EOF
7174          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7175          cat <<\EOF >> conftest.$ac_ext
7176  {0, (lt_ptr_t) 0}
7177};
7178
7179#ifdef __cplusplus
7180}
7181#endif
7182EOF
7183          # Now try linking the two files.
7184          mv conftest.$ac_objext conftstm.$ac_objext
7185          lt_save_LIBS="$LIBS"
7186          lt_save_CFLAGS="$CFLAGS"
7187          LIBS="conftstm.$ac_objext"
7188          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7189          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7190  (eval $ac_link) 2>&5
7191  ac_status=$?
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7194            pipe_works=yes
7195          fi
7196          LIBS="$lt_save_LIBS"
7197          CFLAGS="$lt_save_CFLAGS"
7198        else
7199          echo "cannot find nm_test_func in $nlist" >&5
7200        fi
7201      else
7202        echo "cannot find nm_test_var in $nlist" >&5
7203      fi
7204    else
7205      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7206    fi
7207  else
7208    echo "$progname: failed program was:" >&5
7209    cat conftest.$ac_ext >&5
7210  fi
7211  rm -f conftest* conftst*
7212
7213  # Do not use the global_symbol_pipe unless it works.
7214  if test "$pipe_works" = yes; then
7215    break
7216  else
7217    lt_cv_sys_global_symbol_pipe=
7218  fi
7219done
7220
7221fi
7222
7223if test -z "$lt_cv_sys_global_symbol_pipe"; then
7224  lt_cv_sys_global_symbol_to_cdecl=
7225fi
7226if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7227  echo "$as_me:$LINENO: result: failed" >&5
7228echo "${ECHO_T}failed" >&6
7229else
7230  echo "$as_me:$LINENO: result: ok" >&5
7231echo "${ECHO_T}ok" >&6
7232fi
7233
7234echo "$as_me:$LINENO: checking for objdir" >&5
7235echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7236if test "${lt_cv_objdir+set}" = set; then
7237  echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239  rm -f .libs 2>/dev/null
7240mkdir .libs 2>/dev/null
7241if test -d .libs; then
7242  lt_cv_objdir=.libs
7243else
7244  # MS-DOS does not allow filenames that begin with a dot.
7245  lt_cv_objdir=_libs
7246fi
7247rmdir .libs 2>/dev/null
7248fi
7249echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7250echo "${ECHO_T}$lt_cv_objdir" >&6
7251objdir=$lt_cv_objdir
7252
7253
7254
7255
7256
7257case $host_os in
7258aix3*)
7259  # AIX sometimes has problems with the GCC collect2 program.  For some
7260  # reason, if we set the COLLECT_NAMES environment variable, the problems
7261  # vanish in a puff of smoke.
7262  if test "X${COLLECT_NAMES+set}" != Xset; then
7263    COLLECT_NAMES=
7264    export COLLECT_NAMES
7265  fi
7266  ;;
7267esac
7268
7269# Sed substitution that helps us do robust quoting.  It backslashifies
7270# metacharacters that are still active within double-quoted strings.
7271Xsed='sed -e 1s/^X//'
7272sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7273
7274# Same as above, but do not quote variable references.
7275double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7276
7277# Sed substitution to delay expansion of an escaped shell variable in a
7278# double_quote_subst'ed string.
7279delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7280
7281# Sed substitution to avoid accidental globbing in evaled expressions
7282no_glob_subst='s/\*/\\\*/g'
7283
7284# Constants:
7285rm="rm -f"
7286
7287# Global variables:
7288default_ofile=libtool
7289can_build_shared=yes
7290
7291# All known linkers require a `.a' archive for static linking (except MSVC,
7292# which needs '.lib').
7293libext=a
7294ltmain="$ac_aux_dir/ltmain.sh"
7295ofile="$default_ofile"
7296with_gnu_ld="$lt_cv_prog_gnu_ld"
7297
7298if test -n "$ac_tool_prefix"; then
7299  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7300set dummy ${ac_tool_prefix}ar; ac_word=$2
7301echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7303if test "${ac_cv_prog_AR+set}" = set; then
7304  echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306  if test -n "$AR"; then
7307  ac_cv_prog_AR="$AR" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  test -z "$as_dir" && as_dir=.
7314  for ac_exec_ext in '' $ac_executable_extensions; do
7315  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316    ac_cv_prog_AR="${ac_tool_prefix}ar"
7317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318    break 2
7319  fi
7320done
7321done
7322
7323fi
7324fi
7325AR=$ac_cv_prog_AR
7326if test -n "$AR"; then
7327  echo "$as_me:$LINENO: result: $AR" >&5
7328echo "${ECHO_T}$AR" >&6
7329else
7330  echo "$as_me:$LINENO: result: no" >&5
7331echo "${ECHO_T}no" >&6
7332fi
7333
7334fi
7335if test -z "$ac_cv_prog_AR"; then
7336  ac_ct_AR=$AR
7337  # Extract the first word of "ar", so it can be a program name with args.
7338set dummy ar; ac_word=$2
7339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344  if test -n "$ac_ct_AR"; then
7345  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7346else
7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348for as_dir in $PATH
7349do
7350  IFS=$as_save_IFS
7351  test -z "$as_dir" && as_dir=.
7352  for ac_exec_ext in '' $ac_executable_extensions; do
7353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354    ac_cv_prog_ac_ct_AR="ar"
7355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356    break 2
7357  fi
7358done
7359done
7360
7361  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7362fi
7363fi
7364ac_ct_AR=$ac_cv_prog_ac_ct_AR
7365if test -n "$ac_ct_AR"; then
7366  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7367echo "${ECHO_T}$ac_ct_AR" >&6
7368else
7369  echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6
7371fi
7372
7373  AR=$ac_ct_AR
7374else
7375  AR="$ac_cv_prog_AR"
7376fi
7377
7378if test -n "$ac_tool_prefix"; then
7379  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7380set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383if test "${ac_cv_prog_RANLIB+set}" = set; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386  if test -n "$RANLIB"; then
7387  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392  IFS=$as_save_IFS
7393  test -z "$as_dir" && as_dir=.
7394  for ac_exec_ext in '' $ac_executable_extensions; do
7395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398    break 2
7399  fi
7400done
7401done
7402
7403fi
7404fi
7405RANLIB=$ac_cv_prog_RANLIB
7406if test -n "$RANLIB"; then
7407  echo "$as_me:$LINENO: result: $RANLIB" >&5
7408echo "${ECHO_T}$RANLIB" >&6
7409else
7410  echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412fi
7413
7414fi
7415if test -z "$ac_cv_prog_RANLIB"; then
7416  ac_ct_RANLIB=$RANLIB
7417  # Extract the first word of "ranlib", so it can be a program name with args.
7418set dummy ranlib; ac_word=$2
7419echo "$as_me:$LINENO: checking for $ac_word" >&5
7420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7422  echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424  if test -n "$ac_ct_RANLIB"; then
7425  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7426else
7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430  IFS=$as_save_IFS
7431  test -z "$as_dir" && as_dir=.
7432  for ac_exec_ext in '' $ac_executable_extensions; do
7433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434    ac_cv_prog_ac_ct_RANLIB="ranlib"
7435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7436    break 2
7437  fi
7438done
7439done
7440
7441  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7442fi
7443fi
7444ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7445if test -n "$ac_ct_RANLIB"; then
7446  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7447echo "${ECHO_T}$ac_ct_RANLIB" >&6
7448else
7449  echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
7451fi
7452
7453  RANLIB=$ac_ct_RANLIB
7454else
7455  RANLIB="$ac_cv_prog_RANLIB"
7456fi
7457
7458if test -n "$ac_tool_prefix"; then
7459  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7460set dummy ${ac_tool_prefix}strip; ac_word=$2
7461echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463if test "${ac_cv_prog_STRIP+set}" = set; then
7464  echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466  if test -n "$STRIP"; then
7467  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472  IFS=$as_save_IFS
7473  test -z "$as_dir" && as_dir=.
7474  for ac_exec_ext in '' $ac_executable_extensions; do
7475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478    break 2
7479  fi
7480done
7481done
7482
7483fi
7484fi
7485STRIP=$ac_cv_prog_STRIP
7486if test -n "$STRIP"; then
7487  echo "$as_me:$LINENO: result: $STRIP" >&5
7488echo "${ECHO_T}$STRIP" >&6
7489else
7490  echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
7492fi
7493
7494fi
7495if test -z "$ac_cv_prog_STRIP"; then
7496  ac_ct_STRIP=$STRIP
7497  # Extract the first word of "strip", so it can be a program name with args.
7498set dummy strip; ac_word=$2
7499echo "$as_me:$LINENO: checking for $ac_word" >&5
7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7501if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7502  echo $ECHO_N "(cached) $ECHO_C" >&6
7503else
7504  if test -n "$ac_ct_STRIP"; then
7505  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7506else
7507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510  IFS=$as_save_IFS
7511  test -z "$as_dir" && as_dir=.
7512  for ac_exec_ext in '' $ac_executable_extensions; do
7513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514    ac_cv_prog_ac_ct_STRIP="strip"
7515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7516    break 2
7517  fi
7518done
7519done
7520
7521  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7522fi
7523fi
7524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7525if test -n "$ac_ct_STRIP"; then
7526  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7527echo "${ECHO_T}$ac_ct_STRIP" >&6
7528else
7529  echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6
7531fi
7532
7533  STRIP=$ac_ct_STRIP
7534else
7535  STRIP="$ac_cv_prog_STRIP"
7536fi
7537
7538
7539old_CC="$CC"
7540old_CFLAGS="$CFLAGS"
7541
7542# Set sane defaults for various variables
7543test -z "$AR" && AR=ar
7544test -z "$AR_FLAGS" && AR_FLAGS=cru
7545test -z "$AS" && AS=as
7546test -z "$CC" && CC=cc
7547test -z "$LTCC" && LTCC=$CC
7548test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7549test -z "$DLLTOOL" && DLLTOOL=dlltool
7550test -z "$LD" && LD=ld
7551test -z "$LN_S" && LN_S="ln -s"
7552test -z "$MAGIC_CMD" && MAGIC_CMD=file
7553test -z "$NM" && NM=nm
7554test -z "$SED" && SED=sed
7555test -z "$OBJDUMP" && OBJDUMP=objdump
7556test -z "$RANLIB" && RANLIB=:
7557test -z "$STRIP" && STRIP=:
7558test -z "$ac_objext" && ac_objext=o
7559
7560# Determine commands to create old-style static archives.
7561old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7562old_postinstall_cmds='chmod 644 $oldlib'
7563old_postuninstall_cmds=
7564
7565if test -n "$RANLIB"; then
7566  case $host_os in
7567  openbsd*)
7568    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7569    ;;
7570  *)
7571    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7572    ;;
7573  esac
7574  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7575fi
7576
7577for cc_temp in $compiler""; do
7578  case $cc_temp in
7579    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7580    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7581    \-*) ;;
7582    *) break;;
7583  esac
7584done
7585cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7586
7587
7588# Only perform the check for file, if the check method requires it
7589case $deplibs_check_method in
7590file_magic*)
7591  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7592    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7593echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7594if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7595  echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597  case $MAGIC_CMD in
7598[\\/*] |  ?:[\\/]*)
7599  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7600  ;;
7601*)
7602  lt_save_MAGIC_CMD="$MAGIC_CMD"
7603  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7604  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7605  for ac_dir in $ac_dummy; do
7606    IFS="$lt_save_ifs"
7607    test -z "$ac_dir" && ac_dir=.
7608    if test -f $ac_dir/${ac_tool_prefix}file; then
7609      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7610      if test -n "$file_magic_test_file"; then
7611        case $deplibs_check_method in
7612        "file_magic "*)
7613          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7614          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7615          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7616            $EGREP "$file_magic_regex" > /dev/null; then
7617            :
7618          else
7619            cat <<EOF 1>&2
7620
7621*** Warning: the command libtool uses to detect shared libraries,
7622*** $file_magic_cmd, produces output that libtool cannot recognize.
7623*** The result is that libtool may fail to recognize shared libraries
7624*** as such.  This will affect the creation of libtool libraries that
7625*** depend on shared libraries, but programs linked with such libtool
7626*** libraries will work regardless of this problem.  Nevertheless, you
7627*** may want to report the problem to your system manager and/or to
7628*** bug-libtool@gnu.org
7629
7630EOF
7631          fi ;;
7632        esac
7633      fi
7634      break
7635    fi
7636  done
7637  IFS="$lt_save_ifs"
7638  MAGIC_CMD="$lt_save_MAGIC_CMD"
7639  ;;
7640esac
7641fi
7642
7643MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7644if test -n "$MAGIC_CMD"; then
7645  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7646echo "${ECHO_T}$MAGIC_CMD" >&6
7647else
7648  echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6
7650fi
7651
7652if test -z "$lt_cv_path_MAGIC_CMD"; then
7653  if test -n "$ac_tool_prefix"; then
7654    echo "$as_me:$LINENO: checking for file" >&5
7655echo $ECHO_N "checking for file... $ECHO_C" >&6
7656if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7657  echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659  case $MAGIC_CMD in
7660[\\/*] |  ?:[\\/]*)
7661  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7662  ;;
7663*)
7664  lt_save_MAGIC_CMD="$MAGIC_CMD"
7665  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7666  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7667  for ac_dir in $ac_dummy; do
7668    IFS="$lt_save_ifs"
7669    test -z "$ac_dir" && ac_dir=.
7670    if test -f $ac_dir/file; then
7671      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7672      if test -n "$file_magic_test_file"; then
7673        case $deplibs_check_method in
7674        "file_magic "*)
7675          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7676          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7678            $EGREP "$file_magic_regex" > /dev/null; then
7679            :
7680          else
7681            cat <<EOF 1>&2
7682
7683*** Warning: the command libtool uses to detect shared libraries,
7684*** $file_magic_cmd, produces output that libtool cannot recognize.
7685*** The result is that libtool may fail to recognize shared libraries
7686*** as such.  This will affect the creation of libtool libraries that
7687*** depend on shared libraries, but programs linked with such libtool
7688*** libraries will work regardless of this problem.  Nevertheless, you
7689*** may want to report the problem to your system manager and/or to
7690*** bug-libtool@gnu.org
7691
7692EOF
7693          fi ;;
7694        esac
7695      fi
7696      break
7697    fi
7698  done
7699  IFS="$lt_save_ifs"
7700  MAGIC_CMD="$lt_save_MAGIC_CMD"
7701  ;;
7702esac
7703fi
7704
7705MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7706if test -n "$MAGIC_CMD"; then
7707  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7708echo "${ECHO_T}$MAGIC_CMD" >&6
7709else
7710  echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712fi
7713
7714  else
7715    MAGIC_CMD=:
7716  fi
7717fi
7718
7719  fi
7720  ;;
7721esac
7722
7723enable_dlopen=no
7724enable_win32_dll=no
7725
7726# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7727if test "${enable_libtool_lock+set}" = set; then
7728  enableval="$enable_libtool_lock"
7729
7730fi;
7731test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7732
7733
7734# Check whether --with-pic or --without-pic was given.
7735if test "${with_pic+set}" = set; then
7736  withval="$with_pic"
7737  pic_mode="$withval"
7738else
7739  pic_mode=default
7740fi;
7741test -z "$pic_mode" && pic_mode=default
7742
7743# Use C for the default configuration in the libtool script
7744tagname=
7745lt_save_CC="$CC"
7746ac_ext=c
7747ac_cpp='$CPP $CPPFLAGS'
7748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7750ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751
7752
7753# Source file extension for C test sources.
7754ac_ext=c
7755
7756# Object file extension for compiled C test sources.
7757objext=o
7758objext=$objext
7759
7760# Code to be used in simple compile tests
7761lt_simple_compile_test_code="int some_variable = 0;\n"
7762
7763# Code to be used in simple link tests
7764lt_simple_link_test_code='int main(){return(0);}\n'
7765
7766
7767# If no C compiler was specified, use CC.
7768LTCC=${LTCC-"$CC"}
7769
7770# If no C compiler flags were specified, use CFLAGS.
7771LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7772
7773# Allow CC to be a program name with arguments.
7774compiler=$CC
7775
7776
7777# save warnings/boilerplate of simple test code
7778ac_outfile=conftest.$ac_objext
7779printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7780eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7781_lt_compiler_boilerplate=`cat conftest.err`
7782$rm conftest*
7783
7784ac_outfile=conftest.$ac_objext
7785printf "$lt_simple_link_test_code" >conftest.$ac_ext
7786eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7787_lt_linker_boilerplate=`cat conftest.err`
7788$rm conftest*
7789
7790
7791## CAVEAT EMPTOR:
7792## There is no encapsulation within the following macros, do not change
7793## the running order or otherwise move them around unless you know exactly
7794## what you are doing...
7795
7796lt_prog_compiler_no_builtin_flag=
7797
7798if test "$GCC" = yes; then
7799  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7800
7801
7802echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7803echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7804if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  lt_cv_prog_compiler_rtti_exceptions=no
7808  ac_outfile=conftest.$ac_objext
7809   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7810   lt_compiler_flag="-fno-rtti -fno-exceptions"
7811   # Insert the option either (1) after the last *FLAGS variable, or
7812   # (2) before a word containing "conftest.", or (3) at the end.
7813   # Note that $ac_compile itself does not contain backslashes and begins
7814   # with a dollar sign (not a hyphen), so the echo should work correctly.
7815   # The option is referenced via a variable to avoid confusing sed.
7816   lt_compile=`echo "$ac_compile" | $SED \
7817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7819   -e 's:$: $lt_compiler_flag:'`
7820   (eval echo "\"\$as_me:7820: $lt_compile\"" >&5)
7821   (eval "$lt_compile" 2>conftest.err)
7822   ac_status=$?
7823   cat conftest.err >&5
7824   echo "$as_me:7824: \$? = $ac_status" >&5
7825   if (exit $ac_status) && test -s "$ac_outfile"; then
7826     # The compiler can only warn and ignore the option if not recognized
7827     # So say no if there are warnings other than the usual output.
7828     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7831       lt_cv_prog_compiler_rtti_exceptions=yes
7832     fi
7833   fi
7834   $rm conftest*
7835
7836fi
7837echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7838echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7839
7840if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7841    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7842else
7843    :
7844fi
7845
7846fi
7847
7848lt_prog_compiler_wl=
7849lt_prog_compiler_pic=
7850lt_prog_compiler_static=
7851
7852echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7853echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7854
7855  if test "$GCC" = yes; then
7856    lt_prog_compiler_wl='-Wl,'
7857    lt_prog_compiler_static='-static'
7858
7859    case $host_os in
7860      aix*)
7861      # All AIX code is PIC.
7862      if test "$host_cpu" = ia64; then
7863        # AIX 5 now supports IA64 processor
7864        lt_prog_compiler_static='-Bstatic'
7865      fi
7866      ;;
7867
7868    amigaos*)
7869      # FIXME: we need at least 68020 code to build shared libraries, but
7870      # adding the `-m68020' flag to GCC prevents building anything better,
7871      # like `-m68040'.
7872      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7873      ;;
7874
7875    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7876      # PIC is the default for these OSes.
7877      ;;
7878
7879    mingw* | pw32* | os2*)
7880      # This hack is so that the source file can tell whether it is being
7881      # built for inclusion in a dll (and should export symbols for example).
7882      lt_prog_compiler_pic='-DDLL_EXPORT'
7883      ;;
7884
7885    darwin* | rhapsody*)
7886      # PIC is the default on this platform
7887      # Common symbols not allowed in MH_DYLIB files
7888      lt_prog_compiler_pic='-fno-common'
7889      ;;
7890
7891    interix3*)
7892      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7893      # Instead, we relocate shared libraries at runtime.
7894      ;;
7895
7896    msdosdjgpp*)
7897      # Just because we use GCC doesn't mean we suddenly get shared libraries
7898      # on systems that don't support them.
7899      lt_prog_compiler_can_build_shared=no
7900      enable_shared=no
7901      ;;
7902
7903    sysv4*MP*)
7904      if test -d /usr/nec; then
7905        lt_prog_compiler_pic=-Kconform_pic
7906      fi
7907      ;;
7908
7909    hpux*)
7910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7911      # not for PA HP-UX.
7912      case $host_cpu in
7913      hppa*64*|ia64*)
7914        # +Z the default
7915        ;;
7916      *)
7917        lt_prog_compiler_pic='-fPIC'
7918        ;;
7919      esac
7920      ;;
7921
7922    *)
7923      lt_prog_compiler_pic='-fPIC'
7924      ;;
7925    esac
7926  else
7927    # PORTME Check for flag to pass linker flags through the system compiler.
7928    case $host_os in
7929    aix*)
7930      lt_prog_compiler_wl='-Wl,'
7931      if test "$host_cpu" = ia64; then
7932        # AIX 5 now supports IA64 processor
7933        lt_prog_compiler_static='-Bstatic'
7934      else
7935        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7936      fi
7937      ;;
7938      darwin*)
7939        # PIC is the default on this platform
7940        # Common symbols not allowed in MH_DYLIB files
7941       case $cc_basename in
7942         xlc*)
7943         lt_prog_compiler_pic='-qnocommon'
7944         lt_prog_compiler_wl='-Wl,'
7945         ;;
7946       esac
7947       ;;
7948
7949    mingw* | pw32* | os2*)
7950      # This hack is so that the source file can tell whether it is being
7951      # built for inclusion in a dll (and should export symbols for example).
7952      lt_prog_compiler_pic='-DDLL_EXPORT'
7953      ;;
7954
7955    hpux9* | hpux10* | hpux11*)
7956      lt_prog_compiler_wl='-Wl,'
7957      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7958      # not for PA HP-UX.
7959      case $host_cpu in
7960      hppa*64*|ia64*)
7961        # +Z the default
7962        ;;
7963      *)
7964        lt_prog_compiler_pic='+Z'
7965        ;;
7966      esac
7967      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7968      lt_prog_compiler_static='${wl}-a ${wl}archive'
7969      ;;
7970
7971    irix5* | irix6* | nonstopux*)
7972      lt_prog_compiler_wl='-Wl,'
7973      # PIC (with -KPIC) is the default.
7974      lt_prog_compiler_static='-non_shared'
7975      ;;
7976
7977    newsos6)
7978      lt_prog_compiler_pic='-KPIC'
7979      lt_prog_compiler_static='-Bstatic'
7980      ;;
7981
7982    linux*)
7983      case $cc_basename in
7984      icc* | ecc*)
7985        lt_prog_compiler_wl='-Wl,'
7986        lt_prog_compiler_pic='-KPIC'
7987        lt_prog_compiler_static='-static'
7988        ;;
7989      pgcc* | pgf77* | pgf90* | pgf95*)
7990        # Portland Group compilers (*not* the Pentium gcc compiler,
7991        # which looks to be a dead project)
7992        lt_prog_compiler_wl='-Wl,'
7993        lt_prog_compiler_pic='-fpic'
7994        lt_prog_compiler_static='-Bstatic'
7995        ;;
7996      ccc*)
7997        lt_prog_compiler_wl='-Wl,'
7998        # All Alpha code is PIC.
7999        lt_prog_compiler_static='-non_shared'
8000        ;;
8001      esac
8002      ;;
8003
8004    osf3* | osf4* | osf5*)
8005      lt_prog_compiler_wl='-Wl,'
8006      # All OSF/1 code is PIC.
8007      lt_prog_compiler_static='-non_shared'
8008      ;;
8009
8010    solaris*)
8011      lt_prog_compiler_pic='-KPIC'
8012      lt_prog_compiler_static='-Bstatic'
8013      case $cc_basename in
8014      f77* | f90* | f95*)
8015        lt_prog_compiler_wl='-Qoption ld ';;
8016      *)
8017        lt_prog_compiler_wl='-Wl,';;
8018      esac
8019      ;;
8020
8021    sunos4*)
8022      lt_prog_compiler_wl='-Qoption ld '
8023      lt_prog_compiler_pic='-PIC'
8024      lt_prog_compiler_static='-Bstatic'
8025      ;;
8026
8027    sysv4 | sysv4.2uw2* | sysv4.3*)
8028      lt_prog_compiler_wl='-Wl,'
8029      lt_prog_compiler_pic='-KPIC'
8030      lt_prog_compiler_static='-Bstatic'
8031      ;;
8032
8033    sysv4*MP*)
8034      if test -d /usr/nec ;then
8035        lt_prog_compiler_pic='-Kconform_pic'
8036        lt_prog_compiler_static='-Bstatic'
8037      fi
8038      ;;
8039
8040    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8041      lt_prog_compiler_wl='-Wl,'
8042      lt_prog_compiler_pic='-KPIC'
8043      lt_prog_compiler_static='-Bstatic'
8044      ;;
8045
8046    unicos*)
8047      lt_prog_compiler_wl='-Wl,'
8048      lt_prog_compiler_can_build_shared=no
8049      ;;
8050
8051    uts4*)
8052      lt_prog_compiler_pic='-pic'
8053      lt_prog_compiler_static='-Bstatic'
8054      ;;
8055
8056    *)
8057      lt_prog_compiler_can_build_shared=no
8058      ;;
8059    esac
8060  fi
8061
8062echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8063echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8064
8065#
8066# Check to make sure the PIC flag actually works.
8067#
8068if test -n "$lt_prog_compiler_pic"; then
8069
8070echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8071echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8072if test "${lt_prog_compiler_pic_works+set}" = set; then
8073  echo $ECHO_N "(cached) $ECHO_C" >&6
8074else
8075  lt_prog_compiler_pic_works=no
8076  ac_outfile=conftest.$ac_objext
8077   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8078   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8079   # Insert the option either (1) after the last *FLAGS variable, or
8080   # (2) before a word containing "conftest.", or (3) at the end.
8081   # Note that $ac_compile itself does not contain backslashes and begins
8082   # with a dollar sign (not a hyphen), so the echo should work correctly.
8083   # The option is referenced via a variable to avoid confusing sed.
8084   lt_compile=`echo "$ac_compile" | $SED \
8085   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8086   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8087   -e 's:$: $lt_compiler_flag:'`
8088   (eval echo "\"\$as_me:8088: $lt_compile\"" >&5)
8089   (eval "$lt_compile" 2>conftest.err)
8090   ac_status=$?
8091   cat conftest.err >&5
8092   echo "$as_me:8092: \$? = $ac_status" >&5
8093   if (exit $ac_status) && test -s "$ac_outfile"; then
8094     # The compiler can only warn and ignore the option if not recognized
8095     # So say no if there are warnings other than the usual output.
8096     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8097     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8099       lt_prog_compiler_pic_works=yes
8100     fi
8101   fi
8102   $rm conftest*
8103
8104fi
8105echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8106echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8107
8108if test x"$lt_prog_compiler_pic_works" = xyes; then
8109    case $lt_prog_compiler_pic in
8110     "" | " "*) ;;
8111     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8112     esac
8113else
8114    lt_prog_compiler_pic=
8115     lt_prog_compiler_can_build_shared=no
8116fi
8117
8118fi
8119case $host_os in
8120  # For platforms which do not support PIC, -DPIC is meaningless:
8121  *djgpp*)
8122    lt_prog_compiler_pic=
8123    ;;
8124  *)
8125    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8126    ;;
8127esac
8128
8129#
8130# Check to make sure the static flag actually works.
8131#
8132wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8133echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8134echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8135if test "${lt_prog_compiler_static_works+set}" = set; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  lt_prog_compiler_static_works=no
8139   save_LDFLAGS="$LDFLAGS"
8140   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8141   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8142   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8143     # The linker can only warn and ignore the option if not recognized
8144     # So say no if there are warnings
8145     if test -s conftest.err; then
8146       # Append any errors to the config.log.
8147       cat conftest.err 1>&5
8148       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8149       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150       if diff conftest.exp conftest.er2 >/dev/null; then
8151         lt_prog_compiler_static_works=yes
8152       fi
8153     else
8154       lt_prog_compiler_static_works=yes
8155     fi
8156   fi
8157   $rm conftest*
8158   LDFLAGS="$save_LDFLAGS"
8159
8160fi
8161echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8162echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8163
8164if test x"$lt_prog_compiler_static_works" = xyes; then
8165    :
8166else
8167    lt_prog_compiler_static=
8168fi
8169
8170
8171echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8172echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8173if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8174  echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176  lt_cv_prog_compiler_c_o=no
8177   $rm -r conftest 2>/dev/null
8178   mkdir conftest
8179   cd conftest
8180   mkdir out
8181   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8182
8183   lt_compiler_flag="-o out/conftest2.$ac_objext"
8184   # Insert the option either (1) after the last *FLAGS variable, or
8185   # (2) before a word containing "conftest.", or (3) at the end.
8186   # Note that $ac_compile itself does not contain backslashes and begins
8187   # with a dollar sign (not a hyphen), so the echo should work correctly.
8188   lt_compile=`echo "$ac_compile" | $SED \
8189   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191   -e 's:$: $lt_compiler_flag:'`
8192   (eval echo "\"\$as_me:8192: $lt_compile\"" >&5)
8193   (eval "$lt_compile" 2>out/conftest.err)
8194   ac_status=$?
8195   cat out/conftest.err >&5
8196   echo "$as_me:8196: \$? = $ac_status" >&5
8197   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8198   then
8199     # The compiler can only warn and ignore the option if not recognized
8200     # So say no if there are warnings
8201     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8202     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8203     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8204       lt_cv_prog_compiler_c_o=yes
8205     fi
8206   fi
8207   chmod u+w . 2>&5
8208   $rm conftest*
8209   # SGI C++ compiler will create directory out/ii_files/ for
8210   # template instantiation
8211   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8212   $rm out/* && rmdir out
8213   cd ..
8214   rmdir conftest
8215   $rm conftest*
8216
8217fi
8218echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8219echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8220
8221
8222hard_links="nottested"
8223if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8224  # do not overwrite the value of need_locks provided by the user
8225  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8226echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8227  hard_links=yes
8228  $rm conftest*
8229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8230  touch conftest.a
8231  ln conftest.a conftest.b 2>&5 || hard_links=no
8232  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8233  echo "$as_me:$LINENO: result: $hard_links" >&5
8234echo "${ECHO_T}$hard_links" >&6
8235  if test "$hard_links" = no; then
8236    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8237echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8238    need_locks=warn
8239  fi
8240else
8241  need_locks=no
8242fi
8243
8244echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8245echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8246
8247  runpath_var=
8248  allow_undefined_flag=
8249  enable_shared_with_static_runtimes=no
8250  archive_cmds=
8251  archive_expsym_cmds=
8252  old_archive_From_new_cmds=
8253  old_archive_from_expsyms_cmds=
8254  export_dynamic_flag_spec=
8255  whole_archive_flag_spec=
8256  thread_safe_flag_spec=
8257  hardcode_libdir_flag_spec=
8258  hardcode_libdir_flag_spec_ld=
8259  hardcode_libdir_separator=
8260  hardcode_direct=no
8261  hardcode_minus_L=no
8262  hardcode_shlibpath_var=unsupported
8263  link_all_deplibs=unknown
8264  hardcode_automatic=no
8265  module_cmds=
8266  module_expsym_cmds=
8267  always_export_symbols=no
8268  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8269  # include_expsyms should be a list of space-separated symbols to be *always*
8270  # included in the symbol list
8271  include_expsyms=
8272  # exclude_expsyms can be an extended regexp of symbols to exclude
8273  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8274  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8275  # as well as any symbol that contains `d'.
8276  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8277  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8278  # platforms (ab)use it in PIC code, but their linkers get confused if
8279  # the symbol is explicitly referenced.  Since portable code cannot
8280  # rely on this symbol name, it's probably fine to never include it in
8281  # preloaded symbol tables.
8282  extract_expsyms_cmds=
8283  # Just being paranoid about ensuring that cc_basename is set.
8284  for cc_temp in $compiler""; do
8285  case $cc_temp in
8286    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8287    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8288    \-*) ;;
8289    *) break;;
8290  esac
8291done
8292cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8293
8294  case $host_os in
8295  cygwin* | mingw* | pw32*)
8296    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8297    # When not using gcc, we currently assume that we are using
8298    # Microsoft Visual C++.
8299    if test "$GCC" != yes; then
8300      with_gnu_ld=no
8301    fi
8302    ;;
8303  interix*)
8304    # we just hope/assume this is gcc and not c89 (= MSVC++)
8305    with_gnu_ld=yes
8306    ;;
8307  openbsd*)
8308    with_gnu_ld=no
8309    ;;
8310  esac
8311
8312  ld_shlibs=yes
8313  if test "$with_gnu_ld" = yes; then
8314    # If archive_cmds runs LD, not CC, wlarc should be empty
8315    wlarc='${wl}'
8316
8317    # Set some defaults for GNU ld with shared library support. These
8318    # are reset later if shared libraries are not supported. Putting them
8319    # here allows them to be overridden if necessary.
8320    runpath_var=LD_RUN_PATH
8321    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8322    export_dynamic_flag_spec='${wl}--export-dynamic'
8323    # ancient GNU ld didn't support --whole-archive et. al.
8324    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8325        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8326      else
8327        whole_archive_flag_spec=
8328    fi
8329    supports_anon_versioning=no
8330    case `$LD -v 2>/dev/null` in
8331      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8332      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8333      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8334      *\ 2.11.*) ;; # other 2.11 versions
8335      *) supports_anon_versioning=yes ;;
8336    esac
8337
8338    # See if GNU ld supports shared libraries.
8339    case $host_os in
8340    aix3* | aix4* | aix5*)
8341      # On AIX/PPC, the GNU linker is very broken
8342      if test "$host_cpu" != ia64; then
8343        ld_shlibs=no
8344        cat <<EOF 1>&2
8345
8346*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8347*** to be unable to reliably create shared libraries on AIX.
8348*** Therefore, libtool is disabling shared libraries support.  If you
8349*** really care for shared libraries, you may want to modify your PATH
8350*** so that a non-GNU linker is found, and then restart.
8351
8352EOF
8353      fi
8354      ;;
8355
8356    amigaos*)
8357      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)'
8358      hardcode_libdir_flag_spec='-L$libdir'
8359      hardcode_minus_L=yes
8360
8361      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8362      # that the semantics of dynamic libraries on AmigaOS, at least up
8363      # to version 4, is to share data among multiple programs linked
8364      # with the same dynamic library.  Since this doesn't match the
8365      # behavior of shared libraries on other platforms, we can't use
8366      # them.
8367      ld_shlibs=no
8368      ;;
8369
8370    beos*)
8371      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8372        allow_undefined_flag=unsupported
8373        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8374        # support --undefined.  This deserves some investigation.  FIXME
8375        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376      else
8377        ld_shlibs=no
8378      fi
8379      ;;
8380
8381    cygwin* | mingw* | pw32*)
8382      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8383      # as there is no search path for DLLs.
8384      hardcode_libdir_flag_spec='-L$libdir'
8385      allow_undefined_flag=unsupported
8386      always_export_symbols=no
8387      enable_shared_with_static_runtimes=yes
8388      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8389
8390      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8391        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8392        # If the export-symbols file already is a .def file (1st line
8393        # is EXPORTS), use it as is; otherwise, prepend...
8394        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8395          cp $export_symbols $output_objdir/$soname.def;
8396        else
8397          echo EXPORTS > $output_objdir/$soname.def;
8398          cat $export_symbols >> $output_objdir/$soname.def;
8399        fi~
8400        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8401      else
8402        ld_shlibs=no
8403      fi
8404      ;;
8405
8406    interix3*)
8407      hardcode_direct=no
8408      hardcode_shlibpath_var=no
8409      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8410      export_dynamic_flag_spec='${wl}-E'
8411      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8412      # Instead, shared libraries are loaded at an image base (0x10000000 by
8413      # default) and relocated if they conflict, which is a slow very memory
8414      # consuming and fragmenting process.  To avoid this, we pick a random,
8415      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8416      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8417      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8418      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'
8419      ;;
8420
8421    linux*)
8422      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8423        tmp_addflag=
8424        case $cc_basename,$host_cpu in
8425        pgcc*)                          # Portland Group C compiler
8426          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'
8427          tmp_addflag=' $pic_flag'
8428          ;;
8429        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8430          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'
8431          tmp_addflag=' $pic_flag -Mnomain' ;;
8432        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8433          tmp_addflag=' -i_dynamic' ;;
8434        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8435          tmp_addflag=' -i_dynamic -nofor_main' ;;
8436        ifc* | ifort*)                  # Intel Fortran compiler
8437          tmp_addflag=' -nofor_main' ;;
8438        esac
8439        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8440
8441        if test $supports_anon_versioning = yes; then
8442          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8443  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8444  $echo "local: *; };" >> $output_objdir/$libname.ver~
8445          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8446        fi
8447      else
8448        ld_shlibs=no
8449      fi
8450      ;;
8451
8452    netbsd*)
8453      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8454        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8455        wlarc=
8456      else
8457        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8458        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8459      fi
8460      ;;
8461
8462    solaris*)
8463      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8464        ld_shlibs=no
8465        cat <<EOF 1>&2
8466
8467*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8468*** create shared libraries on Solaris systems.  Therefore, libtool
8469*** is disabling shared libraries support.  We urge you to upgrade GNU
8470*** binutils to release 2.9.1 or newer.  Another option is to modify
8471*** your PATH or compiler configuration so that the native linker is
8472*** used, and then restart.
8473
8474EOF
8475      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8476        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8477        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8478      else
8479        ld_shlibs=no
8480      fi
8481      ;;
8482
8483    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8484      case `$LD -v 2>&1` in
8485        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8486        ld_shlibs=no
8487        cat <<_LT_EOF 1>&2
8488
8489*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8490*** reliably create shared libraries on SCO systems.  Therefore, libtool
8491*** is disabling shared libraries support.  We urge you to upgrade GNU
8492*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8493*** your PATH or compiler configuration so that the native linker is
8494*** used, and then restart.
8495
8496_LT_EOF
8497        ;;
8498        *)
8499          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8500            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8501            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8502            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8503          else
8504            ld_shlibs=no
8505          fi
8506        ;;
8507      esac
8508      ;;
8509
8510    sunos4*)
8511      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8512      wlarc=
8513      hardcode_direct=yes
8514      hardcode_shlibpath_var=no
8515      ;;
8516
8517    *)
8518      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8519        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8521      else
8522        ld_shlibs=no
8523      fi
8524      ;;
8525    esac
8526
8527    if test "$ld_shlibs" = no; then
8528      runpath_var=
8529      hardcode_libdir_flag_spec=
8530      export_dynamic_flag_spec=
8531      whole_archive_flag_spec=
8532    fi
8533  else
8534    # PORTME fill in a description of your system's linker (not GNU ld)
8535    case $host_os in
8536    aix3*)
8537      allow_undefined_flag=unsupported
8538      always_export_symbols=yes
8539      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'
8540      # Note: this linker hardcodes the directories in LIBPATH if there
8541      # are no directories specified by -L.
8542      hardcode_minus_L=yes
8543      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8544        # Neither direct hardcoding nor static linking is supported with a
8545        # broken collect2.
8546        hardcode_direct=unsupported
8547      fi
8548      ;;
8549
8550    aix4* | aix5*)
8551      if test "$host_cpu" = ia64; then
8552        # On IA64, the linker does run time linking by default, so we don't
8553        # have to do anything special.
8554        aix_use_runtimelinking=no
8555        exp_sym_flag='-Bexport'
8556        no_entry_flag=""
8557      else
8558        # If we're using GNU nm, then we don't want the "-C" option.
8559        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8560        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8561          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'
8562        else
8563          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'
8564        fi
8565        aix_use_runtimelinking=no
8566
8567        # Test if we are trying to use run time linking or normal
8568        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8569        # need to do runtime linking.
8570        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8571          for ld_flag in $LDFLAGS; do
8572          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8573            aix_use_runtimelinking=yes
8574            break
8575          fi
8576          done
8577          ;;
8578        esac
8579
8580        exp_sym_flag='-bexport'
8581        no_entry_flag='-bnoentry'
8582      fi
8583
8584      # When large executables or shared objects are built, AIX ld can
8585      # have problems creating the table of contents.  If linking a library
8586      # or program results in "error TOC overflow" add -mminimal-toc to
8587      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8588      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8589
8590      archive_cmds=''
8591      hardcode_direct=yes
8592      hardcode_libdir_separator=':'
8593      link_all_deplibs=yes
8594
8595      if test "$GCC" = yes; then
8596        case $host_os in aix4.[012]|aix4.[012].*)
8597        # We only want to do this on AIX 4.2 and lower, the check
8598        # below for broken collect2 doesn't work under 4.3+
8599          collect2name=`${CC} -print-prog-name=collect2`
8600          if test -f "$collect2name" && \
8601           strings "$collect2name" | grep resolve_lib_name >/dev/null
8602          then
8603          # We have reworked collect2
8604          hardcode_direct=yes
8605          else
8606          # We have old collect2
8607          hardcode_direct=unsupported
8608          # It fails to find uninstalled libraries when the uninstalled
8609          # path is not listed in the libpath.  Setting hardcode_minus_L
8610          # to unsupported forces relinking
8611          hardcode_minus_L=yes
8612          hardcode_libdir_flag_spec='-L$libdir'
8613          hardcode_libdir_separator=
8614          fi
8615          ;;
8616        esac
8617        shared_flag='-shared'
8618        if test "$aix_use_runtimelinking" = yes; then
8619          shared_flag="$shared_flag "'${wl}-G'
8620        fi
8621      else
8622        # not using gcc
8623        if test "$host_cpu" = ia64; then
8624        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8625        # chokes on -Wl,-G. The following line is correct:
8626          shared_flag='-G'
8627        else
8628          if test "$aix_use_runtimelinking" = yes; then
8629            shared_flag='${wl}-G'
8630          else
8631            shared_flag='${wl}-bM:SRE'
8632          fi
8633        fi
8634      fi
8635
8636      # It seems that -bexpall does not export symbols beginning with
8637      # underscore (_), so it is better to generate a list of symbols to export.
8638      always_export_symbols=yes
8639      if test "$aix_use_runtimelinking" = yes; then
8640        # Warning - without using the other runtime loading flags (-brtl),
8641        # -berok will link without error, but may produce a broken library.
8642        allow_undefined_flag='-berok'
8643       # Determine the default libpath from the value encoded in an empty executable.
8644       cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h.  */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h.  */
8650
8651int
8652main ()
8653{
8654
8655  ;
8656  return 0;
8657}
8658_ACEOF
8659rm -f conftest.$ac_objext conftest$ac_exeext
8660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8661  (eval $ac_link) 2>conftest.er1
8662  ac_status=$?
8663  grep -v '^ *+' conftest.er1 >conftest.err
8664  rm -f conftest.er1
8665  cat conftest.err >&5
8666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667  (exit $ac_status); } &&
8668         { ac_try='test -z "$ac_c_werror_flag"
8669                         || test ! -s conftest.err'
8670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671  (eval $ac_try) 2>&5
8672  ac_status=$?
8673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674  (exit $ac_status); }; } &&
8675         { ac_try='test -s conftest$ac_exeext'
8676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677  (eval $ac_try) 2>&5
8678  ac_status=$?
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); }; }; then
8681
8682aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8683}'`
8684# Check for a 64-bit object if we didn't find anything.
8685if 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; }
8686}'`; fi
8687else
8688  echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
8691fi
8692rm -f conftest.err conftest.$ac_objext \
8693      conftest$ac_exeext conftest.$ac_ext
8694if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8695
8696       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8697        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"
8698       else
8699        if test "$host_cpu" = ia64; then
8700          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8701          allow_undefined_flag="-z nodefs"
8702          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"
8703        else
8704         # Determine the default libpath from the value encoded in an empty executable.
8705         cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h.  */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h.  */
8711
8712int
8713main ()
8714{
8715
8716  ;
8717  return 0;
8718}
8719_ACEOF
8720rm -f conftest.$ac_objext conftest$ac_exeext
8721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722  (eval $ac_link) 2>conftest.er1
8723  ac_status=$?
8724  grep -v '^ *+' conftest.er1 >conftest.err
8725  rm -f conftest.er1
8726  cat conftest.err >&5
8727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728  (exit $ac_status); } &&
8729         { ac_try='test -z "$ac_c_werror_flag"
8730                         || test ! -s conftest.err'
8731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732  (eval $ac_try) 2>&5
8733  ac_status=$?
8734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735  (exit $ac_status); }; } &&
8736         { ac_try='test -s conftest$ac_exeext'
8737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738  (eval $ac_try) 2>&5
8739  ac_status=$?
8740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741  (exit $ac_status); }; }; then
8742
8743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8744}'`
8745# Check for a 64-bit object if we didn't find anything.
8746if 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; }
8747}'`; fi
8748else
8749  echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752fi
8753rm -f conftest.err conftest.$ac_objext \
8754      conftest$ac_exeext conftest.$ac_ext
8755if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8756
8757         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8758          # Warning - without using the other run time loading flags,
8759          # -berok will link without error, but may produce a broken library.
8760          no_undefined_flag=' ${wl}-bernotok'
8761          allow_undefined_flag=' ${wl}-berok'
8762          # Exported symbols can be pulled into shared objects from archives
8763          whole_archive_flag_spec='$convenience'
8764          archive_cmds_need_lc=yes
8765          # This is similar to how AIX traditionally builds its shared libraries.
8766          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'
8767        fi
8768      fi
8769      ;;
8770
8771    amigaos*)
8772      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)'
8773      hardcode_libdir_flag_spec='-L$libdir'
8774      hardcode_minus_L=yes
8775      # see comment about different semantics on the GNU ld section
8776      ld_shlibs=no
8777      ;;
8778
8779    bsdi[45]*)
8780      export_dynamic_flag_spec=-rdynamic
8781      ;;
8782
8783    cygwin* | mingw* | pw32*)
8784      # When not using gcc, we currently assume that we are using
8785      # Microsoft Visual C++.
8786      # hardcode_libdir_flag_spec is actually meaningless, as there is
8787      # no search path for DLLs.
8788      hardcode_libdir_flag_spec=' '
8789      allow_undefined_flag=unsupported
8790      # Tell ltmain to make .lib files, not .a files.
8791      libext=lib
8792      # Tell ltmain to make .dll files, not .so files.
8793      shrext_cmds=".dll"
8794      # FIXME: Setting linknames here is a bad hack.
8795      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8796      # The linker will automatically build a .lib file if we build a DLL.
8797      old_archive_From_new_cmds='true'
8798      # FIXME: Should let the user specify the lib program.
8799      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8800      fix_srcfile_path='`cygpath -w "$srcfile"`'
8801      enable_shared_with_static_runtimes=yes
8802      ;;
8803
8804    darwin* | rhapsody*)
8805      case $host_os in
8806        rhapsody* | darwin1.[012])
8807         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8808         ;;
8809       *) # Darwin 1.3 on
8810         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8811           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8812         else
8813           case ${MACOSX_DEPLOYMENT_TARGET} in
8814             10.[012])
8815               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8816               ;;
8817             10.*)
8818               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8819               ;;
8820           esac
8821         fi
8822         ;;
8823      esac
8824      archive_cmds_need_lc=no
8825      hardcode_direct=no
8826      hardcode_automatic=yes
8827      hardcode_shlibpath_var=unsupported
8828      whole_archive_flag_spec=''
8829      link_all_deplibs=yes
8830    if test "$GCC" = yes ; then
8831        output_verbose_link_cmd='echo'
8832        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8833      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8834      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8835      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}'
8836      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}'
8837    else
8838      case $cc_basename in
8839        xlc*)
8840         output_verbose_link_cmd='echo'
8841         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8842         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8843          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8844         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}'
8845          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}'
8846          ;;
8847       *)
8848         ld_shlibs=no
8849          ;;
8850      esac
8851    fi
8852      ;;
8853
8854    dgux*)
8855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856      hardcode_libdir_flag_spec='-L$libdir'
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    freebsd1*)
8861      ld_shlibs=no
8862      ;;
8863
8864    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8865    # support.  Future versions do this automatically, but an explicit c++rt0.o
8866    # does not break anything, and helps significantly (at the cost of a little
8867    # extra space).
8868    freebsd2.2*)
8869      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8870      hardcode_libdir_flag_spec='-R$libdir'
8871      hardcode_direct=yes
8872      hardcode_shlibpath_var=no
8873      ;;
8874
8875    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8876    freebsd2*)
8877      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8878      hardcode_direct=yes
8879      hardcode_minus_L=yes
8880      hardcode_shlibpath_var=no
8881      ;;
8882
8883    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8884    freebsd* | kfreebsd*-gnu | dragonfly*)
8885      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8886      hardcode_libdir_flag_spec='-R$libdir'
8887      hardcode_direct=yes
8888      hardcode_shlibpath_var=no
8889      ;;
8890
8891    hpux9*)
8892      if test "$GCC" = yes; then
8893        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'
8894      else
8895        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'
8896      fi
8897      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8898      hardcode_libdir_separator=:
8899      hardcode_direct=yes
8900
8901      # hardcode_minus_L: Not really in the search PATH,
8902      # but as the default location of the library.
8903      hardcode_minus_L=yes
8904      export_dynamic_flag_spec='${wl}-E'
8905      ;;
8906
8907    hpux10*)
8908      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8909        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8910      else
8911        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8912      fi
8913      if test "$with_gnu_ld" = no; then
8914        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8915        hardcode_libdir_separator=:
8916
8917        hardcode_direct=yes
8918        export_dynamic_flag_spec='${wl}-E'
8919
8920        # hardcode_minus_L: Not really in the search PATH,
8921        # but as the default location of the library.
8922        hardcode_minus_L=yes
8923      fi
8924      ;;
8925
8926    hpux11*)
8927      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8928        case $host_cpu in
8929        hppa*64*)
8930          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931          ;;
8932        ia64*)
8933          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8934          ;;
8935        *)
8936          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8937          ;;
8938        esac
8939      else
8940        case $host_cpu in
8941        hppa*64*)
8942          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943          ;;
8944        ia64*)
8945          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8946          ;;
8947        *)
8948          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8949          ;;
8950        esac
8951      fi
8952      if test "$with_gnu_ld" = no; then
8953        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8954        hardcode_libdir_separator=:
8955
8956        case $host_cpu in
8957        hppa*64*|ia64*)
8958          hardcode_libdir_flag_spec_ld='+b $libdir'
8959          hardcode_direct=no
8960          hardcode_shlibpath_var=no
8961          ;;
8962        *)
8963          hardcode_direct=yes
8964          export_dynamic_flag_spec='${wl}-E'
8965
8966          # hardcode_minus_L: Not really in the search PATH,
8967          # but as the default location of the library.
8968          hardcode_minus_L=yes
8969          ;;
8970        esac
8971      fi
8972      ;;
8973
8974    irix5* | irix6* | nonstopux*)
8975      if test "$GCC" = yes; then
8976        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'
8977      else
8978        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'
8979        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8980      fi
8981      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8982      hardcode_libdir_separator=:
8983      link_all_deplibs=yes
8984      ;;
8985
8986    netbsd*)
8987      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8988        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8989      else
8990        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8991      fi
8992      hardcode_libdir_flag_spec='-R$libdir'
8993      hardcode_direct=yes
8994      hardcode_shlibpath_var=no
8995      ;;
8996
8997    newsos6)
8998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999      hardcode_direct=yes
9000      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9001      hardcode_libdir_separator=:
9002      hardcode_shlibpath_var=no
9003      ;;
9004
9005    openbsd*)
9006      hardcode_direct=yes
9007      hardcode_shlibpath_var=no
9008      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9009        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9010        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9011        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012        export_dynamic_flag_spec='${wl}-E'
9013      else
9014       case $host_os in
9015         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9016           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9017           hardcode_libdir_flag_spec='-R$libdir'
9018           ;;
9019         *)
9020           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9021           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9022           ;;
9023       esac
9024      fi
9025      ;;
9026
9027    os2*)
9028      hardcode_libdir_flag_spec='-L$libdir'
9029      hardcode_minus_L=yes
9030      allow_undefined_flag=unsupported
9031      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'
9032      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9033      ;;
9034
9035    osf3*)
9036      if test "$GCC" = yes; then
9037        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9038        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'
9039      else
9040        allow_undefined_flag=' -expect_unresolved \*'
9041        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'
9042      fi
9043      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9044      hardcode_libdir_separator=:
9045      ;;
9046
9047    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9048      if test "$GCC" = yes; then
9049        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9050        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'
9051        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9052      else
9053        allow_undefined_flag=' -expect_unresolved \*'
9054        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'
9055        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9056        $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'
9057
9058        # Both c and cxx compiler support -rpath directly
9059        hardcode_libdir_flag_spec='-rpath $libdir'
9060      fi
9061      hardcode_libdir_separator=:
9062      ;;
9063
9064    solaris*)
9065      no_undefined_flag=' -z text'
9066      if test "$GCC" = yes; then
9067        wlarc='${wl}'
9068        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9069        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9070          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9071      else
9072        wlarc=''
9073        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9075        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9076      fi
9077      hardcode_libdir_flag_spec='-R$libdir'
9078      hardcode_shlibpath_var=no
9079      case $host_os in
9080      solaris2.[0-5] | solaris2.[0-5].*) ;;
9081      *)
9082        # The compiler driver will combine linker options so we
9083        # cannot just pass the convience library names through
9084        # without $wl, iff we do not link with $LD.
9085        # Luckily, gcc supports the same syntax we need for Sun Studio.
9086        # Supported since Solaris 2.6 (maybe 2.5.1?)
9087        case $wlarc in
9088        '')
9089          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9090        *)
9091          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' ;;
9092        esac ;;
9093      esac
9094      link_all_deplibs=yes
9095      ;;
9096
9097    sunos4*)
9098      if test "x$host_vendor" = xsequent; then
9099        # Use $CC to link under sequent, because it throws in some extra .o
9100        # files that make .init and .fini sections work.
9101        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9102      else
9103        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9104      fi
9105      hardcode_libdir_flag_spec='-L$libdir'
9106      hardcode_direct=yes
9107      hardcode_minus_L=yes
9108      hardcode_shlibpath_var=no
9109      ;;
9110
9111    sysv4)
9112      case $host_vendor in
9113        sni)
9114          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115          hardcode_direct=yes # is this really true???
9116        ;;
9117        siemens)
9118          ## LD is ld it makes a PLAMLIB
9119          ## CC just makes a GrossModule.
9120          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9121          reload_cmds='$CC -r -o $output$reload_objs'
9122          hardcode_direct=no
9123        ;;
9124        motorola)
9125          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9127        ;;
9128      esac
9129      runpath_var='LD_RUN_PATH'
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    sysv4.3*)
9134      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9135      hardcode_shlibpath_var=no
9136      export_dynamic_flag_spec='-Bexport'
9137      ;;
9138
9139    sysv4*MP*)
9140      if test -d /usr/nec; then
9141        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9142        hardcode_shlibpath_var=no
9143        runpath_var=LD_RUN_PATH
9144        hardcode_runpath_var=yes
9145        ld_shlibs=yes
9146      fi
9147      ;;
9148
9149    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9150      no_undefined_flag='${wl}-z,text'
9151      archive_cmds_need_lc=no
9152      hardcode_shlibpath_var=no
9153      runpath_var='LD_RUN_PATH'
9154
9155      if test "$GCC" = yes; then
9156        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9157        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9158      else
9159        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161      fi
9162      ;;
9163
9164    sysv5* | sco3.2v5* | sco5v6*)
9165      # Note: We can NOT use -z defs as we might desire, because we do not
9166      # link with -lc, and that would cause any symbols used from libc to
9167      # always be unresolved, which means just about no library would
9168      # ever link correctly.  If we're not using GNU ld we use -z text
9169      # though, which does catch some bad symbols but isn't as heavy-handed
9170      # as -z defs.
9171      no_undefined_flag='${wl}-z,text'
9172      allow_undefined_flag='${wl}-z,nodefs'
9173      archive_cmds_need_lc=no
9174      hardcode_shlibpath_var=no
9175      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9176      hardcode_libdir_separator=':'
9177      link_all_deplibs=yes
9178      export_dynamic_flag_spec='${wl}-Bexport'
9179      runpath_var='LD_RUN_PATH'
9180
9181      if test "$GCC" = yes; then
9182        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9183        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9184      else
9185        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9186        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187      fi
9188      ;;
9189
9190    uts4*)
9191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192      hardcode_libdir_flag_spec='-L$libdir'
9193      hardcode_shlibpath_var=no
9194      ;;
9195
9196    *)
9197      ld_shlibs=no
9198      ;;
9199    esac
9200  fi
9201
9202echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9203echo "${ECHO_T}$ld_shlibs" >&6
9204test "$ld_shlibs" = no && can_build_shared=no
9205
9206#
9207# Do we need to explicitly link libc?
9208#
9209case "x$archive_cmds_need_lc" in
9210x|xyes)
9211  # Assume -lc should be added
9212  archive_cmds_need_lc=yes
9213
9214  if test "$enable_shared" = yes && test "$GCC" = yes; then
9215    case $archive_cmds in
9216    *'~'*)
9217      # FIXME: we may have to deal with multi-command sequences.
9218      ;;
9219    '$CC '*)
9220      # Test whether the compiler implicitly links with -lc since on some
9221      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9222      # to ld, don't add -lc before -lgcc.
9223      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9224echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9225      $rm conftest*
9226      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9227
9228      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229  (eval $ac_compile) 2>&5
9230  ac_status=$?
9231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232  (exit $ac_status); } 2>conftest.err; then
9233        soname=conftest
9234        lib=conftest
9235        libobjs=conftest.$ac_objext
9236        deplibs=
9237        wl=$lt_prog_compiler_wl
9238        pic_flag=$lt_prog_compiler_pic
9239        compiler_flags=-v
9240        linker_flags=-v
9241        verstring=
9242        output_objdir=.
9243        libname=conftest
9244        lt_save_allow_undefined_flag=$allow_undefined_flag
9245        allow_undefined_flag=
9246        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9247  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9248  ac_status=$?
9249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250  (exit $ac_status); }
9251        then
9252          archive_cmds_need_lc=no
9253        else
9254          archive_cmds_need_lc=yes
9255        fi
9256        allow_undefined_flag=$lt_save_allow_undefined_flag
9257      else
9258        cat conftest.err 1>&5
9259      fi
9260      $rm conftest*
9261      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9262echo "${ECHO_T}$archive_cmds_need_lc" >&6
9263      ;;
9264    esac
9265  fi
9266  ;;
9267esac
9268
9269echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9270echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9271library_names_spec=
9272libname_spec='lib$name'
9273soname_spec=
9274shrext_cmds=".so"
9275postinstall_cmds=
9276postuninstall_cmds=
9277finish_cmds=
9278finish_eval=
9279shlibpath_var=
9280shlibpath_overrides_runpath=unknown
9281version_type=none
9282dynamic_linker="$host_os ld.so"
9283sys_lib_dlsearch_path_spec="/lib /usr/lib"
9284if test "$GCC" = yes; then
9285  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9286  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9287    # if the path contains ";" then we assume it to be the separator
9288    # otherwise default to the standard path separator (i.e. ":") - it is
9289    # assumed that no part of a normal pathname contains ";" but that should
9290    # okay in the real world where ";" in dirpaths is itself problematic.
9291    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9292  else
9293    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9294  fi
9295else
9296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9297fi
9298need_lib_prefix=unknown
9299hardcode_into_libs=no
9300
9301# when you set need_version to no, make sure it does not cause -set_version
9302# flags to be left without arguments
9303need_version=unknown
9304
9305case $host_os in
9306aix3*)
9307  version_type=linux
9308  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9309  shlibpath_var=LIBPATH
9310
9311  # AIX 3 has no versioning support, so we append a major version to the name.
9312  soname_spec='${libname}${release}${shared_ext}$major'
9313  ;;
9314
9315aix4* | aix5*)
9316  version_type=linux
9317  need_lib_prefix=no
9318  need_version=no
9319  hardcode_into_libs=yes
9320  if test "$host_cpu" = ia64; then
9321    # AIX 5 supports IA64
9322    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9323    shlibpath_var=LD_LIBRARY_PATH
9324  else
9325    # With GCC up to 2.95.x, collect2 would create an import file
9326    # for dependence libraries.  The import file would start with
9327    # the line `#! .'.  This would cause the generated library to
9328    # depend on `.', always an invalid library.  This was fixed in
9329    # development snapshots of GCC prior to 3.0.
9330    case $host_os in
9331      aix4 | aix4.[01] | aix4.[01].*)
9332      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9333           echo ' yes '
9334           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9335        :
9336      else
9337        can_build_shared=no
9338      fi
9339      ;;
9340    esac
9341    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9342    # soname into executable. Probably we can add versioning support to
9343    # collect2, so additional links can be useful in future.
9344    if test "$aix_use_runtimelinking" = yes; then
9345      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9346      # instead of lib<name>.a to let people know that these are not
9347      # typical AIX shared libraries.
9348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349    else
9350      # We preserve .a as extension for shared libraries through AIX4.2
9351      # and later when we are not doing run time linking.
9352      library_names_spec='${libname}${release}.a $libname.a'
9353      soname_spec='${libname}${release}${shared_ext}$major'
9354    fi
9355    shlibpath_var=LIBPATH
9356  fi
9357  ;;
9358
9359amigaos*)
9360  library_names_spec='$libname.ixlibrary $libname.a'
9361  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9362  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'
9363  ;;
9364
9365beos*)
9366  library_names_spec='${libname}${shared_ext}'
9367  dynamic_linker="$host_os ld.so"
9368  shlibpath_var=LIBRARY_PATH
9369  ;;
9370
9371bsdi[45]*)
9372  version_type=linux
9373  need_version=no
9374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9375  soname_spec='${libname}${release}${shared_ext}$major'
9376  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9377  shlibpath_var=LD_LIBRARY_PATH
9378  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9379  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9380  # the default ld.so.conf also contains /usr/contrib/lib and
9381  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9382  # libtool to hard-code these into programs
9383  ;;
9384
9385cygwin* | mingw* | pw32*)
9386  version_type=windows
9387  shrext_cmds=".dll"
9388  need_version=no
9389  need_lib_prefix=no
9390
9391  case $GCC,$host_os in
9392  yes,cygwin* | yes,mingw* | yes,pw32*)
9393    library_names_spec='$libname.dll.a'
9394    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9395    postinstall_cmds='base_file=`basename \${file}`~
9396      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9397      dldir=$destdir/`dirname \$dlpath`~
9398      test -d \$dldir || mkdir -p \$dldir~
9399      $install_prog $dir/$dlname \$dldir/$dlname~
9400      chmod a+x \$dldir/$dlname'
9401    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9402      dlpath=$dir/\$dldll~
9403       $rm \$dlpath'
9404    shlibpath_overrides_runpath=yes
9405
9406    case $host_os in
9407    cygwin*)
9408      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9409      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9410      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9411      ;;
9412    mingw*)
9413      # MinGW DLLs use traditional 'lib' prefix
9414      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9415      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9416      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9417        # It is most probably a Windows format PATH printed by
9418        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9419        # path with ; separators, and with drive letters. We can handle the
9420        # drive letters (cygwin fileutils understands them), so leave them,
9421        # especially as we might pass files found there to a mingw objdump,
9422        # which wouldn't understand a cygwinified path. Ahh.
9423        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9424      else
9425        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9426      fi
9427      ;;
9428    pw32*)
9429      # pw32 DLLs use 'pw' prefix rather than 'lib'
9430      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9431      ;;
9432    esac
9433    ;;
9434
9435  *)
9436    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9437    ;;
9438  esac
9439  dynamic_linker='Win32 ld.exe'
9440  # FIXME: first we should search . and the directory the executable is in
9441  shlibpath_var=PATH
9442  ;;
9443
9444darwin* | rhapsody*)
9445  dynamic_linker="$host_os dyld"
9446  version_type=darwin
9447  need_lib_prefix=no
9448  need_version=no
9449  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9450  soname_spec='${libname}${release}${major}$shared_ext'
9451  shlibpath_overrides_runpath=yes
9452  shlibpath_var=DYLD_LIBRARY_PATH
9453  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9454  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9455  if test "$GCC" = yes; then
9456    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"`
9457  else
9458    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9459  fi
9460  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9461  ;;
9462
9463dgux*)
9464  version_type=linux
9465  need_lib_prefix=no
9466  need_version=no
9467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9468  soname_spec='${libname}${release}${shared_ext}$major'
9469  shlibpath_var=LD_LIBRARY_PATH
9470  ;;
9471
9472freebsd1*)
9473  dynamic_linker=no
9474  ;;
9475
9476kfreebsd*-gnu)
9477  version_type=linux
9478  need_lib_prefix=no
9479  need_version=no
9480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9481  soname_spec='${libname}${release}${shared_ext}$major'
9482  shlibpath_var=LD_LIBRARY_PATH
9483  shlibpath_overrides_runpath=no
9484  hardcode_into_libs=yes
9485  dynamic_linker='GNU ld.so'
9486  ;;
9487
9488freebsd* | dragonfly*)
9489  # DragonFly does not have aout.  When/if they implement a new
9490  # versioning mechanism, adjust this.
9491  if test -x /usr/bin/objformat; then
9492    objformat=`/usr/bin/objformat`
9493  else
9494    case $host_os in
9495    freebsd[123]*) objformat=aout ;;
9496    *) objformat=elf ;;
9497    esac
9498  fi
9499  version_type=freebsd-$objformat
9500  case $version_type in
9501    freebsd-elf*)
9502      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9503      need_version=no
9504      need_lib_prefix=no
9505      ;;
9506    freebsd-*)
9507      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9508      need_version=yes
9509      ;;
9510  esac
9511  shlibpath_var=LD_LIBRARY_PATH
9512  case $host_os in
9513  freebsd2*)
9514    shlibpath_overrides_runpath=yes
9515    ;;
9516  freebsd3.[01]* | freebsdelf3.[01]*)
9517    shlibpath_overrides_runpath=yes
9518    hardcode_into_libs=yes
9519    ;;
9520  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9521  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9522    shlibpath_overrides_runpath=no
9523    hardcode_into_libs=yes
9524    ;;
9525  freebsd*) # from 4.6 on
9526    shlibpath_overrides_runpath=yes
9527    hardcode_into_libs=yes
9528    ;;
9529  esac
9530  ;;
9531
9532gnu*)
9533  version_type=linux
9534  need_lib_prefix=no
9535  need_version=no
9536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9537  soname_spec='${libname}${release}${shared_ext}$major'
9538  shlibpath_var=LD_LIBRARY_PATH
9539  hardcode_into_libs=yes
9540  ;;
9541
9542hpux9* | hpux10* | hpux11*)
9543  # Give a soname corresponding to the major version so that dld.sl refuses to
9544  # link against other versions.
9545  version_type=sunos
9546  need_lib_prefix=no
9547  need_version=no
9548  case $host_cpu in
9549  ia64*)
9550    shrext_cmds='.so'
9551    hardcode_into_libs=yes
9552    dynamic_linker="$host_os dld.so"
9553    shlibpath_var=LD_LIBRARY_PATH
9554    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9555    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556    soname_spec='${libname}${release}${shared_ext}$major'
9557    if test "X$HPUX_IA64_MODE" = X32; then
9558      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9559    else
9560      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9561    fi
9562    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9563    ;;
9564   hppa*64*)
9565     shrext_cmds='.sl'
9566     hardcode_into_libs=yes
9567     dynamic_linker="$host_os dld.sl"
9568     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571     soname_spec='${libname}${release}${shared_ext}$major'
9572     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9574     ;;
9575   *)
9576    shrext_cmds='.sl'
9577    dynamic_linker="$host_os dld.sl"
9578    shlibpath_var=SHLIB_PATH
9579    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581    soname_spec='${libname}${release}${shared_ext}$major'
9582    ;;
9583  esac
9584  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9585  postinstall_cmds='chmod 555 $lib'
9586  ;;
9587
9588interix3*)
9589  version_type=linux
9590  need_lib_prefix=no
9591  need_version=no
9592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593  soname_spec='${libname}${release}${shared_ext}$major'
9594  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9595  shlibpath_var=LD_LIBRARY_PATH
9596  shlibpath_overrides_runpath=no
9597  hardcode_into_libs=yes
9598  ;;
9599
9600irix5* | irix6* | nonstopux*)
9601  case $host_os in
9602    nonstopux*) version_type=nonstopux ;;
9603    *)
9604        if test "$lt_cv_prog_gnu_ld" = yes; then
9605                version_type=linux
9606        else
9607                version_type=irix
9608        fi ;;
9609  esac
9610  need_lib_prefix=no
9611  need_version=no
9612  soname_spec='${libname}${release}${shared_ext}$major'
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9614  case $host_os in
9615  irix5* | nonstopux*)
9616    libsuff= shlibsuff=
9617    ;;
9618  *)
9619    case $LD in # libtool.m4 will add one of these switches to LD
9620    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9621      libsuff= shlibsuff= libmagic=32-bit;;
9622    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9623      libsuff=32 shlibsuff=N32 libmagic=N32;;
9624    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9625      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9626    *) libsuff= shlibsuff= libmagic=never-match;;
9627    esac
9628    ;;
9629  esac
9630  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9631  shlibpath_overrides_runpath=no
9632  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9633  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9634  hardcode_into_libs=yes
9635  ;;
9636
9637# No shared lib support for Linux oldld, aout, or coff.
9638linux*oldld* | linux*aout* | linux*coff*)
9639  dynamic_linker=no
9640  ;;
9641
9642# This must be Linux ELF.
9643linux*)
9644  version_type=linux
9645  need_lib_prefix=no
9646  need_version=no
9647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648  soname_spec='${libname}${release}${shared_ext}$major'
9649  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9650  shlibpath_var=LD_LIBRARY_PATH
9651  shlibpath_overrides_runpath=no
9652  # This implies no fast_install, which is unacceptable.
9653  # Some rework will be needed to allow for fast_install
9654  # before this can be enabled.
9655  hardcode_into_libs=yes
9656
9657  # Append ld.so.conf contents to the search path
9658  if test -f /etc/ld.so.conf; then
9659    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' ' '`
9660    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9661  fi
9662
9663  # We used to test for /lib/ld.so.1 and disable shared libraries on
9664  # powerpc, because MkLinux only supported shared libraries with the
9665  # GNU dynamic linker.  Since this was broken with cross compilers,
9666  # most powerpc-linux boxes support dynamic linking these days and
9667  # people can always --disable-shared, the test was removed, and we
9668  # assume the GNU/Linux dynamic linker is in use.
9669  dynamic_linker='GNU/Linux ld.so'
9670  ;;
9671
9672knetbsd*-gnu)
9673  version_type=linux
9674  need_lib_prefix=no
9675  need_version=no
9676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9677  soname_spec='${libname}${release}${shared_ext}$major'
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=no
9680  hardcode_into_libs=yes
9681  dynamic_linker='GNU ld.so'
9682  ;;
9683
9684netbsd*)
9685  version_type=sunos
9686  need_lib_prefix=no
9687  need_version=no
9688  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9691    dynamic_linker='NetBSD (a.out) ld.so'
9692  else
9693    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9694    soname_spec='${libname}${release}${shared_ext}$major'
9695    dynamic_linker='NetBSD ld.elf_so'
9696  fi
9697  shlibpath_var=LD_LIBRARY_PATH
9698  shlibpath_overrides_runpath=yes
9699  hardcode_into_libs=yes
9700  ;;
9701
9702newsos6)
9703  version_type=linux
9704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  shlibpath_overrides_runpath=yes
9707  ;;
9708
9709nto-qnx*)
9710  version_type=linux
9711  need_lib_prefix=no
9712  need_version=no
9713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9714  soname_spec='${libname}${release}${shared_ext}$major'
9715  shlibpath_var=LD_LIBRARY_PATH
9716  shlibpath_overrides_runpath=yes
9717  ;;
9718
9719openbsd*)
9720  version_type=sunos
9721  sys_lib_dlsearch_path_spec="/usr/lib"
9722  need_lib_prefix=no
9723  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9724  case $host_os in
9725    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9726    *)                         need_version=no  ;;
9727  esac
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9732    case $host_os in
9733      openbsd2.[89] | openbsd2.[89].*)
9734        shlibpath_overrides_runpath=no
9735        ;;
9736      *)
9737        shlibpath_overrides_runpath=yes
9738        ;;
9739      esac
9740  else
9741    shlibpath_overrides_runpath=yes
9742  fi
9743  ;;
9744
9745os2*)
9746  libname_spec='$name'
9747  shrext_cmds=".dll"
9748  need_lib_prefix=no
9749  library_names_spec='$libname${shared_ext} $libname.a'
9750  dynamic_linker='OS/2 ld.exe'
9751  shlibpath_var=LIBPATH
9752  ;;
9753
9754osf3* | osf4* | osf5*)
9755  version_type=osf
9756  need_lib_prefix=no
9757  need_version=no
9758  soname_spec='${libname}${release}${shared_ext}$major'
9759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9762  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9763  ;;
9764
9765solaris*)
9766  version_type=linux
9767  need_lib_prefix=no
9768  need_version=no
9769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770  soname_spec='${libname}${release}${shared_ext}$major'
9771  shlibpath_var=LD_LIBRARY_PATH
9772  shlibpath_overrides_runpath=yes
9773  hardcode_into_libs=yes
9774  # ldd complains unless libraries are executable
9775  postinstall_cmds='chmod +x $lib'
9776  ;;
9777
9778sunos4*)
9779  version_type=sunos
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  shlibpath_overrides_runpath=yes
9784  if test "$with_gnu_ld" = yes; then
9785    need_lib_prefix=no
9786  fi
9787  need_version=yes
9788  ;;
9789
9790sysv4 | sysv4.3*)
9791  version_type=linux
9792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793  soname_spec='${libname}${release}${shared_ext}$major'
9794  shlibpath_var=LD_LIBRARY_PATH
9795  case $host_vendor in
9796    sni)
9797      shlibpath_overrides_runpath=no
9798      need_lib_prefix=no
9799      export_dynamic_flag_spec='${wl}-Blargedynsym'
9800      runpath_var=LD_RUN_PATH
9801      ;;
9802    siemens)
9803      need_lib_prefix=no
9804      ;;
9805    motorola)
9806      need_lib_prefix=no
9807      need_version=no
9808      shlibpath_overrides_runpath=no
9809      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9810      ;;
9811  esac
9812  ;;
9813
9814sysv4*MP*)
9815  if test -d /usr/nec ;then
9816    version_type=linux
9817    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9818    soname_spec='$libname${shared_ext}.$major'
9819    shlibpath_var=LD_LIBRARY_PATH
9820  fi
9821  ;;
9822
9823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9824  version_type=freebsd-elf
9825  need_lib_prefix=no
9826  need_version=no
9827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9828  soname_spec='${libname}${release}${shared_ext}$major'
9829  shlibpath_var=LD_LIBRARY_PATH
9830  hardcode_into_libs=yes
9831  if test "$with_gnu_ld" = yes; then
9832    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9833    shlibpath_overrides_runpath=no
9834  else
9835    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9836    shlibpath_overrides_runpath=yes
9837    case $host_os in
9838      sco3.2v5*)
9839        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9840        ;;
9841    esac
9842  fi
9843  sys_lib_dlsearch_path_spec='/usr/lib'
9844  ;;
9845
9846uts4*)
9847  version_type=linux
9848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849  soname_spec='${libname}${release}${shared_ext}$major'
9850  shlibpath_var=LD_LIBRARY_PATH
9851  ;;
9852
9853*)
9854  dynamic_linker=no
9855  ;;
9856esac
9857echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9858echo "${ECHO_T}$dynamic_linker" >&6
9859test "$dynamic_linker" = no && can_build_shared=no
9860
9861variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9862if test "$GCC" = yes; then
9863  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9864fi
9865
9866echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9867echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9868hardcode_action=
9869if test -n "$hardcode_libdir_flag_spec" || \
9870   test -n "$runpath_var" || \
9871   test "X$hardcode_automatic" = "Xyes" ; then
9872
9873  # We can hardcode non-existant directories.
9874  if test "$hardcode_direct" != no &&
9875     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9876     # have to relink, otherwise we might link with an installed library
9877     # when we should be linking with a yet-to-be-installed one
9878     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9879     test "$hardcode_minus_L" != no; then
9880    # Linking always hardcodes the temporary library directory.
9881    hardcode_action=relink
9882  else
9883    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9884    hardcode_action=immediate
9885  fi
9886else
9887  # We cannot hardcode anything, or else we can only hardcode existing
9888  # directories.
9889  hardcode_action=unsupported
9890fi
9891echo "$as_me:$LINENO: result: $hardcode_action" >&5
9892echo "${ECHO_T}$hardcode_action" >&6
9893
9894if test "$hardcode_action" = relink; then
9895  # Fast installation is not supported
9896  enable_fast_install=no
9897elif test "$shlibpath_overrides_runpath" = yes ||
9898     test "$enable_shared" = no; then
9899  # Fast installation is not necessary
9900  enable_fast_install=needless
9901fi
9902
9903striplib=
9904old_striplib=
9905echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9906echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9907if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9908  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9909  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9910  echo "$as_me:$LINENO: result: yes" >&5
9911echo "${ECHO_T}yes" >&6
9912else
9913# FIXME - insert some real tests, host_os isn't really good enough
9914  case $host_os in
9915   darwin*)
9916       if test -n "$STRIP" ; then
9917         striplib="$STRIP -x"
9918         echo "$as_me:$LINENO: result: yes" >&5
9919echo "${ECHO_T}yes" >&6
9920       else
9921  echo "$as_me:$LINENO: result: no" >&5
9922echo "${ECHO_T}no" >&6
9923fi
9924       ;;
9925   *)
9926  echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928    ;;
9929  esac
9930fi
9931
9932if test "x$enable_dlopen" != xyes; then
9933  enable_dlopen=unknown
9934  enable_dlopen_self=unknown
9935  enable_dlopen_self_static=unknown
9936else
9937  lt_cv_dlopen=no
9938  lt_cv_dlopen_libs=
9939
9940  case $host_os in
9941  beos*)
9942    lt_cv_dlopen="load_add_on"
9943    lt_cv_dlopen_libs=
9944    lt_cv_dlopen_self=yes
9945    ;;
9946
9947  mingw* | pw32*)
9948    lt_cv_dlopen="LoadLibrary"
9949    lt_cv_dlopen_libs=
9950   ;;
9951
9952  cygwin*)
9953    lt_cv_dlopen="dlopen"
9954    lt_cv_dlopen_libs=
9955   ;;
9956
9957  darwin*)
9958  # if libdl is installed we need to link against it
9959    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9960echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9961if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9962  echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964  ac_check_lib_save_LIBS=$LIBS
9965LIBS="-ldl  $LIBS"
9966cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972
9973/* Override any gcc2 internal prototype to avoid an error.  */
9974#ifdef __cplusplus
9975extern "C"
9976#endif
9977/* We use char because int might match the return type of a gcc2
9978   builtin and then its argument prototype would still apply.  */
9979char dlopen ();
9980int
9981main ()
9982{
9983dlopen ();
9984  ;
9985  return 0;
9986}
9987_ACEOF
9988rm -f conftest.$ac_objext conftest$ac_exeext
9989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990  (eval $ac_link) 2>conftest.er1
9991  ac_status=$?
9992  grep -v '^ *+' conftest.er1 >conftest.err
9993  rm -f conftest.er1
9994  cat conftest.err >&5
9995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996  (exit $ac_status); } &&
9997         { ac_try='test -z "$ac_c_werror_flag"
9998                         || test ! -s conftest.err'
9999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000  (eval $ac_try) 2>&5
10001  ac_status=$?
10002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); }; } &&
10004         { ac_try='test -s conftest$ac_exeext'
10005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006  (eval $ac_try) 2>&5
10007  ac_status=$?
10008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009  (exit $ac_status); }; }; then
10010  ac_cv_lib_dl_dlopen=yes
10011else
10012  echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015ac_cv_lib_dl_dlopen=no
10016fi
10017rm -f conftest.err conftest.$ac_objext \
10018      conftest$ac_exeext conftest.$ac_ext
10019LIBS=$ac_check_lib_save_LIBS
10020fi
10021echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10022echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10023if test $ac_cv_lib_dl_dlopen = yes; then
10024  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10025else
10026
10027    lt_cv_dlopen="dyld"
10028    lt_cv_dlopen_libs=
10029    lt_cv_dlopen_self=yes
10030
10031fi
10032
10033   ;;
10034
10035  *)
10036    echo "$as_me:$LINENO: checking for shl_load" >&5
10037echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10038if test "${ac_cv_func_shl_load+set}" = set; then
10039  echo $ECHO_N "(cached) $ECHO_C" >&6
10040else
10041  cat >conftest.$ac_ext <<_ACEOF
10042/* confdefs.h.  */
10043_ACEOF
10044cat confdefs.h >>conftest.$ac_ext
10045cat >>conftest.$ac_ext <<_ACEOF
10046/* end confdefs.h.  */
10047/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10048   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10049#define shl_load innocuous_shl_load
10050
10051/* System header to define __stub macros and hopefully few prototypes,
10052    which can conflict with char shl_load (); below.
10053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10054    <limits.h> exists even on freestanding compilers.  */
10055
10056#ifdef __STDC__
10057# include <limits.h>
10058#else
10059# include <assert.h>
10060#endif
10061
10062#undef shl_load
10063
10064/* Override any gcc2 internal prototype to avoid an error.  */
10065#ifdef __cplusplus
10066extern "C"
10067{
10068#endif
10069/* We use char because int might match the return type of a gcc2
10070   builtin and then its argument prototype would still apply.  */
10071char shl_load ();
10072/* The GNU C library defines this for functions which it implements
10073    to always fail with ENOSYS.  Some functions are actually named
10074    something starting with __ and the normal name is an alias.  */
10075#if defined (__stub_shl_load) || defined (__stub___shl_load)
10076choke me
10077#else
10078char (*f) () = shl_load;
10079#endif
10080#ifdef __cplusplus
10081}
10082#endif
10083
10084int
10085main ()
10086{
10087return f != shl_load;
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094  (eval $ac_link) 2>conftest.er1
10095  ac_status=$?
10096  grep -v '^ *+' conftest.er1 >conftest.err
10097  rm -f conftest.er1
10098  cat conftest.err >&5
10099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100  (exit $ac_status); } &&
10101         { ac_try='test -z "$ac_c_werror_flag"
10102                         || test ! -s conftest.err'
10103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104  (eval $ac_try) 2>&5
10105  ac_status=$?
10106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107  (exit $ac_status); }; } &&
10108         { ac_try='test -s conftest$ac_exeext'
10109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110  (eval $ac_try) 2>&5
10111  ac_status=$?
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); }; }; then
10114  ac_cv_func_shl_load=yes
10115else
10116  echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119ac_cv_func_shl_load=no
10120fi
10121rm -f conftest.err conftest.$ac_objext \
10122      conftest$ac_exeext conftest.$ac_ext
10123fi
10124echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10125echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10126if test $ac_cv_func_shl_load = yes; then
10127  lt_cv_dlopen="shl_load"
10128else
10129  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10130echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10131if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10132  echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134  ac_check_lib_save_LIBS=$LIBS
10135LIBS="-ldld  $LIBS"
10136cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h.  */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h.  */
10142
10143/* Override any gcc2 internal prototype to avoid an error.  */
10144#ifdef __cplusplus
10145extern "C"
10146#endif
10147/* We use char because int might match the return type of a gcc2
10148   builtin and then its argument prototype would still apply.  */
10149char shl_load ();
10150int
10151main ()
10152{
10153shl_load ();
10154  ;
10155  return 0;
10156}
10157_ACEOF
10158rm -f conftest.$ac_objext conftest$ac_exeext
10159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160  (eval $ac_link) 2>conftest.er1
10161  ac_status=$?
10162  grep -v '^ *+' conftest.er1 >conftest.err
10163  rm -f conftest.er1
10164  cat conftest.err >&5
10165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166  (exit $ac_status); } &&
10167         { ac_try='test -z "$ac_c_werror_flag"
10168                         || test ! -s conftest.err'
10169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170  (eval $ac_try) 2>&5
10171  ac_status=$?
10172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173  (exit $ac_status); }; } &&
10174         { ac_try='test -s conftest$ac_exeext'
10175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176  (eval $ac_try) 2>&5
10177  ac_status=$?
10178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179  (exit $ac_status); }; }; then
10180  ac_cv_lib_dld_shl_load=yes
10181else
10182  echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185ac_cv_lib_dld_shl_load=no
10186fi
10187rm -f conftest.err conftest.$ac_objext \
10188      conftest$ac_exeext conftest.$ac_ext
10189LIBS=$ac_check_lib_save_LIBS
10190fi
10191echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10192echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10193if test $ac_cv_lib_dld_shl_load = yes; then
10194  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10195else
10196  echo "$as_me:$LINENO: checking for dlopen" >&5
10197echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10198if test "${ac_cv_func_dlopen+set}" = set; then
10199  echo $ECHO_N "(cached) $ECHO_C" >&6
10200else
10201  cat >conftest.$ac_ext <<_ACEOF
10202/* confdefs.h.  */
10203_ACEOF
10204cat confdefs.h >>conftest.$ac_ext
10205cat >>conftest.$ac_ext <<_ACEOF
10206/* end confdefs.h.  */
10207/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10208   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10209#define dlopen innocuous_dlopen
10210
10211/* System header to define __stub macros and hopefully few prototypes,
10212    which can conflict with char dlopen (); below.
10213    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10214    <limits.h> exists even on freestanding compilers.  */
10215
10216#ifdef __STDC__
10217# include <limits.h>
10218#else
10219# include <assert.h>
10220#endif
10221
10222#undef dlopen
10223
10224/* Override any gcc2 internal prototype to avoid an error.  */
10225#ifdef __cplusplus
10226extern "C"
10227{
10228#endif
10229/* We use char because int might match the return type of a gcc2
10230   builtin and then its argument prototype would still apply.  */
10231char dlopen ();
10232/* The GNU C library defines this for functions which it implements
10233    to always fail with ENOSYS.  Some functions are actually named
10234    something starting with __ and the normal name is an alias.  */
10235#if defined (__stub_dlopen) || defined (__stub___dlopen)
10236choke me
10237#else
10238char (*f) () = dlopen;
10239#endif
10240#ifdef __cplusplus
10241}
10242#endif
10243
10244int
10245main ()
10246{
10247return f != dlopen;
10248  ;
10249  return 0;
10250}
10251_ACEOF
10252rm -f conftest.$ac_objext conftest$ac_exeext
10253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10254  (eval $ac_link) 2>conftest.er1
10255  ac_status=$?
10256  grep -v '^ *+' conftest.er1 >conftest.err
10257  rm -f conftest.er1
10258  cat conftest.err >&5
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); } &&
10261         { ac_try='test -z "$ac_c_werror_flag"
10262                         || test ! -s conftest.err'
10263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264  (eval $ac_try) 2>&5
10265  ac_status=$?
10266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267  (exit $ac_status); }; } &&
10268         { ac_try='test -s conftest$ac_exeext'
10269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270  (eval $ac_try) 2>&5
10271  ac_status=$?
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); }; }; then
10274  ac_cv_func_dlopen=yes
10275else
10276  echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279ac_cv_func_dlopen=no
10280fi
10281rm -f conftest.err conftest.$ac_objext \
10282      conftest$ac_exeext conftest.$ac_ext
10283fi
10284echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10285echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10286if test $ac_cv_func_dlopen = yes; then
10287  lt_cv_dlopen="dlopen"
10288else
10289  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10290echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10291if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10292  echo $ECHO_N "(cached) $ECHO_C" >&6
10293else
10294  ac_check_lib_save_LIBS=$LIBS
10295LIBS="-ldl  $LIBS"
10296cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h.  */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h.  */
10302
10303/* Override any gcc2 internal prototype to avoid an error.  */
10304#ifdef __cplusplus
10305extern "C"
10306#endif
10307/* We use char because int might match the return type of a gcc2
10308   builtin and then its argument prototype would still apply.  */
10309char dlopen ();
10310int
10311main ()
10312{
10313dlopen ();
10314  ;
10315  return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
10319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320  (eval $ac_link) 2>conftest.er1
10321  ac_status=$?
10322  grep -v '^ *+' conftest.er1 >conftest.err
10323  rm -f conftest.er1
10324  cat conftest.err >&5
10325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326  (exit $ac_status); } &&
10327         { ac_try='test -z "$ac_c_werror_flag"
10328                         || test ! -s conftest.err'
10329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330  (eval $ac_try) 2>&5
10331  ac_status=$?
10332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333  (exit $ac_status); }; } &&
10334         { ac_try='test -s conftest$ac_exeext'
10335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336  (eval $ac_try) 2>&5
10337  ac_status=$?
10338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339  (exit $ac_status); }; }; then
10340  ac_cv_lib_dl_dlopen=yes
10341else
10342  echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345ac_cv_lib_dl_dlopen=no
10346fi
10347rm -f conftest.err conftest.$ac_objext \
10348      conftest$ac_exeext conftest.$ac_ext
10349LIBS=$ac_check_lib_save_LIBS
10350fi
10351echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10352echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10353if test $ac_cv_lib_dl_dlopen = yes; then
10354  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10355else
10356  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10357echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10358if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10359  echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361  ac_check_lib_save_LIBS=$LIBS
10362LIBS="-lsvld  $LIBS"
10363cat >conftest.$ac_ext <<_ACEOF
10364/* confdefs.h.  */
10365_ACEOF
10366cat confdefs.h >>conftest.$ac_ext
10367cat >>conftest.$ac_ext <<_ACEOF
10368/* end confdefs.h.  */
10369
10370/* Override any gcc2 internal prototype to avoid an error.  */
10371#ifdef __cplusplus
10372extern "C"
10373#endif
10374/* We use char because int might match the return type of a gcc2
10375   builtin and then its argument prototype would still apply.  */
10376char dlopen ();
10377int
10378main ()
10379{
10380dlopen ();
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385rm -f conftest.$ac_objext conftest$ac_exeext
10386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387  (eval $ac_link) 2>conftest.er1
10388  ac_status=$?
10389  grep -v '^ *+' conftest.er1 >conftest.err
10390  rm -f conftest.er1
10391  cat conftest.err >&5
10392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393  (exit $ac_status); } &&
10394         { ac_try='test -z "$ac_c_werror_flag"
10395                         || test ! -s conftest.err'
10396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397  (eval $ac_try) 2>&5
10398  ac_status=$?
10399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400  (exit $ac_status); }; } &&
10401         { ac_try='test -s conftest$ac_exeext'
10402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403  (eval $ac_try) 2>&5
10404  ac_status=$?
10405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406  (exit $ac_status); }; }; then
10407  ac_cv_lib_svld_dlopen=yes
10408else
10409  echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
10411
10412ac_cv_lib_svld_dlopen=no
10413fi
10414rm -f conftest.err conftest.$ac_objext \
10415      conftest$ac_exeext conftest.$ac_ext
10416LIBS=$ac_check_lib_save_LIBS
10417fi
10418echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10419echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10420if test $ac_cv_lib_svld_dlopen = yes; then
10421  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10422else
10423  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10424echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10425if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10426  echo $ECHO_N "(cached) $ECHO_C" >&6
10427else
10428  ac_check_lib_save_LIBS=$LIBS
10429LIBS="-ldld  $LIBS"
10430cat >conftest.$ac_ext <<_ACEOF
10431/* confdefs.h.  */
10432_ACEOF
10433cat confdefs.h >>conftest.$ac_ext
10434cat >>conftest.$ac_ext <<_ACEOF
10435/* end confdefs.h.  */
10436
10437/* Override any gcc2 internal prototype to avoid an error.  */
10438#ifdef __cplusplus
10439extern "C"
10440#endif
10441/* We use char because int might match the return type of a gcc2
10442   builtin and then its argument prototype would still apply.  */
10443char dld_link ();
10444int
10445main ()
10446{
10447dld_link ();
10448  ;
10449  return 0;
10450}
10451_ACEOF
10452rm -f conftest.$ac_objext conftest$ac_exeext
10453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454  (eval $ac_link) 2>conftest.er1
10455  ac_status=$?
10456  grep -v '^ *+' conftest.er1 >conftest.err
10457  rm -f conftest.er1
10458  cat conftest.err >&5
10459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460  (exit $ac_status); } &&
10461         { ac_try='test -z "$ac_c_werror_flag"
10462                         || test ! -s conftest.err'
10463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464  (eval $ac_try) 2>&5
10465  ac_status=$?
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); }; } &&
10468         { ac_try='test -s conftest$ac_exeext'
10469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470  (eval $ac_try) 2>&5
10471  ac_status=$?
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); }; }; then
10474  ac_cv_lib_dld_dld_link=yes
10475else
10476  echo "$as_me: failed program was:" >&5
10477sed 's/^/| /' conftest.$ac_ext >&5
10478
10479ac_cv_lib_dld_dld_link=no
10480fi
10481rm -f conftest.err conftest.$ac_objext \
10482      conftest$ac_exeext conftest.$ac_ext
10483LIBS=$ac_check_lib_save_LIBS
10484fi
10485echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10486echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10487if test $ac_cv_lib_dld_dld_link = yes; then
10488  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10489fi
10490
10491
10492fi
10493
10494
10495fi
10496
10497
10498fi
10499
10500
10501fi
10502
10503
10504fi
10505
10506    ;;
10507  esac
10508
10509  if test "x$lt_cv_dlopen" != xno; then
10510    enable_dlopen=yes
10511  else
10512    enable_dlopen=no
10513  fi
10514
10515  case $lt_cv_dlopen in
10516  dlopen)
10517    save_CPPFLAGS="$CPPFLAGS"
10518    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10519
10520    save_LDFLAGS="$LDFLAGS"
10521    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10522
10523    save_LIBS="$LIBS"
10524    LIBS="$lt_cv_dlopen_libs $LIBS"
10525
10526    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10527echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10528if test "${lt_cv_dlopen_self+set}" = set; then
10529  echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531          if test "$cross_compiling" = yes; then :
10532  lt_cv_dlopen_self=cross
10533else
10534  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10535  lt_status=$lt_dlunknown
10536  cat > conftest.$ac_ext <<EOF
10537#line 10537 "configure"
10538#include "confdefs.h"
10539
10540#if HAVE_DLFCN_H
10541#include <dlfcn.h>
10542#endif
10543
10544#include <stdio.h>
10545
10546#ifdef RTLD_GLOBAL
10547#  define LT_DLGLOBAL           RTLD_GLOBAL
10548#else
10549#  ifdef DL_GLOBAL
10550#    define LT_DLGLOBAL         DL_GLOBAL
10551#  else
10552#    define LT_DLGLOBAL         0
10553#  endif
10554#endif
10555
10556/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10557   find out it does not work in some platform. */
10558#ifndef LT_DLLAZY_OR_NOW
10559#  ifdef RTLD_LAZY
10560#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10561#  else
10562#    ifdef DL_LAZY
10563#      define LT_DLLAZY_OR_NOW          DL_LAZY
10564#    else
10565#      ifdef RTLD_NOW
10566#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10567#      else
10568#        ifdef DL_NOW
10569#          define LT_DLLAZY_OR_NOW      DL_NOW
10570#        else
10571#          define LT_DLLAZY_OR_NOW      0
10572#        endif
10573#      endif
10574#    endif
10575#  endif
10576#endif
10577
10578#ifdef __cplusplus
10579extern "C" void exit (int);
10580#endif
10581
10582void fnord() { int i=42;}
10583int main ()
10584{
10585  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10586  int status = $lt_dlunknown;
10587
10588  if (self)
10589    {
10590      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10591      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10592      /* dlclose (self); */
10593    }
10594  else
10595    puts (dlerror ());
10596
10597    exit (status);
10598}
10599EOF
10600  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601  (eval $ac_link) 2>&5
10602  ac_status=$?
10603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10605    (./conftest; exit; ) >&5 2>/dev/null
10606    lt_status=$?
10607    case x$lt_status in
10608      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10609      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10610      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10611    esac
10612  else :
10613    # compilation failed
10614    lt_cv_dlopen_self=no
10615  fi
10616fi
10617rm -fr conftest*
10618
10619
10620fi
10621echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10622echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10623
10624    if test "x$lt_cv_dlopen_self" = xyes; then
10625      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10626      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10627echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10628if test "${lt_cv_dlopen_self_static+set}" = set; then
10629  echo $ECHO_N "(cached) $ECHO_C" >&6
10630else
10631          if test "$cross_compiling" = yes; then :
10632  lt_cv_dlopen_self_static=cross
10633else
10634  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10635  lt_status=$lt_dlunknown
10636  cat > conftest.$ac_ext <<EOF
10637#line 10637 "configure"
10638#include "confdefs.h"
10639
10640#if HAVE_DLFCN_H
10641#include <dlfcn.h>
10642#endif
10643
10644#include <stdio.h>
10645
10646#ifdef RTLD_GLOBAL
10647#  define LT_DLGLOBAL           RTLD_GLOBAL
10648#else
10649#  ifdef DL_GLOBAL
10650#    define LT_DLGLOBAL         DL_GLOBAL
10651#  else
10652#    define LT_DLGLOBAL         0
10653#  endif
10654#endif
10655
10656/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10657   find out it does not work in some platform. */
10658#ifndef LT_DLLAZY_OR_NOW
10659#  ifdef RTLD_LAZY
10660#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10661#  else
10662#    ifdef DL_LAZY
10663#      define LT_DLLAZY_OR_NOW          DL_LAZY
10664#    else
10665#      ifdef RTLD_NOW
10666#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10667#      else
10668#        ifdef DL_NOW
10669#          define LT_DLLAZY_OR_NOW      DL_NOW
10670#        else
10671#          define LT_DLLAZY_OR_NOW      0
10672#        endif
10673#      endif
10674#    endif
10675#  endif
10676#endif
10677
10678#ifdef __cplusplus
10679extern "C" void exit (int);
10680#endif
10681
10682void fnord() { int i=42;}
10683int main ()
10684{
10685  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10686  int status = $lt_dlunknown;
10687
10688  if (self)
10689    {
10690      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10691      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10692      /* dlclose (self); */
10693    }
10694  else
10695    puts (dlerror ());
10696
10697    exit (status);
10698}
10699EOF
10700  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701  (eval $ac_link) 2>&5
10702  ac_status=$?
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10705    (./conftest; exit; ) >&5 2>/dev/null
10706    lt_status=$?
10707    case x$lt_status in
10708      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10709      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10710      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10711    esac
10712  else :
10713    # compilation failed
10714    lt_cv_dlopen_self_static=no
10715  fi
10716fi
10717rm -fr conftest*
10718
10719
10720fi
10721echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10722echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10723    fi
10724
10725    CPPFLAGS="$save_CPPFLAGS"
10726    LDFLAGS="$save_LDFLAGS"
10727    LIBS="$save_LIBS"
10728    ;;
10729  esac
10730
10731  case $lt_cv_dlopen_self in
10732  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10733  *) enable_dlopen_self=unknown ;;
10734  esac
10735
10736  case $lt_cv_dlopen_self_static in
10737  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10738  *) enable_dlopen_self_static=unknown ;;
10739  esac
10740fi
10741
10742
10743# Report which library types will actually be built
10744echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10745echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10746echo "$as_me:$LINENO: result: $can_build_shared" >&5
10747echo "${ECHO_T}$can_build_shared" >&6
10748
10749echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10750echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10751test "$can_build_shared" = "no" && enable_shared=no
10752
10753# On AIX, shared libraries and static libraries use the same namespace, and
10754# are all built from PIC.
10755case $host_os in
10756aix3*)
10757  test "$enable_shared" = yes && enable_static=no
10758  if test -n "$RANLIB"; then
10759    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10760    postinstall_cmds='$RANLIB $lib'
10761  fi
10762  ;;
10763
10764aix4* | aix5*)
10765  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10766    test "$enable_shared" = yes && enable_static=no
10767  fi
10768    ;;
10769esac
10770echo "$as_me:$LINENO: result: $enable_shared" >&5
10771echo "${ECHO_T}$enable_shared" >&6
10772
10773echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10774echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10775# Make sure either enable_shared or enable_static is yes.
10776test "$enable_shared" = yes || enable_static=yes
10777echo "$as_me:$LINENO: result: $enable_static" >&5
10778echo "${ECHO_T}$enable_static" >&6
10779
10780# The else clause should only fire when bootstrapping the
10781# libtool distribution, otherwise you forgot to ship ltmain.sh
10782# with your package, and you will get complaints that there are
10783# no rules to generate ltmain.sh.
10784if test -f "$ltmain"; then
10785  # See if we are running on zsh, and set the options which allow our commands through
10786  # without removal of \ escapes.
10787  if test -n "${ZSH_VERSION+set}" ; then
10788    setopt NO_GLOB_SUBST
10789  fi
10790  # Now