source: stable/1.3/Clp/configure @ 1799

Last change on this file since 1799 was 1023, checked in by forrest, 13 years ago

for release

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