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

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

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

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