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

Last change on this file since 3068 was 3068, checked in by stefan, 7 years ago

temporarily committing release candidate

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