source: ThirdParty/Blas/stable/1.3/configure @ 2989

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