source: ThirdParty/Blas/branches/split/configure @ 1539

Last change on this file since 1539 was 1539, checked in by stefan, 11 years ago

rerun autotools; generate addlibs files from .pc files; remove empty README's

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