source: ThirdParty/Blas/trunk/configure @ 2661

Last change on this file since 2661 was 2661, checked in by stefan, 8 years ago

rerun autotools

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