source: ThirdParty/Blas/trunk/configure @ 2053

Last change on this file since 2053 was 2053, checked in by stefan, 10 years ago

add URL into .pc field; rerun autotools

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