source: ThirdParty/Lapack/stable/1.0/configure @ 455

Last change on this file since 455 was 455, checked in by andreasw, 14 years ago

regenerated autotools files with latest stable/0.5

  • Property svn:executable set to *
File size: 819.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.0stable.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='1.0stable'
433PACKAGE_STRING='ThirdPartyLapack 1.0stable'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_BUILD_LAPACK_TRUE COIN_BUILD_LAPACK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyLapack 1.0stable to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyLapack 1.0stable:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-lapack compile this project (Lapack) 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. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          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-lapack-verbosity specify the debug verbosity level for project Lapack
1096  --with-lapack-checklevel
1097                          specify the sanity check level for project Lapack
1098  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1099  --with-pic              try to use only PIC/non-PIC objects [default=use
1100                          both]
1101  --with-tags[=TAGS]
1102                          include additional configurations [automatic]
1103  --with-blas             specify BLAS library (or BUILD for compilation)
1104  --with-lapack           specify LAPACK library (or BUILD for compilation)
1105
1106Some influential environment variables:
1107  CDEFS       Additional -D flags to be used when compiling C code.
1108  ADD_CFLAGS  Additional C compiler options
1109  DBG_CFLAGS  Debug C compiler options
1110  OPT_CFLAGS  Optimize C compiler options
1111  CC          C compiler command
1112  CFLAGS      C compiler flags
1113  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1114              nonstandard directory <lib dir>
1115  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116              headers in a nonstandard directory <include dir>
1117  MPICC       C MPI Compiler
1118  ADD_FFLAGS  Additional Fortran compiler options
1119  DBG_FFLAGS  Debug Fortran compiler options
1120  OPT_FFLAGS  Optimize Fortran compiler options
1121  F77         Fortran 77 compiler command
1122  FFLAGS      Fortran 77 compiler flags
1123  MPIF77      Fortran MPI Compiler
1124  CPP         C preprocessor
1125  CXX         C++ compiler command
1126  CXXFLAGS    C++ compiler flags
1127  CXXCPP      C++ preprocessor
1128
1129Use these variables to override the choices made by `configure' or to help
1130it to find libraries and programs with nonstandard names/locations.
1131
1132Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1133_ACEOF
1134fi
1135
1136if test "$ac_init_help" = "recursive"; then
1137  # If there are subdirs, report their specific --help.
1138  ac_popdir=`pwd`
1139  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1140    test -d $ac_dir || continue
1141    ac_builddir=.
1142
1143if test "$ac_dir" != .; then
1144  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1145  # A "../" for each directory in $ac_dir_suffix.
1146  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1147else
1148  ac_dir_suffix= ac_top_builddir=
1149fi
1150
1151case $srcdir in
1152  .)  # No --srcdir option.  We are building in place.
1153    ac_srcdir=.
1154    if test -z "$ac_top_builddir"; then
1155       ac_top_srcdir=.
1156    else
1157       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1158    fi ;;
1159  [\\/]* | ?:[\\/]* )  # Absolute path.
1160    ac_srcdir=$srcdir$ac_dir_suffix;
1161    ac_top_srcdir=$srcdir ;;
1162  *) # Relative path.
1163    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1164    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1165esac
1166
1167# Do not use `cd foo && pwd` to compute absolute paths, because
1168# the directories may not exist.
1169case `pwd` in
1170.) ac_abs_builddir="$ac_dir";;
1171*)
1172  case "$ac_dir" in
1173  .) ac_abs_builddir=`pwd`;;
1174  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1175  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1176  esac;;
1177esac
1178case $ac_abs_builddir in
1179.) ac_abs_top_builddir=${ac_top_builddir}.;;
1180*)
1181  case ${ac_top_builddir}. in
1182  .) ac_abs_top_builddir=$ac_abs_builddir;;
1183  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1184  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1185  esac;;
1186esac
1187case $ac_abs_builddir in
1188.) ac_abs_srcdir=$ac_srcdir;;
1189*)
1190  case $ac_srcdir in
1191  .) ac_abs_srcdir=$ac_abs_builddir;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1193  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_top_srcdir=$ac_top_srcdir;;
1198*)
1199  case $ac_top_srcdir in
1200  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1202  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1203  esac;;
1204esac
1205
1206    cd $ac_dir
1207    # Check for guested configure; otherwise get Cygnus style configure.
1208    if test -f $ac_srcdir/configure.gnu; then
1209      echo
1210      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1211    elif test -f $ac_srcdir/configure; then
1212      echo
1213      $SHELL $ac_srcdir/configure  --help=recursive
1214    elif test -f $ac_srcdir/configure.ac ||
1215           test -f $ac_srcdir/configure.in; then
1216      echo
1217      $ac_configure --help
1218    else
1219      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1220    fi
1221    cd $ac_popdir
1222  done
1223fi
1224
1225test -n "$ac_init_help" && exit 0
1226if $ac_init_version; then
1227  cat <<\_ACEOF
1228ThirdPartyLapack configure 1.0stable
1229generated by GNU Autoconf 2.59
1230
1231Copyright (C) 2003 Free Software Foundation, Inc.
1232This configure script is free software; the Free Software Foundation
1233gives unlimited permission to copy, distribute and modify it.
1234
1235
1236Copyright 2006 International Business Machines and others.
1237All Rights Reserved.
1238This file is part of the open source package Coin which is distributed
1239under the Common Public License.
1240_ACEOF
1241  exit 0
1242fi
1243exec 5>config.log
1244cat >&5 <<_ACEOF
1245This file contains any messages produced by compilers while
1246running configure, to aid debugging if configure makes a mistake.
1247
1248It was created by ThirdPartyLapack $as_me 1.0stable, which was
1249generated by GNU Autoconf 2.59.  Invocation command line was
1250
1251  $ $0 $@
1252
1253_ACEOF
1254{
1255cat <<_ASUNAME
1256## --------- ##
1257## Platform. ##
1258## --------- ##
1259
1260hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1261uname -m = `(uname -m) 2>/dev/null || echo unknown`
1262uname -r = `(uname -r) 2>/dev/null || echo unknown`
1263uname -s = `(uname -s) 2>/dev/null || echo unknown`
1264uname -v = `(uname -v) 2>/dev/null || echo unknown`
1265
1266/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1267/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1268
1269/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1270/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1271/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1272hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1273/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1274/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1275/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1276
1277_ASUNAME
1278
1279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1280for as_dir in $PATH
1281do
1282  IFS=$as_save_IFS
1283  test -z "$as_dir" && as_dir=.
1284  echo "PATH: $as_dir"
1285done
1286
1287} >&5
1288
1289cat >&5 <<_ACEOF
1290
1291
1292## ----------- ##
1293## Core tests. ##
1294## ----------- ##
1295
1296_ACEOF
1297
1298
1299# Keep a trace of the command line.
1300# Strip out --no-create and --no-recursion so they do not pile up.
1301# Strip out --silent because we don't want to record it for future runs.
1302# Also quote any args containing shell meta-characters.
1303# Make two passes to allow for proper duplicate-argument suppression.
1304ac_configure_args=
1305ac_configure_args0=
1306ac_configure_args1=
1307ac_sep=
1308ac_must_keep_next=false
1309for ac_pass in 1 2
1310do
1311  for ac_arg
1312  do
1313    case $ac_arg in
1314    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1315    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316    | -silent | --silent | --silen | --sile | --sil)
1317      continue ;;
1318    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1320    esac
1321    case $ac_pass in
1322    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1323    2)
1324      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1325      if test $ac_must_keep_next = true; then
1326        ac_must_keep_next=false # Got value, back to normal.
1327      else
1328        case $ac_arg in
1329          *=* | --config-cache | -C | -disable-* | --disable-* \
1330          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1331          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1332          | -with-* | --with-* | -without-* | --without-* | --x)
1333            case "$ac_configure_args0 " in
1334              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1335            esac
1336            ;;
1337          -* ) ac_must_keep_next=true ;;
1338        esac
1339      fi
1340      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1341      # Get rid of the leading space.
1342      ac_sep=" "
1343      ;;
1344    esac
1345  done
1346done
1347$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1348$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1349
1350# When interrupted or exit'd, cleanup temporary files, and complete
1351# config.log.  We remove comments because anyway the quotes in there
1352# would cause problems or look ugly.
1353# WARNING: Be sure not to use single quotes in there, as some shells,
1354# such as our DU 5.0 friend, will then `close' the trap.
1355trap 'exit_status=$?
1356  # Save into config.log some information that might help in debugging.
1357  {
1358    echo
1359
1360    cat <<\_ASBOX
1361## ---------------- ##
1362## Cache variables. ##
1363## ---------------- ##
1364_ASBOX
1365    echo
1366    # The following way of writing the cache mishandles newlines in values,
1367{
1368  (set) 2>&1 |
1369    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1370    *ac_space=\ *)
1371      sed -n \
1372        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1373          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1374      ;;
1375    *)
1376      sed -n \
1377        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1378      ;;
1379    esac;
1380}
1381    echo
1382
1383    cat <<\_ASBOX
1384## ----------------- ##
1385## Output variables. ##
1386## ----------------- ##
1387_ASBOX
1388    echo
1389    for ac_var in $ac_subst_vars
1390    do
1391      eval ac_val=$`echo $ac_var`
1392      echo "$ac_var='"'"'$ac_val'"'"'"
1393    done | sort
1394    echo
1395
1396    if test -n "$ac_subst_files"; then
1397      cat <<\_ASBOX
1398## ------------- ##
1399## Output files. ##
1400## ------------- ##
1401_ASBOX
1402      echo
1403      for ac_var in $ac_subst_files
1404      do
1405        eval ac_val=$`echo $ac_var`
1406        echo "$ac_var='"'"'$ac_val'"'"'"
1407      done | sort
1408      echo
1409    fi
1410
1411    if test -s confdefs.h; then
1412      cat <<\_ASBOX
1413## ----------- ##
1414## confdefs.h. ##
1415## ----------- ##
1416_ASBOX
1417      echo
1418      sed "/^$/d" confdefs.h | sort
1419      echo
1420    fi
1421    test "$ac_signal" != 0 &&
1422      echo "$as_me: caught signal $ac_signal"
1423    echo "$as_me: exit $exit_status"
1424  } >&5
1425  rm -f core *.core &&
1426  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1427    exit $exit_status
1428     ' 0
1429for ac_signal in 1 2 13 15; do
1430  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1431done
1432ac_signal=0
1433
1434# confdefs.h avoids OS command line length limits that DEFS can exceed.
1435rm -rf conftest* confdefs.h
1436# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1437echo >confdefs.h
1438
1439# Predefined preprocessor variables.
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_NAME "$PACKAGE_NAME"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_VERSION "$PACKAGE_VERSION"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_STRING "$PACKAGE_STRING"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1463_ACEOF
1464
1465
1466# Let the site file select an alternate cache file if it wants to.
1467# Prefer explicitly selected file to automatically selected ones.
1468if test -z "$CONFIG_SITE"; then
1469  if test "x$prefix" != xNONE; then
1470    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1471  else
1472    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1473  fi
1474fi
1475for ac_site_file in $CONFIG_SITE; do
1476  if test -r "$ac_site_file"; then
1477    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1478echo "$as_me: loading site script $ac_site_file" >&6;}
1479    sed 's/^/| /' "$ac_site_file" >&5
1480    . "$ac_site_file"
1481  fi
1482done
1483
1484if test -r "$cache_file"; then
1485  # Some versions of bash will fail to source /dev/null (special
1486  # files actually), so we avoid doing that.
1487  if test -f "$cache_file"; then
1488    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1489echo "$as_me: loading cache $cache_file" >&6;}
1490    case $cache_file in
1491      [\\/]* | ?:[\\/]* ) . $cache_file;;
1492      *)                      . ./$cache_file;;
1493    esac
1494  fi
1495else
1496  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1497echo "$as_me: creating cache $cache_file" >&6;}
1498  >$cache_file
1499fi
1500
1501# Check that the precious variables saved in the cache have kept the same
1502# value.
1503ac_cache_corrupted=false
1504for ac_var in `(set) 2>&1 |
1505               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1506  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1507  eval ac_new_set=\$ac_env_${ac_var}_set
1508  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1509  eval ac_new_val="\$ac_env_${ac_var}_value"
1510  case $ac_old_set,$ac_new_set in
1511    set,)
1512      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1513echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1514      ac_cache_corrupted=: ;;
1515    ,set)
1516      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1517echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1518      ac_cache_corrupted=: ;;
1519    ,);;
1520    *)
1521      if test "x$ac_old_val" != "x$ac_new_val"; then
1522        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1523echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1524        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1525echo "$as_me:   former value:  $ac_old_val" >&2;}
1526        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1527echo "$as_me:   current value: $ac_new_val" >&2;}
1528        ac_cache_corrupted=:
1529      fi;;
1530  esac
1531  # Pass precious variables to config.status.
1532  if test "$ac_new_set" = set; then
1533    case $ac_new_val in
1534    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1535      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1536    *) ac_arg=$ac_var=$ac_new_val ;;
1537    esac
1538    case " $ac_configure_args " in
1539      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1540      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1541    esac
1542  fi
1543done
1544if $ac_cache_corrupted; then
1545  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1546echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1547  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1548echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1549   { (exit 1); exit 1; }; }
1550fi
1551
1552ac_ext=c
1553ac_cpp='$CPP $CPPFLAGS'
1554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1556ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587# List one file in the package so that the configure script can test
1588# whether the package is actually there
1589
1590
1591# Where should everything be installed by default?  Here, we want it
1592# to be installed directly in 'bin', 'lib', 'include' subdirectories
1593# of the directory where configure is run.  The default would be
1594# /usr/local.
1595
1596
1597# Initialize the ADDLIBS variable
1598ADDLIBS="-lm $LIBS"
1599
1600
1601# Initialize the FADDLIBS variable (which is to be used with a fortran
1602# compiler and will not include FLIBS)
1603FADDLIBS="$LIBS"
1604
1605
1606# A useful makefile conditional that is always false
1607
1608
1609if false; then
1610  ALWAYS_FALSE_TRUE=
1611  ALWAYS_FALSE_FALSE='#'
1612else
1613  ALWAYS_FALSE_TRUE='#'
1614  ALWAYS_FALSE_FALSE=
1615fi
1616
1617
1618# We set the following variable so that we know later in AC_COIN_FINALIZE
1619# that we are in a project main directory
1620coin_projectdir=yes
1621
1622
1623#############################################################################
1624#                         Standard build tool stuff                         #
1625#############################################################################
1626
1627# Get the system type
1628ac_aux_dir=
1629for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1630  if test -f $ac_dir/install-sh; then
1631    ac_aux_dir=$ac_dir
1632    ac_install_sh="$ac_aux_dir/install-sh -c"
1633    break
1634  elif test -f $ac_dir/install.sh; then
1635    ac_aux_dir=$ac_dir
1636    ac_install_sh="$ac_aux_dir/install.sh -c"
1637    break
1638  elif test -f $ac_dir/shtool; then
1639    ac_aux_dir=$ac_dir
1640    ac_install_sh="$ac_aux_dir/shtool install -c"
1641    break
1642  fi
1643done
1644if test -z "$ac_aux_dir"; then
1645  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647   { (exit 1); exit 1; }; }
1648fi
1649ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1650ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1651ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1652
1653# Make sure we can run config.sub.
1654$ac_config_sub sun4 >/dev/null 2>&1 ||
1655  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657   { (exit 1); exit 1; }; }
1658
1659echo "$as_me:$LINENO: checking build system type" >&5
1660echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661if test "${ac_cv_build+set}" = set; then
1662  echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664  ac_cv_build_alias=$build_alias
1665test -z "$ac_cv_build_alias" &&
1666  ac_cv_build_alias=`$ac_config_guess`
1667test -z "$ac_cv_build_alias" &&
1668  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670   { (exit 1); exit 1; }; }
1671ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1672  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674   { (exit 1); exit 1; }; }
1675
1676fi
1677echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678echo "${ECHO_T}$ac_cv_build" >&6
1679build=$ac_cv_build
1680build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685
1686# Check if user wants to produce debugging code
1687
1688echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1689echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1690
1691# Check whether --enable-debug or --disable-debug was given.
1692if test "${enable_debug+set}" = set; then
1693  enableval="$enable_debug"
1694  case "${enableval}" in
1695   yes) coin_debug_compile=true
1696        if test "${enable_shared+set}" = set; then :; else
1697          enable_shared=no
1698        fi
1699        ;;
1700   no)  coin_debug_compile=false
1701        ;;
1702   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1703echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1704   { (exit 1); exit 1; }; }
1705        ;;
1706esac
1707else
1708  coin_debug_compile=false
1709fi;
1710
1711# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1712if test "${enable_debug_lapack+set}" = set; then
1713  enableval="$enable_debug_lapack"
1714  case "${enableval}" in
1715    yes) coin_debug_compile=true
1716         enable_shared=no
1717         ;;
1718    no)  coin_debug_compile=false
1719         ;;
1720    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1721echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1722   { (exit 1); exit 1; }; }
1723         ;;
1724 esac
1725else
1726  :
1727fi;
1728
1729 # m4_ifvaln([Lapack],
1730
1731if test $coin_debug_compile = true; then
1732  echo "$as_me:$LINENO: result: yes" >&5
1733echo "${ECHO_T}yes" >&6
1734else
1735  echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739
1740# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1741if test "${with_lapack_verbosity+set}" = set; then
1742  withval="$with_lapack_verbosity"
1743  if test "$withval" = yes; then
1744                withval=1
1745              fi
1746              coin_lapack_verbosity=$withval
1747else
1748  coin_lapack_verbosity=0
1749fi;
1750
1751cat >>confdefs.h <<_ACEOF
1752#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1753_ACEOF
1754
1755
1756
1757# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1758if test "${with_lapack_checklevel+set}" = set; then
1759  withval="$with_lapack_checklevel"
1760  if test "$withval" = yes; then
1761                withval=1
1762              fi
1763              coin_lapack_checklevel=$withval
1764else
1765  coin_lapack_checklevel=0
1766fi;
1767
1768cat >>confdefs.h <<_ACEOF
1769#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1770_ACEOF
1771
1772
1773# We use the following variable to have a string with the upper case
1774# version of the project name
1775COIN_PRJCT=LAPACK
1776
1777
1778 # m4_ifvaln([Lapack],
1779
1780
1781
1782# Get the name of the Fortran compiler and appropriate compiler options
1783case $build in
1784  *-mingw*)
1785    if test "${LD+set}" = set; then :; else
1786      LD=link
1787    fi
1788    ;;
1789 esac
1790 case $enable_doscompile in
1791   msvc)
1792     if test "x${LD+set}" = xset; then :; else
1793       LD=link
1794     fi
1795     ;;
1796 esac
1797
1798
1799 # Check whether --enable-doscompile or --disable-doscompile was given.
1800if test "${enable_doscompile+set}" = set; then
1801  enableval="$enable_doscompile"
1802  if test "$enable_doscompile" != no; then
1803     case $build in
1804       *-cygwin*) ;;
1805       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1806echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1807   { (exit 1); exit 1; }; } ;;
1808     esac
1809   fi
1810else
1811  enable_doscompile=no
1812fi;
1813 case "$enable_doscompile" in
1814   msvc|mingw|no) ;;
1815   yes) enable_doscompile=mingw ;;
1816   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1817                    Try configure --help=recursive." >&5
1818echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1819                    Try configure --help=recursive." >&2;}
1820   { (exit 1); exit 1; }; }
1821      ;;
1822  esac
1823  if test "$enable_doscompile" != no ; then
1824    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1825echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1826  fi
1827
1828
1829
1830
1831ac_ext=c
1832ac_cpp='$CPP $CPPFLAGS'
1833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836
1837
1838# For consistency, we set the C compiler to the same value of the C++
1839# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1840if test x"$CXX" != x; then
1841  case "$CXX" in
1842    cl* | */cl* | CL* | */CL*)
1843      if test x"$CC" = x; then
1844        CC="$CXX"
1845        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1846echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1847      fi
1848      ;;
1849  esac
1850fi
1851
1852
1853
1854
1855
1856
1857coin_has_cc=yes
1858
1859save_cflags="$CFLAGS"
1860# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1861# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1862# is likely to be a non-functional shell. But many installations will have
1863# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1864case $build in
1865  *-cygwin* | *-mingw*)
1866             if test "$enable_doscompile" = msvc ; then
1867               comps="cl"
1868             else
1869               comps="gcc cl"
1870             fi ;;
1871  sparc-sun-solaris*)
1872             comps="cc xlc gcc pgcc icc" ;;
1873  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1874  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1875esac
1876
1877# We delete the cached value, since the test might not have been
1878# performed with our choice of compilers earlier
1879$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1880# AC_MSG_NOTICE([C compiler candidates: $comps])
1881ac_ext=c
1882ac_cpp='$CPP $CPPFLAGS'
1883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1885ac_compiler_gnu=$ac_cv_c_compiler_gnu
1886if test -n "$ac_tool_prefix"; then
1887  for ac_prog in $comps
1888  do
1889    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1890set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1891echo "$as_me:$LINENO: checking for $ac_word" >&5
1892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1893if test "${ac_cv_prog_CC+set}" = set; then
1894  echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896  if test -n "$CC"; then
1897  ac_cv_prog_CC="$CC" # Let the user override the test.
1898else
1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900for as_dir in $PATH
1901do
1902  IFS=$as_save_IFS
1903  test -z "$as_dir" && as_dir=.
1904  for ac_exec_ext in '' $ac_executable_extensions; do
1905  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1906    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1907    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908    break 2
1909  fi
1910done
1911done
1912
1913fi
1914fi
1915CC=$ac_cv_prog_CC
1916if test -n "$CC"; then
1917  echo "$as_me:$LINENO: result: $CC" >&5
1918echo "${ECHO_T}$CC" >&6
1919else
1920  echo "$as_me:$LINENO: result: no" >&5
1921echo "${ECHO_T}no" >&6
1922fi
1923
1924    test -n "$CC" && break
1925  done
1926fi
1927if test -z "$CC"; then
1928  ac_ct_CC=$CC
1929  for ac_prog in $comps
1930do
1931  # Extract the first word of "$ac_prog", so it can be a program name with args.
1932set dummy $ac_prog; ac_word=$2
1933echo "$as_me:$LINENO: checking for $ac_word" >&5
1934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1936  echo $ECHO_N "(cached) $ECHO_C" >&6
1937else
1938  if test -n "$ac_ct_CC"; then
1939  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940else
1941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942for as_dir in $PATH
1943do
1944  IFS=$as_save_IFS
1945  test -z "$as_dir" && as_dir=.
1946  for ac_exec_ext in '' $ac_executable_extensions; do
1947  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948    ac_cv_prog_ac_ct_CC="$ac_prog"
1949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950    break 2
1951  fi
1952done
1953done
1954
1955fi
1956fi
1957ac_ct_CC=$ac_cv_prog_ac_ct_CC
1958if test -n "$ac_ct_CC"; then
1959  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1960echo "${ECHO_T}$ac_ct_CC" >&6
1961else
1962  echo "$as_me:$LINENO: result: no" >&5
1963echo "${ECHO_T}no" >&6
1964fi
1965
1966  test -n "$ac_ct_CC" && break
1967done
1968
1969  CC=$ac_ct_CC
1970fi
1971
1972
1973test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1974See \`config.log' for more details." >&5
1975echo "$as_me: error: no acceptable C compiler found in \$PATH
1976See \`config.log' for more details." >&2;}
1977   { (exit 1); exit 1; }; }
1978
1979# Provide some information about the compiler.
1980echo "$as_me:$LINENO:" \
1981     "checking for C compiler version" >&5
1982ac_compiler=`set X $ac_compile; echo $2`
1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1984  (eval $ac_compiler --version </dev/null >&5) 2>&5
1985  ac_status=$?
1986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987  (exit $ac_status); }
1988{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1989  (eval $ac_compiler -v </dev/null >&5) 2>&5
1990  ac_status=$?
1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992  (exit $ac_status); }
1993{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1994  (eval $ac_compiler -V </dev/null >&5) 2>&5
1995  ac_status=$?
1996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997  (exit $ac_status); }
1998
1999cat >conftest.$ac_ext <<_ACEOF
2000/* confdefs.h.  */
2001_ACEOF
2002cat confdefs.h >>conftest.$ac_ext
2003cat >>conftest.$ac_ext <<_ACEOF
2004/* end confdefs.h.  */
2005
2006int
2007main ()
2008{
2009
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014ac_clean_files_save=$ac_clean_files
2015ac_clean_files="$ac_clean_files a.out a.exe b.out"
2016# Try to create an executable without -o first, disregard a.out.
2017# It will help us diagnose broken compilers, and finding out an intuition
2018# of exeext.
2019echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2020echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2021ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2022if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2023  (eval $ac_link_default) 2>&5
2024  ac_status=$?
2025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026  (exit $ac_status); }; then
2027  # Find the output, starting from the most likely.  This scheme is
2028# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2029# resort.
2030
2031# Be careful to initialize this variable, since it used to be cached.
2032# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2033ac_cv_exeext=
2034# b.out is created by i960 compilers.
2035for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2036do
2037  test -f "$ac_file" || continue
2038  case $ac_file in
2039    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2040        ;;
2041    conftest.$ac_ext )
2042        # This is the source file.
2043        ;;
2044    [ab].out )
2045        # We found the default executable, but exeext='' is most
2046        # certainly right.
2047        break;;
2048    *.* )
2049        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050        # FIXME: I believe we export ac_cv_exeext for Libtool,
2051        # but it would be cool to find out if it's true.  Does anybody
2052        # maintain Libtool? --akim.
2053        export ac_cv_exeext
2054        break;;
2055    * )
2056        break;;
2057  esac
2058done
2059else
2060  echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2064See \`config.log' for more details." >&5
2065echo "$as_me: error: C compiler cannot create executables
2066See \`config.log' for more details." >&2;}
2067   { (exit 77); exit 77; }; }
2068fi
2069
2070ac_exeext=$ac_cv_exeext
2071echo "$as_me:$LINENO: result: $ac_file" >&5
2072echo "${ECHO_T}$ac_file" >&6
2073
2074# Check the compiler produces executables we can run.  If not, either
2075# the compiler is broken, or we cross compile.
2076echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2077echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2078# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2079# If not cross compiling, check that we can run a simple program.
2080if test "$cross_compiling" != yes; then
2081  if { ac_try='./$ac_file'
2082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083  (eval $ac_try) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }; }; then
2087    cross_compiling=no
2088  else
2089    if test "$cross_compiling" = maybe; then
2090        cross_compiling=yes
2091    else
2092        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2093If you meant to cross compile, use \`--host'.
2094See \`config.log' for more details." >&5
2095echo "$as_me: error: cannot run C compiled programs.
2096If you meant to cross compile, use \`--host'.
2097See \`config.log' for more details." >&2;}
2098   { (exit 1); exit 1; }; }
2099    fi
2100  fi
2101fi
2102echo "$as_me:$LINENO: result: yes" >&5
2103echo "${ECHO_T}yes" >&6
2104
2105rm -f a.out a.exe conftest$ac_cv_exeext b.out
2106ac_clean_files=$ac_clean_files_save
2107# Check the compiler produces executables we can run.  If not, either
2108# the compiler is broken, or we cross compile.
2109echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2110echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2111echo "$as_me:$LINENO: result: $cross_compiling" >&5
2112echo "${ECHO_T}$cross_compiling" >&6
2113
2114echo "$as_me:$LINENO: checking for suffix of executables" >&5
2115echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2117  (eval $ac_link) 2>&5
2118  ac_status=$?
2119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120  (exit $ac_status); }; then
2121  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2122# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2123# work properly (i.e., refer to `conftest.exe'), while it won't with
2124# `rm'.
2125for ac_file in conftest.exe conftest conftest.*; do
2126  test -f "$ac_file" || continue
2127  case $ac_file in
2128    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2129    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130          export ac_cv_exeext
2131          break;;
2132    * ) break;;
2133  esac
2134done
2135else
2136  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2137See \`config.log' for more details." >&5
2138echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2139See \`config.log' for more details." >&2;}
2140   { (exit 1); exit 1; }; }
2141fi
2142
2143rm -f conftest$ac_cv_exeext
2144echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2145echo "${ECHO_T}$ac_cv_exeext" >&6
2146
2147rm -f conftest.$ac_ext
2148EXEEXT=$ac_cv_exeext
2149ac_exeext=$EXEEXT
2150echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152if test "${ac_cv_objext+set}" = set; then
2153  echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155  cat >conftest.$ac_ext <<_ACEOF
2156/* confdefs.h.  */
2157_ACEOF
2158cat confdefs.h >>conftest.$ac_ext
2159cat >>conftest.$ac_ext <<_ACEOF
2160/* end confdefs.h.  */
2161
2162int
2163main ()
2164{
2165
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170rm -f conftest.o conftest.obj
2171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172  (eval $ac_compile) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }; then
2176  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177  case $ac_file in
2178    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180       break;;
2181  esac
2182done
2183else
2184  echo "$as_me: failed program was:" >&5
2185sed 's/^/| /' conftest.$ac_ext >&5
2186
2187{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188See \`config.log' for more details." >&5
2189echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190See \`config.log' for more details." >&2;}
2191   { (exit 1); exit 1; }; }
2192fi
2193
2194rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195fi
2196echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197echo "${ECHO_T}$ac_cv_objext" >&6
2198OBJEXT=$ac_cv_objext
2199ac_objext=$OBJEXT
2200echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203  echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
2205  cat >conftest.$ac_ext <<_ACEOF
2206/* confdefs.h.  */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h.  */
2211
2212int
2213main ()
2214{
2215#ifndef __GNUC__
2216       choke me
2217#endif
2218
2219  ;
2220  return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225  (eval $ac_compile) 2>conftest.er1
2226  ac_status=$?
2227  grep -v '^ *+' conftest.er1 >conftest.err
2228  rm -f conftest.er1
2229  cat conftest.err >&5
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); } &&
2232         { ac_try='test -z "$ac_c_werror_flag"
2233                         || test ! -s conftest.err'
2234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235  (eval $ac_try) 2>&5
2236  ac_status=$?
2237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238  (exit $ac_status); }; } &&
2239         { ac_try='test -s conftest.$ac_objext'
2240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241  (eval $ac_try) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }; }; then
2245  ac_compiler_gnu=yes
2246else
2247  echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250ac_compiler_gnu=no
2251fi
2252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254
2255fi
2256echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258GCC=`test $ac_compiler_gnu = yes && echo yes`
2259ac_test_CFLAGS=${CFLAGS+set}
2260ac_save_CFLAGS=$CFLAGS
2261CFLAGS="-g"
2262echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264if test "${ac_cv_prog_cc_g+set}" = set; then
2265  echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267  cat >conftest.$ac_ext <<_ACEOF
2268/* confdefs.h.  */
2269_ACEOF
2270cat confdefs.h >>conftest.$ac_ext
2271cat >>conftest.$ac_ext <<_ACEOF
2272/* end confdefs.h.  */
2273
2274int
2275main ()
2276{
2277
2278  ;
2279  return 0;
2280}
2281_ACEOF
2282rm -f conftest.$ac_objext
2283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284  (eval $ac_compile) 2>conftest.er1
2285  ac_status=$?
2286  grep -v '^ *+' conftest.er1 >conftest.err
2287  rm -f conftest.er1
2288  cat conftest.err >&5
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); } &&
2291         { ac_try='test -z "$ac_c_werror_flag"
2292                         || test ! -s conftest.err'
2293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294  (eval $ac_try) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; } &&
2298         { ac_try='test -s conftest.$ac_objext'
2299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300  (eval $ac_try) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; }; then
2304  ac_cv_prog_cc_g=yes
2305else
2306  echo "$as_me: failed program was:" >&5
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
2309ac_cv_prog_cc_g=no
2310fi
2311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312fi
2313echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315if test "$ac_test_CFLAGS" = set; then
2316  CFLAGS=$ac_save_CFLAGS
2317elif test $ac_cv_prog_cc_g = yes; then
2318  if test "$GCC" = yes; then
2319    CFLAGS="-g -O2"
2320  else
2321    CFLAGS="-g"
2322  fi
2323else
2324  if test "$GCC" = yes; then
2325    CFLAGS="-O2"
2326  else
2327    CFLAGS=
2328  fi
2329fi
2330echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  ac_cv_prog_cc_stdc=no
2336ac_save_CC=$CC
2337cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343#include <stdarg.h>
2344#include <stdio.h>
2345#include <sys/types.h>
2346#include <sys/stat.h>
2347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2348struct buf { int x; };
2349FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350static char *e (p, i)
2351     char **p;
2352     int i;
2353{
2354  return p[i];
2355}
2356static char *f (char * (*g) (char **, int), char **p, ...)
2357{
2358  char *s;
2359  va_list v;
2360  va_start (v,p);
2361  s = g (p, va_arg (v,int));
2362  va_end (v);
2363  return s;
2364}
2365
2366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2367   function prototypes and stuff, but not '\xHH' hex character constants.
2368   These don't provoke an error unfortunately, instead are silently treated
2369   as 'x'.  The following induces an error, until -std1 is added to get
2370   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2371   array size at least.  It's necessary to write '\x00'==0 to get something
2372   that's true only with -std1.  */
2373int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374
2375int test (int i, double x);
2376struct s1 {int (*f) (int a);};
2377struct s2 {int (*f) (double a);};
2378int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379int argc;
2380char **argv;
2381int
2382main ()
2383{
2384return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389# Don't try gcc -ansi; that turns off useful extensions and
2390# breaks some systems' header files.
2391# AIX                   -qlanglvl=ansi
2392# Ultrix and OSF/1      -std1
2393# HP-UX 10.20 and later -Ae
2394# HP-UX older versions  -Aa -D_HPUX_SOURCE
2395# SVR4                  -Xc -D__EXTENSIONS__
2396for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397do
2398  CC="$ac_save_CC $ac_arg"
2399  rm -f conftest.$ac_objext
2400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401  (eval $ac_compile) 2>conftest.er1
2402  ac_status=$?
2403  grep -v '^ *+' conftest.er1 >conftest.err
2404  rm -f conftest.er1
2405  cat conftest.err >&5
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); } &&
2408         { ac_try='test -z "$ac_c_werror_flag"
2409                         || test ! -s conftest.err'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; } &&
2415         { ac_try='test -s conftest.$ac_objext'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; }; then
2421  ac_cv_prog_cc_stdc=$ac_arg
2422break
2423else
2424  echo "$as_me: failed program was:" >&5
2425sed 's/^/| /' conftest.$ac_ext >&5
2426
2427fi
2428rm -f conftest.err conftest.$ac_objext
2429done
2430rm -f conftest.$ac_ext conftest.$ac_objext
2431CC=$ac_save_CC
2432
2433fi
2434
2435case "x$ac_cv_prog_cc_stdc" in
2436  x|xno)
2437    echo "$as_me:$LINENO: result: none needed" >&5
2438echo "${ECHO_T}none needed" >&6 ;;
2439  *)
2440    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442    CC="$CC $ac_cv_prog_cc_stdc" ;;
2443esac
2444
2445# Some people use a C++ compiler to compile C.  Since we use `exit',
2446# in C++ we need to declare it.  In case someone uses the same compiler
2447# for both compiling C and C++ we need to have the C++ compiler decide
2448# the declaration of exit, since it's the most demanding environment.
2449cat >conftest.$ac_ext <<_ACEOF
2450#ifndef __cplusplus
2451  choke me
2452#endif
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  for ac_declaration in \
2477   '' \
2478   'extern "C" void std::exit (int) throw (); using std::exit;' \
2479   'extern "C" void std::exit (int); using std::exit;' \
2480   'extern "C" void exit (int) throw ();' \
2481   'extern "C" void exit (int);' \
2482   'void exit (int);'
2483do
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491#include <stdlib.h>
2492int
2493main ()
2494{
2495exit (42);
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500rm -f conftest.$ac_objext
2501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502  (eval $ac_compile) 2>conftest.er1
2503  ac_status=$?
2504  grep -v '^ *+' conftest.er1 >conftest.err
2505  rm -f conftest.er1
2506  cat conftest.err >&5
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); } &&
2509         { ac_try='test -z "$ac_c_werror_flag"
2510                         || test ! -s conftest.err'
2511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512  (eval $ac_try) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; } &&
2516         { ac_try='test -s conftest.$ac_objext'
2517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518  (eval $ac_try) 2>&5
2519  ac_status=$?
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }; }; then
2522  :
2523else
2524  echo "$as_me: failed program was:" >&5
2525sed 's/^/| /' conftest.$ac_ext >&5
2526
2527continue
2528fi
2529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530  cat >conftest.$ac_ext <<_ACEOF
2531/* confdefs.h.  */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h.  */
2536$ac_declaration
2537int
2538main ()
2539{
2540exit (42);
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547  (eval $ac_compile) 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554         { ac_try='test -z "$ac_c_werror_flag"
2555                         || test ! -s conftest.err'
2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557  (eval $ac_try) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }; } &&
2561         { ac_try='test -s conftest.$ac_objext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  break
2568else
2569  echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572fi
2573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574done
2575rm -f conftest*
2576if test -n "$ac_declaration"; then
2577  echo '#ifdef __cplusplus' >>confdefs.h
2578  echo $ac_declaration      >>confdefs.h
2579  echo '#endif'             >>confdefs.h
2580fi
2581
2582else
2583  echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586fi
2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588ac_ext=c
2589ac_cpp='$CPP $CPPFLAGS'
2590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594if test -z "$CC" ; then
2595  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2596echo "$as_me: error: Failed to find a C compiler!" >&2;}
2597   { (exit 1); exit 1; }; }
2598fi
2599# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2600case "$CC" in
2601  cl* | */cl* | CL* | */CL* )
2602    if test "$ac_cv_prog_cc_g" = yes ; then
2603      ac_cv_prog_cc_g=no
2604      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2605echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2606    fi ;;
2607esac
2608CFLAGS="$save_cflags"
2609
2610# Check if a project specific CFLAGS variable has been set
2611if test x$COIN_PRJCT != x; then
2612  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2613  if test x$coin_tmp = xset; then
2614    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2615  fi
2616fi
2617
2618if test x"$CFLAGS" = x; then
2619
2620  coin_add_cflags=
2621  coin_opt_cflags=
2622  coin_dbg_cflags=
2623  coin_warn_cflags=
2624
2625  if test "$GCC" = "yes"; then
2626    case "$CC" in
2627      icc* | */icc*)
2628        ;;
2629      *)
2630        coin_opt_cflags="-O3 -fomit-frame-pointer"
2631        coin_add_cflags="-pipe"
2632        coin_dbg_cflags="-g"
2633        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2634        case $enable_doscompile in
2635          mingw)
2636            CFLAGS="-mno-cygwin"
2637            cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643
2644int
2645main ()
2646{
2647int i=0; i++;
2648  ;
2649  return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext conftest$ac_exeext
2653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654  (eval $ac_link) 2>conftest.er1
2655  ac_status=$?
2656  grep -v '^ *+' conftest.er1 >conftest.err
2657  rm -f conftest.er1
2658  cat conftest.err >&5
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); } &&
2661         { ac_try='test -z "$ac_c_werror_flag"
2662                         || test ! -s conftest.err'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; } &&
2668         { ac_try='test -s conftest$ac_exeext'
2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670  (eval $ac_try) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); }; }; then
2674  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2675else
2676  echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679fi
2680rm -f conftest.err conftest.$ac_objext \
2681      conftest$ac_exeext conftest.$ac_ext
2682            CFLAGS=
2683          ;;
2684        esac
2685    esac
2686  fi
2687  if test -z "$coin_opt_cflags"; then
2688    case $build in
2689      *-cygwin* | *-mingw*)
2690        case "$CC" in
2691          cl* | */cl* | CL* | */CL*)
2692            coin_opt_cflags='-MT -O2'
2693            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2694            coin_dbg_cflags='-MTd'
2695            ;;
2696        esac
2697        ;;
2698      *-linux-*)
2699        case "$CC" in
2700          icc* | */icc*)
2701            coin_opt_cflags="-O3 -ip"
2702            coin_add_cflags=""
2703            coin_dbg_cflags="-g"
2704            # Check if -i_dynamic is necessary (for new glibc library)
2705            CFLAGS=
2706            cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712
2713int
2714main ()
2715{
2716int i=0; i++;
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721rm -f conftest.$ac_objext conftest$ac_exeext
2722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2723  (eval $ac_link) 2>conftest.er1
2724  ac_status=$?
2725  grep -v '^ *+' conftest.er1 >conftest.err
2726  rm -f conftest.er1
2727  cat conftest.err >&5
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); } &&
2730         { ac_try='test -z "$ac_c_werror_flag"
2731                         || test ! -s conftest.err'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; } &&
2737         { ac_try='test -s conftest$ac_exeext'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; }; then
2743  :
2744else
2745  echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748coin_add_cflags="-i_dynamic $coin_add_cflags"
2749fi
2750rm -f conftest.err conftest.$ac_objext \
2751      conftest$ac_exeext conftest.$ac_ext
2752            ;;
2753          pgcc* | */pgcc*)
2754            coin_opt_cflags="-fast"
2755            coin_add_cflags="-Kieee -pc 64"
2756            coin_dbg_cflags="-g"
2757            ;;
2758        esac
2759        ;;
2760      *-ibm-*)
2761        case "$CC" in
2762          xlc* | */xlc* | mpxlc* | */mpxlc*)
2763            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2764            coin_add_cflags="-bmaxdata:0x80000000"
2765            coin_dbg_cflags="-g"
2766          ;;
2767        esac
2768        ;;
2769      *-hp-*)
2770        coin_opt_cflags="-O"
2771        coin_add_cflags="-Ae"
2772        coin_dbg_cflags="-g"
2773        ;;
2774      *-sun-*)
2775        coin_opt_cflags="-xO4"
2776        coin_dbg_cflags="-g"
2777        ;;
2778      *-sgi-*)
2779        coin_opt_cflags="-O -OPT:Olimit=0"
2780        coin_dbg_cflags="-g"
2781        ;;
2782    esac
2783  fi
2784
2785  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2786    coin_dbg_cflags="-g"
2787  fi
2788
2789  if test -z "$coin_opt_cflags"; then
2790    # Try if -O option works if nothing else is set
2791    CFLAGS="-O"
2792    cat >conftest.$ac_ext <<_ACEOF
2793/* confdefs.h.  */
2794_ACEOF
2795cat confdefs.h >>conftest.$ac_ext
2796cat >>conftest.$ac_ext <<_ACEOF
2797/* end confdefs.h.  */
2798
2799int
2800main ()
2801{
2802int i=0; i++;
2803  ;
2804  return 0;
2805}
2806_ACEOF
2807rm -f conftest.$ac_objext conftest$ac_exeext
2808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2809  (eval $ac_link) 2>conftest.er1
2810  ac_status=$?
2811  grep -v '^ *+' conftest.er1 >conftest.err
2812  rm -f conftest.er1
2813  cat conftest.err >&5
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); } &&
2816         { ac_try='test -z "$ac_c_werror_flag"
2817                         || test ! -s conftest.err'
2818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819  (eval $ac_try) 2>&5
2820  ac_status=$?
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); }; } &&
2823         { ac_try='test -s conftest$ac_exeext'
2824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825  (eval $ac_try) 2>&5
2826  ac_status=$?
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); }; }; then
2829  coin_opt_cflags="-O"
2830else
2831  echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834fi
2835rm -f conftest.err conftest.$ac_objext \
2836      conftest$ac_exeext conftest.$ac_ext
2837  fi
2838
2839  # if PM doesn't want the warning messages, take them out
2840  if test x"$coin_skip_warn_cflags" = xyes; then
2841    coin_warn_cflags=
2842  fi
2843
2844  if test x${DBG_CFLAGS+set} != xset; then
2845    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2846  fi
2847  if test x${OPT_CFLAGS+set} != xset; then
2848    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2849  fi
2850
2851  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2852  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2853
2854  if test "$coin_debug_compile" = "true"; then
2855    CFLAGS="$DBG_CFLAGS"
2856  else
2857    CFLAGS="$OPT_CFLAGS"
2858  fi
2859else
2860  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2861  if test x${DBG_CFLAGS+set} != xset; then
2862    DBG_CFLAGS="$CFLAGS"
2863  fi
2864  if test x${OPT_CFLAGS+set} != xset; then
2865    OPT_CFLAGS="$CFLAGS"
2866  fi
2867fi
2868
2869# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2870
2871case "$CFLAGS" in
2872  *-mno-cygwin*)
2873    if test x${CPPFLAGS+set} != xset ; then
2874      CPPFLAGS="-mno-cygwin"
2875    else
2876      case "$CPPFLAGS" in
2877        *-mno-cygwin*)
2878          ;;
2879        *)
2880          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2881          ;;
2882      esac
2883    fi ;;
2884esac
2885
2886# Try if CFLAGS works
2887save_CFLAGS="$CFLAGS"
2888cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h.  */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h.  */
2894
2895int
2896main ()
2897{
2898int i=0; i++;
2899  ;
2900  return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905  (eval $ac_link) 2>conftest.er1
2906  ac_status=$?
2907  grep -v '^ *+' conftest.er1 >conftest.err
2908  rm -f conftest.er1
2909  cat conftest.err >&5
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); } &&
2912         { ac_try='test -z "$ac_c_werror_flag"
2913                         || test ! -s conftest.err'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; } &&
2919         { ac_try='test -s conftest$ac_exeext'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; }; then
2925  :
2926else
2927  echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930CFLAGS=
2931fi
2932rm -f conftest.err conftest.$ac_objext \
2933      conftest$ac_exeext conftest.$ac_ext
2934if test -z "$CFLAGS"; then
2935  { 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
2936echo "$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;}
2937  CFLAGS='-O'
2938  cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948int i=0; i++;
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955  (eval $ac_link) 2>conftest.er1
2956  ac_status=$?
2957  grep -v '^ *+' conftest.er1 >conftest.err
2958  rm -f conftest.er1
2959  cat conftest.err >&5
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); } &&
2962         { ac_try='test -z "$ac_c_werror_flag"
2963                         || test ! -s conftest.err'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; } &&
2969         { ac_try='test -s conftest$ac_exeext'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; }; then
2975  :
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980CFLAGS=
2981fi
2982rm -f conftest.err conftest.$ac_objext \
2983      conftest$ac_exeext conftest.$ac_ext
2984  if test -z "$CFLAGS"; then
2985    { 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
2986echo "$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;}
2987  fi
2988fi
2989
2990{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2991echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2992
2993
2994if test x"$MPICC" = x; then :; else
2995  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2996echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2997  CC="$MPICC"
2998fi
2999
3000# Correct ADDLIBS initialization if we are using the MS compiler
3001case "$CC" in
3002  cl* | */cl* | CL* | */CL*)
3003    ADDLIBS=
3004    case $build in
3005  *-mingw*)
3006    if test "${LD+set}" = set; then :; else
3007      LD=link
3008    fi
3009    ;;
3010 esac
3011 case $enable_doscompile in
3012   msvc)
3013     if test "x${LD+set}" = xset; then :; else
3014       LD=link
3015     fi
3016     ;;
3017 esac
3018
3019    ;;
3020esac
3021
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027
3028
3029case $build in
3030  *-cygwin* | *-mingw*)
3031     if test "$enable_doscompile" = msvc ; then
3032       coin_f77_comps="ifort fl32 compile_f2c"
3033     else
3034       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3035     fi ;;
3036  sparc-sun-solaris*)
3037     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3038  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3039 esac
3040
3041
3042
3043
3044
3045
3046ac_ext=f
3047ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3048ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3050
3051
3052
3053
3054
3055
3056coin_has_f77=yes
3057
3058save_fflags="$FFLAGS"
3059
3060# We delete the cached value, since the test might not have been
3061# performed with our choice of compilers earlier
3062$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3063
3064# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3065# coin_f77_comps to see if there's a program that matches one of the names.
3066# If there's no such program, F77 = unavailable. If we match the name,
3067# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3068# compiler.
3069# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3070
3071
3072{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3073echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3074for ac_prog in $coin_f77_comps
3075do
3076  # Extract the first word of "$ac_prog", so it can be a program name with args.
3077set dummy $ac_prog; ac_word=$2
3078echo "$as_me:$LINENO: checking for $ac_word" >&5
3079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3080if test "${ac_cv_prog_F77+set}" = set; then
3081  echo $ECHO_N "(cached) $ECHO_C" >&6
3082else
3083  if test -n "$F77"; then
3084  ac_cv_prog_F77="$F77" # Let the user override the test.
3085else
3086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087for as_dir in $PATH
3088do
3089  IFS=$as_save_IFS
3090  test -z "$as_dir" && as_dir=.
3091  for ac_exec_ext in '' $ac_executable_extensions; do
3092  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093    ac_cv_prog_F77="$ac_prog"
3094    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095    break 2
3096  fi
3097done
3098done
3099
3100fi
3101fi
3102F77=$ac_cv_prog_F77
3103if test -n "$F77"; then
3104  echo "$as_me:$LINENO: result: $F77" >&5
3105echo "${ECHO_T}$F77" >&6
3106else
3107  echo "$as_me:$LINENO: result: no" >&5
3108echo "${ECHO_T}no" >&6
3109fi
3110
3111  test -n "$F77" && break
3112done
3113test -n "$F77" || F77="unavailable"
3114
3115
3116if test "$F77" != "unavailable" ; then
3117  ac_ext=f
3118ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3119ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3121if test -n "$ac_tool_prefix"; then
3122  for ac_prog in $coin_f77_comps
3123  do
3124    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3126echo "$as_me:$LINENO: checking for $ac_word" >&5
3127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128if test "${ac_cv_prog_F77+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  if test -n "$F77"; then
3132  ac_cv_prog_F77="$F77" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139  for ac_exec_ext in '' $ac_executable_extensions; do
3140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146done
3147
3148fi
3149fi
3150F77=$ac_cv_prog_F77
3151if test -n "$F77"; then
3152  echo "$as_me:$LINENO: result: $F77" >&5
3153echo "${ECHO_T}$F77" >&6
3154else
3155  echo "$as_me:$LINENO: result: no" >&5
3156echo "${ECHO_T}no" >&6
3157fi
3158
3159    test -n "$F77" && break
3160  done
3161fi
3162if test -z "$F77"; then
3163  ac_ct_F77=$F77
3164  for ac_prog in $coin_f77_comps
3165do
3166  # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3171  echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173  if test -n "$ac_ct_F77"; then
3174  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179  IFS=$as_save_IFS
3180  test -z "$as_dir" && as_dir=.
3181  for ac_exec_ext in '' $ac_executable_extensions; do
3182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_ac_ct_F77="$ac_prog"
3184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188done
3189
3190fi
3191fi
3192ac_ct_F77=$ac_cv_prog_ac_ct_F77
3193if test -n "$ac_ct_F77"; then
3194  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3195echo "${ECHO_T}$ac_ct_F77" >&6
3196else
3197  echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201  test -n "$ac_ct_F77" && break
3202done
3203
3204  F77=$ac_ct_F77
3205fi
3206
3207
3208# Provide some information about the compiler.
3209echo "$as_me:3209:" \
3210     "checking for Fortran 77 compiler version" >&5
3211ac_compiler=`set X $ac_compile; echo $2`
3212{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3213  (eval $ac_compiler --version </dev/null >&5) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }
3217{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3218  (eval $ac_compiler -v </dev/null >&5) 2>&5
3219  ac_status=$?
3220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221  (exit $ac_status); }
3222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3223  (eval $ac_compiler -V </dev/null >&5) 2>&5
3224  ac_status=$?
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); }
3227rm -f a.out
3228
3229# If we don't use `.F' as extension, the preprocessor is not run on the
3230# input file.  (Note that this only needs to work for GNU compilers.)
3231ac_save_ext=$ac_ext
3232ac_ext=F
3233echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3234echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3235if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  cat >conftest.$ac_ext <<_ACEOF
3239      program main
3240#ifndef __GNUC__
3241       choke me
3242#endif
3243
3244      end
3245_ACEOF
3246rm -f conftest.$ac_objext
3247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248  (eval $ac_compile) 2>conftest.er1
3249  ac_status=$?
3250  grep -v '^ *+' conftest.er1 >conftest.err
3251  rm -f conftest.er1
3252  cat conftest.err >&5
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); } &&
3255         { ac_try='test -z "$ac_f77_werror_flag"
3256                         || test ! -s conftest.err'
3257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258  (eval $ac_try) 2>&5
3259  ac_status=$?
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; } &&
3262         { ac_try='test -s conftest.$ac_objext'
3263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264  (eval $ac_try) 2>&5
3265  ac_status=$?
3266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267  (exit $ac_status); }; }; then
3268  ac_compiler_gnu=yes
3269else
3270  echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273ac_compiler_gnu=no
3274fi
3275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3277
3278fi
3279echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3280echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3281ac_ext=$ac_save_ext
3282ac_test_FFLAGS=${FFLAGS+set}
3283ac_save_FFLAGS=$FFLAGS
3284FFLAGS=
3285echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3286echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3287if test "${ac_cv_prog_f77_g+set}" = set; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290  FFLAGS=-g
3291cat >conftest.$ac_ext <<_ACEOF
3292      program main
3293
3294      end
3295_ACEOF
3296rm -f conftest.$ac_objext
3297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298  (eval $ac_compile) 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } &&
3305         { ac_try='test -z "$ac_f77_werror_flag"
3306                         || test ! -s conftest.err'
3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308  (eval $ac_try) 2>&5
3309  ac_status=$?
3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); }; } &&
3312         { ac_try='test -s conftest.$ac_objext'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; }; then
3318  ac_cv_prog_f77_g=yes
3319else
3320  echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
3323ac_cv_prog_f77_g=no
3324fi
3325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3326
3327fi
3328echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3329echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3330if test "$ac_test_FFLAGS" = set; then
3331  FFLAGS=$ac_save_FFLAGS
3332elif test $ac_cv_prog_f77_g = yes; then
3333  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3334    FFLAGS="-g -O2"
3335  else
3336    FFLAGS="-g"
3337  fi
3338else
3339  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3340    FFLAGS="-O2"
3341  else
3342    FFLAGS=
3343  fi
3344fi
3345
3346G77=`test $ac_compiler_gnu = yes && echo yes`
3347ac_ext=f
3348ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3349ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3351
3352else
3353  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3354echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3355fi
3356
3357FFLAGS="$save_fflags"
3358
3359# Check if a project specific FFLAGS variable has been set
3360if test x$COIN_PRJCT != x; then
3361  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3362  if test x$coin_tmp = xset; then
3363    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3364  fi
3365fi
3366
3367if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3368
3369  coin_add_fflags=
3370  coin_opt_fflags=
3371  coin_dbg_fflags=
3372  coin_warn_fflags=
3373
3374  if test "$G77" = "yes"; then
3375    coin_opt_fflags="-O3 -fomit-frame-pointer"
3376    coin_add_fflags="-pipe"
3377    coin_dbg_fflags="-g"
3378    case $enable_doscompile in
3379      mingw)
3380        FFLAGS="-mno-cygwin"
3381        cat >conftest.$ac_ext <<_ACEOF
3382      program main
3383      write(*,*) 'Hello world'
3384      end
3385_ACEOF
3386rm -f conftest.$ac_objext conftest$ac_exeext
3387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388  (eval $ac_link) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395         { ac_try='test -z "$ac_f77_werror_flag"
3396                         || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402         { ac_try='test -s conftest$ac_exeext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext \
3415      conftest$ac_exeext conftest.$ac_ext
3416        FFLAGS=
3417      ;;
3418    esac
3419  else
3420    case $build in
3421      *-cygwin* | *-mingw*)
3422        case $F77 in
3423          ifort* | */ifort* | IFORT* | */IFORT* )
3424            coin_opt_fflags='-O3'
3425            coin_add_fflags='-fpp -nologo -MT'
3426            coin_dbg_fflags='-debug'
3427          ;;
3428          compile_f2c*)
3429            coin_opt_fflags='-MT -O2'
3430            coin_add_fflags='-nologo -wd4996'
3431            coin_dbg_fflags='-MTd'
3432          ;;
3433        esac
3434        ;;
3435      *-linux-*)
3436        case $F77 in
3437          ifc* | */ifc* | ifort* | */ifort*)
3438            coin_opt_fflags="-O3 -ip"
3439            coin_add_fflags="-cm -w90 -w95"
3440            coin_dbg_fflags="-g -CA -CB -CS"
3441            # Check if -i_dynamic is necessary (for new glibc library)
3442            FFLAGS=
3443            cat >conftest.$ac_ext <<_ACEOF
3444      program main
3445      write(*,*) 'Hello world'
3446      end
3447_ACEOF
3448rm -f conftest.$ac_objext conftest$ac_exeext
3449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3450  (eval $ac_link) 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } &&
3457         { ac_try='test -z "$ac_f77_werror_flag"
3458                         || test ! -s conftest.err'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; } &&
3464         { ac_try='test -s conftest$ac_exeext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470  :
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475coin_add_fflags="-i_dynamic $coin_add_fflags"
3476fi
3477rm -f conftest.err conftest.$ac_objext \
3478      conftest$ac_exeext conftest.$ac_ext
3479            ;;
3480          pgf77* | */pgf77* | pgf90* | */pgf90*)
3481            coin_opt_fflags="-fast"
3482            coin_add_fflags="-Kieee -pc 64"
3483            coin_dbg_fflags="-g"
3484          ;;
3485        esac
3486        ;;
3487      *-ibm-*)
3488        case "$F77" in
3489          xlf* | */xlf* | mpxlf* | */mpxlf* )
3490            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3491            coin_add_fflags="-bmaxdata:0x80000000"
3492            coin_dbg_fflags="-g -C"
3493            ;;
3494        esac
3495        ;;
3496      *-hp-*)
3497        coin_opt_fflags="+O3"
3498        coin_add_fflags="+U77"
3499        coin_dbg_fflags="-C -g"
3500        ;;
3501      *-sun-*)
3502        coin_opt_fflags="-O4"
3503        coin_dbg_fflags="-g"
3504        ;;
3505      *-sgi-*)
3506        coin_opt_fflags="-O5 -OPT:Olimit=0"
3507        coin_dbg_fflags="-g"
3508        ;;
3509    esac
3510  fi
3511
3512  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3513    coin_dbg_fflags="-g"
3514  fi
3515
3516  if test -z "$coin_opt_fflags"; then
3517    # Try if -O option works if nothing else is set
3518    FFLAGS=-O
3519    cat >conftest.$ac_ext <<_ACEOF
3520      program main
3521      integer i
3522      end
3523_ACEOF
3524rm -f conftest.$ac_objext conftest$ac_exeext
3525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526  (eval $ac_link) 2>conftest.er1
3527  ac_status=$?
3528  grep -v '^ *+' conftest.er1 >conftest.err
3529  rm -f conftest.er1
3530  cat conftest.err >&5
3531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); } &&
3533         { ac_try='test -z "$ac_f77_werror_flag"
3534                         || test ! -s conftest.err'
3535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536  (eval $ac_try) 2>&5
3537  ac_status=$?
3538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539  (exit $ac_status); }; } &&
3540         { ac_try='test -s conftest$ac_exeext'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; }; then
3546  coin_opt_fflags="-O"
3547else
3548  echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551fi
3552rm -f conftest.err conftest.$ac_objext \
3553      conftest$ac_exeext conftest.$ac_ext
3554  fi
3555
3556  # if PM doesn't want the warning messages, take them out
3557  if test x"$coin_skip_warn_fflags" = xyes; then
3558    coin_warn_fflags=
3559  fi
3560
3561  if test x${DBG_FFLAGS+set} != xset; then
3562    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3563  fi
3564  if test x${OPT_FFLAGS+set} != xset; then
3565    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3566  fi
3567
3568  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3569  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3570
3571  if test "$coin_debug_compile" = "true"; then
3572    FFLAGS="$DBG_FFLAGS"
3573  else
3574    FFLAGS="$OPT_FFLAGS"
3575  fi
3576else
3577  FFLAGS="$FFLAGS $ADD_FFLAGS"
3578  if test x${DBG_FFLAGS+set} != xset; then
3579    DBG_FFLAGS="$FFLAGS"
3580  fi
3581  if test x${OPT_FFLAGS+set} != xset; then
3582    OPT_FFLAGS="$FFLAGS"
3583  fi
3584fi
3585
3586# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3587case "$FFLAGS" in
3588  *-mno-cygwin*)
3589    if test x${CPPFLAGS+set} != xset ; then
3590      CPPFLAGS="-mno-cygwin"
3591    else
3592      case "$CPPFLAGS" in
3593        *-mno-cygwin*)
3594          ;;
3595        *)
3596          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3597          ;;
3598      esac
3599    fi ;;
3600esac
3601
3602# Try if FFLAGS works
3603if test "$F77" != "unavailable" ; then
3604  cat >conftest.$ac_ext <<_ACEOF
3605      program main
3606      integer i
3607      end
3608_ACEOF
3609rm -f conftest.$ac_objext conftest$ac_exeext
3610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611  (eval $ac_link) 2>conftest.er1
3612  ac_status=$?
3613  grep -v '^ *+' conftest.er1 >conftest.err
3614  rm -f conftest.er1
3615  cat conftest.err >&5
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } &&
3618         { ac_try='test -z "$ac_f77_werror_flag"
3619                         || test ! -s conftest.err'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; } &&
3625         { ac_try='test -s conftest$ac_exeext'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; }; then
3631  :
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636FFLAGS=
3637fi
3638rm -f conftest.err conftest.$ac_objext \
3639      conftest$ac_exeext conftest.$ac_ext
3640  if test -z "$FFLAGS"; then
3641    { 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
3642echo "$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;}
3643    FFLAGS='-O'
3644    cat >conftest.$ac_ext <<_ACEOF
3645      program main
3646      integer i
3647      end
3648_ACEOF
3649rm -f conftest.$ac_objext conftest$ac_exeext
3650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651  (eval $ac_link) 2>conftest.er1
3652  ac_status=$?
3653  grep -v '^ *+' conftest.er1 >conftest.err
3654  rm -f conftest.er1
3655  cat conftest.err >&5
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); } &&
3658         { ac_try='test -z "$ac_f77_werror_flag"
3659                         || test ! -s conftest.err'
3660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661  (eval $ac_try) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); }; } &&
3665         { ac_try='test -s conftest$ac_exeext'
3666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667  (eval $ac_try) 2>&5
3668  ac_status=$?
3669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670  (exit $ac_status); }; }; then
3671  :
3672else
3673  echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676FFLAGS=
3677fi
3678rm -f conftest.err conftest.$ac_objext \
3679      conftest$ac_exeext conftest.$ac_ext
3680    if test -z "$FFLAGS"; then
3681      { 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
3682echo "$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;}
3683    fi
3684  fi
3685fi
3686
3687{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3688echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3689
3690
3691if test x"$MPIF77" = x; then :; else
3692  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3693echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3694  F77="$MPIF77"
3695fi
3696
3697case "$F77" in
3698  ifort* | */ifort* | IFORT* | */IFORT*)
3699    case $build in
3700  *-mingw*)
3701    if test "${LD+set}" = set; then :; else
3702      LD=link
3703    fi
3704    ;;
3705 esac
3706 case $enable_doscompile in
3707   msvc)
3708     if test "x${LD+set}" = xset; then :; else
3709       LD=link
3710     fi
3711     ;;
3712 esac
3713
3714    ;;
3715esac
3716
3717ac_ext=c
3718ac_cpp='$CPP $CPPFLAGS'
3719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723
3724
3725# Initialize autotools
3726{
3727
3728
3729
3730# START
3731
3732# On Cygwin, building DLLs doesn't work
3733case $build in
3734  *-cygwin*)
3735    coin_disable_shared=yes
3736    platform=Cygwin
3737  ;;
3738  *-mingw*)
3739    coin_disable_shared=yes
3740    platform="Msys"
3741#    case "$CXX" in
3742#      cl*)
3743#        coin_disable_shared=yes
3744#        platform="Msys with cl"
3745#    ;;
3746#    esac
3747  ;;
3748esac
3749if test x"$coin_disable_shared" = xyes; then
3750  if test x"$enable_shared" = xyes; then
3751    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3752echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3753  fi
3754  enable_shared=no
3755fi
3756# By default, we only want the shared objects to be compiled
3757# Check whether --enable-static or --disable-static was given.
3758if test "${enable_static+set}" = set; then
3759  enableval="$enable_static"
3760  p=${PACKAGE-default}
3761    case $enableval in
3762    yes) enable_static=yes ;;
3763    no) enable_static=no ;;
3764    *)
3765     enable_static=no
3766      # Look at the argument we got.  We use all the common list separators.
3767      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3768      for pkg in $enableval; do
3769        IFS="$lt_save_ifs"
3770        if test "X$pkg" = "X$p"; then
3771          enable_static=yes
3772        fi
3773      done
3774      IFS="$lt_save_ifs"
3775      ;;
3776    esac
3777else
3778  enable_static=no
3779fi;
3780
3781
3782
3783
3784# Initialize automake
3785echo "$as_me:$LINENO: checking for egrep" >&5
3786echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3787if test "${ac_cv_prog_egrep+set}" = set; then
3788  echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3791    then ac_cv_prog_egrep='grep -E'
3792    else ac_cv_prog_egrep='egrep'
3793    fi
3794fi
3795echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3796echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3797 EGREP=$ac_cv_prog_egrep
3798
3799
3800am__api_version="1.9"
3801# Find a good install program.  We prefer a C program (faster),
3802# so one script is as good as another.  But avoid the broken or
3803# incompatible versions:
3804# SysV /etc/install, /usr/sbin/install
3805# SunOS /usr/etc/install
3806# IRIX /sbin/install
3807# AIX /bin/install
3808# AmigaOS /C/install, which installs bootblocks on floppy discs
3809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3812# OS/2's system install, which has a completely different semantic
3813# ./install, which can be erroneously created by make from ./install.sh.
3814echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3815echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3816if test -z "$INSTALL"; then
3817if test "${ac_cv_path_install+set}" = set; then
3818  echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823  IFS=$as_save_IFS
3824  test -z "$as_dir" && as_dir=.
3825  # Account for people who put trailing slashes in PATH elements.
3826case $as_dir/ in
3827  ./ | .// | /cC/* | \
3828  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3829  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3830  /usr/ucb/* ) ;;
3831  *)
3832    # OSF1 and SCO ODT 3.0 have their own names for install.
3833    # Don't use installbsd from OSF since it installs stuff as root
3834    # by default.
3835    for ac_prog in ginstall scoinst install; do
3836      for ac_exec_ext in '' $ac_executable_extensions; do
3837        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3838          if test $ac_prog = install &&
3839            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840            # AIX install.  It has an incompatible calling convention.
3841            :
3842          elif test $ac_prog = install &&
3843            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3844            # program-specific install script used by HP pwplus--don't use.
3845            :
3846          else
3847            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3848            break 3
3849          fi
3850        fi
3851      done
3852    done
3853    ;;
3854esac
3855done
3856
3857
3858fi
3859  if test "${ac_cv_path_install+set}" = set; then
3860    INSTALL=$ac_cv_path_install
3861  else
3862    # As a last resort, use the slow shell script.  We don't cache a
3863    # path for INSTALL within a source directory, because that will
3864    # break other packages using the cache if that directory is
3865    # removed, or if the path is relative.
3866    INSTALL=$ac_install_sh
3867  fi
3868fi
3869echo "$as_me:$LINENO: result: $INSTALL" >&5
3870echo "${ECHO_T}$INSTALL" >&6
3871
3872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3873# It thinks the first close brace ends the variable substitution.
3874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
3876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
3878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
3880echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3881echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3882# Just in case
3883sleep 1
3884echo timestamp > conftest.file
3885# Do `set' in a subshell so we don't clobber the current shell's
3886# arguments.  Must try -L first in case configure is actually a
3887# symlink; some systems play weird games with the mod time of symlinks
3888# (eg FreeBSD returns the mod time of the symlink's containing
3889# directory).
3890if (
3891   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3892   if test "$*" = "X"; then
3893      # -L didn't work.
3894      set X `ls -t $srcdir/configure conftest.file`
3895   fi
3896   rm -f conftest.file
3897   if test "$*" != "X $srcdir/configure conftest.file" \
3898      && test "$*" != "X conftest.file $srcdir/configure"; then
3899
3900      # If neither matched, then we have a broken ls.  This can happen
3901      # if, for instance, CONFIG_SHELL is bash and it inherits a
3902      # broken ls alias from the environment.  This has actually
3903      # happened.  Such a system could not be considered "sane".
3904      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3905alias in your environment" >&5
3906echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3907alias in your environment" >&2;}
3908   { (exit 1); exit 1; }; }
3909   fi
3910
3911   test "$2" = conftest.file
3912   )
3913then
3914   # Ok.
3915   :
3916else
3917   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3918Check your system clock" >&5
3919echo "$as_me: error: newly created file is older than distributed files!
3920Check your system clock" >&2;}
3921   { (exit 1); exit 1; }; }
3922fi
3923echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925test "$program_prefix" != NONE &&
3926  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3927# Use a double $ so make ignores it.
3928test "$program_suffix" != NONE &&
3929  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3930# Double any \ or $.  echo might interpret backslashes.
3931# By default was `s,x,x', remove it if useless.
3932cat <<\_ACEOF >conftest.sed
3933s/[\\$]/&&/g;s/;s,x,x,$//
3934_ACEOF
3935program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3936rm conftest.sed
3937
3938# expand $ac_aux_dir to an absolute path
3939am_aux_dir=`cd $ac_aux_dir && pwd`
3940
3941test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3942# Use eval to expand $SHELL
3943if eval "$MISSING --run true"; then
3944  am_missing_run="$MISSING --run "
3945else
3946  am_missing_run=
3947  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3948echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3949fi
3950
3951if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3952  # We used to keeping the `.' as first argument, in order to
3953  # allow $(mkdir_p) to be used without argument.  As in
3954  #   $(mkdir_p) $(somedir)
3955  # where $(somedir) is conditionally defined.  However this is wrong
3956  # for two reasons:
3957  #  1. if the package is installed by a user who cannot write `.'
3958  #     make install will fail,
3959  #  2. the above comment should most certainly read
3960  #     $(mkdir_p) $(DESTDIR)$(somedir)
3961  #     so it does not work when $(somedir) is undefined and
3962  #     $(DESTDIR) is not.
3963  #  To support the latter case, we have to write
3964  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3965  #  so the `.' trick is pointless.
3966  mkdir_p='mkdir -p --'
3967else
3968  # On NextStep and OpenStep, the `mkdir' command does not
3969  # recognize any option.  It will interpret all options as
3970  # directories to create, and then abort because `.' already
3971  # exists.
3972  for d in ./-p ./--version;
3973  do
3974    test -d $d && rmdir $d
3975  done
3976  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3977  if test -f "$ac_aux_dir/mkinstalldirs"; then
3978    mkdir_p='$(mkinstalldirs)'
3979  else
3980    mkdir_p='$(install_sh) -d'
3981  fi
3982fi
3983
3984for ac_prog in gawk mawk nawk awk
3985do
3986  # Extract the first word of "$ac_prog", so it can be a program name with args.
3987set dummy $ac_prog; ac_word=$2
3988echo "$as_me:$LINENO: checking for $ac_word" >&5
3989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990if test "${ac_cv_prog_AWK+set}" = set; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  if test -n "$AWK"; then
3994  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999  IFS=$as_save_IFS
4000  test -z "$as_dir" && as_dir=.
4001  for ac_exec_ext in '' $ac_executable_extensions; do
4002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003    ac_cv_prog_AWK="$ac_prog"
4004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4005    break 2
4006  fi
4007done
4008done
4009
4010fi
4011fi
4012AWK=$ac_cv_prog_AWK
4013if test -n "$AWK"; then
4014  echo "$as_me:$LINENO: result: $AWK" >&5
4015echo "${ECHO_T}$AWK" >&6
4016else
4017  echo "$as_me:$LINENO: result: no" >&5
4018echo "${ECHO_T}no" >&6
4019fi
4020
4021  test -n "$AWK" && break
4022done
4023
4024echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4025echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4026set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4027if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4028  echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030  cat >conftest.make <<\_ACEOF
4031all:
4032        @echo 'ac_maketemp="$(MAKE)"'
4033_ACEOF
4034# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4035eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4036if test -n "$ac_maketemp"; then
4037  eval ac_cv_prog_make_${ac_make}_set=yes
4038else
4039  eval ac_cv_prog_make_${ac_make}_set=no
4040fi
4041rm -f conftest.make
4042fi
4043if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4044  echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046  SET_MAKE=
4047else
4048  echo "$as_me:$LINENO: result: no" >&5
4049echo "${ECHO_T}no" >&6
4050  SET_MAKE="MAKE=${MAKE-make}"
4051fi
4052
4053rm -rf .tst 2>/dev/null
4054mkdir .tst 2>/dev/null
4055if test -d .tst; then
4056  am__leading_dot=.
4057else
4058  am__leading_dot=_
4059fi
4060rmdir .tst 2>/dev/null
4061
4062DEPDIR="${am__leading_dot}deps"
4063
4064          ac_config_commands="$ac_config_commands depfiles"
4065
4066
4067am_make=${MAKE-make}
4068cat > confinc << 'END'
4069am__doit:
4070        @echo done
4071.PHONY: am__doit
4072END
4073# If we don't find an include directive, just comment out the code.
4074echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4075echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4076am__include="#"
4077am__quote=
4078_am_result=none
4079# First try GNU make style include.
4080echo "include confinc" > confmf
4081# We grep out `Entering directory' and `Leaving directory'
4082# messages which can occur if `w' ends up in MAKEFLAGS.
4083# In particular we don't look at `^make:' because GNU make might
4084# be invoked under some other name (usually "gmake"), in which
4085# case it prints its new name instead of `make'.
4086if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4087   am__include=include
4088   am__quote=
4089   _am_result=GNU
4090fi
4091# Now try BSD make style include.
4092if test "$am__include" = "#"; then
4093   echo '.include "confinc"' > confmf
4094   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4095      am__include=.include
4096      am__quote="\""
4097      _am_result=BSD
4098   fi
4099fi
4100
4101
4102echo "$as_me:$LINENO: result: $_am_result" >&5
4103echo "${ECHO_T}$_am_result" >&6
4104rm -f confinc confmf
4105
4106# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4107if test "${enable_dependency_tracking+set}" = set; then
4108  enableval="$enable_dependency_tracking"
4109
4110fi;
4111if test "x$enable_dependency_tracking" != xno; then
4112  am_depcomp="$ac_aux_dir/depcomp"
4113  AMDEPBACKSLASH='\'
4114fi
4115
4116
4117if test "x$enable_dependency_tracking" != xno; then
4118  AMDEP_TRUE=
4119  AMDEP_FALSE='#'
4120else
4121  AMDEP_TRUE='#'
4122  AMDEP_FALSE=
4123fi
4124
4125
4126
4127
4128
4129# AC_MSG_NOTICE([Beginning automake initialisation.])
4130# Stuff for automake
4131# test to see if srcdir already configured
4132if test "`cd $srcdir && pwd`" != "`pwd`" &&
4133   test -f $srcdir/config.status; then
4134  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4135echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4136   { (exit 1); exit 1; }; }
4137fi
4138
4139# test whether we have cygpath
4140if test -z "$CYGPATH_W"; then
4141  if (cygpath --version) >/dev/null 2>/dev/null; then
4142    CYGPATH_W='cygpath -w'
4143  else
4144    CYGPATH_W=echo
4145  fi
4146fi
4147
4148
4149# Define the identity of the package.
4150 PACKAGE='thirdpartylapack'
4151 VERSION='1.0stable'
4152
4153
4154cat >>confdefs.h <<_ACEOF
4155#define PACKAGE "$PACKAGE"
4156_ACEOF
4157
4158
4159cat >>confdefs.h <<_ACEOF
4160#define VERSION "$VERSION"
4161_ACEOF
4162
4163# Some tools Automake needs.
4164
4165ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4166
4167
4168AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4169
4170
4171AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4172
4173
4174AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4175
4176
4177MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4178
4179install_sh=${install_sh-"$am_aux_dir/install-sh"}
4180
4181# Installed binaries are usually stripped using `strip' when the user
4182# run `make install-strip'.  However `strip' might not be the right
4183# tool to use in cross-compilation environments, therefore Automake
4184# will honor the `STRIP' environment variable to overrule this program.
4185if test "$cross_compiling" != no; then
4186  if test -n "$ac_tool_prefix"; then
4187  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4188set dummy ${ac_tool_prefix}strip; ac_word=$2
4189echo "$as_me:$LINENO: checking for $ac_word" >&5
4190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191if test "${ac_cv_prog_STRIP+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  if test -n "$STRIP"; then
4195  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4196else
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200  IFS=$as_save_IFS
4201  test -z "$as_dir" && as_dir=.
4202  for ac_exec_ext in '' $ac_executable_extensions; do
4203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206    break 2
4207  fi
4208done
4209done
4210
4211fi
4212fi
4213STRIP=$ac_cv_prog_STRIP
4214if test -n "$STRIP"; then
4215  echo "$as_me:$LINENO: result: $STRIP" >&5
4216echo "${ECHO_T}$STRIP" >&6
4217else
4218  echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
4220fi
4221
4222fi
4223if test -z "$ac_cv_prog_STRIP"; then
4224  ac_ct_STRIP=$STRIP
4225  # Extract the first word of "strip", so it can be a program name with args.
4226set dummy strip; ac_word=$2
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4230  echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232  if test -n "$ac_ct_STRIP"; then
4233  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240  for ac_exec_ext in '' $ac_executable_extensions; do
4241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242    ac_cv_prog_ac_ct_STRIP="strip"
4243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244    break 2
4245  fi
4246done
4247done
4248
4249  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4250fi
4251fi
4252ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4253if test -n "$ac_ct_STRIP"; then
4254  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4255echo "${ECHO_T}$ac_ct_STRIP" >&6
4256else
4257  echo "$as_me:$LINENO: result: no" >&5
4258echo "${ECHO_T}no" >&6
4259fi
4260
4261  STRIP=$ac_ct_STRIP
4262else
4263  STRIP="$ac_cv_prog_STRIP"
4264fi
4265
4266fi
4267INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4268
4269# We need awk for the "check" target.  The system "awk" is bad on
4270# some platforms.
4271# Always define AMTAR for backward compatibility.
4272
4273AMTAR=${AMTAR-"${am_missing_run}tar"}
4274
4275am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4276
4277
4278
4279
4280depcc="$CC"   am_compiler_list=
4281
4282echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4283echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4284if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4285  echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4288  # We make a subdir and do the tests there.  Otherwise we can end up
4289  # making bogus files that we don't know about and never remove.  For
4290  # instance it was reported that on HP-UX the gcc test will end up
4291  # making a dummy file named `D' -- because `-MD' means `put the output
4292  # in D'.
4293  mkdir conftest.dir
4294  # Copy depcomp to subdir because otherwise we won't find it if we're
4295  # using a relative directory.
4296  cp "$am_depcomp" conftest.dir
4297  cd conftest.dir
4298  # We will build objects and dependencies in a subdirectory because
4299  # it helps to detect inapplicable dependency modes.  For instance
4300  # both Tru64's cc and ICC support -MD to output dependencies as a
4301  # side effect of compilation, but ICC will put the dependencies in
4302  # the current directory while Tru64 will put them in the object
4303  # directory.
4304  mkdir sub
4305
4306  am_cv_CC_dependencies_compiler_type=none
4307  if test "$am_compiler_list" = ""; then
4308     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4309  fi
4310  for depmode in $am_compiler_list; do
4311    # Setup a source with many dependencies, because some compilers
4312    # like to wrap large dependency lists on column 80 (with \), and
4313    # we should not choose a depcomp mode which is confused by this.
4314    #
4315    # We need to recreate these files for each test, as the compiler may
4316    # overwrite some of them when testing with obscure command lines.
4317    # This happens at least with the AIX C compiler.
4318    : > sub/conftest.c
4319    for i in 1 2 3 4 5 6; do
4320      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4321      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4322      # Solaris 8's {/usr,}/bin/sh.
4323      touch sub/conftst$i.h
4324    done
4325    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4326
4327    case $depmode in
4328    nosideeffect)
4329      # after this tag, mechanisms are not by side-effect, so they'll
4330      # only be used when explicitly requested
4331      if test "x$enable_dependency_tracking" = xyes; then
4332        continue
4333      else
4334        break
4335      fi
4336      ;;
4337    none) break ;;
4338    esac
4339    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4340    # mode.  It turns out that the SunPro C++ compiler does not properly
4341    # handle `-M -o', and we need to detect this.
4342    if depmode=$depmode \
4343       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4344       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4345       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4346         >/dev/null 2>conftest.err &&
4347       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4348       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4349       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4350      # icc doesn't choke on unknown options, it will just issue warnings
4351      # or remarks (even with -Werror).  So we grep stderr for any message
4352      # that says an option was ignored or not supported.
4353      # When given -MP, icc 7.0 and 7.1 complain thusly:
4354      #   icc: Command line warning: ignoring option '-M'; no argument required
4355      # The diagnosis changed in icc 8.0:
4356      #   icc: Command line remark: option '-MP' not supported
4357      if (grep 'ignoring option' conftest.err ||
4358          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4359        am_cv_CC_dependencies_compiler_type=$depmode
4360        break
4361      fi
4362    fi
4363  done
4364
4365  cd ..
4366  rm -rf conftest.dir
4367else
4368  am_cv_CC_dependencies_compiler_type=none
4369fi
4370
4371fi
4372echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4373echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4374CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4375
4376
4377
4378if
4379  test "x$enable_dependency_tracking" != xno \
4380  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4381  am__fastdepCC_TRUE=
4382  am__fastdepCC_FALSE='#'
4383else
4384  am__fastdepCC_TRUE='#'
4385  am__fastdepCC_FALSE=
4386fi
4387
4388
4389
4390echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4391echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4392    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4393if test "${enable_maintainer_mode+set}" = set; then
4394  enableval="$enable_maintainer_mode"
4395  USE_MAINTAINER_MODE=$enableval
4396else
4397  USE_MAINTAINER_MODE=no
4398fi;
4399  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4400echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4401
4402
4403if test $USE_MAINTAINER_MODE = yes; then
4404  MAINTAINER_MODE_TRUE=
4405  MAINTAINER_MODE_FALSE='#'
4406else
4407  MAINTAINER_MODE_TRUE='#'
4408  MAINTAINER_MODE_FALSE=
4409fi
4410
4411  MAINT=$MAINTAINER_MODE_TRUE
4412
4413
4414
4415coin_have_externals=no
4416if test "$enable_maintainer_mode" = yes; then
4417
4418  # If maintainer mode is chosen, we make sure that the correct versions
4419  # of the tools are used, and that we know where libtool.m4 is (to
4420  # recreate acinclude.m4)
4421
4422
4423  LIBTOOLM4=
4424  # Normally, $HOME
4425  AUTOTOOLS_DFLT=$HOME
4426
4427  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4428echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4429if test "${ac_cv_use_correct_autotools+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  ac_cv_use_correct_autotools=check
4433fi
4434echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4435echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4436
4437  if test $ac_cv_use_correct_autotools = check; then
4438    ac_cv_use_correct_autotools=yes
4439    # Check if we have autoconf
4440    # Extract the first word of "autoconf", so it can be a program name with args.
4441set dummy autoconf; ac_word=$2
4442echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444if test "${ac_cv_prog_have_autoconf+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  if test -n "$have_autoconf"; then
4448  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455  for ac_exec_ext in '' $ac_executable_extensions; do
4456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_have_autoconf="yes"
4458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462done
4463
4464  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4465fi
4466fi
4467have_autoconf=$ac_cv_prog_have_autoconf
4468if test -n "$have_autoconf"; then
4469  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4470echo "${ECHO_T}$have_autoconf" >&6
4471else
4472  echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
4474fi
4475
4476    if test $have_autoconf = no; then
4477      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4478echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4479   { (exit 1); exit 1; }; }
4480    fi
4481
4482    # Check whether autoconf is the correct version
4483    correct_version='2.59'
4484    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4485    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4486echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4487    autoconf --version > confauto.out 2>&1
4488    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4489      echo "$as_me:$LINENO: result: yes" >&5
4490echo "${ECHO_T}yes" >&6
4491    else
4492      rm -f confauto.out
4493      echo "$as_me:$LINENO: result: no" >&5
4494echo "${ECHO_T}no" >&6
4495      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4496echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4497   { (exit 1); exit 1; }; }
4498    fi
4499    rm -f confauto.out
4500
4501    # Check if the executable autoconf is picked up from the correct location
4502    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4503echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4504    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4505    autoconf_dir=`cd $autoconf_dir; pwd`
4506    if test x$AUTOTOOLS_DIR = x; then
4507      want_dir=$AUTOTOOLS_DFLT/bin
4508    else
4509      want_dir=$AUTOTOOLS_DIR/bin
4510    fi
4511    if test $autoconf_dir = `cd $want_dir; pwd`; then
4512      echo "$as_me:$LINENO: result: yes" >&5
4513echo "${ECHO_T}yes" >&6
4514    else
4515      rm -f confauto.out
4516      echo "$as_me:$LINENO: result: no" >&5
4517echo "${ECHO_T}no" >&6
4518      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4519echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4520   { (exit 1); exit 1; }; }
4521    fi
4522
4523    # Check if we have automake
4524    # Extract the first word of "automake", so it can be a program name with args.
4525set dummy automake; ac_word=$2
4526echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528if test "${ac_cv_prog_have_automake+set}" = set; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  if test -n "$have_automake"; then
4532  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537  IFS=$as_save_IFS
4538  test -z "$as_dir" && as_dir=.
4539  for ac_exec_ext in '' $ac_executable_extensions; do
4540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541    ac_cv_prog_have_automake="yes"
4542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543    break 2
4544  fi
4545done
4546done
4547
4548  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4549fi
4550fi
4551have_automake=$ac_cv_prog_have_automake
4552if test -n "$have_automake"; then
4553  echo "$as_me:$LINENO: result: $have_automake" >&5
4554echo "${ECHO_T}$have_automake" >&6
4555else
4556  echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6
4558fi
4559
4560    if test $have_automake = no; then
4561      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4562echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4563   { (exit 1); exit 1; }; }
4564    fi
4565
4566    # Check whether automake is the correct version
4567    correct_version='1.9.6'
4568    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4569    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4570echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4571    automake --version > confauto.out 2>&1
4572    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4573      echo "$as_me:$LINENO: result: yes" >&5
4574echo "${ECHO_T}yes" >&6
4575    else
4576      rm -f confauto.out
4577      echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4580echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4581   { (exit 1); exit 1; }; }
4582    fi
4583    rm -f confauto.out
4584
4585    # Check if the executable automake is picked up from the correct location
4586    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4587echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4588    automake_dir=`which automake | sed -e 's=/automake=='`
4589    automake_dir=`cd $automake_dir; pwd`
4590    if test x$AUTOTOOLS_DIR = x; then
4591      want_dir=$AUTOTOOLS_DFLT/bin
4592    else
4593      want_dir=$AUTOTOOLS_DIR/bin
4594    fi
4595    if test $automake_dir = `cd $want_dir; pwd`; then
4596      echo "$as_me:$LINENO: result: yes" >&5
4597echo "${ECHO_T}yes" >&6
4598    else
4599      rm -f confauto.out
4600      echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6
4602      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4603echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4604   { (exit 1); exit 1; }; }
4605    fi
4606
4607    # Check if this is the correct version of libtool (with escaped dots)
4608    if test x$AUTOTOOLS_DIR = x; then
4609      want_dir=$AUTOTOOLS_DFLT/share
4610    else
4611      want_dir=$AUTOTOOLS_DIR/share
4612    fi
4613    correct_version='1.5.22'
4614    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4615    if test -r $want_dir/libtool/ltmain.sh; then
4616  have_ltmain=yes
4617  :
4618else
4619  have_ltmain=no
4620  :
4621fi
4622
4623    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4624echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4625    if test $have_ltmain = yes; then
4626    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4627        echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629      else
4630        echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4633echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4634   { (exit 1); exit 1; }; }
4635      fi
4636    else
4637      echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4640echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4641   { (exit 1); exit 1; }; }
4642    fi
4643  fi
4644
4645  # Check if we can find the libtool file
4646  if test x$AUTOTOOLS_DIR = x; then
4647    want_dir=$AUTOTOOLS_DFLT/share
4648  else
4649    want_dir=$AUTOTOOLS_DIR/share
4650  fi
4651  if test -r $want_dir/aclocal/libtool.m4; then
4652  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4653  :
4654else
4655  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4656echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4657   { (exit 1); exit 1; }; }
4658  :
4659fi
4660
4661
4662  # Check if we have an Externals file
4663  if test -r $srcdir/Externals; then
4664    coin_have_externals=yes
4665  fi
4666  # Check if subversion is installed and understands https
4667  # Extract the first word of "svn", so it can be a program name with args.
4668set dummy svn; ac_word=$2
4669echo "$as_me:$LINENO: checking for $ac_word" >&5
4670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671if test "${ac_cv_prog_have_svn+set}" = set; then
4672  echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674  if test -n "$have_svn"; then
4675  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680  IFS=$as_save_IFS
4681  test -z "$as_dir" && as_dir=.
4682  for ac_exec_ext in '' $ac_executable_extensions; do
4683  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684    ac_cv_prog_have_svn="yes"
4685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686    break 2
4687  fi
4688done
4689done
4690
4691  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4692fi
4693fi
4694have_svn=$ac_cv_prog_have_svn
4695if test -n "$have_svn"; then
4696  echo "$as_me:$LINENO: result: $have_svn" >&5
4697echo "${ECHO_T}$have_svn" >&6
4698else
4699  echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
4701fi
4702
4703  if test x$have_svn = xyes; then
4704    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4705echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4706if test "${ac_cv_svn_understands_https+set}" = set; then
4707  echo $ECHO_N "(cached) $ECHO_C" >&6
4708else
4709  svn --version > confauto.out 2>&1
4710                    if $EGREP https confauto.out >/dev/null 2>&1; then
4711                      ac_cv_svn_understands_https=yes
4712                    else
4713                      ac_cv_svn_understands_https=no
4714                      have_svn=no
4715                      ac_cv_prog_have_svn=no
4716                    fi
4717                    rm -f confauto.out
4718fi
4719echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4720echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4721  fi
4722
4723  # Find the location of the BuildTools directory
4724  BUILDTOOLSDIR=
4725  if test -r $srcdir/BuildTools/coin.m4; then
4726    BUILDTOOLSDIR=$srcdir/BuildTools
4727  else
4728    if test -r $srcdir/../BuildTools/coin.m4; then
4729      BUILDTOOLSDIR=$srcdir/../BuildTools
4730    else
4731      if test -r $srcdir/../../BuildTools/coin.m4; then
4732        BUILDTOOLSDIR=$srcdir/../../BuildTools
4733      else
4734        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4735echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4736   { (exit 1); exit 1; }; }
4737      fi
4738    fi
4739  fi
4740
4741
4742  # The following variable is set to the name of the directory where
4743  # the autotool scripts are located
4744
4745  AUX_DIR=$ac_aux_dir
4746fi
4747
4748# helpful variable for the base directory of this package
4749abs_source_dir=`cd $srcdir; pwd`
4750
4751
4752# Stuff for example Makefiles
4753if test x$prefix = xNONE; then
4754  full_prefix=$ac_default_prefix
4755else
4756  full_prefix=$prefix
4757fi
4758full_prefix=`cd $full_prefix ; pwd`
4759
4760abs_lib_dir=$full_prefix/lib
4761
4762abs_include_dir=$full_prefix/include
4763
4764abs_bin_dir=$full_prefix/bin
4765
4766
4767
4768if test $coin_have_externals = yes && test x$have_svn = xyes; then
4769  HAVE_EXTERNALS_TRUE=
4770  HAVE_EXTERNALS_FALSE='#'
4771else
4772  HAVE_EXTERNALS_TRUE='#'
4773  HAVE_EXTERNALS_FALSE=
4774fi
4775
4776
4777# AC_MSG_NOTICE([End automake initialisation.])
4778
4779
4780
4781LIBTOOL=
4782if test -r ../libtool; then
4783  coin_config_dir=..
4784  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4785fi
4786if test "x$LIBTOOL" = x; then
4787  if test -r ../../libtool; then
4788    coin_config_dir=../..
4789    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4790  fi
4791fi
4792
4793if test "x$LIBTOOL" = x; then
4794# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4795  # Stuff for libtool
4796  # Check whether --enable-shared or --disable-shared was given.
4797if test "${enable_shared+set}" = set; then
4798  enableval="$enable_shared"
4799  p=${PACKAGE-default}
4800    case $enableval in
4801    yes) enable_shared=yes ;;
4802    no) enable_shared=no ;;
4803    *)
4804      enable_shared=no
4805      # Look at the argument we got.  We use all the common list separators.
4806      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4807      for pkg in $enableval; do
4808        IFS="$lt_save_ifs"
4809        if test "X$pkg" = "X$p"; then
4810          enable_shared=yes
4811        fi
4812      done
4813      IFS="$lt_save_ifs"
4814      ;;
4815    esac
4816else
4817  enable_shared=yes
4818fi;
4819
4820# Check whether --enable-fast-install or --disable-fast-install was given.
4821if test "${enable_fast_install+set}" = set; then
4822  enableval="$enable_fast_install"
4823  p=${PACKAGE-default}
4824    case $enableval in
4825    yes) enable_fast_install=yes ;;
4826    no) enable_fast_install=no ;;
4827    *)
4828      enable_fast_install=no
4829      # Look at the argument we got.  We use all the common list separators.
4830      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4831      for pkg in $enableval; do
4832        IFS="$lt_save_ifs"
4833        if test "X$pkg" = "X$p"; then
4834          enable_fast_install=yes
4835        fi
4836      done
4837      IFS="$lt_save_ifs"
4838      ;;
4839    esac
4840else
4841  enable_fast_install=yes
4842fi;
4843
4844echo "$as_me:$LINENO: checking host system type" >&5
4845echo $ECHO_N "checking host system type... $ECHO_C" >&6
4846if test "${ac_cv_host+set}" = set; then
4847  echo $ECHO_N "(cached) $ECHO_C" >&6
4848else
4849  ac_cv_host_alias=$host_alias
4850test -z "$ac_cv_host_alias" &&
4851  ac_cv_host_alias=$ac_cv_build_alias
4852ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4853  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4854echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4855   { (exit 1); exit 1; }; }
4856
4857fi
4858echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4859echo "${ECHO_T}$ac_cv_host" >&6
4860host=$ac_cv_host
4861host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4862host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4863host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4864
4865
4866echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4867echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4868if test "${lt_cv_path_SED+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  # Loop through the user's path and test for sed and gsed.
4872# Then use that list of sed's as ones to test for truncation.
4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874for as_dir in $PATH
4875do
4876  IFS=$as_save_IFS
4877  test -z "$as_dir" && as_dir=.
4878  for lt_ac_prog in sed gsed; do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4881        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4882      fi
4883    done
4884  done
4885done
4886lt_ac_max=0
4887lt_ac_count=0
4888# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4889# along with /bin/sed that truncates output.
4890for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4891  test ! -f $lt_ac_sed && continue
4892  cat /dev/null > conftest.in
4893  lt_ac_count=0
4894  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4895  # Check for GNU sed and select it if it is found.
4896  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4897    lt_cv_path_SED=$lt_ac_sed
4898    break
4899  fi
4900  while true; do
4901    cat conftest.in conftest.in >conftest.tmp
4902    mv conftest.tmp conftest.in
4903    cp conftest.in conftest.nl
4904    echo >>conftest.nl
4905    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4906    cmp -s conftest.out conftest.nl || break
4907    # 10000 chars as input seems more than enough
4908    test $lt_ac_count -gt 10 && break
4909    lt_ac_count=`expr $lt_ac_count + 1`
4910    if test $lt_ac_count -gt $lt_ac_max; then
4911      lt_ac_max=$lt_ac_count
4912      lt_cv_path_SED=$lt_ac_sed
4913    fi
4914  done
4915done
4916
4917fi
4918
4919SED=$lt_cv_path_SED
4920echo "$as_me:$LINENO: result: $SED" >&5
4921echo "${ECHO_T}$SED" >&6
4922
4923
4924# Check whether --with-gnu-ld or --without-gnu-ld was given.
4925if test "${with_gnu_ld+set}" = set; then
4926  withval="$with_gnu_ld"
4927  test "$withval" = no || with_gnu_ld=yes
4928else
4929  with_gnu_ld=no
4930fi;
4931ac_prog=ld
4932if test "$GCC" = yes; then
4933  # Check if gcc -print-prog-name=ld gives a path.
4934  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4935echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4936  case $host in
4937  *-*-mingw*)
4938    # gcc leaves a trailing carriage return which upsets mingw
4939    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4940  *)
4941    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4942  esac
4943  case $ac_prog in
4944    # Accept absolute paths.
4945    [\\/]* | ?:[\\/]*)
4946      re_direlt='/[^/][^/]*/\.\./'
4947      # Canonicalize the pathname of ld
4948      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4949      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4950        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4951      done
4952      test -z "$LD" && LD="$ac_prog"
4953      ;;
4954  "")
4955    # If it fails, then pretend we aren't using GCC.
4956    ac_prog=ld
4957    ;;
4958  *)
4959    # If it is relative, then search for the first ld in PATH.
4960    with_gnu_ld=unknown
4961    ;;
4962  esac
4963elif test "$with_gnu_ld" = yes; then
4964  echo "$as_me:$LINENO: checking for GNU ld" >&5
4965echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4966else
4967  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4968echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4969fi
4970if test "${lt_cv_path_LD+set}" = set; then
4971  echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973  if test -z "$LD"; then
4974  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4975  for ac_dir in $PATH; do
4976    IFS="$lt_save_ifs"
4977    test -z "$ac_dir" && ac_dir=.
4978    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4979      lt_cv_path_LD="$ac_dir/$ac_prog"
4980      # Check to see if the program is GNU ld.  I'd rather use --version,
4981      # but apparently some variants of GNU ld only accept -v.
4982      # Break only if it was the GNU/non-GNU ld that we prefer.
4983      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4984      *GNU* | *'with BFD'*)
4985        test "$with_gnu_ld" != no && break
4986        ;;
4987      *)
4988        test "$with_gnu_ld" != yes && break
4989        ;;
4990      esac
4991    fi
4992  done
4993  IFS="$lt_save_ifs"
4994else
4995  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4996fi
4997fi
4998
4999LD="$lt_cv_path_LD"
5000if test -n "$LD"; then
5001  echo "$as_me:$LINENO: result: $LD" >&5
5002echo "${ECHO_T}$LD" >&6
5003else
5004  echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006fi
5007test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5008echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5009   { (exit 1); exit 1; }; }
5010echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5011echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5012if test "${lt_cv_prog_gnu_ld+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5016case `$LD -v 2>&1 </dev/null` in
5017*GNU* | *'with BFD'*)
5018  lt_cv_prog_gnu_ld=yes
5019  ;;
5020*)
5021  lt_cv_prog_gnu_ld=no
5022  ;;
5023esac
5024fi
5025echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5026echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5027with_gnu_ld=$lt_cv_prog_gnu_ld
5028
5029
5030echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5031echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5032if test "${lt_cv_ld_reload_flag+set}" = set; then
5033  echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035  lt_cv_ld_reload_flag='-r'
5036fi
5037echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5038echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5039reload_flag=$lt_cv_ld_reload_flag
5040case $reload_flag in
5041"" | " "*) ;;
5042*) reload_flag=" $reload_flag" ;;
5043esac
5044reload_cmds='$LD$reload_flag -o $output$reload_objs'
5045case $host_os in
5046  darwin*)
5047    if test "$GCC" = yes; then
5048      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5049    else
5050      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5051    fi
5052    ;;
5053esac
5054
5055echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5056echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5057if test "${lt_cv_path_NM+set}" = set; then
5058  echo $ECHO_N "(cached) $ECHO_C" >&6
5059else
5060  if test -n "$NM"; then
5061  # Let the user override the test.
5062  lt_cv_path_NM="$NM"
5063else
5064  lt_nm_to_check="${ac_tool_prefix}nm"
5065  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5066    lt_nm_to_check="$lt_nm_to_check nm"
5067  fi
5068  for lt_tmp_nm in $lt_nm_to_check; do
5069    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5070    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5071      IFS="$lt_save_ifs"
5072      test -z "$ac_dir" && ac_dir=.
5073      tmp_nm="$ac_dir/$lt_tmp_nm"
5074      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5075        # Check to see if the nm accepts a BSD-compat flag.
5076        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5077        #   nm: unknown option "B" ignored
5078        # Tru64's nm complains that /dev/null is an invalid object file
5079        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5080        */dev/null* | *'Invalid file or object type'*)
5081          lt_cv_path_NM="$tmp_nm -B"
5082          break
5083          ;;
5084        *)
5085          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5086          */dev/null*)
5087            lt_cv_path_NM="$tmp_nm -p"
5088            break
5089            ;;
5090          *)
5091            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5092            continue # so that we can try to find one that supports BSD flags
5093            ;;
5094          esac
5095          ;;
5096        esac
5097      fi
5098    done
5099    IFS="$lt_save_ifs"
5100  done
5101  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5102fi
5103fi
5104echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5105echo "${ECHO_T}$lt_cv_path_NM" >&6
5106NM="$lt_cv_path_NM"
5107
5108echo "$as_me:$LINENO: checking whether ln -s works" >&5
5109echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5110LN_S=$as_ln_s
5111if test "$LN_S" = "ln -s"; then
5112  echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114else
5115  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5116echo "${ECHO_T}no, using $LN_S" >&6
5117fi
5118
5119echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5120echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5121if test "${lt_cv_deplibs_check_method+set}" = set; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  lt_cv_file_magic_cmd='$MAGIC_CMD'
5125lt_cv_file_magic_test_file=
5126lt_cv_deplibs_check_method='unknown'
5127# Need to set the preceding variable on all platforms that support
5128# interlibrary dependencies.
5129# 'none' -- dependencies not supported.
5130# `unknown' -- same as none, but documents that we really don't know.
5131# 'pass_all' -- all dependencies passed with no checks.
5132# 'test_compile' -- check by making test program.
5133# 'file_magic [[regex]]' -- check by looking for files in library path
5134# which responds to the $file_magic_cmd with a given extended regex.
5135# If you have `file' or equivalent on your system and you're not sure
5136# whether `pass_all' will *always* work, you probably want this one.
5137
5138case $host_os in
5139aix4* | aix5*)
5140  lt_cv_deplibs_check_method=pass_all
5141  ;;
5142
5143beos*)
5144  lt_cv_deplibs_check_method=pass_all
5145  ;;
5146
5147bsdi[45]*)
5148  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5149  lt_cv_file_magic_cmd='/usr/bin/file -L'
5150  lt_cv_file_magic_test_file=/shlib/libc.so
5151  ;;
5152
5153cygwin*)
5154  # func_win32_libid is a shell function defined in ltmain.sh
5155  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5156  lt_cv_file_magic_cmd='func_win32_libid'
5157  ;;
5158
5159mingw* | pw32*)
5160  # Base MSYS/MinGW do not provide the 'file' command needed by
5161  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5162  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5163  lt_cv_file_magic_cmd='$OBJDUMP -f'
5164  ;;
5165
5166darwin* | rhapsody*)
5167  lt_cv_deplibs_check_method=pass_all
5168  ;;
5169
5170freebsd* | kfreebsd*-gnu | dragonfly*)
5171  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5172    case $host_cpu in
5173    i*86 )
5174      # Not sure whether the presence of OpenBSD here was a mistake.
5175      # Let's accept both of them until this is cleared up.
5176      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5177      lt_cv_file_magic_cmd=/usr/bin/file
5178      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5179      ;;
5180    esac
5181  else
5182    lt_cv_deplibs_check_method=pass_all
5183  fi
5184  ;;
5185
5186gnu*)
5187  lt_cv_deplibs_check_method=pass_all
5188  ;;
5189
5190hpux10.20* | hpux11*)
5191  lt_cv_file_magic_cmd=/usr/bin/file
5192  case $host_cpu in
5193  ia64*)
5194    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5195    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5196    ;;
5197  hppa*64*)
5198    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]'
5199    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5200    ;;
5201  *)
5202    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5203    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5204    ;;
5205  esac
5206  ;;
5207
5208interix3*)
5209  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5210  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5211  ;;
5212
5213irix5* | irix6* | nonstopux*)
5214  case $LD in
5215  *-32|*"-32 ") libmagic=32-bit;;
5216  *-n32|*"-n32 ") libmagic=N32;;
5217  *-64|*"-64 ") libmagic=64-bit;;
5218  *) libmagic=never-match;;
5219  esac
5220  lt_cv_deplibs_check_method=pass_all
5221  ;;
5222
5223# This must be Linux ELF.
5224linux*)
5225  lt_cv_deplibs_check_method=pass_all
5226  ;;
5227
5228netbsd*)
5229  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5230    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5231  else
5232    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5233  fi
5234  ;;
5235
5236newos6*)
5237  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5238  lt_cv_file_magic_cmd=/usr/bin/file
5239  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5240  ;;
5241
5242nto-qnx*)
5243  lt_cv_deplibs_check_method=unknown
5244  ;;
5245
5246openbsd*)
5247  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5248    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5249  else
5250    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5251  fi
5252  ;;
5253
5254osf3* | osf4* | osf5*)
5255  lt_cv_deplibs_check_method=pass_all
5256  ;;
5257
5258solaris*)
5259  lt_cv_deplibs_check_method=pass_all
5260  ;;
5261
5262sysv4 | sysv4.3*)
5263  case $host_vendor in
5264  motorola)
5265    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]'
5266    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5267    ;;
5268  ncr)
5269    lt_cv_deplibs_check_method=pass_all
5270    ;;
5271  sequent)
5272    lt_cv_file_magic_cmd='/bin/file'
5273    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5274    ;;
5275  sni)
5276    lt_cv_file_magic_cmd='/bin/file'
5277    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5278    lt_cv_file_magic_test_file=/lib/libc.so
5279    ;;
5280  siemens)
5281    lt_cv_deplibs_check_method=pass_all
5282    ;;
5283  pc)
5284    lt_cv_deplibs_check_method=pass_all
5285    ;;
5286  esac
5287  ;;
5288
5289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5290  lt_cv_deplibs_check_method=pass_all
5291  ;;
5292esac
5293
5294fi
5295echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5296echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5297file_magic_cmd=$lt_cv_file_magic_cmd
5298deplibs_check_method=$lt_cv_deplibs_check_method
5299test -z "$deplibs_check_method" && deplibs_check_method=unknown
5300
5301
5302
5303
5304# If no C compiler was specified, use CC.
5305LTCC=${LTCC-"$CC"}
5306
5307# If no C compiler flags were specified, use CFLAGS.
5308LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5309
5310# Allow CC to be a program name with arguments.
5311compiler=$CC
5312
5313# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5314if test "${enable_libtool_lock+set}" = set; then
5315  enableval="$enable_libtool_lock"
5316
5317fi;
5318test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5319
5320# Some flags need to be propagated to the compiler or linker for good
5321# libtool support.
5322case $host in
5323ia64-*-hpux*)
5324  # Find out which ABI we are using.
5325  echo 'int i;' > conftest.$ac_ext
5326  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327  (eval $ac_compile) 2>&5
5328  ac_status=$?
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); }; then
5331    case `/usr/bin/file conftest.$ac_objext` in
5332    *ELF-32*)
5333      HPUX_IA64_MODE="32"
5334      ;;
5335    *ELF-64*)
5336      HPUX_IA64_MODE="64"
5337      ;;
5338    esac
5339  fi
5340  rm -rf conftest*
5341  ;;
5342*-*-irix6*)
5343  # Find out which ABI we are using.
5344  echo '#line 5344 "configure"' > conftest.$ac_ext
5345  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346  (eval $ac_compile) 2>&5
5347  ac_status=$?
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); }; then
5350   if test "$lt_cv_prog_gnu_ld" = yes; then
5351    case `/usr/bin/file conftest.$ac_objext` in
5352    *32-bit*)
5353      LD="${LD-ld} -melf32bsmip"
5354      ;;
5355    *N32*)
5356      LD="${LD-ld} -melf32bmipn32"
5357      ;;
5358    *64-bit*)
5359      LD="${LD-ld} -melf64bmip"
5360      ;;
5361    esac
5362   else
5363    case `/usr/bin/file conftest.$ac_objext` in
5364    *32-bit*)
5365      LD="${LD-ld} -32"
5366      ;;
5367    *N32*)
5368      LD="${LD-ld} -n32"
5369      ;;
5370    *64-bit*)
5371      LD="${LD-ld} -64"
5372      ;;
5373    esac
5374   fi
5375  fi
5376  rm -rf conftest*
5377  ;;
5378
5379x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5380  # Find out which ABI we are using.
5381  echo 'int i;' > conftest.$ac_ext
5382  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383  (eval $ac_compile) 2>&5
5384  ac_status=$?
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); }; then
5387    case `/usr/bin/file conftest.o` in
5388    *32-bit*)
5389      case $host in
5390        x86_64-*linux*)
5391          LD="${LD-ld} -m elf_i386"
5392          ;;
5393        ppc64-*linux*|powerpc64-*linux*)
5394          LD="${LD-ld} -m elf32ppclinux"
5395          ;;
5396        s390x-*linux*)
5397          LD="${LD-ld} -m elf_s390"
5398          ;;
5399        sparc64-*linux*)
5400          LD="${LD-ld} -m elf32_sparc"
5401          ;;
5402      esac
5403      ;;
5404    *64-bit*)
5405      case $host in
5406        x86_64-*linux*)
5407          LD="${LD-ld} -m elf_x86_64"
5408          ;;
5409        ppc*-*linux*|powerpc*-*linux*)
5410          LD="${LD-ld} -m elf64ppc"
5411          ;;
5412        s390*-*linux*)
5413          LD="${LD-ld} -m elf64_s390"
5414          ;;
5415        sparc*-*linux*)
5416          LD="${LD-ld} -m elf64_sparc"
5417          ;;
5418      esac
5419      ;;
5420    esac
5421  fi
5422  rm -rf conftest*
5423  ;;
5424
5425*-*-sco3.2v5*)
5426  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5427  SAVE_CFLAGS="$CFLAGS"
5428  CFLAGS="$CFLAGS -belf"
5429  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5430echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5431if test "${lt_cv_cc_needs_belf+set}" = set; then
5432  echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434  ac_ext=c
5435ac_cpp='$CPP $CPPFLAGS'
5436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440     cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h.  */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h.  */
5446
5447int
5448main ()
5449{
5450
5451  ;
5452  return 0;
5453}
5454_ACEOF
5455rm -f conftest.$ac_objext conftest$ac_exeext
5456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457  (eval $ac_link) 2>conftest.er1
5458  ac_status=$?
5459  grep -v '^ *+' conftest.er1 >conftest.err
5460  rm -f conftest.er1
5461  cat conftest.err >&5
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } &&
5464         { ac_try='test -z "$ac_c_werror_flag"
5465                         || test ! -s conftest.err'
5466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467  (eval $ac_try) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }; } &&
5471         { ac_try='test -s conftest$ac_exeext'
5472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473  (eval $ac_try) 2>&5
5474  ac_status=$?
5475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476  (exit $ac_status); }; }; then
5477  lt_cv_cc_needs_belf=yes
5478else
5479  echo "$as_me: failed program was:" >&5
5480sed 's/^/| /' conftest.$ac_ext >&5
5481
5482lt_cv_cc_needs_belf=no
5483fi
5484rm -f conftest.err conftest.$ac_objext \
5485      conftest$ac_exeext conftest.$ac_ext
5486     ac_ext=c
5487ac_cpp='$CPP $CPPFLAGS'
5488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490ac_compiler_gnu=$ac_cv_c_compiler_gnu
5491
5492fi
5493echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5494echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5495  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5496    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5497    CFLAGS="$SAVE_CFLAGS"
5498  fi
5499  ;;
5500sparc*-*solaris*)
5501  # Find out which ABI we are using.
5502  echo 'int i;' > conftest.$ac_ext
5503  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504  (eval $ac_compile) 2>&5
5505  ac_status=$?
5506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507  (exit $ac_status); }; then
5508    case `/usr/bin/file conftest.o` in
5509    *64-bit*)
5510      case $lt_cv_prog_gnu_ld in
5511      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5512      *)    LD="${LD-ld} -64" ;;
5513      esac
5514      ;;
5515    esac
5516  fi
5517  rm -rf conftest*
5518  ;;
5519
5520
5521esac
5522
5523need_locks="$enable_libtool_lock"
5524
5525
5526ac_ext=c
5527ac_cpp='$CPP $CPPFLAGS'
5528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5532echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5533# On Suns, sometimes $CPP names a directory.
5534if test -n "$CPP" && test -d "$CPP"; then
5535  CPP=
5536fi
5537if test -z "$CPP"; then
5538  if test "${ac_cv_prog_CPP+set}" = set; then
5539  echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541      # Double quotes because CPP needs to be expanded
5542    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5543    do
5544      ac_preproc_ok=false
5545for ac_c_preproc_warn_flag in '' yes
5546do
5547  # Use a header file that comes with gcc, so configuring glibc
5548  # with a fresh cross-compiler works.
5549  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5550  # <limits.h> exists even on freestanding compilers.
5551  # On the NeXT, cc -E runs the code through the compiler's parser,
5552  # not just through cpp. "Syntax error" is here to catch this case.
5553  cat >conftest.$ac_ext <<_ACEOF
5554/* confdefs.h.  */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h.  */
5559#ifdef __STDC__
5560# include <limits.h>
5561#else
5562# include <assert.h>
5563#endif
5564                     Syntax error
5565_ACEOF
5566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5567  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5568  ac_status=$?
5569  grep -v '^ *+' conftest.er1 >conftest.err
5570  rm -f conftest.er1
5571  cat conftest.err >&5
5572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); } >/dev/null; then
5574  if test -s conftest.err; then
5575    ac_cpp_err=$ac_c_preproc_warn_flag
5576    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5577  else
5578    ac_cpp_err=
5579  fi
5580else
5581  ac_cpp_err=yes
5582fi
5583if test -z "$ac_cpp_err"; then
5584  :
5585else
5586  echo "$as_me: failed program was:" >&5
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
5589  # Broken: fails on valid input.
5590continue
5591fi
5592rm -f conftest.err conftest.$ac_ext
5593
5594  # OK, works on sane cases.  Now check whether non-existent headers
5595  # can be detected and how.
5596  cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h.  */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h.  */
5602#include <ac_nonexistent.h>
5603_ACEOF
5604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5605  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5606  ac_status=$?
5607  grep -v '^ *+' conftest.er1 >conftest.err
5608  rm -f conftest.er1
5609  cat conftest.err >&5
5610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611  (exit $ac_status); } >/dev/null; then
5612  if test -s conftest.err; then
5613    ac_cpp_err=$ac_c_preproc_warn_flag
5614    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5615  else
5616    ac_cpp_err=
5617  fi
5618else
5619  ac_cpp_err=yes
5620fi
5621if test -z "$ac_cpp_err"; then
5622  # Broken: success on invalid input.
5623continue
5624else
5625  echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628  # Passes both tests.
5629ac_preproc_ok=:
5630break
5631fi
5632rm -f conftest.err conftest.$ac_ext
5633
5634done
5635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5636rm -f conftest.err conftest.$ac_ext
5637if $ac_preproc_ok; then
5638  break
5639fi
5640
5641    done
5642    ac_cv_prog_CPP=$CPP
5643
5644fi
5645  CPP=$ac_cv_prog_CPP
5646else
5647  ac_cv_prog_CPP=$CPP
5648fi
5649echo "$as_me:$LINENO: result: $CPP" >&5
5650echo "${ECHO_T}$CPP" >&6
5651ac_preproc_ok=false
5652for ac_c_preproc_warn_flag in '' yes
5653do
5654  # Use a header file that comes with gcc, so configuring glibc
5655  # with a fresh cross-compiler works.
5656  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5657  # <limits.h> exists even on freestanding compilers.
5658  # On the NeXT, cc -E runs the code through the compiler's parser,
5659  # not just through cpp. "Syntax error" is here to catch this case.
5660  cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666#ifdef __STDC__
5667# include <limits.h>
5668#else
5669# include <assert.h>
5670#endif
5671                     Syntax error
5672_ACEOF
5673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5674  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5675  ac_status=$?
5676  grep -v '^ *+' conftest.er1 >conftest.err
5677  rm -f conftest.er1
5678  cat conftest.err >&5
5679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680  (exit $ac_status); } >/dev/null; then
5681  if test -s conftest.err; then
5682    ac_cpp_err=$ac_c_preproc_warn_flag
5683    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684  else
5685    ac_cpp_err=
5686  fi
5687else
5688  ac_cpp_err=yes
5689fi
5690if test -z "$ac_cpp_err"; then
5691  :
5692else
5693  echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696  # Broken: fails on valid input.
5697continue
5698fi
5699rm -f conftest.err conftest.$ac_ext
5700
5701  # OK, works on sane cases.  Now check whether non-existent headers
5702  # can be detected and how.
5703  cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h.  */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h.  */
5709#include <ac_nonexistent.h>
5710_ACEOF
5711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5712  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5713  ac_status=$?
5714  grep -v '^ *+' conftest.er1 >conftest.err
5715  rm -f conftest.er1
5716  cat conftest.err >&5
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); } >/dev/null; then
5719  if test -s conftest.err; then
5720    ac_cpp_err=$ac_c_preproc_warn_flag
5721    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5722  else
5723    ac_cpp_err=
5724  fi
5725else
5726  ac_cpp_err=yes
5727fi
5728if test -z "$ac_cpp_err"; then
5729  # Broken: success on invalid input.
5730continue
5731else
5732  echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735  # Passes both tests.
5736ac_preproc_ok=:
5737break
5738fi
5739rm -f conftest.err conftest.$ac_ext
5740
5741done
5742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5743rm -f conftest.err conftest.$ac_ext
5744if $ac_preproc_ok; then
5745  :
5746else
5747  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5748See \`config.log' for more details." >&5
5749echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5750See \`config.log' for more details." >&2;}
5751   { (exit 1); exit 1; }; }
5752fi
5753
5754ac_ext=c
5755ac_cpp='$CPP $CPPFLAGS'
5756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760
5761echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5762echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5763if test "${ac_cv_header_stdc+set}" = set; then
5764  echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766  cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772#include <stdlib.h>
5773#include <stdarg.h>
5774#include <string.h>
5775#include <float.h>
5776
5777int
5778main ()
5779{
5780
5781  ;
5782  return 0;
5783}
5784_ACEOF
5785rm -f conftest.$ac_objext
5786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787  (eval $ac_compile) 2>conftest.er1
5788  ac_status=$?
5789  grep -v '^ *+' conftest.er1 >conftest.err
5790  rm -f conftest.er1
5791  cat conftest.err >&5
5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793  (exit $ac_status); } &&
5794         { ac_try='test -z "$ac_c_werror_flag"
5795                         || test ! -s conftest.err'
5796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797  (eval $ac_try) 2>&5
5798  ac_status=$?
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); }; } &&
5801         { ac_try='test -s conftest.$ac_objext'
5802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803  (eval $ac_try) 2>&5
5804  ac_status=$?
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); }; }; then
5807  ac_cv_header_stdc=yes
5808else
5809  echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
5811
5812ac_cv_header_stdc=no
5813fi
5814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5815
5816if test $ac_cv_header_stdc = yes; then
5817  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5818  cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h.  */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h.  */
5824#include <string.h>
5825
5826_ACEOF
5827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5828  $EGREP "memchr" >/dev/null 2>&1; then
5829  :
5830else
5831  ac_cv_header_stdc=no
5832fi
5833rm -f conftest*
5834
5835fi
5836
5837if test $ac_cv_header_stdc = yes; then
5838  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5839  cat >conftest.$ac_ext <<_ACEOF
5840/* confdefs.h.  */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h.  */
5845#include <stdlib.h>
5846
5847_ACEOF
5848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5849  $EGREP "free" >/dev/null 2>&1; then
5850  :
5851else
5852  ac_cv_header_stdc=no
5853fi
5854rm -f conftest*
5855
5856fi
5857
5858if test $ac_cv_header_stdc = yes; then
5859  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5860  if test "$cross_compiling" = yes; then
5861  :
5862else
5863  cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h.  */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h.  */
5869#include <ctype.h>
5870#if ((' ' & 0x0FF) == 0x020)
5871# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5872# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5873#else
5874# define ISLOWER(c) \
5875                   (('a' <= (c) && (c) <= 'i') \
5876                     || ('j' <= (c) && (c) <= 'r') \
5877                     || ('s' <= (c) && (c) <= 'z'))
5878# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5879#endif
5880
5881#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5882int
5883main ()
5884{
5885  int i;
5886  for (i = 0; i < 256; i++)
5887    if (XOR (islower (i), ISLOWER (i))
5888        || toupper (i) != TOUPPER (i))
5889      exit(2);
5890  exit (0);
5891}
5892_ACEOF
5893rm -f conftest$ac_exeext
5894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895  (eval $ac_link) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900  (eval $ac_try) 2>&5
5901  ac_status=$?
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); }; }; then
5904  :
5905else
5906  echo "$as_me: program exited with status $ac_status" >&5
5907echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910( exit $ac_status )
5911ac_cv_header_stdc=no
5912fi
5913rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5914fi
5915fi
5916fi
5917echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5918echo "${ECHO_T}$ac_cv_header_stdc" >&6
5919if test $ac_cv_header_stdc = yes; then
5920
5921cat >>confdefs.h <<\_ACEOF
5922#define STDC_HEADERS 1
5923_ACEOF
5924
5925fi
5926
5927# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5938                  inttypes.h stdint.h unistd.h
5939do
5940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941echo "$as_me:$LINENO: checking for $ac_header" >&5
5942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5943if eval "test \"\${$as_ac_Header+set}\" = set"; then
5944  echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946  cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952$ac_includes_default
5953
5954#include <$ac_header>
5955_ACEOF
5956rm -f conftest.$ac_objext
5957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958  (eval $ac_compile) 2>conftest.er1
5959  ac_status=$?
5960  grep -v '^ *+' conftest.er1 >conftest.err
5961  rm -f conftest.er1
5962  cat conftest.err >&5
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); } &&
5965         { ac_try='test -z "$ac_c_werror_flag"
5966                         || test ! -s conftest.err'
5967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968  (eval $ac_try) 2>&5
5969  ac_status=$?
5970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971  (exit $ac_status); }; } &&
5972         { ac_try='test -s conftest.$ac_objext'
5973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974  (eval $ac_try) 2>&5
5975  ac_status=$?
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); }; }; then
5978  eval "$as_ac_Header=yes"
5979else
5980  echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983eval "$as_ac_Header=no"
5984fi
5985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986fi
5987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5989if test `eval echo '${'$as_ac_Header'}'` = yes; then
5990  cat >>confdefs.h <<_ACEOF
5991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5992_ACEOF
5993
5994fi
5995
5996done
5997
5998
5999
6000for ac_header in dlfcn.h
6001do
6002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6003if eval "test \"\${$as_ac_Header+set}\" = set"; then
6004  echo "$as_me:$LINENO: checking for $ac_header" >&5
6005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6006if eval "test \"\${$as_ac_Header+set}\" = set"; then
6007  echo $ECHO_N "(cached) $ECHO_C" >&6
6008fi
6009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6011else
6012  # Is the header compilable?
6013echo "$as_me:$LINENO: checking $ac_header usability" >&5
6014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6015cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h.  */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h.  */
6021$ac_includes_default
6022#include <$ac_header>
6023_ACEOF
6024rm -f conftest.$ac_objext
6025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6026  (eval $ac_compile) 2>conftest.er1
6027  ac_status=$?
6028  grep -v '^ *+' conftest.er1 >conftest.err
6029  rm -f conftest.er1
6030  cat conftest.err >&5
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); } &&
6033         { ac_try='test -z "$ac_c_werror_flag"
6034                         || test ! -s conftest.err'
6035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036  (eval $ac_try) 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }; } &&
6040         { ac_try='test -s conftest.$ac_objext'
6041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042  (eval $ac_try) 2>&5
6043  ac_status=$?
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); }; }; then
6046  ac_header_compiler=yes
6047else
6048  echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051ac_header_compiler=no
6052fi
6053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6054echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6055echo "${ECHO_T}$ac_header_compiler" >&6
6056
6057# Is the header present?
6058echo "$as_me:$LINENO: checking $ac_header presence" >&5
6059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6060cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h.  */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h.  */
6066#include <$ac_header>
6067_ACEOF
6068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6069  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6070  ac_status=$?
6071  grep -v '^ *+' conftest.er1 >conftest.err
6072  rm -f conftest.er1
6073  cat conftest.err >&5
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); } >/dev/null; then
6076  if test -s conftest.err; then
6077    ac_cpp_err=$ac_c_preproc_warn_flag
6078    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6079  else
6080    ac_cpp_err=
6081  fi
6082else
6083  ac_cpp_err=yes
6084fi
6085if test -z "$ac_cpp_err"; then
6086  ac_header_preproc=yes
6087else
6088  echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091  ac_header_preproc=no
6092fi
6093rm -f conftest.err conftest.$ac_ext
6094echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6095echo "${ECHO_T}$ac_header_preproc" >&6
6096
6097# So?  What about this header?
6098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6099  yes:no: )
6100    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6102    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6104    ac_header_preproc=yes
6105    ;;
6106  no:yes:* )
6107    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6109    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6110echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6111    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6113    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6114echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6115    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6117    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6119    (
6120      cat <<\_ASBOX
6121## --------------------------------------------------------------- ##
6122## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6123## --------------------------------------------------------------- ##
6124_ASBOX
6125    ) |
6126      sed "s/^/$as_me: WARNING:     /" >&2
6127    ;;
6128esac
6129echo "$as_me:$LINENO: checking for $ac_header" >&5
6130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6131if eval "test \"\${$as_ac_Header+set}\" = set"; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  eval "$as_ac_Header=\$ac_header_preproc"
6135fi
6136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6138
6139fi
6140if test `eval echo '${'$as_ac_Header'}'` = yes; then
6141  cat >>confdefs.h <<_ACEOF
6142#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143_ACEOF
6144
6145fi
6146
6147done
6148
6149ac_ext=cc
6150ac_cpp='$CXXCPP $CPPFLAGS'
6151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6154if test -n "$ac_tool_prefix"; then
6155  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6156  do
6157    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6158set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6159echo "$as_me:$LINENO: checking for $ac_word" >&5
6160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6161if test "${ac_cv_prog_CXX+set}" = set; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164  if test -n "$CXX"; then
6165  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170  IFS=$as_save_IFS
6171  test -z "$as_dir" && as_dir=.
6172  for ac_exec_ext in '' $ac_executable_extensions; do
6173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176    break 2
6177  fi
6178done
6179done
6180
6181fi
6182fi
6183CXX=$ac_cv_prog_CXX
6184if test -n "$CXX"; then
6185  echo "$as_me:$LINENO: result: $CXX" >&5
6186echo "${ECHO_T}$CXX" >&6
6187else
6188  echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190fi
6191
6192    test -n "$CXX" && break
6193  done
6194fi
6195if test -z "$CXX"; then
6196  ac_ct_CXX=$CXX
6197  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6198do
6199  # Extract the first word of "$ac_prog", so it can be a program name with args.
6200set dummy $ac_prog; ac_word=$2
6201echo "$as_me:$LINENO: checking for $ac_word" >&5
6202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6204  echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206  if test -n "$ac_ct_CXX"; then
6207  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214  for ac_exec_ext in '' $ac_executable_extensions; do
6215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6216    ac_cv_prog_ac_ct_CXX="$ac_prog"
6217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221done
6222
6223fi
6224fi
6225ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6226if test -n "$ac_ct_CXX"; then
6227  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6228echo "${ECHO_T}$ac_ct_CXX" >&6
6229else
6230  echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
6232fi
6233
6234  test -n "$ac_ct_CXX" && break
6235done
6236test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6237
6238  CXX=$ac_ct_CXX
6239fi
6240
6241
6242# Provide some information about the compiler.
6243echo "$as_me:$LINENO:" \
6244     "checking for C++ compiler version" >&5
6245ac_compiler=`set X $ac_compile; echo $2`
6246{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6247  (eval $ac_compiler --version </dev/null >&5) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }
6251{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6252  (eval $ac_compiler -v </dev/null >&5) 2>&5
6253  ac_status=$?
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); }
6256{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6257  (eval $ac_compiler -V </dev/null >&5) 2>&5
6258  ac_status=$?
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); }
6261
6262echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6263echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6264if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6265  echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267  cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h.  */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h.  */
6273
6274int
6275main ()
6276{
6277#ifndef __GNUC__
6278       choke me
6279#endif
6280
6281  ;
6282  return 0;
6283}
6284_ACEOF
6285rm -f conftest.$ac_objext
6286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6287  (eval $ac_compile) 2>conftest.er1
6288  ac_status=$?
6289  grep -v '^ *+' conftest.er1 >conftest.err
6290  rm -f conftest.er1
6291  cat conftest.err >&5
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); } &&
6294         { ac_try='test -z "$ac_cxx_werror_flag"
6295                         || test ! -s conftest.err'
6296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297  (eval $ac_try) 2>&5
6298  ac_status=$?
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); }; } &&
6301         { ac_try='test -s conftest.$ac_objext'
6302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303  (eval $ac_try) 2>&5
6304  ac_status=$?
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); }; }; then
6307  ac_compiler_gnu=yes
6308else
6309  echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312ac_compiler_gnu=no
6313fi
6314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6316
6317fi
6318echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6320GXX=`test $ac_compiler_gnu = yes && echo yes`
6321ac_test_CXXFLAGS=${CXXFLAGS+set}
6322ac_save_CXXFLAGS=$CXXFLAGS
6323CXXFLAGS="-g"
6324echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6325echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6326if test "${ac_cv_prog_cxx_g+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h.  */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h.  */
6335
6336int
6337main ()
6338{
6339
6340  ;
6341  return 0;
6342}
6343_ACEOF
6344rm -f conftest.$ac_objext
6345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6346  (eval $ac_compile) 2>conftest.er1
6347  ac_status=$?
6348  grep -v '^ *+' conftest.er1 >conftest.err
6349  rm -f conftest.er1
6350  cat conftest.err >&5
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); } &&
6353         { ac_try='test -z "$ac_cxx_werror_flag"
6354                         || test ! -s conftest.err'
6355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356  (eval $ac_try) 2>&5
6357  ac_status=$?
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); }; } &&
6360         { ac_try='test -s conftest.$ac_objext'
6361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362  (eval $ac_try) 2>&5
6363  ac_status=$?
6364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365  (exit $ac_status); }; }; then
6366  ac_cv_prog_cxx_g=yes
6367else
6368  echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371ac_cv_prog_cxx_g=no
6372fi
6373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6374fi
6375echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6376echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6377if test "$ac_test_CXXFLAGS" = set; then
6378  CXXFLAGS=$ac_save_CXXFLAGS
6379elif test $ac_cv_prog_cxx_g = yes; then
6380  if test "$GXX" = yes; then
6381    CXXFLAGS="-g -O2"
6382  else
6383    CXXFLAGS="-g"
6384  fi
6385else
6386  if test "$GXX" = yes; then
6387    CXXFLAGS="-O2"
6388  else
6389    CXXFLAGS=
6390  fi
6391fi
6392for ac_declaration in \
6393   '' \
6394   'extern "C" void std::exit (int) throw (); using std::exit;' \
6395   'extern "C" void std::exit (int); using std::exit;' \
6396   'extern "C" void exit (int) throw ();' \
6397   'extern "C" void exit (int);' \
6398   'void exit (int);'
6399do
6400  cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h.  */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h.  */
6406$ac_declaration
6407#include <stdlib.h>
6408int
6409main ()
6410{
6411exit (42);
6412  ;
6413  return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext
6417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6418  (eval $ac_compile) 2>conftest.er1
6419  ac_status=$?
6420  grep -v '^ *+' conftest.er1 >conftest.err
6421  rm -f conftest.er1
6422  cat conftest.err >&5
6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424  (exit $ac_status); } &&
6425         { ac_try='test -z "$ac_cxx_werror_flag"
6426                         || test ! -s conftest.err'
6427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428  (eval $ac_try) 2>&5
6429  ac_status=$?
6430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431  (exit $ac_status); }; } &&
6432         { ac_try='test -s conftest.$ac_objext'
6433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434  (eval $ac_try) 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }; }; then
6438  :
6439else
6440  echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443continue
6444fi
6445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6446  cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452$ac_declaration
6453int
6454main ()
6455{
6456exit (42);
6457  ;
6458  return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext
6462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463  (eval $ac_compile) 2>conftest.er1
6464  ac_status=$?
6465  grep -v '^ *+' conftest.er1 >conftest.err
6466  rm -f conftest.er1
6467  cat conftest.err >&5
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); } &&
6470         { ac_try='test -z "$ac_cxx_werror_flag"
6471                         || test ! -s conftest.err'
6472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473  (eval $ac_try) 2>&5
6474  ac_status=$?
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); }; } &&
6477         { ac_try='test -s conftest.$ac_objext'
6478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479  (eval $ac_try) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); }; }; then
6483  break
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488fi
6489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6490done
6491rm -f conftest*
6492if test -n "$ac_declaration"; then
6493  echo '#ifdef __cplusplus' >>confdefs.h
6494  echo $ac_declaration      >>confdefs.h
6495  echo '#endif'             >>confdefs.h
6496fi
6497
6498ac_ext=cc
6499ac_cpp='$CXXCPP $CPPFLAGS'
6500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6503
6504depcc="$CXX"  am_compiler_list=
6505
6506echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6507echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6508if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6509  echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6512  # We make a subdir and do the tests there.  Otherwise we can end up
6513  # making bogus files that we don't know about and never remove.  For
6514  # instance it was reported that on HP-UX the gcc test will end up
6515  # making a dummy file named `D' -- because `-MD' means `put the output
6516  # in D'.
6517  mkdir conftest.dir
6518  # Copy depcomp to subdir because otherwise we won't find it if we're
6519  # using a relative directory.
6520  cp "$am_depcomp" conftest.dir
6521  cd conftest.dir
6522  # We will build objects and dependencies in a subdirectory because
6523  # it helps to detect inapplicable dependency modes.  For instance
6524  # both Tru64's cc and ICC support -MD to output dependencies as a
6525  # side effect of compilation, but ICC will put the dependencies in
6526  # the current directory while Tru64 will put them in the object
6527  # directory.
6528  mkdir sub
6529
6530  am_cv_CXX_dependencies_compiler_type=none
6531  if test "$am_compiler_list" = ""; then
6532     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6533  fi
6534  for depmode in $am_compiler_list; do
6535    # Setup a source with many dependencies, because some compilers
6536    # like to wrap large dependency lists on column 80 (with \), and
6537    # we should not choose a depcomp mode which is confused by this.
6538    #
6539    # We need to recreate these files for each test, as the compiler may
6540    # overwrite some of them when testing with obscure command lines.
6541    # This happens at least with the AIX C compiler.
6542    : > sub/conftest.c
6543    for i in 1 2 3 4 5 6; do
6544      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6545      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6546      # Solaris 8's {/usr,}/bin/sh.
6547      touch sub/conftst$i.h
6548    done
6549    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6550
6551    case $depmode in
6552    nosideeffect)
6553      # after this tag, mechanisms are not by side-effect, so they'll
6554      # only be used when explicitly requested
6555      if test "x$enable_dependency_tracking" = xyes; then
6556        continue
6557      else
6558        break
6559      fi
6560      ;;
6561    none) break ;;
6562    esac
6563    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6564    # mode.  It turns out that the SunPro C++ compiler does not properly
6565    # handle `-M -o', and we need to detect this.
6566    if depmode=$depmode \
6567       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6568       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6569       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6570         >/dev/null 2>conftest.err &&
6571       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6572       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6573       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6574      # icc doesn't choke on unknown options, it will just issue warnings
6575      # or remarks (even with -Werror).  So we grep stderr for any message
6576      # that says an option was ignored or not supported.
6577      # When given -MP, icc 7.0 and 7.1 complain thusly:
6578      #   icc: Command line warning: ignoring option '-M'; no argument required
6579      # The diagnosis changed in icc 8.0:
6580      #   icc: Command line remark: option '-MP' not supported
6581      if (grep 'ignoring option' conftest.err ||
6582          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6583        am_cv_CXX_dependencies_compiler_type=$depmode
6584        break
6585      fi
6586    fi
6587  done
6588
6589  cd ..
6590  rm -rf conftest.dir
6591else
6592  am_cv_CXX_dependencies_compiler_type=none
6593fi
6594
6595fi
6596echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6597echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6598CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6599
6600
6601
6602if
6603  test "x$enable_dependency_tracking" != xno \
6604  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6605  am__fastdepCXX_TRUE=
6606  am__fastdepCXX_FALSE='#'
6607else
6608  am__fastdepCXX_TRUE='#'
6609  am__fastdepCXX_FALSE=
6610fi
6611
6612
6613
6614
6615if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6616    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6617    (test "X$CXX" != "Xg++"))) ; then
6618  ac_ext=cc
6619ac_cpp='$CXXCPP $CPPFLAGS'
6620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6623echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6624echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6625if test -z "$CXXCPP"; then
6626  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629      # Double quotes because CXXCPP needs to be expanded
6630    for CXXCPP in "$CXX -E" "/lib/cpp"
6631    do
6632      ac_preproc_ok=false
6633for ac_cxx_preproc_warn_flag in '' yes
6634do
6635  # Use a header file that comes with gcc, so configuring glibc
6636  # with a fresh cross-compiler works.
6637  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6638  # <limits.h> exists even on freestanding compilers.
6639  # On the NeXT, cc -E runs the code through the compiler's parser,
6640  # not just through cpp. "Syntax error" is here to catch this case.
6641  cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h.  */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h.  */
6647#ifdef __STDC__
6648# include <limits.h>
6649#else
6650# include <assert.h>
6651#endif
6652                     Syntax error
6653_ACEOF
6654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6655  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6656  ac_status=$?
6657  grep -v '^ *+' conftest.er1 >conftest.err
6658  rm -f conftest.er1
6659  cat conftest.err >&5
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); } >/dev/null; then
6662  if test -s conftest.err; then
6663    ac_cpp_err=$ac_cxx_preproc_warn_flag
6664    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6665  else
6666    ac_cpp_err=
6667  fi
6668else
6669  ac_cpp_err=yes
6670fi
6671if test -z "$ac_cpp_err"; then
6672  :
6673else
6674  echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677  # Broken: fails on valid input.
6678continue
6679fi
6680rm -f conftest.err conftest.$ac_ext
6681
6682  # OK, works on sane cases.  Now check whether non-existent headers
6683  # can be detected and how.
6684  cat >conftest.$ac_ext <<_ACEOF
6685/* confdefs.h.  */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h.  */
6690#include <ac_nonexistent.h>
6691_ACEOF
6692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694  ac_status=$?
6695  grep -v '^ *+' conftest.er1 >conftest.err
6696  rm -f conftest.er1
6697  cat conftest.err >&5
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); } >/dev/null; then
6700  if test -s conftest.err; then
6701    ac_cpp_err=$ac_cxx_preproc_warn_flag
6702    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6703  else
6704    ac_cpp_err=
6705  fi
6706else
6707  ac_cpp_err=yes
6708fi
6709if test -z "$ac_cpp_err"; then
6710  # Broken: success on invalid input.
6711continue
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716  # Passes both tests.
6717ac_preproc_ok=:
6718break
6719fi
6720rm -f conftest.err conftest.$ac_ext
6721
6722done
6723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6724rm -f conftest.err conftest.$ac_ext
6725if $ac_preproc_ok; then
6726  break
6727fi
6728
6729    done
6730    ac_cv_prog_CXXCPP=$CXXCPP
6731
6732fi
6733  CXXCPP=$ac_cv_prog_CXXCPP
6734else
6735  ac_cv_prog_CXXCPP=$CXXCPP
6736fi
6737echo "$as_me:$LINENO: result: $CXXCPP" >&5
6738echo "${ECHO_T}$CXXCPP" >&6
6739ac_preproc_ok=false
6740for ac_cxx_preproc_warn_flag in '' yes
6741do
6742  # Use a header file that comes with gcc, so configuring glibc
6743  # with a fresh cross-compiler works.
6744  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6745  # <limits.h> exists even on freestanding compilers.
6746  # On the NeXT, cc -E runs the code through the compiler's parser,
6747  # not just through cpp. "Syntax error" is here to catch this case.
6748  cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754#ifdef __STDC__
6755# include <limits.h>
6756#else
6757# include <assert.h>
6758#endif
6759                     Syntax error
6760_ACEOF
6761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763  ac_status=$?
6764  grep -v '^ *+' conftest.er1 >conftest.err
6765  rm -f conftest.er1
6766  cat conftest.err >&5
6767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); } >/dev/null; then
6769  if test -s conftest.err; then
6770    ac_cpp_err=$ac_cxx_preproc_warn_flag
6771    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6772  else
6773    ac_cpp_err=
6774  fi
6775else
6776  ac_cpp_err=yes
6777fi
6778if test -z "$ac_cpp_err"; then
6779  :
6780else
6781  echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784  # Broken: fails on valid input.
6785continue
6786fi
6787rm -f conftest.err conftest.$ac_ext
6788
6789  # OK, works on sane cases.  Now check whether non-existent headers
6790  # can be detected and how.
6791  cat >conftest.$ac_ext <<_ACEOF
6792/* confdefs.h.  */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h.  */
6797#include <ac_nonexistent.h>
6798_ACEOF
6799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801  ac_status=$?
6802  grep -v '^ *+' conftest.er1 >conftest.err
6803  rm -f conftest.er1
6804  cat conftest.err >&5
6805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806  (exit $ac_status); } >/dev/null; then
6807  if test -s conftest.err; then
6808    ac_cpp_err=$ac_cxx_preproc_warn_flag
6809    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6810  else
6811    ac_cpp_err=
6812  fi
6813else
6814  ac_cpp_err=yes
6815fi
6816if test -z "$ac_cpp_err"; then
6817  # Broken: success on invalid input.
6818continue
6819else
6820  echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823  # Passes both tests.
6824ac_preproc_ok=:
6825break
6826fi
6827rm -f conftest.err conftest.$ac_ext
6828
6829done
6830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6831rm -f conftest.err conftest.$ac_ext
6832if $ac_preproc_ok; then
6833  :
6834else
6835  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6836See \`config.log' for more details." >&5
6837echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6838See \`config.log' for more details." >&2;}
6839   { (exit 1); exit 1; }; }
6840fi
6841
6842ac_ext=cc
6843ac_cpp='$CXXCPP $CPPFLAGS'
6844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847
6848fi
6849
6850
6851
6852# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6853
6854# find the maximum length of command line arguments
6855echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6856echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6857if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6858  echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860    i=0
6861  teststring="ABCD"
6862
6863  case $build_os in
6864  msdosdjgpp*)
6865    # On DJGPP, this test can blow up pretty badly due to problems in libc
6866    # (any single argument exceeding 2000 bytes causes a buffer overrun
6867    # during glob expansion).  Even if it were fixed, the result of this
6868    # check would be larger than it should be.
6869    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6870    ;;
6871
6872  gnu*)
6873    # Under GNU Hurd, this test is not required because there is
6874    # no limit to the length of command line arguments.
6875    # Libtool will interpret -1 as no limit whatsoever
6876    lt_cv_sys_max_cmd_len=-1;
6877    ;;
6878
6879  cygwin* | mingw*)
6880    # On Win9x/ME, this test blows up -- it succeeds, but takes
6881    # about 5 minutes as the teststring grows exponentially.
6882    # Worse, since 9x/ME are not pre-emptively multitasking,
6883    # you end up with a "frozen" computer, even though with patience
6884    # the test eventually succeeds (with a max line length of 256k).
6885    # Instead, let's just punt: use the minimum linelength reported by
6886    # all of the supported platforms: 8192 (on NT/2K/XP).
6887    lt_cv_sys_max_cmd_len=8192;
6888    ;;
6889
6890  amigaos*)
6891    # On AmigaOS with pdksh, this test takes hours, literally.
6892    # So we just punt and use a minimum line length of 8192.
6893    lt_cv_sys_max_cmd_len=8192;
6894    ;;
6895
6896  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6897    # This has been around since 386BSD, at least.  Likely further.
6898    if test -x /sbin/sysctl; then
6899      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6900    elif test -x /usr/sbin/sysctl; then
6901      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6902    else
6903      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6904    fi
6905    # And add a safety zone
6906    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6907    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6908    ;;
6909
6910  interix*)
6911    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6912    lt_cv_sys_max_cmd_len=196608
6913    ;;
6914
6915  osf*)
6916    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6917    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6918    # nice to cause kernel panics so lets avoid the loop below.
6919    # First set a reasonable default.
6920    lt_cv_sys_max_cmd_len=16384
6921    #
6922    if test -x /sbin/sysconfig; then
6923      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6924        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6925      esac
6926    fi
6927    ;;
6928  sco3.2v5*)
6929    lt_cv_sys_max_cmd_len=102400
6930    ;;
6931  sysv5* | sco5v6* | sysv4.2uw2*)
6932    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6933    if test -n "$kargmax"; then
6934      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6935    else
6936      lt_cv_sys_max_cmd_len=32768
6937    fi
6938    ;;
6939  *)
6940    # If test is not a shell built-in, we'll probably end up computing a
6941    # maximum length that is only half of the actual maximum length, but
6942    # we can't tell.
6943    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6944    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6945               = "XX$teststring") >/dev/null 2>&1 &&
6946            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6947            lt_cv_sys_max_cmd_len=$new_result &&
6948            test $i != 17 # 1/2 MB should be enough
6949    do
6950      i=`expr $i + 1`
6951      teststring=$teststring$teststring
6952    done
6953    teststring=
6954    # Add a significant safety factor because C++ compilers can tack on massive
6955    # amounts of additional arguments before passing them to the linker.
6956    # It appears as though 1/2 is a usable value.
6957    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6958    ;;
6959  esac
6960
6961fi
6962
6963if test -n $lt_cv_sys_max_cmd_len ; then
6964  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6965echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6966else
6967  echo "$as_me:$LINENO: result: none" >&5
6968echo "${ECHO_T}none" >&6
6969fi
6970
6971
6972
6973
6974# Check for command to grab the raw symbol name followed by C symbol from nm.
6975echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6976echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6977if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6978  echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980
6981# These are sane defaults that work on at least a few old systems.
6982# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6983
6984# Character class describing NM global symbol codes.
6985symcode='[BCDEGRST]'
6986
6987# Regexp to match symbols that can be accessed directly from C.
6988sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6989
6990# Transform an extracted symbol line into a proper C declaration
6991lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6992
6993# Transform an extracted symbol line into symbol name and symbol address
6994lt_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'"
6995
6996# Define system-specific variables.
6997case $host_os in
6998aix*)
6999  symcode='[BCDT]'
7000  ;;
7001cygwin* | mingw* | pw32*)
7002  symcode='[ABCDGISTW]'
7003  ;;
7004hpux*) # Its linker distinguishes data from code symbols
7005  if test "$host_cpu" = ia64; then
7006    symcode='[ABCDEGRST]'
7007  fi
7008  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7009  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'"
7010  ;;
7011linux*)
7012  if test "$host_cpu" = ia64; then
7013    symcode='[ABCDGIRSTW]'
7014    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7015    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'"
7016  fi
7017  ;;
7018irix* | nonstopux*)
7019  symcode='[BCDEGRST]'
7020  ;;
7021osf*)
7022  symcode='[BCDEGQRST]'
7023  ;;
7024solaris*)
7025  symcode='[BDRT]'
7026  ;;
7027sco3.2v5*)
7028  symcode='[DT]'
7029  ;;
7030sysv4.2uw2*)
7031  symcode='[DT]'
7032  ;;
7033sysv5* | sco5v6* | unixware* | OpenUNIX*)
7034  symcode='[ABDT]'
7035  ;;
7036sysv4)
7037  symcode='[DFNSTU]'
7038  ;;
7039esac
7040
7041# Handle CRLF in mingw tool chain
7042opt_cr=
7043case $build_os in
7044mingw*)
7045  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7046  ;;
7047esac
7048
7049# If we're using GNU nm, then use its standard symbol codes.
7050case `$NM -V 2>&1` in
7051*GNU* | *'with BFD'*)
7052  symcode='[ABCDGIRSTW]' ;;
7053esac
7054
7055# Try without a prefix undercore, then with it.
7056for ac_symprfx in "" "_"; do
7057
7058  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7059  symxfrm="\\1 $ac_symprfx\\2 \\2"
7060
7061  # Write the raw and C identifiers.
7062  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7063
7064  # Check to see that the pipe works correctly.
7065  pipe_works=no
7066
7067  rm -f conftest*
7068  cat > conftest.$ac_ext <<EOF
7069#ifdef __cplusplus
7070extern "C" {
7071#endif
7072char nm_test_var;
7073void nm_test_func(){}
7074#ifdef __cplusplus
7075}
7076#endif
7077int main(){nm_test_var='a';nm_test_func();return(0);}
7078EOF
7079
7080  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7081  (eval $ac_compile) 2>&5
7082  ac_status=$?
7083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084  (exit $ac_status); }; then
7085    # Now try to grab the symbols.
7086    nlist=conftest.nm
7087    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7088  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7089  ac_status=$?
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); } && test -s "$nlist"; then
7092      # Try sorting and uniquifying the output.
7093      if sort "$nlist" | uniq > "$nlist"T; then
7094        mv -f "$nlist"T "$nlist"
7095      else
7096        rm -f "$nlist"T
7097      fi
7098
7099      # Make sure that we snagged all the symbols we need.
7100      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7101        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7102          cat <<EOF > conftest.$ac_ext
7103#ifdef __cplusplus
7104extern "C" {
7105#endif
7106
7107EOF
7108          # Now generate the symbol file.
7109          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7110
7111          cat <<EOF >> conftest.$ac_ext
7112#if defined (__STDC__) && __STDC__
7113# define lt_ptr_t void *
7114#else
7115# define lt_ptr_t char *
7116# define const
7117#endif
7118
7119/* The mapping between symbol names and symbols. */
7120const struct {
7121  const char *name;
7122  lt_ptr_t address;
7123}
7124lt_preloaded_symbols[] =
7125{
7126EOF
7127          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7128          cat <<\EOF >> conftest.$ac_ext
7129  {0, (lt_ptr_t) 0}
7130};
7131
7132#ifdef __cplusplus
7133}
7134#endif
7135EOF
7136          # Now try linking the two files.
7137          mv conftest.$ac_objext conftstm.$ac_objext
7138          lt_save_LIBS="$LIBS"
7139          lt_save_CFLAGS="$CFLAGS"
7140          LIBS="conftstm.$ac_objext"
7141          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7142          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143  (eval $ac_link) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7147            pipe_works=yes
7148          fi
7149          LIBS="$lt_save_LIBS"
7150          CFLAGS="$lt_save_CFLAGS"
7151        else
7152          echo "cannot find nm_test_func in $nlist" >&5
7153        fi
7154      else
7155        echo "cannot find nm_test_var in $nlist" >&5
7156      fi
7157    else
7158      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7159    fi
7160  else
7161    echo "$progname: failed program was:" >&5
7162    cat conftest.$ac_ext >&5
7163  fi
7164  rm -f conftest* conftst*
7165
7166  # Do not use the global_symbol_pipe unless it works.
7167  if test "$pipe_works" = yes; then
7168    break
7169  else
7170    lt_cv_sys_global_symbol_pipe=
7171  fi
7172done
7173
7174fi
7175
7176if test -z "$lt_cv_sys_global_symbol_pipe"; then
7177  lt_cv_sys_global_symbol_to_cdecl=
7178fi
7179if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7180  echo "$as_me:$LINENO: result: failed" >&5
7181echo "${ECHO_T}failed" >&6
7182else
7183  echo "$as_me:$LINENO: result: ok" >&5
7184echo "${ECHO_T}ok" >&6
7185fi
7186
7187echo "$as_me:$LINENO: checking for objdir" >&5
7188echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7189if test "${lt_cv_objdir+set}" = set; then
7190  echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192  rm -f .libs 2>/dev/null
7193mkdir .libs 2>/dev/null
7194if test -d .libs; then
7195  lt_cv_objdir=.libs
7196else
7197  # MS-DOS does not allow filenames that begin with a dot.
7198  lt_cv_objdir=_libs
7199fi
7200rmdir .libs 2>/dev/null
7201fi
7202echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7203echo "${ECHO_T}$lt_cv_objdir" >&6
7204objdir=$lt_cv_objdir
7205
7206
7207
7208
7209
7210case $host_os in
7211aix3*)
7212  # AIX sometimes has problems with the GCC collect2 program.  For some
7213  # reason, if we set the COLLECT_NAMES environment variable, the problems
7214  # vanish in a puff of smoke.
7215  if test "X${COLLECT_NAMES+set}" != Xset; then
7216    COLLECT_NAMES=
7217    export COLLECT_NAMES
7218  fi
7219  ;;
7220esac
7221
7222# Sed substitution that helps us do robust quoting.  It backslashifies
7223# metacharacters that are still active within double-quoted strings.
7224Xsed='sed -e 1s/^X//'
7225sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7226
7227# Same as above, but do not quote variable references.
7228double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7229
7230# Sed substitution to delay expansion of an escaped shell variable in a
7231# double_quote_subst'ed string.
7232delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7233
7234# Sed substitution to avoid accidental globbing in evaled expressions
7235no_glob_subst='s/\*/\\\*/g'
7236
7237# Constants:
7238rm="rm -f"
7239
7240# Global variables:
7241default_ofile=libtool
7242can_build_shared=yes
7243
7244# All known linkers require a `.a' archive for static linking (except MSVC,
7245# which needs '.lib').
7246libext=a
7247ltmain="$ac_aux_dir/ltmain.sh"
7248ofile="$default_ofile"
7249with_gnu_ld="$lt_cv_prog_gnu_ld"
7250
7251if test -n "$ac_tool_prefix"; then
7252  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7253set dummy ${ac_tool_prefix}ar; ac_word=$2
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256if test "${ac_cv_prog_AR+set}" = set; then
7257  echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259  if test -n "$AR"; then
7260  ac_cv_prog_AR="$AR" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267  for ac_exec_ext in '' $ac_executable_extensions; do
7268  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269    ac_cv_prog_AR="${ac_tool_prefix}ar"
7270    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274done
7275
7276fi
7277fi
7278AR=$ac_cv_prog_AR
7279if test -n "$AR"; then
7280  echo "$as_me:$LINENO: result: $AR" >&5
7281echo "${ECHO_T}$AR" >&6
7282else
7283  echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6
7285fi
7286
7287fi
7288if test -z "$ac_cv_prog_AR"; then
7289  ac_ct_AR=$AR
7290  # Extract the first word of "ar", so it can be a program name with args.
7291set dummy ar; ac_word=$2
7292echo "$as_me:$LINENO: checking for $ac_word" >&5
7293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  if test -n "$ac_ct_AR"; then
7298  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303  IFS=$as_save_IFS
7304  test -z "$as_dir" && as_dir=.
7305  for ac_exec_ext in '' $ac_executable_extensions; do
7306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307    ac_cv_prog_ac_ct_AR="ar"
7308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309    break 2
7310  fi
7311done
7312done
7313
7314  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7315fi
7316fi
7317ac_ct_AR=$ac_cv_prog_ac_ct_AR
7318if test -n "$ac_ct_AR"; then
7319  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7320echo "${ECHO_T}$ac_ct_AR" >&6
7321else
7322  echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6
7324fi
7325
7326  AR=$ac_ct_AR
7327else
7328  AR="$ac_cv_prog_AR"
7329fi
7330
7331if test -n "$ac_tool_prefix"; then
7332  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7333set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7334echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336if test "${ac_cv_prog_RANLIB+set}" = set; then
7337  echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339  if test -n "$RANLIB"; then
7340  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347  for ac_exec_ext in '' $ac_executable_extensions; do
7348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354done
7355
7356fi
7357fi
7358RANLIB=$ac_cv_prog_RANLIB
7359if test -n "$RANLIB"; then
7360  echo "$as_me:$LINENO: result: $RANLIB" >&5
7361echo "${ECHO_T}$RANLIB" >&6
7362else
7363  echo "$as_me:$LINENO: result: no" >&5
7364echo "${ECHO_T}no" >&6
7365fi
7366
7367fi
7368if test -z "$ac_cv_prog_RANLIB"; then
7369  ac_ct_RANLIB=$RANLIB
7370  # Extract the first word of "ranlib", so it can be a program name with args.
7371set dummy ranlib; ac_word=$2
7372echo "$as_me:$LINENO: checking for $ac_word" >&5
7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7374if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7375  echo $ECHO_N "(cached) $ECHO_C" >&6
7376else
7377  if test -n "$ac_ct_RANLIB"; then
7378  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383  IFS=$as_save_IFS
7384  test -z "$as_dir" && as_dir=.
7385  for ac_exec_ext in '' $ac_executable_extensions; do
7386  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387    ac_cv_prog_ac_ct_RANLIB="ranlib"
7388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389    break 2
7390  fi
7391done
7392done
7393
7394  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7395fi
7396fi
7397ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7398if test -n "$ac_ct_RANLIB"; then
7399  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7400echo "${ECHO_T}$ac_ct_RANLIB" >&6
7401else
7402  echo "$as_me:$LINENO: result: no" >&5
7403echo "${ECHO_T}no" >&6
7404fi
7405
7406  RANLIB=$ac_ct_RANLIB
7407else
7408  RANLIB="$ac_cv_prog_RANLIB"
7409fi
7410
7411if test -n "$ac_tool_prefix"; then
7412  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7413set dummy ${ac_tool_prefix}strip; ac_word=$2
7414echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7416if test "${ac_cv_prog_STRIP+set}" = set; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  if test -n "$STRIP"; then
7420  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7421else
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425  IFS=$as_save_IFS
7426  test -z "$as_dir" && as_dir=.
7427  for ac_exec_ext in '' $ac_executable_extensions; do
7428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431    break 2
7432  fi
7433done
7434done
7435
7436fi
7437fi
7438STRIP=$ac_cv_prog_STRIP
7439if test -n "$STRIP"; then
7440  echo "$as_me:$LINENO: result: $STRIP" >&5
7441echo "${ECHO_T}$STRIP" >&6
7442else
7443  echo "$as_me:$LINENO: result: no" >&5
7444echo "${ECHO_T}no" >&6
7445fi
7446
7447fi
7448if test -z "$ac_cv_prog_STRIP"; then
7449  ac_ct_STRIP=$STRIP
7450  # Extract the first word of "strip", so it can be a program name with args.
7451set dummy strip; ac_word=$2
7452echo "$as_me:$LINENO: checking for $ac_word" >&5
7453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7454if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7455  echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457  if test -n "$ac_ct_STRIP"; then
7458  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7459else
7460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461for as_dir in $PATH
7462do
7463  IFS=$as_save_IFS
7464  test -z "$as_dir" && as_dir=.
7465  for ac_exec_ext in '' $ac_executable_extensions; do
7466  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467    ac_cv_prog_ac_ct_STRIP="strip"
7468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469    break 2
7470  fi
7471done
7472done
7473
7474  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7475fi
7476fi
7477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7478if test -n "$ac_ct_STRIP"; then
7479  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7480echo "${ECHO_T}$ac_ct_STRIP" >&6
7481else
7482  echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6
7484fi
7485
7486  STRIP=$ac_ct_STRIP
7487else
7488  STRIP="$ac_cv_prog_STRIP"
7489fi
7490
7491
7492old_CC="$CC"
7493old_CFLAGS="$CFLAGS"
7494
7495# Set sane defaults for various variables
7496test -z "$AR" && AR=ar
7497test -z "$AR_FLAGS" && AR_FLAGS=cru
7498test -z "$AS" && AS=as
7499test -z "$CC" && CC=cc
7500test -z "$LTCC" && LTCC=$CC
7501test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7502test -z "$DLLTOOL" && DLLTOOL=dlltool
7503test -z "$LD" && LD=ld
7504test -z "$LN_S" && LN_S="ln -s"
7505test -z "$MAGIC_CMD" && MAGIC_CMD=file
7506test -z "$NM" && NM=nm
7507test -z "$SED" && SED=sed
7508test -z "$OBJDUMP" && OBJDUMP=objdump
7509test -z "$RANLIB" && RANLIB=:
7510test -z "$STRIP" && STRIP=:
7511test -z "$ac_objext" && ac_objext=o
7512
7513# Determine commands to create old-style static archives.
7514old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7515old_postinstall_cmds='chmod 644 $oldlib'
7516old_postuninstall_cmds=
7517
7518if test -n "$RANLIB"; then
7519  case $host_os in
7520  openbsd*)
7521    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7522    ;;
7523  *)
7524    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7525    ;;
7526  esac
7527  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7528fi
7529
7530for cc_temp in $compiler""; do
7531  case $cc_temp in
7532    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7533    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7534    \-*) ;;
7535    *) break;;
7536  esac
7537done
7538cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7539
7540
7541# Only perform the check for file, if the check method requires it
7542case $deplibs_check_method in
7543file_magic*)
7544  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7545    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7546echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7547if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7548  echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550  case $MAGIC_CMD in
7551[\\/*] |  ?:[\\/]*)
7552  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7553  ;;
7554*)
7555  lt_save_MAGIC_CMD="$MAGIC_CMD"
7556  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7557  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7558  for ac_dir in $ac_dummy; do
7559    IFS="$lt_save_ifs"
7560    test -z "$ac_dir" && ac_dir=.
7561    if test -f $ac_dir/${ac_tool_prefix}file; then
7562      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7563      if test -n "$file_magic_test_file"; then
7564        case $deplibs_check_method in
7565        "file_magic "*)
7566          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7567          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7569            $EGREP "$file_magic_regex" > /dev/null; then
7570            :
7571          else
7572            cat <<EOF 1>&2
7573
7574*** Warning: the command libtool uses to detect shared libraries,
7575*** $file_magic_cmd, produces output that libtool cannot recognize.
7576*** The result is that libtool may fail to recognize shared libraries
7577*** as such.  This will affect the creation of libtool libraries that
7578*** depend on shared libraries, but programs linked with such libtool
7579*** libraries will work regardless of this problem.  Nevertheless, you
7580*** may want to report the problem to your system manager and/or to
7581*** bug-libtool@gnu.org
7582
7583EOF
7584          fi ;;
7585        esac
7586      fi
7587      break
7588    fi
7589  done
7590  IFS="$lt_save_ifs"
7591  MAGIC_CMD="$lt_save_MAGIC_CMD"
7592  ;;
7593esac
7594fi
7595
7596MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597if test -n "$MAGIC_CMD"; then
7598  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7599echo "${ECHO_T}$MAGIC_CMD" >&6
7600else
7601  echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603fi
7604
7605if test -z "$lt_cv_path_MAGIC_CMD"; then
7606  if test -n "$ac_tool_prefix"; then
7607    echo "$as_me:$LINENO: checking for file" >&5
7608echo $ECHO_N "checking for file... $ECHO_C" >&6
7609if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7610  echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612  case $MAGIC_CMD in
7613[\\/*] |  ?:[\\/]*)
7614  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615  ;;
7616*)
7617  lt_save_MAGIC_CMD="$MAGIC_CMD"
7618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7619  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7620  for ac_dir in $ac_dummy; do
7621    IFS="$lt_save_ifs"
7622    test -z "$ac_dir" && ac_dir=.
7623    if test -f $ac_dir/file; then
7624      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7625      if test -n "$file_magic_test_file"; then
7626        case $deplibs_check_method in
7627        "file_magic "*)
7628          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7629          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7630          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7631            $EGREP "$file_magic_regex" > /dev/null; then
7632            :
7633          else
7634            cat <<EOF 1>&2
7635
7636*** Warning: the command libtool uses to detect shared libraries,
7637*** $file_magic_cmd, produces output that libtool cannot recognize.
7638*** The result is that libtool may fail to recognize shared libraries
7639*** as such.  This will affect the creation of libtool libraries that
7640*** depend on shared libraries, but programs linked with such libtool
7641*** libraries will work regardless of this problem.  Nevertheless, you
7642*** may want to report the problem to your system manager and/or to
7643*** bug-libtool@gnu.org
7644
7645EOF
7646          fi ;;
7647        esac
7648      fi
7649      break
7650    fi
7651  done
7652  IFS="$lt_save_ifs"
7653  MAGIC_CMD="$lt_save_MAGIC_CMD"
7654  ;;
7655esac
7656fi
7657
7658MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659if test -n "$MAGIC_CMD"; then
7660  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7661echo "${ECHO_T}$MAGIC_CMD" >&6
7662else
7663  echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665fi
7666
7667  else
7668    MAGIC_CMD=:
7669  fi
7670fi
7671
7672  fi
7673  ;;
7674esac
7675
7676enable_dlopen=no
7677enable_win32_dll=no
7678
7679# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7680if test "${enable_libtool_lock+set}" = set; then
7681  enableval="$enable_libtool_lock"
7682
7683fi;
7684test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7685
7686
7687# Check whether --with-pic or --without-pic was given.
7688if test "${with_pic+set}" = set; then
7689  withval="$with_pic"
7690  pic_mode="$withval"
7691else
7692  pic_mode=default
7693fi;
7694test -z "$pic_mode" && pic_mode=default
7695
7696# Use C for the default configuration in the libtool script
7697tagname=
7698lt_save_CC="$CC"
7699ac_ext=c
7700ac_cpp='$CPP $CPPFLAGS'
7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7703ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704
7705
7706# Source file extension for C test sources.
7707ac_ext=c
7708
7709# Object file extension for compiled C test sources.
7710objext=o
7711objext=$objext
7712
7713# Code to be used in simple compile tests
7714lt_simple_compile_test_code="int some_variable = 0;\n"
7715
7716# Code to be used in simple link tests
7717lt_simple_link_test_code='int main(){return(0);}\n'
7718
7719
7720# If no C compiler was specified, use CC.
7721LTCC=${LTCC-"$CC"}
7722
7723# If no C compiler flags were specified, use CFLAGS.
7724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7725
7726# Allow CC to be a program name with arguments.
7727compiler=$CC
7728
7729
7730# save warnings/boilerplate of simple test code
7731ac_outfile=conftest.$ac_objext
7732printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734_lt_compiler_boilerplate=`cat conftest.err`
7735$rm conftest*
7736
7737ac_outfile=conftest.$ac_objext
7738printf "$lt_simple_link_test_code" >conftest.$ac_ext
7739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7740_lt_linker_boilerplate=`cat conftest.err`
7741$rm conftest*
7742
7743
7744## CAVEAT EMPTOR:
7745## There is no encapsulation within the following macros, do not change
7746## the running order or otherwise move them around unless you know exactly
7747## what you are doing...
7748
7749lt_prog_compiler_no_builtin_flag=
7750
7751if test "$GCC" = yes; then
7752  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7753
7754
7755echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7756echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7757if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7758  echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760  lt_cv_prog_compiler_rtti_exceptions=no
7761  ac_outfile=conftest.$ac_objext
7762   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7763   lt_compiler_flag="-fno-rtti -fno-exceptions"
7764   # Insert the option either (1) after the last *FLAGS variable, or
7765   # (2) before a word containing "conftest.", or (3) at the end.
7766   # Note that $ac_compile itself does not contain backslashes and begins
7767   # with a dollar sign (not a hyphen), so the echo should work correctly.
7768   # The option is referenced via a variable to avoid confusing sed.
7769   lt_compile=`echo "$ac_compile" | $SED \
7770   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7771   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772   -e 's:$: $lt_compiler_flag:'`
7773   (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
7774   (eval "$lt_compile" 2>conftest.err)
7775   ac_status=$?
7776   cat conftest.err >&5
7777   echo "$as_me:7777: \$? = $ac_status" >&5
7778   if (exit $ac_status) && test -s "$ac_outfile"; then
7779     # The compiler can only warn and ignore the option if not recognized
7780     # So say no if there are warnings other than the usual output.
7781     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7782     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7784       lt_cv_prog_compiler_rtti_exceptions=yes
7785     fi
7786   fi
7787   $rm conftest*
7788
7789fi
7790echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7791echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7792
7793if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7794    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7795else
7796    :
7797fi
7798
7799fi
7800
7801lt_prog_compiler_wl=
7802lt_prog_compiler_pic=
7803lt_prog_compiler_static=
7804
7805echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7806echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7807
7808  if test "$GCC" = yes; then
7809    lt_prog_compiler_wl='-Wl,'
7810    lt_prog_compiler_static='-static'
7811
7812    case $host_os in
7813      aix*)
7814      # All AIX code is PIC.
7815      if test "$host_cpu" = ia64; then
7816        # AIX 5 now supports IA64 processor
7817        lt_prog_compiler_static='-Bstatic'
7818      fi
7819      ;;
7820
7821    amigaos*)
7822      # FIXME: we need at least 68020 code to build shared libraries, but
7823      # adding the `-m68020' flag to GCC prevents building anything better,
7824      # like `-m68040'.
7825      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7826      ;;
7827
7828    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7829      # PIC is the default for these OSes.
7830      ;;
7831
7832    mingw* | pw32* | os2*)
7833      # This hack is so that the source file can tell whether it is being
7834      # built for inclusion in a dll (and should export symbols for example).
7835      lt_prog_compiler_pic='-DDLL_EXPORT'
7836      ;;
7837
7838    darwin* | rhapsody*)
7839      # PIC is the default on this platform
7840      # Common symbols not allowed in MH_DYLIB files
7841      lt_prog_compiler_pic='-fno-common'
7842      ;;
7843
7844    interix3*)
7845      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7846      # Instead, we relocate shared libraries at runtime.
7847      ;;
7848
7849    msdosdjgpp*)
7850      # Just because we use GCC doesn't mean we suddenly get shared libraries
7851      # on systems that don't support them.
7852      lt_prog_compiler_can_build_shared=no
7853      enable_shared=no
7854      ;;
7855
7856    sysv4*MP*)
7857      if test -d /usr/nec; then
7858        lt_prog_compiler_pic=-Kconform_pic
7859      fi
7860      ;;
7861
7862    hpux*)
7863      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7864      # not for PA HP-UX.
7865      case $host_cpu in
7866      hppa*64*|ia64*)
7867        # +Z the default
7868        ;;
7869      *)
7870        lt_prog_compiler_pic='-fPIC'
7871        ;;
7872      esac
7873      ;;
7874
7875    *)
7876      lt_prog_compiler_pic='-fPIC'
7877      ;;
7878    esac
7879  else
7880    # PORTME Check for flag to pass linker flags through the system compiler.
7881    case $host_os in
7882    aix*)
7883      lt_prog_compiler_wl='-Wl,'
7884      if test "$host_cpu" = ia64; then
7885        # AIX 5 now supports IA64 processor
7886        lt_prog_compiler_static='-Bstatic'
7887      else
7888        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7889      fi
7890      ;;
7891      darwin*)
7892        # PIC is the default on this platform
7893        # Common symbols not allowed in MH_DYLIB files
7894       case $cc_basename in
7895         xlc*)
7896         lt_prog_compiler_pic='-qnocommon'
7897         lt_prog_compiler_wl='-Wl,'
7898         ;;
7899       esac
7900       ;;
7901
7902    mingw* | pw32* | os2*)
7903      # This hack is so that the source file can tell whether it is being
7904      # built for inclusion in a dll (and should export symbols for example).
7905      lt_prog_compiler_pic='-DDLL_EXPORT'
7906      ;;
7907
7908    hpux9* | hpux10* | hpux11*)
7909      lt_prog_compiler_wl='-Wl,'
7910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7911      # not for PA HP-UX.
7912      case $host_cpu in
7913      hppa*64*|ia64*)
7914        # +Z the default
7915        ;;
7916      *)
7917        lt_prog_compiler_pic='+Z'
7918        ;;
7919      esac
7920      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7921      lt_prog_compiler_static='${wl}-a ${wl}archive'
7922      ;;
7923
7924    irix5* | irix6* | nonstopux*)
7925      lt_prog_compiler_wl='-Wl,'
7926      # PIC (with -KPIC) is the default.
7927      lt_prog_compiler_static='-non_shared'
7928      ;;
7929
7930    newsos6)
7931      lt_prog_compiler_pic='-KPIC'
7932      lt_prog_compiler_static='-Bstatic'
7933      ;;
7934
7935    linux*)
7936      case $cc_basename in
7937      icc* | ecc*)
7938        lt_prog_compiler_wl='-Wl,'
7939        lt_prog_compiler_pic='-KPIC'
7940        lt_prog_compiler_static='-static'
7941        ;;
7942      pgcc* | pgf77* | pgf90* | pgf95*)
7943        # Portland Group compilers (*not* the Pentium gcc compiler,
7944        # which looks to be a dead project)
7945        lt_prog_compiler_wl='-Wl,'
7946        lt_prog_compiler_pic='-fpic'
7947        lt_prog_compiler_static='-Bstatic'
7948        ;;
7949      ccc*)
7950        lt_prog_compiler_wl='-Wl,'
7951        # All Alpha code is PIC.
7952        lt_prog_compiler_static='-non_shared'
7953        ;;
7954      esac
7955      ;;
7956
7957    osf3* | osf4* | osf5*)
7958      lt_prog_compiler_wl='-Wl,'
7959      # All OSF/1 code is PIC.
7960      lt_prog_compiler_static='-non_shared'
7961      ;;
7962
7963    solaris*)
7964      lt_prog_compiler_pic='-KPIC'
7965      lt_prog_compiler_static='-Bstatic'
7966      case $cc_basename in
7967      f77* | f90* | f95*)
7968        lt_prog_compiler_wl='-Qoption ld ';;
7969      *)
7970        lt_prog_compiler_wl='-Wl,';;
7971      esac
7972      ;;
7973
7974    sunos4*)
7975      lt_prog_compiler_wl='-Qoption ld '
7976      lt_prog_compiler_pic='-PIC'
7977      lt_prog_compiler_static='-Bstatic'
7978      ;;
7979
7980    sysv4 | sysv4.2uw2* | sysv4.3*)
7981      lt_prog_compiler_wl='-Wl,'
7982      lt_prog_compiler_pic='-KPIC'
7983      lt_prog_compiler_static='-Bstatic'
7984      ;;
7985
7986    sysv4*MP*)
7987      if test -d /usr/nec ;then
7988        lt_prog_compiler_pic='-Kconform_pic'
7989        lt_prog_compiler_static='-Bstatic'
7990      fi
7991      ;;
7992
7993    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7994      lt_prog_compiler_wl='-Wl,'
7995      lt_prog_compiler_pic='-KPIC'
7996      lt_prog_compiler_static='-Bstatic'
7997      ;;
7998
7999    unicos*)
8000      lt_prog_compiler_wl='-Wl,'
8001      lt_prog_compiler_can_build_shared=no
8002      ;;
8003
8004    uts4*)
8005      lt_prog_compiler_pic='-pic'
8006      lt_prog_compiler_static='-Bstatic'
8007      ;;
8008
8009    *)
8010      lt_prog_compiler_can_build_shared=no
8011      ;;
8012    esac
8013  fi
8014
8015echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8016echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8017
8018#
8019# Check to make sure the PIC flag actually works.
8020#
8021if test -n "$lt_prog_compiler_pic"; then
8022
8023echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8024echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8025if test "${lt_prog_compiler_pic_works+set}" = set; then
8026  echo $ECHO_N "(cached) $ECHO_C" >&6
8027else
8028  lt_prog_compiler_pic_works=no
8029  ac_outfile=conftest.$ac_objext
8030   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8031   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8032   # Insert the option either (1) after the last *FLAGS variable, or
8033   # (2) before a word containing "conftest.", or (3) at the end.
8034   # Note that $ac_compile itself does not contain backslashes and begins
8035   # with a dollar sign (not a hyphen), so the echo should work correctly.
8036   # The option is referenced via a variable to avoid confusing sed.
8037   lt_compile=`echo "$ac_compile" | $SED \
8038   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040   -e 's:$: $lt_compiler_flag:'`
8041   (eval echo "\"\$as_me:8041: $lt_compile\"" >&5)
8042   (eval "$lt_compile" 2>conftest.err)
8043   ac_status=$?
8044   cat conftest.err >&5
8045   echo "$as_me:8045: \$? = $ac_status" >&5
8046   if (exit $ac_status) && test -s "$ac_outfile"; then
8047     # The compiler can only warn and ignore the option if not recognized
8048     # So say no if there are warnings other than the usual output.
8049     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8050     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8051     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8052       lt_prog_compiler_pic_works=yes
8053     fi
8054   fi
8055   $rm conftest*
8056
8057fi
8058echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8059echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8060
8061if test x"$lt_prog_compiler_pic_works" = xyes; then
8062    case $lt_prog_compiler_pic in
8063     "" | " "*) ;;
8064     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8065     esac
8066else
8067    lt_prog_compiler_pic=
8068     lt_prog_compiler_can_build_shared=no
8069fi
8070
8071fi
8072case $host_os in
8073  # For platforms which do not support PIC, -DPIC is meaningless:
8074  *djgpp*)
8075    lt_prog_compiler_pic=
8076    ;;
8077  *)
8078    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8079    ;;
8080esac
8081
8082#
8083# Check to make sure the static flag actually works.
8084#
8085wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8086echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8087echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8088if test "${lt_prog_compiler_static_works+set}" = set; then
8089  echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091  lt_prog_compiler_static_works=no
8092   save_LDFLAGS="$LDFLAGS"
8093   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8094   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8095   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8096     # The linker can only warn and ignore the option if not recognized
8097     # So say no if there are warnings
8098     if test -s conftest.err; then
8099       # Append any errors to the config.log.
8100       cat conftest.err 1>&5
8101       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8102       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8103       if diff conftest.exp conftest.er2 >/dev/null; then
8104         lt_prog_compiler_static_works=yes
8105       fi
8106     else
8107       lt_prog_compiler_static_works=yes
8108     fi
8109   fi
8110   $rm conftest*
8111   LDFLAGS="$save_LDFLAGS"
8112
8113fi
8114echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8115echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8116
8117if test x"$lt_prog_compiler_static_works" = xyes; then
8118    :
8119else
8120    lt_prog_compiler_static=
8121fi
8122
8123
8124echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8125echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8126if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8127  echo $ECHO_N "(cached) $ECHO_C" >&6
8128else
8129  lt_cv_prog_compiler_c_o=no
8130   $rm -r conftest 2>/dev/null
8131   mkdir conftest
8132   cd conftest
8133   mkdir out
8134   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8135
8136   lt_compiler_flag="-o out/conftest2.$ac_objext"
8137   # Insert the option either (1) after the last *FLAGS variable, or
8138   # (2) before a word containing "conftest.", or (3) at the end.
8139   # Note that $ac_compile itself does not contain backslashes and begins
8140   # with a dollar sign (not a hyphen), so the echo should work correctly.
8141   lt_compile=`echo "$ac_compile" | $SED \
8142   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144   -e 's:$: $lt_compiler_flag:'`
8145   (eval echo "\"\$as_me:8145: $lt_compile\"" >&5)
8146   (eval "$lt_compile" 2>out/conftest.err)
8147   ac_status=$?
8148   cat out/conftest.err >&5
8149   echo "$as_me:8149: \$? = $ac_status" >&5
8150   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8151   then
8152     # The compiler can only warn and ignore the option if not recognized
8153     # So say no if there are warnings
8154     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8155     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8156     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8157       lt_cv_prog_compiler_c_o=yes
8158     fi
8159   fi
8160   chmod u+w . 2>&5
8161   $rm conftest*
8162   # SGI C++ compiler will create directory out/ii_files/ for
8163   # template instantiation
8164   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8165   $rm out/* && rmdir out
8166   cd ..
8167   rmdir conftest
8168   $rm conftest*
8169
8170fi
8171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8172echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8173
8174
8175hard_links="nottested"
8176if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8177  # do not overwrite the value of need_locks provided by the user
8178  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8179echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8180  hard_links=yes
8181  $rm conftest*
8182  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8183  touch conftest.a
8184  ln conftest.a conftest.b 2>&5 || hard_links=no
8185  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8186  echo "$as_me:$LINENO: result: $hard_links" >&5
8187echo "${ECHO_T}$hard_links" >&6
8188  if test "$hard_links" = no; then
8189    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8190echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8191    need_locks=warn
8192  fi
8193else
8194  need_locks=no
8195fi
8196
8197echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8198echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8199
8200  runpath_var=
8201  allow_undefined_flag=
8202  enable_shared_with_static_runtimes=no
8203  archive_cmds=
8204  archive_expsym_cmds=
8205  old_archive_From_new_cmds=
8206  old_archive_from_expsyms_cmds=
8207  export_dynamic_flag_spec=
8208  whole_archive_flag_spec=
8209  thread_safe_flag_spec=
8210  hardcode_libdir_flag_spec=
8211  hardcode_libdir_flag_spec_ld=
8212  hardcode_libdir_separator=
8213  hardcode_direct=no
8214  hardcode_minus_L=no
8215  hardcode_shlibpath_var=unsupported
8216  link_all_deplibs=unknown
8217  hardcode_automatic=no
8218  module_cmds=
8219  module_expsym_cmds=
8220  always_export_symbols=no
8221  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8222  # include_expsyms should be a list of space-separated symbols to be *always*
8223  # included in the symbol list
8224  include_expsyms=
8225  # exclude_expsyms can be an extended regexp of symbols to exclude
8226  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8227  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8228  # as well as any symbol that contains `d'.
8229  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8230  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8231  # platforms (ab)use it in PIC code, but their linkers get confused if
8232  # the symbol is explicitly referenced.  Since portable code cannot
8233  # rely on this symbol name, it's probably fine to never include it in
8234  # preloaded symbol tables.
8235  extract_expsyms_cmds=
8236  # Just being paranoid about ensuring that cc_basename is set.
8237  for cc_temp in $compiler""; do
8238  case $cc_temp in
8239    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8240    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8241    \-*) ;;
8242    *) break;;
8243  esac
8244done
8245cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8246
8247  case $host_os in
8248  cygwin* | mingw* | pw32*)
8249    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8250    # When not using gcc, we currently assume that we are using
8251    # Microsoft Visual C++.
8252    if test "$GCC" != yes; then
8253      with_gnu_ld=no
8254    fi
8255    ;;
8256  interix*)
8257    # we just hope/assume this is gcc and not c89 (= MSVC++)
8258    with_gnu_ld=yes
8259    ;;
8260  openbsd*)
8261    with_gnu_ld=no
8262    ;;
8263  esac
8264
8265  ld_shlibs=yes
8266  if test "$with_gnu_ld" = yes; then
8267    # If archive_cmds runs LD, not CC, wlarc should be empty
8268    wlarc='${wl}'
8269
8270    # Set some defaults for GNU ld with shared library support. These
8271    # are reset later if shared libraries are not supported. Putting them
8272    # here allows them to be overridden if necessary.
8273    runpath_var=LD_RUN_PATH
8274    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8275    export_dynamic_flag_spec='${wl}--export-dynamic'
8276    # ancient GNU ld didn't support --whole-archive et. al.
8277    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8278        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8279      else
8280        whole_archive_flag_spec=
8281    fi
8282    supports_anon_versioning=no
8283    case `$LD -v 2>/dev/null` in
8284      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8285      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8286      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8287      *\ 2.11.*) ;; # other 2.11 versions
8288      *) supports_anon_versioning=yes ;;
8289    esac
8290
8291    # See if GNU ld supports shared libraries.
8292    case $host_os in
8293    aix3* | aix4* | aix5*)
8294      # On AIX/PPC, the GNU linker is very broken
8295      if test "$host_cpu" != ia64; then
8296        ld_shlibs=no
8297        cat <<EOF 1>&2
8298
8299*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8300*** to be unable to reliably create shared libraries on AIX.
8301*** Therefore, libtool is disabling shared libraries support.  If you
8302*** really care for shared libraries, you may want to modify your PATH
8303*** so that a non-GNU linker is found, and then restart.
8304
8305EOF
8306      fi
8307      ;;
8308
8309    amigaos*)
8310      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)'
8311      hardcode_libdir_flag_spec='-L$libdir'
8312      hardcode_minus_L=yes
8313
8314      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8315      # that the semantics of dynamic libraries on AmigaOS, at least up
8316      # to version 4, is to share data among multiple programs linked
8317      # with the same dynamic library.  Since this doesn't match the
8318      # behavior of shared libraries on other platforms, we can't use
8319      # them.
8320      ld_shlibs=no
8321      ;;
8322
8323    beos*)
8324      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8325        allow_undefined_flag=unsupported
8326        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8327        # support --undefined.  This deserves some investigation.  FIXME
8328        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329      else
8330        ld_shlibs=no
8331      fi
8332      ;;
8333
8334    cygwin* | mingw* | pw32*)
8335      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8336      # as there is no search path for DLLs.
8337      hardcode_libdir_flag_spec='-L$libdir'
8338      allow_undefined_flag=unsupported
8339      always_export_symbols=no
8340      enable_shared_with_static_runtimes=yes
8341      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8342
8343      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8344        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8345        # If the export-symbols file already is a .def file (1st line
8346        # is EXPORTS), use it as is; otherwise, prepend...
8347        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8348          cp $export_symbols $output_objdir/$soname.def;
8349        else
8350          echo EXPORTS > $output_objdir/$soname.def;
8351          cat $export_symbols >> $output_objdir/$soname.def;
8352        fi~
8353        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8354      else
8355        ld_shlibs=no
8356      fi
8357      ;;
8358
8359    interix3*)
8360      hardcode_direct=no
8361      hardcode_shlibpath_var=no
8362      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8363      export_dynamic_flag_spec='${wl}-E'
8364      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8365      # Instead, shared libraries are loaded at an image base (0x10000000 by
8366      # default) and relocated if they conflict, which is a slow very memory
8367      # consuming and fragmenting process.  To avoid this, we pick a random,
8368      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8369      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8370      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8371      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'
8372      ;;
8373
8374    linux*)
8375      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8376        tmp_addflag=
8377        case $cc_basename,$host_cpu in
8378        pgcc*)                          # Portland Group C compiler
8379          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'
8380          tmp_addflag=' $pic_flag'
8381          ;;
8382        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8383          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'
8384          tmp_addflag=' $pic_flag -Mnomain' ;;
8385        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8386          tmp_addflag=' -i_dynamic' ;;
8387        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8388          tmp_addflag=' -i_dynamic -nofor_main' ;;
8389        ifc* | ifort*)                  # Intel Fortran compiler
8390          tmp_addflag=' -nofor_main' ;;
8391        esac
8392        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8393
8394        if test $supports_anon_versioning = yes; then
8395          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8396  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8397  $echo "local: *; };" >> $output_objdir/$libname.ver~
8398          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8399        fi
8400      else
8401        ld_shlibs=no
8402      fi
8403      ;;
8404
8405    netbsd*)
8406      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8407        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8408        wlarc=
8409      else
8410        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8411        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8412      fi
8413      ;;
8414
8415    solaris*)
8416      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8417        ld_shlibs=no
8418        cat <<EOF 1>&2
8419
8420*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8421*** create shared libraries on Solaris systems.  Therefore, libtool
8422*** is disabling shared libraries support.  We urge you to upgrade GNU
8423*** binutils to release 2.9.1 or newer.  Another option is to modify
8424*** your PATH or compiler configuration so that the native linker is
8425*** used, and then restart.
8426
8427EOF
8428      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8429        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8431      else
8432        ld_shlibs=no
8433      fi
8434      ;;
8435
8436    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8437      case `$LD -v 2>&1` in
8438        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8439        ld_shlibs=no
8440        cat <<_LT_EOF 1>&2
8441
8442*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8443*** reliably create shared libraries on SCO systems.  Therefore, libtool
8444*** is disabling shared libraries support.  We urge you to upgrade GNU
8445*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8446*** your PATH or compiler configuration so that the native linker is
8447*** used, and then restart.
8448
8449_LT_EOF
8450        ;;
8451        *)
8452          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8453            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8454            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8455            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8456          else
8457            ld_shlibs=no
8458          fi
8459        ;;
8460      esac
8461      ;;
8462
8463    sunos4*)
8464      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8465      wlarc=
8466      hardcode_direct=yes
8467      hardcode_shlibpath_var=no
8468      ;;
8469
8470    *)
8471      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8472        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8473        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8474      else
8475        ld_shlibs=no
8476      fi
8477      ;;
8478    esac
8479
8480    if test "$ld_shlibs" = no; then
8481      runpath_var=
8482      hardcode_libdir_flag_spec=
8483      export_dynamic_flag_spec=
8484      whole_archive_flag_spec=
8485    fi
8486  else
8487    # PORTME fill in a description of your system's linker (not GNU ld)
8488    case $host_os in
8489    aix3*)
8490      allow_undefined_flag=unsupported
8491      always_export_symbols=yes
8492      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'
8493      # Note: this linker hardcodes the directories in LIBPATH if there
8494      # are no directories specified by -L.
8495      hardcode_minus_L=yes
8496      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8497        # Neither direct hardcoding nor static linking is supported with a
8498        # broken collect2.
8499        hardcode_direct=unsupported
8500      fi
8501      ;;
8502
8503    aix4* | aix5*)
8504      if test "$host_cpu" = ia64; then
8505        # On IA64, the linker does run time linking by default, so we don't
8506        # have to do anything special.
8507        aix_use_runtimelinking=no
8508        exp_sym_flag='-Bexport'
8509        no_entry_flag=""
8510      else
8511        # If we're using GNU nm, then we don't want the "-C" option.
8512        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8513        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8514          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'
8515        else
8516          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'
8517        fi
8518        aix_use_runtimelinking=no
8519
8520        # Test if we are trying to use run time linking or normal
8521        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8522        # need to do runtime linking.
8523        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8524          for ld_flag in $LDFLAGS; do
8525          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8526            aix_use_runtimelinking=yes
8527            break
8528          fi
8529          done
8530          ;;
8531        esac
8532
8533        exp_sym_flag='-bexport'
8534        no_entry_flag='-bnoentry'
8535      fi
8536
8537      # When large executables or shared objects are built, AIX ld can
8538      # have problems creating the table of contents.  If linking a library
8539      # or program results in "error TOC overflow" add -mminimal-toc to
8540      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8541      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8542
8543      archive_cmds=''
8544      hardcode_direct=yes
8545      hardcode_libdir_separator=':'
8546      link_all_deplibs=yes
8547
8548      if test "$GCC" = yes; then
8549        case $host_os in aix4.[012]|aix4.[012].*)
8550        # We only want to do this on AIX 4.2 and lower, the check
8551        # below for broken collect2 doesn't work under 4.3+
8552          collect2name=`${CC} -print-prog-name=collect2`
8553          if test -f "$collect2name" && \
8554           strings "$collect2name" | grep resolve_lib_name >/dev/null
8555          then
8556          # We have reworked collect2
8557          hardcode_direct=yes
8558          else
8559          # We have old collect2
8560          hardcode_direct=unsupported
8561          # It fails to find uninstalled libraries when the uninstalled
8562          # path is not listed in the libpath.  Setting hardcode_minus_L
8563          # to unsupported forces relinking
8564          hardcode_minus_L=yes
8565          hardcode_libdir_flag_spec='-L$libdir'
8566          hardcode_libdir_separator=
8567          fi
8568          ;;
8569        esac
8570        shared_flag='-shared'
8571        if test "$aix_use_runtimelinking" = yes; then
8572          shared_flag="$shared_flag "'${wl}-G'
8573        fi
8574      else
8575        # not using gcc
8576        if test "$host_cpu" = ia64; then
8577        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8578        # chokes on -Wl,-G. The following line is correct:
8579          shared_flag='-G'
8580        else
8581          if test "$aix_use_runtimelinking" = yes; then
8582            shared_flag='${wl}-G'
8583          else
8584            shared_flag='${wl}-bM:SRE'
8585          fi
8586        fi
8587      fi
8588
8589      # It seems that -bexpall does not export symbols beginning with
8590      # underscore (_), so it is better to generate a list of symbols to export.
8591      always_export_symbols=yes
8592      if test "$aix_use_runtimelinking" = yes; then
8593        # Warning - without using the other runtime loading flags (-brtl),
8594        # -berok will link without error, but may produce a broken library.
8595        allow_undefined_flag='-berok'
8596       # Determine the default libpath from the value encoded in an empty executable.
8597       cat >conftest.$ac_ext <<_ACEOF
8598/* confdefs.h.  */
8599_ACEOF
8600cat confdefs.h >>conftest.$ac_ext
8601cat >>conftest.$ac_ext <<_ACEOF
8602/* end confdefs.h.  */
8603
8604int
8605main ()
8606{
8607
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614  (eval $ac_link) 2>conftest.er1
8615  ac_status=$?
8616  grep -v '^ *+' conftest.er1 >conftest.err
8617  rm -f conftest.er1
8618  cat conftest.err >&5
8619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620  (exit $ac_status); } &&
8621         { ac_try='test -z "$ac_c_werror_flag"
8622                         || test ! -s conftest.err'
8623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624  (eval $ac_try) 2>&5
8625  ac_status=$?
8626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627  (exit $ac_status); }; } &&
8628         { ac_try='test -s conftest$ac_exeext'
8629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630  (eval $ac_try) 2>&5
8631  ac_status=$?
8632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633  (exit $ac_status); }; }; then
8634
8635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8636}'`
8637# Check for a 64-bit object if we didn't find anything.
8638if 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; }
8639}'`; fi
8640else
8641  echo "$as_me: failed program was:" >&5
8642sed 's/^/| /' conftest.$ac_ext >&5
8643
8644fi
8645rm -f conftest.err conftest.$ac_objext \
8646      conftest$ac_exeext conftest.$ac_ext
8647if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8648
8649       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8650        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"
8651       else
8652        if test "$host_cpu" = ia64; then
8653          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8654          allow_undefined_flag="-z nodefs"
8655          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"
8656        else
8657         # Determine the default libpath from the value encoded in an empty executable.
8658         cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h.  */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h.  */
8664
8665int
8666main ()
8667{
8668
8669  ;
8670  return 0;
8671}
8672_ACEOF
8673rm -f conftest.$ac_objext conftest$ac_exeext
8674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675  (eval $ac_link) 2>conftest.er1
8676  ac_status=$?
8677  grep -v '^ *+' conftest.er1 >conftest.err
8678  rm -f conftest.er1
8679  cat conftest.err >&5
8680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681  (exit $ac_status); } &&
8682         { ac_try='test -z "$ac_c_werror_flag"
8683                         || test ! -s conftest.err'
8684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685  (eval $ac_try) 2>&5
8686  ac_status=$?
8687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688  (exit $ac_status); }; } &&
8689         { ac_try='test -s conftest$ac_exeext'
8690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691  (eval $ac_try) 2>&5
8692  ac_status=$?
8693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694  (exit $ac_status); }; }; then
8695
8696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8697}'`
8698# Check for a 64-bit object if we didn't find anything.
8699if 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; }
8700}'`; fi
8701else
8702  echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705fi
8706rm -f conftest.err conftest.$ac_objext \
8707      conftest$ac_exeext conftest.$ac_ext
8708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8709
8710         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8711          # Warning - without using the other run time loading flags,
8712          # -berok will link without error, but may produce a broken library.
8713          no_undefined_flag=' ${wl}-bernotok'
8714          allow_undefined_flag=' ${wl}-berok'
8715          # Exported symbols can be pulled into shared objects from archives
8716          whole_archive_flag_spec='$convenience'
8717          archive_cmds_need_lc=yes
8718          # This is similar to how AIX traditionally builds its shared libraries.
8719          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'
8720        fi
8721      fi
8722      ;;
8723
8724    amigaos*)
8725      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)'
8726      hardcode_libdir_flag_spec='-L$libdir'
8727      hardcode_minus_L=yes
8728      # see comment about different semantics on the GNU ld section
8729      ld_shlibs=no
8730      ;;
8731
8732    bsdi[45]*)
8733      export_dynamic_flag_spec=-rdynamic
8734      ;;
8735
8736    cygwin* | mingw* | pw32*)
8737      # When not using gcc, we currently assume that we are using
8738      # Microsoft Visual C++.
8739      # hardcode_libdir_flag_spec is actually meaningless, as there is
8740      # no search path for DLLs.
8741      hardcode_libdir_flag_spec=' '
8742      allow_undefined_flag=unsupported
8743      # Tell ltmain to make .lib files, not .a files.
8744      libext=lib
8745      # Tell ltmain to make .dll files, not .so files.
8746      shrext_cmds=".dll"
8747      # FIXME: Setting linknames here is a bad hack.
8748      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8749      # The linker will automatically build a .lib file if we build a DLL.
8750      old_archive_From_new_cmds='true'
8751      # FIXME: Should let the user specify the lib program.
8752      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8753      fix_srcfile_path='`cygpath -w "$srcfile"`'
8754      enable_shared_with_static_runtimes=yes
8755      ;;
8756
8757    darwin* | rhapsody*)
8758      case $host_os in
8759        rhapsody* | darwin1.[012])
8760         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8761         ;;
8762       *) # Darwin 1.3 on
8763         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8764           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8765         else
8766           case ${MACOSX_DEPLOYMENT_TARGET} in
8767             10.[012])
8768               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8769               ;;
8770             10.*)
8771               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8772               ;;
8773           esac
8774         fi
8775         ;;
8776      esac
8777      archive_cmds_need_lc=no
8778      hardcode_direct=no
8779      hardcode_automatic=yes
8780      hardcode_shlibpath_var=unsupported
8781      whole_archive_flag_spec=''
8782      link_all_deplibs=yes
8783    if test "$GCC" = yes ; then
8784        output_verbose_link_cmd='echo'
8785        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8786      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8787      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8788      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}'
8789      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}'
8790    else
8791      case $cc_basename in
8792        xlc*)
8793         output_verbose_link_cmd='echo'
8794         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8795         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8796          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8797         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}'
8798          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}'
8799          ;;
8800       *)
8801         ld_shlibs=no
8802          ;;
8803      esac
8804    fi
8805      ;;
8806
8807    dgux*)
8808      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809      hardcode_libdir_flag_spec='-L$libdir'
8810      hardcode_shlibpath_var=no
8811      ;;
8812
8813    freebsd1*)
8814      ld_shlibs=no
8815      ;;
8816
8817    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8818    # support.  Future versions do this automatically, but an explicit c++rt0.o
8819    # does not break anything, and helps significantly (at the cost of a little
8820    # extra space).
8821    freebsd2.2*)
8822      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8823      hardcode_libdir_flag_spec='-R$libdir'
8824      hardcode_direct=yes
8825      hardcode_shlibpath_var=no
8826      ;;
8827
8828    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8829    freebsd2*)
8830      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8831      hardcode_direct=yes
8832      hardcode_minus_L=yes
8833      hardcode_shlibpath_var=no
8834      ;;
8835
8836    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8837    freebsd* | kfreebsd*-gnu | dragonfly*)
8838      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8839      hardcode_libdir_flag_spec='-R$libdir'
8840      hardcode_direct=yes
8841      hardcode_shlibpath_var=no
8842      ;;
8843
8844    hpux9*)
8845      if test "$GCC" = yes; then
8846        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'
8847      else
8848        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'
8849      fi
8850      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8851      hardcode_libdir_separator=:
8852      hardcode_direct=yes
8853
8854      # hardcode_minus_L: Not really in the search PATH,
8855      # but as the default location of the library.
8856      hardcode_minus_L=yes
8857      export_dynamic_flag_spec='${wl}-E'
8858      ;;
8859
8860    hpux10*)
8861      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8862        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8863      else
8864        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8865      fi
8866      if test "$with_gnu_ld" = no; then
8867        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868        hardcode_libdir_separator=:
8869
8870        hardcode_direct=yes
8871        export_dynamic_flag_spec='${wl}-E'
8872
8873        # hardcode_minus_L: Not really in the search PATH,
8874        # but as the default location of the library.
8875        hardcode_minus_L=yes
8876      fi
8877      ;;
8878
8879    hpux11*)
8880      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8881        case $host_cpu in
8882        hppa*64*)
8883          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884          ;;
8885        ia64*)
8886          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8887          ;;
8888        *)
8889          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890          ;;
8891        esac
8892      else
8893        case $host_cpu in
8894        hppa*64*)
8895          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8896          ;;
8897        ia64*)
8898          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8899          ;;
8900        *)
8901          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8902          ;;
8903        esac
8904      fi
8905      if test "$with_gnu_ld" = no; then
8906        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907        hardcode_libdir_separator=:
8908
8909        case $host_cpu in
8910        hppa*64*|ia64*)
8911          hardcode_libdir_flag_spec_ld='+b $libdir'
8912          hardcode_direct=no
8913          hardcode_shlibpath_var=no
8914          ;;
8915        *)
8916          hardcode_direct=yes
8917          export_dynamic_flag_spec='${wl}-E'
8918
8919          # hardcode_minus_L: Not really in the search PATH,
8920          # but as the default location of the library.
8921          hardcode_minus_L=yes
8922          ;;
8923        esac
8924      fi
8925      ;;
8926
8927    irix5* | irix6* | nonstopux*)
8928      if test "$GCC" = yes; then
8929        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'
8930      else
8931        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'
8932        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8933      fi
8934      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8935      hardcode_libdir_separator=:
8936      link_all_deplibs=yes
8937      ;;
8938
8939    netbsd*)
8940      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8941        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8942      else
8943        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8944      fi
8945      hardcode_libdir_flag_spec='-R$libdir'
8946      hardcode_direct=yes
8947      hardcode_shlibpath_var=no
8948      ;;
8949
8950    newsos6)
8951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952      hardcode_direct=yes
8953      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8954      hardcode_libdir_separator=:
8955      hardcode_shlibpath_var=no
8956      ;;
8957
8958    openbsd*)
8959      hardcode_direct=yes
8960      hardcode_shlibpath_var=no
8961      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8962        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8963        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8964        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8965        export_dynamic_flag_spec='${wl}-E'
8966      else
8967       case $host_os in
8968         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8969           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970           hardcode_libdir_flag_spec='-R$libdir'
8971           ;;
8972         *)
8973           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8974           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8975           ;;
8976       esac
8977      fi
8978      ;;
8979
8980    os2*)
8981      hardcode_libdir_flag_spec='-L$libdir'
8982      hardcode_minus_L=yes
8983      allow_undefined_flag=unsupported
8984      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'
8985      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8986      ;;
8987
8988    osf3*)
8989      if test "$GCC" = yes; then
8990        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8991        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'
8992      else
8993        allow_undefined_flag=' -expect_unresolved \*'
8994        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'
8995      fi
8996      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997      hardcode_libdir_separator=:
8998      ;;
8999
9000    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9001      if test "$GCC" = yes; then
9002        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9003        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'
9004        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9005      else
9006        allow_undefined_flag=' -expect_unresolved \*'
9007        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'
9008        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9009        $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'
9010
9011        # Both c and cxx compiler support -rpath directly
9012        hardcode_libdir_flag_spec='-rpath $libdir'
9013      fi
9014      hardcode_libdir_separator=:
9015      ;;
9016
9017    solaris*)
9018      no_undefined_flag=' -z text'
9019      if test "$GCC" = yes; then
9020        wlarc='${wl}'
9021        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9023          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9024      else
9025        wlarc=''
9026        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9028        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9029      fi
9030      hardcode_libdir_flag_spec='-R$libdir'
9031      hardcode_shlibpath_var=no
9032      case $host_os in
9033      solaris2.[0-5] | solaris2.[0-5].*) ;;
9034      *)
9035        # The compiler driver will combine linker options so we
9036        # cannot just pass the convience library names through
9037        # without $wl, iff we do not link with $LD.
9038        # Luckily, gcc supports the same syntax we need for Sun Studio.
9039        # Supported since Solaris 2.6 (maybe 2.5.1?)
9040        case $wlarc in
9041        '')
9042          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9043        *)
9044          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' ;;
9045        esac ;;
9046      esac
9047      link_all_deplibs=yes
9048      ;;
9049
9050    sunos4*)
9051      if test "x$host_vendor" = xsequent; then
9052        # Use $CC to link under sequent, because it throws in some extra .o
9053        # files that make .init and .fini sections work.
9054        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9055      else
9056        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9057      fi
9058      hardcode_libdir_flag_spec='-L$libdir'
9059      hardcode_direct=yes
9060      hardcode_minus_L=yes
9061      hardcode_shlibpath_var=no
9062      ;;
9063
9064    sysv4)
9065      case $host_vendor in
9066        sni)
9067          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068          hardcode_direct=yes # is this really true???
9069        ;;
9070        siemens)
9071          ## LD is ld it makes a PLAMLIB
9072          ## CC just makes a GrossModule.
9073          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9074          reload_cmds='$CC -r -o $output$reload_objs'
9075          hardcode_direct=no
9076        ;;
9077        motorola)
9078          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9080        ;;
9081      esac
9082      runpath_var='LD_RUN_PATH'
9083      hardcode_shlibpath_var=no
9084      ;;
9085
9086    sysv4.3*)
9087      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088      hardcode_shlibpath_var=no
9089      export_dynamic_flag_spec='-Bexport'
9090      ;;
9091
9092    sysv4*MP*)
9093      if test -d /usr/nec; then
9094        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095        hardcode_shlibpath_var=no
9096        runpath_var=LD_RUN_PATH
9097        hardcode_runpath_var=yes
9098        ld_shlibs=yes
9099      fi
9100      ;;
9101
9102    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9103      no_undefined_flag='${wl}-z,text'
9104      archive_cmds_need_lc=no
9105      hardcode_shlibpath_var=no
9106      runpath_var='LD_RUN_PATH'
9107
9108      if test "$GCC" = yes; then
9109        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9111      else
9112        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114      fi
9115      ;;
9116
9117    sysv5* | sco3.2v5* | sco5v6*)
9118      # Note: We can NOT use -z defs as we might desire, because we do not
9119      # link with -lc, and that would cause any symbols used from libc to
9120      # always be unresolved, which means just about no library would
9121      # ever link correctly.  If we're not using GNU ld we use -z text
9122      # though, which does catch some bad symbols but isn't as heavy-handed
9123      # as -z defs.
9124      no_undefined_flag='${wl}-z,text'
9125      allow_undefined_flag='${wl}-z,nodefs'
9126      archive_cmds_need_lc=no
9127      hardcode_shlibpath_var=no
9128      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9129      hardcode_libdir_separator=':'
9130      link_all_deplibs=yes
9131      export_dynamic_flag_spec='${wl}-Bexport'
9132      runpath_var='LD_RUN_PATH'
9133
9134      if test "$GCC" = yes; then
9135        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9136        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137      else
9138        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9139        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9140      fi
9141      ;;
9142
9143    uts4*)
9144      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145      hardcode_libdir_flag_spec='-L$libdir'
9146      hardcode_shlibpath_var=no
9147      ;;
9148
9149    *)
9150      ld_shlibs=no
9151      ;;
9152    esac
9153  fi
9154
9155echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9156echo "${ECHO_T}$ld_shlibs" >&6
9157test "$ld_shlibs" = no && can_build_shared=no
9158
9159#
9160# Do we need to explicitly link libc?
9161#
9162case "x$archive_cmds_need_lc" in
9163x|xyes)
9164  # Assume -lc should be added
9165  archive_cmds_need_lc=yes
9166
9167  if test "$enable_shared" = yes && test "$GCC" = yes; then
9168    case $archive_cmds in
9169    *'~'*)
9170      # FIXME: we may have to deal with multi-command sequences.
9171      ;;
9172    '$CC '*)
9173      # Test whether the compiler implicitly links with -lc since on some
9174      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9175      # to ld, don't add -lc before -lgcc.
9176      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9177echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9178      $rm conftest*
9179      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9180
9181      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9182  (eval $ac_compile) 2>&5
9183  ac_status=$?
9184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185  (exit $ac_status); } 2>conftest.err; then
9186        soname=conftest
9187        lib=conftest
9188        libobjs=conftest.$ac_objext
9189        deplibs=
9190        wl=$lt_prog_compiler_wl
9191        pic_flag=$lt_prog_compiler_pic
9192        compiler_flags=-v
9193        linker_flags=-v
9194        verstring=
9195        output_objdir=.
9196        libname=conftest
9197        lt_save_allow_undefined_flag=$allow_undefined_flag
9198        allow_undefined_flag=
9199        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9200  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9201  ac_status=$?
9202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203  (exit $ac_status); }
9204        then
9205          archive_cmds_need_lc=no
9206        else
9207          archive_cmds_need_lc=yes
9208        fi
9209        allow_undefined_flag=$lt_save_allow_undefined_flag
9210      else
9211        cat conftest.err 1>&5
9212      fi
9213      $rm conftest*
9214      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9215echo "${ECHO_T}$archive_cmds_need_lc" >&6
9216      ;;
9217    esac
9218  fi
9219  ;;
9220esac
9221
9222echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9223echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9224library_names_spec=
9225libname_spec='lib$name'
9226soname_spec=
9227shrext_cmds=".so"
9228postinstall_cmds=
9229postuninstall_cmds=
9230finish_cmds=
9231finish_eval=
9232shlibpath_var=
9233shlibpath_overrides_runpath=unknown
9234version_type=none
9235dynamic_linker="$host_os ld.so"
9236sys_lib_dlsearch_path_spec="/lib /usr/lib"
9237if test "$GCC" = yes; then
9238  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9239  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9240    # if the path contains ";" then we assume it to be the separator
9241    # otherwise default to the standard path separator (i.e. ":") - it is
9242    # assumed that no part of a normal pathname contains ";" but that should
9243    # okay in the real world where ";" in dirpaths is itself problematic.
9244    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9245  else
9246    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9247  fi
9248else
9249  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9250fi
9251need_lib_prefix=unknown
9252hardcode_into_libs=no
9253
9254# when you set need_version to no, make sure it does not cause -set_version
9255# flags to be left without arguments
9256need_version=unknown
9257
9258case $host_os in
9259aix3*)
9260  version_type=linux
9261  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9262  shlibpath_var=LIBPATH
9263
9264  # AIX 3 has no versioning support, so we append a major version to the name.
9265  soname_spec='${libname}${release}${shared_ext}$major'
9266  ;;
9267
9268aix4* | aix5*)
9269  version_type=linux
9270  need_lib_prefix=no
9271  need_version=no
9272  hardcode_into_libs=yes
9273  if test "$host_cpu" = ia64; then
9274    # AIX 5 supports IA64
9275    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9276    shlibpath_var=LD_LIBRARY_PATH
9277  else
9278    # With GCC up to 2.95.x, collect2 would create an import file
9279    # for dependence libraries.  The import file would start with
9280    # the line `#! .'.  This would cause the generated library to
9281    # depend on `.', always an invalid library.  This was fixed in
9282    # development snapshots of GCC prior to 3.0.
9283    case $host_os in
9284      aix4 | aix4.[01] | aix4.[01].*)
9285      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9286           echo ' yes '
9287           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9288        :
9289      else
9290        can_build_shared=no
9291      fi
9292      ;;
9293    esac
9294    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9295    # soname into executable. Probably we can add versioning support to
9296    # collect2, so additional links can be useful in future.
9297    if test "$aix_use_runtimelinking" = yes; then
9298      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9299      # instead of lib<name>.a to let people know that these are not
9300      # typical AIX shared libraries.
9301      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9302    else
9303      # We preserve .a as extension for shared libraries through AIX4.2
9304      # and later when we are not doing run time linking.
9305      library_names_spec='${libname}${release}.a $libname.a'
9306      soname_spec='${libname}${release}${shared_ext}$major'
9307    fi
9308    shlibpath_var=LIBPATH
9309  fi
9310  ;;
9311
9312amigaos*)
9313  library_names_spec='$libname.ixlibrary $libname.a'
9314  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9315  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'
9316  ;;
9317
9318beos*)
9319  library_names_spec='${libname}${shared_ext}'
9320  dynamic_linker="$host_os ld.so"
9321  shlibpath_var=LIBRARY_PATH
9322  ;;
9323
9324bsdi[45]*)
9325  version_type=linux
9326  need_version=no
9327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328  soname_spec='${libname}${release}${shared_ext}$major'
9329  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9330  shlibpath_var=LD_LIBRARY_PATH
9331  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9332  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9333  # the default ld.so.conf also contains /usr/contrib/lib and
9334  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9335  # libtool to hard-code these into programs
9336  ;;
9337
9338cygwin* | mingw* | pw32*)
9339  version_type=windows
9340  shrext_cmds=".dll"
9341  need_version=no
9342  need_lib_prefix=no
9343
9344  case $GCC,$host_os in
9345  yes,cygwin* | yes,mingw* | yes,pw32*)
9346    library_names_spec='$libname.dll.a'
9347    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9348    postinstall_cmds='base_file=`basename \${file}`~
9349      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9350      dldir=$destdir/`dirname \$dlpath`~
9351      test -d \$dldir || mkdir -p \$dldir~
9352      $install_prog $dir/$dlname \$dldir/$dlname~
9353      chmod a+x \$dldir/$dlname'
9354    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9355      dlpath=$dir/\$dldll~
9356       $rm \$dlpath'
9357    shlibpath_overrides_runpath=yes
9358
9359    case $host_os in
9360    cygwin*)
9361      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9362      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9363      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9364      ;;
9365    mingw*)
9366      # MinGW DLLs use traditional 'lib' prefix
9367      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9369      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9370        # It is most probably a Windows format PATH printed by
9371        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9372        # path with ; separators, and with drive letters. We can handle the
9373        # drive letters (cygwin fileutils understands them), so leave them,
9374        # especially as we might pass files found there to a mingw objdump,
9375        # which wouldn't understand a cygwinified path. Ahh.
9376        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9377      else
9378        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9379      fi
9380      ;;
9381    pw32*)
9382      # pw32 DLLs use 'pw' prefix rather than 'lib'
9383      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9384      ;;
9385    esac
9386    ;;
9387
9388  *)
9389    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9390    ;;
9391  esac
9392  dynamic_linker='Win32 ld.exe'
9393  # FIXME: first we should search . and the directory the executable is in
9394  shlibpath_var=PATH
9395  ;;
9396
9397darwin* | rhapsody*)
9398  dynamic_linker="$host_os dyld"
9399  version_type=darwin
9400  need_lib_prefix=no
9401  need_version=no
9402  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9403  soname_spec='${libname}${release}${major}$shared_ext'
9404  shlibpath_overrides_runpath=yes
9405  shlibpath_var=DYLD_LIBRARY_PATH
9406  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9407  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9408  if test "$GCC" = yes; then
9409    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"`
9410  else
9411    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9412  fi
9413  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9414  ;;
9415
9416dgux*)
9417  version_type=linux
9418  need_lib_prefix=no
9419  need_version=no
9420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9421  soname_spec='${libname}${release}${shared_ext}$major'
9422  shlibpath_var=LD_LIBRARY_PATH
9423  ;;
9424
9425freebsd1*)
9426  dynamic_linker=no
9427  ;;
9428
9429kfreebsd*-gnu)
9430  version_type=linux
9431  need_lib_prefix=no
9432  need_version=no
9433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9434  soname_spec='${libname}${release}${shared_ext}$major'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=no
9437  hardcode_into_libs=yes
9438  dynamic_linker='GNU ld.so'
9439  ;;
9440
9441freebsd* | dragonfly*)
9442  # DragonFly does not have aout.  When/if they implement a new
9443  # versioning mechanism, adjust this.
9444  if test -x /usr/bin/objformat; then
9445    objformat=`/usr/bin/objformat`
9446  else
9447    case $host_os in
9448    freebsd[123]*) objformat=aout ;;
9449    *) objformat=elf ;;
9450    esac
9451  fi
9452  version_type=freebsd-$objformat
9453  case $version_type in
9454    freebsd-elf*)
9455      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9456      need_version=no
9457      need_lib_prefix=no
9458      ;;
9459    freebsd-*)
9460      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9461      need_version=yes
9462      ;;
9463  esac
9464  shlibpath_var=LD_LIBRARY_PATH
9465  case $host_os in
9466  freebsd2*)
9467    shlibpath_overrides_runpath=yes
9468    ;;
9469  freebsd3.[01]* | freebsdelf3.[01]*)
9470    shlibpath_overrides_runpath=yes
9471    hardcode_into_libs=yes
9472    ;;
9473  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9474  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9475    shlibpath_overrides_runpath=no
9476    hardcode_into_libs=yes
9477    ;;
9478  freebsd*) # from 4.6 on
9479    shlibpath_overrides_runpath=yes
9480    hardcode_into_libs=yes
9481    ;;
9482  esac
9483  ;;
9484
9485gnu*)
9486  version_type=linux
9487  need_lib_prefix=no
9488  need_version=no
9489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9490  soname_spec='${libname}${release}${shared_ext}$major'
9491  shlibpath_var=LD_LIBRARY_PATH
9492  hardcode_into_libs=yes
9493  ;;
9494
9495hpux9* | hpux10* | hpux11*)
9496  # Give a soname corresponding to the major version so that dld.sl refuses to
9497  # link against other versions.
9498  version_type=sunos
9499  need_lib_prefix=no
9500  need_version=no
9501  case $host_cpu in
9502  ia64*)
9503    shrext_cmds='.so'
9504    hardcode_into_libs=yes
9505    dynamic_linker="$host_os dld.so"
9506    shlibpath_var=LD_LIBRARY_PATH
9507    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509    soname_spec='${libname}${release}${shared_ext}$major'
9510    if test "X$HPUX_IA64_MODE" = X32; then
9511      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9512    else
9513      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9514    fi
9515    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9516    ;;
9517   hppa*64*)
9518     shrext_cmds='.sl'
9519     hardcode_into_libs=yes
9520     dynamic_linker="$host_os dld.sl"
9521     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9522     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524     soname_spec='${libname}${release}${shared_ext}$major'
9525     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9526     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9527     ;;
9528   *)
9529    shrext_cmds='.sl'
9530    dynamic_linker="$host_os dld.sl"
9531    shlibpath_var=SHLIB_PATH
9532    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9533    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534    soname_spec='${libname}${release}${shared_ext}$major'
9535    ;;
9536  esac
9537  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9538  postinstall_cmds='chmod 555 $lib'
9539  ;;
9540
9541interix3*)
9542  version_type=linux
9543  need_lib_prefix=no
9544  need_version=no
9545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9546  soname_spec='${libname}${release}${shared_ext}$major'
9547  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9548  shlibpath_var=LD_LIBRARY_PATH
9549  shlibpath_overrides_runpath=no
9550  hardcode_into_libs=yes
9551  ;;
9552
9553irix5* | irix6* | nonstopux*)
9554  case $host_os in
9555    nonstopux*) version_type=nonstopux ;;
9556    *)
9557        if test "$lt_cv_prog_gnu_ld" = yes; then
9558                version_type=linux
9559        else
9560                version_type=irix
9561        fi ;;
9562  esac
9563  need_lib_prefix=no
9564  need_version=no
9565  soname_spec='${libname}${release}${shared_ext}$major'
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9567  case $host_os in
9568  irix5* | nonstopux*)
9569    libsuff= shlibsuff=
9570    ;;
9571  *)
9572    case $LD in # libtool.m4 will add one of these switches to LD
9573    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9574      libsuff= shlibsuff= libmagic=32-bit;;
9575    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9576      libsuff=32 shlibsuff=N32 libmagic=N32;;
9577    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9578      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9579    *) libsuff= shlibsuff= libmagic=never-match;;
9580    esac
9581    ;;
9582  esac
9583  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9584  shlibpath_overrides_runpath=no
9585  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9586  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9587  hardcode_into_libs=yes
9588  ;;
9589
9590# No shared lib support for Linux oldld, aout, or coff.
9591linux*oldld* | linux*aout* | linux*coff*)
9592  dynamic_linker=no
9593  ;;
9594
9595# This must be Linux ELF.
9596linux*)
9597  version_type=linux
9598  need_lib_prefix=no
9599  need_version=no
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9603  shlibpath_var=LD_LIBRARY_PATH
9604  shlibpath_overrides_runpath=no
9605  # This implies no fast_install, which is unacceptable.
9606  # Some rework will be needed to allow for fast_install
9607  # before this can be enabled.
9608  hardcode_into_libs=yes
9609
9610  # Append ld.so.conf contents to the search path
9611  if test -f /etc/ld.so.conf; then
9612    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' ' '`
9613    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9614  fi
9615
9616  # We used to test for /lib/ld.so.1 and disable shared libraries on
9617  # powerpc, because MkLinux only supported shared libraries with the
9618  # GNU dynamic linker.  Since this was broken with cross compilers,
9619  # most powerpc-linux boxes support dynamic linking these days and
9620  # people can always --disable-shared, the test was removed, and we
9621  # assume the GNU/Linux dynamic linker is in use.
9622  dynamic_linker='GNU/Linux ld.so'
9623  ;;
9624
9625knetbsd*-gnu)
9626  version_type=linux
9627  need_lib_prefix=no
9628  need_version=no
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  shlibpath_overrides_runpath=no
9633  hardcode_into_libs=yes
9634  dynamic_linker='GNU ld.so'
9635  ;;
9636
9637netbsd*)
9638  version_type=sunos
9639  need_lib_prefix=no
9640  need_version=no
9641  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9642    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9644    dynamic_linker='NetBSD (a.out) ld.so'
9645  else
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='NetBSD ld.elf_so'
9649  fi
9650  shlibpath_var=LD_LIBRARY_PATH
9651  shlibpath_overrides_runpath=yes
9652  hardcode_into_libs=yes
9653  ;;
9654
9655newsos6)
9656  version_type=linux
9657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658  shlibpath_var=LD_LIBRARY_PATH
9659  shlibpath_overrides_runpath=yes
9660  ;;
9661
9662nto-qnx*)
9663  version_type=linux
9664  need_lib_prefix=no
9665  need_version=no
9666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667  soname_spec='${libname}${release}${shared_ext}$major'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  shlibpath_overrides_runpath=yes
9670  ;;
9671
9672openbsd*)
9673  version_type=sunos
9674  sys_lib_dlsearch_path_spec="/usr/lib"
9675  need_lib_prefix=no
9676  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9677  case $host_os in
9678    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9679    *)                         need_version=no  ;;
9680  esac
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683  shlibpath_var=LD_LIBRARY_PATH
9684  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9685    case $host_os in
9686      openbsd2.[89] | openbsd2.[89].*)
9687        shlibpath_overrides_runpath=no
9688        ;;
9689      *)
9690        shlibpath_overrides_runpath=yes
9691        ;;
9692      esac
9693  else
9694    shlibpath_overrides_runpath=yes
9695  fi
9696  ;;
9697
9698os2*)
9699  libname_spec='$name'
9700  shrext_cmds=".dll"
9701  need_lib_prefix=no
9702  library_names_spec='$libname${shared_ext} $libname.a'
9703  dynamic_linker='OS/2 ld.exe'
9704  shlibpath_var=LIBPATH
9705  ;;
9706
9707osf3* | osf4* | osf5*)
9708  version_type=osf
9709  need_lib_prefix=no
9710  need_version=no
9711  soname_spec='${libname}${release}${shared_ext}$major'
9712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713  shlibpath_var=LD_LIBRARY_PATH
9714  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9715  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9716  ;;
9717
9718solaris*)
9719  version_type=linux
9720  need_lib_prefix=no
9721  need_version=no
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723  soname_spec='${libname}${release}${shared_ext}$major'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  shlibpath_overrides_runpath=yes
9726  hardcode_into_libs=yes
9727  # ldd complains unless libraries are executable
9728  postinstall_cmds='chmod +x $lib'
9729  ;;
9730
9731sunos4*)
9732  version_type=sunos
9733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735  shlibpath_var=LD_LIBRARY_PATH
9736  shlibpath_overrides_runpath=yes
9737  if test "$with_gnu_ld" = yes; then
9738    need_lib_prefix=no
9739  fi
9740  need_version=yes
9741  ;;
9742
9743sysv4 | sysv4.3*)
9744  version_type=linux
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746  soname_spec='${libname}${release}${shared_ext}$major'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  case $host_vendor in
9749    sni)
9750      shlibpath_overrides_runpath=no
9751      need_lib_prefix=no
9752      export_dynamic_flag_spec='${wl}-Blargedynsym'
9753      runpath_var=LD_RUN_PATH
9754      ;;
9755    siemens)
9756      need_lib_prefix=no
9757      ;;
9758    motorola)
9759      need_lib_prefix=no
9760      need_version=no
9761      shlibpath_overrides_runpath=no
9762      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9763      ;;
9764  esac
9765  ;;
9766
9767sysv4*MP*)
9768  if test -d /usr/nec ;then
9769    version_type=linux
9770    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9771    soname_spec='$libname${shared_ext}.$major'
9772    shlibpath_var=LD_LIBRARY_PATH
9773  fi
9774  ;;
9775
9776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9777  version_type=freebsd-elf
9778  need_lib_prefix=no
9779  need_version=no
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9781  soname_spec='${libname}${release}${shared_ext}$major'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  hardcode_into_libs=yes
9784  if test "$with_gnu_ld" = yes; then
9785    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9786    shlibpath_overrides_runpath=no
9787  else
9788    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9789    shlibpath_overrides_runpath=yes
9790    case $host_os in
9791      sco3.2v5*)
9792        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9793        ;;
9794    esac
9795  fi
9796  sys_lib_dlsearch_path_spec='/usr/lib'
9797  ;;
9798
9799uts4*)
9800  version_type=linux
9801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  shlibpath_var=LD_LIBRARY_PATH
9804  ;;
9805
9806*)
9807  dynamic_linker=no
9808  ;;
9809esac
9810echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9811echo "${ECHO_T}$dynamic_linker" >&6
9812test "$dynamic_linker" = no && can_build_shared=no
9813
9814variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9815if test "$GCC" = yes; then
9816  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9817fi
9818
9819echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9820echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9821hardcode_action=
9822if test -n "$hardcode_libdir_flag_spec" || \
9823   test -n "$runpath_var" || \
9824   test "X$hardcode_automatic" = "Xyes" ; then
9825
9826  # We can hardcode non-existant directories.
9827  if test "$hardcode_direct" != no &&
9828     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9829     # have to relink, otherwise we might link with an installed library
9830     # when we should be linking with a yet-to-be-installed one
9831     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9832     test "$hardcode_minus_L" != no; then
9833    # Linking always hardcodes the temporary library directory.
9834    hardcode_action=relink
9835  else
9836    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9837    hardcode_action=immediate
9838  fi
9839else
9840  # We cannot hardcode anything, or else we can only hardcode existing
9841  # directories.
9842  hardcode_action=unsupported
9843fi
9844echo "$as_me:$LINENO: result: $hardcode_action" >&5
9845echo "${ECHO_T}$hardcode_action" >&6
9846
9847if test "$hardcode_action" = relink; then
9848  # Fast installation is not supported
9849  enable_fast_install=no
9850elif test "$shlibpath_overrides_runpath" = yes ||
9851     test "$enable_shared" = no; then
9852  # Fast installation is not necessary
9853  enable_fast_install=needless
9854fi
9855
9856striplib=
9857old_striplib=
9858echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9859echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9860if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9861  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9862  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9863  echo "$as_me:$LINENO: result: yes" >&5
9864echo "${ECHO_T}yes" >&6
9865else
9866# FIXME - insert some real tests, host_os isn't really good enough
9867  case $host_os in
9868   darwin*)
9869       if test -n "$STRIP" ; then
9870         striplib="$STRIP -x"
9871         echo "$as_me:$LINENO: result: yes" >&5
9872echo "${ECHO_T}yes" >&6
9873       else
9874  echo "$as_me:$LINENO: result: no" >&5
9875echo "${ECHO_T}no" >&6
9876fi
9877       ;;
9878   *)
9879  echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881    ;;
9882  esac
9883fi
9884
9885if test "x$enable_dlopen" != xyes; then
9886  enable_dlopen=unknown
9887  enable_dlopen_self=unknown
9888  enable_dlopen_self_static=unknown
9889else
9890  lt_cv_dlopen=no
9891  lt_cv_dlopen_libs=
9892
9893  case $host_os in
9894  beos*)
9895    lt_cv_dlopen="load_add_on"
9896    lt_cv_dlopen_libs=
9897    lt_cv_dlopen_self=yes
9898    ;;
9899
9900  mingw* | pw32*)
9901    lt_cv_dlopen="LoadLibrary"
9902    lt_cv_dlopen_libs=
9903   ;;
9904
9905  cygwin*)
9906    lt_cv_dlopen="dlopen"
9907    lt_cv_dlopen_libs=
9908   ;;
9909
9910  darwin*)
9911  # if libdl is installed we need to link against it
9912    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9913echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9914if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9915  echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917  ac_check_lib_save_LIBS=$LIBS
9918LIBS="-ldl  $LIBS"
9919cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h.  */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h.  */
9925
9926/* Override any gcc2 internal prototype to avoid an error.  */
9927#ifdef __cplusplus
9928extern "C"
9929#endif
9930/* We use char because int might match the return type of a gcc2
9931   builtin and then its argument prototype would still apply.  */
9932char dlopen ();
9933int
9934main ()
9935{
9936dlopen ();
9937  ;
9938  return 0;
9939}
9940_ACEOF
9941rm -f conftest.$ac_objext conftest$ac_exeext
9942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943  (eval $ac_link) 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } &&
9950         { ac_try='test -z "$ac_c_werror_flag"
9951                         || test ! -s conftest.err'
9952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953  (eval $ac_try) 2>&5
9954  ac_status=$?
9955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956  (exit $ac_status); }; } &&
9957         { ac_try='test -s conftest$ac_exeext'
9958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959  (eval $ac_try) 2>&5
9960  ac_status=$?
9961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962  (exit $ac_status); }; }; then
9963  ac_cv_lib_dl_dlopen=yes
9964else
9965  echo "$as_me: failed program was:" >&5
9966sed 's/^/| /' conftest.$ac_ext >&5
9967
9968ac_cv_lib_dl_dlopen=no
9969fi
9970rm -f conftest.err conftest.$ac_objext \
9971      conftest$ac_exeext conftest.$ac_ext
9972LIBS=$ac_check_lib_save_LIBS
9973fi
9974echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9975echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9976if test $ac_cv_lib_dl_dlopen = yes; then
9977  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9978else
9979
9980    lt_cv_dlopen="dyld"
9981    lt_cv_dlopen_libs=
9982    lt_cv_dlopen_self=yes
9983
9984fi
9985
9986   ;;
9987
9988  *)
9989    echo "$as_me:$LINENO: checking for shl_load" >&5
9990echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9991if test "${ac_cv_func_shl_load+set}" = set; then
9992  echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994  cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h.  */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h.  */
10000/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10002#define shl_load innocuous_shl_load
10003
10004/* System header to define __stub macros and hopefully few prototypes,
10005    which can conflict with char shl_load (); below.
10006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007    <limits.h> exists even on freestanding compilers.  */
10008
10009#ifdef __STDC__
10010# include <limits.h>
10011#else
10012# include <assert.h>
10013#endif
10014
10015#undef shl_load
10016
10017/* Override any gcc2 internal prototype to avoid an error.  */
10018#ifdef __cplusplus
10019extern "C"
10020{
10021#endif
10022/* We use char because int might match the return type of a gcc2
10023   builtin and then its argument prototype would still apply.  */
10024char shl_load ();
10025/* The GNU C library defines this for functions which it implements
10026    to always fail with ENOSYS.  Some functions are actually named
10027    something starting with __ and the normal name is an alias.  */
10028#if defined (__stub_shl_load) || defined (__stub___shl_load)
10029choke me
10030#else
10031char (*f) () = shl_load;
10032#endif
10033#ifdef __cplusplus
10034}
10035#endif
10036
10037int
10038main ()
10039{
10040return f != shl_load;
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047  (eval $ac_link) 2>conftest.er1
10048  ac_status=$?
10049  grep -v '^ *+' conftest.er1 >conftest.err
10050  rm -f conftest.er1
10051  cat conftest.err >&5
10052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053  (exit $ac_status); } &&
10054         { ac_try='test -z "$ac_c_werror_flag"
10055                         || test ! -s conftest.err'
10056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057  (eval $ac_try) 2>&5
10058  ac_status=$?
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); }; } &&
10061         { ac_try='test -s conftest$ac_exeext'
10062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063  (eval $ac_try) 2>&5
10064  ac_status=$?
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); }; }; then
10067  ac_cv_func_shl_load=yes
10068else
10069  echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072ac_cv_func_shl_load=no
10073fi
10074rm -f conftest.err conftest.$ac_objext \
10075      conftest$ac_exeext conftest.$ac_ext
10076fi
10077echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10078echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10079if test $ac_cv_func_shl_load = yes; then
10080  lt_cv_dlopen="shl_load"
10081else
10082  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10083echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10084if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10085  echo $ECHO_N "(cached) $ECHO_C" >&6
10086else
10087  ac_check_lib_save_LIBS=$LIBS
10088LIBS="-ldld  $LIBS"
10089cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h.  */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h.  */
10095
10096/* Override any gcc2 internal prototype to avoid an error.  */
10097#ifdef __cplusplus
10098extern "C"
10099#endif
10100/* We use char because int might match the return type of a gcc2
10101   builtin and then its argument prototype would still apply.  */
10102char shl_load ();
10103int
10104main ()
10105{
10106shl_load ();
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111rm -f conftest.$ac_objext conftest$ac_exeext
10112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113  (eval $ac_link) 2>conftest.er1
10114  ac_status=$?
10115  grep -v '^ *+' conftest.er1 >conftest.err
10116  rm -f conftest.er1
10117  cat conftest.err >&5
10118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); } &&
10120         { ac_try='test -z "$ac_c_werror_flag"
10121                         || test ! -s conftest.err'
10122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123  (eval $ac_try) 2>&5
10124  ac_status=$?
10125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126  (exit $ac_status); }; } &&
10127         { ac_try='test -s conftest$ac_exeext'
10128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129  (eval $ac_try) 2>&5
10130  ac_status=$?
10131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132  (exit $ac_status); }; }; then
10133  ac_cv_lib_dld_shl_load=yes
10134else
10135  echo "$as_me: failed program was:" >&5
10136sed 's/^/| /' conftest.$ac_ext >&5
10137
10138ac_cv_lib_dld_shl_load=no
10139fi
10140rm -f conftest.err conftest.$ac_objext \
10141      conftest$ac_exeext conftest.$ac_ext
10142LIBS=$ac_check_lib_save_LIBS
10143fi
10144echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10145echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10146if test $ac_cv_lib_dld_shl_load = yes; then
10147  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10148else
10149  echo "$as_me:$LINENO: checking for dlopen" >&5
10150echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10151if test "${ac_cv_func_dlopen+set}" = set; then
10152  echo $ECHO_N "(cached) $ECHO_C" >&6
10153else
10154  cat >conftest.$ac_ext <<_ACEOF
10155/* confdefs.h.  */
10156_ACEOF
10157cat confdefs.h >>conftest.$ac_ext
10158cat >>conftest.$ac_ext <<_ACEOF
10159/* end confdefs.h.  */
10160/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10161   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10162#define dlopen innocuous_dlopen
10163
10164/* System header to define __stub macros and hopefully few prototypes,
10165    which can conflict with char dlopen (); below.
10166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10167    <limits.h> exists even on freestanding compilers.  */
10168
10169#ifdef __STDC__
10170# include <limits.h>
10171#else
10172# include <assert.h>
10173#endif
10174
10175#undef dlopen
10176
10177/* Override any gcc2 internal prototype to avoid an error.  */
10178#ifdef __cplusplus
10179extern "C"
10180{
10181#endif
10182/* We use char because int might match the return type of a gcc2
10183   builtin and then its argument prototype would still apply.  */
10184char dlopen ();
10185/* The GNU C library defines this for functions which it implements
10186    to always fail with ENOSYS.  Some functions are actually named
10187    something starting with __ and the normal name is an alias.  */
10188#if defined (__stub_dlopen) || defined (__stub___dlopen)
10189choke me
10190#else
10191char (*f) () = dlopen;
10192#endif
10193#ifdef __cplusplus
10194}
10195#endif
10196
10197int
10198main ()
10199{
10200return f != dlopen;
10201  ;
10202  return 0;
10203}
10204_ACEOF
10205rm -f conftest.$ac_objext conftest$ac_exeext
10206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10207  (eval $ac_link) 2>conftest.er1
10208  ac_status=$?
10209  grep -v '^ *+' conftest.er1 >conftest.err
10210  rm -f conftest.er1
10211  cat conftest.err >&5
10212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); } &&
10214         { ac_try='test -z "$ac_c_werror_flag"
10215                         || test ! -s conftest.err'
10216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217  (eval $ac_try) 2>&5
10218  ac_status=$?
10219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220  (exit $ac_status); }; } &&
10221         { ac_try='test -s conftest$ac_exeext'
10222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223  (eval $ac_try) 2>&5
10224  ac_status=$?
10225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226  (exit $ac_status); }; }; then
10227  ac_cv_func_dlopen=yes
10228else
10229  echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232ac_cv_func_dlopen=no
10233fi
10234rm -f conftest.err conftest.$ac_objext \
10235      conftest$ac_exeext conftest.$ac_ext
10236fi
10237echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10238echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10239if test $ac_cv_func_dlopen = yes; then
10240  lt_cv_dlopen="dlopen"
10241else
10242  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10243echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10244if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10245  echo $ECHO_N "(cached) $ECHO_C" >&6
10246else
10247  ac_check_lib_save_LIBS=$LIBS
10248LIBS="-ldl  $LIBS"
10249cat >conftest.$ac_ext <<_ACEOF
10250/* confdefs.h.  */
10251_ACEOF
10252cat confdefs.h >>conftest.$ac_ext
10253cat >>conftest.$ac_ext <<_ACEOF
10254/* end confdefs.h.  */
10255
10256/* Override any gcc2 internal prototype to avoid an error.  */
10257#ifdef __cplusplus
10258extern "C"
10259#endif
10260/* We use char because int might match the return type of a gcc2
10261   builtin and then its argument prototype would still apply.  */
10262char dlopen ();
10263int
10264main ()
10265{
10266dlopen ();
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
10272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273  (eval $ac_link) 2>conftest.er1
10274  ac_status=$?
10275  grep -v '^ *+' conftest.er1 >conftest.err
10276  rm -f conftest.er1
10277  cat conftest.err >&5
10278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279  (exit $ac_status); } &&
10280         { ac_try='test -z "$ac_c_werror_flag"
10281                         || test ! -s conftest.err'
10282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283  (eval $ac_try) 2>&5
10284  ac_status=$?
10285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286  (exit $ac_status); }; } &&
10287         { ac_try='test -s conftest$ac_exeext'
10288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289  (eval $ac_try) 2>&5
10290  ac_status=$?
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); }; }; then
10293  ac_cv_lib_dl_dlopen=yes
10294else
10295  echo "$as_me: failed program was:" >&5
10296sed 's/^/| /' conftest.$ac_ext >&5
10297
10298ac_cv_lib_dl_dlopen=no
10299fi
10300rm -f conftest.err conftest.$ac_objext \
10301      conftest$ac_exeext conftest.$ac_ext
10302LIBS=$ac_check_lib_save_LIBS
10303fi
10304echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10305echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10306if test $ac_cv_lib_dl_dlopen = yes; then
10307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10308else
10309  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10310echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10311if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10312  echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314  ac_check_lib_save_LIBS=$LIBS
10315LIBS="-lsvld  $LIBS"
10316cat >conftest.$ac_ext <<_ACEOF
10317/* confdefs.h.  */
10318_ACEOF
10319cat confdefs.h >>conftest.$ac_ext
10320cat >>conftest.$ac_ext <<_ACEOF
10321/* end confdefs.h.  */
10322
10323/* Override any gcc2 internal prototype to avoid an error.  */
10324#ifdef __cplusplus
10325extern "C"
10326#endif
10327/* We use char because int might match the return type of a gcc2
10328   builtin and then its argument prototype would still apply.  */
10329char dlopen ();
10330int
10331main ()
10332{
10333dlopen ();
10334  ;
10335  return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
10339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340  (eval $ac_link) 2>conftest.er1
10341  ac_status=$?
10342  grep -v '^ *+' conftest.er1 >conftest.err
10343  rm -f conftest.er1
10344  cat conftest.err >&5
10345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346  (exit $ac_status); } &&
10347         { ac_try='test -z "$ac_c_werror_flag"
10348                         || test ! -s conftest.err'
10349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350  (eval $ac_try) 2>&5
10351  ac_status=$?
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); }; } &&
10354         { ac_try='test -s conftest$ac_exeext'
10355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356  (eval $ac_try) 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; }; then
10360  ac_cv_lib_svld_dlopen=yes
10361else
10362  echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365ac_cv_lib_svld_dlopen=no
10366fi
10367rm -f conftest.err conftest.$ac_objext \
10368      conftest$ac_exeext conftest.$ac_ext
10369LIBS=$ac_check_lib_save_LIBS
10370fi
10371echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10372echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10373if test $ac_cv_lib_svld_dlopen = yes; then
10374  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10375else
10376  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10377echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10378if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10379  echo $ECHO_N "(cached) $ECHO_C" >&6
10380else
10381  ac_check_lib_save_LIBS=$LIBS
10382LIBS="-ldld  $LIBS"
10383cat >conftest.$ac_ext <<_ACEOF
10384/* confdefs.h.  */
10385_ACEOF
10386cat confdefs.h >>conftest.$ac_ext
10387cat >>conftest.$ac_ext <<_ACEOF
10388/* end confdefs.h.  */
10389
10390/* Override any gcc2 internal prototype to avoid an error.  */
10391#ifdef __cplusplus
10392extern "C"
10393#endif
10394/* We use char because int might match the return type of a gcc2
10395   builtin and then its argument prototype would still apply.  */
10396char dld_link ();
10397int
10398main ()
10399{
10400dld_link ();
10401  ;
10402  return 0;
10403}
10404_ACEOF
10405rm -f conftest.$ac_objext conftest$ac_exeext
10406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407  (eval $ac_link) 2>conftest.er1
10408  ac_status=$?
10409  grep -v '^ *+' conftest.er1 >conftest.err
10410  rm -f conftest.er1
10411  cat conftest.err >&5
10412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); } &&
10414         { ac_try='test -z "$ac_c_werror_flag"
10415                         || test ! -s conftest.err'
10416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417  (eval $ac_try) 2>&5
10418  ac_status=$?
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); }; } &&
10421         { ac_try='test -s conftest$ac_exeext'
10422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423  (eval $ac_try) 2>&5
10424  ac_status=$?
10425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426  (exit $ac_status); }; }; then
10427  ac_cv_lib_dld_dld_link=yes
10428else
10429  echo "$as_me: failed program was:" >&5
10430sed 's/^/| /' conftest.$ac_ext >&5
10431
10432ac_cv_lib_dld_dld_link=no
10433fi
10434rm -f conftest.err conftest.$ac_objext \
10435      conftest$ac_exeext conftest.$ac_ext
10436LIBS=$ac_check_lib_save_LIBS
10437fi
10438echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10439echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10440if test $ac_cv_lib_dld_dld_link = yes; then
10441  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10442fi
10443
10444
10445fi
10446
10447
10448fi
10449
10450
10451fi
10452
10453
10454fi
10455
10456
10457fi
10458
10459    ;;
10460  esac
10461
10462  if test "x$lt_cv_dlopen" != xno; then
10463    enable_dlopen=yes
10464  else
10465    enable_dlopen=no
10466  fi
10467
10468  case $lt_cv_dlopen in
10469  dlopen)
10470    save_CPPFLAGS="$CPPFLAGS"
10471    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10472
10473    save_LDFLAGS="$LDFLAGS"
10474    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10475
10476    save_LIBS="$LIBS"
10477    LIBS="$lt_cv_dlopen_libs $LIBS"
10478
10479    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10480echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10481if test "${lt_cv_dlopen_self+set}" = set; then
10482  echo $ECHO_N "(cached) $ECHO_C" >&6
10483else
10484          if test "$cross_compiling" = yes; then :
10485  lt_cv_dlopen_self=cross
10486else
10487  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488  lt_status=$lt_dlunknown
10489  cat > conftest.$ac_ext <<EOF
10490#line 10490 "configure"
10491#include "confdefs.h"
10492
10493#if HAVE_DLFCN_H
10494#include <dlfcn.h>
10495#endif
10496
10497#include <stdio.h>
10498
10499#ifdef RTLD_GLOBAL
10500#  define LT_DLGLOBAL           RTLD_GLOBAL
10501#else
10502#  ifdef DL_GLOBAL
10503#    define LT_DLGLOBAL         DL_GLOBAL
10504#  else
10505#    define LT_DLGLOBAL         0
10506#  endif
10507#endif
10508
10509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510   find out it does not work in some platform. */
10511#ifndef LT_DLLAZY_OR_NOW
10512#  ifdef RTLD_LAZY
10513#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10514#  else
10515#    ifdef DL_LAZY
10516#      define LT_DLLAZY_OR_NOW          DL_LAZY
10517#    else
10518#      ifdef RTLD_NOW
10519#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10520#      else
10521#        ifdef DL_NOW
10522#          define LT_DLLAZY_OR_NOW      DL_NOW
10523#        else
10524#          define LT_DLLAZY_OR_NOW      0
10525#        endif
10526#      endif
10527#    endif
10528#  endif
10529#endif
10530
10531#ifdef __cplusplus
10532extern "C" void exit (int);
10533#endif
10534
10535void fnord() { int i=42;}
10536int main ()
10537{
10538  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539  int status = $lt_dlunknown;
10540
10541  if (self)
10542    {
10543      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10544      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545      /* dlclose (self); */
10546    }
10547  else
10548    puts (dlerror ());
10549
10550    exit (status);
10551}
10552EOF
10553  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554  (eval $ac_link) 2>&5
10555  ac_status=$?
10556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10558    (./conftest; exit; ) >&5 2>/dev/null
10559    lt_status=$?
10560    case x$lt_status in
10561      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10562      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10563      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10564    esac
10565  else :
10566    # compilation failed
10567    lt_cv_dlopen_self=no
10568  fi
10569fi
10570rm -fr conftest*
10571
10572
10573fi
10574echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10575echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10576
10577    if test "x$lt_cv_dlopen_self" = xyes; then
10578      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10579      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10580echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10581if test "${lt_cv_dlopen_self_static+set}" = set; then
10582  echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584          if test "$cross_compiling" = yes; then :
10585  lt_cv_dlopen_self_static=cross
10586else
10587  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10588  lt_status=$lt_dlunknown
10589  cat > conftest.$ac_ext <<EOF
10590#line 10590 "configure"
10591#include "confdefs.h"
10592
10593#if HAVE_DLFCN_H
10594#include <dlfcn.h>
10595#endif
10596
10597#include <stdio.h>
10598
10599#ifdef RTLD_GLOBAL
10600#  define LT_DLGLOBAL           RTLD_GLOBAL
10601#else
10602#  ifdef DL_GLOBAL
10603#    define LT_DLGLOBAL         DL_GLOBAL
10604#  else
10605#    define LT_DLGLOBAL         0
10606#  endif
10607#endif
10608
10609/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10610   find out it does not work in some platform. */
10611#ifndef LT_DLLAZY_OR_NOW
10612#  ifdef RTLD_LAZY
10613#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10614#  else
10615#    ifdef DL_LAZY
10616#      define LT_DLLAZY_OR_NOW          DL_LAZY
10617#    else
10618#      ifdef RTLD_NOW
10619#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10620#      else
10621#        ifdef DL_NOW
10622#          define LT_DLLAZY_OR_NOW      DL_NOW
10623#        else
10624#          define LT_DLLAZY_OR_NOW      0
10625#        endif
10626#      endif
10627#    endif
10628#  endif
10629#endif
10630
10631#ifdef __cplusplus
10632extern "C" void exit (int);
10633#endif
10634
10635void fnord() { int i=42;}
10636int main ()
10637{
10638  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10639  int status = $lt_dlunknown;
10640
10641  if (self)
10642    {
10643      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10644      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10645      /* dlclose (self); */
10646    }
10647  else
10648    puts (dlerror ());
10649
10650    exit (status);
10651}
10652EOF
10653  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654  (eval $ac_link) 2>&5
10655  ac_status=$?
10656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10658    (./conftest; exit; ) >&5 2>/dev/null
10659    lt_status=$?
10660    case x$lt_status in
10661      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10662      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10663      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10664    esac
10665  else :
10666    # compilation failed
10667    lt_cv_dlopen_self_static=no
10668  fi
10669fi
10670rm -fr conftest*
10671
10672
10673fi
10674echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10675echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10676    fi
10677
10678    CPPFLAGS="$save_CPPFLAGS"
10679    LDFLAGS="$save_LDFLAGS"
10680    LIBS="$save_LIBS"
10681    ;;
10682  esac
10683
10684  case $lt_cv_dlopen_self in
10685  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10686  *) enable_dlopen_self=unknown ;;
10687  esac
10688
10689  case $lt_cv_dlopen_self_static in
10690  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10691  *) enable_dlopen_self_static=unknown ;;
10692  esac
10693fi
10694
10695
10696# Report which library types will actually be built
10697echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10698echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10699echo "$as_me:$LINENO: result: $can_build_shared" >&5
10700echo "${ECHO_T}$can_build_shared" >&6
10701
10702echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10703echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10704test "$can_build_shared" = "no" && enable_shared=no
10705
10706# On AIX, shared libraries and static libraries use the same namespace, and
10707# are all built from PIC.
10708case $host_os in
10709aix3*)
10710  test "$enable_shared" = yes && enable_static=no
10711  if test -n "$RANLIB"; then
10712    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10713    postinstall_cmds='$RANLIB $lib'
10714  fi
10715  ;;
10716
10717aix4* | aix5*)
10718  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10719    test "$enable_shared" = yes && enable_static=no
10720  fi
10721    ;;
10722esac
10723echo "$as_me:$LINENO: result: $enable_shared" >&5
10724echo "${ECHO_T}$enable_shared" >&6
10725
10726echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10727echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10728# Make sure either enable_shared or enable_static is yes.
10729test "$enable_shared" = yes || enable_static=yes
10730echo "$as_me:$LINENO: result: $enable_static" >&5
10731echo "${ECHO_T}$enable_static" >&6
10732
10733# The else clause should only fire when bootstrapping the
10734# libtool distribution, otherwise you forgot to ship ltmain.sh
10735# with your package, and you will get complaints that there are
10736# no rules to generate ltmain.sh.
10737if test -f "$ltmain"; then
10738  # See if we are running on zsh, and set the options which allow our commands through
10739  # without removal of \ escapes.
10740  if test -n "${ZSH_VERSION+set}" ; then
10741    setopt NO_GLOB_SUBST
10742  fi
10743  # Now quote all the things that may contain metacharacters while being
10744  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10745  # variables and quote the copies for generation of the libtool script.
10746  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10747    SED SHELL STRIP \
10748    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10749    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10750    deplibs_check_method reload_flag reload_cmds need_locks \
10751    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10752    lt_cv_sys_global_symbol_to_c_name_address \
10753    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10754    old_postinstall_cmds old_postuninstall_cmds \
10755    compiler \
10756    CC \
10757    LD \
10758    lt_prog_compiler_wl \
10759    lt_prog_compiler_pic \
10760    lt_prog_compiler_static \
10761    lt_prog_compiler_no_builtin_flag \
10762    export_dynamic_flag_spec \
10763    thread_safe_flag_spec \
10764    whole_archive_flag_spec \
10765    enable_shared_with_static_runtimes \
10766    old_archive_cmds \
10767    old_archive_from_new_cmds \
10768    predep_objects \
10769    postdep_objects \
10770    predeps \
10771    postdeps \
10772    compiler_lib_search_path \
10773    archive_cmds \
10774    archive_expsym_cmds \
10775    postinstall_cmds \
10776    postuninstall_cmds \
10777    old_archive_from_expsyms_cmds \
10778    allow_undefined_flag \
10779    no_undefined_flag \
10780    export_symbols_cmds \
10781    hardcode_libdir_flag_spec \
10782    hardcode_libdir_flag_spec_ld \
10783    hardcode_libdir_separator \
10784    hardcode_automatic \
10785    module_cmds \
10786    module_expsym_cmds \
10787    lt_cv_prog_compiler_c_o \