source: ThirdParty/Blas/trunk/configure @ 2122

Last change on this file since 2122 was 2122, checked in by stefan, 10 years ago

rerun autotools

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