source: ThirdParty/Blas/branches/BSPsplit/configure @ 1437

Last change on this file since 1437 was 1437, checked in by stefan, 11 years ago

rerun autotools

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