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

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

change externals to use split branches; rerun autotools after changing to use BuildTools?/branches/split

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