source: ThirdParty/Blas/stable/1.1/configure @ 1776

Last change on this file since 1776 was 1776, checked in by stefan, 9 years ago

temporarily committing release candidate

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