source: ThirdParty/Lapack/trunk/configure @ 1885

Last change on this file since 1885 was 1885, checked in by stefan, 9 years ago

rerun autotools

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