source: ThirdParty/Blas/trunk/configure @ 3287

Last change on this file since 3287 was 3287, checked in by tkr, 5 years ago

temporarily committing stable candidate

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