source: ThirdParty/Lapack/stable/BSP/configure @ 1060

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

restoring stable/1.0

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