source: trunk/Clp/configure @ 984

Last change on this file since 984 was 984, checked in by andreasw, 13 years ago

enable configuration (libtool check issue) for cross compilation

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