source: ThirdParty/Blas/trunk/configure @ 1548

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

copy over pkg-config setup and making thirdparty projects installable projects from split branch

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