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

Last change on this file since 3326 was 3326, checked in by stefan, 7 years ago

temporarily committing release candidate

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