source: ThirdParty/Blas/trunk/configure @ 2216

Last change on this file since 2216 was 2216, checked in by stefan, 11 years ago

rerun autotools

  • Property svn:executable set to *
File size: 741.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyBlas trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-blas compile this project (Blas) with debug compiler flags
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085  --enable-pkg-config     use pkg-config if available (default is yes)
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-blas-verbosity specify the debug verbosity level for project Blas
1102  --with-blas-checklevel specify the sanity check level for project Blas
1103  --with-coin-instdir     prefix of installation directory for precompiled
1104                          COIN packages
1105  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1106  --with-pic              try to use only PIC/non-PIC objects [default=use
1107                          both]
1108  --with-tags[=TAGS]
1109                          include additional configurations [automatic]
1110
1111Some influential environment variables:
1112  CDEFS       Additional -D flags to be used when compiling C code.
1113  ADD_CFLAGS  Additional C compiler options
1114  DBG_CFLAGS  Debug C compiler options
1115  OPT_CFLAGS  Optimize C compiler options
1116  CC          C compiler command
1117  CFLAGS      C compiler flags
1118  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1119              nonstandard directory <lib dir>
1120  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1121              headers in a nonstandard directory <include dir>
1122  MPICC       C MPI Compiler
1123  ADD_FFLAGS  Additional Fortran compiler options
1124  DBG_FFLAGS  Debug Fortran compiler options
1125  OPT_FFLAGS  Optimize Fortran compiler options
1126  F77         Fortran 77 compiler command
1127  FFLAGS      Fortran 77 compiler flags
1128  MPIF77      Fortran MPI Compiler
1129  PKG_CONFIG  path to pkg-config utility
1130  CPP         C preprocessor
1131  CXX         C++ compiler command
1132  CXXFLAGS    C++ compiler flags
1133  CXXCPP      C++ preprocessor
1134
1135Use these variables to override the choices made by `configure' or to help
1136it to find libraries and programs with nonstandard names/locations.
1137
1138Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1139_ACEOF
1140fi
1141
1142if test "$ac_init_help" = "recursive"; then
1143  # If there are subdirs, report their specific --help.
1144  ac_popdir=`pwd`
1145  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1146    test -d $ac_dir || continue
1147    ac_builddir=.
1148
1149if test "$ac_dir" != .; then
1150  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1151  # A "../" for each directory in $ac_dir_suffix.
1152  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153else
1154  ac_dir_suffix= ac_top_builddir=
1155fi
1156
1157case $srcdir in
1158  .)  # No --srcdir option.  We are building in place.
1159    ac_srcdir=.
1160    if test -z "$ac_top_builddir"; then
1161       ac_top_srcdir=.
1162    else
1163       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164    fi ;;
1165  [\\/]* | ?:[\\/]* )  # Absolute path.
1166    ac_srcdir=$srcdir$ac_dir_suffix;
1167    ac_top_srcdir=$srcdir ;;
1168  *) # Relative path.
1169    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1170    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1171esac
1172
1173# Do not use `cd foo && pwd` to compute absolute paths, because
1174# the directories may not exist.
1175case `pwd` in
1176.) ac_abs_builddir="$ac_dir";;
1177*)
1178  case "$ac_dir" in
1179  .) ac_abs_builddir=`pwd`;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1181  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_builddir=${ac_top_builddir}.;;
1186*)
1187  case ${ac_top_builddir}. in
1188  .) ac_abs_top_builddir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1190  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_srcdir=$ac_srcdir;;
1195*)
1196  case $ac_srcdir in
1197  .) ac_abs_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1199  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1200  esac;;
1201esac
1202case $ac_abs_builddir in
1203.) ac_abs_top_srcdir=$ac_top_srcdir;;
1204*)
1205  case $ac_top_srcdir in
1206  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1207  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1208  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209  esac;;
1210esac
1211
1212    cd $ac_dir
1213    # Check for guested configure; otherwise get Cygnus style configure.
1214    if test -f $ac_srcdir/configure.gnu; then
1215      echo
1216      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1217    elif test -f $ac_srcdir/configure; then
1218      echo
1219      $SHELL $ac_srcdir/configure  --help=recursive
1220    elif test -f $ac_srcdir/configure.ac ||
1221           test -f $ac_srcdir/configure.in; then
1222      echo
1223      $ac_configure --help
1224    else
1225      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1226    fi
1227    cd $ac_popdir
1228  done
1229fi
1230
1231test -n "$ac_init_help" && exit 0
1232if $ac_init_version; then
1233  cat <<\_ACEOF
1234ThirdPartyBlas configure trunk
1235generated by GNU Autoconf 2.59
1236
1237Copyright (C) 2003 Free Software Foundation, Inc.
1238This configure script is free software; the Free Software Foundation
1239gives unlimited permission to copy, distribute and modify it.
1240
1241
1242Copyright 2006 International Business Machines and others.
1243All Rights Reserved.
1244This file is part of the open source package Coin which is distributed
1245under the Eclipse Public License.
1246_ACEOF
1247  exit 0
1248fi
1249exec 5>config.log
1250cat >&5 <<_ACEOF
1251This file contains any messages produced by compilers while
1252running configure, to aid debugging if configure makes a mistake.
1253
1254It was created by ThirdPartyBlas $as_me trunk, which was
1255generated by GNU Autoconf 2.59.  Invocation command line was
1256
1257  $ $0 $@
1258
1259_ACEOF
1260{
1261cat <<_ASUNAME
1262## --------- ##
1263## Platform. ##
1264## --------- ##
1265
1266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1267uname -m = `(uname -m) 2>/dev/null || echo unknown`
1268uname -r = `(uname -r) 2>/dev/null || echo unknown`
1269uname -s = `(uname -s) 2>/dev/null || echo unknown`
1270uname -v = `(uname -v) 2>/dev/null || echo unknown`
1271
1272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1273/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1274
1275/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1276/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1278hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1279/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1280/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1281/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1282
1283_ASUNAME
1284
1285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286for as_dir in $PATH
1287do
1288  IFS=$as_save_IFS
1289  test -z "$as_dir" && as_dir=.
1290  echo "PATH: $as_dir"
1291done
1292
1293} >&5
1294
1295cat >&5 <<_ACEOF
1296
1297
1298## ----------- ##
1299## Core tests. ##
1300## ----------- ##
1301
1302_ACEOF
1303
1304
1305# Keep a trace of the command line.
1306# Strip out --no-create and --no-recursion so they do not pile up.
1307# Strip out --silent because we don't want to record it for future runs.
1308# Also quote any args containing shell meta-characters.
1309# Make two passes to allow for proper duplicate-argument suppression.
1310ac_configure_args=
1311ac_configure_args0=
1312ac_configure_args1=
1313ac_sep=
1314ac_must_keep_next=false
1315for ac_pass in 1 2
1316do
1317  for ac_arg
1318  do
1319    case $ac_arg in
1320    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1321    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322    | -silent | --silent | --silen | --sile | --sil)
1323      continue ;;
1324    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326    esac
1327    case $ac_pass in
1328    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329    2)
1330      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1331      if test $ac_must_keep_next = true; then
1332        ac_must_keep_next=false # Got value, back to normal.
1333      else
1334        case $ac_arg in
1335          *=* | --config-cache | -C | -disable-* | --disable-* \
1336          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1337          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1338          | -with-* | --with-* | -without-* | --without-* | --x)
1339            case "$ac_configure_args0 " in
1340              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1341            esac
1342            ;;
1343          -* ) ac_must_keep_next=true ;;
1344        esac
1345      fi
1346      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1347      # Get rid of the leading space.
1348      ac_sep=" "
1349      ;;
1350    esac
1351  done
1352done
1353$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1354$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355
1356# When interrupted or exit'd, cleanup temporary files, and complete
1357# config.log.  We remove comments because anyway the quotes in there
1358# would cause problems or look ugly.
1359# WARNING: Be sure not to use single quotes in there, as some shells,
1360# such as our DU 5.0 friend, will then `close' the trap.
1361trap 'exit_status=$?
1362  # Save into config.log some information that might help in debugging.
1363  {
1364    echo
1365
1366    cat <<\_ASBOX
1367## ---------------- ##
1368## Cache variables. ##
1369## ---------------- ##
1370_ASBOX
1371    echo
1372    # The following way of writing the cache mishandles newlines in values,
1373{
1374  (set) 2>&1 |
1375    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1376    *ac_space=\ *)
1377      sed -n \
1378        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1379          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380      ;;
1381    *)
1382      sed -n \
1383        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1384      ;;
1385    esac;
1386}
1387    echo
1388
1389    cat <<\_ASBOX
1390## ----------------- ##
1391## Output variables. ##
1392## ----------------- ##
1393_ASBOX
1394    echo
1395    for ac_var in $ac_subst_vars
1396    do
1397      eval ac_val=$`echo $ac_var`
1398      echo "$ac_var='"'"'$ac_val'"'"'"
1399    done | sort
1400    echo
1401
1402    if test -n "$ac_subst_files"; then
1403      cat <<\_ASBOX
1404## ------------- ##
1405## Output files. ##
1406## ------------- ##
1407_ASBOX
1408      echo
1409      for ac_var in $ac_subst_files
1410      do
1411        eval ac_val=$`echo $ac_var`
1412        echo "$ac_var='"'"'$ac_val'"'"'"
1413      done | sort
1414      echo
1415    fi
1416
1417    if test -s confdefs.h; then
1418      cat <<\_ASBOX
1419## ----------- ##
1420## confdefs.h. ##
1421## ----------- ##
1422_ASBOX
1423      echo
1424      sed "/^$/d" confdefs.h | sort
1425      echo
1426    fi
1427    test "$ac_signal" != 0 &&
1428      echo "$as_me: caught signal $ac_signal"
1429    echo "$as_me: exit $exit_status"
1430  } >&5
1431  rm -f core *.core &&
1432  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1433    exit $exit_status
1434     ' 0
1435for ac_signal in 1 2 13 15; do
1436  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437done
1438ac_signal=0
1439
1440# confdefs.h avoids OS command line length limits that DEFS can exceed.
1441rm -rf conftest* confdefs.h
1442# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1443echo >confdefs.h
1444
1445# Predefined preprocessor variables.
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_NAME "$PACKAGE_NAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_VERSION "$PACKAGE_VERSION"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_STRING "$PACKAGE_STRING"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469_ACEOF
1470
1471
1472# Let the site file select an alternate cache file if it wants to.
1473# Prefer explicitly selected file to automatically selected ones.
1474if test -z "$CONFIG_SITE"; then
1475  if test "x$prefix" != xNONE; then
1476    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477  else
1478    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479  fi
1480fi
1481for ac_site_file in $CONFIG_SITE; do
1482  if test -r "$ac_site_file"; then
1483    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1484echo "$as_me: loading site script $ac_site_file" >&6;}
1485    sed 's/^/| /' "$ac_site_file" >&5
1486    . "$ac_site_file"
1487  fi
1488done
1489
1490if test -r "$cache_file"; then
1491  # Some versions of bash will fail to source /dev/null (special
1492  # files actually), so we avoid doing that.
1493  if test -f "$cache_file"; then
1494    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1495echo "$as_me: loading cache $cache_file" >&6;}
1496    case $cache_file in
1497      [\\/]* | ?:[\\/]* ) . $cache_file;;
1498      *)                      . ./$cache_file;;
1499    esac
1500  fi
1501else
1502  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1503echo "$as_me: creating cache $cache_file" >&6;}
1504  >$cache_file
1505fi
1506
1507# Check that the precious variables saved in the cache have kept the same
1508# value.
1509ac_cache_corrupted=false
1510for ac_var in `(set) 2>&1 |
1511               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1512  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1513  eval ac_new_set=\$ac_env_${ac_var}_set
1514  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1515  eval ac_new_val="\$ac_env_${ac_var}_value"
1516  case $ac_old_set,$ac_new_set in
1517    set,)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,set)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,);;
1526    *)
1527      if test "x$ac_old_val" != "x$ac_new_val"; then
1528        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1529echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1530        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1531echo "$as_me:   former value:  $ac_old_val" >&2;}
1532        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1533echo "$as_me:   current value: $ac_new_val" >&2;}
1534        ac_cache_corrupted=:
1535      fi;;
1536  esac
1537  # Pass precious variables to config.status.
1538  if test "$ac_new_set" = set; then
1539    case $ac_new_val in
1540    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1541      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1542    *) ac_arg=$ac_var=$ac_new_val ;;
1543    esac
1544    case " $ac_configure_args " in
1545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1546      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1547    esac
1548  fi
1549done
1550if $ac_cache_corrupted; then
1551  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1552echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1553  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1554echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557
1558ac_ext=c
1559ac_cpp='$CPP $CPPFLAGS'
1560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1562ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1593# List one file in the package so that the configure script can test
1594# whether the package is actually there
1595
1596
1597# Where should everything be installed by default?  Here, we want it
1598# to be installed directly in 'bin', 'lib', 'include' subdirectories
1599# of the directory where configure is run.  The default would be
1600# /usr/local.
1601
1602
1603
1604# As backup, we make sure we don't loose an FLIBS if it has been set
1605# by the user
1606save_FLIBS="$FLIBS"
1607
1608# A useful makefile conditional that is always false
1609
1610
1611if false; then
1612  ALWAYS_FALSE_TRUE=
1613  ALWAYS_FALSE_FALSE='#'
1614else
1615  ALWAYS_FALSE_TRUE='#'
1616  ALWAYS_FALSE_FALSE=
1617fi
1618
1619
1620# We set the following variable so that we know later in AC_COIN_FINALIZE
1621# that we are in a project main directory
1622coin_projectdir=yes
1623
1624# Set the project's version numbers
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define BLAS_VERSION "$PACKAGE_VERSION"
1629_ACEOF
1630
1631
1632  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1633  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1634  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1636  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1637  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1638
1639cat >>confdefs.h <<_ACEOF
1640#define BLAS_VERSION_MAJOR $coin_majorver
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define BLAS_VERSION_MINOR $coin_minorver
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define BLAS_VERSION_RELEASE $coin_releasever
1651_ACEOF
1652
1653
1654  # We use the following variable to have a string with the upper case
1655  # version of the project name
1656  COIN_PRJCT=BLAS
1657
1658  # Set the project's SVN revision number. The complicated sed expression
1659  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1660  # as a single number.
1661  # Extract the first word of "svnversion", so it can be a program name with args.
1662set dummy svnversion; ac_word=$2
1663echo "$as_me:$LINENO: checking for $ac_word" >&5
1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665if test "${ac_cv_prog_have_svnversion+set}" = set; then
1666  echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668  if test -n "$have_svnversion"; then
1669  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1670else
1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672for as_dir in $PATH
1673do
1674  IFS=$as_save_IFS
1675  test -z "$as_dir" && as_dir=.
1676  for ac_exec_ext in '' $ac_executable_extensions; do
1677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678    ac_cv_prog_have_svnversion="yes"
1679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680    break 2
1681  fi
1682done
1683done
1684
1685  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1686fi
1687fi
1688have_svnversion=$ac_cv_prog_have_svnversion
1689if test -n "$have_svnversion"; then
1690  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1691echo "${ECHO_T}$have_svnversion" >&6
1692else
1693  echo "$as_me:$LINENO: result: no" >&5
1694echo "${ECHO_T}no" >&6
1695fi
1696
1697  if test "x$have_svnversion" = xyes; then
1698
1699    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1700    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1701      BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1702
1703cat >>confdefs.h <<_ACEOF
1704#define BLAS_SVN_REV $BLAS_SVN_REV
1705_ACEOF
1706
1707    fi
1708  fi
1709
1710
1711
1712# Capture libtool library version, if given.
1713
1714
1715
1716
1717#############################################################################
1718#                         Standard build tool stuff                         #
1719#############################################################################
1720
1721# Get the system type
1722ac_aux_dir=
1723for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1724  if test -f $ac_dir/install-sh; then
1725    ac_aux_dir=$ac_dir
1726    ac_install_sh="$ac_aux_dir/install-sh -c"
1727    break
1728  elif test -f $ac_dir/install.sh; then
1729    ac_aux_dir=$ac_dir
1730    ac_install_sh="$ac_aux_dir/install.sh -c"
1731    break
1732  elif test -f $ac_dir/shtool; then
1733    ac_aux_dir=$ac_dir
1734    ac_install_sh="$ac_aux_dir/shtool install -c"
1735    break
1736  fi
1737done
1738if test -z "$ac_aux_dir"; then
1739  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1740echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1741   { (exit 1); exit 1; }; }
1742fi
1743ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1744ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1745ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1746
1747# Make sure we can run config.sub.
1748$ac_config_sub sun4 >/dev/null 2>&1 ||
1749  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1750echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1751   { (exit 1); exit 1; }; }
1752
1753echo "$as_me:$LINENO: checking build system type" >&5
1754echo $ECHO_N "checking build system type... $ECHO_C" >&6
1755if test "${ac_cv_build+set}" = set; then
1756  echo $ECHO_N "(cached) $ECHO_C" >&6
1757else
1758  ac_cv_build_alias=$build_alias
1759test -z "$ac_cv_build_alias" &&
1760  ac_cv_build_alias=`$ac_config_guess`
1761test -z "$ac_cv_build_alias" &&
1762  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1763echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1764   { (exit 1); exit 1; }; }
1765ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1766  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1767echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1768   { (exit 1); exit 1; }; }
1769
1770fi
1771echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1772echo "${ECHO_T}$ac_cv_build" >&6
1773build=$ac_cv_build
1774build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1775build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1776build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1777
1778
1779
1780#turn off warnings and pedantic mode since they could make trouble on some platforms,
1781#and we couldn't fix them anyway
1782coin_skip_warn_fflags=yes
1783
1784# Check if user wants to produce debugging code
1785
1786echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1787echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1788
1789# Check whether --enable-debug or --disable-debug was given.
1790if test "${enable_debug+set}" = set; then
1791  enableval="$enable_debug"
1792  case "${enableval}" in
1793   yes) coin_debug_compile=true
1794        if test "${enable_shared+set}" = set; then :; else
1795          enable_shared=no
1796        fi
1797        ;;
1798   no)  coin_debug_compile=false
1799        ;;
1800   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1801echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1802   { (exit 1); exit 1; }; }
1803        ;;
1804esac
1805else
1806  coin_debug_compile=false
1807fi;
1808
1809# Check whether --enable-debug-blas or --disable-debug-blas was given.
1810if test "${enable_debug_blas+set}" = set; then
1811  enableval="$enable_debug_blas"
1812  case "${enableval}" in
1813    yes) coin_debug_compile=true
1814         ;;
1815    no)  coin_debug_compile=false
1816         ;;
1817    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1819   { (exit 1); exit 1; }; }
1820         ;;
1821 esac
1822else
1823  :
1824fi;
1825
1826 # m4_ifvaln([Blas],
1827
1828if test $coin_debug_compile = true; then
1829  echo "$as_me:$LINENO: result: yes" >&5
1830echo "${ECHO_T}yes" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836
1837# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1838if test "${with_blas_verbosity+set}" = set; then
1839  withval="$with_blas_verbosity"
1840  if test "$withval" = yes; then
1841                withval=1
1842              fi
1843              coin_blas_verbosity=$withval
1844else
1845  coin_blas_verbosity=0
1846fi;
1847
1848cat >>confdefs.h <<_ACEOF
1849#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1850_ACEOF
1851
1852
1853
1854# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1855if test "${with_blas_checklevel+set}" = set; then
1856  withval="$with_blas_checklevel"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_blas_checklevel=$withval
1861else
1862  coin_blas_checklevel=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1867_ACEOF
1868
1869
1870 # m4_ifvaln([Blas],
1871
1872
1873
1874# Get the name of the Fortran compiler and appropriate compiler options
1875case $build in
1876  *-mingw*)
1877    if test "${LD+set}" = set; then :; else
1878      LD=link
1879    fi
1880    ;;
1881 esac
1882 case $enable_doscompile in
1883   msvc)
1884     if test "x${LD+set}" = xset; then :; else
1885       LD=link
1886     fi
1887     ;;
1888 esac
1889
1890
1891 # Check whether --enable-doscompile or --disable-doscompile was given.
1892if test "${enable_doscompile+set}" = set; then
1893  enableval="$enable_doscompile"
1894  if test "$enable_doscompile" != no; then
1895     case $build in
1896       *-cygwin* | *-mingw*) ;;
1897       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1898echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1899   { (exit 1); exit 1; }; } ;;
1900     esac
1901   fi
1902else
1903  enable_doscompile=no
1904fi;
1905 case "$enable_doscompile" in
1906   mingw)
1907     case $build in
1908       *-mingw*) enable_doscompile=no ;;
1909     esac
1910     ;;
1911   msvc|no) ;;
1912   yes) enable_doscompile=mingw ;;
1913   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&5
1915echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1916                    Try configure --help=recursive." >&2;}
1917   { (exit 1); exit 1; }; }
1918      ;;
1919  esac
1920  if test "$enable_doscompile" != no ; then
1921    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1922echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1923  fi
1924
1925
1926
1927
1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935# For consistency, we set the C compiler to the same value of the C++
1936# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1937if test x"$CXX" != x; then
1938  case "$CXX" in
1939    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1940      if test x"$CC" = x; then
1941        CC="$CXX"
1942        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1943echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1944      fi
1945      ;;
1946  esac
1947fi
1948
1949
1950
1951
1952
1953
1954coin_has_cc=yes
1955
1956save_cflags="$CFLAGS"
1957
1958# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1959# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1960# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1961# compiler. In this case, put cc after gcc.
1962
1963case $build in
1964  *-cygwin* | *-mingw*)
1965             if test "$enable_doscompile" = msvc ; then
1966               comps="icl cl"
1967             else
1968               comps="gcc cl"
1969             fi ;;
1970  *-*-solaris*)
1971             # Extract the first word of "cc", so it can be a program name with args.
1972set dummy cc; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$sol_cc_compiler"; then
1979  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1980else
1981  ac_prog_rejected=no
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985  IFS=$as_save_IFS
1986  test -z "$as_dir" && as_dir=.
1987  for ac_exec_ext in '' $ac_executable_extensions; do
1988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1990       ac_prog_rejected=yes
1991       continue
1992     fi
1993    ac_cv_prog_sol_cc_compiler="cc"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000if test $ac_prog_rejected = yes; then
2001  # We found a bogon in the path, so make sure we never use it.
2002  set dummy $ac_cv_prog_sol_cc_compiler
2003  shift
2004  if test $# != 0; then
2005    # We chose a different compiler from the bogus one.
2006    # However, it has the same basename, so the bogon will be chosen
2007    # first if we set sol_cc_compiler to just the basename; use the full file name.
2008    shift
2009    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2010  fi
2011fi
2012fi
2013fi
2014sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2015if test -n "$sol_cc_compiler"; then
2016  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2017echo "${ECHO_T}$sol_cc_compiler" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023             if test "$sol_cc_compiler" = "cc" ; then
2024               comps="cc xlc gcc pgcc icc"
2025             else
2026               comps="xlc gcc pgcc icc cc"
2027             fi
2028             ;;
2029  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2030  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2031  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2032esac
2033
2034# We delete the cached value, since the test might not have been
2035# performed with our choice of compilers earlier
2036$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2037# AC_MSG_NOTICE([C compiler candidates: $comps])
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043if test -n "$ac_tool_prefix"; then
2044  for ac_prog in $comps
2045  do
2046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081    test -n "$CC" && break
2082  done
2083fi
2084if test -z "$CC"; then
2085  ac_ct_CC=$CC
2086  for ac_prog in $comps
2087do
2088  # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$ac_ct_CC"; then
2096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    ac_cv_prog_ac_ct_CC="$ac_prog"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112fi
2113fi
2114ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115if test -n "$ac_ct_CC"; then
2116  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117echo "${ECHO_T}$ac_ct_CC" >&6
2118else
2119  echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123  test -n "$ac_ct_CC" && break
2124done
2125
2126  CC=$ac_ct_CC
2127fi
2128
2129
2130test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131See \`config.log' for more details." >&5
2132echo "$as_me: error: no acceptable C compiler found in \$PATH
2133See \`config.log' for more details." >&2;}
2134   { (exit 1); exit 1; }; }
2135
2136# Provide some information about the compiler.
2137echo "$as_me:$LINENO:" \
2138     "checking for C compiler version" >&5
2139ac_compiler=`set X $ac_compile; echo $2`
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141  (eval $ac_compiler --version </dev/null >&5) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }
2145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146  (eval $ac_compiler -v </dev/null >&5) 2>&5
2147  ac_status=$?
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); }
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151  (eval $ac_compiler -V </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155
2156cat >conftest.$ac_ext <<_ACEOF
2157/* confdefs.h.  */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h.  */
2162
2163int
2164main ()
2165{
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171ac_clean_files_save=$ac_clean_files
2172ac_clean_files="$ac_clean_files a.out a.exe b.out"
2173# Try to create an executable without -o first, disregard a.out.
2174# It will help us diagnose broken compilers, and finding out an intuition
2175# of exeext.
2176echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180  (eval $ac_link_default) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; then
2184  # Find the output, starting from the most likely.  This scheme is
2185# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186# resort.
2187
2188# Be careful to initialize this variable, since it used to be cached.
2189# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190ac_cv_exeext=
2191# b.out is created by i960 compilers.
2192for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193do
2194  test -f "$ac_file" || continue
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197        ;;
2198    conftest.$ac_ext )
2199        # This is the source file.
2200        ;;
2201    [ab].out )
2202        # We found the default executable, but exeext='' is most
2203        # certainly right.
2204        break;;
2205    *.* )
2206        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207        # FIXME: I believe we export ac_cv_exeext for Libtool,
2208        # but it would be cool to find out if it's true.  Does anybody
2209        # maintain Libtool? --akim.
2210        export ac_cv_exeext
2211        break;;
2212    * )
2213        break;;
2214  esac
2215done
2216else
2217  echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221See \`config.log' for more details." >&5
2222echo "$as_me: error: C compiler cannot create executables
2223See \`config.log' for more details." >&2;}
2224   { (exit 77); exit 77; }; }
2225fi
2226
2227ac_exeext=$ac_cv_exeext
2228echo "$as_me:$LINENO: result: $ac_file" >&5
2229echo "${ECHO_T}$ac_file" >&6
2230
2231# Check the compiler produces executables we can run.  If not, either
2232# the compiler is broken, or we cross compile.
2233echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236# If not cross compiling, check that we can run a simple program.
2237if test "$cross_compiling" != yes; then
2238  if { ac_try='./$ac_file'
2239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240  (eval $ac_try) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }; }; then
2244    cross_compiling=no
2245  else
2246    if test "$cross_compiling" = maybe; then
2247        cross_compiling=yes
2248    else
2249        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&2;}
2255   { (exit 1); exit 1; }; }
2256    fi
2257  fi
2258fi
2259echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6
2261
2262rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263ac_clean_files=$ac_clean_files_save
2264# Check the compiler produces executables we can run.  If not, either
2265# the compiler is broken, or we cross compile.
2266echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269echo "${ECHO_T}$cross_compiling" >&6
2270
2271echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274  (eval $ac_link) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; then
2278  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280# work properly (i.e., refer to `conftest.exe'), while it won't with
2281# `rm'.
2282for ac_file in conftest.exe conftest conftest.*; do
2283  test -f "$ac_file" || continue
2284  case $ac_file in
2285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2286    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287          export ac_cv_exeext
2288          break;;
2289    * ) break;;
2290  esac
2291done
2292else
2293  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297   { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309if test "${ac_cv_objext+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h.  */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h.  */
2318
2319int
2320main ()
2321{
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; then
2333  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2336    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337       break;;
2338  esac
2339done
2340else
2341  echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&2;}
2348   { (exit 1); exit 1; }; }
2349fi
2350
2351rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354echo "${ECHO_T}$ac_cv_objext" >&6
2355OBJEXT=$ac_cv_objext
2356ac_objext=$OBJEXT
2357echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360  echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362  cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h.  */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h.  */
2368
2369int
2370main ()
2371{
2372#ifndef __GNUC__
2373       choke me
2374#endif
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>conftest.er1
2383  ac_status=$?
2384  grep -v '^ *+' conftest.er1 >conftest.err
2385  rm -f conftest.er1
2386  cat conftest.err >&5
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); } &&
2389         { ac_try='test -z "$ac_c_werror_flag"
2390                         || test ! -s conftest.err'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396         { ac_try='test -s conftest.$ac_objext'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; }; then
2402  ac_compiler_gnu=yes
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407ac_compiler_gnu=no
2408fi
2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411
2412fi
2413echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415GCC=`test $ac_compiler_gnu = yes && echo yes`
2416ac_test_CFLAGS=${CFLAGS+set}
2417ac_save_CFLAGS=$CFLAGS
2418CFLAGS="-g"
2419echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421if test "${ac_cv_prog_cc_g+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
2431int
2432main ()
2433{
2434
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441  (eval $ac_compile) 2>conftest.er1
2442  ac_status=$?
2443  grep -v '^ *+' conftest.er1 >conftest.err
2444  rm -f conftest.er1
2445  cat conftest.err >&5
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); } &&
2448         { ac_try='test -z "$ac_c_werror_flag"
2449                         || test ! -s conftest.err'
2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451  (eval $ac_try) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); }; } &&
2455         { ac_try='test -s conftest.$ac_objext'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_cv_prog_cc_g=yes
2462else
2463  echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466ac_cv_prog_cc_g=no
2467fi
2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469fi
2470echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472if test "$ac_test_CFLAGS" = set; then
2473  CFLAGS=$ac_save_CFLAGS
2474elif test $ac_cv_prog_cc_g = yes; then
2475  if test "$GCC" = yes; then
2476    CFLAGS="-g -O2"
2477  else
2478    CFLAGS="-g"
2479  fi
2480else
2481  if test "$GCC" = yes; then
2482    CFLAGS="-O2"
2483  else
2484    CFLAGS=
2485  fi
2486fi
2487echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  ac_cv_prog_cc_stdc=no
2493ac_save_CC=$CC
2494cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h.  */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h.  */
2500#include <stdarg.h>
2501#include <stdio.h>
2502#include <sys/types.h>
2503#include <sys/stat.h>
2504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2505struct buf { int x; };
2506FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507static char *e (p, i)
2508     char **p;
2509     int i;
2510{
2511  return p[i];
2512}
2513static char *f (char * (*g) (char **, int), char **p, ...)
2514{
2515  char *s;
2516  va_list v;
2517  va_start (v,p);
2518  s = g (p, va_arg (v,int));
2519  va_end (v);
2520  return s;
2521}
2522
2523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2524   function prototypes and stuff, but not '\xHH' hex character constants.
2525   These don't provoke an error unfortunately, instead are silently treated
2526   as 'x'.  The following induces an error, until -std1 is added to get
2527   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2528   array size at least.  It's necessary to write '\x00'==0 to get something
2529   that's true only with -std1.  */
2530int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531
2532int test (int i, double x);
2533struct s1 {int (*f) (int a);};
2534struct s2 {int (*f) (double a);};
2535int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536int argc;
2537char **argv;
2538int
2539main ()
2540{
2541return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546# Don't try gcc -ansi; that turns off useful extensions and
2547# breaks some systems' header files.
2548# AIX                   -qlanglvl=ansi
2549# Ultrix and OSF/1      -std1
2550# HP-UX 10.20 and later -Ae
2551# HP-UX older versions  -Aa -D_HPUX_SOURCE
2552# SVR4                  -Xc -D__EXTENSIONS__
2553for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554do
2555  CC="$ac_save_CC $ac_arg"
2556  rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565         { ac_try='test -z "$ac_c_werror_flag"
2566                         || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572         { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  ac_cv_prog_cc_stdc=$ac_arg
2579break
2580else
2581  echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584fi
2585rm -f conftest.err conftest.$ac_objext
2586done
2587rm -f conftest.$ac_ext conftest.$ac_objext
2588CC=$ac_save_CC
2589
2590fi
2591
2592case "x$ac_cv_prog_cc_stdc" in
2593  x|xno)
2594    echo "$as_me:$LINENO: result: none needed" >&5
2595echo "${ECHO_T}none needed" >&6 ;;
2596  *)
2597    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599    CC="$CC $ac_cv_prog_cc_stdc" ;;
2600esac
2601
2602# Some people use a C++ compiler to compile C.  Since we use `exit',
2603# in C++ we need to declare it.  In case someone uses the same compiler
2604# for both compiling C and C++ we need to have the C++ compiler decide
2605# the declaration of exit, since it's the most demanding environment.
2606cat >conftest.$ac_ext <<_ACEOF
2607#ifndef __cplusplus
2608  choke me
2609#endif
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  for ac_declaration in \
2634   '' \
2635   'extern "C" void std::exit (int) throw (); using std::exit;' \
2636   'extern "C" void std::exit (int); using std::exit;' \
2637   'extern "C" void exit (int) throw ();' \
2638   'extern "C" void exit (int);' \
2639   'void exit (int);'
2640do
2641  cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647$ac_declaration
2648#include <stdlib.h>
2649int
2650main ()
2651{
2652exit (42);
2653  ;
2654  return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  :
2680else
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684continue
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694int
2695main ()
2696{
2697exit (42);
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711         { ac_try='test -z "$ac_c_werror_flag"
2712                         || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718         { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  break
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732rm -f conftest*
2733if test -n "$ac_declaration"; then
2734  echo '#ifdef __cplusplus' >>confdefs.h
2735  echo $ac_declaration      >>confdefs.h
2736  echo '#endif'             >>confdefs.h
2737fi
2738
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743fi
2744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751if test -z "$CC" ; then
2752  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2753echo "$as_me: error: Failed to find a C compiler!" >&2;}
2754   { (exit 1); exit 1; }; }
2755fi
2756# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2757case "$CC" in
2758  cl* | */cl* | CL* | */CL* )
2759    if test "$ac_cv_prog_cc_g" = yes ; then
2760      ac_cv_prog_cc_g=no
2761      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2762echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2763    fi ;;
2764esac
2765CFLAGS="$save_cflags"
2766
2767# add automake conditional so we can recognize cl compiler in makefile
2768coin_cc_is_cl=false
2769case "$CC" in
2770  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2771    coin_cc_is_cl=true
2772    ;;
2773esac
2774
2775
2776if test $coin_cc_is_cl = true; then
2777  COIN_CC_IS_CL_TRUE=
2778  COIN_CC_IS_CL_FALSE='#'
2779else
2780  COIN_CC_IS_CL_TRUE='#'
2781  COIN_CC_IS_CL_FALSE=
2782fi
2783
2784
2785# Check if a project specific CFLAGS variable has been set
2786if test x$COIN_PRJCT != x; then
2787  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2788  if test x$coin_tmp = xset; then
2789    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2790  fi
2791fi
2792
2793if test x"$CFLAGS" = x; then
2794
2795  coin_add_cflags=
2796  coin_opt_cflags=
2797  coin_dbg_cflags=
2798  coin_warn_cflags=
2799
2800  if test "$GCC" = "yes"; then
2801    case "$CC" in
2802      icc* | */icc*)
2803        ;;
2804      *)
2805        coin_opt_cflags="-O3"
2806        coin_add_cflags="-pipe"
2807        coin_dbg_cflags="-g"
2808        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2809        case $build in
2810          *-darwin*)
2811            ;;
2812          *)
2813            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2814            ;;
2815        esac
2816        case $enable_doscompile in
2817          mingw)
2818            CFLAGS="-mno-cygwin"
2819            cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829int i=0; i++;
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext conftest$ac_exeext
2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836  (eval $ac_link) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843         { ac_try='test -z "$ac_c_werror_flag"
2844                         || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850         { ac_try='test -s conftest$ac_exeext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2857else
2858  echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861fi
2862rm -f conftest.err conftest.$ac_objext \
2863      conftest$ac_exeext conftest.$ac_ext
2864            CFLAGS=
2865          ;;
2866        esac
2867    esac
2868  fi
2869  if test -z "$coin_opt_cflags"; then
2870    case $build in
2871      *-cygwin* | *-mingw*)
2872        case "$CC" in
2873          cl* | */cl* | CL* | */CL*)
2874            coin_opt_cflags='-MT -O2'
2875            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2876            coin_dbg_cflags='-MTd'
2877            ;;
2878          icl* | */icl* | ICL* | */ICL*)
2879            coin_opt_cflags='-MT -Ox'
2880            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2881            coin_dbg_cflags='-MTd -debug'
2882            ;;
2883        esac
2884        ;;
2885      *-linux-*)
2886        case "$CC" in
2887          icc* | */icc*)
2888            coin_opt_cflags="-O3 -ip -mp1"
2889            coin_add_cflags=""
2890            coin_dbg_cflags="-g"
2891            # Check if -i_dynamic is necessary (for new glibc library)
2892            CFLAGS=
2893            cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h.  */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h.  */
2899
2900int
2901main ()
2902{
2903int i=0; i++;
2904  ;
2905  return 0;
2906}
2907_ACEOF
2908rm -f conftest.$ac_objext conftest$ac_exeext
2909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2910  (eval $ac_link) 2>conftest.er1
2911  ac_status=$?
2912  grep -v '^ *+' conftest.er1 >conftest.err
2913  rm -f conftest.er1
2914  cat conftest.err >&5
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); } &&
2917         { ac_try='test -z "$ac_c_werror_flag"
2918                         || test ! -s conftest.err'
2919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920  (eval $ac_try) 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; } &&
2924         { ac_try='test -s conftest$ac_exeext'
2925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926  (eval $ac_try) 2>&5
2927  ac_status=$?
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); }; }; then
2930  :
2931else
2932  echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935coin_add_cflags="-i_dynamic $coin_add_cflags"
2936fi
2937rm -f conftest.err conftest.$ac_objext \
2938      conftest$ac_exeext conftest.$ac_ext
2939            ;;
2940          pgcc* | */pgcc*)
2941            coin_opt_cflags="-fast"
2942            coin_add_cflags="-Kieee -pc 64"
2943            coin_dbg_cflags="-g"
2944            ;;
2945        esac
2946        ;;
2947      *-ibm-*)
2948        case "$CC" in
2949          xlc* | */xlc* | mpxlc* | */mpxlc*)
2950            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2951            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2952            coin_dbg_cflags="-g"
2953          ;;
2954        esac
2955        ;;
2956      *-hp-*)
2957        coin_opt_cflags="-O"
2958        coin_add_cflags="-Ae"
2959        coin_dbg_cflags="-g"
2960        ;;
2961      *-*-solaris*)
2962        coin_opt_cflags="-xO4"
2963        coin_dbg_cflags="-g"
2964        ;;
2965      *-sgi-*)
2966        coin_opt_cflags="-O -OPT:Olimit=0"
2967        coin_dbg_cflags="-g"
2968        ;;
2969    esac
2970  fi
2971
2972  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2973    coin_dbg_cflags="-g"
2974  fi
2975
2976  if test -z "$coin_opt_cflags"; then
2977    # Try if -O option works if nothing else is set
2978    CFLAGS="-O"
2979    cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h.  */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
2984/* end confdefs.h.  */
2985
2986int
2987main ()
2988{
2989int i=0; i++;
2990  ;
2991  return 0;
2992}
2993_ACEOF
2994rm -f conftest.$ac_objext conftest$ac_exeext
2995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2996  (eval $ac_link) 2>conftest.er1
2997  ac_status=$?
2998  grep -v '^ *+' conftest.er1 >conftest.err
2999  rm -f conftest.er1
3000  cat conftest.err >&5
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); } &&
3003         { ac_try='test -z "$ac_c_werror_flag"
3004                         || test ! -s conftest.err'
3005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006  (eval $ac_try) 2>&5
3007  ac_status=$?
3008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009  (exit $ac_status); }; } &&
3010         { ac_try='test -s conftest$ac_exeext'
3011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012  (eval $ac_try) 2>&5
3013  ac_status=$?
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }; }; then
3016  coin_opt_cflags="-O"
3017else
3018  echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021fi
3022rm -f conftest.err conftest.$ac_objext \
3023      conftest$ac_exeext conftest.$ac_ext
3024  fi
3025
3026  # if PM doesn't want the warning messages, take them out
3027  if test x"$coin_skip_warn_cflags" = xyes; then
3028    coin_warn_cflags=
3029  fi
3030
3031  if test x${DBG_CFLAGS+set} != xset; then
3032    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3033  fi
3034  if test x${OPT_CFLAGS+set} != xset; then
3035    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3036  fi
3037
3038  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3039  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3040
3041  if test "$coin_debug_compile" = "true"; then
3042    CFLAGS="$DBG_CFLAGS"
3043  else
3044    CFLAGS="$OPT_CFLAGS"
3045  fi
3046else
3047  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3048  if test x${DBG_CFLAGS+set} != xset; then
3049    DBG_CFLAGS="$CFLAGS"
3050  fi
3051  if test x${OPT_CFLAGS+set} != xset; then
3052    OPT_CFLAGS="$CFLAGS"
3053  fi
3054fi
3055
3056# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3057
3058case "$CFLAGS" in
3059  *-mno-cygwin*)
3060    if test x${CPPFLAGS+set} != xset ; then
3061      CPPFLAGS="-mno-cygwin"
3062    else
3063      case "$CPPFLAGS" in
3064        *-mno-cygwin*)
3065          ;;
3066        *)
3067          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3068          ;;
3069      esac
3070    fi ;;
3071esac
3072
3073# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3074if test x$COIN_PRJCT != x; then
3075  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3076fi
3077
3078# Try if CFLAGS works
3079save_CFLAGS="$CFLAGS"
3080cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h.  */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h.  */
3086
3087int
3088main ()
3089{
3090int i=0; i++;
3091  ;
3092  return 0;
3093}
3094_ACEOF
3095rm -f conftest.$ac_objext conftest$ac_exeext
3096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097  (eval $ac_link) 2>conftest.er1
3098  ac_status=$?
3099  grep -v '^ *+' conftest.er1 >conftest.err
3100  rm -f conftest.er1
3101  cat conftest.err >&5
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); } &&
3104         { ac_try='test -z "$ac_c_werror_flag"
3105                         || test ! -s conftest.err'
3106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107  (eval $ac_try) 2>&5
3108  ac_status=$?
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); }; } &&
3111         { ac_try='test -s conftest$ac_exeext'
3112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113  (eval $ac_try) 2>&5
3114  ac_status=$?
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); }; }; then
3117  :
3118else
3119  echo "$as_me: failed program was:" >&5
3120sed 's/^/| /' conftest.$ac_ext >&5
3121
3122CFLAGS=
3123fi
3124rm -f conftest.err conftest.$ac_objext \
3125      conftest$ac_exeext conftest.$ac_ext
3126if test -z "$CFLAGS"; then
3127  { 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
3128echo "$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;}
3129  CFLAGS='-O'
3130  cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140int i=0; i++;
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext conftest$ac_exeext
3146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147  (eval $ac_link) 2>conftest.er1
3148  ac_status=$?
3149  grep -v '^ *+' conftest.er1 >conftest.err
3150  rm -f conftest.er1
3151  cat conftest.err >&5
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); } &&
3154         { ac_try='test -z "$ac_c_werror_flag"
3155                         || test ! -s conftest.err'
3156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157  (eval $ac_try) 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; } &&
3161         { ac_try='test -s conftest$ac_exeext'
3162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163  (eval $ac_try) 2>&5
3164  ac_status=$?
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); }; }; then
3167  :
3168else
3169  echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172CFLAGS=
3173fi
3174rm -f conftest.err conftest.$ac_objext \
3175      conftest$ac_exeext conftest.$ac_ext
3176  if test -z "$CFLAGS"; then
3177    { 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
3178echo "$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;}
3179  fi
3180fi
3181
3182{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3183echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3184
3185
3186if test x"$MPICC" = x; then :; else
3187  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3188echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3189  CC="$MPICC"
3190fi
3191
3192# Correct the LD variable if we are using the MS or Intel-windows compiler
3193case "$CC" in
3194  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3195    case $build in
3196  *-mingw*)
3197    if test "${LD+set}" = set; then :; else
3198      LD=link
3199    fi
3200    ;;
3201 esac
3202 case $enable_doscompile in
3203   msvc)
3204     if test "x${LD+set}" = xset; then :; else
3205       LD=link
3206     fi
3207     ;;
3208 esac
3209
3210    ;;
3211esac
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219
3220case $build in
3221  *-cygwin* | *-mingw*)
3222     if test "$enable_doscompile" = msvc ; then
3223       coin_f77_comps="ifort fl32 compile_f2c"
3224     else
3225       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3226     fi ;;
3227  *-*-solaris*)
3228     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3229  *-linux-gnu*)
3230     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3231  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3232 esac
3233
3234
3235
3236
3237
3238
3239ac_ext=f
3240ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3241ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3243
3244
3245
3246
3247
3248
3249coin_has_f77=yes
3250
3251save_fflags="$FFLAGS"
3252
3253# We delete the cached value, since the test might not have been
3254# performed with our choice of compilers earlier
3255$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3256
3257# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3258# coin_f77_comps to see if there's a program that matches one of the names.
3259# If there's no such program, F77 = unavailable. If we match the name,
3260# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3261# compiler.
3262# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3263
3264
3265{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3266echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3267for ac_prog in $coin_f77_comps
3268do
3269  # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
3271echo "$as_me:$LINENO: checking for $ac_word" >&5
3272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3273if test "${ac_cv_prog_F77+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  if test -n "$F77"; then
3277  ac_cv_prog_F77="$F77" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284  for ac_exec_ext in '' $ac_executable_extensions; do
3285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286    ac_cv_prog_F77="$ac_prog"
3287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288    break 2
3289  fi
3290done
3291done
3292
3293fi
3294fi
3295F77=$ac_cv_prog_F77
3296if test -n "$F77"; then
3297  echo "$as_me:$LINENO: result: $F77" >&5
3298echo "${ECHO_T}$F77" >&6
3299else
3300  echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6
3302fi
3303
3304  test -n "$F77" && break
3305done
3306test -n "$F77" || F77="unavailable"
3307
3308
3309if test "$F77" != "unavailable" ; then
3310  ac_ext=f
3311ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3312ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3314if test -n "$ac_tool_prefix"; then
3315  for ac_prog in $coin_f77_comps
3316  do
3317    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319echo "$as_me:$LINENO: checking for $ac_word" >&5
3320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3321if test "${ac_cv_prog_F77+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  if test -n "$F77"; then
3325  ac_cv_prog_F77="$F77" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332  for ac_exec_ext in '' $ac_executable_extensions; do
3333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339done
3340
3341fi
3342fi
3343F77=$ac_cv_prog_F77
3344if test -n "$F77"; then
3345  echo "$as_me:$LINENO: result: $F77" >&5
3346echo "${ECHO_T}$F77" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351
3352    test -n "$F77" && break
3353  done
3354fi
3355if test -z "$F77"; then
3356  ac_ct_F77=$F77
3357  for ac_prog in $coin_f77_comps
3358do
3359  # Extract the first word of "$ac_prog", so it can be a program name with args.
3360set dummy $ac_prog; ac_word=$2
3361echo "$as_me:$LINENO: checking for $ac_word" >&5
3362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3364  echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366  if test -n "$ac_ct_F77"; then
3367  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3368else
3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374  for ac_exec_ext in '' $ac_executable_extensions; do
3375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376    ac_cv_prog_ac_ct_F77="$ac_prog"
3377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3378    break 2
3379  fi
3380done
3381done
3382
3383fi
3384fi
3385ac_ct_F77=$ac_cv_prog_ac_ct_F77
3386if test -n "$ac_ct_F77"; then
3387  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3388echo "${ECHO_T}$ac_ct_F77" >&6
3389else
3390  echo "$as_me:$LINENO: result: no" >&5
3391echo "${ECHO_T}no" >&6
3392fi
3393
3394  test -n "$ac_ct_F77" && break
3395done
3396
3397  F77=$ac_ct_F77
3398fi
3399
3400
3401# Provide some information about the compiler.
3402echo "$as_me:3402:" \
3403     "checking for Fortran 77 compiler version" >&5
3404ac_compiler=`set X $ac_compile; echo $2`
3405{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3406  (eval $ac_compiler --version </dev/null >&5) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }
3410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3411  (eval $ac_compiler -v </dev/null >&5) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }
3415{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3416  (eval $ac_compiler -V </dev/null >&5) 2>&5
3417  ac_status=$?
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); }
3420rm -f a.out
3421
3422# If we don't use `.F' as extension, the preprocessor is not run on the
3423# input file.  (Note that this only needs to work for GNU compilers.)
3424ac_save_ext=$ac_ext
3425ac_ext=F
3426echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3427echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3428if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3429  echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431  cat >conftest.$ac_ext <<_ACEOF
3432      program main
3433#ifndef __GNUC__
3434       choke me
3435#endif
3436
3437      end
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441  (eval $ac_compile) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_f77_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest.$ac_objext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  ac_compiler_gnu=yes
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466ac_compiler_gnu=no
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3470
3471fi
3472echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3473echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3474ac_ext=$ac_save_ext
3475ac_test_FFLAGS=${FFLAGS+set}
3476ac_save_FFLAGS=$FFLAGS
3477FFLAGS=
3478echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3479echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3480if test "${ac_cv_prog_f77_g+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  FFLAGS=-g
3484cat >conftest.$ac_ext <<_ACEOF
3485      program main
3486
3487      end
3488_ACEOF
3489rm -f conftest.$ac_objext
3490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491  (eval $ac_compile) 2>conftest.er1
3492  ac_status=$?
3493  grep -v '^ *+' conftest.er1 >conftest.err
3494  rm -f conftest.er1
3495  cat conftest.err >&5
3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497  (exit $ac_status); } &&
3498         { ac_try='test -z "$ac_f77_werror_flag"
3499                         || test ! -s conftest.err'
3500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501  (eval $ac_try) 2>&5
3502  ac_status=$?
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; } &&
3505         { ac_try='test -s conftest.$ac_objext'
3506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507  (eval $ac_try) 2>&5
3508  ac_status=$?
3509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510  (exit $ac_status); }; }; then
3511  ac_cv_prog_f77_g=yes
3512else
3513  echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516ac_cv_prog_f77_g=no
3517fi
3518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519
3520fi
3521echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3522echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3523if test "$ac_test_FFLAGS" = set; then
3524  FFLAGS=$ac_save_FFLAGS
3525elif test $ac_cv_prog_f77_g = yes; then
3526  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3527    FFLAGS="-g -O2"
3528  else
3529    FFLAGS="-g"
3530  fi
3531else
3532  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3533    FFLAGS="-O2"
3534  else
3535    FFLAGS=
3536  fi
3537fi
3538
3539G77=`test $ac_compiler_gnu = yes && echo yes`
3540ac_ext=f
3541ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3542ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3544
3545else
3546  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3547echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3548fi
3549
3550FFLAGS="$save_fflags"
3551
3552# Check if a project specific FFLAGS variable has been set
3553if test x$COIN_PRJCT != x; then
3554  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3555  if test x$coin_tmp = xset; then
3556    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3557  fi
3558fi
3559
3560if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3561
3562  coin_add_fflags=
3563  coin_opt_fflags=
3564  coin_dbg_fflags=
3565  coin_warn_fflags=
3566
3567  if test "$G77" = "yes"; then
3568    coin_opt_fflags="-O3"
3569    coin_add_fflags="-pipe"
3570    coin_dbg_fflags="-g"
3571    case $enable_doscompile in
3572      mingw)
3573        FFLAGS="-mno-cygwin"
3574        cat >conftest.$ac_ext <<_ACEOF
3575      program main
3576      write(*,*) 'Hello world'
3577      end
3578_ACEOF
3579rm -f conftest.$ac_objext conftest$ac_exeext
3580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3581  (eval $ac_link) 2>conftest.er1
3582  ac_status=$?
3583  grep -v '^ *+' conftest.er1 >conftest.err
3584  rm -f conftest.er1
3585  cat conftest.err >&5
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); } &&
3588         { ac_try='test -z "$ac_f77_werror_flag"
3589                         || test ! -s conftest.err'
3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591  (eval $ac_try) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); }; } &&
3595         { ac_try='test -s conftest$ac_exeext'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; }; then
3601  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3602else
3603  echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606fi
3607rm -f conftest.err conftest.$ac_objext \
3608      conftest$ac_exeext conftest.$ac_ext
3609        FFLAGS=
3610      ;;
3611    esac
3612  else
3613    case $build in
3614      *-cygwin* | *-mingw*)
3615        case $F77 in
3616          ifort* | */ifort* | IFORT* | */IFORT* )
3617            coin_opt_fflags='-MT -O3'
3618            coin_add_fflags='-fpp -nologo'
3619            coin_dbg_fflags='-MTd -debug'
3620          ;;
3621          compile_f2c*)
3622            coin_opt_fflags='-MT -O2'
3623            coin_add_fflags='-nologo -wd4996'
3624            coin_dbg_fflags='-MTd'
3625          ;;
3626        esac
3627        ;;
3628      *-linux-*)
3629        case $F77 in
3630          ifc* | */ifc* | ifort* | */ifort*)
3631            coin_opt_fflags="-O3 -ip"
3632            coin_add_fflags="-cm -w90 -w95"
3633            coin_dbg_fflags="-g -CA -CB -CS"
3634            # Check if -i_dynamic is necessary (for new glibc library)
3635            FFLAGS=
3636            cat >conftest.$ac_ext <<_ACEOF
3637      program main
3638      write(*,*) 'Hello world'
3639      end
3640_ACEOF
3641rm -f conftest.$ac_objext conftest$ac_exeext
3642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3643  (eval $ac_link) 2>conftest.er1
3644  ac_status=$?
3645  grep -v '^ *+' conftest.er1 >conftest.err
3646  rm -f conftest.er1
3647  cat conftest.err >&5
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); } &&
3650         { ac_try='test -z "$ac_f77_werror_flag"
3651                         || test ! -s conftest.err'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; } &&
3657         { ac_try='test -s conftest$ac_exeext'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; }; then
3663  :
3664else
3665  echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668coin_add_fflags="-i_dynamic $coin_add_fflags"
3669fi
3670rm -f conftest.err conftest.$ac_objext \
3671      conftest$ac_exeext conftest.$ac_ext
3672            ;;
3673          pgf77* | */pgf77* | pgf90* | */pgf90*)
3674            coin_opt_fflags="-fast"
3675            coin_add_fflags="-Kieee -pc 64"
3676            coin_dbg_fflags="-g"
3677          ;;
3678        esac
3679        ;;
3680      *-ibm-*)
3681        case "$F77" in
3682          xlf* | */xlf* | mpxlf* | */mpxlf* )
3683            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3684            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3685            coin_dbg_fflags="-g -C"
3686            ;;
3687        esac
3688        ;;
3689      *-hp-*)
3690        coin_opt_fflags="+O3"
3691        coin_add_fflags="+U77"
3692        coin_dbg_fflags="-C -g"
3693        ;;
3694      *-*-solaris*)
3695        coin_opt_fflags="-O4"
3696        coin_dbg_fflags="-g"
3697        ;;
3698      *-sgi-*)
3699        coin_opt_fflags="-O5 -OPT:Olimit=0"
3700        coin_dbg_fflags="-g"
3701        ;;
3702    esac
3703  fi
3704
3705  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3706    coin_dbg_fflags="-g"
3707  fi
3708
3709  if test -z "$coin_opt_fflags"; then
3710    # Try if -O option works if nothing else is set
3711    FFLAGS=-O
3712    cat >conftest.$ac_ext <<_ACEOF
3713      program main
3714      integer i
3715      end
3716_ACEOF
3717rm -f conftest.$ac_objext conftest$ac_exeext
3718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3719  (eval $ac_link) 2>conftest.er1
3720  ac_status=$?
3721  grep -v '^ *+' conftest.er1 >conftest.err
3722  rm -f conftest.er1
3723  cat conftest.err >&5
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); } &&
3726         { ac_try='test -z "$ac_f77_werror_flag"
3727                         || test ! -s conftest.err'
3728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729  (eval $ac_try) 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); }; } &&
3733         { ac_try='test -s conftest$ac_exeext'
3734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735  (eval $ac_try) 2>&5
3736  ac_status=$?
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); }; }; then
3739  coin_opt_fflags="-O"
3740else
3741  echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744fi
3745rm -f conftest.err conftest.$ac_objext \
3746      conftest$ac_exeext conftest.$ac_ext
3747  fi
3748
3749  # if PM doesn't want the warning messages, take them out
3750  if test x"$coin_skip_warn_fflags" = xyes; then
3751    coin_warn_fflags=
3752  fi
3753
3754  if test x${DBG_FFLAGS+set} != xset; then
3755    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3756  fi
3757  if test x${OPT_FFLAGS+set} != xset; then
3758    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3759  fi
3760
3761  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3762  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3763
3764  if test "$coin_debug_compile" = "true"; then
3765    FFLAGS="$DBG_FFLAGS"
3766  else
3767    FFLAGS="$OPT_FFLAGS"
3768  fi
3769else
3770  FFLAGS="$FFLAGS $ADD_FFLAGS"
3771  if test x${DBG_FFLAGS+set} != xset; then
3772    DBG_FFLAGS="$FFLAGS"
3773  fi
3774  if test x${OPT_FFLAGS+set} != xset; then
3775    OPT_FFLAGS="$FFLAGS"
3776  fi
3777fi
3778
3779# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3780case "$FFLAGS" in
3781  *-mno-cygwin*)
3782    if test x${CPPFLAGS+set} != xset ; then
3783      CPPFLAGS="-mno-cygwin"
3784    else
3785      case "$CPPFLAGS" in
3786        *-mno-cygwin*)
3787          ;;
3788        *)
3789          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3790          ;;
3791      esac
3792    fi ;;
3793esac
3794
3795# Try if FFLAGS works
3796if test "$F77" != "unavailable" ; then
3797  cat >conftest.$ac_ext <<_ACEOF
3798      program main
3799      integer i
3800      end
3801_ACEOF
3802rm -f conftest.$ac_objext conftest$ac_exeext
3803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3804  (eval $ac_link) 2>conftest.er1
3805  ac_status=$?
3806  grep -v '^ *+' conftest.er1 >conftest.err
3807  rm -f conftest.er1
3808  cat conftest.err >&5
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); } &&
3811         { ac_try='test -z "$ac_f77_werror_flag"
3812                         || test ! -s conftest.err'
3813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814  (eval $ac_try) 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }; } &&
3818         { ac_try='test -s conftest$ac_exeext'
3819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820  (eval $ac_try) 2>&5
3821  ac_status=$?
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); }; }; then
3824  :
3825else
3826  echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829FFLAGS=
3830fi
3831rm -f conftest.err conftest.$ac_objext \
3832      conftest$ac_exeext conftest.$ac_ext
3833  if test -z "$FFLAGS"; then
3834    { 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
3835echo "$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;}
3836    FFLAGS='-O'
3837    cat >conftest.$ac_ext <<_ACEOF
3838      program main
3839      integer i
3840      end
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844  (eval $ac_link) 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } &&
3851         { ac_try='test -z "$ac_f77_werror_flag"
3852                         || test ! -s conftest.err'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; } &&
3858         { ac_try='test -s conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  :
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869FFLAGS=
3870fi
3871rm -f conftest.err conftest.$ac_objext \
3872      conftest$ac_exeext conftest.$ac_ext
3873    if test -z "$FFLAGS"; then
3874      { 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
3875echo "$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;}
3876    fi
3877  fi
3878fi
3879
3880{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3881echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3882
3883
3884if test x"$MPIF77" = x; then :; else
3885  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3886echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3887  F77="$MPIF77"
3888fi
3889
3890# correct the LD variable if we use the intel fortran compiler in windows
3891case "$F77" in
3892  ifort* | */ifort* | IFORT* | */IFORT*)
3893    case $build in
3894  *-mingw*)
3895    if test "${LD+set}" = set; then :; else
3896      LD=link
3897    fi
3898    ;;
3899 esac
3900 case $enable_doscompile in
3901   msvc)
3902     if test "x${LD+set}" = xset; then :; else
3903       LD=link
3904     fi
3905     ;;
3906 esac
3907
3908    ;;
3909esac
3910
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917
3918
3919# Get the linker flags (FLIBS) that are required for linking against this blas library
3920
3921# get FLIBS
3922ac_ext=f
3923ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3924ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3926echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3927echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3928if test "${ac_cv_prog_f77_v+set}" = set; then
3929  echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931  cat >conftest.$ac_ext <<_ACEOF
3932      program main
3933
3934      end
3935_ACEOF
3936rm -f conftest.$ac_objext
3937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938  (eval $ac_compile) 2>conftest.er1
3939  ac_status=$?
3940  grep -v '^ *+' conftest.er1 >conftest.err
3941  rm -f conftest.er1
3942  cat conftest.err >&5
3943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944  (exit $ac_status); } &&
3945         { ac_try='test -z "$ac_f77_werror_flag"
3946                         || test ! -s conftest.err'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; } &&
3952         { ac_try='test -s conftest.$ac_objext'
3953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954  (eval $ac_try) 2>&5
3955  ac_status=$?
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); }; }; then
3958  ac_cv_prog_f77_v=
3959# Try some options frequently used verbose output
3960for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3961  cat >conftest.$ac_ext <<_ACEOF
3962      program main
3963
3964      end
3965_ACEOF
3966
3967# Compile and link our simple test program by passing a flag (argument
3968# 1 to this macro) to the Fortran compiler in order to get
3969# "verbose" output that we can then parse for the Fortran linker
3970# flags.
3971ac_save_FFLAGS=$FFLAGS
3972FFLAGS="$FFLAGS $ac_verb"
3973(eval echo $as_me:3973: \"$ac_link\") >&5
3974ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3975echo "$ac_f77_v_output" >&5
3976FFLAGS=$ac_save_FFLAGS
3977
3978rm -f conftest*
3979
3980# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3981# /foo, /bar, and /baz are search directories for the Fortran linker.
3982# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3983ac_f77_v_output="`echo $ac_f77_v_output |
3984        grep 'LPATH is:' |
3985        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3986
3987case $ac_f77_v_output in
3988  # If we are using xlf then replace all the commas with spaces.
3989  *xlfentry*)
3990    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3991
3992  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3993  # $LIBS confuse us, and the libraries appear later in the output anyway).
3994  *mGLOB_options_string*)
3995    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3996
3997  # If we are using Cray Fortran then delete quotes.
3998  # Use "\"" instead of '"' for font-lock-mode.
3999  # FIXME: a more general fix for quoted arguments with spaces?
4000  *cft90*)
4001    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4002esac
4003
4004
4005  # look for -l* and *.a constructs in the output
4006  for ac_arg in $ac_f77_v_output; do
4007     case $ac_arg in
4008        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4009          ac_cv_prog_f77_v=$ac_verb
4010          break 2 ;;
4011     esac
4012  done
4013done
4014if test -z "$ac_cv_prog_f77_v"; then
4015   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4016echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4017fi
4018else
4019  echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
4022{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4023echo "$as_me: WARNING: compilation failed" >&2;}
4024fi
4025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4026
4027fi
4028echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4029echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4030echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4031echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4032if test "${ac_cv_f77_libs+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  if test "x$FLIBS" != "x"; then
4036  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4037else
4038
4039cat >conftest.$ac_ext <<_ACEOF
4040      program main
4041
4042      end
4043_ACEOF
4044
4045# Compile and link our simple test program by passing a flag (argument
4046# 1 to this macro) to the Fortran compiler in order to get
4047# "verbose" output that we can then parse for the Fortran linker
4048# flags.
4049ac_save_FFLAGS=$FFLAGS
4050FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4051(eval echo $as_me:4051: \"$ac_link\") >&5
4052ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4053echo "$ac_f77_v_output" >&5
4054FFLAGS=$ac_save_FFLAGS
4055
4056rm -f conftest*
4057
4058# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4059# /foo, /bar, and /baz are search directories for the Fortran linker.
4060# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4061ac_f77_v_output="`echo $ac_f77_v_output |
4062        grep 'LPATH is:' |
4063        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4064
4065case $ac_f77_v_output in
4066  # If we are using xlf then replace all the commas with spaces.
4067  *xlfentry*)
4068    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4069
4070  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4071  # $LIBS confuse us, and the libraries appear later in the output anyway).
4072  *mGLOB_options_string*)
4073    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4074
4075  # If we are using Cray Fortran then delete quotes.
4076  # Use "\"" instead of '"' for font-lock-mode.
4077  # FIXME: a more general fix for quoted arguments with spaces?
4078  *cft90*)
4079    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4080esac
4081
4082
4083
4084ac_cv_f77_libs=
4085
4086# Save positional arguments (if any)
4087ac_save_positional="$@"
4088
4089set X $ac_f77_v_output
4090while test $# != 1; do
4091  shift
4092  ac_arg=$1
4093  case $ac_arg in
4094        [\\/]*.a | ?:[\\/]*.a)
4095            ac_exists=false
4096  for ac_i in $ac_cv_f77_libs; do
4097    if test x"$ac_arg" = x"$ac_i"; then
4098      ac_exists=true
4099      break
4100    fi
4101  done
4102
4103  if test x"$ac_exists" = xtrue; then
4104  :
4105else
4106  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4107fi
4108
4109          ;;
4110        -bI:*)
4111            ac_exists=false
4112  for ac_i in $ac_cv_f77_libs; do
4113    if test x"$ac_arg" = x"$ac_i"; then
4114      ac_exists=true
4115      break
4116    fi
4117  done
4118
4119  if test x"$ac_exists" = xtrue; then
4120  :
4121else
4122  if test "$ac_compiler_gnu" = yes; then
4123  for ac_link_opt in $ac_arg; do
4124    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4125  done
4126else
4127  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4128fi
4129fi
4130
4131          ;;
4132          # Ignore these flags.
4133        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4134          ;;
4135        -lkernel32)
4136          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4137          ;;
4138        -[LRuY])
4139          # These flags, when seen by themselves, take an argument.
4140          # We remove the space between option and argument and re-iterate
4141          # unless we find an empty arg or a new option (starting with -)
4142          case $2 in
4143             "" | -*);;
4144             *)
4145                ac_arg="$ac_arg$2"
4146                shift; shift
4147                set X $ac_arg "$@"
4148                ;;
4149          esac
4150          ;;
4151        -YP,*)
4152          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4153              ac_exists=false
4154  for ac_i in $ac_cv_f77_libs; do
4155    if test x"$ac_j" = x"$ac_i"; then
4156      ac_exists=true
4157      break
4158    fi
4159  done
4160
4161  if test x"$ac_exists" = xtrue; then
4162  :
4163else
4164  ac_arg="$ac_arg $ac_j"
4165                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4166fi
4167
4168          done
4169          ;;
4170        -[lLR]*)
4171            ac_exists=false
4172  for ac_i in $ac_cv_f77_libs; do
4173    if test x"$ac_arg" = x"$ac_i"; then
4174      ac_exists=true
4175      break
4176    fi
4177  done
4178
4179  if test x"$ac_exists" = xtrue; then
4180  :
4181else
4182  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4183fi
4184
4185          ;;
4186          # Ignore everything else.
4187  esac
4188done
4189# restore positional arguments
4190set X $ac_save_positional; shift
4191
4192# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4193# then we insist that the "run path" must be an absolute path (i.e. it
4194# must begin with a "/").
4195case `(uname -sr) 2>/dev/null` in
4196   "SunOS 5"*)
4197      ac_ld_run_path=`echo $ac_f77_v_output |
4198                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4199      test "x$ac_ld_run_path" != x &&
4200        if test "$ac_compiler_gnu" = yes; then
4201  for ac_link_opt in $ac_ld_run_path; do
4202    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4203  done
4204else
4205  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4206fi
4207      ;;
4208esac
4209fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4210
4211fi
4212echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4213echo "${ECHO_T}$ac_cv_f77_libs" >&6
4214FLIBS="$ac_cv_f77_libs"
4215
4216
4217ac_ext=c
4218ac_cpp='$CPP $CPPFLAGS'
4219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222
4223orig_FLIBS="$FLIBS"
4224
4225# If FLIBS has been set by the user, we just restore its value here
4226if test x"$save_FLIBS" != x; then
4227  FLIBS="$save_FLIBS"
4228else
4229  # This is to correct a missing exclusion in autoconf 2.59
4230  if test x"$FLIBS" != x; then
4231    my_flibs=
4232    for flag in $FLIBS; do
4233      case $flag in
4234        -lcrt*.o) ;;
4235        -lcygwin) ;;
4236               *) my_flibs="$my_flibs $flag" ;;
4237      esac
4238    done
4239    FLIBS="$my_flibs"
4240  fi
4241
4242  case $build in
4243  # The following is a fix to define FLIBS for ifort on Windows
4244  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4245  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4246  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4247  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4248  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4249     *-cygwin* | *-mingw*)
4250       case "$F77" in
4251#         ifort* | */ifort* | IFORT* | */IFORT*)
4252#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4253#           if "$coin_debug_compile" = true ; then
4254#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4255#           else
4256#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4257#           fi
4258#           ;;
4259         compile_f2c*)
4260           FLIBS=`$F77 -FLIBS` ;;
4261       esac;;
4262     *-hp-*)
4263         FLIBS="$FLIBS -lm";;
4264     *-ibm-*)
4265         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4266     *-linux-*)
4267       case "$F77" in
4268         pgf77* | */pgf77* | pgf90* | */pgf90*)
4269# ask linker to go through the archives multiple times
4270# (the Fortran compiler seems to do that automatically...)
4271           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4272       esac
4273  esac
4274  ac_cv_f77_libs="$FLIBS"
4275fi
4276
4277if test "x$orig_FLIBS" != "x$FLIBS" ; then
4278  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4279echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4280fi
4281
4282ac_ext=f
4283ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4284ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4286
4287echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4288echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4289if test "${ac_cv_f77_dummy_main+set}" = set; then
4290  echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292  ac_f77_dm_save_LIBS=$LIBS
4293 LIBS="$LIBS $FLIBS"
4294 ac_fortran_dm_var=F77_DUMMY_MAIN
4295 ac_ext=c
4296ac_cpp='$CPP $CPPFLAGS'
4297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300
4301 # First, try linking without a dummy main:
4302 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h.  */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h.  */
4308
4309#ifdef F77_DUMMY_MAIN
4310
4311#  ifdef __cplusplus
4312     extern "C"
4313#  endif
4314   int F77_DUMMY_MAIN() { return 1; }
4315
4316#endif
4317int
4318main ()
4319{
4320
4321  ;
4322  return 0;
4323}
4324_ACEOF
4325rm -f conftest.$ac_objext conftest$ac_exeext
4326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327  (eval $ac_link) 2>conftest.er1
4328  ac_status=$?
4329  grep -v '^ *+' conftest.er1 >conftest.err
4330  rm -f conftest.er1
4331  cat conftest.err >&5
4332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333  (exit $ac_status); } &&
4334         { ac_try='test -z "$ac_c_werror_flag"
4335                         || test ! -s conftest.err'
4336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337  (eval $ac_try) 2>&5
4338  ac_status=$?
4339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340  (exit $ac_status); }; } &&
4341         { ac_try='test -s conftest$ac_exeext'
4342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343  (eval $ac_try) 2>&5
4344  ac_status=$?
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); }; }; then
4347  ac_cv_fortran_dummy_main=none
4348else
4349  echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352ac_cv_fortran_dummy_main=unknown
4353fi
4354rm -f conftest.err conftest.$ac_objext \
4355      conftest$ac_exeext conftest.$ac_ext
4356
4357 if test $ac_cv_fortran_dummy_main = unknown; then
4358   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4359     cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h.  */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h.  */
4365#define $ac_fortran_dm_var $ac_func
4366#ifdef F77_DUMMY_MAIN
4367
4368#  ifdef __cplusplus
4369     extern "C"
4370#  endif
4371   int F77_DUMMY_MAIN() { return 1; }
4372
4373#endif
4374int
4375main ()
4376{
4377
4378  ;
4379  return 0;
4380}
4381_ACEOF
4382rm -f conftest.$ac_objext conftest$ac_exeext
4383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4384  (eval $ac_link) 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } &&
4391         { ac_try='test -z "$ac_c_werror_flag"
4392                         || test ! -s conftest.err'
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); }; } &&
4398         { ac_try='test -s conftest$ac_exeext'
4399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400  (eval $ac_try) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }; }; then
4404  ac_cv_fortran_dummy_main=$ac_func; break
4405else
4406  echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409fi
4410rm -f conftest.err conftest.$ac_objext \
4411      conftest$ac_exeext conftest.$ac_ext
4412   done
4413 fi
4414 ac_ext=f
4415ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4416ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4418 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4419 rm -f conftest*
4420 LIBS=$ac_f77_dm_save_LIBS
4421
4422fi
4423echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4424echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4425F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4426if test "$F77_DUMMY_MAIN" != unknown; then
4427  if test $F77_DUMMY_MAIN != none; then
4428
4429cat >>confdefs.h <<_ACEOF
4430#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4431_ACEOF
4432
4433  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4434
4435cat >>confdefs.h <<\_ACEOF
4436#define FC_DUMMY_MAIN_EQ_F77 1
4437_ACEOF
4438
4439  fi
4440fi
4441else
4442  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4443See \`config.log' for more details." >&5
4444echo "$as_me: error: linking to Fortran libraries from C fails
4445See \`config.log' for more details." >&2;}
4446   { (exit 1); exit 1; }; }
4447fi
4448
4449
4450ac_ext=f
4451ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4452ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4454
4455ac_ext=f
4456ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4457ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4459echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4460echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4461if test "${ac_cv_f77_mangling+set}" = set; then
4462  echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464  cat >conftest.$ac_ext <<_ACEOF
4465      subroutine foobar()
4466      return
4467      end
4468      subroutine foo_bar()
4469      return
4470      end
4471_ACEOF
4472rm -f conftest.$ac_objext
4473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474  (eval $ac_compile) 2>conftest.er1
4475  ac_status=$?
4476  grep -v '^ *+' conftest.er1 >conftest.err
4477  rm -f conftest.er1
4478  cat conftest.err >&5
4479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480  (exit $ac_status); } &&
4481         { ac_try='test -z "$ac_f77_werror_flag"
4482                         || test ! -s conftest.err'
4483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484  (eval $ac_try) 2>&5
4485  ac_status=$?
4486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487  (exit $ac_status); }; } &&
4488         { ac_try='test -s conftest.$ac_objext'
4489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490  (eval $ac_try) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; }; then
4494  mv conftest.$ac_objext cfortran_test.$ac_objext
4495
4496  ac_save_LIBS=$LIBS
4497  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4498
4499  ac_ext=c
4500ac_cpp='$CPP $CPPFLAGS'
4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504  ac_success=no
4505  for ac_foobar in foobar FOOBAR; do
4506    for ac_underscore in "" "_"; do
4507      ac_func="$ac_foobar$ac_underscore"
4508      cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h.  */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h.  */
4514
4515/* Override any gcc2 internal prototype to avoid an error.  */
4516#ifdef __cplusplus
4517extern "C"
4518#endif
4519/* We use char because int might match the return type of a gcc2
4520   builtin and then its argument prototype would still apply.  */
4521char $ac_func ();
4522#ifdef F77_DUMMY_MAIN
4523
4524#  ifdef __cplusplus
4525     extern "C"
4526#  endif
4527   int F77_DUMMY_MAIN() { return 1; }
4528
4529#endif
4530int
4531main ()
4532{
4533$ac_func ();
4534  ;
4535  return 0;
4536}
4537_ACEOF
4538rm -f conftest.$ac_objext conftest$ac_exeext
4539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540  (eval $ac_link) 2>conftest.er1
4541  ac_status=$?
4542  grep -v '^ *+' conftest.er1 >conftest.err
4543  rm -f conftest.er1
4544  cat conftest.err >&5
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); } &&
4547         { ac_try='test -z "$ac_c_werror_flag"
4548                         || test ! -s conftest.err'
4549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550  (eval $ac_try) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); }; } &&
4554         { ac_try='test -s conftest$ac_exeext'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; }; then
4560  ac_success=yes; break 2
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565fi
4566rm -f conftest.err conftest.$ac_objext \
4567      conftest$ac_exeext conftest.$ac_ext
4568    done
4569  done
4570  ac_ext=f
4571ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4572ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4574
4575  if test "$ac_success" = "yes"; then
4576     case $ac_foobar in
4577        foobar)
4578           ac_case=lower
4579           ac_foo_bar=foo_bar
4580           ;;
4581        FOOBAR)
4582           ac_case=upper
4583           ac_foo_bar=FOO_BAR
4584           ;;
4585     esac
4586
4587     ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592     ac_success_extra=no
4593     for ac_extra in "" "_"; do
4594        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4595        cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h.  */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h.  */
4601
4602/* Override any gcc2 internal prototype to avoid an error.  */
4603#ifdef __cplusplus
4604extern "C"
4605#endif
4606/* We use char because int might match the return type of a gcc2
4607   builtin and then its argument prototype would still apply.  */
4608char $ac_func ();
4609#ifdef F77_DUMMY_MAIN
4610
4611#  ifdef __cplusplus
4612     extern "C"
4613#  endif
4614   int F77_DUMMY_MAIN() { return 1; }
4615
4616#endif
4617int
4618main ()
4619{
4620$ac_func ();
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext conftest$ac_exeext
4626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4627  (eval $ac_link) 2>conftest.er1
4628  ac_status=$?
4629  grep -v '^ *+' conftest.er1 >conftest.err
4630  rm -f conftest.er1
4631  cat conftest.err >&5
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); } &&
4634         { ac_try='test -z "$ac_c_werror_flag"
4635                         || test ! -s conftest.err'
4636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637  (eval $ac_try) 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; } &&
4641         { ac_try='test -s conftest$ac_exeext'
4642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643  (eval $ac_try) 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }; }; then
4647  ac_success_extra=yes; break
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652fi
4653rm -f conftest.err conftest.$ac_objext \
4654      conftest$ac_exeext conftest.$ac_ext
4655     done
4656     ac_ext=f
4657ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4658ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4660
4661     if test "$ac_success_extra" = "yes"; then
4662        ac_cv_f77_mangling="$ac_case case"
4663        if test -z "$ac_underscore"; then
4664           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4665        else
4666           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4667        fi
4668        if test -z "$ac_extra"; then
4669           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4670        else
4671           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4672        fi
4673      else
4674        ac_cv_f77_mangling="unknown"
4675      fi
4676  else
4677     ac_cv_f77_mangling="unknown"
4678  fi
4679
4680  LIBS=$ac_save_LIBS
4681  rm -f cfortran_test* conftest*
4682else
4683  echo "$as_me: failed program was:" >&5
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
4686{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4687See \`config.log' for more details." >&5
4688echo "$as_me: error: cannot compile a simple Fortran program
4689See \`config.log' for more details." >&2;}
4690   { (exit 1); exit 1; }; }
4691fi
4692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4693
4694fi
4695echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4696echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4697
4698ac_ext=f
4699ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4700ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4702
4703
4704ac_ext=f
4705ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4706ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4708
4709ac_ext=f
4710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4713
4714
4715case $ac_cv_f77_mangling in
4716  "lower case, no underscore, no extra underscore")
4717          cat >>confdefs.h <<\_ACEOF
4718#define F77_FUNC(name,NAME) name
4719_ACEOF
4720
4721          cat >>confdefs.h <<\_ACEOF
4722#define F77_FUNC_(name,NAME) name
4723_ACEOF
4724 ;;
4725  "lower case, no underscore, extra underscore")
4726          cat >>confdefs.h <<\_ACEOF
4727#define F77_FUNC(name,NAME) name
4728_ACEOF
4729
4730          cat >>confdefs.h <<\_ACEOF
4731#define F77_FUNC_(name,NAME) name ## _
4732_ACEOF
4733 ;;
4734  "lower case, underscore, no extra underscore")
4735          cat >>confdefs.h <<\_ACEOF
4736#define F77_FUNC(name,NAME) name ## _
4737_ACEOF
4738
4739          cat >>confdefs.h <<\_ACEOF
4740#define F77_FUNC_(name,NAME) name ## _
4741_ACEOF
4742 ;;
4743  "lower case, underscore, extra underscore")
4744          cat >>confdefs.h <<\_ACEOF
4745#define F77_FUNC(name,NAME) name ## _
4746_ACEOF
4747
4748          cat >>confdefs.h <<\_ACEOF
4749#define F77_FUNC_(name,NAME) name ## __
4750_ACEOF
4751 ;;
4752  "upper case, no underscore, no extra underscore")
4753          cat >>confdefs.h <<\_ACEOF
4754#define F77_FUNC(name,NAME) NAME
4755_ACEOF
4756
4757          cat >>confdefs.h <<\_ACEOF
4758#define F77_FUNC_(name,NAME) NAME
4759_ACEOF
4760 ;;
4761  "upper case, no underscore, extra underscore")
4762          cat >>confdefs.h <<\_ACEOF
4763#define F77_FUNC(name,NAME) NAME
4764_ACEOF
4765
4766          cat >>confdefs.h <<\_ACEOF
4767#define F77_FUNC_(name,NAME) NAME ## _
4768_ACEOF
4769 ;;
4770  "upper case, underscore, no extra underscore")
4771          cat >>confdefs.h <<\_ACEOF
4772#define F77_FUNC(name,NAME) NAME ## _
4773_ACEOF
4774
4775          cat >>confdefs.h <<\_ACEOF
4776#define F77_FUNC_(name,NAME) NAME ## _
4777_ACEOF
4778 ;;
4779  "upper case, underscore, extra underscore")
4780          cat >>confdefs.h <<\_ACEOF
4781#define F77_FUNC(name,NAME) NAME ## _
4782_ACEOF
4783
4784          cat >>confdefs.h <<\_ACEOF
4785#define F77_FUNC_(name,NAME) NAME ## __
4786_ACEOF
4787 ;;
4788  *)
4789          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4790echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4791          ;;
4792esac
4793
4794ac_ext=f
4795ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4796ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804
4805
4806
4807
4808# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4809BLAS_PCLIBS="$FLIBS"
4810
4811
4812# Check if pkg-config is available (to setup addlibs file)
4813
4814
4815# Check whether --enable-pkg-config or --disable-pkg-config was given.
4816if test "${enable_pkg_config+set}" = set; then
4817  enableval="$enable_pkg_config"
4818  use_pkgconfig="$enableval"
4819else
4820  use_pkgconfig=yes
4821fi;
4822
4823if test $use_pkgconfig = yes ; then
4824  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4825    if test -n "$ac_tool_prefix"; then
4826  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4827set dummy ${ac_tool_prefix}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_PKG_CONFIG+set}" = set; then
4831  echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833  case $PKG_CONFIG in
4834  [\\/]* | ?:[\\/]*)
4835  ac_cv_path_PKG_CONFIG="$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_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
4855PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4856
4857if test -n "$PKG_CONFIG"; then
4858  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4859echo "${ECHO_T}$PKG_CONFIG" >&6
4860else
4861  echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863fi
4864
4865fi
4866if test -z "$ac_cv_path_PKG_CONFIG"; then
4867  ac_pt_PKG_CONFIG=$PKG_CONFIG
4868  # Extract the first word of "pkg-config", so it can be a program name with args.
4869set dummy pkg-config; ac_word=$2
4870echo "$as_me:$LINENO: checking for $ac_word" >&5
4871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4872if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4873  echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875  case $ac_pt_PKG_CONFIG in
4876  [\\/]* | ?:[\\/]*)
4877  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4878  ;;
4879  *)
4880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883  IFS=$as_save_IFS
4884  test -z "$as_dir" && as_dir=.
4885  for ac_exec_ext in '' $ac_executable_extensions; do
4886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889    break 2
4890  fi
4891done
4892done
4893
4894  ;;
4895esac
4896fi
4897ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4898
4899if test -n "$ac_pt_PKG_CONFIG"; then
4900  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4901echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4902else
4903  echo "$as_me:$LINENO: result: no" >&5
4904echo "${ECHO_T}no" >&6
4905fi
4906
4907  PKG_CONFIG=$ac_pt_PKG_CONFIG
4908else
4909  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4910fi
4911
4912  fi
4913  if test -n "$PKG_CONFIG"; then
4914    _pkg_min_version=0.16.0
4915    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4916echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4917    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4918      echo "$as_me:$LINENO: result: yes" >&5
4919echo "${ECHO_T}yes" >&6
4920    else
4921      echo "$as_me:$LINENO: result: no" >&5
4922echo "${ECHO_T}no" >&6
4923      PKG_CONFIG=""
4924    fi
4925  fi
4926
4927  # check if pkg-config supports the short-errors flag
4928  if test -n "$PKG_CONFIG" && \
4929    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4930    pkg_short_errors=" --short-errors "
4931  else
4932    pkg_short_errors=""
4933  fi
4934fi
4935
4936
4937
4938if test -n "$PKG_CONFIG"; then
4939  COIN_HAS_PKGCONFIG_TRUE=
4940  COIN_HAS_PKGCONFIG_FALSE='#'
4941else
4942  COIN_HAS_PKGCONFIG_TRUE='#'
4943  COIN_HAS_PKGCONFIG_FALSE=
4944fi
4945
4946
4947
4948# assemble pkg-config search path for installed projects
4949COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4950
4951# 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
4952# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4953# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4954if test "x${prefix}" = xNONE ; then
4955  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4956else
4957  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4958fi
4959
4960
4961# Check whether --with-coin-instdir or --without-coin-instdir was given.
4962if test "${with_coin_instdir+set}" = set; then
4963  withval="$with_coin_instdir"
4964  if test -d "$withval"; then : ; else
4965     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4966echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4967   { (exit 1); exit 1; }; }
4968   fi
4969   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4970
4971fi;
4972
4973
4974
4975# assemble additional pkg-config search paths for uninstalled projects
4976if test x$coin_projectdir = xyes ; then
4977  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4978  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4979  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4980  # 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)
4981  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4982  if test -e ../coin_subdirs.txt ; then
4983    for i in `cat ../coin_subdirs.txt` ; do
4984      if test -d ../$i ; then
4985        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4986      fi
4987      if test -d ../$i/pkgconfig ; then
4988        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4989      fi
4990    done
4991  fi
4992
4993  if test -e ../../coin_subdirs.txt ; then
4994    for i in `cat ../../coin_subdirs.txt` ; do
4995      if test -d ../../$i ; then
4996        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4997      fi
4998      if test -d ../../$i/pkgconfig ; then
4999        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5000      fi
5001    done
5002  fi
5003
5004
5005fi
5006
5007if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5008  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
5009echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
5010fi
5011
5012
5013
5014# Initialize automake
5015{
5016
5017
5018
5019# START
5020
5021# Test if force_shared has been set
5022if test "x" = xforce_shared; then
5023  if test x$enable_shared = xno; then
5024    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5025echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5026   { (exit 1); exit 1; }; }
5027  fi
5028  enable_shared=yes;
5029else
5030  # On Cygwin and AIX, building DLLs doesn't work
5031  case $build in
5032    *-cygwin*)
5033      coin_disable_shared=yes
5034      platform=Cygwin
5035    ;;
5036    *-aix*)
5037      coin_disable_shared=yes
5038      platform=AIX
5039    ;;
5040    *-mingw*)
5041      coin_disable_shared=yes
5042      platform="Msys"
5043#      case "$CXX" in
5044#        cl*)
5045#          coin_disable_shared=yes
5046#          platform="Msys with cl"
5047#      ;;
5048#      esac
5049    ;;
5050  esac
5051fi
5052if test x"$coin_disable_shared" = xyes; then
5053  if test x"$enable_shared" = xyes; then
5054    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5055echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5056  fi
5057  enable_shared=no
5058fi
5059# By default, we only want the shared objects to be compiled
5060# Check whether --enable-static or --disable-static was given.
5061if test "${enable_static+set}" = set; then
5062  enableval="$enable_static"
5063  p=${PACKAGE-default}
5064    case $enableval in
5065    yes) enable_static=yes ;;
5066    no) enable_static=no ;;
5067    *)
5068     enable_static=no
5069      # Look at the argument we got.  We use all the common list separators.
5070      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5071      for pkg in $enableval; do
5072        IFS="$lt_save_ifs"
5073        if test "X$pkg" = "X$p"; then
5074          enable_static=yes
5075        fi
5076      done
5077      IFS="$lt_save_ifs"
5078      ;;
5079    esac
5080else
5081  enable_static=no
5082fi;
5083
5084
5085
5086
5087# Initialize automake
5088echo "$as_me:$LINENO: checking for egrep" >&5
5089echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5090if test "${ac_cv_prog_egrep+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5094    then ac_cv_prog_egrep='grep -E'
5095    else ac_cv_prog_egrep='egrep'
5096    fi
5097fi
5098echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5099echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5100 EGREP=$ac_cv_prog_egrep
5101
5102
5103echo "$as_me:$LINENO: checking whether ln -s works" >&5
5104echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5105LN_S=$as_ln_s
5106if test "$LN_S" = "ln -s"; then
5107  echo "$as_me:$LINENO: result: yes" >&5
5108echo "${ECHO_T}yes" >&6
5109else
5110  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5111echo "${ECHO_T}no, using $LN_S" >&6
5112fi
5113
5114am__api_version="1.9"
5115# Find a good install program.  We prefer a C program (faster),
5116# so one script is as good as another.  But avoid the broken or
5117# incompatible versions:
5118# SysV /etc/install, /usr/sbin/install
5119# SunOS /usr/etc/install
5120# IRIX /sbin/install
5121# AIX /bin/install
5122# AmigaOS /C/install, which installs bootblocks on floppy discs
5123# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5124# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5125# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5126# OS/2's system install, which has a completely different semantic
5127# ./install, which can be erroneously created by make from ./install.sh.
5128echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5129echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5130if test -z "$INSTALL"; then
5131if test "${ac_cv_path_install+set}" = set; then
5132  echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137  IFS=$as_save_IFS
5138  test -z "$as_dir" && as_dir=.
5139  # Account for people who put trailing slashes in PATH elements.
5140case $as_dir/ in
5141  ./ | .// | /cC/* | \
5142  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5143  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5144  /usr/ucb/* ) ;;
5145  *)
5146    # OSF1 and SCO ODT 3.0 have their own names for install.
5147    # Don't use installbsd from OSF since it installs stuff as root
5148    # by default.
5149    for ac_prog in ginstall scoinst install; do
5150      for ac_exec_ext in '' $ac_executable_extensions; do
5151        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5152          if test $ac_prog = install &&
5153            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5154            # AIX install.  It has an incompatible calling convention.
5155            :
5156          elif test $ac_prog = install &&
5157            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5158            # program-specific install script used by HP pwplus--don't use.
5159            :
5160          else
5161            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5162            break 3
5163          fi
5164        fi
5165      done
5166    done
5167    ;;
5168esac
5169done
5170
5171
5172fi
5173  if test "${ac_cv_path_install+set}" = set; then
5174    INSTALL=$ac_cv_path_install
5175  else
5176    # As a last resort, use the slow shell script.  We don't cache a
5177    # path for INSTALL within a source directory, because that will
5178    # break other packages using the cache if that directory is
5179    # removed, or if the path is relative.
5180    INSTALL=$ac_install_sh
5181  fi
5182fi
5183echo "$as_me:$LINENO: result: $INSTALL" >&5
5184echo "${ECHO_T}$INSTALL" >&6
5185
5186# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5187# It thinks the first close brace ends the variable substitution.
5188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5189
5190test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5191
5192test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5193
5194echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5195echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5196# Just in case
5197sleep 1
5198echo timestamp > conftest.file
5199# Do `set' in a subshell so we don't clobber the current shell's
5200# arguments.  Must try -L first in case configure is actually a
5201# symlink; some systems play weird games with the mod time of symlinks
5202# (eg FreeBSD returns the mod time of the symlink's containing
5203# directory).
5204if (
5205   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5206   if test "$*" = "X"; then
5207      # -L didn't work.
5208      set X `ls -t $srcdir/configure conftest.file`
5209   fi
5210   rm -f conftest.file
5211   if test "$*" != "X $srcdir/configure conftest.file" \
5212      && test "$*" != "X conftest.file $srcdir/configure"; then
5213
5214      # If neither matched, then we have a broken ls.  This can happen
5215      # if, for instance, CONFIG_SHELL is bash and it inherits a
5216      # broken ls alias from the environment.  This has actually
5217      # happened.  Such a system could not be considered "sane".
5218      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5219alias in your environment" >&5
5220echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5221alias in your environment" >&2;}
5222   { (exit 1); exit 1; }; }
5223   fi
5224
5225   test "$2" = conftest.file
5226   )
5227then
5228   # Ok.
5229   :
5230else
5231   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5232Check your system clock" >&5
5233echo "$as_me: error: newly created file is older than distributed files!
5234Check your system clock" >&2;}
5235   { (exit 1); exit 1; }; }
5236fi
5237echo "$as_me:$LINENO: result: yes" >&5
5238echo "${ECHO_T}yes" >&6
5239test "$program_prefix" != NONE &&
5240  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5241# Use a double $ so make ignores it.
5242test "$program_suffix" != NONE &&
5243  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5244# Double any \ or $.  echo might interpret backslashes.
5245# By default was `s,x,x', remove it if useless.
5246cat <<\_ACEOF >conftest.sed
5247s/[\\$]/&&/g;s/;s,x,x,$//
5248_ACEOF
5249program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5250rm conftest.sed
5251
5252# expand $ac_aux_dir to an absolute path
5253am_aux_dir=`cd $ac_aux_dir && pwd`
5254
5255test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5256# Use eval to expand $SHELL
5257if eval "$MISSING --run true"; then
5258  am_missing_run="$MISSING --run "
5259else
5260  am_missing_run=
5261  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5262echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5263fi
5264
5265if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5266  # We used to keeping the `.' as first argument, in order to
5267  # allow $(mkdir_p) to be used without argument.  As in
5268  #   $(mkdir_p) $(somedir)
5269  # where $(somedir) is conditionally defined.  However this is wrong
5270  # for two reasons:
5271  #  1. if the package is installed by a user who cannot write `.'
5272  #     make install will fail,
5273  #  2. the above comment should most certainly read
5274  #     $(mkdir_p) $(DESTDIR)$(somedir)
5275  #     so it does not work when $(somedir) is undefined and
5276  #     $(DESTDIR) is not.
5277  #  To support the latter case, we have to write
5278  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5279  #  so the `.' trick is pointless.
5280  mkdir_p='mkdir -p --'
5281else
5282  # On NextStep and OpenStep, the `mkdir' command does not
5283  # recognize any option.  It will interpret all options as
5284  # directories to create, and then abort because `.' already
5285  # exists.
5286  for d in ./-p ./--version;
5287  do
5288    test -d $d && rmdir $d
5289  done
5290  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5291  if test -f "$ac_aux_dir/mkinstalldirs"; then
5292    mkdir_p='$(mkinstalldirs)'
5293  else
5294    mkdir_p='$(install_sh) -d'
5295  fi
5296fi
5297
5298for ac_prog in gawk mawk nawk awk
5299do
5300  # Extract the first word of "$ac_prog", so it can be a program name with args.
5301set dummy $ac_prog; ac_word=$2
5302echo "$as_me:$LINENO: checking for $ac_word" >&5
5303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304if test "${ac_cv_prog_AWK+set}" = set; then
5305  echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307  if test -n "$AWK"; then
5308  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  test -z "$as_dir" && as_dir=.
5315  for ac_exec_ext in '' $ac_executable_extensions; do
5316  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317    ac_cv_prog_AWK="$ac_prog"
5318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319    break 2
5320  fi
5321done
5322done
5323
5324fi
5325fi
5326AWK=$ac_cv_prog_AWK
5327if test -n "$AWK"; then
5328  echo "$as_me:$LINENO: result: $AWK" >&5
5329echo "${ECHO_T}$AWK" >&6
5330else
5331  echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333fi
5334
5335  test -n "$AWK" && break
5336done
5337
5338echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5339echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5340set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5341if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5342  echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344  cat >conftest.make <<\_ACEOF
5345all:
5346        @echo 'ac_maketemp="$(MAKE)"'
5347_ACEOF
5348# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5349eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5350if test -n "$ac_maketemp"; then
5351  eval ac_cv_prog_make_${ac_make}_set=yes
5352else
5353  eval ac_cv_prog_make_${ac_make}_set=no
5354fi
5355rm -f conftest.make
5356fi
5357if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5358  echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360  SET_MAKE=
5361else
5362  echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
5364  SET_MAKE="MAKE=${MAKE-make}"
5365fi
5366
5367rm -rf .tst 2>/dev/null
5368mkdir .tst 2>/dev/null
5369if test -d .tst; then
5370  am__leading_dot=.
5371else
5372  am__leading_dot=_
5373fi
5374rmdir .tst 2>/dev/null
5375
5376DEPDIR="${am__leading_dot}deps"
5377
5378          ac_config_commands="$ac_config_commands depfiles"
5379
5380
5381am_make=${MAKE-make}
5382cat > confinc << 'END'
5383am__doit:
5384        @echo done
5385.PHONY: am__doit
5386END
5387# If we don't find an include directive, just comment out the code.
5388echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5389echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5390am__include="#"
5391am__quote=
5392_am_result=none
5393# First try GNU make style include.
5394echo "include confinc" > confmf
5395# We grep out `Entering directory' and `Leaving directory'
5396# messages which can occur if `w' ends up in MAKEFLAGS.
5397# In particular we don't look at `^make:' because GNU make might
5398# be invoked under some other name (usually "gmake"), in which
5399# case it prints its new name instead of `make'.
5400if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5401   am__include=include
5402   am__quote=
5403   _am_result=GNU
5404fi
5405# Now try BSD make style include.
5406if test "$am__include" = "#"; then
5407   echo '.include "confinc"' > confmf
5408   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5409      am__include=.include
5410      am__quote="\""
5411      _am_result=BSD
5412   fi
5413fi
5414
5415
5416echo "$as_me:$LINENO: result: $_am_result" >&5
5417echo "${ECHO_T}$_am_result" >&6
5418rm -f confinc confmf
5419
5420# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5421if test "${enable_dependency_tracking+set}" = set; then
5422  enableval="$enable_dependency_tracking"
5423
5424fi;
5425if test "x$enable_dependency_tracking" != xno; then
5426  am_depcomp="$ac_aux_dir/depcomp"
5427  AMDEPBACKSLASH='\'
5428fi
5429
5430
5431if test "x$enable_dependency_tracking" != xno; then
5432  AMDEP_TRUE=
5433  AMDEP_FALSE='#'
5434else
5435  AMDEP_TRUE='#'
5436  AMDEP_FALSE=
5437fi
5438
5439
5440
5441
5442
5443
5444# AC_MSG_NOTICE([Beginning automake initialisation.])
5445# Stuff for automake
5446# test to see if srcdir already configured
5447if test "`cd $srcdir && pwd`" != "`pwd`" &&
5448   test -f $srcdir/config.status; then
5449  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5450echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5451   { (exit 1); exit 1; }; }
5452fi
5453
5454# test whether we have cygpath
5455if test -z "$CYGPATH_W"; then
5456  if (cygpath --version) >/dev/null 2>/dev/null; then
5457    CYGPATH_W='cygpath -w'
5458  else
5459    CYGPATH_W=echo
5460  fi
5461fi
5462
5463
5464# Define the identity of the package.
5465 PACKAGE='thirdpartyblas'
5466 VERSION='trunk'
5467
5468
5469cat >>confdefs.h <<_ACEOF
5470#define PACKAGE "$PACKAGE"
5471_ACEOF
5472
5473
5474cat >>confdefs.h <<_ACEOF
5475#define VERSION "$VERSION"
5476_ACEOF
5477
5478# Some tools Automake needs.
5479
5480ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5481
5482
5483AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5484
5485
5486AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5487
5488
5489AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5490
5491
5492MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5493
5494install_sh=${install_sh-"$am_aux_dir/install-sh"}
5495
5496# Installed binaries are usually stripped using `strip' when the user
5497# run `make install-strip'.  However `strip' might not be the right
5498# tool to use in cross-compilation environments, therefore Automake
5499# will honor the `STRIP' environment variable to overrule this program.
5500if test "$cross_compiling" != no; then
5501  if test -n "$ac_tool_prefix"; then
5502  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}strip; ac_word=$2
5504echo "$as_me:$LINENO: checking for $ac_word" >&5
5505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506if test "${ac_cv_prog_STRIP+set}" = set; then
5507  echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509  if test -n "$STRIP"; then
5510  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515  IFS=$as_save_IFS
5516  test -z "$as_dir" && as_dir=.
5517  for ac_exec_ext in '' $ac_executable_extensions; do
5518  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521    break 2
5522  fi
5523done
5524done
5525
5526fi
5527fi
5528STRIP=$ac_cv_prog_STRIP
5529if test -n "$STRIP"; then
5530  echo "$as_me:$LINENO: result: $STRIP" >&5
5531echo "${ECHO_T}$STRIP" >&6
5532else
5533  echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535fi
5536
5537fi
5538if test -z "$ac_cv_prog_STRIP"; then
5539  ac_ct_STRIP=$STRIP
5540  # Extract the first word of "strip", so it can be a program name with args.
5541set dummy strip; ac_word=$2
5542echo "$as_me:$LINENO: checking for $ac_word" >&5
5543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5545  echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547  if test -n "$ac_ct_STRIP"; then
5548  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553  IFS=$as_save_IFS
5554  test -z "$as_dir" && as_dir=.
5555  for ac_exec_ext in '' $ac_executable_extensions; do
5556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557    ac_cv_prog_ac_ct_STRIP="strip"
5558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5559    break 2
5560  fi
5561done
5562done
5563
5564  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5565fi
5566fi
5567ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5568if test -n "$ac_ct_STRIP"; then
5569  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5570echo "${ECHO_T}$ac_ct_STRIP" >&6
5571else
5572  echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575
5576  STRIP=$ac_ct_STRIP
5577else
5578  STRIP="$ac_cv_prog_STRIP"
5579fi
5580
5581fi
5582INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5583
5584# We need awk for the "check" target.  The system "awk" is bad on
5585# some platforms.
5586# Always define AMTAR for backward compatibility.
5587
5588AMTAR=${AMTAR-"${am_missing_run}tar"}
5589
5590am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5591
5592
5593
5594
5595depcc="$CC"   am_compiler_list=
5596
5597echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5598echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5599if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5603  # We make a subdir and do the tests there.  Otherwise we can end up
5604  # making bogus files that we don't know about and never remove.  For
5605  # instance it was reported that on HP-UX the gcc test will end up
5606  # making a dummy file named `D' -- because `-MD' means `put the output
5607  # in D'.
5608  mkdir conftest.dir
5609  # Copy depcomp to subdir because otherwise we won't find it if we're
5610  # using a relative directory.
5611  cp "$am_depcomp" conftest.dir
5612  cd conftest.dir
5613  # We will build objects and dependencies in a subdirectory because
5614  # it helps to detect inapplicable dependency modes.  For instance
5615  # both Tru64's cc and ICC support -MD to output dependencies as a
5616  # side effect of compilation, but ICC will put the dependencies in
5617  # the current directory while Tru64 will put them in the object
5618  # directory.
5619  mkdir sub
5620
5621  am_cv_CC_dependencies_compiler_type=none
5622  if test "$am_compiler_list" = ""; then
5623     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5624  fi
5625  for depmode in $am_compiler_list; do
5626    # Setup a source with many dependencies, because some compilers
5627    # like to wrap large dependency lists on column 80 (with \), and
5628    # we should not choose a depcomp mode which is confused by this.
5629    #
5630    # We need to recreate these files for each test, as the compiler may
5631    # overwrite some of them when testing with obscure command lines.
5632    # This happens at least with the AIX C compiler.
5633    : > sub/conftest.c
5634    for i in 1 2 3 4 5 6; do
5635      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5636      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5637      # Solaris 8's {/usr,}/bin/sh.
5638      touch sub/conftst$i.h
5639    done
5640    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5641
5642    case $depmode in
5643    nosideeffect)
5644      # after this tag, mechanisms are not by side-effect, so they'll
5645      # only be used when explicitly requested
5646      if test "x$enable_dependency_tracking" = xyes; then
5647        continue
5648      else
5649        break
5650      fi
5651      ;;
5652    none) break ;;
5653    esac
5654    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5655    # mode.  It turns out that the SunPro C++ compiler does not properly
5656    # handle `-M -o', and we need to detect this.
5657    if depmode=$depmode \
5658       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5659       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5660       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5661         >/dev/null 2>conftest.err &&
5662       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5663       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5664       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5665      # icc doesn't choke on unknown options, it will just issue warnings
5666      # or remarks (even with -Werror).  So we grep stderr for any message
5667      # that says an option was ignored or not supported.
5668      # When given -MP, icc 7.0 and 7.1 complain thusly:
5669      #   icc: Command line warning: ignoring option '-M'; no argument required
5670      # The diagnosis changed in icc 8.0:
5671      #   icc: Command line remark: option '-MP' not supported
5672      if (grep 'ignoring option' conftest.err ||
5673          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5674        am_cv_CC_dependencies_compiler_type=$depmode
5675        break
5676      fi
5677    fi
5678  done
5679
5680  cd ..
5681  rm -rf conftest.dir
5682else
5683  am_cv_CC_dependencies_compiler_type=none
5684fi
5685
5686fi
5687echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5688echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5689CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5690
5691
5692
5693if
5694  test "x$enable_dependency_tracking" != xno \
5695  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5696  am__fastdepCC_TRUE=
5697  am__fastdepCC_FALSE='#'
5698else
5699  am__fastdepCC_TRUE='#'
5700  am__fastdepCC_FALSE=
5701fi
5702
5703
5704
5705echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5706echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5707    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5708if test "${enable_maintainer_mode+set}" = set; then
5709  enableval="$enable_maintainer_mode"
5710  USE_MAINTAINER_MODE=$enableval
5711else
5712  USE_MAINTAINER_MODE=no
5713fi;
5714  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5715echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5716
5717
5718if test $USE_MAINTAINER_MODE = yes; then
5719  MAINTAINER_MODE_TRUE=
5720  MAINTAINER_MODE_FALSE='#'
5721else
5722  MAINTAINER_MODE_TRUE='#'
5723  MAINTAINER_MODE_FALSE=
5724fi
5725
5726  MAINT=$MAINTAINER_MODE_TRUE
5727
5728
5729
5730coin_have_externals=no
5731if test "$enable_maintainer_mode" = yes; then
5732
5733  # If maintainer mode is chosen, we make sure that the correct versions
5734  # of the tools are used, and that we know where libtool.m4 is (to
5735  # recreate acinclude.m4)
5736
5737
5738  LIBTOOLM4=
5739  # Normally, $HOME
5740  AUTOTOOLS_DFLT=$HOME
5741
5742  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5743echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5744if test "${ac_cv_use_correct_autotools+set}" = set; then
5745  echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747  ac_cv_use_correct_autotools=check
5748fi
5749echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5750echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5751
5752  if test $ac_cv_use_correct_autotools = check; then
5753    ac_cv_use_correct_autotools=yes
5754    # Check if we have autoconf
5755    # Extract the first word of "autoconf", so it can be a program name with args.
5756set dummy autoconf; ac_word=$2
5757echo "$as_me:$LINENO: checking for $ac_word" >&5
5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5759if test "${ac_cv_prog_have_autoconf+set}" = set; then
5760  echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762  if test -n "$have_autoconf"; then
5763  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  test -z "$as_dir" && as_dir=.
5770  for ac_exec_ext in '' $ac_executable_extensions; do
5771  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772    ac_cv_prog_have_autoconf="yes"
5773    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5774    break 2
5775  fi
5776done
5777done
5778
5779  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5780fi
5781fi
5782have_autoconf=$ac_cv_prog_have_autoconf
5783if test -n "$have_autoconf"; then
5784  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5785echo "${ECHO_T}$have_autoconf" >&6
5786else
5787  echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789fi
5790
5791    if test $have_autoconf = no; then
5792      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5793echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5794   { (exit 1); exit 1; }; }
5795    fi
5796
5797    # Check whether autoconf is the correct version
5798    correct_version='2.59'
5799    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5800    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5801echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5802    autoconf --version > confauto.out 2>&1
5803    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5804      echo "$as_me:$LINENO: result: yes" >&5
5805echo "${ECHO_T}yes" >&6
5806    else
5807      rm -f confauto.out
5808      echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6
5810      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5811echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5812   { (exit 1); exit 1; }; }
5813    fi
5814    rm -f confauto.out
5815
5816    # Check if the executable autoconf is picked up from the correct location
5817    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5818echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5819    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5820    autoconf_dir=`cd $autoconf_dir; pwd`
5821    if test x$AUTOTOOLS_DIR = x; then
5822      want_dir=$AUTOTOOLS_DFLT/bin
5823    else
5824      want_dir=$AUTOTOOLS_DIR/bin
5825    fi
5826    if test $autoconf_dir = `cd $want_dir; pwd`; then
5827      echo "$as_me:$LINENO: result: yes" >&5
5828echo "${ECHO_T}yes" >&6
5829    else
5830      rm -f confauto.out
5831      echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
5833      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5834echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5835   { (exit 1); exit 1; }; }
5836    fi
5837
5838    # Check if we have automake
5839    # Extract the first word of "automake", so it can be a program name with args.
5840set dummy automake; ac_word=$2
5841echo "$as_me:$LINENO: checking for $ac_word" >&5
5842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5843if test "${ac_cv_prog_have_automake+set}" = set; then
5844  echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
5846  if test -n "$have_automake"; then
5847  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5848else
5849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850for as_dir in $PATH
5851do
5852  IFS=$as_save_IFS
5853  test -z "$as_dir" && as_dir=.
5854  for ac_exec_ext in '' $ac_executable_extensions; do
5855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856    ac_cv_prog_have_automake="yes"
5857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5858    break 2
5859  fi
5860done
5861done
5862
5863  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5864fi
5865fi
5866have_automake=$ac_cv_prog_have_automake
5867if test -n "$have_automake"; then
5868  echo "$as_me:$LINENO: result: $have_automake" >&5
5869echo "${ECHO_T}$have_automake" >&6
5870else
5871  echo "$as_me:$LINENO: result: no" >&5
5872echo "${ECHO_T}no" >&6
5873fi
5874
5875    if test $have_automake = no; then
5876      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5877echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5878   { (exit 1); exit 1; }; }
5879    fi
5880
5881    # Check whether automake is the correct version
5882    correct_version='1.9.6'
5883    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5884    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5885echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5886    automake --version > confauto.out 2>&1
5887    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5888      echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890    else
5891      rm -f confauto.out
5892      echo "$as_me:$LINENO: result: no" >&5
5893echo "${ECHO_T}no" >&6
5894      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5895echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5896   { (exit 1); exit 1; }; }
5897    fi
5898    rm -f confauto.out
5899
5900    # Check if the executable automake is picked up from the correct location
5901    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5902echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5903    automake_dir=`which automake | sed -e 's=/automake=='`
5904    automake_dir=`cd $automake_dir; pwd`
5905    if test x$AUTOTOOLS_DIR = x; then
5906      want_dir=$AUTOTOOLS_DFLT/bin
5907    else
5908      want_dir=$AUTOTOOLS_DIR/bin
5909    fi
5910    if test $automake_dir = `cd $want_dir; pwd`; then
5911      echo "$as_me:$LINENO: result: yes" >&5
5912echo "${ECHO_T}yes" >&6
5913    else
5914      rm -f confauto.out
5915      echo "$as_me:$LINENO: result: no" >&5
5916echo "${ECHO_T}no" >&6
5917      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5918echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5919   { (exit 1); exit 1; }; }
5920    fi
5921
5922    # Check if this is the correct version of libtool (with escaped dots)
5923    if test x$AUTOTOOLS_DIR = x; then
5924      want_dir=$AUTOTOOLS_DFLT/share
5925    else
5926      want_dir=$AUTOTOOLS_DIR/share
5927    fi
5928    correct_version='1.5.22'
5929    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5930    if test -r $want_dir/libtool/ltmain.sh; then
5931  have_ltmain=yes
5932  :
5933else
5934  have_ltmain=no
5935  :
5936fi
5937
5938    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5939echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5940    if test $have_ltmain = yes; then
5941    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5942        echo "$as_me:$LINENO: result: yes" >&5
5943echo "${ECHO_T}yes" >&6
5944      else
5945        echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
5947        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5948echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5949   { (exit 1); exit 1; }; }
5950      fi
5951    else
5952      echo "$as_me:$LINENO: result: no" >&5
5953echo "${ECHO_T}no" >&6
5954      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5955echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5956   { (exit 1); exit 1; }; }
5957    fi
5958  fi
5959
5960  # Check if we can find the libtool file
5961  if test x$AUTOTOOLS_DIR = x; then
5962    want_dir=$AUTOTOOLS_DFLT/share
5963  else
5964    want_dir=$AUTOTOOLS_DIR/share
5965  fi
5966  if test -r $want_dir/aclocal/libtool.m4; then
5967  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5968  :
5969else
5970  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5971echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5972   { (exit 1); exit 1; }; }
5973  :
5974fi
5975
5976
5977  # Check if we have an Dependencies file
5978  if test -r $srcdir/Dependencies; then
5979    coin_have_externals=yes
5980  fi
5981  # Check if subversion is installed and understands https
5982  # Extract the first word of "svn", so it can be a program name with args.
5983set dummy svn; ac_word=$2
5984echo "$as_me:$LINENO: checking for $ac_word" >&5
5985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986if test "${ac_cv_prog_have_svn+set}" = set; then
5987  echo $ECHO_N "(cached) $ECHO_C" >&6
5988else
5989  if test -n "$have_svn"; then
5990  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5991else
5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993for as_dir in $PATH
5994do
5995  IFS=$as_save_IFS
5996  test -z "$as_dir" && as_dir=.
5997  for ac_exec_ext in '' $ac_executable_extensions; do
5998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999    ac_cv_prog_have_svn="yes"
6000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001    break 2
6002  fi
6003done
6004done
6005
6006  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6007fi
6008fi
6009have_svn=$ac_cv_prog_have_svn
6010if test -n "$have_svn"; then
6011  echo "$as_me:$LINENO: result: $have_svn" >&5
6012echo "${ECHO_T}$have_svn" >&6
6013else
6014  echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
6016fi
6017
6018  if test x$have_svn = xyes; then
6019    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6020echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6021if test "${ac_cv_svn_understands_https+set}" = set; then
6022  echo $ECHO_N "(cached) $ECHO_C" >&6
6023else
6024  svn --version > confauto.out 2>&1
6025                    if $EGREP https confauto.out >/dev/null 2>&1; then
6026                      ac_cv_svn_understands_https=yes
6027                    else
6028                      ac_cv_svn_understands_https=no
6029                      have_svn=no
6030                      ac_cv_prog_have_svn=no
6031                    fi
6032                    rm -f confauto.out
6033fi
6034echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6035echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6036  fi
6037
6038  # Find the location of the BuildTools directory
6039  BUILDTOOLSDIR=
6040  if test -r $srcdir/BuildTools/coin.m4; then
6041    BUILDTOOLSDIR=$srcdir/BuildTools
6042  else
6043    if test -r $srcdir/../BuildTools/coin.m4; then
6044      BUILDTOOLSDIR=$srcdir/../BuildTools
6045    else
6046      if test -r $srcdir/../../BuildTools/coin.m4; then
6047        BUILDTOOLSDIR=$srcdir/../../BuildTools
6048      else
6049        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6050echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6051   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6052      fi
6053    fi
6054  fi
6055
6056
6057  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6058  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6059    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6060  fi
6061
6062  # The following variable is set to the name of the directory where
6063  # the autotool scripts are located
6064
6065  AUX_DIR=$ac_aux_dir
6066fi
6067
6068# helpful variable for the base directory of this package
6069abs_source_dir=`cd $srcdir; pwd`
6070
6071
6072# Stuff for example Makefiles
6073if test x$prefix = xNONE; then
6074  full_prefix=$ac_default_prefix
6075else
6076  full_prefix=$prefix
6077fi
6078full_prefix=`cd $full_prefix ; pwd`
6079
6080abs_lib_dir=$full_prefix/lib
6081
6082abs_include_dir=$full_prefix/include
6083
6084abs_bin_dir=$full_prefix/bin
6085
6086
6087
6088if test $coin_have_externals = yes && test x$have_svn = xyes; then
6089  HAVE_EXTERNALS_TRUE=
6090  HAVE_EXTERNALS_FALSE='#'
6091else
6092  HAVE_EXTERNALS_TRUE='#'
6093  HAVE_EXTERNALS_FALSE=
6094fi
6095
6096
6097# AC_MSG_NOTICE([End automake initialisation.])
6098
6099
6100
6101LIBTOOL=
6102if test -r ../libtool; then
6103  coin_config_dir=..
6104  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6105fi
6106if test "x$LIBTOOL" = x; then
6107  if test -r ../../libtool; then
6108    coin_config_dir=../..
6109    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6110  fi
6111fi
6112
6113if test "x$LIBTOOL" = x; then
6114# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6115  # Stuff for libtool
6116  # Check whether --enable-shared or --disable-shared was given.
6117if test "${enable_shared+set}" = set; then
6118  enableval="$enable_shared"
6119  p=${PACKAGE-default}
6120    case $enableval in
6121    yes) enable_shared=yes ;;
6122    no) enable_shared=no ;;
6123    *)
6124      enable_shared=no
6125      # Look at the argument we got.  We use all the common list separators.
6126      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6127      for pkg in $enableval; do
6128        IFS="$lt_save_ifs"
6129        if test "X$pkg" = "X$p"; then
6130          enable_shared=yes
6131        fi
6132      done
6133      IFS="$lt_save_ifs"
6134      ;;
6135    esac
6136else
6137  enable_shared=yes
6138fi;
6139
6140# Check whether --enable-fast-install or --disable-fast-install was given.
6141if test "${enable_fast_install+set}" = set; then
6142  enableval="$enable_fast_install"
6143  p=${PACKAGE-default}
6144    case $enableval in
6145    yes) enable_fast_install=yes ;;
6146    no) enable_fast_install=no ;;
6147    *)
6148      enable_fast_install=no
6149      # Look at the argument we got.  We use all the common list separators.
6150      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6151      for pkg in $enableval; do
6152        IFS="$lt_save_ifs"
6153        if test "X$pkg" = "X$p"; then
6154          enable_fast_install=yes
6155        fi
6156      done
6157      IFS="$lt_save_ifs"
6158      ;;
6159    esac
6160else
6161  enable_fast_install=yes
6162fi;
6163
6164echo "$as_me:$LINENO: checking host system type" >&5
6165echo $ECHO_N "checking host system type... $ECHO_C" >&6
6166if test "${ac_cv_host+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  ac_cv_host_alias=$host_alias
6170test -z "$ac_cv_host_alias" &&
6171  ac_cv_host_alias=$ac_cv_build_alias
6172ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6173  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6174echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6175   { (exit 1); exit 1; }; }
6176
6177fi
6178echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6179echo "${ECHO_T}$ac_cv_host" >&6
6180host=$ac_cv_host
6181host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6182host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6183host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6184
6185
6186echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6187echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6188if test "${lt_cv_path_SED+set}" = set; then
6189  echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191  # Loop through the user's path and test for sed and gsed.
6192# Then use that list of sed's as ones to test for truncation.
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  test -z "$as_dir" && as_dir=.
6198  for lt_ac_prog in sed gsed; do
6199    for ac_exec_ext in '' $ac_executable_extensions; do
6200      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6201        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6202      fi
6203    done
6204  done
6205done
6206lt_ac_max=0
6207lt_ac_count=0
6208# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6209# along with /bin/sed that truncates output.
6210for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6211  test ! -f $lt_ac_sed && continue
6212  cat /dev/null > conftest.in
6213  lt_ac_count=0
6214  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6215  # Check for GNU sed and select it if it is found.
6216  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6217    lt_cv_path_SED=$lt_ac_sed
6218    break
6219  fi
6220  while true; do
6221    cat conftest.in conftest.in >conftest.tmp
6222    mv conftest.tmp conftest.in
6223    cp conftest.in conftest.nl
6224    echo >>conftest.nl
6225    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6226    cmp -s conftest.out conftest.nl || break
6227    # 10000 chars as input seems more than enough
6228    test $lt_ac_count -gt 10 && break
6229    lt_ac_count=`expr $lt_ac_count + 1`
6230    if test $lt_ac_count -gt $lt_ac_max; then
6231      lt_ac_max=$lt_ac_count
6232      lt_cv_path_SED=$lt_ac_sed
6233    fi
6234  done
6235done
6236
6237fi
6238
6239SED=$lt_cv_path_SED
6240echo "$as_me:$LINENO: result: $SED" >&5
6241echo "${ECHO_T}$SED" >&6
6242
6243
6244# Check whether --with-gnu-ld or --without-gnu-ld was given.
6245if test "${with_gnu_ld+set}" = set; then
6246  withval="$with_gnu_ld"
6247  test "$withval" = no || with_gnu_ld=yes
6248else
6249  with_gnu_ld=no
6250fi;
6251ac_prog=ld
6252if test "$GCC" = yes; then
6253  # Check if gcc -print-prog-name=ld gives a path.
6254  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6255echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6256  case $host in
6257  *-*-mingw*)
6258    # gcc leaves a trailing carriage return which upsets mingw
6259    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6260  *)
6261    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6262  esac
6263  case $ac_prog in
6264    # Accept absolute paths.
6265    [\\/]* | ?:[\\/]*)
6266      re_direlt='/[^/][^/]*/\.\./'
6267      # Canonicalize the pathname of ld
6268      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6269      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6270        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6271      done
6272      test -z "$LD" && LD="$ac_prog"
6273      ;;
6274  "")
6275    # If it fails, then pretend we aren't using GCC.
6276    ac_prog=ld
6277    ;;
6278  *)
6279    # If it is relative, then search for the first ld in PATH.
6280    with_gnu_ld=unknown
6281    ;;
6282  esac
6283elif test "$with_gnu_ld" = yes; then
6284  echo "$as_me:$LINENO: checking for GNU ld" >&5
6285echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6286else
6287  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6288echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6289fi
6290if test "${lt_cv_path_LD+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293  if test -z "$LD"; then
6294  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6295  for ac_dir in $PATH; do
6296    IFS="$lt_save_ifs"
6297    test -z "$ac_dir" && ac_dir=.
6298    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6299      lt_cv_path_LD="$ac_dir/$ac_prog"
6300      # Check to see if the program is GNU ld.  I'd rather use --version,
6301      # but apparently some variants of GNU ld only accept -v.
6302      # Break only if it was the GNU/non-GNU ld that we prefer.
6303      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6304      *GNU* | *'with BFD'*)
6305        test "$with_gnu_ld" != no && break
6306        ;;
6307      *)
6308        test "$with_gnu_ld" != yes && break
6309        ;;
6310      esac
6311    fi
6312  done
6313  IFS="$lt_save_ifs"
6314else
6315  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6316fi
6317fi
6318
6319LD="$lt_cv_path_LD"
6320if test -n "$LD"; then
6321  echo "$as_me:$LINENO: result: $LD" >&5
6322echo "${ECHO_T}$LD" >&6
6323else
6324  echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
6326fi
6327test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6328echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6329   { (exit 1); exit 1; }; }
6330echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6331echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6332if test "${lt_cv_prog_gnu_ld+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6336case `$LD -v 2>&1 </dev/null` in
6337*GNU* | *'with BFD'*)
6338  lt_cv_prog_gnu_ld=yes
6339  ;;
6340*)
6341  lt_cv_prog_gnu_ld=no
6342  ;;
6343esac
6344fi
6345echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6346echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6347with_gnu_ld=$lt_cv_prog_gnu_ld
6348
6349
6350echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6351echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6352if test "${lt_cv_ld_reload_flag+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  lt_cv_ld_reload_flag='-r'
6356fi
6357echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6358echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6359reload_flag=$lt_cv_ld_reload_flag
6360case $reload_flag in
6361"" | " "*) ;;
6362*) reload_flag=" $reload_flag" ;;
6363esac
6364reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365case $host_os in
6366  darwin*)
6367    if test "$GCC" = yes; then
6368      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369    else
6370      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371    fi
6372    ;;
6373esac
6374
6375echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6376echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6377if test "${lt_cv_path_NM+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  if test -n "$NM"; then
6381  # Let the user override the test.
6382  lt_cv_path_NM="$NM"
6383else
6384  lt_nm_to_check="${ac_tool_prefix}nm"
6385  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386    lt_nm_to_check="$lt_nm_to_check nm"
6387  fi
6388  for lt_tmp_nm in $lt_nm_to_check; do
6389    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6391      IFS="$lt_save_ifs"
6392      test -z "$ac_dir" && ac_dir=.
6393      tmp_nm="$ac_dir/$lt_tmp_nm"
6394      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395        # Check to see if the nm accepts a BSD-compat flag.
6396        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397        #   nm: unknown option "B" ignored
6398        # Tru64's nm complains that /dev/null is an invalid object file
6399        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400        */dev/null* | *'Invalid file or object type'*)
6401          lt_cv_path_NM="$tmp_nm -B"
6402          break
6403          ;;
6404        *)
6405          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6406          */dev/null*)
6407            lt_cv_path_NM="$tmp_nm -p"
6408            break
6409            ;;
6410          *)
6411            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412            continue # so that we can try to find one that supports BSD flags
6413            ;;
6414          esac
6415          ;;
6416        esac
6417      fi
6418    done
6419    IFS="$lt_save_ifs"
6420  done
6421  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6422fi
6423fi
6424echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6425echo "${ECHO_T}$lt_cv_path_NM" >&6
6426NM="$lt_cv_path_NM"
6427
6428echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6429echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6430if test "${lt_cv_deplibs_check_method+set}" = set; then
6431  echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433  lt_cv_file_magic_cmd='$MAGIC_CMD'
6434lt_cv_file_magic_test_file=
6435lt_cv_deplibs_check_method='unknown'
6436# Need to set the preceding variable on all platforms that support
6437# interlibrary dependencies.
6438# 'none' -- dependencies not supported.
6439# `unknown' -- same as none, but documents that we really don't know.
6440# 'pass_all' -- all dependencies passed with no checks.
6441# 'test_compile' -- check by making test program.
6442# 'file_magic [[regex]]' -- check by looking for files in library path
6443# which responds to the $file_magic_cmd with a given extended regex.
6444# If you have `file' or equivalent on your system and you're not sure
6445# whether `pass_all' will *always* work, you probably want this one.
6446
6447case $host_os in
6448aix4* | aix5*)
6449  lt_cv_deplibs_check_method=pass_all
6450  ;;
6451
6452beos*)
6453  lt_cv_deplibs_check_method=pass_all
6454  ;;
6455
6456bsdi[45]*)
6457  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6458  lt_cv_file_magic_cmd='/usr/bin/file -L'
6459  lt_cv_file_magic_test_file=/shlib/libc.so
6460  ;;
6461
6462cygwin*)
6463  # func_win32_libid is a shell function defined in ltmain.sh
6464  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6465  lt_cv_file_magic_cmd='func_win32_libid'
6466  ;;
6467
6468mingw* | pw32*)
6469  # Base MSYS/MinGW do not provide the 'file' command needed by
6470  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6471  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6472  lt_cv_file_magic_cmd='$OBJDUMP -f'
6473  ;;
6474
6475darwin* | rhapsody*)
6476  lt_cv_deplibs_check_method=pass_all
6477  ;;
6478
6479freebsd* | kfreebsd*-gnu | dragonfly*)
6480  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6481    case $host_cpu in
6482    i*86 )
6483      # Not sure whether the presence of OpenBSD here was a mistake.
6484      # Let's accept both of them until this is cleared up.
6485      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6486      lt_cv_file_magic_cmd=/usr/bin/file
6487      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6488      ;;
6489    esac
6490  else
6491    lt_cv_deplibs_check_method=pass_all
6492  fi
6493  ;;
6494
6495gnu*)
6496  lt_cv_deplibs_check_method=pass_all
6497  ;;
6498
6499hpux10.20* | hpux11*)
6500  lt_cv_file_magic_cmd=/usr/bin/file
6501  case $host_cpu in
6502  ia64*)
6503    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6504    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6505    ;;
6506  hppa*64*)
6507    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]'
6508    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6509    ;;
6510  *)
6511    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6512    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6513    ;;
6514  esac
6515  ;;
6516
6517interix3*)
6518  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6519  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6520  ;;
6521
6522irix5* | irix6* | nonstopux*)
6523  case $LD in
6524  *-32|*"-32 ") libmagic=32-bit;;
6525  *-n32|*"-n32 ") libmagic=N32;;
6526  *-64|*"-64 ") libmagic=64-bit;;
6527  *) libmagic=never-match;;
6528  esac
6529  lt_cv_deplibs_check_method=pass_all
6530  ;;
6531
6532# This must be Linux ELF.
6533linux*)
6534  lt_cv_deplibs_check_method=pass_all
6535  ;;
6536
6537netbsd*)
6538  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6539    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6540  else
6541    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6542  fi
6543  ;;
6544
6545newos6*)
6546  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6547  lt_cv_file_magic_cmd=/usr/bin/file
6548  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6549  ;;
6550
6551nto-qnx*)
6552  lt_cv_deplibs_check_method=unknown
6553  ;;
6554
6555openbsd*)
6556  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6557    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6558  else
6559    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6560  fi
6561  ;;
6562
6563osf3* | osf4* | osf5*)
6564  lt_cv_deplibs_check_method=pass_all
6565  ;;
6566
6567solaris*)
6568  lt_cv_deplibs_check_method=pass_all
6569  ;;
6570
6571sysv4 | sysv4.3*)
6572  case $host_vendor in
6573  motorola)
6574    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]'
6575    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6576    ;;
6577  ncr)
6578    lt_cv_deplibs_check_method=pass_all
6579    ;;
6580  sequent)
6581    lt_cv_file_magic_cmd='/bin/file'
6582    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6583    ;;
6584  sni)
6585    lt_cv_file_magic_cmd='/bin/file'
6586    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6587    lt_cv_file_magic_test_file=/lib/libc.so
6588    ;;
6589  siemens)
6590    lt_cv_deplibs_check_method=pass_all
6591    ;;
6592  pc)
6593    lt_cv_deplibs_check_method=pass_all
6594    ;;
6595  esac
6596  ;;
6597
6598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6599  lt_cv_deplibs_check_method=pass_all
6600  ;;
6601esac
6602
6603fi
6604echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6605echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6606file_magic_cmd=$lt_cv_file_magic_cmd
6607deplibs_check_method=$lt_cv_deplibs_check_method
6608test -z "$deplibs_check_method" && deplibs_check_method=unknown
6609
6610
6611
6612
6613# If no C compiler was specified, use CC.
6614LTCC=${LTCC-"$CC"}
6615
6616# If no C compiler flags were specified, use CFLAGS.
6617LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6618
6619# Allow CC to be a program name with arguments.
6620compiler=$CC
6621
6622# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6623if test "${enable_libtool_lock+set}" = set; then
6624  enableval="$enable_libtool_lock"
6625
6626fi;
6627test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6628
6629# Some flags need to be propagated to the compiler or linker for good
6630# libtool support.
6631case $host in
6632ia64-*-hpux*)
6633  # Find out which ABI we are using.
6634  echo 'int i;' > conftest.$ac_ext
6635  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636  (eval $ac_compile) 2>&5
6637  ac_status=$?
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); }; then
6640    case `/usr/bin/file conftest.$ac_objext` in
6641    *ELF-32*)
6642      HPUX_IA64_MODE="32"
6643      ;;
6644    *ELF-64*)
6645      HPUX_IA64_MODE="64"
6646      ;;
6647    esac
6648  fi
6649  rm -rf conftest*
6650  ;;
6651*-*-irix6*)
6652  # Find out which ABI we are using.
6653  echo '#line 6653 "configure"' > conftest.$ac_ext
6654  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655  (eval $ac_compile) 2>&5
6656  ac_status=$?
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); }; then
6659   if test "$lt_cv_prog_gnu_ld" = yes; then
6660    case `/usr/bin/file conftest.$ac_objext` in
6661    *32-bit*)
6662      LD="${LD-ld} -melf32bsmip"
6663      ;;
6664    *N32*)
6665      LD="${LD-ld} -melf32bmipn32"
6666      ;;
6667    *64-bit*)
6668      LD="${LD-ld} -melf64bmip"
6669      ;;
6670    esac
6671   else
6672    case `/usr/bin/file conftest.$ac_objext` in
6673    *32-bit*)
6674      LD="${LD-ld} -32"
6675      ;;
6676    *N32*)
6677      LD="${LD-ld} -n32"
6678      ;;
6679    *64-bit*)
6680      LD="${LD-ld} -64"
6681      ;;
6682    esac
6683   fi
6684  fi
6685  rm -rf conftest*
6686  ;;
6687
6688x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6689  # Find out which ABI we are using.
6690  echo 'int i;' > conftest.$ac_ext
6691  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692  (eval $ac_compile) 2>&5
6693  ac_status=$?
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); }; then
6696    case `/usr/bin/file conftest.o` in
6697    *32-bit*)
6698      case $host in
6699        x86_64-*linux*)
6700          LD="${LD-ld} -m elf_i386"
6701          ;;
6702        ppc64-*linux*|powerpc64-*linux*)
6703          LD="${LD-ld} -m elf32ppclinux"
6704          ;;
6705        s390x-*linux*)
6706          LD="${LD-ld} -m elf_s390"
6707          ;;
6708        sparc64-*linux*)
6709          LD="${LD-ld} -m elf32_sparc"
6710          ;;
6711      esac
6712      ;;
6713    *64-bit*)
6714      case $host in
6715        x86_64-*linux*)
6716          LD="${LD-ld} -m elf_x86_64"
6717          ;;
6718        ppc*-*linux*|powerpc*-*linux*)
6719          LD="${LD-ld} -m elf64ppc"
6720          ;;
6721        s390*-*linux*)
6722          LD="${LD-ld} -m elf64_s390"
6723          ;;
6724        sparc*-*linux*)
6725          LD="${LD-ld} -m elf64_sparc"
6726          ;;
6727      esac
6728      ;;
6729    esac
6730  fi
6731  rm -rf conftest*
6732  ;;
6733
6734*-*-sco3.2v5*)
6735  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6736  SAVE_CFLAGS="$CFLAGS"
6737  CFLAGS="$CFLAGS -belf"
6738  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6739echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6740if test "${lt_cv_cc_needs_belf+set}" = set; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  ac_ext=c
6744ac_cpp='$CPP $CPPFLAGS'
6745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6747ac_compiler_gnu=$ac_cv_c_compiler_gnu
6748
6749     cat >conftest.$ac_ext <<_ACEOF
6750/* confdefs.h.  */
6751_ACEOF
6752cat confdefs.h >>conftest.$ac_ext
6753cat >>conftest.$ac_ext <<_ACEOF
6754/* end confdefs.h.  */
6755
6756#ifdef F77_DUMMY_MAIN
6757
6758#  ifdef __cplusplus
6759     extern "C"
6760#  endif
6761   int F77_DUMMY_MAIN() { return 1; }
6762
6763#endif
6764int
6765main ()
6766{
6767
6768  ;
6769  return 0;
6770}
6771_ACEOF
6772rm -f conftest.$ac_objext conftest$ac_exeext
6773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774  (eval $ac_link) 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } &&
6781         { ac_try='test -z "$ac_c_werror_flag"
6782                         || test ! -s conftest.err'
6783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784  (eval $ac_try) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }; } &&
6788         { ac_try='test -s conftest$ac_exeext'
6789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790  (eval $ac_try) 2>&5
6791  ac_status=$?
6792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793  (exit $ac_status); }; }; then
6794  lt_cv_cc_needs_belf=yes
6795else
6796  echo "$as_me: failed program was:" >&5
6797sed 's/^/| /' conftest.$ac_ext >&5
6798
6799lt_cv_cc_needs_belf=no
6800fi
6801rm -f conftest.err conftest.$ac_objext \
6802      conftest$ac_exeext conftest.$ac_ext
6803     ac_ext=c
6804ac_cpp='$CPP $CPPFLAGS'
6805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808
6809fi
6810echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6811echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6812  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6813    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6814    CFLAGS="$SAVE_CFLAGS"
6815  fi
6816  ;;
6817sparc*-*solaris*)
6818  # Find out which ABI we are using.
6819  echo 'int i;' > conftest.$ac_ext
6820  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6821  (eval $ac_compile) 2>&5
6822  ac_status=$?
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; then
6825    case `/usr/bin/file conftest.o` in
6826    *64-bit*)
6827      case $lt_cv_prog_gnu_ld in
6828      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6829      *)    LD="${LD-ld} -64" ;;
6830      esac
6831      ;;
6832    esac
6833  fi
6834  rm -rf conftest*
6835  ;;
6836
6837
6838esac
6839
6840need_locks="$enable_libtool_lock"
6841
6842
6843ac_ext=c
6844ac_cpp='$CPP $CPPFLAGS'
6845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847ac_compiler_gnu=$ac_cv_c_compiler_gnu
6848echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6849echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6850# On Suns, sometimes $CPP names a directory.
6851if test -n "$CPP" && test -d "$CPP"; then
6852  CPP=
6853fi
6854if test -z "$CPP"; then
6855  if test "${ac_cv_prog_CPP+set}" = set; then
6856  echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858      # Double quotes because CPP needs to be expanded
6859    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6860    do
6861      ac_preproc_ok=false
6862for ac_c_preproc_warn_flag in '' yes
6863do
6864  # Use a header file that comes with gcc, so configuring glibc
6865  # with a fresh cross-compiler works.
6866  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6867  # <limits.h> exists even on freestanding compilers.
6868  # On the NeXT, cc -E runs the code through the compiler's parser,
6869  # not just through cpp. "Syntax error" is here to catch this case.
6870  cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876#ifdef __STDC__
6877# include <limits.h>
6878#else
6879# include <assert.h>
6880#endif
6881                     Syntax error
6882_ACEOF
6883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6884  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } >/dev/null; then
6891  if test -s conftest.err; then
6892    ac_cpp_err=$ac_c_preproc_warn_flag
6893    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6894  else
6895    ac_cpp_err=
6896  fi
6897else
6898  ac_cpp_err=yes
6899fi
6900if test -z "$ac_cpp_err"; then
6901  :
6902else
6903  echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
6906  # Broken: fails on valid input.
6907continue
6908fi
6909rm -f conftest.err conftest.$ac_ext
6910
6911  # OK, works on sane cases.  Now check whether non-existent headers
6912  # can be detected and how.
6913  cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h.  */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h.  */
6919#include <ac_nonexistent.h>
6920_ACEOF
6921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6922  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6923  ac_status=$?
6924  grep -v '^ *+' conftest.er1 >conftest.err
6925  rm -f conftest.er1
6926  cat conftest.err >&5
6927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928  (exit $ac_status); } >/dev/null; then
6929  if test -s conftest.err; then
6930    ac_cpp_err=$ac_c_preproc_warn_flag
6931    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6932  else
6933    ac_cpp_err=
6934  fi
6935else
6936  ac_cpp_err=yes
6937fi
6938if test -z "$ac_cpp_err"; then
6939  # Broken: success on invalid input.
6940continue
6941else
6942  echo "$as_me: failed program was:" >&5
6943sed 's/^/| /' conftest.$ac_ext >&5
6944
6945  # Passes both tests.
6946ac_preproc_ok=:
6947break
6948fi
6949rm -f conftest.err conftest.$ac_ext
6950
6951done
6952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6953rm -f conftest.err conftest.$ac_ext
6954if $ac_preproc_ok; then
6955  break
6956fi
6957
6958    done
6959    ac_cv_prog_CPP=$CPP
6960
6961fi
6962  CPP=$ac_cv_prog_CPP
6963else
6964  ac_cv_prog_CPP=$CPP
6965fi
6966echo "$as_me:$LINENO: result: $CPP" >&5
6967echo "${ECHO_T}$CPP" >&6
6968ac_preproc_ok=false
6969for ac_c_preproc_warn_flag in '' yes
6970do
6971  # Use a header file that comes with gcc, so configuring glibc
6972  # with a fresh cross-compiler works.
6973  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974  # <limits.h> exists even on freestanding compilers.
6975  # On the NeXT, cc -E runs the code through the compiler's parser,
6976  # not just through cpp. "Syntax error" is here to catch this case.
6977  cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h.  */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h.  */
6983#ifdef __STDC__
6984# include <limits.h>
6985#else
6986# include <assert.h>
6987#endif
6988                     Syntax error
6989_ACEOF
6990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6991  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6992  ac_status=$?
6993  grep -v '^ *+' conftest.er1 >conftest.err
6994  rm -f conftest.er1
6995  cat conftest.err >&5
6996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997  (exit $ac_status); } >/dev/null; then
6998  if test -s conftest.err; then
6999    ac_cpp_err=$ac_c_preproc_warn_flag
7000    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7001  else
7002    ac_cpp_err=
7003  fi
7004else
7005  ac_cpp_err=yes
7006fi
7007if test -z "$ac_cpp_err"; then
7008  :
7009else
7010  echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013  # Broken: fails on valid input.
7014continue
7015fi
7016rm -f conftest.err conftest.$ac_ext
7017
7018  # OK, works on sane cases.  Now check whether non-existent headers
7019  # can be detected and how.
7020  cat >conftest.$ac_ext <<_ACEOF
7021/* confdefs.h.  */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h.  */
7026#include <ac_nonexistent.h>
7027_ACEOF
7028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7029  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7030  ac_status=$?
7031  grep -v '^ *+' conftest.er1 >conftest.err
7032  rm -f conftest.er1
7033  cat conftest.err >&5
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); } >/dev/null; then
7036  if test -s conftest.err; then
7037    ac_cpp_err=$ac_c_preproc_warn_flag
7038    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7039  else
7040    ac_cpp_err=
7041  fi
7042else
7043  ac_cpp_err=yes
7044fi
7045if test -z "$ac_cpp_err"; then
7046  # Broken: success on invalid input.
7047continue
7048else
7049  echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
7052  # Passes both tests.
7053ac_preproc_ok=:
7054break
7055fi
7056rm -f conftest.err conftest.$ac_ext
7057
7058done
7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7060rm -f conftest.err conftest.$ac_ext
7061if $ac_preproc_ok; then
7062  :
7063else
7064  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7065See \`config.log' for more details." >&5
7066echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7067See \`config.log' for more details." >&2;}
7068   { (exit 1); exit 1; }; }
7069fi
7070
7071ac_ext=c
7072ac_cpp='$CPP $CPPFLAGS'
7073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076
7077
7078echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7079echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7080if test "${ac_cv_header_stdc+set}" = set; then
7081  echo $ECHO_N "(cached) $ECHO_C" >&6
7082else
7083  cat >conftest.$ac_ext <<_ACEOF
7084/* confdefs.h.  */
7085_ACEOF
7086cat confdefs.h >>conftest.$ac_ext
7087cat >>conftest.$ac_ext <<_ACEOF
7088/* end confdefs.h.  */
7089#include <stdlib.h>
7090#include <stdarg.h>
7091#include <string.h>
7092#include <float.h>
7093
7094#ifdef F77_DUMMY_MAIN
7095
7096#  ifdef __cplusplus
7097     extern "C"
7098#  endif
7099   int F77_DUMMY_MAIN() { return 1; }
7100
7101#endif
7102int
7103main ()
7104{
7105
7106  ;
7107  return 0;
7108}
7109_ACEOF
7110rm -f conftest.$ac_objext
7111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7112  (eval $ac_compile) 2>conftest.er1
7113  ac_status=$?
7114  grep -v '^ *+' conftest.er1 >conftest.err
7115  rm -f conftest.er1
7116  cat conftest.err >&5
7117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); } &&
7119         { ac_try='test -z "$ac_c_werror_flag"
7120                         || test ! -s conftest.err'
7121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122  (eval $ac_try) 2>&5
7123  ac_status=$?
7124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125  (exit $ac_status); }; } &&
7126         { ac_try='test -s conftest.$ac_objext'
7127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128  (eval $ac_try) 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }; }; then
7132  ac_cv_header_stdc=yes
7133else
7134  echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137ac_cv_header_stdc=no
7138fi
7139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7140
7141if test $ac_cv_header_stdc = yes; then
7142  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7143  cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h.  */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h.  */
7149#include <string.h>
7150
7151_ACEOF
7152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153  $EGREP "memchr" >/dev/null 2>&1; then
7154  :
7155else
7156  ac_cv_header_stdc=no
7157fi
7158rm -f conftest*
7159
7160fi
7161
7162if test $ac_cv_header_stdc = yes; then
7163  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7164  cat >conftest.$ac_ext <<_ACEOF
7165/* confdefs.h.  */
7166_ACEOF
7167cat confdefs.h >>conftest.$ac_ext
7168cat >>conftest.$ac_ext <<_ACEOF
7169/* end confdefs.h.  */
7170#include <stdlib.h>
7171
7172_ACEOF
7173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174  $EGREP "free" >/dev/null 2>&1; then
7175  :
7176else
7177  ac_cv_header_stdc=no
7178fi
7179rm -f conftest*
7180
7181fi
7182
7183if test $ac_cv_header_stdc = yes; then
7184  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7185  if test "$cross_compiling" = yes; then
7186  :
7187else
7188  cat >conftest.$ac_ext <<_ACEOF
7189/* confdefs.h.  */
7190_ACEOF
7191cat confdefs.h >>conftest.$ac_ext
7192cat >>conftest.$ac_ext <<_ACEOF
7193/* end confdefs.h.  */
7194#include <ctype.h>
7195#if ((' ' & 0x0FF) == 0x020)
7196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7198#else
7199# define ISLOWER(c) \
7200                   (('a' <= (c) && (c) <= 'i') \
7201                     || ('j' <= (c) && (c) <= 'r') \
7202                     || ('s' <= (c) && (c) <= 'z'))
7203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7204#endif
7205
7206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7207int
7208main ()
7209{
7210  int i;
7211  for (i = 0; i < 256; i++)
7212    if (XOR (islower (i), ISLOWER (i))
7213        || toupper (i) != TOUPPER (i))
7214      exit(2);
7215  exit (0);
7216}
7217_ACEOF
7218rm -f conftest$ac_exeext
7219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220  (eval $ac_link) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225  (eval $ac_try) 2>&5
7226  ac_status=$?
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); }; }; then
7229  :
7230else
7231  echo "$as_me: program exited with status $ac_status" >&5
7232echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235( exit $ac_status )
7236ac_cv_header_stdc=no
7237fi
7238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7239fi
7240fi
7241fi
7242echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7243echo "${ECHO_T}$ac_cv_header_stdc" >&6
7244if test $ac_cv_header_stdc = yes; then
7245
7246cat >>confdefs.h <<\_ACEOF
7247#define STDC_HEADERS 1
7248_ACEOF
7249
7250fi
7251
7252# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7263                  inttypes.h stdint.h unistd.h
7264do
7265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7266echo "$as_me:$LINENO: checking for $ac_header" >&5
7267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7268if eval "test \"\${$as_ac_Header+set}\" = set"; then
7269  echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271  cat >conftest.$ac_ext <<_ACEOF
7272/* confdefs.h.  */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h.  */
7277$ac_includes_default
7278
7279#include <$ac_header>
7280_ACEOF
7281rm -f conftest.$ac_objext
7282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283  (eval $ac_compile) 2>conftest.er1
7284  ac_status=$?
7285  grep -v '^ *+' conftest.er1 >conftest.err
7286  rm -f conftest.er1
7287  cat conftest.err >&5
7288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289  (exit $ac_status); } &&
7290         { ac_try='test -z "$ac_c_werror_flag"
7291                         || test ! -s conftest.err'
7292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293  (eval $ac_try) 2>&5
7294  ac_status=$?
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); }; } &&
7297         { ac_try='test -s conftest.$ac_objext'
7298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299  (eval $ac_try) 2>&5
7300  ac_status=$?
7301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302  (exit $ac_status); }; }; then
7303  eval "$as_ac_Header=yes"
7304else
7305  echo "$as_me: failed program was:" >&5
7306sed 's/^/| /' conftest.$ac_ext >&5
7307
7308eval "$as_ac_Header=no"
7309fi
7310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311fi
7312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7314if test `eval echo '${'$as_ac_Header'}'` = yes; then
7315  cat >>confdefs.h <<_ACEOF
7316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7317_ACEOF
7318
7319fi
7320
7321done
7322
7323
7324
7325for ac_header in dlfcn.h
7326do
7327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7328if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329  echo "$as_me:$LINENO: checking for $ac_header" >&5
7330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7331if eval "test \"\${$as_ac_Header+set}\" = set"; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333fi
7334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7336else
7337  # Is the header compilable?
7338echo "$as_me:$LINENO: checking $ac_header usability" >&5
7339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7340cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h.  */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h.  */
7346$ac_includes_default
7347#include <$ac_header>
7348_ACEOF
7349rm -f conftest.$ac_objext
7350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351  (eval $ac_compile) 2>conftest.er1
7352  ac_status=$?
7353  grep -v '^ *+' conftest.er1 >conftest.err
7354  rm -f conftest.er1
7355  cat conftest.err >&5
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } &&
7358         { ac_try='test -z "$ac_c_werror_flag"
7359                         || test ! -s conftest.err'
7360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361  (eval $ac_try) 2>&5
7362  ac_status=$?
7363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364  (exit $ac_status); }; } &&
7365         { ac_try='test -s conftest.$ac_objext'
7366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367  (eval $ac_try) 2>&5
7368  ac_status=$?
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); }; }; then
7371  ac_header_compiler=yes
7372else
7373  echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376ac_header_compiler=no
7377fi
7378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7380echo "${ECHO_T}$ac_header_compiler" >&6
7381
7382# Is the header present?
7383echo "$as_me:$LINENO: checking $ac_header presence" >&5
7384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7385cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h.  */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h.  */
7391#include <$ac_header>
7392_ACEOF
7393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7394  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7395  ac_status=$?
7396  grep -v '^ *+' conftest.er1 >conftest.err
7397  rm -f conftest.er1
7398  cat conftest.err >&5
7399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400  (exit $ac_status); } >/dev/null; then
7401  if test -s conftest.err; then
7402    ac_cpp_err=$ac_c_preproc_warn_flag
7403    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7404  else
7405    ac_cpp_err=
7406  fi
7407else
7408  ac_cpp_err=yes
7409fi
7410if test -z "$ac_cpp_err"; then
7411  ac_header_preproc=yes
7412else
7413  echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
7416  ac_header_preproc=no
7417fi
7418rm -f conftest.err conftest.$ac_ext
7419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7420echo "${ECHO_T}$ac_header_preproc" >&6
7421
7422# So?  What about this header?
7423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7424  yes:no: )
7425    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7427    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7429    ac_header_preproc=yes
7430    ;;
7431  no:yes:* )
7432    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7434    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7435echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7436    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7438    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7439echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7442    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7444    (
7445      cat <<\_ASBOX
7446## --------------------------------------------------------------- ##
7447## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7448## --------------------------------------------------------------- ##
7449_ASBOX
7450    ) |
7451      sed "s/^/$as_me: WARNING:     /" >&2
7452    ;;
7453esac
7454echo "$as_me:$LINENO: checking for $ac_header" >&5
7455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  eval "$as_ac_Header=\$ac_header_preproc"
7460fi
7461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7463
7464fi
7465if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466  cat >>confdefs.h <<_ACEOF
7467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468_ACEOF
7469
7470fi
7471
7472done
7473
7474ac_ext=cc
7475ac_cpp='$CXXCPP $CPPFLAGS'
7476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7479if test -n "$ac_tool_prefix"; then
7480  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7481  do
7482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7484echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7486if test "${ac_cv_prog_CXX+set}" = set; then
7487  echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489  if test -n "$CXX"; then
7490  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497  for ac_exec_ext in '' $ac_executable_extensions; do
7498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504done
7505
7506fi
7507fi
7508CXX=$ac_cv_prog_CXX
7509if test -n "$CXX"; then
7510  echo "$as_me:$LINENO: result: $CXX" >&5
7511echo "${ECHO_T}$CXX" >&6
7512else
7513  echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515fi
7516
7517    test -n "$CXX" && break
7518  done
7519fi
7520if test -z "$CXX"; then
7521  ac_ct_CXX=$CXX
7522  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7523do
7524  # Extract the first word of "$ac_prog", so it can be a program name with args.
7525set dummy $ac_prog; ac_word=$2
7526echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7528if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7529  echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531  if test -n "$ac_ct_CXX"; then
7532  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  test -z "$as_dir" && as_dir=.
7539  for ac_exec_ext in '' $ac_executable_extensions; do
7540  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541    ac_cv_prog_ac_ct_CXX="$ac_prog"
7542    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543    break 2
7544  fi
7545done
7546done
7547
7548fi
7549fi
7550ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7551if test -n "$ac_ct_CXX"; then
7552  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7553echo "${ECHO_T}$ac_ct_CXX" >&6
7554else
7555  echo "$as_me:$LINENO: result: no" >&5
7556echo "${ECHO_T}no" >&6
7557fi
7558
7559  test -n "$ac_ct_CXX" && break
7560done
7561test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7562
7563  CXX=$ac_ct_CXX
7564fi
7565
7566
7567# Provide some information about the compiler.
7568echo "$as_me:$LINENO:" \
7569     "checking for C++ compiler version" >&5
7570ac_compiler=`set X $ac_compile; echo $2`
7571{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7572  (eval $ac_compiler --version </dev/null >&5) 2>&5
7573  ac_status=$?
7574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575  (exit $ac_status); }
7576{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7577  (eval $ac_compiler -v </dev/null >&5) 2>&5
7578  ac_status=$?
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); }
7581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7582  (eval $ac_compiler -V </dev/null >&5) 2>&5
7583  ac_status=$?
7584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585  (exit $ac_status); }
7586
7587echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7588echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7589if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7590  echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592  cat >conftest.$ac_ext <<_ACEOF
7593/* confdefs.h.  */
7594_ACEOF
7595cat confdefs.h >>conftest.$ac_ext
7596cat >>conftest.$ac_ext <<_ACEOF
7597/* end confdefs.h.  */
7598
7599#ifdef F77_DUMMY_MAIN
7600
7601#  ifdef __cplusplus
7602     extern "C"
7603#  endif
7604   int F77_DUMMY_MAIN() { return 1; }
7605
7606#endif
7607int
7608main ()
7609{
7610#ifndef __GNUC__
7611       choke me
7612#endif
7613
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618rm -f conftest.$ac_objext
7619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7620  (eval $ac_compile) 2>conftest.er1
7621  ac_status=$?
7622  grep -v '^ *+' conftest.er1 >conftest.err
7623  rm -f conftest.er1
7624  cat conftest.err >&5
7625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626  (exit $ac_status); } &&
7627         { ac_try='test -z "$ac_cxx_werror_flag"
7628                         || test ! -s conftest.err'
7629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630  (eval $ac_try) 2>&5
7631  ac_status=$?
7632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633  (exit $ac_status); }; } &&
7634         { ac_try='test -s conftest.$ac_objext'
7635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636  (eval $ac_try) 2>&5
7637  ac_status=$?
7638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639  (exit $ac_status); }; }; then
7640  ac_compiler_gnu=yes
7641else
7642  echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
7645ac_compiler_gnu=no
7646fi
7647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7648ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7649
7650fi
7651echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7652echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7653GXX=`test $ac_compiler_gnu = yes && echo yes`
7654ac_test_CXXFLAGS=${CXXFLAGS+set}
7655ac_save_CXXFLAGS=$CXXFLAGS
7656CXXFLAGS="-g"
7657echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7658echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7659if test "${ac_cv_prog_cxx_g+set}" = set; then
7660  echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662  cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h.  */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h.  */
7668
7669#ifdef F77_DUMMY_MAIN
7670
7671#  ifdef __cplusplus
7672     extern "C"
7673#  endif
7674   int F77_DUMMY_MAIN() { return 1; }
7675
7676#endif
7677int
7678main ()
7679{
7680
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687  (eval $ac_compile) 2>conftest.er1
7688  ac_status=$?
7689  grep -v '^ *+' conftest.er1 >conftest.err
7690  rm -f conftest.er1
7691  cat conftest.err >&5
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); } &&
7694         { ac_try='test -z "$ac_cxx_werror_flag"
7695                         || test ! -s conftest.err'
7696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697  (eval $ac_try) 2>&5
7698  ac_status=$?
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); }; } &&
7701         { ac_try='test -s conftest.$ac_objext'
7702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703  (eval $ac_try) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; }; then
7707  ac_cv_prog_cxx_g=yes
7708else
7709  echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712ac_cv_prog_cxx_g=no
7713fi
7714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715fi
7716echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7717echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7718if test "$ac_test_CXXFLAGS" = set; then
7719  CXXFLAGS=$ac_save_CXXFLAGS
7720elif test $ac_cv_prog_cxx_g = yes; then
7721  if test "$GXX" = yes; then
7722    CXXFLAGS="-g -O2"
7723  else
7724    CXXFLAGS="-g"
7725  fi
7726else
7727  if test "$GXX" = yes; then
7728    CXXFLAGS="-O2"
7729  else
7730    CXXFLAGS=
7731  fi
7732fi
7733for ac_declaration in \
7734   '' \
7735   'extern "C" void std::exit (int) throw (); using std::exit;' \
7736   'extern "C" void std::exit (int); using std::exit;' \
7737   'extern "C" void exit (int) throw ();' \
7738   'extern "C" void exit (int);' \
7739   'void exit (int);'
7740do
7741  cat >conftest.$ac_ext <<_ACEOF
7742/* confdefs.h.  */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h.  */
7747$ac_declaration
7748#include <stdlib.h>
7749#ifdef F77_DUMMY_MAIN
7750
7751#  ifdef __cplusplus
7752     extern "C"
7753#  endif
7754   int F77_DUMMY_MAIN() { return 1; }
7755
7756#endif
7757int
7758main ()
7759{
7760exit (42);
7761  ;
7762  return 0;
7763}
7764_ACEOF
7765rm -f conftest.$ac_objext
7766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7767  (eval $ac_compile) 2>conftest.er1
7768  ac_status=$?
7769  grep -v '^ *+' conftest.er1 >conftest.err
7770  rm -f conftest.er1
7771  cat conftest.err >&5
7772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773  (exit $ac_status); } &&
7774         { ac_try='test -z "$ac_cxx_werror_flag"
7775                         || test ! -s conftest.err'
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); }; } &&
7781         { ac_try='test -s conftest.$ac_objext'
7782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783  (eval $ac_try) 2>&5
7784  ac_status=$?
7785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786  (exit $ac_status); }; }; then
7787  :
7788else
7789  echo "$as_me: failed program was:" >&5
7790sed 's/^/| /' conftest.$ac_ext >&5
7791
7792continue
7793fi
7794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7795  cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h.  */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h.  */
7801$ac_declaration
7802#ifdef F77_DUMMY_MAIN
7803
7804#  ifdef __cplusplus
7805     extern "C"
7806#  endif
7807   int F77_DUMMY_MAIN() { return 1; }
7808
7809#endif
7810int
7811main ()
7812{
7813exit (42);
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext
7819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820  (eval $ac_compile) 2>conftest.er1
7821  ac_status=$?
7822  grep -v '^ *+' conftest.er1 >conftest.err
7823  rm -f conftest.er1
7824  cat conftest.err >&5
7825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826  (exit $ac_status); } &&
7827         { ac_try='test -z "$ac_cxx_werror_flag"
7828                         || test ! -s conftest.err'
7829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830  (eval $ac_try) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }; } &&
7834         { ac_try='test -s conftest.$ac_objext'
7835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836  (eval $ac_try) 2>&5
7837  ac_status=$?
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); }; }; then
7840  break
7841else
7842  echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845fi
7846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7847done
7848rm -f conftest*
7849if test -n "$ac_declaration"; then
7850  echo '#ifdef __cplusplus' >>confdefs.h
7851  echo $ac_declaration      >>confdefs.h
7852  echo '#endif'             >>confdefs.h
7853fi
7854
7855ac_ext=cc
7856ac_cpp='$CXXCPP $CPPFLAGS'
7857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7860
7861depcc="$CXX"  am_compiler_list=
7862
7863echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7864echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7865if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7866  echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7869  # We make a subdir and do the tests there.  Otherwise we can end up
7870  # making bogus files that we don't know about and never remove.  For
7871  # instance it was reported that on HP-UX the gcc test will end up
7872  # making a dummy file named `D' -- because `-MD' means `put the output
7873  # in D'.
7874  mkdir conftest.dir
7875  # Copy depcomp to subdir because otherwise we won't find it if we're
7876  # using a relative directory.
7877  cp "$am_depcomp" conftest.dir
7878  cd conftest.dir
7879  # We will build objects and dependencies in a subdirectory because
7880  # it helps to detect inapplicable dependency modes.  For instance
7881  # both Tru64's cc and ICC support -MD to output dependencies as a
7882  # side effect of compilation, but ICC will put the dependencies in
7883  # the current directory while Tru64 will put them in the object
7884  # directory.
7885  mkdir sub
7886
7887  am_cv_CXX_dependencies_compiler_type=none
7888  if test "$am_compiler_list" = ""; then
7889     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7890  fi
7891  for depmode in $am_compiler_list; do
7892    # Setup a source with many dependencies, because some compilers
7893    # like to wrap large dependency lists on column 80 (with \), and
7894    # we should not choose a depcomp mode which is confused by this.
7895    #
7896    # We need to recreate these files for each test, as the compiler may
7897    # overwrite some of them when testing with obscure command lines.
7898    # This happens at least with the AIX C compiler.
7899    : > sub/conftest.c
7900    for i in 1 2 3 4 5 6; do
7901      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7902      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7903      # Solaris 8's {/usr,}/bin/sh.
7904      touch sub/conftst$i.h
7905    done
7906    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7907
7908    case $depmode in
7909    nosideeffect)
7910      # after this tag, mechanisms are not by side-effect, so they'll
7911      # only be used when explicitly requested
7912      if test "x$enable_dependency_tracking" = xyes; then
7913        continue
7914      else
7915        break
7916      fi
7917      ;;
7918    none) break ;;
7919    esac
7920    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7921    # mode.  It turns out that the SunPro C++ compiler does not properly
7922    # handle `-M -o', and we need to detect this.
7923    if depmode=$depmode \
7924       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7925       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7926       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7927         >/dev/null 2>conftest.err &&
7928       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7929       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7930       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7931      # icc doesn't choke on unknown options, it will just issue warnings
7932      # or remarks (even with -Werror).  So we grep stderr for any message
7933      # that says an option was ignored or not supported.
7934      # When given -MP, icc 7.0 and 7.1 complain thusly:
7935      #   icc: Command line warning: ignoring option '-M'; no argument required
7936      # The diagnosis changed in icc 8.0:
7937      #   icc: Command line remark: option '-MP' not supported
7938      if (grep 'ignoring option' conftest.err ||
7939          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7940        am_cv_CXX_dependencies_compiler_type=$depmode
7941        break
7942      fi
7943    fi
7944  done
7945
7946  cd ..
7947  rm -rf conftest.dir
7948else
7949  am_cv_CXX_dependencies_compiler_type=none
7950fi
7951
7952fi
7953echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7954echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7955CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7956
7957
7958
7959if
7960  test "x$enable_dependency_tracking" != xno \
7961  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7962  am__fastdepCXX_TRUE=
7963  am__fastdepCXX_FALSE='#'
7964else
7965  am__fastdepCXX_TRUE='#'
7966  am__fastdepCXX_FALSE=
7967fi
7968
7969
7970
7971
7972if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7973    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7974    (test "X$CXX" != "Xg++"))) ; then
7975  ac_ext=cc
7976ac_cpp='$CXXCPP $CPPFLAGS'
7977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7980echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7981echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7982if test -z "$CXXCPP"; then
7983  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7984  echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986      # Double quotes because CXXCPP needs to be expanded
7987    for CXXCPP in "$CXX -E" "/lib/cpp"
7988    do
7989      ac_preproc_ok=false
7990for ac_cxx_preproc_warn_flag in '' yes
7991do
7992  # Use a header file that comes with gcc, so configuring glibc
7993  # with a fresh cross-compiler works.
7994  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995  # <limits.h> exists even on freestanding compilers.
7996  # On the NeXT, cc -E runs the code through the compiler's parser,
7997  # not just through cpp. "Syntax error" is here to catch this case.
7998  cat >conftest.$ac_ext <<_ACEOF
7999/* confdefs.h.  */
8000_ACEOF
8001cat confdefs.h >>conftest.$ac_ext
8002cat >>conftest.$ac_ext <<_ACEOF
8003/* end confdefs.h.  */
8004#ifdef __STDC__
8005# include <limits.h>
8006#else
8007# include <assert.h>
8008#endif
8009                     Syntax error
8010_ACEOF
8011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8013  ac_status=$?
8014  grep -v '^ *+' conftest.er1 >conftest.err
8015  rm -f conftest.er1
8016  cat conftest.err >&5
8017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018  (exit $ac_status); } >/dev/null; then
8019  if test -s conftest.err; then
8020    ac_cpp_err=$ac_cxx_preproc_warn_flag
8021    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8022  else
8023    ac_cpp_err=
8024  fi
8025else
8026  ac_cpp_err=yes
8027fi
8028if test -z "$ac_cpp_err"; then
8029  :
8030else
8031  echo "$as_me: failed program was:" >&5
8032sed 's/^/| /' conftest.$ac_ext >&5
8033
8034  # Broken: fails on valid input.
8035continue
8036fi
8037rm -f conftest.err conftest.$ac_ext
8038
8039  # OK, works on sane cases.  Now check whether non-existent headers
8040  # can be detected and how.
8041  cat >conftest.$ac_ext <<_ACEOF
8042/* confdefs.h.  */
8043_ACEOF
8044cat confdefs.h >>conftest.$ac_ext
8045cat >>conftest.$ac_ext <<_ACEOF
8046/* end confdefs.h.  */
8047#include <ac_nonexistent.h>
8048_ACEOF
8049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8050  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8051  ac_status=$?
8052  grep -v '^ *+' conftest.er1 >conftest.err
8053  rm -f conftest.er1
8054  cat conftest.err >&5
8055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056  (exit $ac_status); } >/dev/null; then
8057  if test -s conftest.err; then
8058    ac_cpp_err=$ac_cxx_preproc_warn_flag
8059    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8060  else
8061    ac_cpp_err=
8062  fi
8063else
8064  ac_cpp_err=yes
8065fi
8066if test -z "$ac_cpp_err"; then
8067  # Broken: success on invalid input.
8068continue
8069else
8070  echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
8072
8073  # Passes both tests.
8074ac_preproc_ok=:
8075break
8076fi
8077rm -f conftest.err conftest.$ac_ext
8078
8079done
8080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8081rm -f conftest.err conftest.$ac_ext
8082if $ac_preproc_ok; then
8083  break
8084fi
8085
8086    done
8087    ac_cv_prog_CXXCPP=$CXXCPP
8088
8089fi
8090  CXXCPP=$ac_cv_prog_CXXCPP
8091else
8092  ac_cv_prog_CXXCPP=$CXXCPP
8093fi
8094echo "$as_me:$LINENO: result: $CXXCPP" >&5
8095echo "${ECHO_T}$CXXCPP" >&6
8096ac_preproc_ok=false
8097for ac_cxx_preproc_warn_flag in '' yes
8098do
8099  # Use a header file that comes with gcc, so configuring glibc
8100  # with a fresh cross-compiler works.
8101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8102  # <limits.h> exists even on freestanding compilers.
8103  # On the NeXT, cc -E runs the code through the compiler's parser,
8104  # not just through cpp. "Syntax error" is here to catch this case.
8105  cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h.  */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h.  */
8111#ifdef __STDC__
8112# include <limits.h>
8113#else
8114# include <assert.h>
8115#endif
8116                     Syntax error
8117_ACEOF
8118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8120  ac_status=$?
8121  grep -v '^ *+' conftest.er1 >conftest.err
8122  rm -f conftest.er1
8123  cat conftest.err >&5
8124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125  (exit $ac_status); } >/dev/null; then
8126  if test -s conftest.err; then
8127    ac_cpp_err=$ac_cxx_preproc_warn_flag
8128    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8129  else
8130    ac_cpp_err=
8131  fi
8132else
8133  ac_cpp_err=yes
8134fi
8135if test -z "$ac_cpp_err"; then
8136  :
8137else
8138  echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141  # Broken: fails on valid input.
8142continue
8143fi
8144rm -f conftest.err conftest.$ac_ext
8145
8146  # OK, works on sane cases.  Now check whether non-existent headers
8147  # can be detected and how.
8148  cat >conftest.$ac_ext <<_ACEOF
8149/* confdefs.h.  */
8150_ACEOF
8151cat confdefs.h >>conftest.$ac_ext
8152cat >>conftest.$ac_ext <<_ACEOF
8153/* end confdefs.h.  */
8154#include <ac_nonexistent.h>
8155_ACEOF
8156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158  ac_status=$?
8159  grep -v '^ *+' conftest.er1 >conftest.err
8160  rm -f conftest.er1
8161  cat conftest.err >&5
8162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163  (exit $ac_status); } >/dev/null; then
8164  if test -s conftest.err; then
8165    ac_cpp_err=$ac_cxx_preproc_warn_flag
8166    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8167  else
8168    ac_cpp_err=
8169  fi
8170else
8171  ac_cpp_err=yes
8172fi
8173if test -z "$ac_cpp_err"; then
8174  # Broken: success on invalid input.
8175continue
8176else
8177  echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5
8179
8180  # Passes both tests.
8181ac_preproc_ok=:
8182break
8183fi
8184rm -f conftest.err conftest.$ac_ext
8185
8186done
8187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8188rm -f conftest.err conftest.$ac_ext
8189if $ac_preproc_ok; then
8190  :
8191else
8192  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8193See \`config.log' for more details." >&5
8194echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8195See \`config.log' for more details." >&2;}
8196   { (exit 1); exit 1; }; }
8197fi
8198
8199ac_ext=cc
8200ac_cpp='$CXXCPP $CPPFLAGS'
8201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8204
8205fi
8206
8207
8208
8209# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8210
8211# find the maximum length of command line arguments
8212echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8213echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8214if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8215  echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217    i=0
8218  teststring="ABCD"
8219
8220  case $build_os in
8221  msdosdjgpp*)
8222    # On DJGPP, this test can blow up pretty badly due to problems in libc
8223    # (any single argument exceeding 2000 bytes causes a buffer overrun
8224    # during glob expansion).  Even if it were fixed, the result of this
8225    # check would be larger than it should be.
8226    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8227    ;;
8228
8229  gnu*)
8230    # Under GNU Hurd, this test is not required because there is
8231    # no limit to the length of command line arguments.
8232    # Libtool will interpret -1 as no limit whatsoever
8233    lt_cv_sys_max_cmd_len=-1;
8234    ;;
8235
8236  cygwin* | mingw*)
8237    # On Win9x/ME, this test blows up -- it succeeds, but takes
8238    # about 5 minutes as the teststring grows exponentially.
8239    # Worse, since 9x/ME are not pre-emptively multitasking,
8240    # you end up with a "frozen" computer, even though with patience
8241    # the test eventually succeeds (with a max line length of 256k).
8242    # Instead, let's just punt: use the minimum linelength reported by
8243    # all of the supported platforms: 8192 (on NT/2K/XP).
8244    lt_cv_sys_max_cmd_len=8192;
8245    ;;
8246
8247  amigaos*)
8248    # On AmigaOS with pdksh, this test takes hours, literally.
8249    # So we just punt and use a minimum line length of 8192.
8250    lt_cv_sys_max_cmd_len=8192;
8251    ;;
8252
8253  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8254    # This has been around since 386BSD, at least.  Likely further.
8255    if test -x /sbin/sysctl; then
8256      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8257    elif test -x /usr/sbin/sysctl; then
8258      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8259    else
8260      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8261    fi
8262    # And add a safety zone
8263    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8264    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8265    ;;
8266
8267  interix*)
8268    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8269    lt_cv_sys_max_cmd_len=196608
8270    ;;
8271
8272  osf*)
8273    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8274    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8275    # nice to cause kernel panics so lets avoid the loop below.
8276    # First set a reasonable default.
8277    lt_cv_sys_max_cmd_len=16384
8278    #
8279    if test -x /sbin/sysconfig; then
8280      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8281        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8282      esac
8283    fi
8284    ;;
8285  sco3.2v5*)
8286    lt_cv_sys_max_cmd_len=102400
8287    ;;
8288  sysv5* | sco5v6* | sysv4.2uw2*)
8289    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8290    if test -n "$kargmax"; then
8291      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8292    else
8293      lt_cv_sys_max_cmd_len=32768
8294    fi
8295    ;;
8296  *)
8297    # If test is not a shell built-in, we'll probably end up computing a
8298    # maximum length that is only half of the actual maximum length, but
8299    # we can't tell.
8300    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8301    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8302               = "XX$teststring") >/dev/null 2>&1 &&
8303            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8304            lt_cv_sys_max_cmd_len=$new_result &&
8305            test $i != 17 # 1/2 MB should be enough
8306    do
8307      i=`expr $i + 1`
8308      teststring=$teststring$teststring
8309    done
8310    teststring=
8311    # Add a significant safety factor because C++ compilers can tack on massive
8312    # amounts of additional arguments before passing them to the linker.
8313    # It appears as though 1/2 is a usable value.
8314    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8315    ;;
8316  esac
8317
8318fi
8319
8320if test -n $lt_cv_sys_max_cmd_len ; then
8321  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8322echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8323else
8324  echo "$as_me:$LINENO: result: none" >&5
8325echo "${ECHO_T}none" >&6
8326fi
8327
8328
8329
8330
8331# Check for command to grab the raw symbol name followed by C symbol from nm.
8332echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8333echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8334if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8335  echo $ECHO_N "(cached) $ECHO_C" >&6
8336else
8337
8338# These are sane defaults that work on at least a few old systems.
8339# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8340
8341# Character class describing NM global symbol codes.
8342symcode='[BCDEGRST]'
8343
8344# Regexp to match symbols that can be accessed directly from C.
8345sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8346
8347# Transform an extracted symbol line into a proper C declaration
8348lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8349
8350# Transform an extracted symbol line into symbol name and symbol address
8351lt_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'"
8352
8353# Define system-specific variables.
8354case $host_os in
8355aix*)
8356  symcode='[BCDT]'
8357  ;;
8358cygwin* | mingw* | pw32*)
8359  symcode='[ABCDGISTW]'
8360  ;;
8361hpux*) # Its linker distinguishes data from code symbols
8362  if test "$host_cpu" = ia64; then
8363    symcode='[ABCDEGRST]'
8364  fi
8365  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8366  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'"
8367  ;;
8368linux*)
8369  if test "$host_cpu" = ia64; then
8370    symcode='[ABCDGIRSTW]'
8371    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8372    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'"
8373  fi
8374  ;;
8375irix* | nonstopux*)
8376  symcode='[BCDEGRST]'
8377  ;;
8378osf*)
8379  symcode='[BCDEGQRST]'
8380  ;;
8381solaris*)
8382  symcode='[BDRT]'
8383  ;;
8384sco3.2v5*)
8385  symcode='[DT]'
8386  ;;
8387sysv4.2uw2*)
8388  symcode='[DT]'
8389  ;;
8390sysv5* | sco5v6* | unixware* | OpenUNIX*)
8391  symcode='[ABDT]'
8392  ;;
8393sysv4)
8394  symcode='[DFNSTU]'
8395  ;;
8396esac
8397
8398# Handle CRLF in mingw tool chain
8399opt_cr=
8400case $build_os in
8401mingw*)
8402  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8403  ;;
8404esac
8405
8406# If we're using GNU nm, then use its standard symbol codes.
8407case `$NM -V 2>&1` in
8408*GNU* | *'with BFD'*)
8409  symcode='[ABCDGIRSTW]' ;;
8410esac
8411
8412# Try without a prefix undercore, then with it.
8413for ac_symprfx in "" "_"; do
8414
8415  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8416  symxfrm="\\1 $ac_symprfx\\2 \\2"
8417
8418  # Write the raw and C identifiers.
8419  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8420
8421  # Check to see that the pipe works correctly.
8422  pipe_works=no
8423
8424  rm -f conftest*
8425  cat > conftest.$ac_ext <<EOF
8426#ifdef __cplusplus
8427extern "C" {
8428#endif
8429char nm_test_var;
8430void nm_test_func(){}
8431#ifdef __cplusplus
8432}
8433#endif
8434int main(){nm_test_var='a';nm_test_func();return(0);}
8435EOF
8436
8437  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8438  (eval $ac_compile) 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); }; then
8442    # Now try to grab the symbols.
8443    nlist=conftest.nm
8444    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8445  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8446  ac_status=$?
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); } && test -s "$nlist"; then
8449      # Try sorting and uniquifying the output.
8450      if sort "$nlist" | uniq > "$nlist"T; then
8451        mv -f "$nlist"T "$nlist"
8452      else
8453        rm -f "$nlist"T
8454      fi
8455
8456      # Make sure that we snagged all the symbols we need.
8457      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8458        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8459          cat <<EOF > conftest.$ac_ext
8460#ifdef __cplusplus
8461extern "C" {
8462#endif
8463
8464EOF
8465          # Now generate the symbol file.
8466          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8467
8468          cat <<EOF >> conftest.$ac_ext
8469#if defined (__STDC__) && __STDC__
8470# define lt_ptr_t void *
8471#else
8472# define lt_ptr_t char *
8473# define const
8474#endif
8475
8476/* The mapping between symbol names and symbols. */
8477const struct {
8478  const char *name;
8479  lt_ptr_t address;
8480}
8481lt_preloaded_symbols[] =
8482{
8483EOF
8484          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8485          cat <<\EOF >> conftest.$ac_ext
8486  {0, (lt_ptr_t) 0}
8487};
8488
8489#ifdef __cplusplus
8490}
8491#endif
8492EOF
8493          # Now try linking the two files.
8494          mv conftest.$ac_objext conftstm.$ac_objext
8495          lt_save_LIBS="$LIBS"
8496          lt_save_CFLAGS="$CFLAGS"
8497          LIBS="conftstm.$ac_objext"
8498          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8499          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500  (eval $ac_link) 2>&5
8501  ac_status=$?
8502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8504            pipe_works=yes
8505          fi
8506          LIBS="$lt_save_LIBS"
8507          CFLAGS="$lt_save_CFLAGS"
8508        else
8509          echo "cannot find nm_test_func in $nlist" >&5
8510        fi
8511      else
8512        echo "cannot find nm_test_var in $nlist" >&5
8513      fi
8514    else
8515      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8516    fi
8517  else
8518    echo "$progname: failed program was:" >&5
8519    cat conftest.$ac_ext >&5
8520  fi
8521  rm -f conftest* conftst*
8522
8523  # Do not use the global_symbol_pipe unless it works.
8524  if test "$pipe_works" = yes; then
8525    break
8526  else
8527    lt_cv_sys_global_symbol_pipe=
8528  fi
8529done
8530
8531fi
8532
8533if test -z "$lt_cv_sys_global_symbol_pipe"; then
8534  lt_cv_sys_global_symbol_to_cdecl=
8535fi
8536if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8537  echo "$as_me:$LINENO: result: failed" >&5
8538echo "${ECHO_T}failed" >&6
8539else
8540  echo "$as_me:$LINENO: result: ok" >&5
8541echo "${ECHO_T}ok" >&6
8542fi
8543
8544echo "$as_me:$LINENO: checking for objdir" >&5
8545echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8546if test "${lt_cv_objdir+set}" = set; then
8547  echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549  rm -f .libs 2>/dev/null
8550mkdir .libs 2>/dev/null
8551if test -d .libs; then
8552  lt_cv_objdir=.libs
8553else
8554  # MS-DOS does not allow filenames that begin with a dot.
8555  lt_cv_objdir=_libs
8556fi
8557rmdir .libs 2>/dev/null
8558fi
8559echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8560echo "${ECHO_T}$lt_cv_objdir" >&6
8561objdir=$lt_cv_objdir
8562
8563
8564
8565
8566
8567case $host_os in
8568aix3*)
8569  # AIX sometimes has problems with the GCC collect2 program.  For some
8570  # reason, if we set the COLLECT_NAMES environment variable, the problems
8571  # vanish in a puff of smoke.
8572  if test "X${COLLECT_NAMES+set}" != Xset; then
8573    COLLECT_NAMES=
8574    export COLLECT_NAMES
8575  fi
8576  ;;
8577esac
8578
8579# Sed substitution that helps us do robust quoting.  It backslashifies
8580# metacharacters that are still active within double-quoted strings.
8581Xsed='sed -e 1s/^X//'
8582sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8583
8584# Same as above, but do not quote variable references.
8585double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8586
8587# Sed substitution to delay expansion of an escaped shell variable in a
8588# double_quote_subst'ed string.
8589delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8590
8591# Sed substitution to avoid accidental globbing in evaled expressions
8592no_glob_subst='s/\*/\\\*/g'
8593
8594# Constants:
8595rm="rm -f"
8596
8597# Global variables:
8598default_ofile=libtool
8599can_build_shared=yes
8600
8601# All known linkers require a `.a' archive for static linking (except MSVC,
8602# which needs '.lib').
8603libext=a
8604ltmain="$ac_aux_dir/ltmain.sh"
8605ofile="$default_ofile"
8606with_gnu_ld="$lt_cv_prog_gnu_ld"
8607
8608if test -n "$ac_tool_prefix"; then
8609  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8610set dummy ${ac_tool_prefix}ar; ac_word=$2
8611echo "$as_me:$LINENO: checking for $ac_word" >&5
8612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8613if test "${ac_cv_prog_AR+set}" = set; then
8614  echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616  if test -n "$AR"; then
8617  ac_cv_prog_AR="$AR" # Let the user override the test.
8618else
8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622  IFS=$as_save_IFS
8623  test -z "$as_dir" && as_dir=.
8624  for ac_exec_ext in '' $ac_executable_extensions; do
8625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8626    ac_cv_prog_AR="${ac_tool_prefix}ar"
8627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628    break 2
8629  fi
8630done
8631done
8632
8633fi
8634fi
8635AR=$ac_cv_prog_AR
8636if test -n "$AR"; then
8637  echo "$as_me:$LINENO: result: $AR" >&5
8638echo "${ECHO_T}$AR" >&6
8639else
8640  echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6
8642fi
8643
8644fi
8645if test -z "$ac_cv_prog_AR"; then
8646  ac_ct_AR=$AR
8647  # Extract the first word of "ar", so it can be a program name with args.
8648set dummy ar; ac_word=$2
8649echo "$as_me:$LINENO: checking for $ac_word" >&5
8650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8651if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8652  echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654  if test -n "$ac_ct_AR"; then
8655  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8656else
8657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660  IFS=$as_save_IFS
8661  test -z "$as_dir" && as_dir=.
8662  for ac_exec_ext in '' $ac_executable_extensions; do
8663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8664    ac_cv_prog_ac_ct_AR="ar"
8665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666    break 2
8667  fi
8668done
8669done
8670
8671  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8672fi
8673fi
8674ac_ct_AR=$ac_cv_prog_ac_ct_AR
8675if test -n "$ac_ct_AR"; then
8676  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8677echo "${ECHO_T}$ac_ct_AR" >&6
8678else
8679  echo "$as_me:$LINENO: result: no" >&5
8680echo "${ECHO_T}no" >&6
8681fi
8682
8683  AR=$ac_ct_AR
8684else
8685  AR="$ac_cv_prog_AR"
8686fi
8687
8688if test -n "$ac_tool_prefix"; then
8689  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8690set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8691echo "$as_me:$LINENO: checking for $ac_word" >&5
8692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8693if test "${ac_cv_prog_RANLIB+set}" = set; then
8694  echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696  if test -n "$RANLIB"; then
8697  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8698else
8699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702  IFS=$as_save_IFS
8703  test -z "$as_dir" && as_dir=.
8704  for ac_exec_ext in '' $ac_executable_extensions; do
8705  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8706    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8708    break 2
8709  fi
8710done
8711done
8712
8713fi
8714fi
8715RANLIB=$ac_cv_prog_RANLIB
8716if test -n "$RANLIB"; then
8717  echo "$as_me:$LINENO: result: $RANLIB" >&5
8718echo "${ECHO_T}$RANLIB" >&6
8719else
8720  echo "$as_me:$LINENO: result: no" >&5
8721echo "${ECHO_T}no" >&6
8722fi
8723
8724fi
8725if test -z "$ac_cv_prog_RANLIB"; then
8726  ac_ct_RANLIB=$RANLIB
8727  # Extract the first word of "ranlib", so it can be a program name with args.
8728set dummy ranlib; ac_word=$2
8729echo "$as_me:$LINENO: checking for $ac_word" >&5
8730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8731if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8732  echo $ECHO_N "(cached) $ECHO_C" >&6
8733else
8734  if test -n "$ac_ct_RANLIB"; then
8735  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8736else
8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738for as_dir in $PATH
8739do
8740  IFS=$as_save_IFS
8741  test -z "$as_dir" && as_dir=.
8742  for ac_exec_ext in '' $ac_executable_extensions; do
8743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744    ac_cv_prog_ac_ct_RANLIB="ranlib"
8745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8746    break 2
8747  fi
8748done
8749done
8750
8751  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8752fi
8753fi
8754ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8755if test -n "$ac_ct_RANLIB"; then
8756  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8757echo "${ECHO_T}$ac_ct_RANLIB" >&6
8758else
8759  echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6
8761fi
8762
8763  RANLIB=$ac_ct_RANLIB
8764else
8765  RANLIB="$ac_cv_prog_RANLIB"
8766fi
8767
8768if test -n "$ac_tool_prefix"; then
8769  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8770set dummy ${ac_tool_prefix}strip; ac_word=$2
8771echo "$as_me:$LINENO: checking for $ac_word" >&5
8772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8773if test "${ac_cv_prog_STRIP+set}" = set; then
8774  echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776  if test -n "$STRIP"; then
8777  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8778else
8779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780for as_dir in $PATH
8781do
8782  IFS=$as_save_IFS
8783  test -z "$as_dir" && as_dir=.
8784  for ac_exec_ext in '' $ac_executable_extensions; do
8785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8788    break 2
8789  fi
8790done
8791done
8792
8793fi
8794fi
8795STRIP=$ac_cv_prog_STRIP
8796if test -n "$STRIP"; then
8797  echo "$as_me:$LINENO: result: $STRIP" >&5
8798echo "${ECHO_T}$STRIP" >&6
8799else
8800  echo "$as_me:$LINENO: result: no" >&5
8801echo "${ECHO_T}no" >&6
8802fi
8803
8804fi
8805if test -z "$ac_cv_prog_STRIP"; then
8806  ac_ct_STRIP=$STRIP
8807  # Extract the first word of "strip", so it can be a program name with args.
8808set dummy strip; ac_word=$2
8809echo "$as_me:$LINENO: checking for $ac_word" >&5
8810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8811if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8812  echo $ECHO_N "(cached) $ECHO_C" >&6
8813else
8814  if test -n "$ac_ct_STRIP"; then
8815  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820  IFS=$as_save_IFS
8821  test -z "$as_dir" && as_dir=.
8822  for ac_exec_ext in '' $ac_executable_extensions; do
8823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8824    ac_cv_prog_ac_ct_STRIP="strip"
8825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8826    break 2
8827  fi
8828done
8829done
8830
8831  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8832fi
8833fi
8834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8835if test -n "$ac_ct_STRIP"; then
8836  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8837echo "${ECHO_T}$ac_ct_STRIP" >&6
8838else
8839  echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
8841fi
8842
8843  STRIP=$ac_ct_STRIP
8844else
8845  STRIP="$ac_cv_prog_STRIP"
8846fi
8847
8848
8849old_CC="$CC"
8850old_CFLAGS="$CFLAGS"
8851
8852# Set sane defaults for various variables
8853test -z "$AR" && AR=ar
8854test -z "$AR_FLAGS" && AR_FLAGS=cru
8855test -z "$AS" && AS=as
8856test -z "$CC" && CC=cc
8857test -z "$LTCC" && LTCC=$CC
8858test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8859test -z "$DLLTOOL" && DLLTOOL=dlltool
8860test -z "$LD" && LD=ld
8861test -z "$LN_S" && LN_S="ln -s"
8862test -z "$MAGIC_CMD" && MAGIC_CMD=file
8863test -z "$NM" && NM=nm
8864test -z "$SED" && SED=sed
8865test -z "$OBJDUMP" && OBJDUMP=objdump
8866test -z "$RANLIB" && RANLIB=:
8867test -z "$STRIP" && STRIP=:
8868test -z "$ac_objext" && ac_objext=o
8869
8870# Determine commands to create old-style static archives.
8871old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8872old_postinstall_cmds='chmod 644 $oldlib'
8873old_postuninstall_cmds=
8874
8875if test -n "$RANLIB"; then
8876  case $host_os in
8877  openbsd*)
8878    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8879    ;;
8880  *)
8881    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8882    ;;
8883  esac
8884  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8885fi
8886
8887for cc_temp in $compiler""; do
8888  case $cc_temp in
8889    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8890    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8891    \-*) ;;
8892    *) break;;
8893  esac
8894done
8895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8896
8897
8898# Only perform the check for file, if the check method requires it
8899case $deplibs_check_method in
8900file_magic*)
8901  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8902    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8903echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8905  echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907  case $MAGIC_CMD in
8908[\\/*] |  ?:[\\/]*)
8909  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8910  ;;
8911*)
8912  lt_save_MAGIC_CMD="$MAGIC_CMD"
8913  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8914  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8915  for ac_dir in $ac_dummy; do
8916    IFS="$lt_save_ifs"
8917    test -z "$ac_dir" && ac_dir=.
8918    if test -f $ac_dir/${ac_tool_prefix}file; then
8919      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8920      if test -n "$file_magic_test_file"; then
8921        case $deplibs_check_method in
8922        "file_magic "*)
8923          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8924          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8925          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8926            $EGREP "$file_magic_regex" > /dev/null; then
8927            :
8928          else
8929            cat <<EOF 1>&2
8930
8931*** Warning: the command libtool uses to detect shared libraries,
8932*** $file_magic_cmd, produces output that libtool cannot recognize.
8933*** The result is that libtool may fail to recognize shared libraries
8934*** as such.  This will affect the creation of libtool libraries that
8935*** depend on shared libraries, but programs linked with such libtool
8936*** libraries will work regardless of this problem.  Nevertheless, you
8937*** may want to report the problem to your system manager and/or to
8938*** bug-libtool@gnu.org
8939
8940EOF
8941          fi ;;
8942        esac
8943      fi
8944      break
8945    fi
8946  done
8947  IFS="$lt_save_ifs"
8948  MAGIC_CMD="$lt_save_MAGIC_CMD"
8949  ;;
8950esac
8951fi
8952
8953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8954if test -n "$MAGIC_CMD"; then
8955  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8956echo "${ECHO_T}$MAGIC_CMD" >&6
8957else
8958  echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
8960fi
8961
8962if test -z "$lt_cv_path_MAGIC_CMD"; then
8963  if test -n "$ac_tool_prefix"; then
8964    echo "$as_me:$LINENO: checking for file" >&5
8965echo $ECHO_N "checking for file... $ECHO_C" >&6
8966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8967  echo $ECHO_N "(cached) $ECHO_C" >&6
8968else
8969  case $MAGIC_CMD in
8970[\\/*] |  ?:[\\/]*)
8971  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8972  ;;
8973*)
8974  lt_save_MAGIC_CMD="$MAGIC_CMD"
8975  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8976  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8977  for ac_dir in $ac_dummy; do
8978    IFS="$lt_save_ifs"
8979    test -z "$ac_dir" && ac_dir=.
8980    if test -f $ac_dir/file; then
8981      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8982      if test -n "$file_magic_test_file"; then
8983        case $deplibs_check_method in
8984        "file_magic "*)
8985          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8986          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8987          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8988            $EGREP "$file_magic_regex" > /dev/null; then
8989            :
8990          else
8991            cat <<EOF 1>&2
8992
8993*** Warning: the command libtool uses to detect shared libraries,
8994*** $file_magic_cmd, produces output that libtool cannot recognize.
8995*** The result is that libtool may fail to recognize shared libraries
8996*** as such.  This will affect the creation of libtool libraries that
8997*** depend on shared libraries, but programs linked with such libtool
8998*** libraries will work regardless of this problem.  Nevertheless, you
8999*** may want to report the problem to your system manager and/or to
9000*** bug-libtool@gnu.org
9001
9002EOF
9003          fi ;;
9004        esac
9005      fi
9006      break
9007    fi
9008  done
9009  IFS="$lt_save_ifs"
9010  MAGIC_CMD="$lt_save_MAGIC_CMD"
9011  ;;
9012esac
9013fi
9014
9015MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9016if test -n "$MAGIC_CMD"; then
9017  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9018echo "${ECHO_T}$MAGIC_CMD" >&6
9019else
9020  echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022fi
9023
9024  else
9025    MAGIC_CMD=:
9026  fi
9027fi
9028
9029  fi
9030  ;;
9031esac
9032
9033enable_dlopen=no
9034enable_win32_dll=no
9035
9036# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9037if test "${enable_libtool_lock+set}" = set; then
9038  enableval="$enable_libtool_lock"
9039
9040fi;
9041test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9042
9043
9044# Check whether --with-pic or --without-pic was given.
9045if test "${with_pic+set}" = set; then
9046  withval="$with_pic"
9047  pic_mode="$withval"
9048else
9049  pic_mode=default
9050fi;
9051test -z "$pic_mode" && pic_mode=default
9052
9053# Use C for the default configuration in the libtool script
9054tagname=
9055lt_save_CC="$CC"
9056ac_ext=c
9057ac_cpp='$CPP $CPPFLAGS'
9058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9060ac_compiler_gnu=$ac_cv_c_compiler_gnu
9061
9062
9063# Source file extension for C test sources.
9064ac_ext=c
9065
9066# Object file extension for compiled C test sources.
9067objext=o
9068objext=$objext
9069
9070# Code to be used in simple compile tests
9071lt_simple_compile_test_code="int some_variable = 0;\n"
9072
9073# Code to be used in simple link tests
9074lt_simple_link_test_code='int main(){return(0);}\n'
9075
9076
9077# If no C compiler was specified, use CC.
9078LTCC=${LTCC-"$CC"}
9079
9080# If no C compiler flags were specified, use CFLAGS.
9081LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9082
9083# Allow CC to be a program name with arguments.
9084compiler=$CC
9085
9086
9087# save warnings/boilerplate of simple test code
9088ac_outfile=conftest.$ac_objext
9089printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9091_lt_compiler_boilerplate=`cat conftest.err`
9092$rm conftest*
9093
9094ac_outfile=conftest.$ac_objext
9095printf "$lt_simple_link_test_code" >conftest.$ac_ext
9096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9097_lt_linker_boilerplate=`cat conftest.err`
9098$rm conftest*
9099
9100
9101## CAVEAT EMPTOR:
9102## There is no encapsulation within the following macros, do not change
9103## the running order or otherwise move them around unless you know exactly
9104## what you are doing...
9105
9106lt_prog_compiler_no_builtin_flag=
9107
9108if test "$GCC" = yes; then
9109  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9110
9111
9112echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9113echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9114if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9115  echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117  lt_cv_prog_compiler_rtti_exceptions=no
9118  ac_outfile=conftest.$ac_objext
9119   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9120   lt_compiler_flag="-fno-rtti -fno-exceptions"
9121   # Insert the option either (1) after the last *FLAGS variable, or
9122   # (2) before a word containing "conftest.", or (3) at the end.
9123   # Note that $ac_compile itself does not contain backslashes and begins
9124   # with a dollar sign (not a hyphen), so the echo should work correctly.
9125   # The option is referenced via a variable to avoid confusing sed.
9126   lt_compile=`echo "$ac_compile" | $SED \
9127   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129   -e 's:$: $lt_compiler_flag:'`
9130   (eval echo "\"\$as_me:9130: $lt_compile\"" >&5)
9131   (eval "$lt_compile" 2>conftest.err)
9132   ac_status=$?
9133   cat conftest.err >&5
9134   echo "$as_me:9134: \$? = $ac_status" >&5
9135   if (exit $ac_status) && test -s "$ac_outfile"; then
9136     # The compiler can only warn and ignore the option if not recognized
9137     # So say no if there are warnings other than the usual output.
9138     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9139     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9140     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9141       lt_cv_prog_compiler_rtti_exceptions=yes
9142     fi
9143   fi
9144   $rm conftest*
9145
9146fi
9147echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9148echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9149
9150if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9151    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9152else
9153    :
9154fi
9155
9156fi
9157
9158lt_prog_compiler_wl=
9159lt_prog_compiler_pic=
9160lt_prog_compiler_static=
9161
9162echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9163echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9164
9165  if test "$GCC" = yes; then
9166    lt_prog_compiler_wl='-Wl,'
9167    lt_prog_compiler_static='-static'
9168
9169    case $host_os in
9170      aix*)
9171      # All AIX code is PIC.
9172      if test "$host_cpu" = ia64; then
9173        # AIX 5 now supports IA64 processor
9174        lt_prog_compiler_static='-Bstatic'
9175      fi
9176      ;;
9177
9178    amigaos*)
9179      # FIXME: we need at least 68020 code to build shared libraries, but
9180      # adding the `-m68020' flag to GCC prevents building anything better,
9181      # like `-m68040'.
9182      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9183      ;;
9184
9185    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9186      # PIC is the default for these OSes.
9187      ;;
9188
9189    mingw* | pw32* | os2*)
9190      # This hack is so that the source file can tell whether it is being
9191      # built for inclusion in a dll (and should export symbols for example).
9192      lt_prog_compiler_pic='-DDLL_EXPORT'
9193      ;;
9194
9195    darwin* | rhapsody*)
9196      # PIC is the default on this platform
9197      # Common symbols not allowed in MH_DYLIB files
9198      lt_prog_compiler_pic='-fno-common'
9199      ;;
9200
9201    interix3*)
9202      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9203      # Instead, we relocate shared libraries at runtime.
9204      ;;
9205
9206    msdosdjgpp*)
9207      # Just because we use GCC doesn't mean we suddenly get shared libraries
9208      # on systems that don't support them.
9209      lt_prog_compiler_can_build_shared=no
9210      enable_shared=no
9211      ;;
9212
9213    sysv4*MP*)
9214      if test -d /usr/nec; then
9215        lt_prog_compiler_pic=-Kconform_pic
9216      fi
9217      ;;
9218
9219    hpux*)
9220      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9221      # not for PA HP-UX.
9222      case $host_cpu in
9223      hppa*64*|ia64*)
9224        # +Z the default
9225        ;;
9226      *)
9227        lt_prog_compiler_pic='-fPIC'
9228        ;;
9229      esac
9230      ;;
9231
9232    *)
9233      lt_prog_compiler_pic='-fPIC'
9234      ;;
9235    esac
9236  else
9237    # PORTME Check for flag to pass linker flags through the system compiler.
9238    case $host_os in
9239    aix*)
9240      lt_prog_compiler_wl='-Wl,'
9241      if test "$host_cpu" = ia64; then
9242        # AIX 5 now supports IA64 processor
9243        lt_prog_compiler_static='-Bstatic'
9244      else
9245        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9246      fi
9247      ;;
9248      darwin*)
9249        # PIC is the default on this platform
9250        # Common symbols not allowed in MH_DYLIB files
9251       case $cc_basename in
9252         xlc*)
9253         lt_prog_compiler_pic='-qnocommon'
9254         lt_prog_compiler_wl='-Wl,'
9255         ;;
9256       esac
9257       ;;
9258
9259    mingw* | pw32* | os2*)
9260      # This hack is so that the source file can tell whether it is being
9261      # built for inclusion in a dll (and should export symbols for example).
9262      lt_prog_compiler_pic='-DDLL_EXPORT'
9263      ;;
9264
9265    hpux9* | hpux10* | hpux11*)
9266      lt_prog_compiler_wl='-Wl,'
9267      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9268      # not for PA HP-UX.
9269      case $host_cpu in
9270      hppa*64*|ia64*)
9271        # +Z the default
9272        ;;
9273      *)
9274        lt_prog_compiler_pic='+Z'
9275        ;;
9276      esac
9277      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9278      lt_prog_compiler_static='${wl}-a ${wl}archive'
9279      ;;
9280
9281    irix5* | irix6* | nonstopux*)
9282      lt_prog_compiler_wl='-Wl,'
9283      # PIC (with -KPIC) is the default.
9284      lt_prog_compiler_static='-non_shared'
9285      ;;
9286
9287    newsos6)
9288      lt_prog_compiler_pic='-KPIC'
9289      lt_prog_compiler_static='-Bstatic'
9290      ;;
9291
9292    linux*)
9293      case $cc_basename in
9294      icc* | ecc*)
9295        lt_prog_compiler_wl='-Wl,'
9296        lt_prog_compiler_pic='-KPIC'
9297        lt_prog_compiler_static='-static'
9298        ;;
9299      pgcc* | pgf77* | pgf90* | pgf95*)
9300        # Portland Group compilers (*not* the Pentium gcc compiler,
9301        # which looks to be a dead project)
9302        lt_prog_compiler_wl='-Wl,'
9303        lt_prog_compiler_pic='-fpic'
9304        lt_prog_compiler_static='-Bstatic'
9305        ;;
9306      ccc*)
9307        lt_prog_compiler_wl='-Wl,'
9308        # All Alpha code is PIC.
9309        lt_prog_compiler_static='-non_shared'
9310        ;;
9311      esac
9312      ;;
9313
9314    osf3* | osf4* | osf5*)
9315      lt_prog_compiler_wl='-Wl,'
9316      # All OSF/1 code is PIC.
9317      lt_prog_compiler_static='-non_shared'
9318      ;;
9319
9320    solaris*)
9321      lt_prog_compiler_pic='-KPIC'
9322      lt_prog_compiler_static='-Bstatic'
9323      case $cc_basename in
9324      f77* | f90* | f95*)
9325        lt_prog_compiler_wl='-Qoption ld ';;
9326      *)
9327        lt_prog_compiler_wl='-Wl,';;
9328      esac
9329      ;;
9330
9331    sunos4*)
9332      lt_prog_compiler_wl='-Qoption ld '
9333      lt_prog_compiler_pic='-PIC'
9334      lt_prog_compiler_static='-Bstatic'
9335      ;;
9336
9337    sysv4 | sysv4.2uw2* | sysv4.3*)
9338      lt_prog_compiler_wl='-Wl,'
9339      lt_prog_compiler_pic='-KPIC'
9340      lt_prog_compiler_static='-Bstatic'
9341      ;;
9342
9343    sysv4*MP*)
9344      if test -d /usr/nec ;then
9345        lt_prog_compiler_pic='-Kconform_pic'
9346        lt_prog_compiler_static='-Bstatic'
9347      fi
9348      ;;
9349
9350    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9351      lt_prog_compiler_wl='-Wl,'
9352      lt_prog_compiler_pic='-KPIC'
9353      lt_prog_compiler_static='-Bstatic'
9354      ;;
9355
9356    unicos*)
9357      lt_prog_compiler_wl='-Wl,'
9358      lt_prog_compiler_can_build_shared=no
9359      ;;
9360
9361    uts4*)
9362      lt_prog_compiler_pic='-pic'
9363      lt_prog_compiler_static='-Bstatic'
9364      ;;
9365
9366    *)
9367      lt_prog_compiler_can_build_shared=no
9368      ;;
9369    esac
9370  fi
9371
9372echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9373echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9374
9375#
9376# Check to make sure the PIC flag actually works.
9377#
9378if test -n "$lt_prog_compiler_pic"; then
9379
9380echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9381echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9382if test "${lt_prog_compiler_pic_works+set}" = set; then
9383  echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385  lt_prog_compiler_pic_works=no
9386  ac_outfile=conftest.$ac_objext
9387   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9388   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9389   # Insert the option either (1) after the last *FLAGS variable, or
9390   # (2) before a word containing "conftest.", or (3) at the end.
9391   # Note that $ac_compile itself does not contain backslashes and begins
9392   # with a dollar sign (not a hyphen), so the echo should work correctly.
9393   # The option is referenced via a variable to avoid confusing sed.
9394   lt_compile=`echo "$ac_compile" | $SED \
9395   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9396   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9397   -e 's:$: $lt_compiler_flag:'`
9398   (eval echo "\"\$as_me:9398: $lt_compile\"" >&5)
9399   (eval "$lt_compile" 2>conftest.err)
9400   ac_status=$?
9401   cat conftest.err >&5
9402   echo "$as_me:9402: \$? = $ac_status" >&5
9403   if (exit $ac_status) && test -s "$ac_outfile"; then
9404     # The compiler can only warn and ignore the option if not recognized
9405     # So say no if there are warnings other than the usual output.
9406     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9407     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9408     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9409       lt_prog_compiler_pic_works=yes
9410     fi
9411   fi
9412   $rm conftest*
9413
9414fi
9415echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9416echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9417
9418if test x"$lt_prog_compiler_pic_works" = xyes; then
9419    case $lt_prog_compiler_pic in
9420     "" | " "*) ;;
9421     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9422     esac
9423else
9424    lt_prog_compiler_pic=
9425     lt_prog_compiler_can_build_shared=no
9426fi
9427
9428fi
9429case $host_os in
9430  # For platforms which do not support PIC, -DPIC is meaningless:
9431  *djgpp*)
9432    lt_prog_compiler_pic=
9433    ;;
9434  *)
9435    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9436    ;;
9437esac
9438
9439#
9440# Check to make sure the static flag actually works.
9441#
9442wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9443echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9444echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9445if test "${lt_prog_compiler_static_works+set}" = set; then
9446  echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448  lt_prog_compiler_static_works=no
9449   save_LDFLAGS="$LDFLAGS"
9450   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9451   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9452   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9453     # The linker can only warn and ignore the option if not recognized
9454     # So say no if there are warnings
9455     if test -s conftest.err; then
9456       # Append any errors to the config.log.
9457       cat conftest.err 1>&5
9458       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9459       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9460       if diff conftest.exp conftest.er2 >/dev/null; then
9461         lt_prog_compiler_static_works=yes
9462       fi
9463     else
9464       lt_prog_compiler_static_works=yes
9465     fi
9466   fi
9467   $rm conftest*
9468   LDFLAGS="$save_LDFLAGS"
9469
9470fi
9471echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9472echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9473
9474if test x"$lt_prog_compiler_static_works" = xyes; then
9475    :
9476else
9477    lt_prog_compiler_static=
9478fi
9479
9480
9481echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9482echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9483if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9484  echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486  lt_cv_prog_compiler_c_o=no
9487   $rm -r conftest 2>/dev/null
9488   mkdir conftest
9489   cd conftest
9490   mkdir out
9491   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9492
9493   lt_compiler_flag="-o out/conftest2.$ac_objext"
9494   # Insert the option either (1) after the last *FLAGS variable, or
9495   # (2) before a word containing "conftest.", or (3) at the end.
9496   # Note that $ac_compile itself does not contain backslashes and begins
9497   # with a dollar sign (not a hyphen), so the echo should work correctly.
9498   lt_compile=`echo "$ac_compile" | $SED \
9499   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9500   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9501   -e 's:$: $lt_compiler_flag:'`
9502   (eval echo "\"\$as_me:9502: $lt_compile\"" >&5)
9503   (eval "$lt_compile" 2>out/conftest.err)
9504   ac_status=$?
9505   cat out/conftest.err >&5
9506   echo "$as_me:9506: \$? = $ac_status" >&5
9507   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9508   then
9509     # The compiler can only warn and ignore the option if not recognized
9510     # So say no if there are warnings
9511     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9512     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9513     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9514       lt_cv_prog_compiler_c_o=yes
9515     fi
9516   fi
9517   chmod u+w . 2>&5
9518   $rm conftest*
9519   # SGI C++ compiler will create directory out/ii_files/ for
9520   # template instantiation
9521   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9522   $rm out/* && rmdir out
9523   cd ..
9524   rmdir conftest
9525   $rm conftest*
9526
9527fi
9528echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9529echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9530
9531
9532hard_links="nottested"
9533if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9534  # do not overwrite the value of need_locks provided by the user
9535  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9536echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9537  hard_links=yes
9538  $rm conftest*
9539  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9540  touch conftest.a
9541  ln conftest.a conftest.b 2>&5 || hard_links=no
9542  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9543  echo "$as_me:$LINENO: result: $hard_links" >&5
9544echo "${ECHO_T}$hard_links" >&6
9545  if test "$hard_links" = no; then
9546    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9547echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9548    need_locks=warn
9549  fi
9550else
9551  need_locks=no
9552fi
9553
9554echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9555echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9556
9557  runpath_var=
9558  allow_undefined_flag=
9559  enable_shared_with_static_runtimes=no
9560  archive_cmds=
9561  archive_expsym_cmds=
9562  old_archive_From_new_cmds=
9563  old_archive_from_expsyms_cmds=
9564  export_dynamic_flag_spec=
9565  whole_archive_flag_spec=
9566  thread_safe_flag_spec=
9567  hardcode_libdir_flag_spec=
9568  hardcode_libdir_flag_spec_ld=
9569  hardcode_libdir_separator=
9570  hardcode_direct=no
9571  hardcode_minus_L=no
9572  hardcode_shlibpath_var=unsupported
9573  link_all_deplibs=unknown
9574  hardcode_automatic=no
9575  module_cmds=
9576  module_expsym_cmds=
9577  always_export_symbols=no
9578  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9579  # include_expsyms should be a list of space-separated symbols to be *always*
9580  # included in the symbol list
9581  include_expsyms=
9582  # exclude_expsyms can be an extended regexp of symbols to exclude
9583  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9584  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9585  # as well as any symbol that contains `d'.
9586  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9587  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9588  # platforms (ab)use it in PIC code, but their linkers get confused if
9589  # the symbol is explicitly referenced.  Since portable code cannot
9590  # rely on this symbol name, it's probably fine to never include it in
9591  # preloaded symbol tables.
9592  extract_expsyms_cmds=
9593  # Just being paranoid about ensuring that cc_basename is set.
9594  for cc_temp in $compiler""; do
9595  case $cc_temp in
9596    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9597    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9598    \-*) ;;
9599    *) break;;
9600  esac
9601done
9602cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9603
9604  case $host_os in
9605  cygwin* | mingw* | pw32*)
9606    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9607    # When not using gcc, we currently assume that we are using
9608    # Microsoft Visual C++.
9609    if test "$GCC" != yes; then
9610      with_gnu_ld=no
9611    fi
9612    ;;
9613  interix*)
9614    # we just hope/assume this is gcc and not c89 (= MSVC++)
9615    with_gnu_ld=yes
9616    ;;
9617  openbsd*)
9618    with_gnu_ld=no
9619    ;;
9620  esac
9621
9622  ld_shlibs=yes
9623  if test "$with_gnu_ld" = yes; then
9624    # If archive_cmds runs LD, not CC, wlarc should be empty
9625    wlarc='${wl}'
9626
9627    # Set some defaults for GNU ld with shared library support. These
9628    # are reset later if shared libraries are not supported. Putting them
9629    # here allows them to be overridden if necessary.
9630    runpath_var=LD_RUN_PATH
9631    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9632    export_dynamic_flag_spec='${wl}--export-dynamic'
9633    # ancient GNU ld didn't support --whole-archive et. al.
9634    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9635        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9636      else
9637        whole_archive_flag_spec=
9638    fi
9639    supports_anon_versioning=no
9640    case `$LD -v 2>/dev/null` in
9641      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644      *\ 2.11.*) ;; # other 2.11 versions
9645      *) supports_anon_versioning=yes ;;
9646    esac
9647
9648    # See if GNU ld supports shared libraries.
9649    case $host_os in
9650    aix3* | aix4* | aix5*)
9651      # On AIX/PPC, the GNU linker is very broken
9652      if test "$host_cpu" != ia64; then
9653        ld_shlibs=no
9654        cat <<EOF 1>&2
9655
9656*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9657*** to be unable to reliably create shared libraries on AIX.
9658*** Therefore, libtool is disabling shared libraries support.  If you
9659*** really care for shared libraries, you may want to modify your PATH
9660*** so that a non-GNU linker is found, and then restart.
9661
9662EOF
9663      fi
9664      ;;
9665
9666    amigaos*)
9667      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)'
9668      hardcode_libdir_flag_spec='-L$libdir'
9669      hardcode_minus_L=yes
9670
9671      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9672      # that the semantics of dynamic libraries on AmigaOS, at least up
9673      # to version 4, is to share data among multiple programs linked
9674      # with the same dynamic library.  Since this doesn't match the
9675      # behavior of shared libraries on other platforms, we can't use
9676      # them.
9677      ld_shlibs=no
9678      ;;
9679
9680    beos*)
9681      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9682        allow_undefined_flag=unsupported
9683        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9684        # support --undefined.  This deserves some investigation.  FIXME
9685        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686      else
9687        ld_shlibs=no
9688      fi
9689      ;;
9690
9691    cygwin* | mingw* | pw32*)
9692      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9693      # as there is no search path for DLLs.
9694      hardcode_libdir_flag_spec='-L$libdir'
9695      allow_undefined_flag=unsupported
9696      always_export_symbols=no
9697      enable_shared_with_static_runtimes=yes
9698      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9699
9700      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9701        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9702        # If the export-symbols file already is a .def file (1st line
9703        # is EXPORTS), use it as is; otherwise, prepend...
9704        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9705          cp $export_symbols $output_objdir/$soname.def;
9706        else
9707          echo EXPORTS > $output_objdir/$soname.def;
9708          cat $export_symbols >> $output_objdir/$soname.def;
9709        fi~
9710        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9711      else
9712        ld_shlibs=no
9713      fi
9714      ;;
9715
9716    interix3*)
9717      hardcode_direct=no
9718      hardcode_shlibpath_var=no
9719      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720      export_dynamic_flag_spec='${wl}-E'
9721      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9722      # Instead, shared libraries are loaded at an image base (0x10000000 by
9723      # default) and relocated if they conflict, which is a slow very memory
9724      # consuming and fragmenting process.  To avoid this, we pick a random,
9725      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9726      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9727      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9728      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'
9729      ;;
9730
9731    linux*)
9732      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9733        tmp_addflag=
9734        case $cc_basename,$host_cpu in
9735        pgcc*)                          # Portland Group C compiler
9736          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'
9737          tmp_addflag=' $pic_flag'
9738          ;;
9739        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9740          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'
9741          tmp_addflag=' $pic_flag -Mnomain' ;;
9742        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9743          tmp_addflag=' -i_dynamic' ;;
9744        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9745          tmp_addflag=' -i_dynamic -nofor_main' ;;
9746        ifc* | ifort*)                  # Intel Fortran compiler
9747          tmp_addflag=' -nofor_main' ;;
9748        esac
9749        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750
9751        if test $supports_anon_versioning = yes; then
9752          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9753  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9754  $echo "local: *; };" >> $output_objdir/$libname.ver~
9755          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9756        fi
9757      else
9758        ld_shlibs=no
9759      fi
9760      ;;
9761
9762    netbsd*)
9763      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9764        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9765        wlarc=
9766      else
9767        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9768        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9769      fi
9770      ;;
9771
9772    solaris*)
9773      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9774        ld_shlibs=no
9775        cat <<EOF 1>&2
9776
9777*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9778*** create shared libraries on Solaris systems.  Therefore, libtool
9779*** is disabling shared libraries support.  We urge you to upgrade GNU
9780*** binutils to release 2.9.1 or newer.  Another option is to modify
9781*** your PATH or compiler configuration so that the native linker is
9782*** used, and then restart.
9783
9784EOF
9785      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9786        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9788      else
9789        ld_shlibs=no
9790      fi
9791      ;;
9792
9793    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9794      case `$LD -v 2>&1` in
9795        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9796        ld_shlibs=no
9797        cat <<_LT_EOF 1>&2
9798
9799*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9800*** reliably create shared libraries on SCO systems.  Therefore, libtool
9801*** is disabling shared libraries support.  We urge you to upgrade GNU
9802*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9803*** your PATH or compiler configuration so that the native linker is
9804*** used, and then restart.
9805
9806_LT_EOF
9807        ;;
9808        *)
9809          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9810            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9811            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9812            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9813          else
9814            ld_shlibs=no
9815          fi
9816        ;;
9817      esac
9818      ;;
9819
9820    sunos4*)
9821      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9822      wlarc=
9823      hardcode_direct=yes
9824      hardcode_shlibpath_var=no
9825      ;;
9826
9827    *)
9828      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9829        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9830        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9831      else
9832        ld_shlibs=no
9833      fi
9834      ;;
9835    esac
9836
9837    if test "$ld_shlibs" = no; then
9838      runpath_var=
9839      hardcode_libdir_flag_spec=
9840      export_dynamic_flag_spec=
9841      whole_archive_flag_spec=
9842    fi
9843  else
9844    # PORTME fill in a description of your system's linker (not GNU ld)
9845    case $host_os in
9846    aix3*)
9847      allow_undefined_flag=unsupported
9848      always_export_symbols=yes
9849      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'
9850      # Note: this linker hardcodes the directories in LIBPATH if there
9851      # are no directories specified by -L.
9852      hardcode_minus_L=yes
9853      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9854        # Neither direct hardcoding nor static linking is supported with a
9855        # broken collect2.
9856        hardcode_direct=unsupported
9857      fi
9858      ;;
9859
9860    aix4* | aix5*)
9861      if test "$host_cpu" = ia64; then
9862        # On IA64, the linker does run time linking by default, so we don't
9863        # have to do anything special.
9864        aix_use_runtimelinking=no
9865        exp_sym_flag='-Bexport'
9866        no_entry_flag=""
9867      else
9868        # If we're using GNU nm, then we don't want the "-C" option.
9869        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9870        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9871          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'
9872        else
9873          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'
9874        fi
9875        aix_use_runtimelinking=no
9876
9877        # Test if we are trying to use run time linking or normal
9878        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9879        # need to do runtime linking.
9880        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9881          for ld_flag in $LDFLAGS; do
9882          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9883            aix_use_runtimelinking=yes
9884            break
9885          fi
9886          done
9887          ;;
9888        esac
9889
9890        exp_sym_flag='-bexport'
9891        no_entry_flag='-bnoentry'
9892      fi
9893
9894      # When large executables or shared objects are built, AIX ld can
9895      # have problems creating the table of contents.  If linking a library
9896      # or program results in "error TOC overflow" add -mminimal-toc to
9897      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9898      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9899
9900      archive_cmds=''
9901      hardcode_direct=yes
9902      hardcode_libdir_separator=':'
9903      link_all_deplibs=yes
9904
9905      if test "$GCC" = yes; then
9906        case $host_os in aix4.[012]|aix4.[012].*)
9907        # We only want to do this on AIX 4.2 and lower, the check
9908        # below for broken collect2 doesn't work under 4.3+
9909          collect2name=`${CC} -print-prog-name=collect2`
9910          if test -f "$collect2name" && \
9911           strings "$collect2name" | grep resolve_lib_name >/dev/null
9912          then
9913          # We have reworked collect2
9914          hardcode_direct=yes
9915          else
9916          # We have old collect2
9917          hardcode_direct=unsupported
9918          # It fails to find uninstalled libraries when the uninstalled
9919          # path is not listed in the libpath.  Setting hardcode_minus_L
9920          # to unsupported forces relinking
9921          hardcode_minus_L=yes
9922          hardcode_libdir_flag_spec='-L$libdir'
9923          hardcode_libdir_separator=
9924          fi
9925          ;;
9926        esac
9927        shared_flag='-shared'
9928        if test "$aix_use_runtimelinking" = yes; then
9929          shared_flag="$shared_flag "'${wl}-G'
9930        fi
9931      else
9932        # not using gcc
9933        if test "$host_cpu" = ia64; then
9934        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9935        # chokes on -Wl,-G. The following line is correct:
9936          shared_flag='-G'
9937        else
9938          if test "$aix_use_runtimelinking" = yes; then
9939            shared_flag='${wl}-G'
9940          else
9941            shared_flag='${wl}-bM:SRE'
9942          fi
9943        fi
9944      fi
9945
9946      # It seems that -bexpall does not export symbols beginning with
9947      # underscore (_), so it is better to generate a list of symbols to export.
9948      always_export_symbols=yes
9949      if test "$aix_use_runtimelinking" = yes; then
9950        # Warning - without using the other runtime loading flags (-brtl),
9951        # -berok will link without error, but may produce a broken library.
9952        allow_undefined_flag='-berok'
9953       # Determine the default libpath from the value encoded in an empty executable.
9954       cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h.  */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h.  */
9960
9961#ifdef F77_DUMMY_MAIN
9962
9963#  ifdef __cplusplus
9964     extern "C"
9965#  endif
9966   int F77_DUMMY_MAIN() { return 1; }
9967
9968#endif
9969int
9970main ()
9971{
9972
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979  (eval $ac_link) 2>conftest.er1
9980  ac_status=$?
9981  grep -v '^ *+' conftest.er1 >conftest.err
9982  rm -f conftest.er1
9983  cat conftest.err >&5
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); } &&
9986         { ac_try='test -z "$ac_c_werror_flag"
9987                         || test ! -s conftest.err'
9988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989  (eval $ac_try) 2>&5
9990  ac_status=$?
9991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992  (exit $ac_status); }; } &&
9993         { ac_try='test -s conftest$ac_exeext'
9994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995  (eval $ac_try) 2>&5
9996  ac_status=$?
9997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998  (exit $ac_status); }; }; then
9999
10000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10001}'`
10002# Check for a 64-bit object if we didn't find anything.
10003if 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; }
10004}'`; fi
10005else
10006  echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009fi
10010rm -f conftest.err conftest.$ac_objext \
10011      conftest$ac_exeext conftest.$ac_ext
10012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10013
10014       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10015        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"
10016       else
10017        if test "$host_cpu" = ia64; then
10018          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10019          allow_undefined_flag="-z nodefs"
10020          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"
10021        else
10022         # Determine the default libpath from the value encoded in an empty executable.
10023         cat >conftest.$ac_ext <<_ACEOF
10024/* confdefs.h.  */
10025_ACEOF
10026cat confdefs.h >>conftest.$ac_ext
10027cat >>conftest.$ac_ext <<_ACEOF
10028/* end confdefs.h.  */
10029
10030#ifdef F77_DUMMY_MAIN
10031
10032#  ifdef __cplusplus
10033     extern "C"
10034#  endif
10035   int F77_DUMMY_MAIN() { return 1; }
10036
10037#endif
10038int
10039main ()
10040{
10041
10042  ;
10043  return 0;
10044}
10045_ACEOF
10046rm -f conftest.$ac_objext conftest$ac_exeext
10047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048  (eval $ac_link) 2>conftest.er1
10049  ac_status=$?
10050  grep -v '^ *+' conftest.er1 >conftest.err
10051  rm -f conftest.er1
10052  cat conftest.err >&5
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); } &&
10055         { ac_try='test -z "$ac_c_werror_flag"
10056                         || test ! -s conftest.err'
10057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058  (eval $ac_try) 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; } &&
10062         { ac_try='test -s conftest$ac_exeext'
10063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064  (eval $ac_try) 2>&5
10065  ac_status=$?
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); }; }; then
10068
10069aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10070}'`
10071# Check for a 64-bit object if we didn't find anything.
10072if 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; }
10073}'`; fi
10074else
10075  echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
10078fi
10079rm -f conftest.err conftest.$ac_objext \
10080      conftest$ac_exeext conftest.$ac_ext
10081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10082
10083         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10084          # Warning - without using the other run time loading flags,
10085          # -berok will link without error, but may produce a broken library.
10086          no_undefined_flag=' ${wl}-bernotok'
10087          allow_undefined_flag=' ${wl}-berok'
10088          # Exported symbols can be pulled into shared objects from archives
10089          whole_archive_flag_spec='$convenience'
10090          archive_cmds_need_lc=yes
10091          # This is similar to how AIX traditionally builds its shared libraries.
10092          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'
10093        fi
10094      fi
10095      ;;
10096
10097    amigaos*)
10098      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)'
10099      hardcode_libdir_flag_spec='-L$libdir'
10100      hardcode_minus_L=yes
10101      # see comment about different semantics on the GNU ld section
10102      ld_shlibs=no
10103      ;;
10104
10105    bsdi[45]*)
10106      export_dynamic_flag_spec=-rdynamic
10107      ;;
10108
10109    cygwin* | mingw* | pw32*)
10110      # When not using gcc, we currently assume that we are using
10111      # Microsoft Visual C++.
10112      # hardcode_libdir_flag_spec is actually meaningless, as there is
10113      # no search path for DLLs.
10114      hardcode_libdir_flag_spec=' '
10115      allow_undefined_flag=unsupported
10116      # Tell ltmain to make .lib files, not .a files.
10117      libext=lib
10118      # Tell ltmain to make .dll files, not .so files.
10119      shrext_cmds=".dll"
10120      # FIXME: Setting linknames here is a bad hack.
10121      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10122      # The linker will automatically build a .lib file if we build a DLL.
10123      old_archive_From_new_cmds='true'
10124      # FIXME: Should let the user specify the lib program.
10125      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10126      fix_srcfile_path='`cygpath -w "$srcfile"`'
10127      enable_shared_with_static_runtimes=yes
10128      ;;
10129
10130    darwin* | rhapsody*)
10131      case $host_os in
10132        rhapsody* | darwin1.[012])
10133         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10134         ;;
10135       *) # Darwin 1.3 on
10136         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10137           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10138         else
10139           case ${MACOSX_DEPLOYMENT_TARGET} in
10140             10.[012])
10141               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10142               ;;
10143             10.*)
10144               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10145               ;;
10146           esac
10147         fi
10148         ;;
10149      esac
10150      archive_cmds_need_lc=no
10151      hardcode_direct=no
10152      hardcode_automatic=yes
10153      hardcode_shlibpath_var=unsupported
10154      whole_archive_flag_spec=''
10155      link_all_deplibs=yes
10156    if test "$GCC" = yes ; then
10157        output_verbose_link_cmd='echo'
10158        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10159      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10160      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10161      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}'
10162      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}'
10163    else
10164      case $cc_basename in
10165        xlc*)
10166         output_verbose_link_cmd='echo'
10167         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10168         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10169          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10170         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}'
10171          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}'
10172          ;;
10173       *)
10174         ld_shlibs=no
10175          ;;
10176      esac
10177    fi
10178      ;;
10179
10180    dgux*)
10181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182      hardcode_libdir_flag_spec='-L$libdir'
10183      hardcode_shlibpath_var=no
10184      ;;
10185
10186    freebsd1*)
10187      ld_shlibs=no
10188      ;;
10189
10190    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10191    # support.  Future versions do this automatically, but an explicit c++rt0.o
10192    # does not break anything, and helps significantly (at the cost of a little
10193    # extra space).
10194    freebsd2.2*)
10195      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10196      hardcode_libdir_flag_spec='-R$libdir'
10197      hardcode_direct=yes
10198      hardcode_shlibpath_var=no
10199      ;;
10200
10201    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10202    freebsd2*)
10203      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10204      hardcode_direct=yes
10205      hardcode_minus_L=yes
10206      hardcode_shlibpath_var=no
10207      ;;
10208
10209    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10210    freebsd* | kfreebsd*-gnu | dragonfly*)
10211      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10212      hardcode_libdir_flag_spec='-R$libdir'
10213      hardcode_direct=yes
10214      hardcode_shlibpath_var=no
10215      ;;
10216
10217    hpux9*)
10218      if test "$GCC" = yes; then
10219        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'
10220      else
10221        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'
10222      fi
10223      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10224      hardcode_libdir_separator=:
10225      hardcode_direct=yes
10226
10227      # hardcode_minus_L: Not really in the search PATH,
10228      # but as the default location of the library.
10229      hardcode_minus_L=yes
10230      export_dynamic_flag_spec='${wl}-E'
10231      ;;
10232
10233    hpux10*)
10234      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10235        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10236      else
10237        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10238      fi
10239      if test "$with_gnu_ld" = no; then
10240        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10241        hardcode_libdir_separator=:
10242
10243        hardcode_direct=yes
10244        export_dynamic_flag_spec='${wl}-E'
10245
10246        # hardcode_minus_L: Not really in the search PATH,
10247        # but as the default location of the library.
10248        hardcode_minus_L=yes
10249      fi
10250      ;;
10251
10252    hpux11*)
10253      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10254        case $host_cpu in
10255        hppa*64*)
10256          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10257          ;;
10258        ia64*)
10259          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10260          ;;
10261        *)
10262          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10263          ;;
10264        esac
10265      else
10266        case $host_cpu in
10267        hppa*64*)
10268          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10269          ;;
10270        ia64*)
10271          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10272          ;;
10273        *)
10274          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10275          ;;
10276        esac
10277      fi
10278      if test "$with_gnu_ld" = no; then
10279        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10280        hardcode_libdir_separator=:
10281
10282        case $host_cpu in
10283        hppa*64*|ia64*)
10284          hardcode_libdir_flag_spec_ld='+b $libdir'
10285          hardcode_direct=no
10286          hardcode_shlibpath_var=no
10287          ;;
10288        *)
10289          hardcode_direct=yes
10290          export_dynamic_flag_spec='${wl}-E'
10291
10292          # hardcode_minus_L: Not really in the search PATH,
10293          # but as the default location of the library.
10294          hardcode_minus_L=yes
10295          ;;
10296        esac
10297      fi
10298      ;;
10299
10300    irix5* | irix6* | nonstopux*)
10301      if test "$GCC" = yes; then
10302        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'
10303      else
10304        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'
10305        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10306      fi
10307      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10308      hardcode_libdir_separator=:
10309      link_all_deplibs=yes
10310      ;;
10311
10312    netbsd*)
10313      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10314        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10315      else
10316        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10317      fi
10318      hardcode_libdir_flag_spec='-R$libdir'
10319      hardcode_direct=yes
10320      hardcode_shlibpath_var=no
10321      ;;
10322
10323    newsos6)
10324      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325      hardcode_direct=yes
10326      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10327      hardcode_libdir_separator=:
10328      hardcode_shlibpath_var=no
10329      ;;
10330
10331    openbsd*)
10332      hardcode_direct=yes
10333      hardcode_shlibpath_var=no
10334      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10335        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10336        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10337        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10338        export_dynamic_flag_spec='${wl}-E'
10339      else
10340       case $host_os in
10341         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10342           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10343           hardcode_libdir_flag_spec='-R$libdir'
10344           ;;
10345         *)
10346           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10347           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10348           ;;
10349       esac
10350      fi
10351      ;;
10352
10353    os2*)
10354      hardcode_libdir_flag_spec='-L$libdir'
10355      hardcode_minus_L=yes
10356      allow_undefined_flag=unsupported
10357      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'
10358      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10359      ;;
10360
10361    osf3*)
10362      if test "$GCC" = yes; then
10363        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10364        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'
10365      else
10366        allow_undefined_flag=' -expect_unresolved \*'
10367        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'
10368      fi
10369      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370      hardcode_libdir_separator=:
10371      ;;
10372
10373    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10374      if test "$GCC" = yes; then
10375        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10376        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'
10377        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10378      else
10379        allow_undefined_flag=' -expect_unresolved \*'
10380        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'
10381        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10382        $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'
10383
10384        # Both c and cxx compiler support -rpath directly
10385        hardcode_libdir_flag_spec='-rpath $libdir'
10386      fi
10387      hardcode_libdir_separator=:
10388      ;;
10389
10390    solaris*)
10391      no_undefined_flag=' -z text'
10392      if test "$GCC" = yes; then
10393        wlarc='${wl}'
10394        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10395        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10397      else
10398        wlarc=''
10399        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10401        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10402      fi
10403      hardcode_libdir_flag_spec='-R$libdir'
10404      hardcode_shlibpath_var=no
10405      case $host_os in
10406      solaris2.[0-5] | solaris2.[0-5].*) ;;
10407      *)
10408        # The compiler driver will combine linker options so we
10409        # cannot just pass the convience library names through
10410        # without $wl, iff we do not link with $LD.
10411        # Luckily, gcc supports the same syntax we need for Sun Studio.
10412        # Supported since Solaris 2.6 (maybe 2.5.1?)
10413        case $wlarc in
10414        '')
10415          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10416        *)
10417          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' ;;
10418        esac ;;
10419      esac
10420      link_all_deplibs=yes
10421      ;;
10422
10423    sunos4*)
10424      if test "x$host_vendor" = xsequent; then
10425        # Use $CC to link under sequent, because it throws in some extra .o
10426        # files that make .init and .fini sections work.
10427        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10428      else
10429        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10430      fi
10431      hardcode_libdir_flag_spec='-L$libdir'
10432      hardcode_direct=yes
10433      hardcode_minus_L=yes
10434      hardcode_shlibpath_var=no
10435      ;;
10436
10437    sysv4)
10438      case $host_vendor in
10439        sni)
10440          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441          hardcode_direct=yes # is this really true???
10442        ;;
10443        siemens)
10444          ## LD is ld it makes a PLAMLIB
10445          ## CC just makes a GrossModule.
10446          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10447          reload_cmds='$CC -r -o $output$reload_objs'
10448          hardcode_direct=no
10449        ;;
10450        motorola)
10451          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10453        ;;
10454      esac
10455      runpath_var='LD_RUN_PATH'
10456      hardcode_shlibpath_var=no
10457      ;;
10458
10459    sysv4.3*)
10460      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461      hardcode_shlibpath_var=no
10462      export_dynamic_flag_spec='-Bexport'
10463      ;;
10464
10465    sysv4*MP*)
10466      if test -d /usr/nec; then
10467        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468        hardcode_shlibpath_var=no
10469        runpath_var=LD_RUN_PATH
10470        hardcode_runpath_var=yes
10471        ld_shlibs=yes
10472      fi
10473      ;;
10474
10475    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10476      no_undefined_flag='${wl}-z,text'
10477      archive_cmds_need_lc=no
10478      hardcode_shlibpath_var=no
10479      runpath_var='LD_RUN_PATH'
10480
10481      if test "$GCC" = yes; then
10482        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484      else
10485        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10487      fi
10488      ;;
10489
10490    sysv5* | sco3.2v5* | sco5v6*)
10491      # Note: We can NOT use -z defs as we might desire, because we do not
10492      # link with -lc, and that would cause any symbols used from libc to
10493      # always be unresolved, which means just about no library would
10494      # ever link correctly.  If we're not using GNU ld we use -z text
10495      # though, which does catch some bad symbols but isn't as heavy-handed
10496      # as -z defs.
10497      no_undefined_flag='${wl}-z,text'
10498      allow_undefined_flag='${wl}-z,nodefs'
10499      archive_cmds_need_lc=no
10500      hardcode_shlibpath_var=no
10501      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10502      hardcode_libdir_separator=':'
10503      link_all_deplibs=yes
10504      export_dynamic_flag_spec='${wl}-Bexport'
10505      runpath_var='LD_RUN_PATH'
10506
10507      if test "$GCC" = yes; then
10508        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10509        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10510      else
10511        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10512        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10513      fi
10514      ;;
10515
10516    uts4*)
10517      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518      hardcode_libdir_flag_spec='-L$libdir'
10519      hardcode_shlibpath_var=no
10520      ;;
10521
10522    *)
10523      ld_shlibs=no
10524      ;;
10525    esac
10526  fi
10527
10528echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10529echo "${ECHO_T}$ld_shlibs" >&6
10530test "$ld_shlibs" = no && can_build_shared=no
10531
10532#
10533# Do we need to explicitly link libc?
10534#
10535case "x$archive_cmds_need_lc" in
10536x|xyes)
10537  # Assume -lc should be added
10538  archive_cmds_need_lc=yes
10539
10540  if test "$enable_shared" = yes && test "$GCC" = yes; then
10541    case $archive_cmds in
10542    *'~'*)
10543      # FIXME: we may have to deal with multi-command sequences.
10544      ;;
10545    '$CC '*)
10546      # Test whether the compiler implicitly links with -lc since on some
10547      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10548      # to ld, don't add -lc before -lgcc.
10549      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10550echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10551      $rm conftest*
10552      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10553
10554      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10555  (eval $ac_compile) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } 2>conftest.err; then
10559        soname=conftest
10560        lib=conftest
10561        libobjs=conftest.$ac_objext
10562        deplibs=
10563        wl=$lt_prog_compiler_wl
10564        pic_flag=$lt_prog_compiler_pic
10565        compiler_flags=-v
10566        linker_flags=-v
10567        verstring=
10568        output_objdir=.
10569        libname=conftest
10570        lt_save_allow_undefined_flag=$allow_undefined_flag
10571        allow_undefined_flag=
10572        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10573  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10574  ac_status=$?
10575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576  (exit $ac_status); }
10577        then
10578          archive_cmds_need_lc=no
10579        else
10580          archive_cmds_need_lc=yes
10581        fi
10582        allow_undefined_flag=$lt_save_allow_undefined_flag
10583      else
10584        cat conftest.err 1>&5
10585      fi
10586      $rm conftest*
10587      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10588echo "${ECHO_T}$archive_cmds_need_lc" >&6
10589      ;;
10590    esac
10591  fi
10592  ;;
10593esac
10594
10595echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10596echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10597library_names_spec=
10598libname_spec='lib$name'
10599soname_spec=
10600shrext_cmds=".so"
10601postinstall_cmds=
10602postuninstall_cmds=
10603finish_cmds=
10604finish_eval=
10605shlibpath_var=
10606shlibpath_overrides_runpath=unknown
10607version_type=none
10608dynamic_linker="$host_os ld.so"
10609sys_lib_dlsearch_path_spec="/lib /usr/lib"
10610if test "$GCC" = yes; then
10611  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10612  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10613    # if the path contains ";" then we assume it to be the separator
10614    # otherwise default to the standard path separator (i.e. ":") - it is
10615    # assumed that no part of a normal pathname contains ";" but that should
10616    # okay in the real world where ";" in dirpaths is itself problematic.
10617    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10618  else
10619    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10620  fi
10621else
10622  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10623fi
10624need_lib_prefix=unknown
10625hardcode_into_libs=no
10626
10627# when you set need_version to no, make sure it does not cause -set_version
10628# flags to be left without arguments
10629need_version=unknown
10630
10631case $host_os in
10632aix3*)
10633  version_type=linux
10634  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10635  shlibpath_var=LIBPATH
10636
10637  # AIX 3 has no versioning support, so we append a major version to the name.
10638  soname_spec='${libname}${release}${shared_ext}$major'
10639  ;;
10640
10641aix4* | aix5*)
10642  version_type=linux
10643  need_lib_prefix=no
10644  need_version=no
10645  hardcode_into_libs=yes
10646  if test "$host_cpu" = ia64; then
10647    # AIX 5 supports IA64
10648    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10649    shlibpath_var=LD_LIBRARY_PATH
10650  else
10651    # With GCC up to 2.95.x, collect2 would create an import file
10652    # for dependence libraries.  The import file would start with
10653    # the line `#! .'.  This would cause the generated library to
10654    # depend on `.', always an invalid library.  This was fixed in
10655    # development snapshots of GCC prior to 3.0.
10656    case $host_os in
10657      aix4 | aix4.[01] | aix4.[01].*)
10658      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10659           echo ' yes '
10660           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10661        :
10662      else
10663        can_build_shared=no
10664      fi
10665      ;;
10666    esac
10667    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10668    # soname into executable. Probably we can add versioning support to
10669    # collect2, so additional links can be useful in future.
10670    if test "$aix_use_runtimelinking" = yes; then
10671      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672      # instead of lib<name>.a to let people know that these are not
10673      # typical AIX shared libraries.
10674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675    else
10676      # We preserve .a as extension for shared libraries through AIX4.2
10677      # and later when we are not doing run time linking.
10678      library_names_spec='${libname}${release}.a $libname.a'
10679      soname_spec='${libname}${release}${shared_ext}$major'
10680    fi
10681    shlibpath_var=LIBPATH
10682  fi
10683  ;;
10684
10685amigaos*)
10686  library_names_spec='$libname.ixlibrary $libname.a'
10687  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10688  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'
10689  ;;
10690
10691beos*)
10692  library_names_spec='${libname}${shared_ext}'
10693  dynamic_linker="$host_os ld.so"
10694  shlibpath_var=LIBRARY_PATH
10695  ;;
10696
10697bsdi[45]*)
10698  version_type=linux
10699  need_version=no
10700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701  soname_spec='${libname}${release}${shared_ext}$major'
10702  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10703  shlibpath_var=LD_LIBRARY_PATH
10704  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10705  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10706  # the default ld.so.conf also contains /usr/contrib/lib and
10707  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10708  # libtool to hard-code these into programs
10709  ;;
10710
10711cygwin* | mingw* | pw32*)
10712  version_type=windows
10713  shrext_cmds=".dll"
10714  need_version=no
10715  need_lib_prefix=no
10716
10717  case $GCC,$host_os in
10718  yes,cygwin* | yes,mingw* | yes,pw32*)
10719    library_names_spec='$libname.dll.a'
10720    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721    postinstall_cmds='base_file=`basename \${file}`~
10722      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10723      dldir=$destdir/`dirname \$dlpath`~
10724      test -d \$dldir || mkdir -p \$dldir~
10725      $install_prog $dir/$dlname \$dldir/$dlname~
10726      chmod a+x \$dldir/$dlname'
10727    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728      dlpath=$dir/\$dldll~
10729       $rm \$dlpath'
10730    shlibpath_overrides_runpath=yes
10731
10732    case $host_os in
10733    cygwin*)
10734      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10735      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10736      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10737      ;;
10738    mingw*)
10739      # MinGW DLLs use traditional 'lib' prefix
10740      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10741      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10742      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10743        # It is most probably a Windows format PATH printed by
10744        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10745        # path with ; separators, and with drive letters. We can handle the
10746        # drive letters (cygwin fileutils understands them), so leave them,
10747        # especially as we might pass files found there to a mingw objdump,
10748        # which wouldn't understand a cygwinified path. Ahh.
10749        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10750      else
10751        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10752      fi
10753      ;;
10754    pw32*)
10755      # pw32 DLLs use 'pw' prefix rather than 'lib'
10756      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10757      ;;
10758    esac
10759    ;;
10760
10761  *)
10762    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10763    ;;
10764  esac
10765  dynamic_linker='Win32 ld.exe'
10766  # FIXME: first we should search . and the directory the executable is in
10767  shlibpath_var=PATH
10768  ;;
10769
10770darwin* | rhapsody*)
10771  dynamic_linker="$host_os dyld"
10772  version_type=darwin
10773  need_lib_prefix=no
10774  need_version=no
10775  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10776  soname_spec='${libname}${release}${major}$shared_ext'
10777  shlibpath_overrides_runpath=yes
10778  shlibpath_var=DYLD_LIBRARY_PATH
10779  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10780  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10781  if test "$GCC" = yes; then
10782    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"`
10783  else
10784    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10785  fi
10786  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10787  ;;
10788
10789dgux*)
10790  version_type=linux
10791  need_lib_prefix=no
10792  need_version=no
10793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'