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

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

Re-running the autotools

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