source: ThirdParty/Blas/releases/1.3.7/configure @ 2976

Last change on this file since 2976 was 2976, checked in by tkr, 6 years ago

Re-running the autotools

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