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

Last change on this file since 1142 was 1142, checked in by stefan, 12 years ago

temporarily committing release candidate to stable

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