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

Last change on this file since 1274 was 1274, checked in by andreasw, 11 years ago

synchronize ThirdParty/Lapack?/stable/1,0 with trunk rev 1273

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