source: ThirdParty/Blas/stable/1.0/configure @ 969

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

reran autotools

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