source: ThirdParty/Blas/trunk/configure @ 2965

Last change on this file since 2965 was 2965, checked in by tkr, 6 years ago

Re-running the autotools

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