source: ThirdParty/Blas/stable/1.2/configure @ 2308

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

sync with trunk rev2307

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