source: ThirdParty/Blas/stable/1.3/configure @ 3017

Last change on this file since 3017 was 3017, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty/Blas?/stable/1.3

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