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

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

sync with trunk; rerun autotools

  • Property svn:executable set to *
File size: 741.6 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='ThirdPartyBlas 1.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion BLAS_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS BLAS_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyBlas 1.3 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyBlas 1.3:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-blas compile project Blas with debug compiler flags
1080
1081  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1082  --disable-pkg-config    disable use of pkg-config (if available)
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094
1095Optional Packages:
1096  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1097  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1098  --with-blas-verbosity specify the debug verbosity level for project Blas
1099  --with-blas-checklevel specify the sanity check level for project Blas
1100  --with-coin-instdir     prefix of installation directory for precompiled
1101                          COIN packages
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107
1108Some influential environment variables:
1109  CDEFS       Additional -D flags to be used when compiling C code.
1110  ADD_CFLAGS  Additional C compiler options
1111  DBG_CFLAGS  Debug C compiler options
1112  OPT_CFLAGS  Optimize C compiler options
1113  CC          C compiler command
1114  CFLAGS      C compiler flags
1115  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1116              nonstandard directory <lib dir>
1117  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1118              headers in a nonstandard directory <include dir>
1119  MPICC       C MPI Compiler
1120  ADD_FFLAGS  Additional Fortran compiler options
1121  DBG_FFLAGS  Debug Fortran compiler options
1122  OPT_FFLAGS  Optimize Fortran compiler options
1123  F77         Fortran 77 compiler command
1124  FFLAGS      Fortran 77 compiler flags
1125  MPIF77      Fortran MPI Compiler
1126  PKG_CONFIG  path to pkg-config utility
1127  CPP         C preprocessor
1128  CXX         C++ compiler command
1129  CXXFLAGS    C++ compiler flags
1130  CXXCPP      C++ preprocessor
1131
1132Use these variables to override the choices made by `configure' or to help
1133it to find libraries and programs with nonstandard names/locations.
1134
1135Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1136_ACEOF
1137fi
1138
1139if test "$ac_init_help" = "recursive"; then
1140  # If there are subdirs, report their specific --help.
1141  ac_popdir=`pwd`
1142  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1143    test -d $ac_dir || continue
1144    ac_builddir=.
1145
1146if test "$ac_dir" != .; then
1147  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1148  # A "../" for each directory in $ac_dir_suffix.
1149  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1150else
1151  ac_dir_suffix= ac_top_builddir=
1152fi
1153
1154case $srcdir in
1155  .)  # No --srcdir option.  We are building in place.
1156    ac_srcdir=.
1157    if test -z "$ac_top_builddir"; then
1158       ac_top_srcdir=.
1159    else
1160       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1161    fi ;;
1162  [\\/]* | ?:[\\/]* )  # Absolute path.
1163    ac_srcdir=$srcdir$ac_dir_suffix;
1164    ac_top_srcdir=$srcdir ;;
1165  *) # Relative path.
1166    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1167    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1168esac
1169
1170# Do not use `cd foo && pwd` to compute absolute paths, because
1171# the directories may not exist.
1172case `pwd` in
1173.) ac_abs_builddir="$ac_dir";;
1174*)
1175  case "$ac_dir" in
1176  .) ac_abs_builddir=`pwd`;;
1177  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1178  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1179  esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_builddir=${ac_top_builddir}.;;
1183*)
1184  case ${ac_top_builddir}. in
1185  .) ac_abs_top_builddir=$ac_abs_builddir;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1187  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_srcdir=$ac_srcdir;;
1192*)
1193  case $ac_srcdir in
1194  .) ac_abs_srcdir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1196  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1197  esac;;
1198esac
1199case $ac_abs_builddir in
1200.) ac_abs_top_srcdir=$ac_top_srcdir;;
1201*)
1202  case $ac_top_srcdir in
1203  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1205  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1206  esac;;
1207esac
1208
1209    cd $ac_dir
1210    # Check for guested configure; otherwise get Cygnus style configure.
1211    if test -f $ac_srcdir/configure.gnu; then
1212      echo
1213      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1214    elif test -f $ac_srcdir/configure; then
1215      echo
1216      $SHELL $ac_srcdir/configure  --help=recursive
1217    elif test -f $ac_srcdir/configure.ac ||
1218           test -f $ac_srcdir/configure.in; then
1219      echo
1220      $ac_configure --help
1221    else
1222      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1223    fi
1224    cd $ac_popdir
1225  done
1226fi
1227
1228test -n "$ac_init_help" && exit 0
1229if $ac_init_version; then
1230  cat <<\_ACEOF
1231ThirdPartyBlas configure 1.3
1232generated by GNU Autoconf 2.59
1233
1234Copyright (C) 2003 Free Software Foundation, Inc.
1235This configure script is free software; the Free Software Foundation
1236gives unlimited permission to copy, distribute and modify it.
1237
1238
1239Copyright 2006 International Business Machines and others.
1240All Rights Reserved.
1241This file is part of the open source package Coin which is distributed
1242under the Eclipse Public License.
1243_ACEOF
1244  exit 0
1245fi
1246exec 5>config.log
1247cat >&5 <<_ACEOF
1248This file contains any messages produced by compilers while
1249running configure, to aid debugging if configure makes a mistake.
1250
1251It was created by ThirdPartyBlas $as_me 1.3, which was
1252generated by GNU Autoconf 2.59.  Invocation command line was
1253
1254  $ $0 $@
1255
1256_ACEOF
1257{
1258cat <<_ASUNAME
1259## --------- ##
1260## Platform. ##
1261## --------- ##
1262
1263hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1264uname -m = `(uname -m) 2>/dev/null || echo unknown`
1265uname -r = `(uname -r) 2>/dev/null || echo unknown`
1266uname -s = `(uname -s) 2>/dev/null || echo unknown`
1267uname -v = `(uname -v) 2>/dev/null || echo unknown`
1268
1269/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1270/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1271
1272/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1273/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1274/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1275hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1276/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1277/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1278/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1279
1280_ASUNAME
1281
1282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283for as_dir in $PATH
1284do
1285  IFS=$as_save_IFS
1286  test -z "$as_dir" && as_dir=.
1287  echo "PATH: $as_dir"
1288done
1289
1290} >&5
1291
1292cat >&5 <<_ACEOF
1293
1294
1295## ----------- ##
1296## Core tests. ##
1297## ----------- ##
1298
1299_ACEOF
1300
1301
1302# Keep a trace of the command line.
1303# Strip out --no-create and --no-recursion so they do not pile up.
1304# Strip out --silent because we don't want to record it for future runs.
1305# Also quote any args containing shell meta-characters.
1306# Make two passes to allow for proper duplicate-argument suppression.
1307ac_configure_args=
1308ac_configure_args0=
1309ac_configure_args1=
1310ac_sep=
1311ac_must_keep_next=false
1312for ac_pass in 1 2
1313do
1314  for ac_arg
1315  do
1316    case $ac_arg in
1317    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1318    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1319    | -silent | --silent | --silen | --sile | --sil)
1320      continue ;;
1321    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1322      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1323    esac
1324    case $ac_pass in
1325    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1326    2)
1327      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1328      if test $ac_must_keep_next = true; then
1329        ac_must_keep_next=false # Got value, back to normal.
1330      else
1331        case $ac_arg in
1332          *=* | --config-cache | -C | -disable-* | --disable-* \
1333          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1334          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1335          | -with-* | --with-* | -without-* | --without-* | --x)
1336            case "$ac_configure_args0 " in
1337              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1338            esac
1339            ;;
1340          -* ) ac_must_keep_next=true ;;
1341        esac
1342      fi
1343      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1344      # Get rid of the leading space.
1345      ac_sep=" "
1346      ;;
1347    esac
1348  done
1349done
1350$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1351$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1352
1353# When interrupted or exit'd, cleanup temporary files, and complete
1354# config.log.  We remove comments because anyway the quotes in there
1355# would cause problems or look ugly.
1356# WARNING: Be sure not to use single quotes in there, as some shells,
1357# such as our DU 5.0 friend, will then `close' the trap.
1358trap 'exit_status=$?
1359  # Save into config.log some information that might help in debugging.
1360  {
1361    echo
1362
1363    cat <<\_ASBOX
1364## ---------------- ##
1365## Cache variables. ##
1366## ---------------- ##
1367_ASBOX
1368    echo
1369    # The following way of writing the cache mishandles newlines in values,
1370{
1371  (set) 2>&1 |
1372    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1373    *ac_space=\ *)
1374      sed -n \
1375        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1376          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1377      ;;
1378    *)
1379      sed -n \
1380        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1381      ;;
1382    esac;
1383}
1384    echo
1385
1386    cat <<\_ASBOX
1387## ----------------- ##
1388## Output variables. ##
1389## ----------------- ##
1390_ASBOX
1391    echo
1392    for ac_var in $ac_subst_vars
1393    do
1394      eval ac_val=$`echo $ac_var`
1395      echo "$ac_var='"'"'$ac_val'"'"'"
1396    done | sort
1397    echo
1398
1399    if test -n "$ac_subst_files"; then
1400      cat <<\_ASBOX
1401## ------------- ##
1402## Output files. ##
1403## ------------- ##
1404_ASBOX
1405      echo
1406      for ac_var in $ac_subst_files
1407      do
1408        eval ac_val=$`echo $ac_var`
1409        echo "$ac_var='"'"'$ac_val'"'"'"
1410      done | sort
1411      echo
1412    fi
1413
1414    if test -s confdefs.h; then
1415      cat <<\_ASBOX
1416## ----------- ##
1417## confdefs.h. ##
1418## ----------- ##
1419_ASBOX
1420      echo
1421      sed "/^$/d" confdefs.h | sort
1422      echo
1423    fi
1424    test "$ac_signal" != 0 &&
1425      echo "$as_me: caught signal $ac_signal"
1426    echo "$as_me: exit $exit_status"
1427  } >&5
1428  rm -f core *.core &&
1429  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1430    exit $exit_status
1431     ' 0
1432for ac_signal in 1 2 13 15; do
1433  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1434done
1435ac_signal=0
1436
1437# confdefs.h avoids OS command line length limits that DEFS can exceed.
1438rm -rf conftest* confdefs.h
1439# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1440echo >confdefs.h
1441
1442# Predefined preprocessor variables.
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_NAME "$PACKAGE_NAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_VERSION "$PACKAGE_VERSION"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_STRING "$PACKAGE_STRING"
1461_ACEOF
1462
1463
1464cat >>confdefs.h <<_ACEOF
1465#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1466_ACEOF
1467
1468
1469# Let the site file select an alternate cache file if it wants to.
1470# Prefer explicitly selected file to automatically selected ones.
1471if test -z "$CONFIG_SITE"; then
1472  if test "x$prefix" != xNONE; then
1473    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1474  else
1475    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1476  fi
1477fi
1478for ac_site_file in $CONFIG_SITE; do
1479  if test -r "$ac_site_file"; then
1480    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1481echo "$as_me: loading site script $ac_site_file" >&6;}
1482    sed 's/^/| /' "$ac_site_file" >&5
1483    . "$ac_site_file"
1484  fi
1485done
1486
1487if test -r "$cache_file"; then
1488  # Some versions of bash will fail to source /dev/null (special
1489  # files actually), so we avoid doing that.
1490  if test -f "$cache_file"; then
1491    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1492echo "$as_me: loading cache $cache_file" >&6;}
1493    case $cache_file in
1494      [\\/]* | ?:[\\/]* ) . $cache_file;;
1495      *)                      . ./$cache_file;;
1496    esac
1497  fi
1498else
1499  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1500echo "$as_me: creating cache $cache_file" >&6;}
1501  >$cache_file
1502fi
1503
1504# Check that the precious variables saved in the cache have kept the same
1505# value.
1506ac_cache_corrupted=false
1507for ac_var in `(set) 2>&1 |
1508               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1509  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1510  eval ac_new_set=\$ac_env_${ac_var}_set
1511  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1512  eval ac_new_val="\$ac_env_${ac_var}_value"
1513  case $ac_old_set,$ac_new_set in
1514    set,)
1515      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1516echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1517      ac_cache_corrupted=: ;;
1518    ,set)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,);;
1523    *)
1524      if test "x$ac_old_val" != "x$ac_new_val"; then
1525        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1526echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1527        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1528echo "$as_me:   former value:  $ac_old_val" >&2;}
1529        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1530echo "$as_me:   current value: $ac_new_val" >&2;}
1531        ac_cache_corrupted=:
1532      fi;;
1533  esac
1534  # Pass precious variables to config.status.
1535  if test "$ac_new_set" = set; then
1536    case $ac_new_val in
1537    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1538      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1539    *) ac_arg=$ac_var=$ac_new_val ;;
1540    esac
1541    case " $ac_configure_args " in
1542      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1543      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1544    esac
1545  fi
1546done
1547if $ac_cache_corrupted; then
1548  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1549echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1550  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1551echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1552   { (exit 1); exit 1; }; }
1553fi
1554
1555ac_ext=c
1556ac_cpp='$CPP $CPPFLAGS'
1557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1559ac_compiler_gnu=$ac_cv_c_compiler_gnu
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590# List one file in the package so that the configure script can test
1591# whether the package is actually there
1592
1593
1594# Where should everything be installed by default?  Here, we want it
1595# to be installed directly in 'bin', 'lib', 'include' subdirectories
1596# of the directory where configure is run.  The default would be
1597# /usr/local.
1598
1599
1600
1601# As backup, we make sure we don't loose an FLIBS if it has been set
1602# by the user
1603save_FLIBS="$FLIBS"
1604
1605# A useful makefile conditional that is always false
1606
1607
1608if false; then
1609  ALWAYS_FALSE_TRUE=
1610  ALWAYS_FALSE_FALSE='#'
1611else
1612  ALWAYS_FALSE_TRUE='#'
1613  ALWAYS_FALSE_FALSE=
1614fi
1615
1616
1617# We set the following variable so that we know later in AC_COIN_FINALIZE
1618# that we are in a project main directory
1619coin_projectdir=yes
1620
1621# Set the project's version numbers
1622
1623
1624cat >>confdefs.h <<_ACEOF
1625#define BLAS_VERSION "$PACKAGE_VERSION"
1626_ACEOF
1627
1628
1629  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1630  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1631  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1632  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1633  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1634  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1635
1636cat >>confdefs.h <<_ACEOF
1637#define BLAS_VERSION_MAJOR $coin_majorver
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define BLAS_VERSION_MINOR $coin_minorver
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define BLAS_VERSION_RELEASE $coin_releasever
1648_ACEOF
1649
1650
1651  # We use the following variable to have a string with the upper case
1652  # version of the project name
1653  COIN_PRJCT=BLAS
1654
1655  # Set the project's SVN revision number. The complicated sed expression
1656  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1657  # as a single number.
1658  # Extract the first word of "svnversion", so it can be a program name with args.
1659set dummy svnversion; ac_word=$2
1660echo "$as_me:$LINENO: checking for $ac_word" >&5
1661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662if test "${ac_cv_prog_have_svnversion+set}" = set; then
1663  echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665  if test -n "$have_svnversion"; then
1666  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1667else
1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671  IFS=$as_save_IFS
1672  test -z "$as_dir" && as_dir=.
1673  for ac_exec_ext in '' $ac_executable_extensions; do
1674  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675    ac_cv_prog_have_svnversion="yes"
1676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677    break 2
1678  fi
1679done
1680done
1681
1682  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1683fi
1684fi
1685have_svnversion=$ac_cv_prog_have_svnversion
1686if test -n "$have_svnversion"; then
1687  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1688echo "${ECHO_T}$have_svnversion" >&6
1689else
1690  echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694  if test "x$have_svnversion" = xyes; then
1695
1696    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1697    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1698      BLAS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1699
1700cat >>confdefs.h <<_ACEOF
1701#define BLAS_SVN_REV $BLAS_SVN_REV
1702_ACEOF
1703
1704    fi
1705  fi
1706
1707
1708
1709# Capture libtool library version, if given.
1710
1711
1712
1713
1714#############################################################################
1715#                         Standard build tool stuff                         #
1716#############################################################################
1717
1718# Get the system type
1719ac_aux_dir=
1720for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1721  if test -f $ac_dir/install-sh; then
1722    ac_aux_dir=$ac_dir
1723    ac_install_sh="$ac_aux_dir/install-sh -c"
1724    break
1725  elif test -f $ac_dir/install.sh; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install.sh -c"
1728    break
1729  elif test -f $ac_dir/shtool; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/shtool install -c"
1732    break
1733  fi
1734done
1735if test -z "$ac_aux_dir"; then
1736  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1737echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1738   { (exit 1); exit 1; }; }
1739fi
1740ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1741ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1742ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1743
1744# Make sure we can run config.sub.
1745$ac_config_sub sun4 >/dev/null 2>&1 ||
1746  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1747echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750echo "$as_me:$LINENO: checking build system type" >&5
1751echo $ECHO_N "checking build system type... $ECHO_C" >&6
1752if test "${ac_cv_build+set}" = set; then
1753  echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755  ac_cv_build_alias=$build_alias
1756test -z "$ac_cv_build_alias" &&
1757  ac_cv_build_alias=`$ac_config_guess`
1758test -z "$ac_cv_build_alias" &&
1759  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1760echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1761   { (exit 1); exit 1; }; }
1762ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1763  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1764echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1765   { (exit 1); exit 1; }; }
1766
1767fi
1768echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1769echo "${ECHO_T}$ac_cv_build" >&6
1770build=$ac_cv_build
1771build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774
1775
1776
1777#turn off warnings and pedantic mode since they could make trouble on some platforms,
1778#and we couldn't fix them anyway
1779coin_skip_warn_fflags=yes
1780
1781# Check if user wants to produce debugging code
1782
1783echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1784echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1785
1786# Check whether --enable-debug or --disable-debug was given.
1787if test "${enable_debug+set}" = set; then
1788  enableval="$enable_debug"
1789  case "${enableval}" in
1790   yes) coin_debug_compile=true
1791        if test "${enable_shared+set}" = set; then :; else
1792          enable_shared=no
1793        fi
1794        ;;
1795   no)  coin_debug_compile=false
1796        ;;
1797   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1798echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1799   { (exit 1); exit 1; }; }
1800        ;;
1801esac
1802else
1803  coin_debug_compile=false
1804fi;
1805
1806# Check whether --enable-debug-blas or --disable-debug-blas was given.
1807if test "${enable_debug_blas+set}" = set; then
1808  enableval="$enable_debug_blas"
1809  case "${enableval}" in
1810    yes) coin_debug_compile=true
1811         ;;
1812    no)  coin_debug_compile=false
1813         ;;
1814    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1815echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1816   { (exit 1); exit 1; }; }
1817         ;;
1818 esac
1819else
1820  :
1821fi;
1822
1823 # m4_ifvaln([Blas],
1824
1825if test $coin_debug_compile = true; then
1826  echo "$as_me:$LINENO: result: yes" >&5
1827echo "${ECHO_T}yes" >&6
1828else
1829  echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833
1834# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1835if test "${with_blas_verbosity+set}" = set; then
1836  withval="$with_blas_verbosity"
1837  if test "$withval" = yes; then
1838                withval=1
1839              fi
1840              coin_blas_verbosity=$withval
1841else
1842  coin_blas_verbosity=0
1843fi;
1844
1845cat >>confdefs.h <<_ACEOF
1846#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1847_ACEOF
1848
1849
1850
1851# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1852if test "${with_blas_checklevel+set}" = set; then
1853  withval="$with_blas_checklevel"
1854  if test "$withval" = yes; then
1855                withval=1
1856              fi
1857              coin_blas_checklevel=$withval
1858else
1859  coin_blas_checklevel=0
1860fi;
1861
1862cat >>confdefs.h <<_ACEOF
1863#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1864_ACEOF
1865
1866
1867 # m4_ifvaln([Blas],
1868
1869
1870
1871# Get the name of the Fortran compiler and appropriate compiler options
1872
1873
1874  # for backward compatibility
1875  # Check whether --enable-doscompile or --disable-doscompile was given.
1876if test "${enable_doscompile+set}" = set; then
1877  enableval="$enable_doscompile"
1878  enable_doscompile=$enableval
1879else
1880  enable_doscompile=no
1881fi;
1882
1883  # Check whether --enable-msvc or --disable-msvc was given.
1884if test "${enable_msvc+set}" = set; then
1885  enableval="$enable_msvc"
1886  enable_msvc=$enableval
1887else
1888  enable_msvc=no
1889     if test "$enable_doscompile" = msvc ; then
1890       enable_msvc=yes
1891     elif test "$enable_doscompile" != no ; then
1892       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1893echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1894   { (exit 1); exit 1; }; }
1895     fi
1896
1897fi;
1898
1899  if test "$enable_msvc" = MD; then
1900    enable_shared=yes
1901    enable_msvc=yes
1902  fi
1903
1904  if test "$enable_msvc" = yes; then
1905    case $build in
1906      *-cygwin* | *-mingw*) ;;
1907      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1908echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1909   { (exit 1); exit 1; }; } ;;
1910    esac
1911  fi
1912
1913
1914 case $build in
1915  *-mingw*)
1916    if test "${LD+set}" = set; then :; else
1917      LD=link
1918    fi
1919    ;;
1920 esac
1921 if test $enable_msvc = yes ; then
1922   if test "x${LD+set}" = xset; then :; else
1923     LD=link
1924   fi
1925 fi
1926
1927
1928
1929
1930ac_ext=c
1931ac_cpp='$CPP $CPPFLAGS'
1932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937# For consistency, we set the C compiler to the same value of the C++
1938# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1939if test x"$CXX" != x; then
1940  case "$CXX" in
1941    clang* ) ;;
1942    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1943      if test x"$CC" = x; then
1944        CC="$CXX"
1945        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1946echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1947      fi
1948      ;;
1949  esac
1950fi
1951
1952
1953
1954
1955
1956
1957coin_has_cc=yes
1958
1959save_cflags="$CFLAGS"
1960
1961# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1962# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1963# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1964# compiler. In this case, put cc after gcc.
1965
1966case $build in
1967  *-cygwin* | *-mingw*)
1968             if test "$enable_msvc" = yes ; then
1969               comps="icl cl gcc"
1970             else
1971               comps="gcc icl cl"
1972             fi ;;
1973  *-*-solaris*)
1974             # Extract the first word of "cc", so it can be a program name with args.
1975set dummy cc; ac_word=$2
1976echo "$as_me:$LINENO: checking for $ac_word" >&5
1977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1979  echo $ECHO_N "(cached) $ECHO_C" >&6
1980else
1981  if test -n "$sol_cc_compiler"; then
1982  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1983else
1984  ac_prog_rejected=no
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990  for ac_exec_ext in '' $ac_executable_extensions; do
1991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1993       ac_prog_rejected=yes
1994       continue
1995     fi
1996    ac_cv_prog_sol_cc_compiler="cc"
1997    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998    break 2
1999  fi
2000done
2001done
2002
2003if test $ac_prog_rejected = yes; then
2004  # We found a bogon in the path, so make sure we never use it.
2005  set dummy $ac_cv_prog_sol_cc_compiler
2006  shift
2007  if test $# != 0; then
2008    # We chose a different compiler from the bogus one.
2009    # However, it has the same basename, so the bogon will be chosen
2010    # first if we set sol_cc_compiler to just the basename; use the full file name.
2011    shift
2012    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2013  fi
2014fi
2015fi
2016fi
2017sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2018if test -n "$sol_cc_compiler"; then
2019  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2020echo "${ECHO_T}$sol_cc_compiler" >&6
2021else
2022  echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026             if test "$sol_cc_compiler" = "cc" ; then
2027               comps="cc xlc gcc pgcc icc"
2028             else
2029               comps="xlc gcc pgcc icc cc"
2030             fi
2031             ;;
2032  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2033  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2034  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2035esac
2036
2037# We delete the cached value, since the test might not have been
2038# performed with our choice of compilers earlier
2039$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2040# AC_MSG_NOTICE([C compiler candidates: $comps])
2041ac_ext=c
2042ac_cpp='$CPP $CPPFLAGS'
2043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046if test -n "$ac_tool_prefix"; then
2047  for ac_prog in $comps
2048  do
2049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_CC+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$CC"; then
2057  ac_cv_prog_CC="$CC" # Let the user override the test.
2058else
2059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060for as_dir in $PATH
2061do
2062  IFS=$as_save_IFS
2063  test -z "$as_dir" && as_dir=.
2064  for ac_exec_ext in '' $ac_executable_extensions; do
2065  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2067    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068    break 2
2069  fi
2070done
2071done
2072
2073fi
2074fi
2075CC=$ac_cv_prog_CC
2076if test -n "$CC"; then
2077  echo "$as_me:$LINENO: result: $CC" >&5
2078echo "${ECHO_T}$CC" >&6
2079else
2080  echo "$as_me:$LINENO: result: no" >&5
2081echo "${ECHO_T}no" >&6
2082fi
2083
2084    test -n "$CC" && break
2085  done
2086fi
2087if test -z "$CC"; then
2088  ac_ct_CC=$CC
2089  for ac_prog in $comps
2090do
2091  # Extract the first word of "$ac_prog", so it can be a program name with args.
2092set dummy $ac_prog; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$ac_ct_CC"; then
2099  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108    ac_cv_prog_ac_ct_CC="$ac_prog"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115fi
2116fi
2117ac_ct_CC=$ac_cv_prog_ac_ct_CC
2118if test -n "$ac_ct_CC"; then
2119  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2120echo "${ECHO_T}$ac_ct_CC" >&6
2121else
2122  echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126  test -n "$ac_ct_CC" && break
2127done
2128
2129  CC=$ac_ct_CC
2130fi
2131
2132
2133test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: no acceptable C compiler found in \$PATH
2136See \`config.log' for more details." >&2;}
2137   { (exit 1); exit 1; }; }
2138
2139# Provide some information about the compiler.
2140echo "$as_me:$LINENO:" \
2141     "checking for C compiler version" >&5
2142ac_compiler=`set X $ac_compile; echo $2`
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144  (eval $ac_compiler --version </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149  (eval $ac_compiler -v </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154  (eval $ac_compiler -V </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158
2159cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169
2170  ;
2171  return 0;
2172}
2173_ACEOF
2174ac_clean_files_save=$ac_clean_files
2175ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176# Try to create an executable without -o first, disregard a.out.
2177# It will help us diagnose broken compilers, and finding out an intuition
2178# of exeext.
2179echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2181ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183  (eval $ac_link_default) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  # Find the output, starting from the most likely.  This scheme is
2188# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189# resort.
2190
2191# Be careful to initialize this variable, since it used to be cached.
2192# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2193ac_cv_exeext=
2194# b.out is created by i960 compilers.
2195for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2196do
2197  test -f "$ac_file" || continue
2198  case $ac_file in
2199    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2200        ;;
2201    conftest.$ac_ext )
2202        # This is the source file.
2203        ;;
2204    [ab].out )
2205        # We found the default executable, but exeext='' is most
2206        # certainly right.
2207        break;;
2208    *.* )
2209        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210        # FIXME: I believe we export ac_cv_exeext for Libtool,
2211        # but it would be cool to find out if it's true.  Does anybody
2212        # maintain Libtool? --akim.
2213        export ac_cv_exeext
2214        break;;
2215    * )
2216        break;;
2217  esac
2218done
2219else
2220  echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: C compiler cannot create executables
2226See \`config.log' for more details." >&2;}
2227   { (exit 77); exit 77; }; }
2228fi
2229
2230ac_exeext=$ac_cv_exeext
2231echo "$as_me:$LINENO: result: $ac_file" >&5
2232echo "${ECHO_T}$ac_file" >&6
2233
2234# Check the compiler produces executables we can run.  If not, either
2235# the compiler is broken, or we cross compile.
2236echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239# If not cross compiling, check that we can run a simple program.
2240if test "$cross_compiling" != yes; then
2241  if { ac_try='./$ac_file'
2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; }; then
2247    cross_compiling=no
2248  else
2249    if test "$cross_compiling" = maybe; then
2250        cross_compiling=yes
2251    else
2252        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot run C compiled programs.
2256If you meant to cross compile, use \`--host'.
2257See \`config.log' for more details." >&2;}
2258   { (exit 1); exit 1; }; }
2259    fi
2260  fi
2261fi
2262echo "$as_me:$LINENO: result: yes" >&5
2263echo "${ECHO_T}yes" >&6
2264
2265rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266ac_clean_files=$ac_clean_files_save
2267# Check the compiler produces executables we can run.  If not, either
2268# the compiler is broken, or we cross compile.
2269echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272echo "${ECHO_T}$cross_compiling" >&6
2273
2274echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277  (eval $ac_link) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }; then
2281  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2283# work properly (i.e., refer to `conftest.exe'), while it won't with
2284# `rm'.
2285for ac_file in conftest.exe conftest conftest.*; do
2286  test -f "$ac_file" || continue
2287  case $ac_file in
2288    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2290          export ac_cv_exeext
2291          break;;
2292    * ) break;;
2293  esac
2294done
2295else
2296  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299See \`config.log' for more details." >&2;}
2300   { (exit 1); exit 1; }; }
2301fi
2302
2303rm -f conftest$ac_cv_exeext
2304echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305echo "${ECHO_T}$ac_cv_exeext" >&6
2306
2307rm -f conftest.$ac_ext
2308EXEEXT=$ac_cv_exeext
2309ac_exeext=$EXEEXT
2310echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312if test "${ac_cv_objext+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h.  */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h.  */
2321
2322int
2323main ()
2324{
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.o conftest.obj
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; then
2336  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2337  case $ac_file in
2338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2339    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2340       break;;
2341  esac
2342done
2343else
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&5
2349echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350See \`config.log' for more details." >&2;}
2351   { (exit 1); exit 1; }; }
2352fi
2353
2354rm -f conftest.$ac_cv_objext conftest.$ac_ext
2355fi
2356echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357echo "${ECHO_T}$ac_cv_objext" >&6
2358OBJEXT=$ac_cv_objext
2359ac_objext=$OBJEXT
2360echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2362if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h.  */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h.  */
2371
2372int
2373main ()
2374{
2375#ifndef __GNUC__
2376       choke me
2377#endif
2378
2379  ;
2380  return 0;
2381}
2382_ACEOF
2383rm -f conftest.$ac_objext
2384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385  (eval $ac_compile) 2>conftest.er1
2386  ac_status=$?
2387  grep -v '^ *+' conftest.er1 >conftest.err
2388  rm -f conftest.er1
2389  cat conftest.err >&5
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); } &&
2392         { ac_try='test -z "$ac_c_werror_flag"
2393                         || test ! -s conftest.err'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; } &&
2399         { ac_try='test -s conftest.$ac_objext'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; }; then
2405  ac_compiler_gnu=yes
2406else
2407  echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410ac_compiler_gnu=no
2411fi
2412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414
2415fi
2416echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418GCC=`test $ac_compiler_gnu = yes && echo yes`
2419ac_test_CFLAGS=${CFLAGS+set}
2420ac_save_CFLAGS=$CFLAGS
2421CFLAGS="-g"
2422echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424if test "${ac_cv_prog_cc_g+set}" = set; then
2425  echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433
2434int
2435main ()
2436{
2437
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>conftest.er1
2445  ac_status=$?
2446  grep -v '^ *+' conftest.er1 >conftest.err
2447  rm -f conftest.er1
2448  cat conftest.err >&5
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451         { ac_try='test -z "$ac_c_werror_flag"
2452                         || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458         { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  ac_cv_prog_cc_g=yes
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469ac_cv_prog_cc_g=no
2470fi
2471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2472fi
2473echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2474echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2475if test "$ac_test_CFLAGS" = set; then
2476  CFLAGS=$ac_save_CFLAGS
2477elif test $ac_cv_prog_cc_g = yes; then
2478  if test "$GCC" = yes; then
2479    CFLAGS="-g -O2"
2480  else
2481    CFLAGS="-g"
2482  fi
2483else
2484  if test "$GCC" = yes; then
2485    CFLAGS="-O2"
2486  else
2487    CFLAGS=
2488  fi
2489fi
2490echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2491echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2492if test "${ac_cv_prog_cc_stdc+set}" = set; then
2493  echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495  ac_cv_prog_cc_stdc=no
2496ac_save_CC=$CC
2497cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h.  */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h.  */
2503#include <stdarg.h>
2504#include <stdio.h>
2505#include <sys/types.h>
2506#include <sys/stat.h>
2507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2508struct buf { int x; };
2509FILE * (*rcsopen) (struct buf *, struct stat *, int);
2510static char *e (p, i)
2511     char **p;
2512     int i;
2513{
2514  return p[i];
2515}
2516static char *f (char * (*g) (char **, int), char **p, ...)
2517{
2518  char *s;
2519  va_list v;
2520  va_start (v,p);
2521  s = g (p, va_arg (v,int));
2522  va_end (v);
2523  return s;
2524}
2525
2526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2527   function prototypes and stuff, but not '\xHH' hex character constants.
2528   These don't provoke an error unfortunately, instead are silently treated
2529   as 'x'.  The following induces an error, until -std1 is added to get
2530   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2531   array size at least.  It's necessary to write '\x00'==0 to get something
2532   that's true only with -std1.  */
2533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2534
2535int test (int i, double x);
2536struct s1 {int (*f) (int a);};
2537struct s2 {int (*f) (double a);};
2538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2539int argc;
2540char **argv;
2541int
2542main ()
2543{
2544return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2545  ;
2546  return 0;
2547}
2548_ACEOF
2549# Don't try gcc -ansi; that turns off useful extensions and
2550# breaks some systems' header files.
2551# AIX                   -qlanglvl=ansi
2552# Ultrix and OSF/1      -std1
2553# HP-UX 10.20 and later -Ae
2554# HP-UX older versions  -Aa -D_HPUX_SOURCE
2555# SVR4                  -Xc -D__EXTENSIONS__
2556for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557do
2558  CC="$ac_save_CC $ac_arg"
2559  rm -f conftest.$ac_objext
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561  (eval $ac_compile) 2>conftest.er1
2562  ac_status=$?
2563  grep -v '^ *+' conftest.er1 >conftest.err
2564  rm -f conftest.er1
2565  cat conftest.err >&5
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); } &&
2568         { ac_try='test -z "$ac_c_werror_flag"
2569                         || test ! -s conftest.err'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; } &&
2575         { ac_try='test -s conftest.$ac_objext'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; }; then
2581  ac_cv_prog_cc_stdc=$ac_arg
2582break
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587fi
2588rm -f conftest.err conftest.$ac_objext
2589done
2590rm -f conftest.$ac_ext conftest.$ac_objext
2591CC=$ac_save_CC
2592
2593fi
2594
2595case "x$ac_cv_prog_cc_stdc" in
2596  x|xno)
2597    echo "$as_me:$LINENO: result: none needed" >&5
2598echo "${ECHO_T}none needed" >&6 ;;
2599  *)
2600    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602    CC="$CC $ac_cv_prog_cc_stdc" ;;
2603esac
2604
2605# Some people use a C++ compiler to compile C.  Since we use `exit',
2606# in C++ we need to declare it.  In case someone uses the same compiler
2607# for both compiling C and C++ we need to have the C++ compiler decide
2608# the declaration of exit, since it's the most demanding environment.
2609cat >conftest.$ac_ext <<_ACEOF
2610#ifndef __cplusplus
2611  choke me
2612#endif
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>conftest.er1
2617  ac_status=$?
2618  grep -v '^ *+' conftest.er1 >conftest.err
2619  rm -f conftest.er1
2620  cat conftest.err >&5
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); } &&
2623         { ac_try='test -z "$ac_c_werror_flag"
2624                         || test ! -s conftest.err'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; } &&
2630         { ac_try='test -s conftest.$ac_objext'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; }; then
2636  for ac_declaration in \
2637   '' \
2638   'extern "C" void std::exit (int) throw (); using std::exit;' \
2639   'extern "C" void std::exit (int); using std::exit;' \
2640   'extern "C" void exit (int) throw ();' \
2641   'extern "C" void exit (int);' \
2642   'void exit (int);'
2643do
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650$ac_declaration
2651#include <stdlib.h>
2652int
2653main ()
2654{
2655exit (42);
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662  (eval $ac_compile) 2>conftest.er1
2663  ac_status=$?
2664  grep -v '^ *+' conftest.er1 >conftest.err
2665  rm -f conftest.er1
2666  cat conftest.err >&5
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); } &&
2669         { ac_try='test -z "$ac_c_werror_flag"
2670                         || test ! -s conftest.err'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; } &&
2676         { ac_try='test -s conftest.$ac_objext'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; }; then
2682  :
2683else
2684  echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687continue
2688fi
2689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690  cat >conftest.$ac_ext <<_ACEOF
2691/* confdefs.h.  */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h.  */
2696$ac_declaration
2697int
2698main ()
2699{
2700exit (42);
2701  ;
2702  return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707  (eval $ac_compile) 2>conftest.er1
2708  ac_status=$?
2709  grep -v '^ *+' conftest.er1 >conftest.err
2710  rm -f conftest.er1
2711  cat conftest.err >&5
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); } &&
2714         { ac_try='test -z "$ac_c_werror_flag"
2715                         || test ! -s conftest.err'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; } &&
2721         { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  break
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734done
2735rm -f conftest*
2736if test -n "$ac_declaration"; then
2737  echo '#ifdef __cplusplus' >>confdefs.h
2738  echo $ac_declaration      >>confdefs.h
2739  echo '#endif'             >>confdefs.h
2740fi
2741
2742else
2743  echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754if test -z "$CC" ; then
2755  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2756echo "$as_me: error: Failed to find a C compiler!" >&2;}
2757   { (exit 1); exit 1; }; }
2758fi
2759# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2760case "$CC" in
2761  clang* ) ;;
2762  cl* | */cl* | CL* | */CL* )
2763    if test "$ac_cv_prog_cc_g" = yes ; then
2764      ac_cv_prog_cc_g=no
2765      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2766echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2767    fi ;;
2768  * )
2769    if test x"$CYGPATH_W" = x ; then
2770      CYGPATH_W=echo
2771    fi
2772    ;;
2773esac
2774CFLAGS="$save_cflags"
2775
2776# add automake conditional so we can recognize cl compiler in makefile
2777coin_cc_is_cl=false
2778case "$CC" in
2779  clang* ) ;;
2780  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2781    coin_cc_is_cl=true
2782    ;;
2783esac
2784
2785
2786if test $coin_cc_is_cl = true; then
2787  COIN_CC_IS_CL_TRUE=
2788  COIN_CC_IS_CL_FALSE='#'
2789else
2790  COIN_CC_IS_CL_TRUE='#'
2791  COIN_CC_IS_CL_FALSE=
2792fi
2793
2794
2795# Check if a project specific CFLAGS variable has been set
2796if test x$COIN_PRJCT != x; then
2797  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2798  if test x$coin_tmp = xset; then
2799    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2800  fi
2801fi
2802
2803if test x"$CFLAGS" = x; then
2804
2805  coin_add_cflags=
2806  coin_opt_cflags=
2807  coin_dbg_cflags=
2808  coin_warn_cflags=
2809
2810  if test "$GCC" = "yes"; then
2811    case "$CC" in
2812      icc* | */icc*)
2813        ;;
2814      *)
2815        coin_opt_cflags="-O3"
2816        coin_add_cflags="-pipe"
2817        coin_dbg_cflags="-g -O0"
2818        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2819        case $build in
2820          *-darwin*)
2821            ;;
2822          *)
2823            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2824            ;;
2825        esac
2826    esac
2827  fi
2828  if test -z "$coin_opt_cflags"; then
2829    case $build in
2830      *-cygwin* | *-mingw*)
2831        case "$CC" in
2832          clang* ) ;;
2833          cl* | */cl* | CL* | */CL*)
2834            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2835              coin_opt_cflags='-MD -O2'
2836              coin_dbg_cflags='-MDd'
2837            else
2838              coin_opt_cflags='-MT -O2'
2839              coin_dbg_cflags='-MTd'
2840            fi
2841            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2842            ;;
2843          icl* | */icl* | ICL* | */ICL*)
2844            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2845              coin_opt_cflags='-MD -Ox'
2846              coin_dbg_cflags='-MDd -debug'
2847            else
2848              coin_opt_cflags='-MT -Ox'
2849              coin_dbg_cflags='-MTd -debug'
2850            fi
2851            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2852            ;;
2853        esac
2854        ;;
2855      *-linux-*)
2856        case "$CC" in
2857          icc* | */icc*)
2858            coin_opt_cflags="-O3 -ip -mp1"
2859            coin_add_cflags=""
2860            coin_dbg_cflags="-g"
2861            # Check if -i_dynamic is necessary (for new glibc library)
2862            CFLAGS=
2863            cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869
2870int
2871main ()
2872{
2873int i=0; i++;
2874  ;
2875  return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext conftest$ac_exeext
2879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2880  (eval $ac_link) 2>conftest.er1
2881  ac_status=$?
2882  grep -v '^ *+' conftest.er1 >conftest.err
2883  rm -f conftest.er1
2884  cat conftest.err >&5
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); } &&
2887         { ac_try='test -z "$ac_c_werror_flag"
2888                         || test ! -s conftest.err'
2889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890  (eval $ac_try) 2>&5
2891  ac_status=$?
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); }; } &&
2894         { ac_try='test -s conftest$ac_exeext'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; }; then
2900  :
2901else
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905coin_add_cflags="-i_dynamic $coin_add_cflags"
2906fi
2907rm -f conftest.err conftest.$ac_objext \
2908      conftest$ac_exeext conftest.$ac_ext
2909            ;;
2910          pgcc* | */pgcc*)
2911            coin_opt_cflags="-fast"
2912            coin_add_cflags="-Kieee -pc 64"
2913            coin_dbg_cflags="-g"
2914            ;;
2915        esac
2916        ;;
2917      *-ibm-*)
2918        case "$CC" in
2919          xlc* | */xlc* | mpxlc* | */mpxlc*)
2920            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2921            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2922            coin_dbg_cflags="-g"
2923          ;;
2924        esac
2925        ;;
2926      *-hp-*)
2927        coin_opt_cflags="-O"
2928        coin_add_cflags="-Ae"
2929        coin_dbg_cflags="-g"
2930        ;;
2931      *-*-solaris*)
2932        coin_opt_cflags="-xO4"
2933        coin_dbg_cflags="-g"
2934        ;;
2935      *-sgi-*)
2936        coin_opt_cflags="-O -OPT:Olimit=0"
2937        coin_dbg_cflags="-g"
2938        ;;
2939    esac
2940  fi
2941
2942  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2943    coin_dbg_cflags="-g"
2944  fi
2945
2946  if test -z "$coin_opt_cflags"; then
2947    # Try if -O option works if nothing else is set
2948    CFLAGS="-O"
2949    cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h.  */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h.  */
2955
2956int
2957main ()
2958{
2959int i=0; i++;
2960  ;
2961  return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext conftest$ac_exeext
2965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2966  (eval $ac_link) 2>conftest.er1
2967  ac_status=$?
2968  grep -v '^ *+' conftest.er1 >conftest.err
2969  rm -f conftest.er1
2970  cat conftest.err >&5
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); } &&
2973         { ac_try='test -z "$ac_c_werror_flag"
2974                         || test ! -s conftest.err'
2975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976  (eval $ac_try) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; } &&
2980         { ac_try='test -s conftest$ac_exeext'
2981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982  (eval $ac_try) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); }; }; then
2986  coin_opt_cflags="-O"
2987else
2988  echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991fi
2992rm -f conftest.err conftest.$ac_objext \
2993      conftest$ac_exeext conftest.$ac_ext
2994  fi
2995
2996  # if PM doesn't want the warning messages, take them out
2997  if test x"$coin_skip_warn_cflags" = xyes; then
2998    coin_warn_cflags=
2999  fi
3000
3001  if test x${DBG_CFLAGS+set} != xset; then
3002    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3003  fi
3004  if test x${OPT_CFLAGS+set} != xset; then
3005    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3006  fi
3007
3008  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3009  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3010
3011  if test "$coin_debug_compile" = "true"; then
3012    CFLAGS="$DBG_CFLAGS"
3013  else
3014    CFLAGS="$OPT_CFLAGS"
3015  fi
3016else
3017  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3018  if test x${DBG_CFLAGS+set} != xset; then
3019    DBG_CFLAGS="$CFLAGS"
3020  fi
3021  if test x${OPT_CFLAGS+set} != xset; then
3022    OPT_CFLAGS="$CFLAGS"
3023  fi
3024fi
3025
3026# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3027if test x$COIN_PRJCT != x; then
3028  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3029fi
3030
3031# Try if CFLAGS works
3032save_CFLAGS="$CFLAGS"
3033cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h.  */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h.  */
3039
3040int
3041main ()
3042{
3043int i=0; i++;
3044  ;
3045  return 0;
3046}
3047_ACEOF
3048rm -f conftest.$ac_objext conftest$ac_exeext
3049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3050  (eval $ac_link) 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057         { ac_try='test -z "$ac_c_werror_flag"
3058                         || test ! -s conftest.err'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; } &&
3064         { ac_try='test -s conftest$ac_exeext'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; }; then
3070  :
3071else
3072  echo "$as_me: failed program was:" >&5
3073sed 's/^/| /' conftest.$ac_ext >&5
3074
3075CFLAGS=
3076fi
3077rm -f conftest.err conftest.$ac_objext \
3078      conftest$ac_exeext conftest.$ac_ext
3079if test -z "$CFLAGS"; then
3080  { 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
3081echo "$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;}
3082  CFLAGS='-O'
3083  cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093int i=0; i++;
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext conftest$ac_exeext
3099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100  (eval $ac_link) 2>conftest.er1
3101  ac_status=$?
3102  grep -v '^ *+' conftest.er1 >conftest.err
3103  rm -f conftest.er1
3104  cat conftest.err >&5
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); } &&
3107         { ac_try='test -z "$ac_c_werror_flag"
3108                         || test ! -s conftest.err'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; } &&
3114         { ac_try='test -s conftest$ac_exeext'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; }; then
3120  :
3121else
3122  echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125CFLAGS=
3126fi
3127rm -f conftest.err conftest.$ac_objext \
3128      conftest$ac_exeext conftest.$ac_ext
3129  if test -z "$CFLAGS"; then
3130    { 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
3131echo "$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;}
3132  fi
3133fi
3134
3135{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3136echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3137
3138
3139if test x"$MPICC" = x; then :; else
3140  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3141echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3142  CC="$MPICC"
3143fi
3144
3145# Correct the LD variable if we are using the MS or Intel-windows compiler
3146case "$CC" in
3147  clang* ) ;;
3148  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3149
3150 case $build in
3151  *-mingw*)
3152    if test "${LD+set}" = set; then :; else
3153      LD=link
3154    fi
3155    ;;
3156 esac
3157 if test $enable_msvc = yes ; then
3158   if test "x${LD+set}" = xset; then :; else
3159     LD=link
3160   fi
3161 fi
3162
3163    ;;
3164esac
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173case $build in
3174  *-cygwin* | *-mingw*)
3175     if test "$enable_msvc" = yes ; then
3176       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3177     else
3178       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3179     fi ;;
3180  *-*-solaris*)
3181     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3182  *-linux-gnu*)
3183     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3184  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3185 esac
3186
3187
3188
3189
3190
3191
3192ac_ext=f
3193ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3194ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3196
3197
3198
3199
3200
3201
3202coin_has_f77=yes
3203
3204save_fflags="$FFLAGS"
3205
3206# We delete the cached value, since the test might not have been
3207# performed with our choice of compilers earlier
3208$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3209
3210# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3211# coin_f77_comps to see if there's a program that matches one of the names.
3212# If there's no such program, F77 = unavailable. If we match the name,
3213# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3214# compiler.
3215# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3216
3217
3218{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3219echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3220if test -n "$ac_tool_prefix"; then
3221  for ac_prog in $coin_f77_comps
3222  do
3223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3225echo "$as_me:$LINENO: checking for $ac_word" >&5
3226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227if test "${ac_cv_prog_F77+set}" = set; then
3228  echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230  if test -n "$F77"; then
3231  ac_cv_prog_F77="$F77" # Let the user override the test.
3232else
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236  IFS=$as_save_IFS
3237  test -z "$as_dir" && as_dir=.
3238  for ac_exec_ext in '' $ac_executable_extensions; do
3239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242    break 2
3243  fi
3244done
3245done
3246
3247fi
3248fi
3249F77=$ac_cv_prog_F77
3250if test -n "$F77"; then
3251  echo "$as_me:$LINENO: result: $F77" >&5
3252echo "${ECHO_T}$F77" >&6
3253else
3254  echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256fi
3257
3258    test -n "$F77" && break
3259  done
3260fi
3261if test -z "$F77"; then
3262  ac_ct_F77=$F77
3263  for ac_prog in $coin_f77_comps
3264do
3265  # Extract the first word of "$ac_prog", so it can be a program name with args.
3266set dummy $ac_prog; ac_word=$2
3267echo "$as_me:$LINENO: checking for $ac_word" >&5
3268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3270  echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272  if test -n "$ac_ct_F77"; then
3273  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280  for ac_exec_ext in '' $ac_executable_extensions; do
3281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282    ac_cv_prog_ac_ct_F77="$ac_prog"
3283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287done
3288
3289fi
3290fi
3291ac_ct_F77=$ac_cv_prog_ac_ct_F77
3292if test -n "$ac_ct_F77"; then
3293  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3294echo "${ECHO_T}$ac_ct_F77" >&6
3295else
3296  echo "$as_me:$LINENO: result: no" >&5
3297echo "${ECHO_T}no" >&6
3298fi
3299
3300  test -n "$ac_ct_F77" && break
3301done
3302test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3303
3304  F77=$ac_ct_F77
3305fi
3306
3307
3308if test "$F77" != "unavailable" ; then
3309  ac_ext=f
3310ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3311ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3313if test -n "$ac_tool_prefix"; then
3314  for ac_prog in $coin_f77_comps
3315  do
3316    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318echo "$as_me:$LINENO: checking for $ac_word" >&5
3319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320if test "${ac_cv_prog_F77+set}" = set; then
3321  echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323  if test -n "$F77"; then
3324  ac_cv_prog_F77="$F77" # Let the user override the test.
3325else
3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331  for ac_exec_ext in '' $ac_executable_extensions; do
3332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338done
3339
3340fi
3341fi
3342F77=$ac_cv_prog_F77
3343if test -n "$F77"; then
3344  echo "$as_me:$LINENO: result: $F77" >&5
3345echo "${ECHO_T}$F77" >&6
3346else
3347  echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349fi
3350
3351    test -n "$F77" && break
3352  done
3353fi
3354if test -z "$F77"; then
3355  ac_ct_F77=$F77
3356  for ac_prog in $coin_f77_comps
3357do
3358  # Extract the first word of "$ac_prog", so it can be a program name with args.
3359set dummy $ac_prog; ac_word=$2
3360echo "$as_me:$LINENO: checking for $ac_word" >&5
3361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3362if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3363  echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365  if test -n "$ac_ct_F77"; then
3366  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371  IFS=$as_save_IFS
3372  test -z "$as_dir" && as_dir=.
3373  for ac_exec_ext in '' $ac_executable_extensions; do
3374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375    ac_cv_prog_ac_ct_F77="$ac_prog"
3376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377    break 2
3378  fi
3379done
3380done
3381
3382fi
3383fi
3384ac_ct_F77=$ac_cv_prog_ac_ct_F77
3385if test -n "$ac_ct_F77"; then
3386  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3387echo "${ECHO_T}$ac_ct_F77" >&6
3388else
3389  echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391fi
3392
3393  test -n "$ac_ct_F77" && break
3394done
3395
3396  F77=$ac_ct_F77
3397fi
3398
3399
3400# Provide some information about the compiler.
3401echo "$as_me:3401:" \
3402     "checking for Fortran 77 compiler version" >&5
3403ac_compiler=`set X $ac_compile; echo $2`
3404{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3405  (eval $ac_compiler --version </dev/null >&5) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }
3409{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3410  (eval $ac_compiler -v </dev/null >&5) 2>&5
3411  ac_status=$?
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); }
3414{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3415  (eval $ac_compiler -V </dev/null >&5) 2>&5
3416  ac_status=$?
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); }
3419rm -f a.out
3420
3421# If we don't use `.F' as extension, the preprocessor is not run on the
3422# input file.  (Note that this only needs to work for GNU compilers.)
3423ac_save_ext=$ac_ext
3424ac_ext=F
3425echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3426echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3427if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3428  echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430  cat >conftest.$ac_ext <<_ACEOF
3431      program main
3432#ifndef __GNUC__
3433       choke me
3434#endif
3435
3436      end
3437_ACEOF
3438rm -f conftest.$ac_objext
3439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3440  (eval $ac_compile) 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } &&
3447         { ac_try='test -z "$ac_f77_werror_flag"
3448                         || test ! -s conftest.err'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; } &&
3454         { ac_try='test -s conftest.$ac_objext'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; }; then
3460  ac_compiler_gnu=yes
3461else
3462  echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465ac_compiler_gnu=no
3466fi
3467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3468ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3469
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3472echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3473ac_ext=$ac_save_ext
3474ac_test_FFLAGS=${FFLAGS+set}
3475ac_save_FFLAGS=$FFLAGS
3476FFLAGS=
3477echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3478echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3479if test "${ac_cv_prog_f77_g+set}" = set; then
3480  echo $ECHO_N "(cached) $ECHO_C" >&6
3481else
3482  FFLAGS=-g
3483cat >conftest.$ac_ext <<_ACEOF
3484      program main
3485
3486      end
3487_ACEOF
3488rm -f conftest.$ac_objext
3489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3490  (eval $ac_compile) 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } &&
3497         { ac_try='test -z "$ac_f77_werror_flag"
3498                         || test ! -s conftest.err'
3499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500  (eval $ac_try) 2>&5
3501  ac_status=$?
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); }; } &&
3504         { ac_try='test -s conftest.$ac_objext'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; }; then
3510  ac_cv_prog_f77_g=yes
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515ac_cv_prog_f77_g=no
3516fi
3517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3518
3519fi
3520echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3521echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3522if test "$ac_test_FFLAGS" = set; then
3523  FFLAGS=$ac_save_FFLAGS
3524elif test $ac_cv_prog_f77_g = yes; then
3525  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3526    FFLAGS="-g -O2"
3527  else
3528    FFLAGS="-g"
3529  fi
3530else
3531  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3532    FFLAGS="-O2"
3533  else
3534    FFLAGS=
3535  fi
3536fi
3537
3538G77=`test $ac_compiler_gnu = yes && echo yes`
3539ac_ext=f
3540ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3541ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3543
3544else
3545  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3546echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3547fi
3548
3549FFLAGS="$save_fflags"
3550
3551# Check if a project specific FFLAGS variable has been set
3552if test x$COIN_PRJCT != x; then
3553  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3554  if test x$coin_tmp = xset; then
3555    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3556  fi
3557fi
3558
3559if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3560
3561  coin_add_fflags=
3562  coin_opt_fflags=
3563  coin_dbg_fflags=
3564  coin_warn_fflags=
3565
3566  if test "$G77" = "yes"; then
3567    coin_opt_fflags="-O3"
3568    coin_add_fflags="-pipe"
3569    coin_dbg_fflags="-g -O0"
3570  else
3571    case $build in
3572      *-cygwin* | *-mingw*)
3573        case $F77 in
3574          ifort* | */ifort* | IFORT* | */IFORT* )
3575            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3576              coin_opt_fflags='-MD -O3'
3577              coin_dbg_fflags='-MDd -debug'
3578            else
3579              coin_opt_fflags='-MT -O3'
3580              coin_dbg_fflags='-MTd -debug'
3581            fi
3582            coin_add_fflags='-fpp -nologo'
3583          ;;
3584          compile_f2c*)
3585            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3586              coin_opt_fflags='-MD -O2'
3587              coin_dbg_fflags='-MDd'
3588            else
3589              coin_opt_fflags='-MT -O2'
3590              coin_dbg_fflags='-MTd'
3591            fi
3592            coin_add_fflags='-nologo -wd4996'
3593          ;;
3594        esac
3595        ;;
3596      *-linux-*)
3597        case $F77 in
3598          ifc* | */ifc* | ifort* | */ifort*)
3599            coin_opt_fflags="-O3 -ip"
3600            coin_add_fflags="-cm -w90 -w95"
3601            coin_dbg_fflags="-g -CA -CB -CS"
3602            # Check if -i_dynamic is necessary (for new glibc library)
3603            FFLAGS=
3604            cat >conftest.$ac_ext <<_ACEOF
3605      program main
3606      write(*,*) 'Hello world'
3607      end
3608_ACEOF
3609rm -f conftest.$ac_objext conftest$ac_exeext
3610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3611  (eval $ac_link) 2>conftest.er1
3612  ac_status=$?
3613  grep -v '^ *+' conftest.er1 >conftest.err
3614  rm -f conftest.er1
3615  cat conftest.err >&5
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } &&
3618         { ac_try='test -z "$ac_f77_werror_flag"
3619                         || test ! -s conftest.err'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; } &&
3625         { ac_try='test -s conftest$ac_exeext'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; }; then
3631  :
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636coin_add_fflags="-i_dynamic $coin_add_fflags"
3637fi
3638rm -f conftest.err conftest.$ac_objext \
3639      conftest$ac_exeext conftest.$ac_ext
3640            ;;
3641          pgf77* | */pgf77* | pgf90* | */pgf90*)
3642            coin_opt_fflags="-fast"
3643            coin_add_fflags="-Kieee -pc 64"
3644            coin_dbg_fflags="-g"
3645          ;;
3646        esac
3647        ;;
3648      *-ibm-*)
3649        case "$F77" in
3650          xlf* | */xlf* | mpxlf* | */mpxlf* )
3651            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3652            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3653            coin_dbg_fflags="-g -C"
3654            ;;
3655        esac
3656        ;;
3657      *-hp-*)
3658        coin_opt_fflags="+O3"
3659        coin_add_fflags="+U77"
3660        coin_dbg_fflags="-C -g"
3661        ;;
3662      *-*-solaris*)
3663        coin_opt_fflags="-O4"
3664        coin_dbg_fflags="-g"
3665        ;;
3666      *-sgi-*)
3667        coin_opt_fflags="-O5 -OPT:Olimit=0"
3668        coin_dbg_fflags="-g"
3669        ;;
3670    esac
3671  fi
3672
3673  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3674    coin_dbg_fflags="-g"
3675  fi
3676
3677  if test -z "$coin_opt_fflags"; then
3678    # Try if -O option works if nothing else is set
3679    FFLAGS=-O
3680    cat >conftest.$ac_ext <<_ACEOF
3681      program main
3682      integer i
3683      end
3684_ACEOF
3685rm -f conftest.$ac_objext conftest$ac_exeext
3686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3687  (eval $ac_link) 2>conftest.er1
3688  ac_status=$?
3689  grep -v '^ *+' conftest.er1 >conftest.err
3690  rm -f conftest.er1
3691  cat conftest.err >&5
3692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693  (exit $ac_status); } &&
3694         { ac_try='test -z "$ac_f77_werror_flag"
3695                         || test ! -s conftest.err'
3696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697  (eval $ac_try) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }; } &&
3701         { ac_try='test -s conftest$ac_exeext'
3702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3703  (eval $ac_try) 2>&5
3704  ac_status=$?
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); }; }; then
3707  coin_opt_fflags="-O"
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712fi
3713rm -f conftest.err conftest.$ac_objext \
3714      conftest$ac_exeext conftest.$ac_ext
3715  fi
3716
3717  # if PM doesn't want the warning messages, take them out
3718  if test x"$coin_skip_warn_fflags" = xyes; then
3719    coin_warn_fflags=
3720  fi
3721
3722  if test x${DBG_FFLAGS+set} != xset; then
3723    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3724  fi
3725  if test x${OPT_FFLAGS+set} != xset; then
3726    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3727  fi
3728
3729  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3730  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3731
3732  if test "$coin_debug_compile" = "true"; then
3733    FFLAGS="$DBG_FFLAGS"
3734  else
3735    FFLAGS="$OPT_FFLAGS"
3736  fi
3737else
3738  FFLAGS="$FFLAGS $ADD_FFLAGS"
3739  if test x${DBG_FFLAGS+set} != xset; then
3740    DBG_FFLAGS="$FFLAGS"
3741  fi
3742  if test x${OPT_FFLAGS+set} != xset; then
3743    OPT_FFLAGS="$FFLAGS"
3744  fi
3745fi
3746
3747# Try if FFLAGS works
3748if test "$F77" != "unavailable" ; then
3749  cat >conftest.$ac_ext <<_ACEOF
3750      program main
3751      integer i
3752      end
3753_ACEOF
3754rm -f conftest.$ac_objext conftest$ac_exeext
3755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756  (eval $ac_link) 2>conftest.er1
3757  ac_status=$?
3758  grep -v '^ *+' conftest.er1 >conftest.err
3759  rm -f conftest.er1
3760  cat conftest.err >&5
3761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762  (exit $ac_status); } &&
3763         { ac_try='test -z "$ac_f77_werror_flag"
3764                         || test ! -s conftest.err'
3765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766  (eval $ac_try) 2>&5
3767  ac_status=$?
3768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); }; } &&
3770         { ac_try='test -s conftest$ac_exeext'
3771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772  (eval $ac_try) 2>&5
3773  ac_status=$?
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); }; }; then
3776  :
3777else
3778  echo "$as_me: failed program was:" >&5
3779sed 's/^/| /' conftest.$ac_ext >&5
3780
3781FFLAGS=
3782fi
3783rm -f conftest.err conftest.$ac_objext \
3784      conftest$ac_exeext conftest.$ac_ext
3785  if test -z "$FFLAGS"; then
3786    { 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
3787echo "$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;}
3788    FFLAGS='-O'
3789    cat >conftest.$ac_ext <<_ACEOF
3790      program main
3791      integer i
3792      end
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
3795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796  (eval $ac_link) 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } &&
3803         { ac_try='test -z "$ac_f77_werror_flag"
3804                         || test ! -s conftest.err'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; } &&
3810         { ac_try='test -s conftest$ac_exeext'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; }; then
3816  :
3817else
3818  echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821FFLAGS=
3822fi
3823rm -f conftest.err conftest.$ac_objext \
3824      conftest$ac_exeext conftest.$ac_ext
3825    if test -z "$FFLAGS"; then
3826      { 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
3827echo "$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;}
3828    fi
3829  fi
3830fi
3831
3832{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3833echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3834
3835
3836if test x"$MPIF77" = x; then :; else
3837  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3838echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3839  F77="$MPIF77"
3840fi
3841
3842# correct the LD variable if we use the intel fortran compiler in windows
3843case "$F77" in
3844  ifort* | */ifort* | IFORT* | */IFORT*)
3845
3846 case $build in
3847  *-mingw*)
3848    if test "${LD+set}" = set; then :; else
3849      LD=link
3850    fi
3851    ;;
3852 esac
3853 if test $enable_msvc = yes ; then
3854   if test "x${LD+set}" = xset; then :; else
3855     LD=link
3856   fi
3857 fi
3858
3859    ;;
3860esac
3861
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868
3869
3870# Get the linker flags (FLIBS) that are required for linking against this blas library
3871
3872# get FLIBS
3873ac_ext=f
3874ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3875ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3877echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3878echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3879if test "${ac_cv_prog_f77_v+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  cat >conftest.$ac_ext <<_ACEOF
3883      program main
3884
3885      end
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889  (eval $ac_compile) 2>conftest.er1
3890  ac_status=$?
3891  grep -v '^ *+' conftest.er1 >conftest.err
3892  rm -f conftest.er1
3893  cat conftest.err >&5
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); } &&
3896         { ac_try='test -z "$ac_f77_werror_flag"
3897                         || test ! -s conftest.err'
3898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899  (eval $ac_try) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; } &&
3903         { ac_try='test -s conftest.$ac_objext'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; }; then
3909  ac_cv_prog_f77_v=
3910# Try some options frequently used verbose output
3911for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3912  cat >conftest.$ac_ext <<_ACEOF
3913      program main
3914
3915      end
3916_ACEOF
3917
3918# Compile and link our simple test program by passing a flag (argument
3919# 1 to this macro) to the Fortran compiler in order to get
3920# "verbose" output that we can then parse for the Fortran linker
3921# flags.
3922ac_save_FFLAGS=$FFLAGS
3923FFLAGS="$FFLAGS $ac_verb"
3924(eval echo $as_me:3924: \"$ac_link\") >&5
3925ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3926echo "$ac_f77_v_output" >&5
3927FFLAGS=$ac_save_FFLAGS
3928
3929rm -f conftest*
3930
3931# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3932# /foo, /bar, and /baz are search directories for the Fortran linker.
3933# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3934ac_f77_v_output="`echo $ac_f77_v_output |
3935        grep 'LPATH is:' |
3936        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3937
3938case $ac_f77_v_output in
3939  # If we are using xlf then replace all the commas with spaces.
3940  *xlfentry*)
3941    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3942
3943  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3944  # $LIBS confuse us, and the libraries appear later in the output anyway).
3945  *mGLOB_options_string*)
3946    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3947
3948  # If we are using Cray Fortran then delete quotes.
3949  # Use "\"" instead of '"' for font-lock-mode.
3950  # FIXME: a more general fix for quoted arguments with spaces?
3951  *cft90*)
3952    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3953esac
3954
3955
3956  # look for -l* and *.a constructs in the output
3957  for ac_arg in $ac_f77_v_output; do
3958     case $ac_arg in
3959        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3960          ac_cv_prog_f77_v=$ac_verb
3961          break 2 ;;
3962     esac
3963  done
3964done
3965if test -z "$ac_cv_prog_f77_v"; then
3966   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3967echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3968fi
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3974echo "$as_me: WARNING: compilation failed" >&2;}
3975fi
3976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3977
3978fi
3979echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3980echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3981echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3982echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3983if test "${ac_cv_f77_libs+set}" = set; then
3984  echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986  if test "x$FLIBS" != "x"; then
3987  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3988else
3989
3990cat >conftest.$ac_ext <<_ACEOF
3991      program main
3992
3993      end
3994_ACEOF
3995
3996# Compile and link our simple test program by passing a flag (argument
3997# 1 to this macro) to the Fortran compiler in order to get
3998# "verbose" output that we can then parse for the Fortran linker
3999# flags.
4000ac_save_FFLAGS=$FFLAGS
4001FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4002(eval echo $as_me:4002: \"$ac_link\") >&5
4003ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4004echo "$ac_f77_v_output" >&5
4005FFLAGS=$ac_save_FFLAGS
4006
4007rm -f conftest*
4008
4009# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4010# /foo, /bar, and /baz are search directories for the Fortran linker.
4011# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4012ac_f77_v_output="`echo $ac_f77_v_output |
4013        grep 'LPATH is:' |
4014        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4015
4016case $ac_f77_v_output in
4017  # If we are using xlf then replace all the commas with spaces.
4018  *xlfentry*)
4019    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4020
4021  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4022  # $LIBS confuse us, and the libraries appear later in the output anyway).
4023  *mGLOB_options_string*)
4024    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4025
4026  # If we are using Cray Fortran then delete quotes.
4027  # Use "\"" instead of '"' for font-lock-mode.
4028  # FIXME: a more general fix for quoted arguments with spaces?
4029  *cft90*)
4030    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4031esac
4032
4033
4034
4035ac_cv_f77_libs=
4036
4037# Save positional arguments (if any)
4038ac_save_positional="$@"
4039
4040set X $ac_f77_v_output
4041while test $# != 1; do
4042  shift
4043  ac_arg=$1
4044  case $ac_arg in
4045        [\\/]*.a | ?:[\\/]*.a)
4046            ac_exists=false
4047  for ac_i in $ac_cv_f77_libs; do
4048    if test x"$ac_arg" = x"$ac_i"; then
4049      ac_exists=true
4050      break
4051    fi
4052  done
4053
4054  if test x"$ac_exists" = xtrue; then
4055  :
4056else
4057  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4058fi
4059
4060          ;;
4061        -bI:*)
4062            ac_exists=false
4063  for ac_i in $ac_cv_f77_libs; do
4064    if test x"$ac_arg" = x"$ac_i"; then
4065      ac_exists=true
4066      break
4067    fi
4068  done
4069
4070  if test x"$ac_exists" = xtrue; then
4071  :
4072else
4073  if test "$ac_compiler_gnu" = yes; then
4074  for ac_link_opt in $ac_arg; do
4075    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4076  done
4077else
4078  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4079fi
4080fi
4081
4082          ;;
4083          # Ignore these flags.
4084        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4085          ;;
4086        -lkernel32)
4087          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4088          ;;
4089        -[LRuY])
4090          # These flags, when seen by themselves, take an argument.
4091          # We remove the space between option and argument and re-iterate
4092          # unless we find an empty arg or a new option (starting with -)
4093          case $2 in
4094             "" | -*);;
4095             *)
4096                ac_arg="$ac_arg$2"
4097                shift; shift
4098                set X $ac_arg "$@"
4099                ;;
4100          esac
4101          ;;
4102        -YP,*)
4103          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4104              ac_exists=false
4105  for ac_i in $ac_cv_f77_libs; do
4106    if test x"$ac_j" = x"$ac_i"; then
4107      ac_exists=true
4108      break
4109    fi
4110  done
4111
4112  if test x"$ac_exists" = xtrue; then
4113  :
4114else
4115  ac_arg="$ac_arg $ac_j"
4116                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4117fi
4118
4119          done
4120          ;;
4121        -[lLR]*)
4122            ac_exists=false
4123  for ac_i in $ac_cv_f77_libs; do
4124    if test x"$ac_arg" = x"$ac_i"; then
4125      ac_exists=true
4126      break
4127    fi
4128  done
4129
4130  if test x"$ac_exists" = xtrue; then
4131  :
4132else
4133  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4134fi
4135
4136          ;;
4137          # Ignore everything else.
4138  esac
4139done
4140# restore positional arguments
4141set X $ac_save_positional; shift
4142
4143# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4144# then we insist that the "run path" must be an absolute path (i.e. it
4145# must begin with a "/").
4146case `(uname -sr) 2>/dev/null` in
4147   "SunOS 5"*)
4148      ac_ld_run_path=`echo $ac_f77_v_output |
4149                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4150      test "x$ac_ld_run_path" != x &&
4151        if test "$ac_compiler_gnu" = yes; then
4152  for ac_link_opt in $ac_ld_run_path; do
4153    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4154  done
4155else
4156  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4157fi
4158      ;;
4159esac
4160fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4161
4162fi
4163echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4164echo "${ECHO_T}$ac_cv_f77_libs" >&6
4165FLIBS="$ac_cv_f77_libs"
4166
4167
4168ac_ext=c
4169ac_cpp='$CPP $CPPFLAGS'
4170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174orig_FLIBS="$FLIBS"
4175
4176# If FLIBS has been set by the user, we just restore its value here
4177if test x"$save_FLIBS" != x; then
4178  FLIBS="$save_FLIBS"
4179else
4180  # This is to correct a missing exclusion in autoconf 2.59
4181  if test x"$FLIBS" != x; then
4182    my_flibs=
4183    for flag in $FLIBS; do
4184      case $flag in
4185        -lcrt*.o) ;;
4186        -lcygwin) ;;
4187        -lgcc*)   ;;
4188               *) my_flibs="$my_flibs $flag" ;;
4189      esac
4190    done
4191    FLIBS="$my_flibs"
4192  fi
4193
4194  case $build in
4195  # The following is a fix to define FLIBS for ifort on Windows
4196  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4197  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4198  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4199  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4200  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4201     *-cygwin* | *-mingw*)
4202       case "$F77" in
4203#         ifort* | */ifort* | IFORT* | */IFORT*)
4204#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4205#           if "$coin_debug_compile" = true ; then
4206#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4207#           else
4208#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4209#           fi
4210#           ;;
4211         compile_f2c*)
4212           FLIBS=`$F77 -FLIBS` ;;
4213       esac;;
4214     *-hp-*)
4215         FLIBS="$FLIBS -lm";;
4216     *-ibm-*)
4217         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4218     *-linux-*)
4219       case "$F77" in
4220         pgf77* | */pgf77* | pgf90* | */pgf90*)
4221# ask linker to go through the archives multiple times
4222# (the Fortran compiler seems to do that automatically...)
4223           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4224       esac
4225  esac
4226  ac_cv_f77_libs="$FLIBS"
4227fi
4228
4229if test "x$orig_FLIBS" != "x$FLIBS" ; then
4230  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4231echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4232fi
4233
4234ac_ext=f
4235ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4236ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4238
4239echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4240echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4241if test "${ac_cv_f77_dummy_main+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  ac_f77_dm_save_LIBS=$LIBS
4245 LIBS="$LIBS $FLIBS"
4246 ac_fortran_dm_var=F77_DUMMY_MAIN
4247 ac_ext=c
4248ac_cpp='$CPP $CPPFLAGS'
4249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 # First, try linking without a dummy main:
4254 cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h.  */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h.  */
4260
4261#ifdef F77_DUMMY_MAIN
4262
4263#  ifdef __cplusplus
4264     extern "C"
4265#  endif
4266   int F77_DUMMY_MAIN() { return 1; }
4267
4268#endif
4269int
4270main ()
4271{
4272
4273  ;
4274  return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext conftest$ac_exeext
4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279  (eval $ac_link) 2>conftest.er1
4280  ac_status=$?
4281  grep -v '^ *+' conftest.er1 >conftest.err
4282  rm -f conftest.er1
4283  cat conftest.err >&5
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); } &&
4286         { ac_try='test -z "$ac_c_werror_flag"
4287                         || test ! -s conftest.err'
4288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289  (eval $ac_try) 2>&5
4290  ac_status=$?
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); }; } &&
4293         { ac_try='test -s conftest$ac_exeext'
4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295  (eval $ac_try) 2>&5
4296  ac_status=$?
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); }; }; then
4299  ac_cv_fortran_dummy_main=none
4300else
4301  echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304ac_cv_fortran_dummy_main=unknown
4305fi
4306rm -f conftest.err conftest.$ac_objext \
4307      conftest$ac_exeext conftest.$ac_ext
4308
4309 if test $ac_cv_fortran_dummy_main = unknown; then
4310   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4311     cat >conftest.$ac_ext <<_ACEOF
4312/* confdefs.h.  */
4313_ACEOF
4314cat confdefs.h >>conftest.$ac_ext
4315cat >>conftest.$ac_ext <<_ACEOF
4316/* end confdefs.h.  */
4317#define $ac_fortran_dm_var $ac_func
4318#ifdef F77_DUMMY_MAIN
4319
4320#  ifdef __cplusplus
4321     extern "C"
4322#  endif
4323   int F77_DUMMY_MAIN() { return 1; }
4324
4325#endif
4326int
4327main ()
4328{
4329
4330  ;
4331  return 0;
4332}
4333_ACEOF
4334rm -f conftest.$ac_objext conftest$ac_exeext
4335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336  (eval $ac_link) 2>conftest.er1
4337  ac_status=$?
4338  grep -v '^ *+' conftest.er1 >conftest.err
4339  rm -f conftest.er1
4340  cat conftest.err >&5
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } &&
4343         { ac_try='test -z "$ac_c_werror_flag"
4344                         || test ! -s conftest.err'
4345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346  (eval $ac_try) 2>&5
4347  ac_status=$?
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); }; } &&
4350         { ac_try='test -s conftest$ac_exeext'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; }; then
4356  ac_cv_fortran_dummy_main=$ac_func; break
4357else
4358  echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361fi
4362rm -f conftest.err conftest.$ac_objext \
4363      conftest$ac_exeext conftest.$ac_ext
4364   done
4365 fi
4366 ac_ext=f
4367ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4368ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4370 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4371 rm -f conftest*
4372 LIBS=$ac_f77_dm_save_LIBS
4373
4374fi
4375echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4376echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4377F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4378if test "$F77_DUMMY_MAIN" != unknown; then
4379  if test $F77_DUMMY_MAIN != none; then
4380
4381cat >>confdefs.h <<_ACEOF
4382#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4383_ACEOF
4384
4385  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4386
4387cat >>confdefs.h <<\_ACEOF
4388#define FC_DUMMY_MAIN_EQ_F77 1
4389_ACEOF
4390
4391  fi
4392fi
4393else
4394  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4395See \`config.log' for more details." >&5
4396echo "$as_me: error: linking to Fortran libraries from C fails
4397See \`config.log' for more details." >&2;}
4398   { (exit 1); exit 1; }; }
4399fi
4400
4401
4402ac_ext=f
4403ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4404ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4406
4407ac_ext=f
4408ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4409ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4410ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4411echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4412echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4413if test "${ac_cv_f77_mangling+set}" = set; then
4414  echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416  cat >conftest.$ac_ext <<_ACEOF
4417      subroutine foobar()
4418      return
4419      end
4420      subroutine foo_bar()
4421      return
4422      end
4423_ACEOF
4424rm -f conftest.$ac_objext
4425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426  (eval $ac_compile) 2>conftest.er1
4427  ac_status=$?
4428  grep -v '^ *+' conftest.er1 >conftest.err
4429  rm -f conftest.er1
4430  cat conftest.err >&5
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); } &&
4433         { ac_try='test -z "$ac_f77_werror_flag"
4434                         || test ! -s conftest.err'
4435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436  (eval $ac_try) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; } &&
4440         { ac_try='test -s conftest.$ac_objext'
4441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442  (eval $ac_try) 2>&5
4443  ac_status=$?
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); }; }; then
4446  mv conftest.$ac_objext cfortran_test.$ac_objext
4447
4448  ac_save_LIBS=$LIBS
4449  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4450
4451  ac_ext=c
4452ac_cpp='$CPP $CPPFLAGS'
4453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456  ac_success=no
4457  for ac_foobar in foobar FOOBAR; do
4458    for ac_underscore in "" "_"; do
4459      ac_func="$ac_foobar$ac_underscore"
4460      cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h.  */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h.  */
4466
4467/* Override any gcc2 internal prototype to avoid an error.  */
4468#ifdef __cplusplus
4469extern "C"
4470#endif
4471/* We use char because int might match the return type of a gcc2
4472   builtin and then its argument prototype would still apply.  */
4473char $ac_func ();
4474#ifdef F77_DUMMY_MAIN
4475
4476#  ifdef __cplusplus
4477     extern "C"
4478#  endif
4479   int F77_DUMMY_MAIN() { return 1; }
4480
4481#endif
4482int
4483main ()
4484{
4485$ac_func ();
4486  ;
4487  return 0;
4488}
4489_ACEOF
4490rm -f conftest.$ac_objext conftest$ac_exeext
4491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492  (eval $ac_link) 2>conftest.er1
4493  ac_status=$?
4494  grep -v '^ *+' conftest.er1 >conftest.err
4495  rm -f conftest.er1
4496  cat conftest.err >&5
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); } &&
4499         { ac_try='test -z "$ac_c_werror_flag"
4500                         || test ! -s conftest.err'
4501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502  (eval $ac_try) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; } &&
4506         { ac_try='test -s conftest$ac_exeext'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512  ac_success=yes; break 2
4513else
4514  echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517fi
4518rm -f conftest.err conftest.$ac_objext \
4519      conftest$ac_exeext conftest.$ac_ext
4520    done
4521  done
4522  ac_ext=f
4523ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4524ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4526
4527  if test "$ac_success" = "yes"; then
4528     case $ac_foobar in
4529        foobar)
4530           ac_case=lower
4531           ac_foo_bar=foo_bar
4532           ;;
4533        FOOBAR)
4534           ac_case=upper
4535           ac_foo_bar=FOO_BAR
4536           ;;
4537     esac
4538
4539     ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544     ac_success_extra=no
4545     for ac_extra in "" "_"; do
4546        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4547        cat >conftest.$ac_ext <<_ACEOF
4548/* confdefs.h.  */
4549_ACEOF
4550cat confdefs.h >>conftest.$ac_ext
4551cat >>conftest.$ac_ext <<_ACEOF
4552/* end confdefs.h.  */
4553
4554/* Override any gcc2 internal prototype to avoid an error.  */
4555#ifdef __cplusplus
4556extern "C"
4557#endif
4558/* We use char because int might match the return type of a gcc2
4559   builtin and then its argument prototype would still apply.  */
4560char $ac_func ();
4561#ifdef F77_DUMMY_MAIN
4562
4563#  ifdef __cplusplus
4564     extern "C"
4565#  endif
4566   int F77_DUMMY_MAIN() { return 1; }
4567
4568#endif
4569int
4570main ()
4571{
4572$ac_func ();
4573  ;
4574  return 0;
4575}
4576_ACEOF
4577rm -f conftest.$ac_objext conftest$ac_exeext
4578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4579  (eval $ac_link) 2>conftest.er1
4580  ac_status=$?
4581  grep -v '^ *+' conftest.er1 >conftest.err
4582  rm -f conftest.er1
4583  cat conftest.err >&5
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); } &&
4586         { ac_try='test -z "$ac_c_werror_flag"
4587                         || test ! -s conftest.err'
4588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589  (eval $ac_try) 2>&5
4590  ac_status=$?
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); }; } &&
4593         { ac_try='test -s conftest$ac_exeext'
4594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595  (eval $ac_try) 2>&5
4596  ac_status=$?
4597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598  (exit $ac_status); }; }; then
4599  ac_success_extra=yes; break
4600else
4601  echo "$as_me: failed program was:" >&5
4602sed 's/^/| /' conftest.$ac_ext >&5
4603
4604fi
4605rm -f conftest.err conftest.$ac_objext \
4606      conftest$ac_exeext conftest.$ac_ext
4607     done
4608     ac_ext=f
4609ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4610ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4612
4613     if test "$ac_success_extra" = "yes"; then
4614        ac_cv_f77_mangling="$ac_case case"
4615        if test -z "$ac_underscore"; then
4616           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4617        else
4618           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4619        fi
4620        if test -z "$ac_extra"; then
4621           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4622        else
4623           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4624        fi
4625      else
4626        ac_cv_f77_mangling="unknown"
4627      fi
4628  else
4629     ac_cv_f77_mangling="unknown"
4630  fi
4631
4632  LIBS=$ac_save_LIBS
4633  rm -f cfortran_test* conftest*
4634else
4635  echo "$as_me: failed program was:" >&5
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
4638{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4639See \`config.log' for more details." >&5
4640echo "$as_me: error: cannot compile a simple Fortran program
4641See \`config.log' for more details." >&2;}
4642   { (exit 1); exit 1; }; }
4643fi
4644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4645
4646fi
4647echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4648echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4649
4650ac_ext=f
4651ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4652ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4654
4655
4656ac_ext=f
4657ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4658ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4660
4661ac_ext=f
4662ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4663ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4665
4666
4667case $ac_cv_f77_mangling in
4668  "lower case, no underscore, no extra underscore")
4669          cat >>confdefs.h <<\_ACEOF
4670#define F77_FUNC(name,NAME) name
4671_ACEOF
4672
4673          cat >>confdefs.h <<\_ACEOF
4674#define F77_FUNC_(name,NAME) name
4675_ACEOF
4676 ;;
4677  "lower case, no underscore, extra underscore")
4678          cat >>confdefs.h <<\_ACEOF
4679#define F77_FUNC(name,NAME) name
4680_ACEOF
4681
4682          cat >>confdefs.h <<\_ACEOF
4683#define F77_FUNC_(name,NAME) name ## _
4684_ACEOF
4685 ;;
4686  "lower case, underscore, no extra underscore")
4687          cat >>confdefs.h <<\_ACEOF
4688#define F77_FUNC(name,NAME) name ## _
4689_ACEOF
4690
4691          cat >>confdefs.h <<\_ACEOF
4692#define F77_FUNC_(name,NAME) name ## _
4693_ACEOF
4694 ;;
4695  "lower case, underscore, extra underscore")
4696          cat >>confdefs.h <<\_ACEOF
4697#define F77_FUNC(name,NAME) name ## _
4698_ACEOF
4699
4700          cat >>confdefs.h <<\_ACEOF
4701#define F77_FUNC_(name,NAME) name ## __
4702_ACEOF
4703 ;;
4704  "upper case, no underscore, no extra underscore")
4705          cat >>confdefs.h <<\_ACEOF
4706#define F77_FUNC(name,NAME) NAME
4707_ACEOF
4708
4709          cat >>confdefs.h <<\_ACEOF
4710#define F77_FUNC_(name,NAME) NAME
4711_ACEOF
4712 ;;
4713  "upper case, no underscore, extra underscore")
4714          cat >>confdefs.h <<\_ACEOF
4715#define F77_FUNC(name,NAME) NAME
4716_ACEOF
4717
4718          cat >>confdefs.h <<\_ACEOF
4719#define F77_FUNC_(name,NAME) NAME ## _
4720_ACEOF
4721 ;;
4722  "upper case, underscore, no extra underscore")
4723          cat >>confdefs.h <<\_ACEOF
4724#define F77_FUNC(name,NAME) NAME ## _
4725_ACEOF
4726
4727          cat >>confdefs.h <<\_ACEOF
4728#define F77_FUNC_(name,NAME) NAME ## _
4729_ACEOF
4730 ;;
4731  "upper case, underscore, extra underscore")
4732          cat >>confdefs.h <<\_ACEOF
4733#define F77_FUNC(name,NAME) NAME ## _
4734_ACEOF
4735
4736          cat >>confdefs.h <<\_ACEOF
4737#define F77_FUNC_(name,NAME) NAME ## __
4738_ACEOF
4739 ;;
4740  *)
4741          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4742echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4743          ;;
4744esac
4745
4746ac_ext=f
4747ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4748ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4750
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
4757
4758
4759
4760# Add FLIBS to BLAS_PCLIBS, so that they get into the .pc files
4761BLAS_PCLIBS="$FLIBS"
4762
4763
4764# Check if pkg-config is available (to setup addlibs file)
4765
4766
4767# Check whether --enable-pkg-config or --disable-pkg-config was given.
4768if test "${enable_pkg_config+set}" = set; then
4769  enableval="$enable_pkg_config"
4770  use_pkgconfig="$enableval"
4771else
4772  if test x$coin_cc_is_cl = xtrue; then
4773     use_pkgconfig=no
4774   else
4775     use_pkgconfig=yes
4776   fi
4777fi;
4778
4779if test $use_pkgconfig = yes ; then
4780  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4781    if test -n "$ac_tool_prefix"; then
4782  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4783set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4784echo "$as_me:$LINENO: checking for $ac_word" >&5
4785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4786if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4787  echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789  if test -n "$PKG_CONFIG"; then
4790  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797  for ac_exec_ext in '' $ac_executable_extensions; do
4798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804done
4805
4806fi
4807fi
4808PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4809if test -n "$PKG_CONFIG"; then
4810  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4811echo "${ECHO_T}$PKG_CONFIG" >&6
4812else
4813  echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815fi
4816
4817fi
4818if test -z "$ac_cv_prog_PKG_CONFIG"; then
4819  ac_ct_PKG_CONFIG=$PKG_CONFIG
4820  # Extract the first word of "pkg-config", so it can be a program name with args.
4821set dummy pkg-config; ac_word=$2
4822echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  if test -n "$ac_ct_PKG_CONFIG"; then
4828  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835  for ac_exec_ext in '' $ac_executable_extensions; do
4836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839    break 2
4840  fi
4841done
4842done
4843
4844fi
4845fi
4846ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4847if test -n "$ac_ct_PKG_CONFIG"; then
4848  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4849echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4850else
4851  echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853fi
4854
4855  PKG_CONFIG=$ac_ct_PKG_CONFIG
4856else
4857  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4858fi
4859
4860  fi
4861  if test -n "$PKG_CONFIG"; then
4862    _pkg_min_version=0.16.0
4863    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4864echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4865    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4866      echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868    else
4869      echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871      PKG_CONFIG=""
4872    fi
4873  fi
4874
4875  # check if pkg-config supports the short-errors flag
4876  if test -n "$PKG_CONFIG" && \
4877    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4878    pkg_short_errors=" --short-errors "
4879  else
4880    pkg_short_errors=""
4881  fi
4882fi
4883
4884
4885
4886if test -n "$PKG_CONFIG"; then
4887  COIN_HAS_PKGCONFIG_TRUE=
4888  COIN_HAS_PKGCONFIG_FALSE='#'
4889else
4890  COIN_HAS_PKGCONFIG_TRUE='#'
4891  COIN_HAS_PKGCONFIG_FALSE=
4892fi
4893
4894
4895
4896# assemble pkg-config search path for installed projects
4897COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4898
4899# 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
4900# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4901# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4902if test "x${prefix}" = xNONE ; then
4903  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4904else
4905  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4906fi
4907
4908
4909# Check whether --with-coin-instdir or --without-coin-instdir was given.
4910if test "${with_coin_instdir+set}" = set; then
4911  withval="$with_coin_instdir"
4912  if test -d "$withval"; then : ; else
4913     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4914echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4915   { (exit 1); exit 1; }; }
4916   fi
4917   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4918
4919fi;
4920
4921
4922
4923# assemble additional pkg-config search paths for uninstalled projects
4924if test x$coin_projectdir = xyes ; then
4925  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4926  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4927  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4928  # 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)
4929  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4930  if test -f ../coin_subdirs.txt ; then
4931    for i in `cat ../coin_subdirs.txt` ; do
4932      if test -d ../$i ; then
4933        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4934      fi
4935      if test -d ../$i/pkgconfig ; then
4936        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4937      fi
4938    done
4939  fi
4940
4941  if test -f ../../coin_subdirs.txt ; then
4942    for i in `cat ../../coin_subdirs.txt` ; do
4943      if test -d ../../$i ; then
4944        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4945      fi
4946      if test -d ../../$i/pkgconfig ; then
4947        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4948      fi
4949    done
4950  fi
4951
4952
4953fi
4954
4955if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4956  { 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
4957echo "$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;}
4958fi
4959
4960
4961
4962# Initialize automake
4963{
4964
4965
4966
4967# START
4968
4969coin_disable_shared=no
4970# Test if force_shared has been set
4971if test "x" = xforce_shared; then
4972  if test x$enable_shared = xno; then
4973    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4974echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4975   { (exit 1); exit 1; }; }
4976  fi
4977  enable_shared=yes;
4978else
4979  # On Cygwin and AIX, building DLLs doesn't work
4980  case $build in
4981    *-cygwin* | *-mingw*)
4982      coin_disable_shared=yes
4983      if test x"$enable_shared" = xyes; then
4984        case "$CXX" in
4985          clang* )
4986            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4987echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4988            ;;
4989          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4990            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4991echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4992            ;;
4993          *)
4994            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4995echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4996            ;;
4997        esac
4998      fi
4999    ;;
5000    *-aix*)
5001      coin_disable_shared=yes
5002      platform=AIX
5003      if test x"$enable_shared" = xyes; then
5004        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5005echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5006      fi
5007    ;;
5008  esac
5009fi
5010if test x"$coin_disable_shared" = xyes; then
5011  if test x"$enable_shared" = xyes; then
5012    :
5013  else
5014    # we don't disable shared, because it was not selected anyway
5015    coin_disable_shared=no
5016  fi
5017  enable_shared=no
5018fi
5019# By default, we only want the shared objects to be compiled
5020# Check whether --enable-static or --disable-static was given.
5021if test "${enable_static+set}" = set; then
5022  enableval="$enable_static"
5023  p=${PACKAGE-default}
5024    case $enableval in
5025    yes) enable_static=yes ;;
5026    no) enable_static=no ;;
5027    *)
5028     enable_static=no
5029      # Look at the argument we got.  We use all the common list separators.
5030      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5031      for pkg in $enableval; do
5032        IFS="$lt_save_ifs"
5033        if test "X$pkg" = "X$p"; then
5034          enable_static=yes
5035        fi
5036      done
5037      IFS="$lt_save_ifs"
5038      ;;
5039    esac
5040else
5041  enable_static=no
5042fi;
5043
5044
5045
5046
5047# Initialize automake
5048echo "$as_me:$LINENO: checking for egrep" >&5
5049echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5050if test "${ac_cv_prog_egrep+set}" = set; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5054    then ac_cv_prog_egrep='grep -E'
5055    else ac_cv_prog_egrep='egrep'
5056    fi
5057fi
5058echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5059echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5060 EGREP=$ac_cv_prog_egrep
5061
5062
5063echo "$as_me:$LINENO: checking whether ln -s works" >&5
5064echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5065LN_S=$as_ln_s
5066if test "$LN_S" = "ln -s"; then
5067  echo "$as_me:$LINENO: result: yes" >&5
5068echo "${ECHO_T}yes" >&6
5069else
5070  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5071echo "${ECHO_T}no, using $LN_S" >&6
5072fi
5073
5074am__api_version="1.9"
5075# Find a good install program.  We prefer a C program (faster),
5076# so one script is as good as another.  But avoid the broken or
5077# incompatible versions:
5078# SysV /etc/install, /usr/sbin/install
5079# SunOS /usr/etc/install
5080# IRIX /sbin/install
5081# AIX /bin/install
5082# AmigaOS /C/install, which installs bootblocks on floppy discs
5083# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5084# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5085# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5086# OS/2's system install, which has a completely different semantic
5087# ./install, which can be erroneously created by make from ./install.sh.
5088echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5089echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5090if test -z "$INSTALL"; then
5091if test "${ac_cv_path_install+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH
5096do
5097  IFS=$as_save_IFS
5098  test -z "$as_dir" && as_dir=.
5099  # Account for people who put trailing slashes in PATH elements.
5100case $as_dir/ in
5101  ./ | .// | /cC/* | \
5102  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5103  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5104  /usr/ucb/* ) ;;
5105  *)
5106    # OSF1 and SCO ODT 3.0 have their own names for install.
5107    # Don't use installbsd from OSF since it installs stuff as root
5108    # by default.
5109    for ac_prog in ginstall scoinst install; do
5110      for ac_exec_ext in '' $ac_executable_extensions; do
5111        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5112          if test $ac_prog = install &&
5113            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5114            # AIX install.  It has an incompatible calling convention.
5115            :
5116          elif test $ac_prog = install &&
5117            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5118            # program-specific install script used by HP pwplus--don't use.
5119            :
5120          else
5121            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5122            break 3
5123          fi
5124        fi
5125      done
5126    done
5127    ;;
5128esac
5129done
5130
5131
5132fi
5133  if test "${ac_cv_path_install+set}" = set; then
5134    INSTALL=$ac_cv_path_install
5135  else
5136    # As a last resort, use the slow shell script.  We don't cache a
5137    # path for INSTALL within a source directory, because that will
5138    # break other packages using the cache if that directory is
5139    # removed, or if the path is relative.
5140    INSTALL=$ac_install_sh
5141  fi
5142fi
5143echo "$as_me:$LINENO: result: $INSTALL" >&5
5144echo "${ECHO_T}$INSTALL" >&6
5145
5146# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5147# It thinks the first close brace ends the variable substitution.
5148test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5149
5150test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5151
5152test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5153
5154echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5155echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5156# Just in case
5157sleep 1
5158echo timestamp > conftest.file
5159# Do `set' in a subshell so we don't clobber the current shell's
5160# arguments.  Must try -L first in case configure is actually a
5161# symlink; some systems play weird games with the mod time of symlinks
5162# (eg FreeBSD returns the mod time of the symlink's containing
5163# directory).
5164if (
5165   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5166   if test "$*" = "X"; then
5167      # -L didn't work.
5168      set X `ls -t $srcdir/configure conftest.file`
5169   fi
5170   rm -f conftest.file
5171   if test "$*" != "X $srcdir/configure conftest.file" \
5172      && test "$*" != "X conftest.file $srcdir/configure"; then
5173
5174      # If neither matched, then we have a broken ls.  This can happen
5175      # if, for instance, CONFIG_SHELL is bash and it inherits a
5176      # broken ls alias from the environment.  This has actually
5177      # happened.  Such a system could not be considered "sane".
5178      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5179alias in your environment" >&5
5180echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5181alias in your environment" >&2;}
5182   { (exit 1); exit 1; }; }
5183   fi
5184
5185   test "$2" = conftest.file
5186   )
5187then
5188   # Ok.
5189   :
5190else
5191   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5192Check your system clock" >&5
5193echo "$as_me: error: newly created file is older than distributed files!
5194Check your system clock" >&2;}
5195   { (exit 1); exit 1; }; }
5196fi
5197echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
5199test "$program_prefix" != NONE &&
5200  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5201# Use a double $ so make ignores it.
5202test "$program_suffix" != NONE &&
5203  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5204# Double any \ or $.  echo might interpret backslashes.
5205# By default was `s,x,x', remove it if useless.
5206cat <<\_ACEOF >conftest.sed
5207s/[\\$]/&&/g;s/;s,x,x,$//
5208_ACEOF
5209program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5210rm conftest.sed
5211
5212# expand $ac_aux_dir to an absolute path
5213am_aux_dir=`cd $ac_aux_dir && pwd`
5214
5215test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5216# Use eval to expand $SHELL
5217if eval "$MISSING --run true"; then
5218  am_missing_run="$MISSING --run "
5219else
5220  am_missing_run=
5221  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5222echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5223fi
5224
5225if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5226  # We used to keeping the `.' as first argument, in order to
5227  # allow $(mkdir_p) to be used without argument.  As in
5228  #   $(mkdir_p) $(somedir)
5229  # where $(somedir) is conditionally defined.  However this is wrong
5230  # for two reasons:
5231  #  1. if the package is installed by a user who cannot write `.'
5232  #     make install will fail,
5233  #  2. the above comment should most certainly read
5234  #     $(mkdir_p) $(DESTDIR)$(somedir)
5235  #     so it does not work when $(somedir) is undefined and
5236  #     $(DESTDIR) is not.
5237  #  To support the latter case, we have to write
5238  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5239  #  so the `.' trick is pointless.
5240  mkdir_p='mkdir -p --'
5241else
5242  # On NextStep and OpenStep, the `mkdir' command does not
5243  # recognize any option.  It will interpret all options as
5244  # directories to create, and then abort because `.' already
5245  # exists.
5246  for d in ./-p ./--version;
5247  do
5248    test -d $d && rmdir $d
5249  done
5250  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5251  if test -f "$ac_aux_dir/mkinstalldirs"; then
5252    mkdir_p='$(mkinstalldirs)'
5253  else
5254    mkdir_p='$(install_sh) -d'
5255  fi
5256fi
5257
5258for ac_prog in gawk mawk nawk awk
5259do
5260  # Extract the first word of "$ac_prog", so it can be a program name with args.
5261set dummy $ac_prog; ac_word=$2
5262echo "$as_me:$LINENO: checking for $ac_word" >&5
5263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264if test "${ac_cv_prog_AWK+set}" = set; then
5265  echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267  if test -n "$AWK"; then
5268  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275  for ac_exec_ext in '' $ac_executable_extensions; do
5276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277    ac_cv_prog_AWK="$ac_prog"
5278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279    break 2
5280  fi
5281done
5282done
5283
5284fi
5285fi
5286AWK=$ac_cv_prog_AWK
5287if test -n "$AWK"; then
5288  echo "$as_me:$LINENO: result: $AWK" >&5
5289echo "${ECHO_T}$AWK" >&6
5290else
5291  echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293fi
5294
5295  test -n "$AWK" && break
5296done
5297
5298echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5299echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5300set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5301if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5302  echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304  cat >conftest.make <<\_ACEOF
5305all:
5306        @echo 'ac_maketemp="$(MAKE)"'
5307_ACEOF
5308# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5309eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5310if test -n "$ac_maketemp"; then
5311  eval ac_cv_prog_make_${ac_make}_set=yes
5312else
5313  eval ac_cv_prog_make_${ac_make}_set=no
5314fi
5315rm -f conftest.make
5316fi
5317if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5318  echo "$as_me:$LINENO: result: yes" >&5
5319echo "${ECHO_T}yes" >&6
5320  SET_MAKE=
5321else
5322  echo "$as_me:$LINENO: result: no" >&5
5323echo "${ECHO_T}no" >&6
5324  SET_MAKE="MAKE=${MAKE-make}"
5325fi
5326
5327rm -rf .tst 2>/dev/null
5328mkdir .tst 2>/dev/null
5329if test -d .tst; then
5330  am__leading_dot=.
5331else
5332  am__leading_dot=_
5333fi
5334rmdir .tst 2>/dev/null
5335
5336DEPDIR="${am__leading_dot}deps"
5337
5338          ac_config_commands="$ac_config_commands depfiles"
5339
5340
5341am_make=${MAKE-make}
5342cat > confinc << 'END'
5343am__doit:
5344        @echo done
5345.PHONY: am__doit
5346END
5347# If we don't find an include directive, just comment out the code.
5348echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5349echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5350am__include="#"
5351am__quote=
5352_am_result=none
5353# First try GNU make style include.
5354echo "include confinc" > confmf
5355# We grep out `Entering directory' and `Leaving directory'
5356# messages which can occur if `w' ends up in MAKEFLAGS.
5357# In particular we don't look at `^make:' because GNU make might
5358# be invoked under some other name (usually "gmake"), in which
5359# case it prints its new name instead of `make'.
5360if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5361   am__include=include
5362   am__quote=
5363   _am_result=GNU
5364fi
5365# Now try BSD make style include.
5366if test "$am__include" = "#"; then
5367   echo '.include "confinc"' > confmf
5368   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5369      am__include=.include
5370      am__quote="\""
5371      _am_result=BSD
5372   fi
5373fi
5374
5375
5376echo "$as_me:$LINENO: result: $_am_result" >&5
5377echo "${ECHO_T}$_am_result" >&6
5378rm -f confinc confmf
5379
5380# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5381if test "${enable_dependency_tracking+set}" = set; then
5382  enableval="$enable_dependency_tracking"
5383
5384fi;
5385if test "x$enable_dependency_tracking" != xno; then
5386  am_depcomp="$ac_aux_dir/depcomp"
5387  AMDEPBACKSLASH='\'
5388fi
5389
5390
5391if test "x$enable_dependency_tracking" != xno; then
5392  AMDEP_TRUE=
5393  AMDEP_FALSE='#'
5394else
5395  AMDEP_TRUE='#'
5396  AMDEP_FALSE=
5397fi
5398
5399
5400
5401
5402
5403
5404# AC_MSG_NOTICE([Beginning automake initialisation.])
5405# Stuff for automake
5406# test to see if srcdir already configured
5407if test "`cd $srcdir && pwd`" != "`pwd`" &&
5408   test -f $srcdir/config.status; then
5409  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5410echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5411   { (exit 1); exit 1; }; }
5412fi
5413
5414# test whether we have cygpath
5415if test -z "$CYGPATH_W"; then
5416  if (cygpath --version) >/dev/null 2>/dev/null; then
5417    CYGPATH_W='cygpath -w'
5418  else
5419    CYGPATH_W=echo
5420  fi
5421fi
5422
5423
5424# Define the identity of the package.
5425 PACKAGE='thirdpartyblas'
5426 VERSION='1.3'
5427
5428
5429cat >>confdefs.h <<_ACEOF
5430#define PACKAGE "$PACKAGE"
5431_ACEOF
5432
5433
5434cat >>confdefs.h <<_ACEOF
5435#define VERSION "$VERSION"
5436_ACEOF
5437
5438# Some tools Automake needs.
5439
5440ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5441
5442
5443AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5444
5445
5446AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5447
5448
5449AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5450
5451
5452MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5453
5454install_sh=${install_sh-"$am_aux_dir/install-sh"}
5455
5456# Installed binaries are usually stripped using `strip' when the user
5457# run `make install-strip'.  However `strip' might not be the right
5458# tool to use in cross-compilation environments, therefore Automake
5459# will honor the `STRIP' environment variable to overrule this program.
5460if test "$cross_compiling" != no; then
5461  if test -n "$ac_tool_prefix"; then
5462  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463set dummy ${ac_tool_prefix}strip; ac_word=$2
5464echo "$as_me:$LINENO: checking for $ac_word" >&5
5465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466if test "${ac_cv_prog_STRIP+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  if test -n "$STRIP"; then
5470  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477  for ac_exec_ext in '' $ac_executable_extensions; do
5478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484done
5485
5486fi
5487fi
5488STRIP=$ac_cv_prog_STRIP
5489if test -n "$STRIP"; then
5490  echo "$as_me:$LINENO: result: $STRIP" >&5
5491echo "${ECHO_T}$STRIP" >&6
5492else
5493  echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495fi
5496
5497fi
5498if test -z "$ac_cv_prog_STRIP"; then
5499  ac_ct_STRIP=$STRIP
5500  # Extract the first word of "strip", so it can be a program name with args.
5501set dummy strip; ac_word=$2
5502echo "$as_me:$LINENO: checking for $ac_word" >&5
5503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  if test -n "$ac_ct_STRIP"; then
5508  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513  IFS=$as_save_IFS
5514  test -z "$as_dir" && as_dir=.
5515  for ac_exec_ext in '' $ac_executable_extensions; do
5516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5517    ac_cv_prog_ac_ct_STRIP="strip"
5518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519    break 2
5520  fi
5521done
5522done
5523
5524  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5525fi
5526fi
5527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528if test -n "$ac_ct_STRIP"; then
5529  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5530echo "${ECHO_T}$ac_ct_STRIP" >&6
5531else
5532  echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
5534fi
5535
5536  STRIP=$ac_ct_STRIP
5537else
5538  STRIP="$ac_cv_prog_STRIP"
5539fi
5540
5541fi
5542INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5543
5544# We need awk for the "check" target.  The system "awk" is bad on
5545# some platforms.
5546# Always define AMTAR for backward compatibility.
5547
5548AMTAR=${AMTAR-"${am_missing_run}tar"}
5549
5550am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5551
5552
5553
5554
5555depcc="$CC"   am_compiler_list=
5556
5557echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5558echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5559if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5563  # We make a subdir and do the tests there.  Otherwise we can end up
5564  # making bogus files that we don't know about and never remove.  For
5565  # instance it was reported that on HP-UX the gcc test will end up
5566  # making a dummy file named `D' -- because `-MD' means `put the output
5567  # in D'.
5568  mkdir conftest.dir
5569  # Copy depcomp to subdir because otherwise we won't find it if we're
5570  # using a relative directory.
5571  cp "$am_depcomp" conftest.dir
5572  cd conftest.dir
5573  # We will build objects and dependencies in a subdirectory because
5574  # it helps to detect inapplicable dependency modes.  For instance
5575  # both Tru64's cc and ICC support -MD to output dependencies as a
5576  # side effect of compilation, but ICC will put the dependencies in
5577  # the current directory while Tru64 will put them in the object
5578  # directory.
5579  mkdir sub
5580
5581  am_cv_CC_dependencies_compiler_type=none
5582  if test "$am_compiler_list" = ""; then
5583     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5584  fi
5585  for depmode in $am_compiler_list; do
5586    # Setup a source with many dependencies, because some compilers
5587    # like to wrap large dependency lists on column 80 (with \), and
5588    # we should not choose a depcomp mode which is confused by this.
5589    #
5590    # We need to recreate these files for each test, as the compiler may
5591    # overwrite some of them when testing with obscure command lines.
5592    # This happens at least with the AIX C compiler.
5593    : > sub/conftest.c
5594    for i in 1 2 3 4 5 6; do
5595      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5596      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5597      # Solaris 8's {/usr,}/bin/sh.
5598      touch sub/conftst$i.h
5599    done
5600    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5601
5602    case $depmode in
5603    nosideeffect)
5604      # after this tag, mechanisms are not by side-effect, so they'll
5605      # only be used when explicitly requested
5606      if test "x$enable_dependency_tracking" = xyes; then
5607        continue
5608      else
5609        break
5610      fi
5611      ;;
5612    none) break ;;
5613    esac
5614    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5615    # mode.  It turns out that the SunPro C++ compiler does not properly
5616    # handle `-M -o', and we need to detect this.
5617    if depmode=$depmode \
5618       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5619       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5620       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5621         >/dev/null 2>conftest.err &&
5622       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5623       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5624       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5625      # icc doesn't choke on unknown options, it will just issue warnings
5626      # or remarks (even with -Werror).  So we grep stderr for any message
5627      # that says an option was ignored or not supported.
5628      # When given -MP, icc 7.0 and 7.1 complain thusly:
5629      #   icc: Command line warning: ignoring option '-M'; no argument required
5630      # The diagnosis changed in icc 8.0:
5631      #   icc: Command line remark: option '-MP' not supported
5632      if (grep 'ignoring option' conftest.err ||
5633          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5634        am_cv_CC_dependencies_compiler_type=$depmode
5635        break
5636      fi
5637    fi
5638  done
5639
5640  cd ..
5641  rm -rf conftest.dir
5642else
5643  am_cv_CC_dependencies_compiler_type=none
5644fi
5645
5646fi
5647echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5648echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5649CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5650
5651
5652
5653if
5654  test "x$enable_dependency_tracking" != xno \
5655  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5656  am__fastdepCC_TRUE=
5657  am__fastdepCC_FALSE='#'
5658else
5659  am__fastdepCC_TRUE='#'
5660  am__fastdepCC_FALSE=
5661fi
5662
5663
5664
5665echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5666echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5667    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5668if test "${enable_maintainer_mode+set}" = set; then
5669  enableval="$enable_maintainer_mode"
5670  USE_MAINTAINER_MODE=$enableval
5671else
5672  USE_MAINTAINER_MODE=no
5673fi;
5674  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5675echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5676
5677
5678if test $USE_MAINTAINER_MODE = yes; then
5679  MAINTAINER_MODE_TRUE=
5680  MAINTAINER_MODE_FALSE='#'
5681else
5682  MAINTAINER_MODE_TRUE='#'
5683  MAINTAINER_MODE_FALSE=
5684fi
5685
5686  MAINT=$MAINTAINER_MODE_TRUE
5687
5688
5689
5690coin_have_externals=no
5691if test "$enable_maintainer_mode" = yes; then
5692
5693  # If maintainer mode is chosen, we make sure that the correct versions
5694  # of the tools are used, and that we know where libtool.m4 is (to
5695  # recreate acinclude.m4)
5696
5697
5698  LIBTOOLM4=
5699  # Normally, $HOME
5700  AUTOTOOLS_DFLT=$HOME
5701
5702  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5703echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5704if test "${ac_cv_use_correct_autotools+set}" = set; then
5705  echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707  ac_cv_use_correct_autotools=check
5708fi
5709echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5710echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5711
5712  if test $ac_cv_use_correct_autotools = check; then
5713    ac_cv_use_correct_autotools=yes
5714    # Check if we have autoconf
5715    # Extract the first word of "autoconf", so it can be a program name with args.
5716set dummy autoconf; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_have_autoconf+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$have_autoconf"; then
5723  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_have_autoconf="yes"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738
5739  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5740fi
5741fi
5742have_autoconf=$ac_cv_prog_have_autoconf
5743if test -n "$have_autoconf"; then
5744  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5745echo "${ECHO_T}$have_autoconf" >&6
5746else
5747  echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751    if test $have_autoconf = no; then
5752      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5753echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5754   { (exit 1); exit 1; }; }
5755    fi
5756
5757    # Check whether autoconf is the correct version
5758    correct_version='2.59'
5759    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5760    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5761echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5762    autoconf --version > confauto.out 2>&1
5763    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5764      echo "$as_me:$LINENO: result: yes" >&5
5765echo "${ECHO_T}yes" >&6
5766    else
5767      rm -f confauto.out
5768      echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5771echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5772   { (exit 1); exit 1; }; }
5773    fi
5774    rm -f confauto.out
5775
5776    # Check if the executable autoconf is picked up from the correct location
5777    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5778echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5779    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5780    autoconf_dir=`cd $autoconf_dir; pwd`
5781    if test x$AUTOTOOLS_DIR = x; then
5782      want_dir=$AUTOTOOLS_DFLT/bin
5783    else
5784      want_dir=$AUTOTOOLS_DIR/bin
5785    fi
5786    if test $autoconf_dir = `cd $want_dir; pwd`; then
5787      echo "$as_me:$LINENO: result: yes" >&5
5788echo "${ECHO_T}yes" >&6
5789    else
5790      rm -f confauto.out
5791      echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5794echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5795   { (exit 1); exit 1; }; }
5796    fi
5797
5798    # Check if we have automake
5799    # Extract the first word of "automake", so it can be a program name with args.
5800set dummy automake; ac_word=$2
5801echo "$as_me:$LINENO: checking for $ac_word" >&5
5802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5803if test "${ac_cv_prog_have_automake+set}" = set; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806  if test -n "$have_automake"; then
5807  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814  for ac_exec_ext in '' $ac_executable_extensions; do
5815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816    ac_cv_prog_have_automake="yes"
5817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821done
5822
5823  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5824fi
5825fi
5826have_automake=$ac_cv_prog_have_automake
5827if test -n "$have_automake"; then
5828  echo "$as_me:$LINENO: result: $have_automake" >&5
5829echo "${ECHO_T}$have_automake" >&6
5830else
5831  echo "$as_me:$LINENO: result: no" >&5
5832echo "${ECHO_T}no" >&6
5833fi
5834
5835    if test $have_automake = no; then
5836      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5837echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5838   { (exit 1); exit 1; }; }
5839    fi
5840
5841    # Check whether automake is the correct version
5842    correct_version='1.9.6'
5843    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5844    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5845echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5846    automake --version > confauto.out 2>&1
5847    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5848      echo "$as_me:$LINENO: result: yes" >&5
5849echo "${ECHO_T}yes" >&6
5850    else
5851      rm -f confauto.out
5852      echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6
5854      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5855echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5856   { (exit 1); exit 1; }; }
5857    fi
5858    rm -f confauto.out
5859
5860    # Check if the executable automake is picked up from the correct location
5861    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5862echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5863    automake_dir=`which automake | sed -e 's=/automake=='`
5864    automake_dir=`cd $automake_dir; pwd`
5865    if test x$AUTOTOOLS_DIR = x; then
5866      want_dir=$AUTOTOOLS_DFLT/bin
5867    else
5868      want_dir=$AUTOTOOLS_DIR/bin
5869    fi
5870    if test $automake_dir = `cd $want_dir; pwd`; then
5871      echo "$as_me:$LINENO: result: yes" >&5
5872echo "${ECHO_T}yes" >&6
5873    else
5874      rm -f confauto.out
5875      echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5878echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5879   { (exit 1); exit 1; }; }
5880    fi
5881
5882    # Check if this is the correct version of libtool (with escaped dots)
5883    if test x$AUTOTOOLS_DIR = x; then
5884      want_dir=$AUTOTOOLS_DFLT/share
5885    else
5886      want_dir=$AUTOTOOLS_DIR/share
5887    fi
5888    correct_version='1.5.22'
5889    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5890    if test -r $want_dir/libtool/ltmain.sh; then
5891  have_ltmain=yes
5892  :
5893else
5894  have_ltmain=no
5895  :
5896fi
5897
5898    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5899echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5900    if test $have_ltmain = yes; then
5901    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5902        echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
5904      else
5905        echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
5907        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5908echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5909   { (exit 1); exit 1; }; }
5910      fi
5911    else
5912      echo "$as_me:$LINENO: result: no" >&5
5913echo "${ECHO_T}no" >&6
5914      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5915echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5916   { (exit 1); exit 1; }; }
5917    fi
5918  fi
5919
5920  # Check if we can find the libtool file
5921  if test x$AUTOTOOLS_DIR = x; then
5922    want_dir=$AUTOTOOLS_DFLT/share
5923  else
5924    want_dir=$AUTOTOOLS_DIR/share
5925  fi
5926  if test -r $want_dir/aclocal/libtool.m4; then
5927  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5928  :
5929else
5930  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5931echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5932   { (exit 1); exit 1; }; }
5933  :
5934fi
5935
5936
5937  # Check if we have an Dependencies file
5938  if test -r $srcdir/Dependencies; then
5939    coin_have_externals=yes
5940  fi
5941  # Check if subversion is installed and understands https
5942  # Extract the first word of "svn", so it can be a program name with args.
5943set dummy svn; ac_word=$2
5944echo "$as_me:$LINENO: checking for $ac_word" >&5
5945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5946if test "${ac_cv_prog_have_svn+set}" = set; then
5947  echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949  if test -n "$have_svn"; then
5950  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5951else
5952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5953for as_dir in $PATH
5954do
5955  IFS=$as_save_IFS
5956  test -z "$as_dir" && as_dir=.
5957  for ac_exec_ext in '' $ac_executable_extensions; do
5958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5959    ac_cv_prog_have_svn="yes"
5960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5961    break 2
5962  fi
5963done
5964done
5965
5966  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5967fi
5968fi
5969have_svn=$ac_cv_prog_have_svn
5970if test -n "$have_svn"; then
5971  echo "$as_me:$LINENO: result: $have_svn" >&5
5972echo "${ECHO_T}$have_svn" >&6
5973else
5974  echo "$as_me:$LINENO: result: no" >&5
5975echo "${ECHO_T}no" >&6
5976fi
5977
5978  if test x$have_svn = xyes; then
5979    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5980echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5981if test "${ac_cv_svn_understands_https+set}" = set; then
5982  echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984  svn --version > confauto.out 2>&1
5985                    if $EGREP https confauto.out >/dev/null 2>&1; then
5986                      ac_cv_svn_understands_https=yes
5987                    else
5988                      ac_cv_svn_understands_https=no
5989                      have_svn=no
5990                      ac_cv_prog_have_svn=no
5991                    fi
5992                    rm -f confauto.out
5993fi
5994echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5995echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5996  fi
5997
5998  # Find the location of the BuildTools directory
5999  BUILDTOOLSDIR=
6000  if test -r $srcdir/BuildTools/coin.m4; then
6001    BUILDTOOLSDIR=$srcdir/BuildTools
6002  else
6003    if test -r $srcdir/../BuildTools/coin.m4; then
6004      BUILDTOOLSDIR=$srcdir/../BuildTools
6005    else
6006      if test -r $srcdir/../../BuildTools/coin.m4; then
6007        BUILDTOOLSDIR=$srcdir/../../BuildTools
6008      else
6009        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6010echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6011   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6012      fi
6013    fi
6014  fi
6015
6016
6017  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6018  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6019    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6020  fi
6021
6022  # The following variable is set to the name of the directory where
6023  # the autotool scripts are located
6024
6025  AUX_DIR=$ac_aux_dir
6026fi
6027
6028# helpful variable for the base directory of this package
6029abs_source_dir=`cd $srcdir; pwd`
6030
6031
6032# Stuff for example Makefiles
6033if test x$prefix = xNONE; then
6034  full_prefix=$ac_default_prefix
6035else
6036  full_prefix=$prefix
6037fi
6038full_prefix=`cd $full_prefix ; pwd`
6039
6040abs_lib_dir=$full_prefix/lib
6041
6042abs_include_dir=$full_prefix/include
6043
6044abs_bin_dir=$full_prefix/bin
6045
6046
6047
6048if test $coin_have_externals = yes && test x$have_svn = xyes; then
6049  HAVE_EXTERNALS_TRUE=
6050  HAVE_EXTERNALS_FALSE='#'
6051else
6052  HAVE_EXTERNALS_TRUE='#'
6053  HAVE_EXTERNALS_FALSE=
6054fi
6055
6056
6057# AC_MSG_NOTICE([End automake initialisation.])
6058
6059
6060
6061LIBTOOL=
6062if test -f ../libtool; then
6063  coin_config_dir=..
6064  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6065fi
6066if test "x$LIBTOOL" = x; then
6067  if test -f ../../libtool; then
6068    coin_config_dir=../..
6069    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6070  fi
6071fi
6072
6073if test "x$LIBTOOL" = x; then
6074# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6075  # Stuff for libtool
6076  # Check whether --enable-shared or --disable-shared was given.
6077if test "${enable_shared+set}" = set; then
6078  enableval="$enable_shared"
6079  p=${PACKAGE-default}
6080    case $enableval in
6081    yes) enable_shared=yes ;;
6082    no) enable_shared=no ;;
6083    *)
6084      enable_shared=no
6085      # Look at the argument we got.  We use all the common list separators.
6086      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6087      for pkg in $enableval; do
6088        IFS="$lt_save_ifs"
6089        if test "X$pkg" = "X$p"; then
6090          enable_shared=yes
6091        fi
6092      done
6093      IFS="$lt_save_ifs"
6094      ;;
6095    esac
6096else
6097  enable_shared=yes
6098fi;
6099
6100# Check whether --enable-fast-install or --disable-fast-install was given.
6101if test "${enable_fast_install+set}" = set; then
6102  enableval="$enable_fast_install"
6103  p=${PACKAGE-default}
6104    case $enableval in
6105    yes) enable_fast_install=yes ;;
6106    no) enable_fast_install=no ;;
6107    *)
6108      enable_fast_install=no
6109      # Look at the argument we got.  We use all the common list separators.
6110      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6111      for pkg in $enableval; do
6112        IFS="$lt_save_ifs"
6113        if test "X$pkg" = "X$p"; then
6114          enable_fast_install=yes
6115        fi
6116      done
6117      IFS="$lt_save_ifs"
6118      ;;
6119    esac
6120else
6121  enable_fast_install=yes
6122fi;
6123
6124echo "$as_me:$LINENO: checking host system type" >&5
6125echo $ECHO_N "checking host system type... $ECHO_C" >&6
6126if test "${ac_cv_host+set}" = set; then
6127  echo $ECHO_N "(cached) $ECHO_C" >&6
6128else
6129  ac_cv_host_alias=$host_alias
6130test -z "$ac_cv_host_alias" &&
6131  ac_cv_host_alias=$ac_cv_build_alias
6132ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6133  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6134echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6135   { (exit 1); exit 1; }; }
6136
6137fi
6138echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6139echo "${ECHO_T}$ac_cv_host" >&6
6140host=$ac_cv_host
6141host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6142host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6143host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6144
6145
6146echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6147echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6148if test "${lt_cv_path_SED+set}" = set; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  # Loop through the user's path and test for sed and gsed.
6152# Then use that list of sed's as ones to test for truncation.
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156  IFS=$as_save_IFS
6157  test -z "$as_dir" && as_dir=.
6158  for lt_ac_prog in sed gsed; do
6159    for ac_exec_ext in '' $ac_executable_extensions; do
6160      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6161        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6162      fi
6163    done
6164  done
6165done
6166lt_ac_max=0
6167lt_ac_count=0
6168# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6169# along with /bin/sed that truncates output.
6170for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6171  test ! -f $lt_ac_sed && continue
6172  cat /dev/null > conftest.in
6173  lt_ac_count=0
6174  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6175  # Check for GNU sed and select it if it is found.
6176  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6177    lt_cv_path_SED=$lt_ac_sed
6178    break
6179  fi
6180  while true; do
6181    cat conftest.in conftest.in >conftest.tmp
6182    mv conftest.tmp conftest.in
6183    cp conftest.in conftest.nl
6184    echo >>conftest.nl
6185    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6186    cmp -s conftest.out conftest.nl || break
6187    # 10000 chars as input seems more than enough
6188    test $lt_ac_count -gt 10 && break
6189    lt_ac_count=`expr $lt_ac_count + 1`
6190    if test $lt_ac_count -gt $lt_ac_max; then
6191      lt_ac_max=$lt_ac_count
6192      lt_cv_path_SED=$lt_ac_sed
6193    fi
6194  done
6195done
6196
6197fi
6198
6199SED=$lt_cv_path_SED
6200echo "$as_me:$LINENO: result: $SED" >&5
6201echo "${ECHO_T}$SED" >&6
6202
6203
6204# Check whether --with-gnu-ld or --without-gnu-ld was given.
6205if test "${with_gnu_ld+set}" = set; then
6206  withval="$with_gnu_ld"
6207  test "$withval" = no || with_gnu_ld=yes
6208else
6209  with_gnu_ld=no
6210fi;
6211ac_prog=ld
6212if test "$GCC" = yes; then
6213  # Check if gcc -print-prog-name=ld gives a path.
6214  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6215echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6216  case $host in
6217  *-*-mingw*)
6218    # gcc leaves a trailing carriage return which upsets mingw
6219    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6220  *)
6221    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6222  esac
6223  case $ac_prog in
6224    # Accept absolute paths.
6225    [\\/]* | ?:[\\/]*)
6226      re_direlt='/[^/][^/]*/\.\./'
6227      # Canonicalize the pathname of ld
6228      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6229      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6230        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6231      done
6232      test -z "$LD" && LD="$ac_prog"
6233      ;;
6234  "")
6235    # If it fails, then pretend we aren't using GCC.
6236    ac_prog=ld
6237    ;;
6238  *)
6239    # If it is relative, then search for the first ld in PATH.
6240    with_gnu_ld=unknown
6241    ;;
6242  esac
6243elif test "$with_gnu_ld" = yes; then
6244  echo "$as_me:$LINENO: checking for GNU ld" >&5
6245echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6246else
6247  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6248echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6249fi
6250if test "${lt_cv_path_LD+set}" = set; then
6251  echo $ECHO_N "(cached) $ECHO_C" >&6
6252else
6253  if test -z "$LD"; then
6254  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255  for ac_dir in $PATH; do
6256    IFS="$lt_save_ifs"
6257    test -z "$ac_dir" && ac_dir=.
6258    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6259      lt_cv_path_LD="$ac_dir/$ac_prog"
6260      # Check to see if the program is GNU ld.  I'd rather use --version,
6261      # but apparently some variants of GNU ld only accept -v.
6262      # Break only if it was the GNU/non-GNU ld that we prefer.
6263      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6264      *GNU* | *'with BFD'*)
6265        test "$with_gnu_ld" != no && break
6266        ;;
6267      *)
6268        test "$with_gnu_ld" != yes && break
6269        ;;
6270      esac
6271    fi
6272  done
6273  IFS="$lt_save_ifs"
6274else
6275  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6276fi
6277fi
6278
6279LD="$lt_cv_path_LD"
6280if test -n "$LD"; then
6281  echo "$as_me:$LINENO: result: $LD" >&5
6282echo "${ECHO_T}$LD" >&6
6283else
6284  echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286fi
6287test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6288echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6289   { (exit 1); exit 1; }; }
6290echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6291echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6292if test "${lt_cv_prog_gnu_ld+set}" = set; then
6293  echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6296case `$LD -v 2>&1 </dev/null` in
6297*GNU* | *'with BFD'*)
6298  lt_cv_prog_gnu_ld=yes
6299  ;;
6300*)
6301  lt_cv_prog_gnu_ld=no
6302  ;;
6303esac
6304fi
6305echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6306echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6307with_gnu_ld=$lt_cv_prog_gnu_ld
6308
6309
6310echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6311echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6312if test "${lt_cv_ld_reload_flag+set}" = set; then
6313  echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315  lt_cv_ld_reload_flag='-r'
6316fi
6317echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6318echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6319reload_flag=$lt_cv_ld_reload_flag
6320case $reload_flag in
6321"" | " "*) ;;
6322*) reload_flag=" $reload_flag" ;;
6323esac
6324reload_cmds='$LD$reload_flag -o $output$reload_objs'
6325case $host_os in
6326  darwin*)
6327    if test "$GCC" = yes; then
6328      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6329    else
6330      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6331    fi
6332    ;;
6333esac
6334
6335echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6336echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6337if test "${lt_cv_path_NM+set}" = set; then
6338  echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340  if test -n "$NM"; then
6341  # Let the user override the test.
6342  lt_cv_path_NM="$NM"
6343else
6344  lt_nm_to_check="${ac_tool_prefix}nm"
6345  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6346    lt_nm_to_check="$lt_nm_to_check nm"
6347  fi
6348  for lt_tmp_nm in $lt_nm_to_check; do
6349    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6350    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6351      IFS="$lt_save_ifs"
6352      test -z "$ac_dir" && ac_dir=.
6353      tmp_nm="$ac_dir/$lt_tmp_nm"
6354      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6355        # Check to see if the nm accepts a BSD-compat flag.
6356        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6357        #   nm: unknown option "B" ignored
6358        # Tru64's nm complains that /dev/null is an invalid object file
6359        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6360        */dev/null* | *'Invalid file or object type'*)
6361          lt_cv_path_NM="$tmp_nm -B"
6362          break
6363          ;;
6364        *)
6365          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6366          */dev/null*)
6367            lt_cv_path_NM="$tmp_nm -p"
6368            break
6369            ;;
6370          *)
6371            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6372            continue # so that we can try to find one that supports BSD flags
6373            ;;
6374          esac
6375          ;;
6376        esac
6377      fi
6378    done
6379    IFS="$lt_save_ifs"
6380  done
6381  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6382fi
6383fi
6384echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6385echo "${ECHO_T}$lt_cv_path_NM" >&6
6386NM="$lt_cv_path_NM"
6387
6388echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6389echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6390if test "${lt_cv_deplibs_check_method+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393  lt_cv_file_magic_cmd='$MAGIC_CMD'
6394lt_cv_file_magic_test_file=
6395lt_cv_deplibs_check_method='unknown'
6396# Need to set the preceding variable on all platforms that support
6397# interlibrary dependencies.
6398# 'none' -- dependencies not supported.
6399# `unknown' -- same as none, but documents that we really don't know.
6400# 'pass_all' -- all dependencies passed with no checks.
6401# 'test_compile' -- check by making test program.
6402# 'file_magic [[regex]]' -- check by looking for files in library path
6403# which responds to the $file_magic_cmd with a given extended regex.
6404# If you have `file' or equivalent on your system and you're not sure
6405# whether `pass_all' will *always* work, you probably want this one.
6406
6407case $host_os in
6408aix4* | aix5*)
6409  lt_cv_deplibs_check_method=pass_all
6410  ;;
6411
6412beos*)
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415
6416bsdi[45]*)
6417  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6418  lt_cv_file_magic_cmd='/usr/bin/file -L'
6419  lt_cv_file_magic_test_file=/shlib/libc.so
6420  ;;
6421
6422cygwin*)
6423  # func_win32_libid is a shell function defined in ltmain.sh
6424  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6425  lt_cv_file_magic_cmd='func_win32_libid'
6426  ;;
6427
6428mingw* | pw32*)
6429  # Base MSYS/MinGW do not provide the 'file' command needed by
6430  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6431  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6432  lt_cv_file_magic_cmd='$OBJDUMP -f'
6433  ;;
6434
6435darwin* | rhapsody*)
6436  lt_cv_deplibs_check_method=pass_all
6437  ;;
6438
6439freebsd* | kfreebsd*-gnu | dragonfly*)
6440  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6441    case $host_cpu in
6442    i*86 )
6443      # Not sure whether the presence of OpenBSD here was a mistake.
6444      # Let's accept both of them until this is cleared up.
6445      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6446      lt_cv_file_magic_cmd=/usr/bin/file
6447      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6448      ;;
6449    esac
6450  else
6451    lt_cv_deplibs_check_method=pass_all
6452  fi
6453  ;;
6454
6455gnu*)
6456  lt_cv_deplibs_check_method=pass_all
6457  ;;
6458
6459hpux10.20* | hpux11*)
6460  lt_cv_file_magic_cmd=/usr/bin/file
6461  case $host_cpu in
6462  ia64*)
6463    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6464    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6465    ;;
6466  hppa*64*)
6467    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]'
6468    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6469    ;;
6470  *)
6471    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6472    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6473    ;;
6474  esac
6475  ;;
6476
6477interix3*)
6478  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6479  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6480  ;;
6481
6482irix5* | irix6* | nonstopux*)
6483  case $LD in
6484  *-32|*"-32 ") libmagic=32-bit;;
6485  *-n32|*"-n32 ") libmagic=N32;;
6486  *-64|*"-64 ") libmagic=64-bit;;
6487  *) libmagic=never-match;;
6488  esac
6489  lt_cv_deplibs_check_method=pass_all
6490  ;;
6491
6492# This must be Linux ELF.
6493linux*)
6494  lt_cv_deplibs_check_method=pass_all
6495  ;;
6496
6497netbsd*)
6498  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6499    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500  else
6501    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6502  fi
6503  ;;
6504
6505newos6*)
6506  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6507  lt_cv_file_magic_cmd=/usr/bin/file
6508  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6509  ;;
6510
6511nto-qnx*)
6512  lt_cv_deplibs_check_method=unknown
6513  ;;
6514
6515openbsd*)
6516  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6517    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6518  else
6519    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6520  fi
6521  ;;
6522
6523osf3* | osf4* | osf5*)
6524  lt_cv_deplibs_check_method=pass_all
6525  ;;
6526
6527solaris*)
6528  lt_cv_deplibs_check_method=pass_all
6529  ;;
6530
6531sysv4 | sysv4.3*)
6532  case $host_vendor in
6533  motorola)
6534    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]'
6535    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6536    ;;
6537  ncr)
6538    lt_cv_deplibs_check_method=pass_all
6539    ;;
6540  sequent)
6541    lt_cv_file_magic_cmd='/bin/file'
6542    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6543    ;;
6544  sni)
6545    lt_cv_file_magic_cmd='/bin/file'
6546    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6547    lt_cv_file_magic_test_file=/lib/libc.so
6548    ;;
6549  siemens)
6550    lt_cv_deplibs_check_method=pass_all
6551    ;;
6552  pc)
6553    lt_cv_deplibs_check_method=pass_all
6554    ;;
6555  esac
6556  ;;
6557
6558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6559  lt_cv_deplibs_check_method=pass_all
6560  ;;
6561esac
6562
6563fi
6564echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6565echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6566file_magic_cmd=$lt_cv_file_magic_cmd
6567deplibs_check_method=$lt_cv_deplibs_check_method
6568test -z "$deplibs_check_method" && deplibs_check_method=unknown
6569
6570
6571
6572
6573# If no C compiler was specified, use CC.
6574LTCC=${LTCC-"$CC"}
6575
6576# If no C compiler flags were specified, use CFLAGS.
6577LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6578
6579# Allow CC to be a program name with arguments.
6580compiler=$CC
6581
6582# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6583if test "${enable_libtool_lock+set}" = set; then
6584  enableval="$enable_libtool_lock"
6585
6586fi;
6587test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6588
6589# Some flags need to be propagated to the compiler or linker for good
6590# libtool support.
6591case $host in
6592ia64-*-hpux*)
6593  # Find out which ABI we are using.
6594  echo 'int i;' > conftest.$ac_ext
6595  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596  (eval $ac_compile) 2>&5
6597  ac_status=$?
6598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599  (exit $ac_status); }; then
6600    case `/usr/bin/file conftest.$ac_objext` in
6601    *ELF-32*)
6602      HPUX_IA64_MODE="32"
6603      ;;
6604    *ELF-64*)
6605      HPUX_IA64_MODE="64"
6606      ;;
6607    esac
6608  fi
6609  rm -rf conftest*
6610  ;;
6611*-*-irix6*)
6612  # Find out which ABI we are using.
6613  echo '#line 6613 "configure"' > conftest.$ac_ext
6614  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615  (eval $ac_compile) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; then
6619   if test "$lt_cv_prog_gnu_ld" = yes; then
6620    case `/usr/bin/file conftest.$ac_objext` in
6621    *32-bit*)
6622      LD="${LD-ld} -melf32bsmip"
6623      ;;
6624    *N32*)
6625      LD="${LD-ld} -melf32bmipn32"
6626      ;;
6627    *64-bit*)
6628      LD="${LD-ld} -melf64bmip"
6629      ;;
6630    esac
6631   else
6632    case `/usr/bin/file conftest.$ac_objext` in
6633    *32-bit*)
6634      LD="${LD-ld} -32"
6635      ;;
6636    *N32*)
6637      LD="${LD-ld} -n32"
6638      ;;
6639    *64-bit*)
6640      LD="${LD-ld} -64"
6641      ;;
6642    esac
6643   fi
6644  fi
6645  rm -rf conftest*
6646  ;;
6647
6648x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6649  # Find out which ABI we are using.
6650  echo 'int i;' > conftest.$ac_ext
6651  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652  (eval $ac_compile) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; then
6656    case `/usr/bin/file conftest.o` in
6657    *32-bit*)
6658      case $host in
6659        x86_64-*linux*)
6660          LD="${LD-ld} -m elf_i386"
6661          ;;
6662        ppc64-*linux*|powerpc64-*linux*)
6663          LD="${LD-ld} -m elf32ppclinux"
6664          ;;
6665        s390x-*linux*)
6666          LD="${LD-ld} -m elf_s390"
6667          ;;
6668        sparc64-*linux*)
6669          LD="${LD-ld} -m elf32_sparc"
6670          ;;
6671      esac
6672      ;;
6673    *64-bit*)
6674      case $host in
6675        x86_64-*linux*)
6676          LD="${LD-ld} -m elf_x86_64"
6677          ;;
6678        ppc*-*linux*|powerpc*-*linux*)
6679          LD="${LD-ld} -m elf64ppc"
6680          ;;
6681        s390*-*linux*)
6682          LD="${LD-ld} -m elf64_s390"
6683          ;;
6684        sparc*-*linux*)
6685          LD="${LD-ld} -m elf64_sparc"
6686          ;;
6687      esac
6688      ;;
6689    esac
6690  fi
6691  rm -rf conftest*
6692  ;;
6693
6694*-*-sco3.2v5*)
6695  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6696  SAVE_CFLAGS="$CFLAGS"
6697  CFLAGS="$CFLAGS -belf"
6698  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6699echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6700if test "${lt_cv_cc_needs_belf+set}" = set; then
6701  echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703  ac_ext=c
6704ac_cpp='$CPP $CPPFLAGS'
6705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6707ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708
6709     cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h.  */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h.  */
6715
6716#ifdef F77_DUMMY_MAIN
6717
6718#  ifdef __cplusplus
6719     extern "C"
6720#  endif
6721   int F77_DUMMY_MAIN() { return 1; }
6722
6723#endif
6724int
6725main ()
6726{
6727
6728  ;
6729  return 0;
6730}
6731_ACEOF
6732rm -f conftest.$ac_objext conftest$ac_exeext
6733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6734  (eval $ac_link) 2>conftest.er1
6735  ac_status=$?
6736  grep -v '^ *+' conftest.er1 >conftest.err
6737  rm -f conftest.er1
6738  cat conftest.err >&5
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); } &&
6741         { ac_try='test -z "$ac_c_werror_flag"
6742                         || test ! -s conftest.err'
6743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744  (eval $ac_try) 2>&5
6745  ac_status=$?
6746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747  (exit $ac_status); }; } &&
6748         { ac_try='test -s conftest$ac_exeext'
6749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750  (eval $ac_try) 2>&5
6751  ac_status=$?
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); }; }; then
6754  lt_cv_cc_needs_belf=yes
6755else
6756  echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759lt_cv_cc_needs_belf=no
6760fi
6761rm -f conftest.err conftest.$ac_objext \
6762      conftest$ac_exeext conftest.$ac_ext
6763     ac_ext=c
6764ac_cpp='$CPP $CPPFLAGS'
6765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769fi
6770echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6771echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6772  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6773    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6774    CFLAGS="$SAVE_CFLAGS"
6775  fi
6776  ;;
6777sparc*-*solaris*)
6778  # Find out which ABI we are using.
6779  echo 'int i;' > conftest.$ac_ext
6780  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6781  (eval $ac_compile) 2>&5
6782  ac_status=$?
6783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784  (exit $ac_status); }; then
6785    case `/usr/bin/file conftest.o` in
6786    *64-bit*)
6787      case $lt_cv_prog_gnu_ld in
6788      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6789      *)    LD="${LD-ld} -64" ;;
6790      esac
6791      ;;
6792    esac
6793  fi
6794  rm -rf conftest*
6795  ;;
6796
6797
6798esac
6799
6800need_locks="$enable_libtool_lock"
6801
6802
6803ac_ext=c
6804ac_cpp='$CPP $CPPFLAGS'
6805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6809echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6810# On Suns, sometimes $CPP names a directory.
6811if test -n "$CPP" && test -d "$CPP"; then
6812  CPP=
6813fi
6814if test -z "$CPP"; then
6815  if test "${ac_cv_prog_CPP+set}" = set; then
6816  echo $ECHO_N "(cached) $ECHO_C" >&6
6817else
6818      # Double quotes because CPP needs to be expanded
6819    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6820    do
6821      ac_preproc_ok=false
6822for ac_c_preproc_warn_flag in '' yes
6823do
6824  # Use a header file that comes with gcc, so configuring glibc
6825  # with a fresh cross-compiler works.
6826  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827  # <limits.h> exists even on freestanding compilers.
6828  # On the NeXT, cc -E runs the code through the compiler's parser,
6829  # not just through cpp. "Syntax error" is here to catch this case.
6830  cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h.  */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h.  */
6836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
6841                     Syntax error
6842_ACEOF
6843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6845  ac_status=$?
6846  grep -v '^ *+' conftest.er1 >conftest.err
6847  rm -f conftest.er1
6848  cat conftest.err >&5
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); } >/dev/null; then
6851  if test -s conftest.err; then
6852    ac_cpp_err=$ac_c_preproc_warn_flag
6853    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6854  else
6855    ac_cpp_err=
6856  fi
6857else
6858  ac_cpp_err=yes
6859fi
6860if test -z "$ac_cpp_err"; then
6861  :
6862else
6863  echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866  # Broken: fails on valid input.
6867continue
6868fi
6869rm -f conftest.err conftest.$ac_ext
6870
6871  # OK, works on sane cases.  Now check whether non-existent headers
6872  # can be detected and how.
6873  cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h.  */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h.  */
6879#include <ac_nonexistent.h>
6880_ACEOF
6881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6882  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6883  ac_status=$?
6884  grep -v '^ *+' conftest.er1 >conftest.err
6885  rm -f conftest.er1
6886  cat conftest.err >&5
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); } >/dev/null; then
6889  if test -s conftest.err; then
6890    ac_cpp_err=$ac_c_preproc_warn_flag
6891    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6892  else
6893    ac_cpp_err=
6894  fi
6895else
6896  ac_cpp_err=yes
6897fi
6898if test -z "$ac_cpp_err"; then
6899  # Broken: success on invalid input.
6900continue
6901else
6902  echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905  # Passes both tests.
6906ac_preproc_ok=:
6907break
6908fi
6909rm -f conftest.err conftest.$ac_ext
6910
6911done
6912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913rm -f conftest.err conftest.$ac_ext
6914if $ac_preproc_ok; then
6915  break
6916fi
6917
6918    done
6919    ac_cv_prog_CPP=$CPP
6920
6921fi
6922  CPP=$ac_cv_prog_CPP
6923else
6924  ac_cv_prog_CPP=$CPP
6925fi
6926echo "$as_me:$LINENO: result: $CPP" >&5
6927echo "${ECHO_T}$CPP" >&6
6928ac_preproc_ok=false
6929for ac_c_preproc_warn_flag in '' yes
6930do
6931  # Use a header file that comes with gcc, so configuring glibc
6932  # with a fresh cross-compiler works.
6933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934  # <limits.h> exists even on freestanding compilers.
6935  # On the NeXT, cc -E runs the code through the compiler's parser,
6936  # not just through cpp. "Syntax error" is here to catch this case.
6937  cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h.  */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h.  */
6943#ifdef __STDC__
6944# include <limits.h>
6945#else
6946# include <assert.h>
6947#endif
6948                     Syntax error
6949_ACEOF
6950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6951  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6952  ac_status=$?
6953  grep -v '^ *+' conftest.er1 >conftest.err
6954  rm -f conftest.er1
6955  cat conftest.err >&5
6956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957  (exit $ac_status); } >/dev/null; then
6958  if test -s conftest.err; then
6959    ac_cpp_err=$ac_c_preproc_warn_flag
6960    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6961  else
6962    ac_cpp_err=
6963  fi
6964else
6965  ac_cpp_err=yes
6966fi
6967if test -z "$ac_cpp_err"; then
6968  :
6969else
6970  echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973  # Broken: fails on valid input.
6974continue
6975fi
6976rm -f conftest.err conftest.$ac_ext
6977
6978  # OK, works on sane cases.  Now check whether non-existent headers
6979  # can be detected and how.
6980  cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h.  */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h.  */
6986#include <ac_nonexistent.h>
6987_ACEOF
6988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6989  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6990  ac_status=$?
6991  grep -v '^ *+' conftest.er1 >conftest.err
6992  rm -f conftest.er1
6993  cat conftest.err >&5
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); } >/dev/null; then
6996  if test -s conftest.err; then
6997    ac_cpp_err=$ac_c_preproc_warn_flag
6998    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6999  else
7000    ac_cpp_err=
7001  fi
7002else
7003  ac_cpp_err=yes
7004fi
7005if test -z "$ac_cpp_err"; then
7006  # Broken: success on invalid input.
7007continue
7008else
7009  echo "$as_me: failed program was:" >&5
7010sed 's/^/| /' conftest.$ac_ext >&5
7011
7012  # Passes both tests.
7013ac_preproc_ok=:
7014break
7015fi
7016rm -f conftest.err conftest.$ac_ext
7017
7018done
7019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7020rm -f conftest.err conftest.$ac_ext
7021if $ac_preproc_ok; then
7022  :
7023else
7024  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7025See \`config.log' for more details." >&5
7026echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7027See \`config.log' for more details." >&2;}
7028   { (exit 1); exit 1; }; }
7029fi
7030
7031ac_ext=c
7032ac_cpp='$CPP $CPPFLAGS'
7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_c_compiler_gnu
7036
7037
7038echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7039echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7040if test "${ac_cv_header_stdc+set}" = set; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  cat >conftest.$ac_ext <<_ACEOF
7044/* confdefs.h.  */
7045_ACEOF
7046cat confdefs.h >>conftest.$ac_ext
7047cat >>conftest.$ac_ext <<_ACEOF
7048/* end confdefs.h.  */
7049#include <stdlib.h>
7050#include <stdarg.h>
7051#include <string.h>
7052#include <float.h>
7053
7054#ifdef F77_DUMMY_MAIN
7055
7056#  ifdef __cplusplus
7057     extern "C"
7058#  endif
7059   int F77_DUMMY_MAIN() { return 1; }
7060
7061#endif
7062int
7063main ()
7064{
7065
7066  ;
7067  return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext
7071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072  (eval $ac_compile) 2>conftest.er1
7073  ac_status=$?
7074  grep -v '^ *+' conftest.er1 >conftest.err
7075  rm -f conftest.er1
7076  cat conftest.err >&5
7077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078  (exit $ac_status); } &&
7079         { ac_try='test -z "$ac_c_werror_flag"
7080                         || test ! -s conftest.err'
7081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082  (eval $ac_try) 2>&5
7083  ac_status=$?
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); }; } &&
7086         { ac_try='test -s conftest.$ac_objext'
7087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088  (eval $ac_try) 2>&5
7089  ac_status=$?
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); }; }; then
7092  ac_cv_header_stdc=yes
7093else
7094  echo "$as_me: failed program was:" >&5
7095sed 's/^/| /' conftest.$ac_ext >&5
7096
7097ac_cv_header_stdc=no
7098fi
7099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7100
7101if test $ac_cv_header_stdc = yes; then
7102  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7103  cat >conftest.$ac_ext <<_ACEOF
7104/* confdefs.h.  */
7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h.  */
7109#include <string.h>
7110
7111_ACEOF
7112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113  $EGREP "memchr" >/dev/null 2>&1; then
7114  :
7115else
7116  ac_cv_header_stdc=no
7117fi
7118rm -f conftest*
7119
7120fi
7121
7122if test $ac_cv_header_stdc = yes; then
7123  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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#include <stdlib.h>
7131
7132_ACEOF
7133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7134  $EGREP "free" >/dev/null 2>&1; then
7135  :
7136else
7137  ac_cv_header_stdc=no
7138fi
7139rm -f conftest*
7140
7141fi
7142
7143if test $ac_cv_header_stdc = yes; then
7144  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7145  if test "$cross_compiling" = yes; then
7146  :
7147else
7148  cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154#include <ctype.h>
7155#if ((' ' & 0x0FF) == 0x020)
7156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7158#else
7159# define ISLOWER(c) \
7160                   (('a' <= (c) && (c) <= 'i') \
7161                     || ('j' <= (c) && (c) <= 'r') \
7162                     || ('s' <= (c) && (c) <= 'z'))
7163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7164#endif
7165
7166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7167int
7168main ()
7169{
7170  int i;
7171  for (i = 0; i < 256; i++)
7172    if (XOR (islower (i), ISLOWER (i))
7173        || toupper (i) != TOUPPER (i))
7174      exit(2);
7175  exit (0);
7176}
7177_ACEOF
7178rm -f conftest$ac_exeext
7179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7180  (eval $ac_link) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; }; then
7189  :
7190else
7191  echo "$as_me: program exited with status $ac_status" >&5
7192echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195( exit $ac_status )
7196ac_cv_header_stdc=no
7197fi
7198rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7199fi
7200fi
7201fi
7202echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7203echo "${ECHO_T}$ac_cv_header_stdc" >&6
7204if test $ac_cv_header_stdc = yes; then
7205
7206cat >>confdefs.h <<\_ACEOF
7207#define STDC_HEADERS 1
7208_ACEOF
7209
7210fi
7211
7212# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7223                  inttypes.h stdint.h unistd.h
7224do
7225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226echo "$as_me:$LINENO: checking for $ac_header" >&5
7227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7228if eval "test \"\${$as_ac_Header+set}\" = set"; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  cat >conftest.$ac_ext <<_ACEOF
7232/* confdefs.h.  */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h.  */
7237$ac_includes_default
7238
7239#include <$ac_header>
7240_ACEOF
7241rm -f conftest.$ac_objext
7242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243  (eval $ac_compile) 2>conftest.er1
7244  ac_status=$?
7245  grep -v '^ *+' conftest.er1 >conftest.err
7246  rm -f conftest.er1
7247  cat conftest.err >&5
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); } &&
7250         { ac_try='test -z "$ac_c_werror_flag"
7251                         || test ! -s conftest.err'
7252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253  (eval $ac_try) 2>&5
7254  ac_status=$?
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; } &&
7257         { ac_try='test -s conftest.$ac_objext'
7258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259  (eval $ac_try) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); }; }; then
7263  eval "$as_ac_Header=yes"
7264else
7265  echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
7268eval "$as_ac_Header=no"
7269fi
7270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271fi
7272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7274if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275  cat >>confdefs.h <<_ACEOF
7276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277_ACEOF
7278
7279fi
7280
7281done
7282
7283
7284
7285for ac_header in dlfcn.h
7286do
7287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289  echo "$as_me:$LINENO: checking for $ac_header" >&5
7290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292  echo $ECHO_N "(cached) $ECHO_C" >&6
7293fi
7294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296else
7297  # Is the header compilable?
7298echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7300cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h.  */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h.  */
7306$ac_includes_default
7307#include <$ac_header>
7308_ACEOF
7309rm -f conftest.$ac_objext
7310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311  (eval $ac_compile) 2>conftest.er1
7312  ac_status=$?
7313  grep -v '^ *+' conftest.er1 >conftest.err
7314  rm -f conftest.er1
7315  cat conftest.err >&5
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); } &&
7318         { ac_try='test -z "$ac_c_werror_flag"
7319                         || test ! -s conftest.err'
7320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321  (eval $ac_try) 2>&5
7322  ac_status=$?
7323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324  (exit $ac_status); }; } &&
7325         { ac_try='test -s conftest.$ac_objext'
7326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327  (eval $ac_try) 2>&5
7328  ac_status=$?
7329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330  (exit $ac_status); }; }; then
7331  ac_header_compiler=yes
7332else
7333  echo "$as_me: failed program was:" >&5
7334sed 's/^/| /' conftest.$ac_ext >&5
7335
7336ac_header_compiler=no
7337fi
7338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7339echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7340echo "${ECHO_T}$ac_header_compiler" >&6
7341
7342# Is the header present?
7343echo "$as_me:$LINENO: checking $ac_header presence" >&5
7344echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7345cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h.  */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h.  */
7351#include <$ac_header>
7352_ACEOF
7353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7354  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7355  ac_status=$?
7356  grep -v '^ *+' conftest.er1 >conftest.err
7357  rm -f conftest.er1
7358  cat conftest.err >&5
7359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360  (exit $ac_status); } >/dev/null; then
7361  if test -s conftest.err; then
7362    ac_cpp_err=$ac_c_preproc_warn_flag
7363    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7364  else
7365    ac_cpp_err=
7366  fi
7367else
7368  ac_cpp_err=yes
7369fi
7370if test -z "$ac_cpp_err"; then
7371  ac_header_preproc=yes
7372else
7373  echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376  ac_header_preproc=no
7377fi
7378rm -f conftest.err conftest.$ac_ext
7379echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7380echo "${ECHO_T}$ac_header_preproc" >&6
7381
7382# So?  What about this header?
7383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7384  yes:no: )
7385    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7389    ac_header_preproc=yes
7390    ;;
7391  no:yes:* )
7392    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7394    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7395echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7396    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7398    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7399echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7400    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7402    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7404    (
7405      cat <<\_ASBOX
7406## --------------------------------------------------------------- ##
7407## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7408## --------------------------------------------------------------- ##
7409_ASBOX
7410    ) |
7411      sed "s/^/$as_me: WARNING:     /" >&2
7412    ;;
7413esac
7414echo "$as_me:$LINENO: checking for $ac_header" >&5
7415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7416if eval "test \"\${$as_ac_Header+set}\" = set"; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  eval "$as_ac_Header=\$ac_header_preproc"
7420fi
7421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7422echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7423
7424fi
7425if test `eval echo '${'$as_ac_Header'}'` = yes; then
7426  cat >>confdefs.h <<_ACEOF
7427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7428_ACEOF
7429
7430fi
7431
7432done
7433
7434ac_ext=cc
7435ac_cpp='$CXXCPP $CPPFLAGS'
7436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7439if test -n "$ac_tool_prefix"; then
7440  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7441  do
7442    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7444echo "$as_me:$LINENO: checking for $ac_word" >&5
7445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7446if test "${ac_cv_prog_CXX+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449  if test -n "$CXX"; then
7450  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457  for ac_exec_ext in '' $ac_executable_extensions; do
7458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464done
7465
7466fi
7467fi
7468CXX=$ac_cv_prog_CXX
7469if test -n "$CXX"; then
7470  echo "$as_me:$LINENO: result: $CXX" >&5
7471echo "${ECHO_T}$CXX" >&6
7472else
7473  echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6
7475fi
7476
7477    test -n "$CXX" && break
7478  done
7479fi
7480if test -z "$CXX"; then
7481  ac_ct_CXX=$CXX
7482  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7483do
7484  # Extract the first word of "$ac_prog", so it can be a program name with args.
7485set dummy $ac_prog; ac_word=$2
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  if test -n "$ac_ct_CXX"; then
7492  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499  for ac_exec_ext in '' $ac_executable_extensions; do
7500  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501    ac_cv_prog_ac_ct_CXX="$ac_prog"
7502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506done
7507
7508fi
7509fi
7510ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7511if test -n "$ac_ct_CXX"; then
7512  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7513echo "${ECHO_T}$ac_ct_CXX" >&6
7514else
7515  echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
7517fi
7518
7519  test -n "$ac_ct_CXX" && break
7520done
7521test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7522
7523  CXX=$ac_ct_CXX
7524fi
7525
7526
7527# Provide some information about the compiler.
7528echo "$as_me:$LINENO:" \
7529     "checking for C++ compiler version" >&5
7530ac_compiler=`set X $ac_compile; echo $2`
7531{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7532  (eval $ac_compiler --version </dev/null >&5) 2>&5
7533  ac_status=$?
7534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535  (exit $ac_status); }
7536{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7537  (eval $ac_compiler -v </dev/null >&5) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }
7541{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7542  (eval $ac_compiler -V </dev/null >&5) 2>&5
7543  ac_status=$?
7544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545  (exit $ac_status); }
7546
7547echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7548echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7549if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7550  echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552  cat >conftest.$ac_ext <<_ACEOF
7553/* confdefs.h.  */
7554_ACEOF
7555cat confdefs.h >>conftest.$ac_ext
7556cat >>conftest.$ac_ext <<_ACEOF
7557/* end confdefs.h.  */
7558
7559#ifdef F77_DUMMY_MAIN
7560
7561#  ifdef __cplusplus
7562     extern "C"
7563#  endif
7564   int F77_DUMMY_MAIN() { return 1; }
7565
7566#endif
7567int
7568main ()
7569{
7570#ifndef __GNUC__
7571       choke me
7572#endif
7573
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578rm -f conftest.$ac_objext
7579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580  (eval $ac_compile) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } &&
7587         { ac_try='test -z "$ac_cxx_werror_flag"
7588                         || test ! -s conftest.err'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; } &&
7594         { ac_try='test -s conftest.$ac_objext'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; }; then
7600  ac_compiler_gnu=yes
7601else
7602  echo "$as_me: failed program was:" >&5
7603sed 's/^/| /' conftest.$ac_ext >&5
7604
7605ac_compiler_gnu=no
7606fi
7607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7608ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7609
7610fi
7611echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7612echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7613GXX=`test $ac_compiler_gnu = yes && echo yes`
7614ac_test_CXXFLAGS=${CXXFLAGS+set}
7615ac_save_CXXFLAGS=$CXXFLAGS
7616CXXFLAGS="-g"
7617echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7618echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7619if test "${ac_cv_prog_cxx_g+set}" = set; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h.  */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h.  */
7628
7629#ifdef F77_DUMMY_MAIN
7630
7631#  ifdef __cplusplus
7632     extern "C"
7633#  endif
7634   int F77_DUMMY_MAIN() { return 1; }
7635
7636#endif
7637int
7638main ()
7639{
7640
7641  ;
7642  return 0;
7643}
7644_ACEOF
7645rm -f conftest.$ac_objext
7646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647  (eval $ac_compile) 2>conftest.er1
7648  ac_status=$?
7649  grep -v '^ *+' conftest.er1 >conftest.err
7650  rm -f conftest.er1
7651  cat conftest.err >&5
7652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653  (exit $ac_status); } &&
7654         { ac_try='test -z "$ac_cxx_werror_flag"
7655                         || test ! -s conftest.err'
7656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657  (eval $ac_try) 2>&5
7658  ac_status=$?
7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660  (exit $ac_status); }; } &&
7661         { ac_try='test -s conftest.$ac_objext'
7662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663  (eval $ac_try) 2>&5
7664  ac_status=$?
7665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666  (exit $ac_status); }; }; then
7667  ac_cv_prog_cxx_g=yes
7668else
7669  echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672ac_cv_prog_cxx_g=no
7673fi
7674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7675fi
7676echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7677echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7678if test "$ac_test_CXXFLAGS" = set; then
7679  CXXFLAGS=$ac_save_CXXFLAGS
7680elif test $ac_cv_prog_cxx_g = yes; then
7681  if test "$GXX" = yes; then
7682    CXXFLAGS="-g -O2"
7683  else
7684    CXXFLAGS="-g"
7685  fi
7686else
7687  if test "$GXX" = yes; then
7688    CXXFLAGS="-O2"
7689  else
7690    CXXFLAGS=
7691  fi
7692fi
7693for ac_declaration in \
7694   '' \
7695   'extern "C" void std::exit (int) throw (); using std::exit;' \
7696   'extern "C" void std::exit (int); using std::exit;' \
7697   'extern "C" void exit (int) throw ();' \
7698   'extern "C" void exit (int);' \
7699   'void exit (int);'
7700do
7701  cat >conftest.$ac_ext <<_ACEOF
7702/* confdefs.h.  */
7703_ACEOF
7704cat confdefs.h >>conftest.$ac_ext
7705cat >>conftest.$ac_ext <<_ACEOF
7706/* end confdefs.h.  */
7707$ac_declaration
7708#include <stdlib.h>
7709#ifdef F77_DUMMY_MAIN
7710
7711#  ifdef __cplusplus
7712     extern "C"
7713#  endif
7714   int F77_DUMMY_MAIN() { return 1; }
7715
7716#endif
7717int
7718main ()
7719{
7720exit (42);
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725rm -f conftest.$ac_objext
7726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727  (eval $ac_compile) 2>conftest.er1
7728  ac_status=$?
7729  grep -v '^ *+' conftest.er1 >conftest.err
7730  rm -f conftest.er1
7731  cat conftest.err >&5
7732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733  (exit $ac_status); } &&
7734         { ac_try='test -z "$ac_cxx_werror_flag"
7735                         || test ! -s conftest.err'
7736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737  (eval $ac_try) 2>&5
7738  ac_status=$?
7739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740  (exit $ac_status); }; } &&
7741         { ac_try='test -s conftest.$ac_objext'
7742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743  (eval $ac_try) 2>&5
7744  ac_status=$?
7745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746  (exit $ac_status); }; }; then
7747  :
7748else
7749  echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752continue
7753fi
7754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7755  cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h.  */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h.  */
7761$ac_declaration
7762#ifdef F77_DUMMY_MAIN
7763
7764#  ifdef __cplusplus
7765     extern "C"
7766#  endif
7767   int F77_DUMMY_MAIN() { return 1; }
7768
7769#endif
7770int
7771main ()
7772{
7773exit (42);
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext
7779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780  (eval $ac_compile) 2>conftest.er1
7781  ac_status=$?
7782  grep -v '^ *+' conftest.er1 >conftest.err
7783  rm -f conftest.er1
7784  cat conftest.err >&5
7785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786  (exit $ac_status); } &&
7787         { ac_try='test -z "$ac_cxx_werror_flag"
7788                         || test ! -s conftest.err'
7789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790  (eval $ac_try) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }; } &&
7794         { ac_try='test -s conftest.$ac_objext'
7795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796  (eval $ac_try) 2>&5
7797  ac_status=$?
7798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799  (exit $ac_status); }; }; then
7800  break
7801else
7802  echo "$as_me: failed program was:" >&5
7803sed 's/^/| /' conftest.$ac_ext >&5
7804
7805fi
7806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807done
7808rm -f conftest*
7809if test -n "$ac_declaration"; then
7810  echo '#ifdef __cplusplus' >>confdefs.h
7811  echo $ac_declaration      >>confdefs.h
7812  echo '#endif'             >>confdefs.h
7813fi
7814
7815ac_ext=cc
7816ac_cpp='$CXXCPP $CPPFLAGS'
7817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7820
7821depcc="$CXX"  am_compiler_list=
7822
7823echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7824echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7825if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7826  echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7829  # We make a subdir and do the tests there.  Otherwise we can end up
7830  # making bogus files that we don't know about and never remove.  For
7831  # instance it was reported that on HP-UX the gcc test will end up
7832  # making a dummy file named `D' -- because `-MD' means `put the output
7833  # in D'.
7834  mkdir conftest.dir
7835  # Copy depcomp to subdir because otherwise we won't find it if we're
7836  # using a relative directory.
7837  cp "$am_depcomp" conftest.dir
7838  cd conftest.dir
7839  # We will build objects and dependencies in a subdirectory because
7840  # it helps to detect inapplicable dependency modes.  For instance
7841  # both Tru64's cc and ICC support -MD to output dependencies as a
7842  # side effect of compilation, but ICC will put the dependencies in
7843  # the current directory while Tru64 will put them in the object
7844  # directory.
7845  mkdir sub
7846
7847  am_cv_CXX_dependencies_compiler_type=none
7848  if test "$am_compiler_list" = ""; then
7849     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7850  fi
7851  for depmode in $am_compiler_list; do
7852    # Setup a source with many dependencies, because some compilers
7853    # like to wrap large dependency lists on column 80 (with \), and
7854    # we should not choose a depcomp mode which is confused by this.
7855    #
7856    # We need to recreate these files for each test, as the compiler may
7857    # overwrite some of them when testing with obscure command lines.
7858    # This happens at least with the AIX C compiler.
7859    : > sub/conftest.c
7860    for i in 1 2 3 4 5 6; do
7861      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7862      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7863      # Solaris 8's {/usr,}/bin/sh.
7864      touch sub/conftst$i.h
7865    done
7866    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7867
7868    case $depmode in
7869    nosideeffect)
7870      # after this tag, mechanisms are not by side-effect, so they'll
7871      # only be used when explicitly requested
7872      if test "x$enable_dependency_tracking" = xyes; then
7873        continue
7874      else
7875        break
7876      fi
7877      ;;
7878    none) break ;;
7879    esac
7880    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7881    # mode.  It turns out that the SunPro C++ compiler does not properly
7882    # handle `-M -o', and we need to detect this.
7883    if depmode=$depmode \
7884       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7885       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7886       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7887         >/dev/null 2>conftest.err &&
7888       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7889       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7890       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7891      # icc doesn't choke on unknown options, it will just issue warnings
7892      # or remarks (even with -Werror).  So we grep stderr for any message
7893      # that says an option was ignored or not supported.
7894      # When given -MP, icc 7.0 and 7.1 complain thusly:
7895      #   icc: Command line warning: ignoring option '-M'; no argument required
7896      # The diagnosis changed in icc 8.0:
7897      #   icc: Command line remark: option '-MP' not supported
7898      if (grep 'ignoring option' conftest.err ||
7899          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7900        am_cv_CXX_dependencies_compiler_type=$depmode
7901        break
7902      fi
7903    fi
7904  done
7905
7906  cd ..
7907  rm -rf conftest.dir
7908else
7909  am_cv_CXX_dependencies_compiler_type=none
7910fi
7911
7912fi
7913echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7914echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7915CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7916
7917
7918
7919if
7920  test "x$enable_dependency_tracking" != xno \
7921  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7922  am__fastdepCXX_TRUE=
7923  am__fastdepCXX_FALSE='#'
7924else
7925  am__fastdepCXX_TRUE='#'
7926  am__fastdepCXX_FALSE=
7927fi
7928
7929
7930
7931
7932if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7933    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7934    (test "X$CXX" != "Xg++"))) ; then
7935  ac_ext=cc
7936ac_cpp='$CXXCPP $CPPFLAGS'
7937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7940echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7941echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7942if test -z "$CXXCPP"; then
7943  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7944  echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946      # Double quotes because CXXCPP needs to be expanded
7947    for CXXCPP in "$CXX -E" "/lib/cpp"
7948    do
7949      ac_preproc_ok=false
7950for ac_cxx_preproc_warn_flag in '' yes
7951do
7952  # Use a header file that comes with gcc, so configuring glibc
7953  # with a fresh cross-compiler works.
7954  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7955  # <limits.h> exists even on freestanding compilers.
7956  # On the NeXT, cc -E runs the code through the compiler's parser,
7957  # not just through cpp. "Syntax error" is here to catch this case.
7958  cat >conftest.$ac_ext <<_ACEOF
7959/* confdefs.h.  */
7960_ACEOF
7961cat confdefs.h >>conftest.$ac_ext
7962cat >>conftest.$ac_ext <<_ACEOF
7963/* end confdefs.h.  */
7964#ifdef __STDC__
7965# include <limits.h>
7966#else
7967# include <assert.h>
7968#endif
7969                     Syntax error
7970_ACEOF
7971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973  ac_status=$?
7974  grep -v '^ *+' conftest.er1 >conftest.err
7975  rm -f conftest.er1
7976  cat conftest.err >&5
7977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978  (exit $ac_status); } >/dev/null; then
7979  if test -s conftest.err; then
7980    ac_cpp_err=$ac_cxx_preproc_warn_flag
7981    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7982  else
7983    ac_cpp_err=
7984  fi
7985else
7986  ac_cpp_err=yes
7987fi
7988if test -z "$ac_cpp_err"; then
7989  :
7990else
7991  echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994  # Broken: fails on valid input.
7995continue
7996fi
7997rm -f conftest.err conftest.$ac_ext
7998
7999  # OK, works on sane cases.  Now check whether non-existent headers
8000  # can be detected and how.
8001  cat >conftest.$ac_ext <<_ACEOF
8002/* confdefs.h.  */
8003_ACEOF
8004cat confdefs.h >>conftest.$ac_ext
8005cat >>conftest.$ac_ext <<_ACEOF
8006/* end confdefs.h.  */
8007#include <ac_nonexistent.h>
8008_ACEOF
8009if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8010  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8011  ac_status=$?
8012  grep -v '^ *+' conftest.er1 >conftest.err
8013  rm -f conftest.er1
8014  cat conftest.err >&5
8015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016  (exit $ac_status); } >/dev/null; then
8017  if test -s conftest.err; then
8018    ac_cpp_err=$ac_cxx_preproc_warn_flag
8019    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8020  else
8021    ac_cpp_err=
8022  fi
8023else
8024  ac_cpp_err=yes
8025fi
8026if test -z "$ac_cpp_err"; then
8027  # Broken: success on invalid input.
8028continue
8029else
8030  echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033  # Passes both tests.
8034ac_preproc_ok=:
8035break
8036fi
8037rm -f conftest.err conftest.$ac_ext
8038
8039done
8040# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8041rm -f conftest.err conftest.$ac_ext
8042if $ac_preproc_ok; then
8043  break
8044fi
8045
8046    done
8047    ac_cv_prog_CXXCPP=$CXXCPP
8048
8049fi
8050  CXXCPP=$ac_cv_prog_CXXCPP
8051else
8052  ac_cv_prog_CXXCPP=$CXXCPP
8053fi
8054echo "$as_me:$LINENO: result: $CXXCPP" >&5
8055echo "${ECHO_T}$CXXCPP" >&6
8056ac_preproc_ok=false
8057for ac_cxx_preproc_warn_flag in '' yes
8058do
8059  # Use a header file that comes with gcc, so configuring glibc
8060  # with a fresh cross-compiler works.
8061  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8062  # <limits.h> exists even on freestanding compilers.
8063  # On the NeXT, cc -E runs the code through the compiler's parser,
8064  # not just through cpp. "Syntax error" is here to catch this case.
8065  cat >conftest.$ac_ext <<_ACEOF
8066/* confdefs.h.  */
8067_ACEOF
8068cat confdefs.h >>conftest.$ac_ext
8069cat >>conftest.$ac_ext <<_ACEOF
8070/* end confdefs.h.  */
8071#ifdef __STDC__
8072# include <limits.h>
8073#else
8074# include <assert.h>
8075#endif
8076                     Syntax error
8077_ACEOF
8078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8079  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8080  ac_status=$?
8081  grep -v '^ *+' conftest.er1 >conftest.err
8082  rm -f conftest.er1
8083  cat conftest.err >&5
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); } >/dev/null; then
8086  if test -s conftest.err; then
8087    ac_cpp_err=$ac_cxx_preproc_warn_flag
8088    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8089  else
8090    ac_cpp_err=
8091  fi
8092else
8093  ac_cpp_err=yes
8094fi
8095if test -z "$ac_cpp_err"; then
8096  :
8097else
8098  echo "$as_me: failed program was:" >&5
8099sed 's/^/| /' conftest.$ac_ext >&5
8100
8101  # Broken: fails on valid input.
8102continue
8103fi
8104rm -f conftest.err conftest.$ac_ext
8105
8106  # OK, works on sane cases.  Now check whether non-existent headers
8107  # can be detected and how.
8108  cat >conftest.$ac_ext <<_ACEOF
8109/* confdefs.h.  */
8110_ACEOF
8111cat confdefs.h >>conftest.$ac_ext
8112cat >>conftest.$ac_ext <<_ACEOF
8113/* end confdefs.h.  */
8114#include <ac_nonexistent.h>
8115_ACEOF
8116if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8117  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8118  ac_status=$?
8119  grep -v '^ *+' conftest.er1 >conftest.err
8120  rm -f conftest.er1
8121  cat conftest.err >&5
8122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123  (exit $ac_status); } >/dev/null; then
8124  if test -s conftest.err; then
8125    ac_cpp_err=$ac_cxx_preproc_warn_flag
8126    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8127  else
8128    ac_cpp_err=
8129  fi
8130else
8131  ac_cpp_err=yes
8132fi
8133if test -z "$ac_cpp_err"; then
8134  # Broken: success on invalid input.
8135continue
8136else
8137  echo "$as_me: failed program was:" >&5
8138sed 's/^/| /' conftest.$ac_ext >&5
8139
8140  # Passes both tests.
8141ac_preproc_ok=:
8142break
8143fi
8144rm -f conftest.err conftest.$ac_ext
8145
8146done
8147# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8148rm -f conftest.err conftest.$ac_ext
8149if $ac_preproc_ok; then
8150  :
8151else
8152  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8153See \`config.log' for more details." >&5
8154echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8155See \`config.log' for more details." >&2;}
8156   { (exit 1); exit 1; }; }
8157fi
8158
8159ac_ext=cc
8160ac_cpp='$CXXCPP $CPPFLAGS'
8161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8164
8165fi
8166
8167
8168
8169# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8170
8171# find the maximum length of command line arguments
8172echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8173echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8174if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177    i=0
8178  teststring="ABCD"
8179
8180  case $build_os in
8181  msdosdjgpp*)
8182    # On DJGPP, this test can blow up pretty badly due to problems in libc
8183    # (any single argument exceeding 2000 bytes causes a buffer overrun
8184    # during glob expansion).  Even if it were fixed, the result of this
8185    # check would be larger than it should be.
8186    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8187    ;;
8188
8189  gnu*)
8190    # Under GNU Hurd, this test is not required because there is
8191    # no limit to the length of command line arguments.
8192    # Libtool will interpret -1 as no limit whatsoever
8193    lt_cv_sys_max_cmd_len=-1;
8194    ;;
8195
8196  cygwin* | mingw*)
8197    # On Win9x/ME, this test blows up -- it succeeds, but takes
8198    # about 5 minutes as the teststring grows exponentially.
8199    # Worse, since 9x/ME are not pre-emptively multitasking,
8200    # you end up with a "frozen" computer, even though with patience
8201    # the test eventually succeeds (with a max line length of 256k).
8202    # Instead, let's just punt: use the minimum linelength reported by
8203    # all of the supported platforms: 8192 (on NT/2K/XP).
8204    lt_cv_sys_max_cmd_len=8192;
8205    ;;
8206
8207  amigaos*)
8208    # On AmigaOS with pdksh, this test takes hours, literally.
8209    # So we just punt and use a minimum line length of 8192.
8210    lt_cv_sys_max_cmd_len=8192;
8211    ;;
8212
8213  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8214    # This has been around since 386BSD, at least.  Likely further.
8215    if test -x /sbin/sysctl; then
8216      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8217    elif test -x /usr/sbin/sysctl; then
8218      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8219    else
8220      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8221    fi
8222    # And add a safety zone
8223    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8224    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8225    ;;
8226
8227  interix*)
8228    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8229    lt_cv_sys_max_cmd_len=196608
8230    ;;
8231
8232  osf*)
8233    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8234    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8235    # nice to cause kernel panics so lets avoid the loop below.
8236    # First set a reasonable default.
8237    lt_cv_sys_max_cmd_len=16384
8238    #
8239    if test -x /sbin/sysconfig; then
8240      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8241        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8242      esac
8243    fi
8244    ;;
8245  sco3.2v5*)
8246    lt_cv_sys_max_cmd_len=102400
8247    ;;
8248  sysv5* | sco5v6* | sysv4.2uw2*)
8249    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8250    if test -n "$kargmax"; then
8251      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8252    else
8253      lt_cv_sys_max_cmd_len=32768
8254    fi
8255    ;;
8256  *)
8257    # If test is not a shell built-in, we'll probably end up computing a
8258    # maximum length that is only half of the actual maximum length, but
8259    # we can't tell.
8260    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8261    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8262               = "XX$teststring") >/dev/null 2>&1 &&
8263            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8264            lt_cv_sys_max_cmd_len=$new_result &&
8265            test $i != 17 # 1/2 MB should be enough
8266    do
8267      i=`expr $i + 1`
8268      teststring=$teststring$teststring
8269    done
8270    teststring=
8271    # Add a significant safety factor because C++ compilers can tack on massive
8272    # amounts of additional arguments before passing them to the linker.
8273    # It appears as though 1/2 is a usable value.
8274    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8275    ;;
8276  esac
8277
8278fi
8279
8280if test -n $lt_cv_sys_max_cmd_len ; then
8281  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8282echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8283else
8284  echo "$as_me:$LINENO: result: none" >&5
8285echo "${ECHO_T}none" >&6
8286fi
8287
8288
8289
8290
8291# Check for command to grab the raw symbol name followed by C symbol from nm.
8292echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8293echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8294if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8295  echo $ECHO_N "(cached) $ECHO_C" >&6
8296else
8297
8298# These are sane defaults that work on at least a few old systems.
8299# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8300
8301# Character class describing NM global symbol codes.
8302symcode='[BCDEGRST]'
8303
8304# Regexp to match symbols that can be accessed directly from C.
8305sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8306
8307# Transform an extracted symbol line into a proper C declaration
8308lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8309
8310# Transform an extracted symbol line into symbol name and symbol address
8311lt_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'"
8312
8313# Define system-specific variables.
8314case $host_os in
8315aix*)
8316  symcode='[BCDT]'
8317  ;;
8318cygwin* | mingw* | pw32*)
8319  symcode='[ABCDGISTW]'
8320  ;;
8321hpux*) # Its linker distinguishes data from code symbols
8322  if test "$host_cpu" = ia64; then
8323    symcode='[ABCDEGRST]'
8324  fi
8325  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8326  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'"
8327  ;;
8328linux*)
8329  if test "$host_cpu" = ia64; then
8330    symcode='[ABCDGIRSTW]'
8331    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8332    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'"
8333  fi
8334  ;;
8335irix* | nonstopux*)
8336  symcode='[BCDEGRST]'
8337  ;;
8338osf*)
8339  symcode='[BCDEGQRST]'
8340  ;;
8341solaris*)
8342  symcode='[BDRT]'
8343  ;;
8344sco3.2v5*)
8345  symcode='[DT]'
8346  ;;
8347sysv4.2uw2*)
8348  symcode='[DT]'
8349  ;;
8350sysv5* | sco5v6* | unixware* | OpenUNIX*)
8351  symcode='[ABDT]'
8352  ;;
8353sysv4)
8354  symcode='[DFNSTU]'
8355  ;;
8356esac
8357
8358# Handle CRLF in mingw tool chain
8359opt_cr=
8360case $build_os in
8361mingw*)
8362  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8363  ;;
8364esac
8365
8366# If we're using GNU nm, then use its standard symbol codes.
8367case `$NM -V 2>&1` in
8368*GNU* | *'with BFD'*)
8369  symcode='[ABCDGIRSTW]' ;;
8370esac
8371
8372# Try without a prefix undercore, then with it.
8373for ac_symprfx in "" "_"; do
8374
8375  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8376  symxfrm="\\1 $ac_symprfx\\2 \\2"
8377
8378  # Write the raw and C identifiers.
8379  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8380
8381  # Check to see that the pipe works correctly.
8382  pipe_works=no
8383
8384  rm -f conftest*
8385  cat > conftest.$ac_ext <<EOF
8386#ifdef __cplusplus
8387extern "C" {
8388#endif
8389char nm_test_var;
8390void nm_test_func(){}
8391#ifdef __cplusplus
8392}
8393#endif
8394int main(){nm_test_var='a';nm_test_func();return(0);}
8395EOF
8396
8397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8398  (eval $ac_compile) 2>&5
8399  ac_status=$?
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); }; then
8402    # Now try to grab the symbols.
8403    nlist=conftest.nm
8404    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8405  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); } && test -s "$nlist"; then
8409      # Try sorting and uniquifying the output.
8410      if sort "$nlist" | uniq > "$nlist"T; then
8411        mv -f "$nlist"T "$nlist"
8412      else
8413        rm -f "$nlist"T
8414      fi
8415
8416      # Make sure that we snagged all the symbols we need.
8417      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8418        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8419          cat <<EOF > conftest.$ac_ext
8420#ifdef __cplusplus
8421extern "C" {
8422#endif
8423
8424EOF
8425          # Now generate the symbol file.
8426          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8427
8428          cat <<EOF >> conftest.$ac_ext
8429#if defined (__STDC__) && __STDC__
8430# define lt_ptr_t void *
8431#else
8432# define lt_ptr_t char *
8433# define const
8434#endif
8435
8436/* The mapping between symbol names and symbols. */
8437const struct {
8438  const char *name;
8439  lt_ptr_t address;
8440}
8441lt_preloaded_symbols[] =
8442{
8443EOF
8444          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8445          cat <<\EOF >> conftest.$ac_ext
8446  {0, (lt_ptr_t) 0}
8447};
8448
8449#ifdef __cplusplus
8450}
8451#endif
8452EOF
8453          # Now try linking the two files.
8454          mv conftest.$ac_objext conftstm.$ac_objext
8455          lt_save_LIBS="$LIBS"
8456          lt_save_CFLAGS="$CFLAGS"
8457          LIBS="conftstm.$ac_objext"
8458          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8459          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460  (eval $ac_link) 2>&5
8461  ac_status=$?
8462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8464            pipe_works=yes
8465          fi
8466          LIBS="$lt_save_LIBS"
8467          CFLAGS="$lt_save_CFLAGS"
8468        else
8469          echo "cannot find nm_test_func in $nlist" >&5
8470        fi
8471      else
8472        echo "cannot find nm_test_var in $nlist" >&5
8473      fi
8474    else
8475      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8476    fi
8477  else
8478    echo "$progname: failed program was:" >&5
8479    cat conftest.$ac_ext >&5
8480  fi
8481  rm -f conftest* conftst*
8482
8483  # Do not use the global_symbol_pipe unless it works.
8484  if test "$pipe_works" = yes; then
8485    break
8486  else
8487    lt_cv_sys_global_symbol_pipe=
8488  fi
8489done
8490
8491fi
8492
8493if test -z "$lt_cv_sys_global_symbol_pipe"; then
8494  lt_cv_sys_global_symbol_to_cdecl=
8495fi
8496if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8497  echo "$as_me:$LINENO: result: failed" >&5
8498echo "${ECHO_T}failed" >&6
8499else
8500  echo "$as_me:$LINENO: result: ok" >&5
8501echo "${ECHO_T}ok" >&6
8502fi
8503
8504echo "$as_me:$LINENO: checking for objdir" >&5
8505echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8506if test "${lt_cv_objdir+set}" = set; then
8507  echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509  rm -f .libs 2>/dev/null
8510mkdir .libs 2>/dev/null
8511if test -d .libs; then
8512  lt_cv_objdir=.libs
8513else
8514  # MS-DOS does not allow filenames that begin with a dot.
8515  lt_cv_objdir=_libs
8516fi
8517rmdir .libs 2>/dev/null
8518fi
8519echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8520echo "${ECHO_T}$lt_cv_objdir" >&6
8521objdir=$lt_cv_objdir
8522
8523
8524
8525
8526
8527case $host_os in
8528aix3*)
8529  # AIX sometimes has problems with the GCC collect2 program.  For some
8530  # reason, if we set the COLLECT_NAMES environment variable, the problems
8531  # vanish in a puff of smoke.
8532  if test "X${COLLECT_NAMES+set}" != Xset; then
8533    COLLECT_NAMES=
8534    export COLLECT_NAMES
8535  fi
8536  ;;
8537esac
8538
8539# Sed substitution that helps us do robust quoting.  It backslashifies
8540# metacharacters that are still active within double-quoted strings.
8541Xsed='sed -e 1s/^X//'
8542sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8543
8544# Same as above, but do not quote variable references.
8545double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8546
8547# Sed substitution to delay expansion of an escaped shell variable in a
8548# double_quote_subst'ed string.
8549delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8550
8551# Sed substitution to avoid accidental globbing in evaled expressions
8552no_glob_subst='s/\*/\\\*/g'
8553
8554# Constants:
8555rm="rm -f"
8556
8557# Global variables:
8558default_ofile=libtool
8559can_build_shared=yes
8560
8561# All known linkers require a `.a' archive for static linking (except MSVC,
8562# which needs '.lib').
8563libext=a
8564ltmain="$ac_aux_dir/ltmain.sh"
8565ofile="$default_ofile"
8566with_gnu_ld="$lt_cv_prog_gnu_ld"
8567
8568if test -n "$ac_tool_prefix"; then
8569  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8570set dummy ${ac_tool_prefix}ar; ac_word=$2
8571echo "$as_me:$LINENO: checking for $ac_word" >&5
8572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8573if test "${ac_cv_prog_AR+set}" = set; then
8574  echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576  if test -n "$AR"; then
8577  ac_cv_prog_AR="$AR" # Let the user override the test.
8578else
8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580for as_dir in $PATH
8581do
8582  IFS=$as_save_IFS
8583  test -z "$as_dir" && as_dir=.
8584  for ac_exec_ext in '' $ac_executable_extensions; do
8585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8586    ac_cv_prog_AR="${ac_tool_prefix}ar"
8587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588    break 2
8589  fi
8590done
8591done
8592
8593fi
8594fi
8595AR=$ac_cv_prog_AR
8596if test -n "$AR"; then
8597  echo "$as_me:$LINENO: result: $AR" >&5
8598echo "${ECHO_T}$AR" >&6
8599else
8600  echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
8602fi
8603
8604fi
8605if test -z "$ac_cv_prog_AR"; then
8606  ac_ct_AR=$AR
8607  # Extract the first word of "ar", so it can be a program name with args.
8608set dummy ar; ac_word=$2
8609echo "$as_me:$LINENO: checking for $ac_word" >&5
8610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8611if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614  if test -n "$ac_ct_AR"; then
8615  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8616else
8617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620  IFS=$as_save_IFS
8621  test -z "$as_dir" && as_dir=.
8622  for ac_exec_ext in '' $ac_executable_extensions; do
8623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8624    ac_cv_prog_ac_ct_AR="ar"
8625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8626    break 2
8627  fi
8628done
8629done
8630
8631  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8632fi
8633fi
8634ac_ct_AR=$ac_cv_prog_ac_ct_AR
8635if test -n "$ac_ct_AR"; then
8636  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8637echo "${ECHO_T}$ac_ct_AR" >&6
8638else
8639  echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
8641fi
8642
8643  AR=$ac_ct_AR
8644else
8645  AR="$ac_cv_prog_AR"
8646fi
8647
8648if test -n "$ac_tool_prefix"; then
8649  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8650set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8651echo "$as_me:$LINENO: checking for $ac_word" >&5
8652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8653if test "${ac_cv_prog_RANLIB+set}" = set; then
8654  echo $ECHO_N "(cached) $ECHO_C" >&6
8655else
8656  if test -n "$RANLIB"; then
8657  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8658else
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662  IFS=$as_save_IFS
8663  test -z "$as_dir" && as_dir=.
8664  for ac_exec_ext in '' $ac_executable_extensions; do
8665  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8668    break 2
8669  fi
8670done
8671done
8672
8673fi
8674fi
8675RANLIB=$ac_cv_prog_RANLIB
8676if test -n "$RANLIB"; then
8677  echo "$as_me:$LINENO: result: $RANLIB" >&5
8678echo "${ECHO_T}$RANLIB" >&6
8679else
8680  echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
8682fi
8683
8684fi
8685if test -z "$ac_cv_prog_RANLIB"; then
8686  ac_ct_RANLIB=$RANLIB
8687  # Extract the first word of "ranlib", so it can be a program name with args.
8688set dummy ranlib; ac_word=$2
8689echo "$as_me:$LINENO: checking for $ac_word" >&5
8690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8691if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8692  echo $ECHO_N "(cached) $ECHO_C" >&6
8693else
8694  if test -n "$ac_ct_RANLIB"; then
8695  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700  IFS=$as_save_IFS
8701  test -z "$as_dir" && as_dir=.
8702  for ac_exec_ext in '' $ac_executable_extensions; do
8703  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704    ac_cv_prog_ac_ct_RANLIB="ranlib"
8705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8706    break 2
8707  fi
8708done
8709done
8710
8711  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8712fi
8713fi
8714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8715if test -n "$ac_ct_RANLIB"; then
8716  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8717echo "${ECHO_T}$ac_ct_RANLIB" >&6
8718else
8719  echo "$as_me:$LINENO: result: no" >&5
8720echo "${ECHO_T}no" >&6
8721fi
8722
8723  RANLIB=$ac_ct_RANLIB
8724else
8725  RANLIB="$ac_cv_prog_RANLIB"
8726fi
8727
8728if test -n "$ac_tool_prefix"; then
8729  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8730set dummy ${ac_tool_prefix}strip; ac_word=$2
8731echo "$as_me:$LINENO: checking for $ac_word" >&5
8732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733if test "${ac_cv_prog_STRIP+set}" = set; then
8734  echo $ECHO_N "(cached) $ECHO_C" >&6
8735else
8736  if test -n "$STRIP"; then
8737  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8738else
8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742  IFS=$as_save_IFS
8743  test -z "$as_dir" && as_dir=.
8744  for ac_exec_ext in '' $ac_executable_extensions; do
8745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748    break 2
8749  fi
8750done
8751done
8752
8753fi
8754fi
8755STRIP=$ac_cv_prog_STRIP
8756if test -n "$STRIP"; then
8757  echo "$as_me:$LINENO: result: $STRIP" >&5
8758echo "${ECHO_T}$STRIP" >&6
8759else
8760  echo "$as_me:$LINENO: result: no" >&5
8761echo "${ECHO_T}no" >&6
8762fi
8763
8764fi
8765if test -z "$ac_cv_prog_STRIP"; then
8766  ac_ct_STRIP=$STRIP
8767  # Extract the first word of "strip", so it can be a program name with args.
8768set dummy strip; ac_word=$2
8769echo "$as_me:$LINENO: checking for $ac_word" >&5
8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8772  echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774  if test -n "$ac_ct_STRIP"; then
8775  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8776else
8777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8778for as_dir in $PATH
8779do
8780  IFS=$as_save_IFS
8781  test -z "$as_dir" && as_dir=.
8782  for ac_exec_ext in '' $ac_executable_extensions; do
8783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8784    ac_cv_prog_ac_ct_STRIP="strip"
8785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8786    break 2
8787  fi
8788done
8789done
8790
8791  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8792fi
8793fi
8794ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8795if test -n "$ac_ct_STRIP"; then
8796  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8797echo "${ECHO_T}$ac_ct_STRIP" >&6
8798else
8799  echo "$as_me:$LINENO: result: no" >&5
8800echo "${ECHO_T}no" >&6
8801fi
8802
8803  STRIP=$ac_ct_STRIP
8804else
8805  STRIP="$ac_cv_prog_STRIP"
8806fi
8807
8808
8809old_CC="$CC"
8810old_CFLAGS="$CFLAGS"
8811
8812# Set sane defaults for various variables
8813test -z "$AR" && AR=ar
8814test -z "$AR_FLAGS" && AR_FLAGS=cru
8815test -z "$AS" && AS=as
8816test -z "$CC" && CC=cc
8817test -z "$LTCC" && LTCC=$CC
8818test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8819test -z "$DLLTOOL" && DLLTOOL=dlltool
8820test -z "$LD" && LD=ld
8821test -z "$LN_S" && LN_S="ln -s"
8822test -z "$MAGIC_CMD" && MAGIC_CMD=file
8823test -z "$NM" && NM=nm
8824test -z "$SED" && SED=sed
8825test -z "$OBJDUMP" && OBJDUMP=objdump
8826test -z "$RANLIB" && RANLIB=:
8827test -z "$STRIP" && STRIP=:
8828test -z "$ac_objext" && ac_objext=o
8829
8830# Determine commands to create old-style static archives.
8831old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8832old_postinstall_cmds='chmod 644 $oldlib'
8833old_postuninstall_cmds=
8834
8835if test -n "$RANLIB"; then
8836  case $host_os in
8837  openbsd*)
8838    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8839    ;;
8840  *)
8841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8842    ;;
8843  esac
8844  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8845fi
8846
8847for cc_temp in $compiler""; do
8848  case $cc_temp in
8849    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8850    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8851    \-*) ;;
8852    *) break;;
8853  esac
8854done
8855cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8856
8857
8858# Only perform the check for file, if the check method requires it
8859case $deplibs_check_method in
8860file_magic*)
8861  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8862    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8863echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8864if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8865  echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867  case $MAGIC_CMD in
8868[\\/*] |  ?:[\\/]*)
8869  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8870  ;;
8871*)
8872  lt_save_MAGIC_CMD="$MAGIC_CMD"
8873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8874  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875  for ac_dir in $ac_dummy; do
8876    IFS="$lt_save_ifs"
8877    test -z "$ac_dir" && ac_dir=.
8878    if test -f $ac_dir/${ac_tool_prefix}file; then
8879      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8880      if test -n "$file_magic_test_file"; then
8881        case $deplibs_check_method in
8882        "file_magic "*)
8883          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8885          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886            $EGREP "$file_magic_regex" > /dev/null; then
8887            :
8888          else
8889            cat <<EOF 1>&2
8890
8891*** Warning: the command libtool uses to detect shared libraries,
8892*** $file_magic_cmd, produces output that libtool cannot recognize.
8893*** The result is that libtool may fail to recognize shared libraries
8894*** as such.  This will affect the creation of libtool libraries that
8895*** depend on shared libraries, but programs linked with such libtool
8896*** libraries will work regardless of this problem.  Nevertheless, you
8897*** may want to report the problem to your system manager and/or to
8898*** bug-libtool@gnu.org
8899
8900EOF
8901          fi ;;
8902        esac
8903      fi
8904      break
8905    fi
8906  done
8907  IFS="$lt_save_ifs"
8908  MAGIC_CMD="$lt_save_MAGIC_CMD"
8909  ;;
8910esac
8911fi
8912
8913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914if test -n "$MAGIC_CMD"; then
8915  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8916echo "${ECHO_T}$MAGIC_CMD" >&6
8917else
8918  echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6
8920fi
8921
8922if test -z "$lt_cv_path_MAGIC_CMD"; then
8923  if test -n "$ac_tool_prefix"; then
8924    echo "$as_me:$LINENO: checking for file" >&5
8925echo $ECHO_N "checking for file... $ECHO_C" >&6
8926if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8927  echo $ECHO_N "(cached) $ECHO_C" >&6
8928else
8929  case $MAGIC_CMD in
8930[\\/*] |  ?:[\\/]*)
8931  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8932  ;;
8933*)
8934  lt_save_MAGIC_CMD="$MAGIC_CMD"
8935  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8936  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8937  for ac_dir in $ac_dummy; do
8938    IFS="$lt_save_ifs"
8939    test -z "$ac_dir" && ac_dir=.
8940    if test -f $ac_dir/file; then
8941      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8942      if test -n "$file_magic_test_file"; then
8943        case $deplibs_check_method in
8944        "file_magic "*)
8945          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8946          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8947          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8948            $EGREP "$file_magic_regex" > /dev/null; then
8949            :
8950          else
8951            cat <<EOF 1>&2
8952
8953*** Warning: the command libtool uses to detect shared libraries,
8954*** $file_magic_cmd, produces output that libtool cannot recognize.
8955*** The result is that libtool may fail to recognize shared libraries
8956*** as such.  This will affect the creation of libtool libraries that
8957*** depend on shared libraries, but programs linked with such libtool
8958*** libraries will work regardless of this problem.  Nevertheless, you
8959*** may want to report the problem to your system manager and/or to
8960*** bug-libtool@gnu.org
8961
8962EOF
8963          fi ;;
8964        esac
8965      fi
8966      break
8967    fi
8968  done
8969  IFS="$lt_save_ifs"
8970  MAGIC_CMD="$lt_save_MAGIC_CMD"
8971  ;;
8972esac
8973fi
8974
8975MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8976if test -n "$MAGIC_CMD"; then
8977  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8978echo "${ECHO_T}$MAGIC_CMD" >&6
8979else
8980  echo "$as_me:$LINENO: result: no" >&5
8981echo "${ECHO_T}no" >&6
8982fi
8983
8984  else
8985    MAGIC_CMD=:
8986  fi
8987fi
8988
8989  fi
8990  ;;
8991esac
8992
8993enable_dlopen=no
8994enable_win32_dll=no
8995
8996# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8997if test "${enable_libtool_lock+set}" = set; then
8998  enableval="$enable_libtool_lock"
8999
9000fi;
9001test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9002
9003
9004# Check whether --with-pic or --without-pic was given.
9005if test "${with_pic+set}" = set; then
9006  withval="$with_pic"
9007  pic_mode="$withval"
9008else
9009  pic_mode=default
9010fi;
9011test -z "$pic_mode" && pic_mode=default
9012
9013# Use C for the default configuration in the libtool script
9014tagname=
9015lt_save_CC="$CC"
9016ac_ext=c
9017ac_cpp='$CPP $CPPFLAGS'
9018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9020ac_compiler_gnu=$ac_cv_c_compiler_gnu
9021
9022
9023# Source file extension for C test sources.
9024ac_ext=c
9025
9026# Object file extension for compiled C test sources.
9027objext=o
9028objext=$objext
9029
9030# Code to be used in simple compile tests
9031lt_simple_compile_test_code="int some_variable = 0;\n"
9032
9033# Code to be used in simple link tests
9034lt_simple_link_test_code='int main(){return(0);}\n'
9035
9036
9037# If no C compiler was specified, use CC.
9038LTCC=${LTCC-"$CC"}
9039
9040# If no C compiler flags were specified, use CFLAGS.
9041LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9042
9043# Allow CC to be a program name with arguments.
9044compiler=$CC
9045
9046
9047# save warnings/boilerplate of simple test code
9048ac_outfile=conftest.$ac_objext
9049printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9050eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051_lt_compiler_boilerplate=`cat conftest.err`
9052$rm conftest*
9053
9054ac_outfile=conftest.$ac_objext
9055printf "$lt_simple_link_test_code" >conftest.$ac_ext
9056eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057_lt_linker_boilerplate=`cat conftest.err`
9058$rm conftest*
9059
9060
9061## CAVEAT EMPTOR:
9062## There is no encapsulation within the following macros, do not change
9063## the running order or otherwise move them around unless you know exactly
9064## what you are doing...
9065
9066lt_prog_compiler_no_builtin_flag=
9067
9068if test "$GCC" = yes; then
9069  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9070
9071
9072echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9073echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9074if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9075  echo $ECHO_N "(cached) $ECHO_C" >&6
9076else
9077  lt_cv_prog_compiler_rtti_exceptions=no
9078  ac_outfile=conftest.$ac_objext
9079   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9080   lt_compiler_flag="-fno-rtti -fno-exceptions"
9081   # Insert the option either (1) after the last *FLAGS variable, or
9082   # (2) before a word containing "conftest.", or (3) at the end.
9083   # Note that $ac_compile itself does not contain backslashes and begins
9084   # with a dollar sign (not a hyphen), so the echo should work correctly.
9085   # The option is referenced via a variable to avoid confusing sed.
9086   lt_compile=`echo "$ac_compile" | $SED \
9087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089   -e 's:$: $lt_compiler_flag:'`
9090   (eval echo "\"\$as_me:9090: $lt_compile\"" >&5)
9091   (eval "$lt_compile" 2>conftest.err)
9092   ac_status=$?
9093   cat conftest.err >&5
9094   echo "$as_me:9094: \$? = $ac_status" >&5
9095   if (exit $ac_status) && test -s "$ac_outfile"; then
9096     # The compiler can only warn and ignore the option if not recognized
9097     # So say no if there are warnings other than the usual output.
9098     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9099     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9100     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9101       lt_cv_prog_compiler_rtti_exceptions=yes
9102     fi
9103   fi
9104   $rm conftest*
9105
9106fi
9107echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9108echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9109
9110if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9111    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9112else
9113    :
9114fi
9115
9116fi
9117
9118lt_prog_compiler_wl=
9119lt_prog_compiler_pic=
9120lt_prog_compiler_static=
9121
9122echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9123echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9124
9125  if test "$GCC" = yes; then
9126    lt_prog_compiler_wl='-Wl,'
9127    lt_prog_compiler_static='-static'
9128
9129    case $host_os in
9130      aix*)
9131      # All AIX code is PIC.
9132      if test "$host_cpu" = ia64; then
9133        # AIX 5 now supports IA64 processor
9134        lt_prog_compiler_static='-Bstatic'
9135      fi
9136      ;;
9137
9138    amigaos*)
9139      # FIXME: we need at least 68020 code to build shared libraries, but
9140      # adding the `-m68020' flag to GCC prevents building anything better,
9141      # like `-m68040'.
9142      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9143      ;;
9144
9145    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9146      # PIC is the default for these OSes.
9147      ;;
9148
9149    mingw* | pw32* | os2*)
9150      # This hack is so that the source file can tell whether it is being
9151      # built for inclusion in a dll (and should export symbols for example).
9152      lt_prog_compiler_pic='-DDLL_EXPORT'
9153      ;;
9154
9155    darwin* | rhapsody*)
9156      # PIC is the default on this platform
9157      # Common symbols not allowed in MH_DYLIB files
9158      lt_prog_compiler_pic='-fno-common'
9159      ;;
9160
9161    interix3*)
9162      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9163      # Instead, we relocate shared libraries at runtime.
9164      ;;
9165
9166    msdosdjgpp*)
9167      # Just because we use GCC doesn't mean we suddenly get shared libraries
9168      # on systems that don't support them.
9169      lt_prog_compiler_can_build_shared=no
9170      enable_shared=no
9171      ;;
9172
9173    sysv4*MP*)
9174      if test -d /usr/nec; then
9175        lt_prog_compiler_pic=-Kconform_pic
9176      fi
9177      ;;
9178
9179    hpux*)
9180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9181      # not for PA HP-UX.
9182      case $host_cpu in
9183      hppa*64*|ia64*)
9184        # +Z the default
9185        ;;
9186      *)
9187        lt_prog_compiler_pic='-fPIC'
9188        ;;
9189      esac
9190      ;;
9191
9192    *)
9193      lt_prog_compiler_pic='-fPIC'
9194      ;;
9195    esac
9196  else
9197    # PORTME Check for flag to pass linker flags through the system compiler.
9198    case $host_os in
9199    aix*)
9200      lt_prog_compiler_wl='-Wl,'
9201      if test "$host_cpu" = ia64; then
9202        # AIX 5 now supports IA64 processor
9203        lt_prog_compiler_static='-Bstatic'
9204      else
9205        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9206      fi
9207      ;;
9208      darwin*)
9209        # PIC is the default on this platform
9210        # Common symbols not allowed in MH_DYLIB files
9211       case $cc_basename in
9212         xlc*)
9213         lt_prog_compiler_pic='-qnocommon'
9214         lt_prog_compiler_wl='-Wl,'
9215         ;;
9216       esac
9217       ;;
9218
9219    mingw* | pw32* | os2*)
9220      # This hack is so that the source file can tell whether it is being
9221      # built for inclusion in a dll (and should export symbols for example).
9222      lt_prog_compiler_pic='-DDLL_EXPORT'
9223      ;;
9224
9225    hpux9* | hpux10* | hpux11*)
9226      lt_prog_compiler_wl='-Wl,'
9227      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9228      # not for PA HP-UX.
9229      case $host_cpu in
9230      hppa*64*|ia64*)
9231        # +Z the default
9232        ;;
9233      *)
9234        lt_prog_compiler_pic='+Z'
9235        ;;
9236      esac
9237      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9238      lt_prog_compiler_static='${wl}-a ${wl}archive'
9239      ;;
9240
9241    irix5* | irix6* | nonstopux*)
9242      lt_prog_compiler_wl='-Wl,'
9243      # PIC (with -KPIC) is the default.
9244      lt_prog_compiler_static='-non_shared'
9245      ;;
9246
9247    newsos6)
9248      lt_prog_compiler_pic='-KPIC'
9249      lt_prog_compiler_static='-Bstatic'
9250      ;;
9251
9252    linux*)
9253      case $cc_basename in
9254      icc* | ecc*)
9255        lt_prog_compiler_wl='-Wl,'
9256        lt_prog_compiler_pic='-KPIC'
9257        lt_prog_compiler_static='-static'
9258        ;;
9259      pgcc* | pgf77* | pgf90* | pgf95*)
9260        # Portland Group compilers (*not* the Pentium gcc compiler,
9261        # which looks to be a dead project)
9262        lt_prog_compiler_wl='-Wl,'
9263        lt_prog_compiler_pic='-fpic'
9264        lt_prog_compiler_static='-Bstatic'
9265        ;;
9266      ccc*)
9267        lt_prog_compiler_wl='-Wl,'
9268        # All Alpha code is PIC.
9269        lt_prog_compiler_static='-non_shared'
9270        ;;
9271      esac
9272      ;;
9273
9274    osf3* | osf4* | osf5*)
9275      lt_prog_compiler_wl='-Wl,'
9276      # All OSF/1 code is PIC.
9277      lt_prog_compiler_static='-non_shared'
9278      ;;
9279
9280    solaris*)
9281      lt_prog_compiler_pic='-KPIC'
9282      lt_prog_compiler_static='-Bstatic'
9283      case $cc_basename in
9284      f77* | f90* | f95*)
9285        lt_prog_compiler_wl='-Qoption ld ';;
9286      *)
9287        lt_prog_compiler_wl='-Wl,';;
9288      esac
9289      ;;
9290
9291    sunos4*)
9292      lt_prog_compiler_wl='-Qoption ld '
9293      lt_prog_compiler_pic='-PIC'
9294      lt_prog_compiler_static='-Bstatic'
9295      ;;
9296
9297    sysv4 | sysv4.2uw2* | sysv4.3*)
9298      lt_prog_compiler_wl='-Wl,'
9299      lt_prog_compiler_pic='-KPIC'
9300      lt_prog_compiler_static='-Bstatic'
9301      ;;
9302
9303    sysv4*MP*)
9304      if test -d /usr/nec ;then
9305        lt_prog_compiler_pic='-Kconform_pic'
9306        lt_prog_compiler_static='-Bstatic'
9307      fi
9308      ;;
9309
9310    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9311      lt_prog_compiler_wl='-Wl,'
9312      lt_prog_compiler_pic='-KPIC'
9313      lt_prog_compiler_static='-Bstatic'
9314      ;;
9315
9316    unicos*)
9317      lt_prog_compiler_wl='-Wl,'
9318      lt_prog_compiler_can_build_shared=no
9319      ;;
9320
9321    uts4*)
9322      lt_prog_compiler_pic='-pic'
9323      lt_prog_compiler_static='-Bstatic'
9324      ;;
9325
9326    *)
9327      lt_prog_compiler_can_build_shared=no
9328      ;;
9329    esac
9330  fi
9331
9332echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9333echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9334
9335#
9336# Check to make sure the PIC flag actually works.
9337#
9338if test -n "$lt_prog_compiler_pic"; then
9339
9340echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9341echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9342if test "${lt_prog_compiler_pic_works+set}" = set; then
9343  echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345  lt_prog_compiler_pic_works=no
9346  ac_outfile=conftest.$ac_objext
9347   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9348   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9349   # Insert the option either (1) after the last *FLAGS variable, or
9350   # (2) before a word containing "conftest.", or (3) at the end.
9351   # Note that $ac_compile itself does not contain backslashes and begins
9352   # with a dollar sign (not a hyphen), so the echo should work correctly.
9353   # The option is referenced via a variable to avoid confusing sed.
9354   lt_compile=`echo "$ac_compile" | $SED \
9355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9357   -e 's:$: $lt_compiler_flag:'`
9358   (eval echo "\"\$as_me:9358: $lt_compile\"" >&5)
9359   (eval "$lt_compile" 2>conftest.err)
9360   ac_status=$?
9361   cat conftest.err >&5
9362   echo "$as_me:9362: \$? = $ac_status" >&5
9363   if (exit $ac_status) && test -s "$ac_outfile"; then
9364     # The compiler can only warn and ignore the option if not recognized
9365     # So say no if there are warnings other than the usual output.
9366     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9369       lt_prog_compiler_pic_works=yes
9370     fi
9371   fi
9372   $rm conftest*
9373
9374fi
9375echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9376echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9377
9378if test x"$lt_prog_compiler_pic_works" = xyes; then
9379    case $lt_prog_compiler_pic in
9380     "" | " "*) ;;
9381     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9382     esac
9383else
9384    lt_prog_compiler_pic=
9385     lt_prog_compiler_can_build_shared=no
9386fi
9387
9388fi
9389case $host_os in
9390  # For platforms which do not support PIC, -DPIC is meaningless:
9391  *djgpp*)
9392    lt_prog_compiler_pic=
9393    ;;
9394  *)
9395    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9396    ;;
9397esac
9398
9399#
9400# Check to make sure the static flag actually works.
9401#
9402wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9403echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9404echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9405if test "${lt_prog_compiler_static_works+set}" = set; then
9406  echo $ECHO_N "(cached) $ECHO_C" >&6
9407else
9408  lt_prog_compiler_static_works=no
9409   save_LDFLAGS="$LDFLAGS"
9410   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9411   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9412   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9413     # The linker can only warn and ignore the option if not recognized
9414     # So say no if there are warnings
9415     if test -s conftest.err; then
9416       # Append any errors to the config.log.
9417       cat conftest.err 1>&5
9418       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9419       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9420       if diff conftest.exp conftest.er2 >/dev/null; then
9421         lt_prog_compiler_static_works=yes
9422       fi
9423     else
9424       lt_prog_compiler_static_works=yes
9425     fi
9426   fi
9427   $rm conftest*
9428   LDFLAGS="$save_LDFLAGS"
9429
9430fi
9431echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9432echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9433
9434if test x"$lt_prog_compiler_static_works" = xyes; then
9435    :
9436else
9437    lt_prog_compiler_static=
9438fi
9439
9440
9441echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9442echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9443if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9444  echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
9446  lt_cv_prog_compiler_c_o=no
9447   $rm -r conftest 2>/dev/null
9448   mkdir conftest
9449   cd conftest
9450   mkdir out
9451   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9452
9453   lt_compiler_flag="-o out/conftest2.$ac_objext"
9454   # Insert the option either (1) after the last *FLAGS variable, or
9455   # (2) before a word containing "conftest.", or (3) at the end.
9456   # Note that $ac_compile itself does not contain backslashes and begins
9457   # with a dollar sign (not a hyphen), so the echo should work correctly.
9458   lt_compile=`echo "$ac_compile" | $SED \
9459   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9460   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9461   -e 's:$: $lt_compiler_flag:'`
9462   (eval echo "\"\$as_me:9462: $lt_compile\"" >&5)
9463   (eval "$lt_compile" 2>out/conftest.err)
9464   ac_status=$?
9465   cat out/conftest.err >&5
9466   echo "$as_me:9466: \$? = $ac_status" >&5
9467   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9468   then
9469     # The compiler can only warn and ignore the option if not recognized
9470     # So say no if there are warnings
9471     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9472     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9473     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9474       lt_cv_prog_compiler_c_o=yes
9475     fi
9476   fi
9477   chmod u+w . 2>&5
9478   $rm conftest*
9479   # SGI C++ compiler will create directory out/ii_files/ for
9480   # template instantiation
9481   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9482   $rm out/* && rmdir out
9483   cd ..
9484   rmdir conftest
9485   $rm conftest*
9486
9487fi
9488echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9489echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9490
9491
9492hard_links="nottested"
9493if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9494  # do not overwrite the value of need_locks provided by the user
9495  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9496echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9497  hard_links=yes
9498  $rm conftest*
9499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9500  touch conftest.a
9501  ln conftest.a conftest.b 2>&5 || hard_links=no
9502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503  echo "$as_me:$LINENO: result: $hard_links" >&5
9504echo "${ECHO_T}$hard_links" >&6
9505  if test "$hard_links" = no; then
9506    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9507echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9508    need_locks=warn
9509  fi
9510else
9511  need_locks=no
9512fi
9513
9514echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9515echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9516
9517  runpath_var=
9518  allow_undefined_flag=
9519  enable_shared_with_static_runtimes=no
9520  archive_cmds=
9521  archive_expsym_cmds=
9522  old_archive_From_new_cmds=
9523  old_archive_from_expsyms_cmds=
9524  export_dynamic_flag_spec=
9525  whole_archive_flag_spec=
9526  thread_safe_flag_spec=
9527  hardcode_libdir_flag_spec=
9528  hardcode_libdir_flag_spec_ld=
9529  hardcode_libdir_separator=
9530  hardcode_direct=no
9531  hardcode_minus_L=no
9532  hardcode_shlibpath_var=unsupported
9533  link_all_deplibs=unknown
9534  hardcode_automatic=no
9535  module_cmds=
9536  module_expsym_cmds=
9537  always_export_symbols=no
9538  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9539  # include_expsyms should be a list of space-separated symbols to be *always*
9540  # included in the symbol list
9541  include_expsyms=
9542  # exclude_expsyms can be an extended regexp of symbols to exclude
9543  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9544  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9545  # as well as any symbol that contains `d'.
9546  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9547  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9548  # platforms (ab)use it in PIC code, but their linkers get confused if
9549  # the symbol is explicitly referenced.  Since portable code cannot
9550  # rely on this symbol name, it's probably fine to never include it in
9551  # preloaded symbol tables.
9552  extract_expsyms_cmds=
9553  # Just being paranoid about ensuring that cc_basename is set.
9554  for cc_temp in $compiler""; do
9555  case $cc_temp in
9556    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9557    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9558    \-*) ;;
9559    *) break;;
9560  esac
9561done
9562cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9563
9564  case $host_os in
9565  cygwin* | mingw* | pw32*)
9566    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9567    # When not using gcc, we currently assume that we are using
9568    # Microsoft Visual C++.
9569    if test "$GCC" != yes; then
9570      with_gnu_ld=no
9571    fi
9572    ;;
9573  interix*)
9574    # we just hope/assume this is gcc and not c89 (= MSVC++)
9575    with_gnu_ld=yes
9576    ;;
9577  openbsd*)
9578    with_gnu_ld=no
9579    ;;
9580  esac
9581
9582  ld_shlibs=yes
9583  if test "$with_gnu_ld" = yes; then
9584    # If archive_cmds runs LD, not CC, wlarc should be empty
9585    wlarc='${wl}'
9586
9587    # Set some defaults for GNU ld with shared library support. These
9588    # are reset later if shared libraries are not supported. Putting them
9589    # here allows them to be overridden if necessary.
9590    runpath_var=LD_RUN_PATH
9591    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9592    export_dynamic_flag_spec='${wl}--export-dynamic'
9593    # ancient GNU ld didn't support --whole-archive et. al.
9594    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9595        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9596      else
9597        whole_archive_flag_spec=
9598    fi
9599    supports_anon_versioning=no
9600    case `$LD -v 2>/dev/null` in
9601      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9602      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9603      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9604      *\ 2.11.*) ;; # other 2.11 versions
9605      *) supports_anon_versioning=yes ;;
9606    esac
9607
9608    # See if GNU ld supports shared libraries.
9609    case $host_os in
9610    aix3* | aix4* | aix5*)
9611      # On AIX/PPC, the GNU linker is very broken
9612      if test "$host_cpu" != ia64; then
9613        ld_shlibs=no
9614        cat <<EOF 1>&2
9615
9616*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9617*** to be unable to reliably create shared libraries on AIX.
9618*** Therefore, libtool is disabling shared libraries support.  If you
9619*** really care for shared libraries, you may want to modify your PATH
9620*** so that a non-GNU linker is found, and then restart.
9621
9622EOF
9623      fi
9624      ;;
9625
9626    amigaos*)
9627      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)'
9628      hardcode_libdir_flag_spec='-L$libdir'
9629      hardcode_minus_L=yes
9630
9631      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9632      # that the semantics of dynamic libraries on AmigaOS, at least up
9633      # to version 4, is to share data among multiple programs linked
9634      # with the same dynamic library.  Since this doesn't match the
9635      # behavior of shared libraries on other platforms, we can't use
9636      # them.
9637      ld_shlibs=no
9638      ;;
9639
9640    beos*)
9641      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9642        allow_undefined_flag=unsupported
9643        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9644        # support --undefined.  This deserves some investigation.  FIXME
9645        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646      else
9647        ld_shlibs=no
9648      fi
9649      ;;
9650
9651    cygwin* | mingw* | pw32*)
9652      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9653      # as there is no search path for DLLs.
9654      hardcode_libdir_flag_spec='-L$libdir'
9655      allow_undefined_flag=unsupported
9656      always_export_symbols=no
9657      enable_shared_with_static_runtimes=yes
9658      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9659
9660      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9661        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9662        # If the export-symbols file already is a .def file (1st line
9663        # is EXPORTS), use it as is; otherwise, prepend...
9664        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9665          cp $export_symbols $output_objdir/$soname.def;
9666        else
9667          echo EXPORTS > $output_objdir/$soname.def;
9668          cat $export_symbols >> $output_objdir/$soname.def;
9669        fi~
9670        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9671      else
9672        ld_shlibs=no
9673      fi
9674      ;;
9675
9676    interix3*)
9677      hardcode_direct=no
9678      hardcode_shlibpath_var=no
9679      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680      export_dynamic_flag_spec='${wl}-E'
9681      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9682      # Instead, shared libraries are loaded at an image base (0x10000000 by
9683      # default) and relocated if they conflict, which is a slow very memory
9684      # consuming and fragmenting process.  To avoid this, we pick a random,
9685      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9686      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9687      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9688      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'
9689      ;;
9690
9691    linux*)
9692      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9693        tmp_addflag=
9694        case $cc_basename,$host_cpu in
9695        pgcc*)                          # Portland Group C compiler
9696          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'
9697          tmp_addflag=' $pic_flag'
9698          ;;
9699        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9700          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'
9701          tmp_addflag=' $pic_flag -Mnomain' ;;
9702        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9703          tmp_addflag=' -i_dynamic' ;;
9704        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9705          tmp_addflag=' -i_dynamic -nofor_main' ;;
9706        ifc* | ifort*)                  # Intel Fortran compiler
9707          tmp_addflag=' -nofor_main' ;;
9708        esac
9709        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710
9711        if test $supports_anon_versioning = yes; then
9712          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9713  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9714  $echo "local: *; };" >> $output_objdir/$libname.ver~
9715          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9716        fi
9717      else
9718        ld_shlibs=no
9719      fi
9720      ;;
9721
9722    netbsd*)
9723      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9724        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9725        wlarc=
9726      else
9727        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9729      fi
9730      ;;
9731
9732    solaris*)
9733      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9734        ld_shlibs=no
9735        cat <<EOF 1>&2
9736
9737*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9738*** create shared libraries on Solaris systems.  Therefore, libtool
9739*** is disabling shared libraries support.  We urge you to upgrade GNU
9740*** binutils to release 2.9.1 or newer.  Another option is to modify
9741*** your PATH or compiler configuration so that the native linker is
9742*** used, and then restart.
9743
9744EOF
9745      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9746        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9748      else
9749        ld_shlibs=no
9750      fi
9751      ;;
9752
9753    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9754      case `$LD -v 2>&1` in
9755        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9756        ld_shlibs=no
9757        cat <<_LT_EOF 1>&2
9758
9759*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9760*** reliably create shared libraries on SCO systems.  Therefore, libtool
9761*** is disabling shared libraries support.  We urge you to upgrade GNU
9762*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9763*** your PATH or compiler configuration so that the native linker is
9764*** used, and then restart.
9765
9766_LT_EOF
9767        ;;
9768        *)
9769          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9770            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9771            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9772            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9773          else
9774            ld_shlibs=no
9775          fi
9776        ;;
9777      esac
9778      ;;
9779
9780    sunos4*)
9781      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9782      wlarc=
9783      hardcode_direct=yes
9784      hardcode_shlibpath_var=no
9785      ;;
9786
9787    *)
9788      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9789        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791      else
9792        ld_shlibs=no
9793      fi
9794      ;;
9795    esac
9796
9797    if test "$ld_shlibs" = no; then
9798      runpath_var=
9799      hardcode_libdir_flag_spec=
9800      export_dynamic_flag_spec=
9801      whole_archive_flag_spec=
9802    fi
9803  else
9804    # PORTME fill in a description of your system's linker (not GNU ld)
9805    case $host_os in
9806    aix3*)
9807      allow_undefined_flag=unsupported
9808      always_export_symbols=yes
9809      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'
9810      # Note: this linker hardcodes the directories in LIBPATH if there
9811      # are no directories specified by -L.
9812      hardcode_minus_L=yes
9813      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9814        # Neither direct hardcoding nor static linking is supported with a
9815        # broken collect2.
9816        hardcode_direct=unsupported
9817      fi
9818      ;;
9819
9820    aix4* | aix5*)
9821      if test "$host_cpu" = ia64; then
9822        # On IA64, the linker does run time linking by default, so we don't
9823        # have to do anything special.
9824        aix_use_runtimelinking=no
9825        exp_sym_flag='-Bexport'
9826        no_entry_flag=""
9827      else
9828        # If we're using GNU nm, then we don't want the "-C" option.
9829        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9830        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9831          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'
9832        else
9833          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'
9834        fi
9835        aix_use_runtimelinking=no
9836
9837        # Test if we are trying to use run time linking or normal
9838        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9839        # need to do runtime linking.
9840        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9841          for ld_flag in $LDFLAGS; do
9842          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9843            aix_use_runtimelinking=yes
9844            break
9845          fi
9846          done
9847          ;;
9848        esac
9849
9850        exp_sym_flag='-bexport'
9851        no_entry_flag='-bnoentry'
9852      fi
9853
9854      # When large executables or shared objects are built, AIX ld can
9855      # have problems creating the table of contents.  If linking a library
9856      # or program results in "error TOC overflow" add -mminimal-toc to
9857      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9858      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9859
9860      archive_cmds=''
9861      hardcode_direct=yes
9862      hardcode_libdir_separator=':'
9863      link_all_deplibs=yes
9864
9865      if test "$GCC" = yes; then
9866        case $host_os in aix4.[012]|aix4.[012].*)
9867        # We only want to do this on AIX 4.2 and lower, the check
9868        # below for broken collect2 doesn't work under 4.3+
9869          collect2name=`${CC} -print-prog-name=collect2`
9870          if test -f "$collect2name" && \
9871           strings "$collect2name" | grep resolve_lib_name >/dev/null
9872          then
9873          # We have reworked collect2
9874          hardcode_direct=yes
9875          else
9876          # We have old collect2
9877          hardcode_direct=unsupported
9878          # It fails to find uninstalled libraries when the uninstalled
9879          # path is not listed in the libpath.  Setting hardcode_minus_L
9880          # to unsupported forces relinking
9881          hardcode_minus_L=yes
9882          hardcode_libdir_flag_spec='-L$libdir'
9883          hardcode_libdir_separator=
9884          fi
9885          ;;
9886        esac
9887        shared_flag='-shared'
9888        if test "$aix_use_runtimelinking" = yes; then
9889          shared_flag="$shared_flag "'${wl}-G'
9890        fi
9891      else
9892        # not using gcc
9893        if test "$host_cpu" = ia64; then
9894        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9895        # chokes on -Wl,-G. The following line is correct:
9896          shared_flag='-G'
9897        else
9898          if test "$aix_use_runtimelinking" = yes; then
9899            shared_flag='${wl}-G'
9900          else
9901            shared_flag='${wl}-bM:SRE'
9902          fi
9903        fi
9904      fi
9905
9906      # It seems that -bexpall does not export symbols beginning with
9907      # underscore (_), so it is better to generate a list of symbols to export.
9908      always_export_symbols=yes
9909      if test "$aix_use_runtimelinking" = yes; then
9910        # Warning - without using the other runtime loading flags (-brtl),
9911        # -berok will link without error, but may produce a broken library.
9912        allow_undefined_flag='-berok'
9913       # Determine the default libpath from the value encoded in an empty executable.
9914       cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h.  */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h.  */
9920
9921#ifdef F77_DUMMY_MAIN
9922
9923#  ifdef __cplusplus
9924     extern "C"
9925#  endif
9926   int F77_DUMMY_MAIN() { return 1; }
9927
9928#endif
9929int
9930main ()
9931{
9932
9933  ;
9934  return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939  (eval $ac_link) 2>conftest.er1
9940  ac_status=$?
9941  grep -v '^ *+' conftest.er1 >conftest.err
9942  rm -f conftest.er1
9943  cat conftest.err >&5
9944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945  (exit $ac_status); } &&
9946         { ac_try='test -z "$ac_c_werror_flag"
9947                         || test ! -s conftest.err'
9948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949  (eval $ac_try) 2>&5
9950  ac_status=$?
9951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952  (exit $ac_status); }; } &&
9953         { ac_try='test -s conftest$ac_exeext'
9954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955  (eval $ac_try) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); }; }; then
9959
9960aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9961}'`
9962# Check for a 64-bit object if we didn't find anything.
9963if 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; }
9964}'`; fi
9965else
9966  echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
9969fi
9970rm -f conftest.err conftest.$ac_objext \
9971      conftest$ac_exeext conftest.$ac_ext
9972if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9973
9974       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9975        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"
9976       else
9977        if test "$host_cpu" = ia64; then
9978          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9979          allow_undefined_flag="-z nodefs"
9980          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"
9981        else
9982         # Determine the default libpath from the value encoded in an empty executable.
9983         cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h.  */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h.  */
9989
9990#ifdef F77_DUMMY_MAIN
9991
9992#  ifdef __cplusplus
9993     extern "C"
9994#  endif
9995   int F77_DUMMY_MAIN() { return 1; }
9996
9997#endif
9998int
9999main ()
10000{
10001
10002  ;
10003  return 0;
10004}
10005_ACEOF
10006rm -f conftest.$ac_objext conftest$ac_exeext
10007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008  (eval $ac_link) 2>conftest.er1
10009  ac_status=$?
10010  grep -v '^ *+' conftest.er1 >conftest.err
10011  rm -f conftest.er1
10012  cat conftest.err >&5
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); } &&
10015         { ac_try='test -z "$ac_c_werror_flag"
10016                         || test ! -s conftest.err'
10017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018  (eval $ac_try) 2>&5
10019  ac_status=$?
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); }; } &&
10022         { ac_try='test -s conftest$ac_exeext'
10023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024  (eval $ac_try) 2>&5
10025  ac_status=$?
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); }; }; then
10028
10029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10030}'`
10031# Check for a 64-bit object if we didn't find anything.
10032if 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; }
10033}'`; fi
10034else
10035  echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
10038fi
10039rm -f conftest.err conftest.$ac_objext \
10040      conftest$ac_exeext conftest.$ac_ext
10041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10042
10043         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10044          # Warning - without using the other run time loading flags,
10045          # -berok will link without error, but may produce a broken library.
10046          no_undefined_flag=' ${wl}-bernotok'
10047          allow_undefined_flag=' ${wl}-berok'
10048          # Exported symbols can be pulled into shared objects from archives
10049          whole_archive_flag_spec='$convenience'
10050          archive_cmds_need_lc=yes
10051          # This is similar to how AIX traditionally builds its shared libraries.
10052          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'
10053        fi
10054      fi
10055      ;;
10056
10057    amigaos*)
10058      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)'
10059      hardcode_libdir_flag_spec='-L$libdir'
10060      hardcode_minus_L=yes
10061      # see comment about different semantics on the GNU ld section
10062      ld_shlibs=no
10063      ;;
10064
10065    bsdi[45]*)
10066      export_dynamic_flag_spec=-rdynamic
10067      ;;
10068
10069    cygwin* | mingw* | pw32*)
10070      # When not using gcc, we currently assume that we are using
10071      # Microsoft Visual C++.
10072      # hardcode_libdir_flag_spec is actually meaningless, as there is
10073      # no search path for DLLs.
10074      hardcode_libdir_flag_spec=' '
10075      allow_undefined_flag=unsupported
10076      # Tell ltmain to make .lib files, not .a files.
10077      libext=lib
10078      # Tell ltmain to make .dll files, not .so files.
10079      shrext_cmds=".dll"
10080      # FIXME: Setting linknames here is a bad hack.
10081      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10082      # The linker will automatically build a .lib file if we build a DLL.
10083      old_archive_From_new_cmds='true'
10084      # FIXME: Should let the user specify the lib program.
10085      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10086      fix_srcfile_path='`cygpath -w "$srcfile"`'
10087      enable_shared_with_static_runtimes=yes
10088      ;;
10089
10090    darwin* | rhapsody*)
10091      case $host_os in
10092        rhapsody* | darwin1.[012])
10093         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10094         ;;
10095       *) # Darwin 1.3 on
10096         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10097           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10098         else
10099           case ${MACOSX_DEPLOYMENT_TARGET} in
10100             10.[012])
10101               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10102               ;;
10103             10.*)
10104               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10105               ;;
10106           esac
10107         fi
10108         ;;
10109      esac
10110      archive_cmds_need_lc=no
10111      hardcode_direct=no
10112      hardcode_automatic=yes
10113      hardcode_shlibpath_var=unsupported
10114      whole_archive_flag_spec=''
10115      link_all_deplibs=yes
10116    if test "$GCC" = yes ; then
10117        output_verbose_link_cmd='echo'
10118        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10119      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10120      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10121      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}'
10122      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}'
10123    else
10124      case $cc_basename in
10125        xlc*)
10126         output_verbose_link_cmd='echo'
10127         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10128         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10129          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10130         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}'
10131          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}'
10132          ;;
10133       *)
10134         ld_shlibs=no
10135          ;;
10136      esac
10137    fi
10138      ;;
10139
10140    dgux*)
10141      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142      hardcode_libdir_flag_spec='-L$libdir'
10143      hardcode_shlibpath_var=no
10144      ;;
10145
10146    freebsd1*)
10147      ld_shlibs=no
10148      ;;
10149
10150    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10151    # support.  Future versions do this automatically, but an explicit c++rt0.o
10152    # does not break anything, and helps significantly (at the cost of a little
10153    # extra space).
10154    freebsd2.2*)
10155      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10156      hardcode_libdir_flag_spec='-R$libdir'
10157      hardcode_direct=yes
10158      hardcode_shlibpath_var=no
10159      ;;
10160
10161    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10162    freebsd2*)
10163      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164      hardcode_direct=yes
10165      hardcode_minus_L=yes
10166      hardcode_shlibpath_var=no
10167      ;;
10168
10169    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10170    freebsd* | kfreebsd*-gnu | dragonfly*)
10171      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10172      hardcode_libdir_flag_spec='-R$libdir'
10173      hardcode_direct=yes
10174      hardcode_shlibpath_var=no
10175      ;;
10176
10177    hpux9*)
10178      if test "$GCC" = yes; then
10179        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'
10180      else
10181        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'
10182      fi
10183      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10184      hardcode_libdir_separator=:
10185      hardcode_direct=yes
10186
10187      # hardcode_minus_L: Not really in the search PATH,
10188      # but as the default location of the library.
10189      hardcode_minus_L=yes
10190      export_dynamic_flag_spec='${wl}-E'
10191      ;;
10192
10193    hpux10*)
10194      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10195        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10196      else
10197        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10198      fi
10199      if test "$with_gnu_ld" = no; then
10200        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10201        hardcode_libdir_separator=:
10202
10203        hardcode_direct=yes
10204        export_dynamic_flag_spec='${wl}-E'
10205
10206        # hardcode_minus_L: Not really in the search PATH,
10207        # but as the default location of the library.
10208        hardcode_minus_L=yes
10209      fi
10210      ;;
10211
10212    hpux11*)
10213      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10214        case $host_cpu in
10215        hppa*64*)
10216          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10217          ;;
10218        ia64*)
10219          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10220          ;;
10221        *)
10222          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10223          ;;
10224        esac
10225      else
10226        case $host_cpu in
10227        hppa*64*)
10228          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10229          ;;
10230        ia64*)
10231          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10232          ;;
10233        *)
10234          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        esac
10237      fi
10238      if test "$with_gnu_ld" = no; then
10239        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10240        hardcode_libdir_separator=:
10241
10242        case $host_cpu in
10243        hppa*64*|ia64*)
10244          hardcode_libdir_flag_spec_ld='+b $libdir'
10245          hardcode_direct=no
10246          hardcode_shlibpath_var=no
10247          ;;
10248        *)
10249          hardcode_direct=yes
10250          export_dynamic_flag_spec='${wl}-E'
10251
10252          # hardcode_minus_L: Not really in the search PATH,
10253          # but as the default location of the library.
10254          hardcode_minus_L=yes
10255          ;;
10256        esac
10257      fi
10258      ;;
10259
10260    irix5* | irix6* | nonstopux*)
10261      if test "$GCC" = yes; then
10262        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'
10263      else
10264        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'
10265        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10266      fi
10267      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268      hardcode_libdir_separator=:
10269      link_all_deplibs=yes
10270      ;;
10271
10272    netbsd*)
10273      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10274        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10275      else
10276        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10277      fi
10278      hardcode_libdir_flag_spec='-R$libdir'
10279      hardcode_direct=yes
10280      hardcode_shlibpath_var=no
10281      ;;
10282
10283    newsos6)
10284      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285      hardcode_direct=yes
10286      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10287      hardcode_libdir_separator=:
10288      hardcode_shlibpath_var=no
10289      ;;
10290
10291    openbsd*)
10292      hardcode_direct=yes
10293      hardcode_shlibpath_var=no
10294      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10295        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10296        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10297        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10298        export_dynamic_flag_spec='${wl}-E'
10299      else
10300       case $host_os in
10301         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10302           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10303           hardcode_libdir_flag_spec='-R$libdir'
10304           ;;
10305         *)
10306           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10307           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10308           ;;
10309       esac
10310      fi
10311      ;;
10312
10313    os2*)
10314      hardcode_libdir_flag_spec='-L$libdir'
10315      hardcode_minus_L=yes
10316      allow_undefined_flag=unsupported
10317      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'
10318      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10319      ;;
10320
10321    osf3*)
10322      if test "$GCC" = yes; then
10323        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10324        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'
10325      else
10326        allow_undefined_flag=' -expect_unresolved \*'
10327        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'
10328      fi
10329      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10330      hardcode_libdir_separator=:
10331      ;;
10332
10333    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10334      if test "$GCC" = yes; then
10335        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10336        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'
10337        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10338      else
10339        allow_undefined_flag=' -expect_unresolved \*'
10340        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'
10341        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10342        $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'
10343
10344        # Both c and cxx compiler support -rpath directly
10345        hardcode_libdir_flag_spec='-rpath $libdir'
10346      fi
10347      hardcode_libdir_separator=:
10348      ;;
10349
10350    solaris*)
10351      no_undefined_flag=' -z text'
10352      if test "$GCC" = yes; then
10353        wlarc='${wl}'
10354        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10355        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10356          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10357      else
10358        wlarc=''
10359        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10361        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10362      fi
10363      hardcode_libdir_flag_spec='-R$libdir'
10364      hardcode_shlibpath_var=no
10365      case $host_os in
10366      solaris2.[0-5] | solaris2.[0-5].*) ;;
10367      *)
10368        # The compiler driver will combine linker options so we
10369        # cannot just pass the convience library names through
10370        # without $wl, iff we do not link with $LD.
10371        # Luckily, gcc supports the same syntax we need for Sun Studio.
10372        # Supported since Solaris 2.6 (maybe 2.5.1?)
10373        case $wlarc in
10374        '')
10375          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10376        *)
10377          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' ;;
10378        esac ;;
10379      esac
10380      link_all_deplibs=yes
10381      ;;
10382
10383    sunos4*)
10384      if test "x$host_vendor" = xsequent; then
10385        # Use $CC to link under sequent, because it throws in some extra .o
10386        # files that make .init and .fini sections work.
10387        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10388      else
10389        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10390      fi
10391      hardcode_libdir_flag_spec='-L$libdir'
10392      hardcode_direct=yes
10393      hardcode_minus_L=yes
10394      hardcode_shlibpath_var=no
10395      ;;
10396
10397    sysv4)
10398      case $host_vendor in
10399        sni)
10400          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401          hardcode_direct=yes # is this really true???
10402        ;;
10403        siemens)
10404          ## LD is ld it makes a PLAMLIB
10405          ## CC just makes a GrossModule.
10406          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10407          reload_cmds='$CC -r -o $output$reload_objs'
10408          hardcode_direct=no
10409        ;;
10410        motorola)
10411          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10413        ;;
10414      esac
10415      runpath_var='LD_RUN_PATH'
10416      hardcode_shlibpath_var=no
10417      ;;
10418
10419    sysv4.3*)
10420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421      hardcode_shlibpath_var=no
10422      export_dynamic_flag_spec='-Bexport'
10423      ;;
10424
10425    sysv4*MP*)
10426      if test -d /usr/nec; then
10427        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428        hardcode_shlibpath_var=no
10429        runpath_var=LD_RUN_PATH
10430        hardcode_runpath_var=yes
10431        ld_shlibs=yes
10432      fi
10433      ;;
10434
10435    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10436      no_undefined_flag='${wl}-z,text'
10437      archive_cmds_need_lc=no
10438      hardcode_shlibpath_var=no
10439      runpath_var='LD_RUN_PATH'
10440
10441      if test "$GCC" = yes; then
10442        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444      else
10445        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447      fi
10448      ;;
10449
10450    sysv5* | sco3.2v5* | sco5v6*)
10451      # Note: We can NOT use -z defs as we might desire, because we do not
10452      # link with -lc, and that would cause any symbols used from libc to
10453      # always be unresolved, which means just about no library would
10454      # ever link correctly.  If we're not using GNU ld we use -z text
10455      # though, which does catch some bad symbols but isn't as heavy-handed
10456      # as -z defs.
10457      no_undefined_flag='${wl}-z,text'
10458      allow_undefined_flag='${wl}-z,nodefs'
10459      archive_cmds_need_lc=no
10460      hardcode_shlibpath_var=no
10461      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10462      hardcode_libdir_separator=':'
10463      link_all_deplibs=yes
10464      export_dynamic_flag_spec='${wl}-Bexport'
10465      runpath_var='LD_RUN_PATH'
10466
10467      if test "$GCC" = yes; then
10468        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10470      else
10471        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10472        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473      fi
10474      ;;
10475
10476    uts4*)
10477      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478      hardcode_libdir_flag_spec='-L$libdir'
10479      hardcode_shlibpath_var=no
10480      ;;
10481
10482    *)
10483      ld_shlibs=no
10484      ;;
10485    esac
10486  fi
10487
10488echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10489echo "${ECHO_T}$ld_shlibs" >&6
10490test "$ld_shlibs" = no && can_build_shared=no
10491
10492#
10493# Do we need to explicitly link libc?
10494#
10495case "x$archive_cmds_need_lc" in
10496x|xyes)
10497  # Assume -lc should be added
10498  archive_cmds_need_lc=yes
10499
10500  if test "$enable_shared" = yes && test "$GCC" = yes; then
10501    case $archive_cmds in
10502    *'~'*)
10503      # FIXME: we may have to deal with multi-command sequences.
10504      ;;
10505    '$CC '*)
10506      # Test whether the compiler implicitly links with -lc since on some
10507      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10508      # to ld, don't add -lc before -lgcc.
10509      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10511      $rm conftest*
10512      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10513
10514      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515  (eval $ac_compile) 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); } 2>conftest.err; then
10519        soname=conftest
10520        lib=conftest
10521        libobjs=conftest.$ac_objext
10522        deplibs=
10523        wl=$lt_prog_compiler_wl
10524        pic_flag=$lt_prog_compiler_pic
10525        compiler_flags=-v
10526        linker_flags=-v
10527        verstring=
10528        output_objdir=.
10529        libname=conftest
10530        lt_save_allow_undefined_flag=$allow_undefined_flag
10531        allow_undefined_flag=
10532        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10533  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10534  ac_status=$?
10535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); }
10537        then
10538          archive_cmds_need_lc=no
10539        else
10540          archive_cmds_need_lc=yes
10541        fi
10542        allow_undefined_flag=$lt_save_allow_undefined_flag
10543      else
10544        cat conftest.err 1>&5
10545      fi
10546      $rm conftest*
10547      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10548echo "${ECHO_T}$archive_cmds_need_lc" >&6
10549      ;;
10550    esac
10551  fi
10552  ;;
10553esac
10554
10555echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10556echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10557library_names_spec=
10558libname_spec='lib$name'
10559soname_spec=
10560shrext_cmds=".so"
10561postinstall_cmds=
10562postuninstall_cmds=
10563finish_cmds=
10564finish_eval=
10565shlibpath_var=
10566shlibpath_overrides_runpath=unknown
10567version_type=none
10568dynamic_linker="$host_os ld.so"
10569sys_lib_dlsearch_path_spec="/lib /usr/lib"
10570if test "$GCC" = yes; then
10571  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10572  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10573    # if the path contains ";" then we assume it to be the separator
10574    # otherwise default to the standard path separator (i.e. ":") - it is
10575    # assumed that no part of a normal pathname contains ";" but that should
10576    # okay in the real world where ";" in dirpaths is itself problematic.
10577    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10578  else
10579    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10580  fi
10581else
10582  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10583fi
10584need_lib_prefix=unknown
10585hardcode_into_libs=no
10586
10587# when you set need_version to no, make sure it does not cause -set_version
10588# flags to be left without arguments
10589need_version=unknown
10590
10591case $host_os in
10592aix3*)
10593  version_type=linux
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10595  shlibpath_var=LIBPATH
10596
10597  # AIX 3 has no versioning support, so we append a major version to the name.
10598  soname_spec='${libname}${release}${shared_ext}$major'
10599  ;;
10600
10601aix4* | aix5*)
10602  version_type=linux
10603  need_lib_prefix=no
10604  need_version=no
10605  hardcode_into_libs=yes
10606  if test "$host_cpu" = ia64; then
10607    # AIX 5 supports IA64
10608    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10609    shlibpath_var=LD_LIBRARY_PATH
10610  else
10611    # With GCC up to 2.95.x, collect2 would create an import file
10612    # for dependence libraries.  The import file would start with
10613    # the line `#! .'.  This would cause the generated library to
10614    # depend on `.', always an invalid library.  This was fixed in
10615    # development snapshots of GCC prior to 3.0.
10616    case $host_os in
10617      aix4 | aix4.[01] | aix4.[01].*)
10618      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10619           echo ' yes '
10620           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10621        :
10622      else
10623        can_build_shared=no
10624      fi
10625      ;;
10626    esac
10627    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10628    # soname into executable. Probably we can add versioning support to
10629    # collect2, so additional links can be useful in future.
10630    if test "$aix_use_runtimelinking" = yes; then
10631      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10632      # instead of lib<name>.a to let people know that these are not
10633      # typical AIX shared libraries.
10634      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635    else
10636      # We preserve .a as extension for shared libraries through AIX4.2
10637      # and later when we are not doing run time linking.
10638      library_names_spec='${libname}${release}.a $libname.a'
10639      soname_spec='${libname}${release}${shared_ext}$major'
10640    fi
10641    shlibpath_var=LIBPATH
10642  fi
10643  ;;
10644
10645amigaos*)
10646  library_names_spec='$libname.ixlibrary $libname.a'
10647  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10648  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10649  ;;
10650
10651beos*)
10652  library_names_spec='${libname}${shared_ext}'
10653  dynamic_linker="$host_os ld.so"
10654  shlibpath_var=LIBRARY_PATH
10655  ;;
10656
10657bsdi[45]*)
10658  version_type=linux
10659  need_version=no
10660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661  soname_spec='${libname}${release}${shared_ext}$major'
10662  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10663  shlibpath_var=LD_LIBRARY_PATH
10664  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10665  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10666  # the default ld.so.conf also contains /usr/contrib/lib and
10667  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10668  # libtool to hard-code these into programs
10669  ;;
10670
10671cygwin* | mingw* | pw32*)
10672  version_type=windows
10673  shrext_cmds=".dll"
10674  need_version=no
10675  need_lib_prefix=no
10676
10677  case $GCC,$host_os in
10678  yes,cygwin* | yes,mingw* | yes,pw32*)
10679    library_names_spec='$libname.dll.a'
10680    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10681    postinstall_cmds='base_file=`basename \${file}`~
10682      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10683      dldir=$destdir/`dirname \$dlpath`~
10684      test -d \$dldir || mkdir -p \$dldir~
10685      $install_prog $dir/$dlname \$dldir/$dlname~
10686      chmod a+x \$dldir/$dlname'
10687    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10688      dlpath=$dir/\$dldll~
10689       $rm \$dlpath'
10690    shlibpath_overrides_runpath=yes
10691
10692    case $host_os in
10693    cygwin*)
10694      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10695      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10696      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10697      ;;
10698    mingw*)
10699      # MinGW DLLs use traditional 'lib' prefix
10700      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10701      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10702      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10703        # It is most probably a Windows format PATH printed by
10704        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10705        # path with ; separators, and with drive letters. We can handle the
10706        # drive letters (cygwin fileutils understands them), so leave them,
10707        # especially as we might pass files found there to a mingw objdump,
10708        # which wouldn't understand a cygwinified path. Ahh.
10709        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10710      else
10711        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10712      fi
10713      ;;
10714    pw32*)
10715      # pw32 DLLs use 'pw' prefix rather than 'lib'
10716      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717      ;;
10718    esac
10719    ;;
10720
10721  *)
10722    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10723    ;;
10724  esac
10725  dynamic_linker='Win32 ld.exe'
10726  # FIXME: first we should search . and the directory the executable is in
10727  shlibpath_var=PATH
10728  ;;
10729
10730darwin* | rhapsody*)
10731  dynamic_linker="$host_os dyld"
10732  version_type=darwin
10733  need_lib_prefix=no
10734  need_version=no
10735  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10736  soname_spec='${libname}${release}${major}$shared_ext'
10737  shlibpath_overrides_runpath=yes
10738  shlibpath_var=DYLD_LIBRARY_PATH
10739  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10740  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10741  if test "$GCC" = yes; then
10742    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10743  else
10744    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10745  fi
10746  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10747  ;;
10748
10749dgux*)
10750  version_type=linux
10751  need_lib_prefix=no
10752  need_version=no
10753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10754  soname_spec='${libname}${release}${shared_ext}$major'
10755  shlibpath_var=LD_LIBRARY_PATH
10756  ;;
10757
10758freebsd1*)
10759  dynamic_linker=no
10760  ;;
10761
10762kfreebsd*-gnu)
10763  version_type=linux
10764  need_lib_prefix=no
10765  need_version=no
10766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767  soname_spec='${libname}${release}${shared_ext}$major'
10768  shlibpath_var=LD_LIBRARY_PATH
10769  shlibpath_overrides_runpath=no
10770  hardcode_into_libs=yes
10771  dynamic_linker='GNU ld.so'
10772  ;;
10773
10774freebsd* | dragonfly*)
10775  # DragonFly does not have aout.  When/if they implement a new
10776  # versioning mechanism, adjust this.
10777  if test -x /usr/bin/objformat; then
10778    objformat=`/usr/bin/objformat`
10779  else
10780    case $host_os in
10781    freebsd[123]*) objformat=aout ;;
10782    *) objformat=elf ;;
10783    esac
10784  fi
10785  version_type=freebsd-$objformat
10786  case $version_type in