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

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

reran autotools with new stable BuildTools?

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