source: ThirdParty/Lapack/trunk/configure @ 1723

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

set version number to 'trunk'

  • Property svn:executable set to *
File size: 745.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyLapack trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED LAPACK_PCLIBS DLAMCH_FFLAGS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-lapack compile this project (Lapack) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-pkg-config     use pkg-config if available (default is yes)
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1104  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1105  --with-lapack-checklevel
1106                          specify the sanity check level for project Lapack
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  ADD_FFLAGS  Additional Fortran compiler options
1128  DBG_FFLAGS  Debug Fortran compiler options
1129  OPT_FFLAGS  Optimize Fortran compiler options
1130  F77         Fortran 77 compiler command
1131  FFLAGS      Fortran 77 compiler flags
1132  MPIF77      Fortran MPI Compiler
1133  PKG_CONFIG  path to pkg-config utility
1134  DLAMCH_FFLAGS
1135              Fortran compiler options for DLAMCH.F
1136  CPP         C preprocessor
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  CXXCPP      C++ preprocessor
1140
1141Use these variables to override the choices made by `configure' or to help
1142it to find libraries and programs with nonstandard names/locations.
1143
1144Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1145_ACEOF
1146fi
1147
1148if test "$ac_init_help" = "recursive"; then
1149  # If there are subdirs, report their specific --help.
1150  ac_popdir=`pwd`
1151  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1152    test -d $ac_dir || continue
1153    ac_builddir=.
1154
1155if test "$ac_dir" != .; then
1156  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1157  # A "../" for each directory in $ac_dir_suffix.
1158  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1159else
1160  ac_dir_suffix= ac_top_builddir=
1161fi
1162
1163case $srcdir in
1164  .)  # No --srcdir option.  We are building in place.
1165    ac_srcdir=.
1166    if test -z "$ac_top_builddir"; then
1167       ac_top_srcdir=.
1168    else
1169       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1170    fi ;;
1171  [\\/]* | ?:[\\/]* )  # Absolute path.
1172    ac_srcdir=$srcdir$ac_dir_suffix;
1173    ac_top_srcdir=$srcdir ;;
1174  *) # Relative path.
1175    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1176    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1177esac
1178
1179# Do not use `cd foo && pwd` to compute absolute paths, because
1180# the directories may not exist.
1181case `pwd` in
1182.) ac_abs_builddir="$ac_dir";;
1183*)
1184  case "$ac_dir" in
1185  .) ac_abs_builddir=`pwd`;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1187  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_builddir=${ac_top_builddir}.;;
1192*)
1193  case ${ac_top_builddir}. in
1194  .) ac_abs_top_builddir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1196  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1197  esac;;
1198esac
1199case $ac_abs_builddir in
1200.) ac_abs_srcdir=$ac_srcdir;;
1201*)
1202  case $ac_srcdir in
1203  .) ac_abs_srcdir=$ac_abs_builddir;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1205  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1206  esac;;
1207esac
1208case $ac_abs_builddir in
1209.) ac_abs_top_srcdir=$ac_top_srcdir;;
1210*)
1211  case $ac_top_srcdir in
1212  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1213  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1214  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1215  esac;;
1216esac
1217
1218    cd $ac_dir
1219    # Check for guested configure; otherwise get Cygnus style configure.
1220    if test -f $ac_srcdir/configure.gnu; then
1221      echo
1222      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1223    elif test -f $ac_srcdir/configure; then
1224      echo
1225      $SHELL $ac_srcdir/configure  --help=recursive
1226    elif test -f $ac_srcdir/configure.ac ||
1227           test -f $ac_srcdir/configure.in; then
1228      echo
1229      $ac_configure --help
1230    else
1231      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1232    fi
1233    cd $ac_popdir
1234  done
1235fi
1236
1237test -n "$ac_init_help" && exit 0
1238if $ac_init_version; then
1239  cat <<\_ACEOF
1240ThirdPartyLapack configure trunk
1241generated by GNU Autoconf 2.59
1242
1243Copyright (C) 2003 Free Software Foundation, Inc.
1244This configure script is free software; the Free Software Foundation
1245gives unlimited permission to copy, distribute and modify it.
1246
1247
1248Copyright 2006 International Business Machines and others.
1249All Rights Reserved.
1250This file is part of the open source package Coin which is distributed
1251under the Common Public License.
1252_ACEOF
1253  exit 0
1254fi
1255exec 5>config.log
1256cat >&5 <<_ACEOF
1257This file contains any messages produced by compilers while
1258running configure, to aid debugging if configure makes a mistake.
1259
1260It was created by ThirdPartyLapack $as_me trunk, which was
1261generated by GNU Autoconf 2.59.  Invocation command line was
1262
1263  $ $0 $@
1264
1265_ACEOF
1266{
1267cat <<_ASUNAME
1268## --------- ##
1269## Platform. ##
1270## --------- ##
1271
1272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1273uname -m = `(uname -m) 2>/dev/null || echo unknown`
1274uname -r = `(uname -r) 2>/dev/null || echo unknown`
1275uname -s = `(uname -s) 2>/dev/null || echo unknown`
1276uname -v = `(uname -v) 2>/dev/null || echo unknown`
1277
1278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1279/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1280
1281/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1282/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1284hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1285/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1286/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1287/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1288
1289_ASUNAME
1290
1291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1292for as_dir in $PATH
1293do
1294  IFS=$as_save_IFS
1295  test -z "$as_dir" && as_dir=.
1296  echo "PATH: $as_dir"
1297done
1298
1299} >&5
1300
1301cat >&5 <<_ACEOF
1302
1303
1304## ----------- ##
1305## Core tests. ##
1306## ----------- ##
1307
1308_ACEOF
1309
1310
1311# Keep a trace of the command line.
1312# Strip out --no-create and --no-recursion so they do not pile up.
1313# Strip out --silent because we don't want to record it for future runs.
1314# Also quote any args containing shell meta-characters.
1315# Make two passes to allow for proper duplicate-argument suppression.
1316ac_configure_args=
1317ac_configure_args0=
1318ac_configure_args1=
1319ac_sep=
1320ac_must_keep_next=false
1321for ac_pass in 1 2
1322do
1323  for ac_arg
1324  do
1325    case $ac_arg in
1326    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1327    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1328    | -silent | --silent | --silen | --sile | --sil)
1329      continue ;;
1330    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1332    esac
1333    case $ac_pass in
1334    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1335    2)
1336      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1337      if test $ac_must_keep_next = true; then
1338        ac_must_keep_next=false # Got value, back to normal.
1339      else
1340        case $ac_arg in
1341          *=* | --config-cache | -C | -disable-* | --disable-* \
1342          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1343          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1344          | -with-* | --with-* | -without-* | --without-* | --x)
1345            case "$ac_configure_args0 " in
1346              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1347            esac
1348            ;;
1349          -* ) ac_must_keep_next=true ;;
1350        esac
1351      fi
1352      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1353      # Get rid of the leading space.
1354      ac_sep=" "
1355      ;;
1356    esac
1357  done
1358done
1359$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1360$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1361
1362# When interrupted or exit'd, cleanup temporary files, and complete
1363# config.log.  We remove comments because anyway the quotes in there
1364# would cause problems or look ugly.
1365# WARNING: Be sure not to use single quotes in there, as some shells,
1366# such as our DU 5.0 friend, will then `close' the trap.
1367trap 'exit_status=$?
1368  # Save into config.log some information that might help in debugging.
1369  {
1370    echo
1371
1372    cat <<\_ASBOX
1373## ---------------- ##
1374## Cache variables. ##
1375## ---------------- ##
1376_ASBOX
1377    echo
1378    # The following way of writing the cache mishandles newlines in values,
1379{
1380  (set) 2>&1 |
1381    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1382    *ac_space=\ *)
1383      sed -n \
1384        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1385          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1386      ;;
1387    *)
1388      sed -n \
1389        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1390      ;;
1391    esac;
1392}
1393    echo
1394
1395    cat <<\_ASBOX
1396## ----------------- ##
1397## Output variables. ##
1398## ----------------- ##
1399_ASBOX
1400    echo
1401    for ac_var in $ac_subst_vars
1402    do
1403      eval ac_val=$`echo $ac_var`
1404      echo "$ac_var='"'"'$ac_val'"'"'"
1405    done | sort
1406    echo
1407
1408    if test -n "$ac_subst_files"; then
1409      cat <<\_ASBOX
1410## ------------- ##
1411## Output files. ##
1412## ------------- ##
1413_ASBOX
1414      echo
1415      for ac_var in $ac_subst_files
1416      do
1417        eval ac_val=$`echo $ac_var`
1418        echo "$ac_var='"'"'$ac_val'"'"'"
1419      done | sort
1420      echo
1421    fi
1422
1423    if test -s confdefs.h; then
1424      cat <<\_ASBOX
1425## ----------- ##
1426## confdefs.h. ##
1427## ----------- ##
1428_ASBOX
1429      echo
1430      sed "/^$/d" confdefs.h | sort
1431      echo
1432    fi
1433    test "$ac_signal" != 0 &&
1434      echo "$as_me: caught signal $ac_signal"
1435    echo "$as_me: exit $exit_status"
1436  } >&5
1437  rm -f core *.core &&
1438  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1439    exit $exit_status
1440     ' 0
1441for ac_signal in 1 2 13 15; do
1442  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1443done
1444ac_signal=0
1445
1446# confdefs.h avoids OS command line length limits that DEFS can exceed.
1447rm -rf conftest* confdefs.h
1448# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1449echo >confdefs.h
1450
1451# Predefined preprocessor variables.
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_NAME "$PACKAGE_NAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_VERSION "$PACKAGE_VERSION"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_STRING "$PACKAGE_STRING"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1475_ACEOF
1476
1477
1478# Let the site file select an alternate cache file if it wants to.
1479# Prefer explicitly selected file to automatically selected ones.
1480if test -z "$CONFIG_SITE"; then
1481  if test "x$prefix" != xNONE; then
1482    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1483  else
1484    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1485  fi
1486fi
1487for ac_site_file in $CONFIG_SITE; do
1488  if test -r "$ac_site_file"; then
1489    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1490echo "$as_me: loading site script $ac_site_file" >&6;}
1491    sed 's/^/| /' "$ac_site_file" >&5
1492    . "$ac_site_file"
1493  fi
1494done
1495
1496if test -r "$cache_file"; then
1497  # Some versions of bash will fail to source /dev/null (special
1498  # files actually), so we avoid doing that.
1499  if test -f "$cache_file"; then
1500    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1501echo "$as_me: loading cache $cache_file" >&6;}
1502    case $cache_file in
1503      [\\/]* | ?:[\\/]* ) . $cache_file;;
1504      *)                      . ./$cache_file;;
1505    esac
1506  fi
1507else
1508  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1509echo "$as_me: creating cache $cache_file" >&6;}
1510  >$cache_file
1511fi
1512
1513# Check that the precious variables saved in the cache have kept the same
1514# value.
1515ac_cache_corrupted=false
1516for ac_var in `(set) 2>&1 |
1517               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1518  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1519  eval ac_new_set=\$ac_env_${ac_var}_set
1520  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1521  eval ac_new_val="\$ac_env_${ac_var}_value"
1522  case $ac_old_set,$ac_new_set in
1523    set,)
1524      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1525echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1526      ac_cache_corrupted=: ;;
1527    ,set)
1528      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1529echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1530      ac_cache_corrupted=: ;;
1531    ,);;
1532    *)
1533      if test "x$ac_old_val" != "x$ac_new_val"; then
1534        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1535echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1536        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1537echo "$as_me:   former value:  $ac_old_val" >&2;}
1538        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1539echo "$as_me:   current value: $ac_new_val" >&2;}
1540        ac_cache_corrupted=:
1541      fi;;
1542  esac
1543  # Pass precious variables to config.status.
1544  if test "$ac_new_set" = set; then
1545    case $ac_new_val in
1546    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1547      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1548    *) ac_arg=$ac_var=$ac_new_val ;;
1549    esac
1550    case " $ac_configure_args " in
1551      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1552      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1553    esac
1554  fi
1555done
1556if $ac_cache_corrupted; then
1557  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1558echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1559  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1560echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1561   { (exit 1); exit 1; }; }
1562fi
1563
1564ac_ext=c
1565ac_cpp='$CPP $CPPFLAGS'
1566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1568ac_compiler_gnu=$ac_cv_c_compiler_gnu
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599# List one file in the package so that the configure script can test
1600# whether the package is actually there
1601
1602
1603# Where should everything be installed by default?  Here, we want it
1604# to be installed directly in 'bin', 'lib', 'include' subdirectories
1605# of the directory where configure is run.  The default would be
1606# /usr/local.
1607
1608
1609# Initialize the ADDLIBS variable
1610ADDLIBS="-lm $LIBS"
1611
1612
1613# Initialize the PCADDLIBS variable.
1614# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1615# In certain cases, it may contain more flags than the ADDLIBS variable.
1616PCADDLIBS=""
1617
1618
1619# As backup, we make sure we don't loose an FLIBS if it has been set
1620# by the user
1621save_FLIBS="$FLIBS"
1622
1623# Initialize the FADDLIBS variable (which is to be used with a fortran
1624# compiler and will not include FLIBS)
1625FADDLIBS="$LIBS"
1626
1627
1628# A useful makefile conditional that is always false
1629
1630
1631if false; then
1632  ALWAYS_FALSE_TRUE=
1633  ALWAYS_FALSE_FALSE='#'
1634else
1635  ALWAYS_FALSE_TRUE='#'
1636  ALWAYS_FALSE_FALSE=
1637fi
1638
1639
1640# We set the following variable so that we know later in AC_COIN_FINALIZE
1641# that we are in a project main directory
1642coin_projectdir=yes
1643
1644# Set the project's version number
1645if test "xLapack" != x; then
1646
1647cat >>confdefs.h <<_ACEOF
1648#define LAPACK_VERSION "$PACKAGE_VERSION"
1649_ACEOF
1650
1651fi
1652
1653# Set the project's SVN revision number. The complicated sed expression
1654# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1655# as a single number.
1656# Extract the first word of "svnversion", so it can be a program name with args.
1657set dummy svnversion; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_have_svnversion+set}" = set; then
1661  echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663  if test -n "$have_svnversion"; then
1664  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669  IFS=$as_save_IFS
1670  test -z "$as_dir" && as_dir=.
1671  for ac_exec_ext in '' $ac_executable_extensions; do
1672  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673    ac_cv_prog_have_svnversion="yes"
1674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675    break 2
1676  fi
1677done
1678done
1679
1680  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1681fi
1682fi
1683have_svnversion=$ac_cv_prog_have_svnversion
1684if test -n "$have_svnversion"; then
1685  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1686echo "${ECHO_T}$have_svnversion" >&6
1687else
1688  echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692if test "x$have_svnversion" = xyes && test "xLapack" != x; then
1693
1694  svn_rev_tmp=`cd $srcdir/$coin_has_lapack ; svnversion`
1695  LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1696  if test $LAPACK_SVN_REV != exported; then
1697
1698cat >>confdefs.h <<_ACEOF
1699#define LAPACK_SVN_REV $LAPACK_SVN_REV
1700_ACEOF
1701
1702  fi
1703fi
1704
1705# Capture libtool library version, if given.
1706
1707
1708
1709#############################################################################
1710#                         Standard build tool stuff                         #
1711#############################################################################
1712
1713# Get the system type
1714ac_aux_dir=
1715for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1716  if test -f $ac_dir/install-sh; then
1717    ac_aux_dir=$ac_dir
1718    ac_install_sh="$ac_aux_dir/install-sh -c"
1719    break
1720  elif test -f $ac_dir/install.sh; then
1721    ac_aux_dir=$ac_dir
1722    ac_install_sh="$ac_aux_dir/install.sh -c"
1723    break
1724  elif test -f $ac_dir/shtool; then
1725    ac_aux_dir=$ac_dir
1726    ac_install_sh="$ac_aux_dir/shtool install -c"
1727    break
1728  fi
1729done
1730if test -z "$ac_aux_dir"; then
1731  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1732echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1733   { (exit 1); exit 1; }; }
1734fi
1735ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1736ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1737ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1738
1739# Make sure we can run config.sub.
1740$ac_config_sub sun4 >/dev/null 2>&1 ||
1741  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743   { (exit 1); exit 1; }; }
1744
1745echo "$as_me:$LINENO: checking build system type" >&5
1746echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747if test "${ac_cv_build+set}" = set; then
1748  echo $ECHO_N "(cached) $ECHO_C" >&6
1749else
1750  ac_cv_build_alias=$build_alias
1751test -z "$ac_cv_build_alias" &&
1752  ac_cv_build_alias=`$ac_config_guess`
1753test -z "$ac_cv_build_alias" &&
1754  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756   { (exit 1); exit 1; }; }
1757ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760   { (exit 1); exit 1; }; }
1761
1762fi
1763echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764echo "${ECHO_T}$ac_cv_build" >&6
1765build=$ac_cv_build
1766build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771
1772#turn off warnings and pedantic mode since they could make trouble on some platforms,
1773#and we couldn't fix them anyway
1774coin_skip_warn_fflags=yes
1775
1776# Check if user wants to produce debugging code
1777
1778echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1779echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1780
1781# Check whether --enable-debug or --disable-debug was given.
1782if test "${enable_debug+set}" = set; then
1783  enableval="$enable_debug"
1784  case "${enableval}" in
1785   yes) coin_debug_compile=true
1786        if test "${enable_shared+set}" = set; then :; else
1787          enable_shared=no
1788        fi
1789        ;;
1790   no)  coin_debug_compile=false
1791        ;;
1792   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1793echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1794   { (exit 1); exit 1; }; }
1795        ;;
1796esac
1797else
1798  coin_debug_compile=false
1799fi;
1800
1801# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1802if test "${enable_debug_lapack+set}" = set; then
1803  enableval="$enable_debug_lapack"
1804  case "${enableval}" in
1805    yes) coin_debug_compile=true
1806         enable_shared=no
1807         ;;
1808    no)  coin_debug_compile=false
1809         ;;
1810    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1811echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1812   { (exit 1); exit 1; }; }
1813         ;;
1814 esac
1815else
1816  :
1817fi;
1818
1819 # m4_ifvaln([Lapack],
1820
1821if test $coin_debug_compile = true; then
1822  echo "$as_me:$LINENO: result: yes" >&5
1823echo "${ECHO_T}yes" >&6
1824else
1825  echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6
1827fi
1828
1829
1830# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1831if test "${with_lapack_verbosity+set}" = set; then
1832  withval="$with_lapack_verbosity"
1833  if test "$withval" = yes; then
1834                withval=1
1835              fi
1836              coin_lapack_verbosity=$withval
1837else
1838  coin_lapack_verbosity=0
1839fi;
1840
1841cat >>confdefs.h <<_ACEOF
1842#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1843_ACEOF
1844
1845
1846
1847# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1848if test "${with_lapack_checklevel+set}" = set; then
1849  withval="$with_lapack_checklevel"
1850  if test "$withval" = yes; then
1851                withval=1
1852              fi
1853              coin_lapack_checklevel=$withval
1854else
1855  coin_lapack_checklevel=0
1856fi;
1857
1858cat >>confdefs.h <<_ACEOF
1859#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1860_ACEOF
1861
1862
1863# We use the following variable to have a string with the upper case
1864# version of the project name
1865COIN_PRJCT=LAPACK
1866
1867
1868 # m4_ifvaln([Lapack],
1869
1870
1871
1872# Get the name of the Fortran compiler and appropriate compiler options
1873case $build in
1874  *-mingw*)
1875    if test "${LD+set}" = set; then :; else
1876      LD=link
1877    fi
1878    ;;
1879 esac
1880 case $enable_doscompile in
1881   msvc)
1882     if test "x${LD+set}" = xset; then :; else
1883       LD=link
1884     fi
1885     ;;
1886 esac
1887
1888
1889 # Check whether --enable-doscompile or --disable-doscompile was given.
1890if test "${enable_doscompile+set}" = set; then
1891  enableval="$enable_doscompile"
1892  if test "$enable_doscompile" != no; then
1893     case $build in
1894       *-cygwin* | *-mingw*) ;;
1895       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1896echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1897   { (exit 1); exit 1; }; } ;;
1898     esac
1899   fi
1900else
1901  enable_doscompile=no
1902fi;
1903 case "$enable_doscompile" in
1904   mingw)
1905     case $build in
1906       *-mingw*) enable_doscompile=no ;;
1907     esac
1908     ;;
1909   msvc|no) ;;
1910   yes) enable_doscompile=mingw ;;
1911   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1912                    Try configure --help=recursive." >&5
1913echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1914                    Try configure --help=recursive." >&2;}
1915   { (exit 1); exit 1; }; }
1916      ;;
1917  esac
1918  if test "$enable_doscompile" != no ; then
1919    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1920echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1921  fi
1922
1923
1924
1925
1926ac_ext=c
1927ac_cpp='$CPP $CPPFLAGS'
1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930ac_compiler_gnu=$ac_cv_c_compiler_gnu
1931
1932
1933# For consistency, we set the C compiler to the same value of the C++
1934# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1935if test x"$CXX" != x; then
1936  case "$CXX" in
1937    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1938      if test x"$CC" = x; then
1939        CC="$CXX"
1940        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1941echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1942      fi
1943      ;;
1944  esac
1945fi
1946
1947
1948
1949
1950
1951
1952coin_has_cc=yes
1953
1954save_cflags="$CFLAGS"
1955
1956# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1957# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1958# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1959# compiler. In this case, put cc after gcc.
1960
1961case $build in
1962  *-cygwin* | *-mingw*)
1963             if test "$enable_doscompile" = msvc ; then
1964               comps="icl cl"
1965             else
1966               comps="gcc cl"
1967             fi ;;
1968  *-*-solaris*)
1969             # Extract the first word of "cc", so it can be a program name with args.
1970set dummy cc; ac_word=$2
1971echo "$as_me:$LINENO: checking for $ac_word" >&5
1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  if test -n "$sol_cc_compiler"; then
1977  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1978else
1979  ac_prog_rejected=no
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  test -z "$as_dir" && as_dir=.
1985  for ac_exec_ext in '' $ac_executable_extensions; do
1986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1988       ac_prog_rejected=yes
1989       continue
1990     fi
1991    ac_cv_prog_sol_cc_compiler="cc"
1992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993    break 2
1994  fi
1995done
1996done
1997
1998if test $ac_prog_rejected = yes; then
1999  # We found a bogon in the path, so make sure we never use it.
2000  set dummy $ac_cv_prog_sol_cc_compiler
2001  shift
2002  if test $# != 0; then
2003    # We chose a different compiler from the bogus one.
2004    # However, it has the same basename, so the bogon will be chosen
2005    # first if we set sol_cc_compiler to just the basename; use the full file name.
2006    shift
2007    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2008  fi
2009fi
2010fi
2011fi
2012sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2013if test -n "$sol_cc_compiler"; then
2014  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2015echo "${ECHO_T}$sol_cc_compiler" >&6
2016else
2017  echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021             if test "$sol_cc_compiler" = "cc" ; then
2022               comps="cc xlc gcc pgcc icc"
2023             else
2024               comps="xlc gcc pgcc icc cc"
2025             fi
2026             ;;
2027  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2028  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2029esac
2030
2031# We delete the cached value, since the test might not have been
2032# performed with our choice of compilers earlier
2033$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2034# AC_MSG_NOTICE([C compiler candidates: $comps])
2035ac_ext=c
2036ac_cpp='$CPP $CPPFLAGS'
2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040if test -n "$ac_tool_prefix"; then
2041  for ac_prog in $comps
2042  do
2043    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_CC+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$CC"; then
2051  ac_cv_prog_CC="$CC" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066
2067fi
2068fi
2069CC=$ac_cv_prog_CC
2070if test -n "$CC"; then
2071  echo "$as_me:$LINENO: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6
2073else
2074  echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
2078    test -n "$CC" && break
2079  done
2080fi
2081if test -z "$CC"; then
2082  ac_ct_CC=$CC
2083  for ac_prog in $comps
2084do
2085  # Extract the first word of "$ac_prog", so it can be a program name with args.
2086set dummy $ac_prog; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092  if test -n "$ac_ct_CC"; then
2093  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098  IFS=$as_save_IFS
2099  test -z "$as_dir" && as_dir=.
2100  for ac_exec_ext in '' $ac_executable_extensions; do
2101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102    ac_cv_prog_ac_ct_CC="$ac_prog"
2103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104    break 2
2105  fi
2106done
2107done
2108
2109fi
2110fi
2111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
2113  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6
2115else
2116  echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
2120  test -n "$ac_ct_CC" && break
2121done
2122
2123  CC=$ac_ct_CC
2124fi
2125
2126
2127test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2128See \`config.log' for more details." >&5
2129echo "$as_me: error: no acceptable C compiler found in \$PATH
2130See \`config.log' for more details." >&2;}
2131   { (exit 1); exit 1; }; }
2132
2133# Provide some information about the compiler.
2134echo "$as_me:$LINENO:" \
2135     "checking for C compiler version" >&5
2136ac_compiler=`set X $ac_compile; echo $2`
2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2138  (eval $ac_compiler --version </dev/null >&5) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }
2142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2143  (eval $ac_compiler -v </dev/null >&5) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }
2147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2148  (eval $ac_compiler -V </dev/null >&5) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }
2152
2153cat >conftest.$ac_ext <<_ACEOF
2154/* confdefs.h.  */
2155_ACEOF
2156cat confdefs.h >>conftest.$ac_ext
2157cat >>conftest.$ac_ext <<_ACEOF
2158/* end confdefs.h.  */
2159
2160int
2161main ()
2162{
2163
2164  ;
2165  return 0;
2166}
2167_ACEOF
2168ac_clean_files_save=$ac_clean_files
2169ac_clean_files="$ac_clean_files a.out a.exe b.out"
2170# Try to create an executable without -o first, disregard a.out.
2171# It will help us diagnose broken compilers, and finding out an intuition
2172# of exeext.
2173echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2174echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2175ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2176if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2177  (eval $ac_link_default) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }; then
2181  # Find the output, starting from the most likely.  This scheme is
2182# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2183# resort.
2184
2185# Be careful to initialize this variable, since it used to be cached.
2186# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187ac_cv_exeext=
2188# b.out is created by i960 compilers.
2189for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2190do
2191  test -f "$ac_file" || continue
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2194        ;;
2195    conftest.$ac_ext )
2196        # This is the source file.
2197        ;;
2198    [ab].out )
2199        # We found the default executable, but exeext='' is most
2200        # certainly right.
2201        break;;
2202    *.* )
2203        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2204        # FIXME: I believe we export ac_cv_exeext for Libtool,
2205        # but it would be cool to find out if it's true.  Does anybody
2206        # maintain Libtool? --akim.
2207        export ac_cv_exeext
2208        break;;
2209    * )
2210        break;;
2211  esac
2212done
2213else
2214  echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: C compiler cannot create executables
2220See \`config.log' for more details." >&2;}
2221   { (exit 77); exit 77; }; }
2222fi
2223
2224ac_exeext=$ac_cv_exeext
2225echo "$as_me:$LINENO: result: $ac_file" >&5
2226echo "${ECHO_T}$ac_file" >&6
2227
2228# Check the compiler produces executables we can run.  If not, either
2229# the compiler is broken, or we cross compile.
2230echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2231echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2232# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2233# If not cross compiling, check that we can run a simple program.
2234if test "$cross_compiling" != yes; then
2235  if { ac_try='./$ac_file'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241    cross_compiling=no
2242  else
2243    if test "$cross_compiling" = maybe; then
2244        cross_compiling=yes
2245    else
2246        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247If you meant to cross compile, use \`--host'.
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot run C compiled programs.
2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&2;}
2252   { (exit 1); exit 1; }; }
2253    fi
2254  fi
2255fi
2256echo "$as_me:$LINENO: result: yes" >&5
2257echo "${ECHO_T}yes" >&6
2258
2259rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260ac_clean_files=$ac_clean_files_save
2261# Check the compiler produces executables we can run.  If not, either
2262# the compiler is broken, or we cross compile.
2263echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2265echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266echo "${ECHO_T}$cross_compiling" >&6
2267
2268echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271  (eval $ac_link) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; then
2275  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2276# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2277# work properly (i.e., refer to `conftest.exe'), while it won't with
2278# `rm'.
2279for ac_file in conftest.exe conftest conftest.*; do
2280  test -f "$ac_file" || continue
2281  case $ac_file in
2282    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2283    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284          export ac_cv_exeext
2285          break;;
2286    * ) break;;
2287  esac
2288done
2289else
2290  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2293See \`config.log' for more details." >&2;}
2294   { (exit 1); exit 1; }; }
2295fi
2296
2297rm -f conftest$ac_cv_exeext
2298echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2299echo "${ECHO_T}$ac_cv_exeext" >&6
2300
2301rm -f conftest.$ac_ext
2302EXEEXT=$ac_cv_exeext
2303ac_exeext=$EXEEXT
2304echo "$as_me:$LINENO: checking for suffix of object files" >&5
2305echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2306if test "${ac_cv_objext+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  cat >conftest.$ac_ext <<_ACEOF
2310/* confdefs.h.  */
2311_ACEOF
2312cat confdefs.h >>conftest.$ac_ext
2313cat >>conftest.$ac_ext <<_ACEOF
2314/* end confdefs.h.  */
2315
2316int
2317main ()
2318{
2319
2320  ;
2321  return 0;
2322}
2323_ACEOF
2324rm -f conftest.o conftest.obj
2325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326  (eval $ac_compile) 2>&5
2327  ac_status=$?
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); }; then
2330  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2331  case $ac_file in
2332    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2333    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334       break;;
2335  esac
2336done
2337else
2338  echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342See \`config.log' for more details." >&5
2343echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344See \`config.log' for more details." >&2;}
2345   { (exit 1); exit 1; }; }
2346fi
2347
2348rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349fi
2350echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351echo "${ECHO_T}$ac_cv_objext" >&6
2352OBJEXT=$ac_cv_objext
2353ac_objext=$OBJEXT
2354echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2356if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365
2366int
2367main ()
2368{
2369#ifndef __GNUC__
2370       choke me
2371#endif
2372
2373  ;
2374  return 0;
2375}
2376_ACEOF
2377rm -f conftest.$ac_objext
2378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379  (eval $ac_compile) 2>conftest.er1
2380  ac_status=$?
2381  grep -v '^ *+' conftest.er1 >conftest.err
2382  rm -f conftest.er1
2383  cat conftest.err >&5
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); } &&
2386         { ac_try='test -z "$ac_c_werror_flag"
2387                         || test ! -s conftest.err'
2388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389  (eval $ac_try) 2>&5
2390  ac_status=$?
2391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392  (exit $ac_status); }; } &&
2393         { ac_try='test -s conftest.$ac_objext'
2394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395  (eval $ac_try) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; }; then
2399  ac_compiler_gnu=yes
2400else
2401  echo "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404ac_compiler_gnu=no
2405fi
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408
2409fi
2410echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2411echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2412GCC=`test $ac_compiler_gnu = yes && echo yes`
2413ac_test_CFLAGS=${CFLAGS+set}
2414ac_save_CFLAGS=$CFLAGS
2415CFLAGS="-g"
2416echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2417echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2418if test "${ac_cv_prog_cc_g+set}" = set; then
2419  echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421  cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h.  */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h.  */
2427
2428int
2429main ()
2430{
2431
2432  ;
2433  return 0;
2434}
2435_ACEOF
2436rm -f conftest.$ac_objext
2437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2438  (eval $ac_compile) 2>conftest.er1
2439  ac_status=$?
2440  grep -v '^ *+' conftest.er1 >conftest.err
2441  rm -f conftest.er1
2442  cat conftest.err >&5
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); } &&
2445         { ac_try='test -z "$ac_c_werror_flag"
2446                         || test ! -s conftest.err'
2447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448  (eval $ac_try) 2>&5
2449  ac_status=$?
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); }; } &&
2452         { ac_try='test -s conftest.$ac_objext'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; }; then
2458  ac_cv_prog_cc_g=yes
2459else
2460  echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463ac_cv_prog_cc_g=no
2464fi
2465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2466fi
2467echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2468echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2469if test "$ac_test_CFLAGS" = set; then
2470  CFLAGS=$ac_save_CFLAGS
2471elif test $ac_cv_prog_cc_g = yes; then
2472  if test "$GCC" = yes; then
2473    CFLAGS="-g -O2"
2474  else
2475    CFLAGS="-g"
2476  fi
2477else
2478  if test "$GCC" = yes; then
2479    CFLAGS="-O2"
2480  else
2481    CFLAGS=
2482  fi
2483fi
2484echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2485echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2486if test "${ac_cv_prog_cc_stdc+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  ac_cv_prog_cc_stdc=no
2490ac_save_CC=$CC
2491cat >conftest.$ac_ext <<_ACEOF
2492/* confdefs.h.  */
2493_ACEOF
2494cat confdefs.h >>conftest.$ac_ext
2495cat >>conftest.$ac_ext <<_ACEOF
2496/* end confdefs.h.  */
2497#include <stdarg.h>
2498#include <stdio.h>
2499#include <sys/types.h>
2500#include <sys/stat.h>
2501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2502struct buf { int x; };
2503FILE * (*rcsopen) (struct buf *, struct stat *, int);
2504static char *e (p, i)
2505     char **p;
2506     int i;
2507{
2508  return p[i];
2509}
2510static char *f (char * (*g) (char **, int), char **p, ...)
2511{
2512  char *s;
2513  va_list v;
2514  va_start (v,p);
2515  s = g (p, va_arg (v,int));
2516  va_end (v);
2517  return s;
2518}
2519
2520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2521   function prototypes and stuff, but not '\xHH' hex character constants.
2522   These don't provoke an error unfortunately, instead are silently treated
2523   as 'x'.  The following induces an error, until -std1 is added to get
2524   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2525   array size at least.  It's necessary to write '\x00'==0 to get something
2526   that's true only with -std1.  */
2527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2528
2529int test (int i, double x);
2530struct s1 {int (*f) (int a);};
2531struct s2 {int (*f) (double a);};
2532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2533int argc;
2534char **argv;
2535int
2536main ()
2537{
2538return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543# Don't try gcc -ansi; that turns off useful extensions and
2544# breaks some systems' header files.
2545# AIX                   -qlanglvl=ansi
2546# Ultrix and OSF/1      -std1
2547# HP-UX 10.20 and later -Ae
2548# HP-UX older versions  -Aa -D_HPUX_SOURCE
2549# SVR4                  -Xc -D__EXTENSIONS__
2550for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2551do
2552  CC="$ac_save_CC $ac_arg"
2553  rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562         { ac_try='test -z "$ac_c_werror_flag"
2563                         || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569         { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  ac_cv_prog_cc_stdc=$ac_arg
2576break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext
2583done
2584rm -f conftest.$ac_ext conftest.$ac_objext
2585CC=$ac_save_CC
2586
2587fi
2588
2589case "x$ac_cv_prog_cc_stdc" in
2590  x|xno)
2591    echo "$as_me:$LINENO: result: none needed" >&5
2592echo "${ECHO_T}none needed" >&6 ;;
2593  *)
2594    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2595echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2596    CC="$CC $ac_cv_prog_cc_stdc" ;;
2597esac
2598
2599# Some people use a C++ compiler to compile C.  Since we use `exit',
2600# in C++ we need to declare it.  In case someone uses the same compiler
2601# for both compiling C and C++ we need to have the C++ compiler decide
2602# the declaration of exit, since it's the most demanding environment.
2603cat >conftest.$ac_ext <<_ACEOF
2604#ifndef __cplusplus
2605  choke me
2606#endif
2607_ACEOF
2608rm -f conftest.$ac_objext
2609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610  (eval $ac_compile) 2>conftest.er1
2611  ac_status=$?
2612  grep -v '^ *+' conftest.er1 >conftest.err
2613  rm -f conftest.er1
2614  cat conftest.err >&5
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } &&
2617         { ac_try='test -z "$ac_c_werror_flag"
2618                         || test ! -s conftest.err'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; } &&
2624         { ac_try='test -s conftest.$ac_objext'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; }; then
2630  for ac_declaration in \
2631   '' \
2632   'extern "C" void std::exit (int) throw (); using std::exit;' \
2633   'extern "C" void std::exit (int); using std::exit;' \
2634   'extern "C" void exit (int) throw ();' \
2635   'extern "C" void exit (int);' \
2636   'void exit (int);'
2637do
2638  cat >conftest.$ac_ext <<_ACEOF
2639/* confdefs.h.  */
2640_ACEOF
2641cat confdefs.h >>conftest.$ac_ext
2642cat >>conftest.$ac_ext <<_ACEOF
2643/* end confdefs.h.  */
2644$ac_declaration
2645#include <stdlib.h>
2646int
2647main ()
2648{
2649exit (42);
2650  ;
2651  return 0;
2652}
2653_ACEOF
2654rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656  (eval $ac_compile) 2>conftest.er1
2657  ac_status=$?
2658  grep -v '^ *+' conftest.er1 >conftest.err
2659  rm -f conftest.er1
2660  cat conftest.err >&5
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); } &&
2663         { ac_try='test -z "$ac_c_werror_flag"
2664                         || test ! -s conftest.err'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; } &&
2670         { ac_try='test -s conftest.$ac_objext'
2671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672  (eval $ac_try) 2>&5
2673  ac_status=$?
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); }; }; then
2676  :
2677else
2678  echo "$as_me: failed program was:" >&5
2679sed 's/^/| /' conftest.$ac_ext >&5
2680
2681continue
2682fi
2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690$ac_declaration
2691int
2692main ()
2693{
2694exit (42);
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708         { ac_try='test -z "$ac_c_werror_flag"
2709                         || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715         { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  break
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728done
2729rm -f conftest*
2730if test -n "$ac_declaration"; then
2731  echo '#ifdef __cplusplus' >>confdefs.h
2732  echo $ac_declaration      >>confdefs.h
2733  echo '#endif'             >>confdefs.h
2734fi
2735
2736else
2737  echo "$as_me: failed program was:" >&5
2738sed 's/^/| /' conftest.$ac_ext >&5
2739
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747
2748if test -z "$CC" ; then
2749  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2750echo "$as_me: error: Failed to find a C compiler!" >&2;}
2751   { (exit 1); exit 1; }; }
2752fi
2753# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2754case "$CC" in
2755  cl* | */cl* | CL* | */CL* )
2756    if test "$ac_cv_prog_cc_g" = yes ; then
2757      ac_cv_prog_cc_g=no
2758      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2759echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2760    fi ;;
2761esac
2762CFLAGS="$save_cflags"
2763
2764# Check if a project specific CFLAGS variable has been set
2765if test x$COIN_PRJCT != x; then
2766  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2767  if test x$coin_tmp = xset; then
2768    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2769  fi
2770fi
2771
2772if test x"$CFLAGS" = x; then
2773
2774  coin_add_cflags=
2775  coin_opt_cflags=
2776  coin_dbg_cflags=
2777  coin_warn_cflags=
2778
2779  if test "$GCC" = "yes"; then
2780    case "$CC" in
2781      icc* | */icc*)
2782        ;;
2783      *)
2784        coin_opt_cflags="-O3"
2785        coin_add_cflags="-pipe"
2786        coin_dbg_cflags="-g"
2787        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2788        case $build in
2789          *-darwin*)
2790            ;;
2791          *)
2792            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2793            ;;
2794        esac
2795        case $enable_doscompile in
2796          mingw)
2797            CFLAGS="-mno-cygwin"
2798            cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h.  */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808int i=0; i++;
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813rm -f conftest.$ac_objext conftest$ac_exeext
2814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2815  (eval $ac_link) 2>conftest.er1
2816  ac_status=$?
2817  grep -v '^ *+' conftest.er1 >conftest.err
2818  rm -f conftest.er1
2819  cat conftest.err >&5
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); } &&
2822         { ac_try='test -z "$ac_c_werror_flag"
2823                         || test ! -s conftest.err'
2824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825  (eval $ac_try) 2>&5
2826  ac_status=$?
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); }; } &&
2829         { ac_try='test -s conftest$ac_exeext'
2830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831  (eval $ac_try) 2>&5
2832  ac_status=$?
2833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834  (exit $ac_status); }; }; then
2835  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840fi
2841rm -f conftest.err conftest.$ac_objext \
2842      conftest$ac_exeext conftest.$ac_ext
2843            CFLAGS=
2844          ;;
2845        esac
2846    esac
2847  fi
2848  if test -z "$coin_opt_cflags"; then
2849    case $build in
2850      *-cygwin* | *-mingw*)
2851        case "$CC" in
2852          cl* | */cl* | CL* | */CL*)
2853            coin_opt_cflags='-MT -O2'
2854            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2855            coin_dbg_cflags='-MTd'
2856            ;;
2857          icl* | */icl* | ICL* | */ICL*)
2858            coin_opt_cflags='-MT -Ox'
2859            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2860            coin_dbg_cflags='-MTd -debug'
2861            ;;
2862        esac
2863        ;;
2864      *-linux-*)
2865        case "$CC" in
2866          icc* | */icc*)
2867            coin_opt_cflags="-O3 -ip -mp1"
2868            coin_add_cflags=""
2869            coin_dbg_cflags="-g"
2870            # Check if -i_dynamic is necessary (for new glibc library)
2871            CFLAGS=
2872            cat >conftest.$ac_ext <<_ACEOF
2873/* confdefs.h.  */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h.  */
2878
2879int
2880main ()
2881{
2882int i=0; i++;
2883  ;
2884  return 0;
2885}
2886_ACEOF
2887rm -f conftest.$ac_objext conftest$ac_exeext
2888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2889  (eval $ac_link) 2>conftest.er1
2890  ac_status=$?
2891  grep -v '^ *+' conftest.er1 >conftest.err
2892  rm -f conftest.er1
2893  cat conftest.err >&5
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); } &&
2896         { ac_try='test -z "$ac_c_werror_flag"
2897                         || test ! -s conftest.err'
2898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899  (eval $ac_try) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }; } &&
2903         { ac_try='test -s conftest$ac_exeext'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; }; then
2909  :
2910else
2911  echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914coin_add_cflags="-i_dynamic $coin_add_cflags"
2915fi
2916rm -f conftest.err conftest.$ac_objext \
2917      conftest$ac_exeext conftest.$ac_ext
2918            ;;
2919          pgcc* | */pgcc*)
2920            coin_opt_cflags="-fast"
2921            coin_add_cflags="-Kieee -pc 64"
2922            coin_dbg_cflags="-g"
2923            ;;
2924        esac
2925        ;;
2926      *-ibm-*)
2927        case "$CC" in
2928          xlc* | */xlc* | mpxlc* | */mpxlc*)
2929            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2930            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2931            coin_dbg_cflags="-g"
2932          ;;
2933        esac
2934        ;;
2935      *-hp-*)
2936        coin_opt_cflags="-O"
2937        coin_add_cflags="-Ae"
2938        coin_dbg_cflags="-g"
2939        ;;
2940      *-*-solaris*)
2941        coin_opt_cflags="-xO4"
2942        coin_dbg_cflags="-g"
2943        ;;
2944      *-sgi-*)
2945        coin_opt_cflags="-O -OPT:Olimit=0"
2946        coin_dbg_cflags="-g"
2947        ;;
2948    esac
2949  fi
2950
2951  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2952    coin_dbg_cflags="-g"
2953  fi
2954
2955  if test -z "$coin_opt_cflags"; then
2956    # Try if -O option works if nothing else is set
2957    CFLAGS="-O"
2958    cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964
2965int
2966main ()
2967{
2968int i=0; i++;
2969  ;
2970  return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext conftest$ac_exeext
2974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2975  (eval $ac_link) 2>conftest.er1
2976  ac_status=$?
2977  grep -v '^ *+' conftest.er1 >conftest.err
2978  rm -f conftest.er1
2979  cat conftest.err >&5
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); } &&
2982         { ac_try='test -z "$ac_c_werror_flag"
2983                         || test ! -s conftest.err'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; } &&
2989         { ac_try='test -s conftest$ac_exeext'
2990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991  (eval $ac_try) 2>&5
2992  ac_status=$?
2993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994  (exit $ac_status); }; }; then
2995  coin_opt_cflags="-O"
2996else
2997  echo "$as_me: failed program was:" >&5
2998sed 's/^/| /' conftest.$ac_ext >&5
2999
3000fi
3001rm -f conftest.err conftest.$ac_objext \
3002      conftest$ac_exeext conftest.$ac_ext
3003  fi
3004
3005  # if PM doesn't want the warning messages, take them out
3006  if test x"$coin_skip_warn_cflags" = xyes; then
3007    coin_warn_cflags=
3008  fi
3009
3010  if test x${DBG_CFLAGS+set} != xset; then
3011    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3012  fi
3013  if test x${OPT_CFLAGS+set} != xset; then
3014    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3015  fi
3016
3017  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3018  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3019
3020  if test "$coin_debug_compile" = "true"; then
3021    CFLAGS="$DBG_CFLAGS"
3022  else
3023    CFLAGS="$OPT_CFLAGS"
3024  fi
3025else
3026  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3027  if test x${DBG_CFLAGS+set} != xset; then
3028    DBG_CFLAGS="$CFLAGS"
3029  fi
3030  if test x${OPT_CFLAGS+set} != xset; then
3031    OPT_CFLAGS="$CFLAGS"
3032  fi
3033fi
3034
3035# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3036
3037case "$CFLAGS" in
3038  *-mno-cygwin*)
3039    if test x${CPPFLAGS+set} != xset ; then
3040      CPPFLAGS="-mno-cygwin"
3041    else
3042      case "$CPPFLAGS" in
3043        *-mno-cygwin*)
3044          ;;
3045        *)
3046          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3047          ;;
3048      esac
3049    fi ;;
3050esac
3051
3052# Try if CFLAGS works
3053save_CFLAGS="$CFLAGS"
3054cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100if test -z "$CFLAGS"; then
3101  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3102echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3103  CFLAGS='-O'
3104  cat >conftest.$ac_ext <<_ACEOF
3105/* confdefs.h.  */
3106_ACEOF
3107cat confdefs.h >>conftest.$ac_ext
3108cat >>conftest.$ac_ext <<_ACEOF
3109/* end confdefs.h.  */
3110
3111int
3112main ()
3113{
3114int i=0; i++;
3115  ;
3116  return 0;
3117}
3118_ACEOF
3119rm -f conftest.$ac_objext conftest$ac_exeext
3120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3121  (eval $ac_link) 2>conftest.er1
3122  ac_status=$?
3123  grep -v '^ *+' conftest.er1 >conftest.err
3124  rm -f conftest.er1
3125  cat conftest.err >&5
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); } &&
3128         { ac_try='test -z "$ac_c_werror_flag"
3129                         || test ! -s conftest.err'
3130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131  (eval $ac_try) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }; } &&
3135         { ac_try='test -s conftest$ac_exeext'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; }; then
3141  :
3142else
3143  echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146CFLAGS=
3147fi
3148rm -f conftest.err conftest.$ac_objext \
3149      conftest$ac_exeext conftest.$ac_ext
3150  if test -z "$CFLAGS"; then
3151    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3152echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3153  fi
3154fi
3155
3156{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3157echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3158
3159
3160if test x"$MPICC" = x; then :; else
3161  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3162echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3163  CC="$MPICC"
3164fi
3165
3166# Correct ADDLIBS initialization if we are using the MS compiler
3167case "$CC" in
3168  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3169    ADDLIBS=
3170    case $build in
3171  *-mingw*)
3172    if test "${LD+set}" = set; then :; else
3173      LD=link
3174    fi
3175    ;;
3176 esac
3177 case $enable_doscompile in
3178   msvc)
3179     if test "x${LD+set}" = xset; then :; else
3180       LD=link
3181     fi
3182     ;;
3183 esac
3184
3185    ;;
3186esac
3187
3188ac_ext=c
3189ac_cpp='$CPP $CPPFLAGS'
3190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3192ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193
3194
3195case $build in
3196  *-cygwin* | *-mingw*)
3197     if test "$enable_doscompile" = msvc ; then
3198       coin_f77_comps="ifort fl32 compile_f2c"
3199     else
3200       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3201     fi ;;
3202  *-*-solaris*)
3203     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3204  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3205 esac
3206
3207
3208
3209
3210
3211
3212ac_ext=f
3213ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3214ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3216
3217
3218
3219
3220
3221
3222coin_has_f77=yes
3223
3224save_fflags="$FFLAGS"
3225
3226# We delete the cached value, since the test might not have been
3227# performed with our choice of compilers earlier
3228$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3229
3230# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3231# coin_f77_comps to see if there's a program that matches one of the names.
3232# If there's no such program, F77 = unavailable. If we match the name,
3233# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3234# compiler.
3235# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3236
3237
3238{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3239echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3240for ac_prog in $coin_f77_comps
3241do
3242  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243set dummy $ac_prog; ac_word=$2
3244echo "$as_me:$LINENO: checking for $ac_word" >&5
3245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246if test "${ac_cv_prog_F77+set}" = set; then
3247  echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249  if test -n "$F77"; then
3250  ac_cv_prog_F77="$F77" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257  for ac_exec_ext in '' $ac_executable_extensions; do
3258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_F77="$ac_prog"
3260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264done
3265
3266fi
3267fi
3268F77=$ac_cv_prog_F77
3269if test -n "$F77"; then
3270  echo "$as_me:$LINENO: result: $F77" >&5
3271echo "${ECHO_T}$F77" >&6
3272else
3273  echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275fi
3276
3277  test -n "$F77" && break
3278done
3279test -n "$F77" || F77="unavailable"
3280
3281
3282if test "$F77" != "unavailable" ; then
3283  ac_ext=f
3284ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3285ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3287if test -n "$ac_tool_prefix"; then
3288  for ac_prog in $coin_f77_comps
3289  do
3290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3292echo "$as_me:$LINENO: checking for $ac_word" >&5
3293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294if test "${ac_cv_prog_F77+set}" = set; then
3295  echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297  if test -n "$F77"; then
3298  ac_cv_prog_F77="$F77" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305  for ac_exec_ext in '' $ac_executable_extensions; do
3306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312done
3313
3314fi
3315fi
3316F77=$ac_cv_prog_F77
3317if test -n "$F77"; then
3318  echo "$as_me:$LINENO: result: $F77" >&5
3319echo "${ECHO_T}$F77" >&6
3320else
3321  echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
3324
3325    test -n "$F77" && break
3326  done
3327fi
3328if test -z "$F77"; then
3329  ac_ct_F77=$F77
3330  for ac_prog in $coin_f77_comps
3331do
3332  # Extract the first word of "$ac_prog", so it can be a program name with args.
3333set dummy $ac_prog; ac_word=$2
3334echo "$as_me:$LINENO: checking for $ac_word" >&5
3335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3337  echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339  if test -n "$ac_ct_F77"; then
3340  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345  IFS=$as_save_IFS
3346  test -z "$as_dir" && as_dir=.
3347  for ac_exec_ext in '' $ac_executable_extensions; do
3348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349    ac_cv_prog_ac_ct_F77="$ac_prog"
3350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351    break 2
3352  fi
3353done
3354done
3355
3356fi
3357fi
3358ac_ct_F77=$ac_cv_prog_ac_ct_F77
3359if test -n "$ac_ct_F77"; then
3360  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3361echo "${ECHO_T}$ac_ct_F77" >&6
3362else
3363  echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365fi
3366
3367  test -n "$ac_ct_F77" && break
3368done
3369
3370  F77=$ac_ct_F77
3371fi
3372
3373
3374# Provide some information about the compiler.
3375echo "$as_me:3375:" \
3376     "checking for Fortran 77 compiler version" >&5
3377ac_compiler=`set X $ac_compile; echo $2`
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3379  (eval $ac_compiler --version </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3384  (eval $ac_compiler -v </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3389  (eval $ac_compiler -V </dev/null >&5) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }
3393rm -f a.out
3394
3395# If we don't use `.F' as extension, the preprocessor is not run on the
3396# input file.  (Note that this only needs to work for GNU compilers.)
3397ac_save_ext=$ac_ext
3398ac_ext=F
3399echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3400echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3401if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  cat >conftest.$ac_ext <<_ACEOF
3405      program main
3406#ifndef __GNUC__
3407       choke me
3408#endif
3409
3410      end
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414  (eval $ac_compile) 2>conftest.er1
3415  ac_status=$?
3416  grep -v '^ *+' conftest.er1 >conftest.err
3417  rm -f conftest.er1
3418  cat conftest.err >&5
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); } &&
3421         { ac_try='test -z "$ac_f77_werror_flag"
3422                         || test ! -s conftest.err'
3423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424  (eval $ac_try) 2>&5
3425  ac_status=$?
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); }; } &&
3428         { ac_try='test -s conftest.$ac_objext'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; }; then
3434  ac_compiler_gnu=yes
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439ac_compiler_gnu=no
3440fi
3441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3443
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3446echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3447ac_ext=$ac_save_ext
3448ac_test_FFLAGS=${FFLAGS+set}
3449ac_save_FFLAGS=$FFLAGS
3450FFLAGS=
3451echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3452echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3453if test "${ac_cv_prog_f77_g+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  FFLAGS=-g
3457cat >conftest.$ac_ext <<_ACEOF
3458      program main
3459
3460      end
3461_ACEOF
3462rm -f conftest.$ac_objext
3463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3464  (eval $ac_compile) 2>conftest.er1
3465  ac_status=$?
3466  grep -v '^ *+' conftest.er1 >conftest.err
3467  rm -f conftest.er1
3468  cat conftest.err >&5
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); } &&
3471         { ac_try='test -z "$ac_f77_werror_flag"
3472                         || test ! -s conftest.err'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; } &&
3478         { ac_try='test -s conftest.$ac_objext'
3479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480  (eval $ac_try) 2>&5
3481  ac_status=$?
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); }; }; then
3484  ac_cv_prog_f77_g=yes
3485else
3486  echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489ac_cv_prog_f77_g=no
3490fi
3491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3492
3493fi
3494echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3495echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3496if test "$ac_test_FFLAGS" = set; then
3497  FFLAGS=$ac_save_FFLAGS
3498elif test $ac_cv_prog_f77_g = yes; then
3499  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3500    FFLAGS="-g -O2"
3501  else
3502    FFLAGS="-g"
3503  fi
3504else
3505  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3506    FFLAGS="-O2"
3507  else
3508    FFLAGS=
3509  fi
3510fi
3511
3512G77=`test $ac_compiler_gnu = yes && echo yes`
3513ac_ext=f
3514ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3515ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3517
3518else
3519  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3520echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3521fi
3522
3523FFLAGS="$save_fflags"
3524
3525# Check if a project specific FFLAGS variable has been set
3526if test x$COIN_PRJCT != x; then
3527  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3528  if test x$coin_tmp = xset; then
3529    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3530  fi
3531fi
3532
3533if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3534
3535  coin_add_fflags=
3536  coin_opt_fflags=
3537  coin_dbg_fflags=
3538  coin_warn_fflags=
3539
3540  if test "$G77" = "yes"; then
3541    coin_opt_fflags="-O3"
3542    coin_add_fflags="-pipe"
3543    coin_dbg_fflags="-g"
3544    case $enable_doscompile in
3545      mingw)
3546        FFLAGS="-mno-cygwin"
3547        cat >conftest.$ac_ext <<_ACEOF
3548      program main
3549      write(*,*) 'Hello world'
3550      end
3551_ACEOF
3552rm -f conftest.$ac_objext conftest$ac_exeext
3553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554  (eval $ac_link) 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } &&
3561         { ac_try='test -z "$ac_f77_werror_flag"
3562                         || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568         { ac_try='test -s conftest$ac_exeext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3575else
3576  echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579fi
3580rm -f conftest.err conftest.$ac_objext \
3581      conftest$ac_exeext conftest.$ac_ext
3582        FFLAGS=
3583      ;;
3584    esac
3585  else
3586    case $build in
3587      *-cygwin* | *-mingw*)
3588        case $F77 in
3589          ifort* | */ifort* | IFORT* | */IFORT* )
3590            coin_opt_fflags='-MT -O3'
3591            coin_add_fflags='-fpp -nologo'
3592            coin_dbg_fflags='-MTd -debug'
3593          ;;
3594          compile_f2c*)
3595            coin_opt_fflags='-MT -O2'
3596            coin_add_fflags='-nologo -wd4996'
3597            coin_dbg_fflags='-MTd'
3598          ;;
3599        esac
3600        ;;
3601      *-linux-*)
3602        case $F77 in
3603          ifc* | */ifc* | ifort* | */ifort*)
3604            coin_opt_fflags="-O3 -ip"
3605            coin_add_fflags="-cm -w90 -w95"
3606            coin_dbg_fflags="-g -CA -CB -CS"
3607            # Check if -i_dynamic is necessary (for new glibc library)
3608            FFLAGS=
3609            cat >conftest.$ac_ext <<_ACEOF
3610      program main
3611      write(*,*) 'Hello world'
3612      end
3613_ACEOF
3614rm -f conftest.$ac_objext conftest$ac_exeext
3615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3616  (eval $ac_link) 2>conftest.er1
3617  ac_status=$?
3618  grep -v '^ *+' conftest.er1 >conftest.err
3619  rm -f conftest.er1
3620  cat conftest.err >&5
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); } &&
3623         { ac_try='test -z "$ac_f77_werror_flag"
3624                         || test ! -s conftest.err'
3625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626  (eval $ac_try) 2>&5
3627  ac_status=$?
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); }; } &&
3630         { ac_try='test -s conftest$ac_exeext'
3631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632  (eval $ac_try) 2>&5
3633  ac_status=$?
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); }; }; then
3636  :
3637else
3638  echo "$as_me: failed program was:" >&5
3639sed 's/^/| /' conftest.$ac_ext >&5
3640
3641coin_add_fflags="-i_dynamic $coin_add_fflags"
3642fi
3643rm -f conftest.err conftest.$ac_objext \
3644      conftest$ac_exeext conftest.$ac_ext
3645            ;;
3646          pgf77* | */pgf77* | pgf90* | */pgf90*)
3647            coin_opt_fflags="-fast"
3648            coin_add_fflags="-Kieee -pc 64"
3649            coin_dbg_fflags="-g"
3650          ;;
3651        esac
3652        ;;
3653      *-ibm-*)
3654        case "$F77" in
3655          xlf* | */xlf* | mpxlf* | */mpxlf* )
3656            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3657            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3658            coin_dbg_fflags="-g -C"
3659            ;;
3660        esac
3661        ;;
3662      *-hp-*)
3663        coin_opt_fflags="+O3"
3664        coin_add_fflags="+U77"
3665        coin_dbg_fflags="-C -g"
3666        ;;
3667      *-*-solaris*)
3668        coin_opt_fflags="-O4"
3669        coin_dbg_fflags="-g"
3670        ;;
3671      *-sgi-*)
3672        coin_opt_fflags="-O5 -OPT:Olimit=0"
3673        coin_dbg_fflags="-g"
3674        ;;
3675    esac
3676  fi
3677
3678  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3679    coin_dbg_fflags="-g"
3680  fi
3681
3682  if test -z "$coin_opt_fflags"; then
3683    # Try if -O option works if nothing else is set
3684    FFLAGS=-O
3685    cat >conftest.$ac_ext <<_ACEOF
3686      program main
3687      integer i
3688      end
3689_ACEOF
3690rm -f conftest.$ac_objext conftest$ac_exeext
3691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3692  (eval $ac_link) 2>conftest.er1
3693  ac_status=$?
3694  grep -v '^ *+' conftest.er1 >conftest.err
3695  rm -f conftest.er1
3696  cat conftest.err >&5
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); } &&
3699         { ac_try='test -z "$ac_f77_werror_flag"
3700                         || test ! -s conftest.err'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; } &&
3706         { ac_try='test -s conftest$ac_exeext'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; }; then
3712  coin_opt_fflags="-O"
3713else
3714  echo "$as_me: failed program was:" >&5
3715sed 's/^/| /' conftest.$ac_ext >&5
3716
3717fi
3718rm -f conftest.err conftest.$ac_objext \
3719      conftest$ac_exeext conftest.$ac_ext
3720  fi
3721
3722  # if PM doesn't want the warning messages, take them out
3723  if test x"$coin_skip_warn_fflags" = xyes; then
3724    coin_warn_fflags=
3725  fi
3726
3727  if test x${DBG_FFLAGS+set} != xset; then
3728    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3729  fi
3730  if test x${OPT_FFLAGS+set} != xset; then
3731    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3732  fi
3733
3734  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3735  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3736
3737  if test "$coin_debug_compile" = "true"; then
3738    FFLAGS="$DBG_FFLAGS"
3739  else
3740    FFLAGS="$OPT_FFLAGS"
3741  fi
3742else
3743  FFLAGS="$FFLAGS $ADD_FFLAGS"
3744  if test x${DBG_FFLAGS+set} != xset; then
3745    DBG_FFLAGS="$FFLAGS"
3746  fi
3747  if test x${OPT_FFLAGS+set} != xset; then
3748    OPT_FFLAGS="$FFLAGS"
3749  fi
3750fi
3751
3752# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3753case "$FFLAGS" in
3754  *-mno-cygwin*)
3755    if test x${CPPFLAGS+set} != xset ; then
3756      CPPFLAGS="-mno-cygwin"
3757    else
3758      case "$CPPFLAGS" in
3759        *-mno-cygwin*)
3760          ;;
3761        *)
3762          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3763          ;;
3764      esac
3765    fi ;;
3766esac
3767
3768# Try if FFLAGS works
3769if test "$F77" != "unavailable" ; then
3770  cat >conftest.$ac_ext <<_ACEOF
3771      program main
3772      integer i
3773      end
3774_ACEOF
3775rm -f conftest.$ac_objext conftest$ac_exeext
3776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3777  (eval $ac_link) 2>conftest.er1
3778  ac_status=$?
3779  grep -v '^ *+' conftest.er1 >conftest.err
3780  rm -f conftest.er1
3781  cat conftest.err >&5
3782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783  (exit $ac_status); } &&
3784         { ac_try='test -z "$ac_f77_werror_flag"
3785                         || test ! -s conftest.err'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; } &&
3791         { ac_try='test -s conftest$ac_exeext'
3792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793  (eval $ac_try) 2>&5
3794  ac_status=$?
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); }; }; then
3797  :
3798else
3799  echo "$as_me: failed program was:" >&5
3800sed 's/^/| /' conftest.$ac_ext >&5
3801
3802FFLAGS=
3803fi
3804rm -f conftest.err conftest.$ac_objext \
3805      conftest$ac_exeext conftest.$ac_ext
3806  if test -z "$FFLAGS"; then
3807    { 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
3808echo "$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;}
3809    FFLAGS='-O'
3810    cat >conftest.$ac_ext <<_ACEOF
3811      program main
3812      integer i
3813      end
3814_ACEOF
3815rm -f conftest.$ac_objext conftest$ac_exeext
3816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817  (eval $ac_link) 2>conftest.er1
3818  ac_status=$?
3819  grep -v '^ *+' conftest.er1 >conftest.err
3820  rm -f conftest.er1
3821  cat conftest.err >&5
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); } &&
3824         { ac_try='test -z "$ac_f77_werror_flag"
3825                         || test ! -s conftest.err'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; } &&
3831         { ac_try='test -s conftest$ac_exeext'
3832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833  (eval $ac_try) 2>&5
3834  ac_status=$?
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); }; }; then
3837  :
3838else
3839  echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842FFLAGS=
3843fi
3844rm -f conftest.err conftest.$ac_objext \
3845      conftest$ac_exeext conftest.$ac_ext
3846    if test -z "$FFLAGS"; then
3847      { 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
3848echo "$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;}
3849    fi
3850  fi
3851fi
3852
3853{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3854echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3855
3856
3857if test x"$MPIF77" = x; then :; else
3858  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3859echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3860  F77="$MPIF77"
3861fi
3862
3863case "$F77" in
3864  ifort* | */ifort* | IFORT* | */IFORT*)
3865    case $build in
3866  *-mingw*)
3867    if test "${LD+set}" = set; then :; else
3868      LD=link
3869    fi
3870    ;;
3871 esac
3872 case $enable_doscompile in
3873   msvc)
3874     if test "x${LD+set}" = xset; then :; else
3875       LD=link
3876     fi
3877     ;;
3878 esac
3879
3880    ;;
3881esac
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889
3890
3891# Get the linker flags (FLIBS) that are required for linking against this blas library
3892ac_ext=f
3893ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3894ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3896echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3897echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3898if test "${ac_cv_prog_f77_v+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  cat >conftest.$ac_ext <<_ACEOF
3902      program main
3903
3904      end
3905_ACEOF
3906rm -f conftest.$ac_objext
3907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908  (eval $ac_compile) 2>conftest.er1
3909  ac_status=$?
3910  grep -v '^ *+' conftest.er1 >conftest.err
3911  rm -f conftest.er1
3912  cat conftest.err >&5
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); } &&
3915         { ac_try='test -z "$ac_f77_werror_flag"
3916                         || test ! -s conftest.err'
3917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918  (eval $ac_try) 2>&5
3919  ac_status=$?
3920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921  (exit $ac_status); }; } &&
3922         { ac_try='test -s conftest.$ac_objext'
3923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924  (eval $ac_try) 2>&5
3925  ac_status=$?
3926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927  (exit $ac_status); }; }; then
3928  ac_cv_prog_f77_v=
3929# Try some options frequently used verbose output
3930for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3931  cat >conftest.$ac_ext <<_ACEOF
3932      program main
3933
3934      end
3935_ACEOF
3936
3937# Compile and link our simple test program by passing a flag (argument
3938# 1 to this macro) to the Fortran compiler in order to get
3939# "verbose" output that we can then parse for the Fortran linker
3940# flags.
3941ac_save_FFLAGS=$FFLAGS
3942FFLAGS="$FFLAGS $ac_verb"
3943(eval echo $as_me:3943: \"$ac_link\") >&5
3944ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3945echo "$ac_f77_v_output" >&5
3946FFLAGS=$ac_save_FFLAGS
3947
3948rm -f conftest*
3949
3950# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3951# /foo, /bar, and /baz are search directories for the Fortran linker.
3952# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3953ac_f77_v_output="`echo $ac_f77_v_output |
3954        grep 'LPATH is:' |
3955        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3956
3957case $ac_f77_v_output in
3958  # If we are using xlf then replace all the commas with spaces.
3959  *xlfentry*)
3960    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3961
3962  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3963  # $LIBS confuse us, and the libraries appear later in the output anyway).
3964  *mGLOB_options_string*)
3965    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3966
3967  # If we are using Cray Fortran then delete quotes.
3968  # Use "\"" instead of '"' for font-lock-mode.
3969  # FIXME: a more general fix for quoted arguments with spaces?
3970  *cft90*)
3971    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3972esac
3973
3974
3975  # look for -l* and *.a constructs in the output
3976  for ac_arg in $ac_f77_v_output; do
3977     case $ac_arg in
3978        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3979          ac_cv_prog_f77_v=$ac_verb
3980          break 2 ;;
3981     esac
3982  done
3983done
3984if test -z "$ac_cv_prog_f77_v"; then
3985   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3986echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3987fi
3988else
3989  echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3993echo "$as_me: WARNING: compilation failed" >&2;}
3994fi
3995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3996
3997fi
3998echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3999echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4000echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4001echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4002if test "${ac_cv_f77_libs+set}" = set; then
4003  echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
4005  if test "x$FLIBS" != "x"; then
4006  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4007else
4008
4009cat >conftest.$ac_ext <<_ACEOF
4010      program main
4011
4012      end
4013_ACEOF
4014
4015# Compile and link our simple test program by passing a flag (argument
4016# 1 to this macro) to the Fortran compiler in order to get
4017# "verbose" output that we can then parse for the Fortran linker
4018# flags.
4019ac_save_FFLAGS=$FFLAGS
4020FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4021(eval echo $as_me:4021: \"$ac_link\") >&5
4022ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4023echo "$ac_f77_v_output" >&5
4024FFLAGS=$ac_save_FFLAGS
4025
4026rm -f conftest*
4027
4028# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4029# /foo, /bar, and /baz are search directories for the Fortran linker.
4030# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4031ac_f77_v_output="`echo $ac_f77_v_output |
4032        grep 'LPATH is:' |
4033        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4034
4035case $ac_f77_v_output in
4036  # If we are using xlf then replace all the commas with spaces.
4037  *xlfentry*)
4038    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4039
4040  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4041  # $LIBS confuse us, and the libraries appear later in the output anyway).
4042  *mGLOB_options_string*)
4043    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4044
4045  # If we are using Cray Fortran then delete quotes.
4046  # Use "\"" instead of '"' for font-lock-mode.
4047  # FIXME: a more general fix for quoted arguments with spaces?
4048  *cft90*)
4049    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4050esac
4051
4052
4053
4054ac_cv_f77_libs=
4055
4056# Save positional arguments (if any)
4057ac_save_positional="$@"
4058
4059set X $ac_f77_v_output
4060while test $# != 1; do
4061  shift
4062  ac_arg=$1
4063  case $ac_arg in
4064        [\\/]*.a | ?:[\\/]*.a)
4065            ac_exists=false
4066  for ac_i in $ac_cv_f77_libs; do
4067    if test x"$ac_arg" = x"$ac_i"; then
4068      ac_exists=true
4069      break
4070    fi
4071  done
4072
4073  if test x"$ac_exists" = xtrue; then
4074  :
4075else
4076  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4077fi
4078
4079          ;;
4080        -bI:*)
4081            ac_exists=false
4082  for ac_i in $ac_cv_f77_libs; do
4083    if test x"$ac_arg" = x"$ac_i"; then
4084      ac_exists=true
4085      break
4086    fi
4087  done
4088
4089  if test x"$ac_exists" = xtrue; then
4090  :
4091else
4092  if test "$ac_compiler_gnu" = yes; then
4093  for ac_link_opt in $ac_arg; do
4094    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4095  done
4096else
4097  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4098fi
4099fi
4100
4101          ;;
4102          # Ignore these flags.
4103        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4104          ;;
4105        -lkernel32)
4106          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4107          ;;
4108        -[LRuY])
4109          # These flags, when seen by themselves, take an argument.
4110          # We remove the space between option and argument and re-iterate
4111          # unless we find an empty arg or a new option (starting with -)
4112          case $2 in
4113             "" | -*);;
4114             *)
4115                ac_arg="$ac_arg$2"
4116                shift; shift
4117                set X $ac_arg "$@"
4118                ;;
4119          esac
4120          ;;
4121        -YP,*)
4122          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4123              ac_exists=false
4124  for ac_i in $ac_cv_f77_libs; do
4125    if test x"$ac_j" = x"$ac_i"; then
4126      ac_exists=true
4127      break
4128    fi
4129  done
4130
4131  if test x"$ac_exists" = xtrue; then
4132  :
4133else
4134  ac_arg="$ac_arg $ac_j"
4135                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4136fi
4137
4138          done
4139          ;;
4140        -[lLR]*)
4141            ac_exists=false
4142  for ac_i in $ac_cv_f77_libs; do
4143    if test x"$ac_arg" = x"$ac_i"; then
4144      ac_exists=true
4145      break
4146    fi
4147  done
4148
4149  if test x"$ac_exists" = xtrue; then
4150  :
4151else
4152  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4153fi
4154
4155          ;;
4156          # Ignore everything else.
4157  esac
4158done
4159# restore positional arguments
4160set X $ac_save_positional; shift
4161
4162# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4163# then we insist that the "run path" must be an absolute path (i.e. it
4164# must begin with a "/").
4165case `(uname -sr) 2>/dev/null` in
4166   "SunOS 5"*)
4167      ac_ld_run_path=`echo $ac_f77_v_output |
4168                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4169      test "x$ac_ld_run_path" != x &&
4170        if test "$ac_compiler_gnu" = yes; then
4171  for ac_link_opt in $ac_ld_run_path; do
4172    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4173  done
4174else
4175  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4176fi
4177      ;;
4178esac
4179fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4180
4181fi
4182echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4183echo "${ECHO_T}$ac_cv_f77_libs" >&6
4184FLIBS="$ac_cv_f77_libs"
4185
4186
4187ac_ext=f
4188ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4189ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4191
4192ac_ext=f
4193ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4194ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4196
4197echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4198echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4199if test "${ac_cv_f77_dummy_main+set}" = set; then
4200  echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202  ac_f77_dm_save_LIBS=$LIBS
4203 LIBS="$LIBS $FLIBS"
4204 ac_fortran_dm_var=F77_DUMMY_MAIN
4205 ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211 # First, try linking without a dummy main:
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h.  */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h.  */
4218
4219#ifdef F77_DUMMY_MAIN
4220
4221#  ifdef __cplusplus
4222     extern "C"
4223#  endif
4224   int F77_DUMMY_MAIN() { return 1; }
4225
4226#endif
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235rm -f conftest.$ac_objext conftest$ac_exeext
4236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4237  (eval $ac_link) 2>conftest.er1
4238  ac_status=$?
4239  grep -v '^ *+' conftest.er1 >conftest.err
4240  rm -f conftest.er1
4241  cat conftest.err >&5
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); } &&
4244         { ac_try='test -z "$ac_c_werror_flag"
4245                         || test ! -s conftest.err'
4246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247  (eval $ac_try) 2>&5
4248  ac_status=$?
4249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250  (exit $ac_status); }; } &&
4251         { ac_try='test -s conftest$ac_exeext'
4252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253  (eval $ac_try) 2>&5
4254  ac_status=$?
4255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256  (exit $ac_status); }; }; then
4257  ac_cv_fortran_dummy_main=none
4258else
4259  echo "$as_me: failed program was:" >&5
4260sed 's/^/| /' conftest.$ac_ext >&5
4261
4262ac_cv_fortran_dummy_main=unknown
4263fi
4264rm -f conftest.err conftest.$ac_objext \
4265      conftest$ac_exeext conftest.$ac_ext
4266
4267 if test $ac_cv_fortran_dummy_main = unknown; then
4268   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4269     cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h.  */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h.  */
4275#define $ac_fortran_dm_var $ac_func
4276#ifdef F77_DUMMY_MAIN
4277
4278#  ifdef __cplusplus
4279     extern "C"
4280#  endif
4281   int F77_DUMMY_MAIN() { return 1; }
4282
4283#endif
4284int
4285main ()
4286{
4287
4288  ;
4289  return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4294  (eval $ac_link) 2>conftest.er1
4295  ac_status=$?
4296  grep -v '^ *+' conftest.er1 >conftest.err
4297  rm -f conftest.er1
4298  cat conftest.err >&5
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); } &&
4301         { ac_try='test -z "$ac_c_werror_flag"
4302                         || test ! -s conftest.err'
4303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304  (eval $ac_try) 2>&5
4305  ac_status=$?
4306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307  (exit $ac_status); }; } &&
4308         { ac_try='test -s conftest$ac_exeext'
4309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310  (eval $ac_try) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }; }; then
4314  ac_cv_fortran_dummy_main=$ac_func; break
4315else
4316  echo "$as_me: failed program was:" >&5
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
4319fi
4320rm -f conftest.err conftest.$ac_objext \
4321      conftest$ac_exeext conftest.$ac_ext
4322   done
4323 fi
4324 ac_ext=f
4325ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4326ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4328 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4329 rm -f conftest*
4330 LIBS=$ac_f77_dm_save_LIBS
4331
4332fi
4333echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4334echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4335F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4336if test "$F77_DUMMY_MAIN" != unknown; then
4337  if test $F77_DUMMY_MAIN != none; then
4338
4339cat >>confdefs.h <<_ACEOF
4340#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4341_ACEOF
4342
4343  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4344
4345cat >>confdefs.h <<\_ACEOF
4346#define FC_DUMMY_MAIN_EQ_F77 1
4347_ACEOF
4348
4349  fi
4350fi
4351else
4352  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4353See \`config.log' for more details." >&5
4354echo "$as_me: error: linking to Fortran libraries from C fails
4355See \`config.log' for more details." >&2;}
4356   { (exit 1); exit 1; }; }
4357fi
4358
4359
4360ac_ext=f
4361ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4362ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4364
4365ac_ext=f
4366ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4367ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4369echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4370echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4371if test "${ac_cv_f77_mangling+set}" = set; then
4372  echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374  cat >conftest.$ac_ext <<_ACEOF
4375      subroutine foobar()
4376      return
4377      end
4378      subroutine foo_bar()
4379      return
4380      end
4381_ACEOF
4382rm -f conftest.$ac_objext
4383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384  (eval $ac_compile) 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } &&
4391         { ac_try='test -z "$ac_f77_werror_flag"
4392                         || test ! -s conftest.err'
4393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394  (eval $ac_try) 2>&5
4395  ac_status=$?
4396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397  (exit $ac_status); }; } &&
4398         { ac_try='test -s conftest.$ac_objext'
4399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400  (eval $ac_try) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }; }; then
4404  mv conftest.$ac_objext cfortran_test.$ac_objext
4405
4406  ac_save_LIBS=$LIBS
4407  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4408
4409  ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414  ac_success=no
4415  for ac_foobar in foobar FOOBAR; do
4416    for ac_underscore in "" "_"; do
4417      ac_func="$ac_foobar$ac_underscore"
4418      cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424
4425/* Override any gcc2 internal prototype to avoid an error.  */
4426#ifdef __cplusplus
4427extern "C"
4428#endif
4429/* We use char because int might match the return type of a gcc2
4430   builtin and then its argument prototype would still apply.  */
4431char $ac_func ();
4432#ifdef F77_DUMMY_MAIN
4433
4434#  ifdef __cplusplus
4435     extern "C"
4436#  endif
4437   int F77_DUMMY_MAIN() { return 1; }
4438
4439#endif
4440int
4441main ()
4442{
4443$ac_func ();
4444  ;
4445  return 0;
4446}
4447_ACEOF
4448rm -f conftest.$ac_objext conftest$ac_exeext
4449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4450  (eval $ac_link) 2>conftest.er1
4451  ac_status=$?
4452  grep -v '^ *+' conftest.er1 >conftest.err
4453  rm -f conftest.er1
4454  cat conftest.err >&5
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } &&
4457         { ac_try='test -z "$ac_c_werror_flag"
4458                         || test ! -s conftest.err'
4459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460  (eval $ac_try) 2>&5
4461  ac_status=$?
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); }; } &&
4464         { ac_try='test -s conftest$ac_exeext'
4465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466  (eval $ac_try) 2>&5
4467  ac_status=$?
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); }; }; then
4470  ac_success=yes; break 2
4471else
4472  echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475fi
4476rm -f conftest.err conftest.$ac_objext \
4477      conftest$ac_exeext conftest.$ac_ext
4478    done
4479  done
4480  ac_ext=f
4481ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4482ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4484
4485  if test "$ac_success" = "yes"; then
4486     case $ac_foobar in
4487        foobar)
4488           ac_case=lower
4489           ac_foo_bar=foo_bar
4490           ;;
4491        FOOBAR)
4492           ac_case=upper
4493           ac_foo_bar=FOO_BAR
4494           ;;
4495     esac
4496
4497     ac_ext=c
4498ac_cpp='$CPP $CPPFLAGS'
4499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502     ac_success_extra=no
4503     for ac_extra in "" "_"; do
4504        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4505        cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h.  */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4510/* end confdefs.h.  */
4511
4512/* Override any gcc2 internal prototype to avoid an error.  */
4513#ifdef __cplusplus
4514extern "C"
4515#endif
4516/* We use char because int might match the return type of a gcc2
4517   builtin and then its argument prototype would still apply.  */
4518char $ac_func ();
4519#ifdef F77_DUMMY_MAIN
4520
4521#  ifdef __cplusplus
4522     extern "C"
4523#  endif
4524   int F77_DUMMY_MAIN() { return 1; }
4525
4526#endif
4527int
4528main ()
4529{
4530$ac_func ();
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext conftest$ac_exeext
4536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537  (eval $ac_link) 2>conftest.er1
4538  ac_status=$?
4539  grep -v '^ *+' conftest.er1 >conftest.err
4540  rm -f conftest.er1
4541  cat conftest.err >&5
4542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543  (exit $ac_status); } &&
4544         { ac_try='test -z "$ac_c_werror_flag"
4545                         || test ! -s conftest.err'
4546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547  (eval $ac_try) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; } &&
4551         { ac_try='test -s conftest$ac_exeext'
4552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553  (eval $ac_try) 2>&5
4554  ac_status=$?
4555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556  (exit $ac_status); }; }; then
4557  ac_success_extra=yes; break
4558else
4559  echo "$as_me: failed program was:" >&5
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
4562fi
4563rm -f conftest.err conftest.$ac_objext \
4564      conftest$ac_exeext conftest.$ac_ext
4565     done
4566     ac_ext=f
4567ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4568ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4570
4571     if test "$ac_success_extra" = "yes"; then
4572        ac_cv_f77_mangling="$ac_case case"
4573        if test -z "$ac_underscore"; then
4574           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4575        else
4576           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4577        fi
4578        if test -z "$ac_extra"; then
4579           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4580        else
4581           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4582        fi
4583      else
4584        ac_cv_f77_mangling="unknown"
4585      fi
4586  else
4587     ac_cv_f77_mangling="unknown"
4588  fi
4589
4590  LIBS=$ac_save_LIBS
4591  rm -f cfortran_test* conftest*
4592else
4593  echo "$as_me: failed program was:" >&5
4594sed 's/^/| /' conftest.$ac_ext >&5
4595
4596{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4597See \`config.log' for more details." >&5
4598echo "$as_me: error: cannot compile a simple Fortran program
4599See \`config.log' for more details." >&2;}
4600   { (exit 1); exit 1; }; }
4601fi
4602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603
4604fi
4605echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4606echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4607
4608ac_ext=f
4609ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4610ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4612
4613
4614ac_ext=f
4615ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4616ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4618
4619
4620ac_ext=f
4621ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4622ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4624
4625
4626case $ac_cv_f77_mangling in
4627  "lower case, no underscore, no extra underscore")
4628          cat >>confdefs.h <<\_ACEOF
4629#define F77_FUNC(name,NAME) name
4630_ACEOF
4631
4632          cat >>confdefs.h <<\_ACEOF
4633#define F77_FUNC_(name,NAME) name
4634_ACEOF
4635 ;;
4636  "lower case, no underscore, extra underscore")
4637          cat >>confdefs.h <<\_ACEOF
4638#define F77_FUNC(name,NAME) name
4639_ACEOF
4640
4641          cat >>confdefs.h <<\_ACEOF
4642#define F77_FUNC_(name,NAME) name ## _
4643_ACEOF
4644 ;;
4645  "lower case, underscore, no extra underscore")
4646          cat >>confdefs.h <<\_ACEOF
4647#define F77_FUNC(name,NAME) name ## _
4648_ACEOF
4649
4650          cat >>confdefs.h <<\_ACEOF
4651#define F77_FUNC_(name,NAME) name ## _
4652_ACEOF
4653 ;;
4654  "lower case, underscore, extra underscore")
4655          cat >>confdefs.h <<\_ACEOF
4656#define F77_FUNC(name,NAME) name ## _
4657_ACEOF
4658
4659          cat >>confdefs.h <<\_ACEOF
4660#define F77_FUNC_(name,NAME) name ## __
4661_ACEOF
4662 ;;
4663  "upper case, no underscore, no extra underscore")
4664          cat >>confdefs.h <<\_ACEOF
4665#define F77_FUNC(name,NAME) NAME
4666_ACEOF
4667
4668          cat >>confdefs.h <<\_ACEOF
4669#define F77_FUNC_(name,NAME) NAME
4670_ACEOF
4671 ;;
4672  "upper case, no underscore, extra underscore")
4673          cat >>confdefs.h <<\_ACEOF
4674#define F77_FUNC(name,NAME) NAME
4675_ACEOF
4676
4677          cat >>confdefs.h <<\_ACEOF
4678#define F77_FUNC_(name,NAME) NAME ## _
4679_ACEOF
4680 ;;
4681  "upper case, underscore, no extra underscore")
4682          cat >>confdefs.h <<\_ACEOF
4683#define F77_FUNC(name,NAME) NAME ## _
4684_ACEOF
4685
4686          cat >>confdefs.h <<\_ACEOF
4687#define F77_FUNC_(name,NAME) NAME ## _
4688_ACEOF
4689 ;;
4690  "upper case, underscore, extra underscore")
4691          cat >>confdefs.h <<\_ACEOF
4692#define F77_FUNC(name,NAME) NAME ## _
4693_ACEOF
4694
4695          cat >>confdefs.h <<\_ACEOF
4696#define F77_FUNC_(name,NAME) NAME ## __
4697_ACEOF
4698 ;;
4699  *)
4700          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4701echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4702          ;;
4703esac
4704
4705ac_ext=f
4706ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4707ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4709
4710
4711# If FLIBS has been set by the user, we just restore its value here
4712if test x"$save_FLIBS" != x; then
4713  FLIBS="$save_FLIBS"
4714else
4715  # This is to correct a missing exclusion in autoconf 2.59
4716  if test x"$FLIBS" != x; then
4717    my_flibs=
4718    for flag in $FLIBS; do
4719      case $flag in
4720        -lcrt*.o) ;;
4721        -lcygwin) ;;
4722               *) my_flibs="$my_flibs $flag" ;;
4723      esac
4724    done
4725    FLIBS="$my_flibs"
4726  fi
4727
4728  case $build in
4729  # The following is a fix to define FLIBS for ifort on Windows
4730  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4731  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4732  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4733  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4734  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4735     *-cygwin* | *-mingw*)
4736       case "$F77" in
4737#         ifort* | */ifort* | IFORT* | */IFORT*)
4738#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4739#           if "$coin_debug_compile" = true ; then
4740#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4741#           else
4742#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4743#           fi
4744#           ;;
4745         compile_f2c*)
4746           FLIBS=`$F77 -FLIBS` ;;
4747       esac;;
4748     *-hp-*)
4749         FLIBS="$FLIBS -lm";;
4750     *-ibm-*)
4751         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4752     *-linux-*)
4753       case "$F77" in
4754         pgf77* | */pgf77* | pgf90* | */pgf90*)
4755# ask linker to go through the archives multiple times
4756# (the Fortran compiler seems to do that automatically...)
4757           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4758       esac
4759  esac
4760  ac_cv_f77_libs="$FLIBS"
4761fi
4762
4763ac_ext=c
4764ac_cpp='$CPP $CPPFLAGS'
4765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768
4769
4770
4771
4772# Check if pkg-config is available (to setup addlibs file)
4773
4774
4775# Check whether --enable-pkg-config or --disable-pkg-config was given.
4776if test "${enable_pkg_config+set}" = set; then
4777  enableval="$enable_pkg_config"
4778  use_pkgconfig="$enableval"
4779else
4780  use_pkgconfig=yes
4781fi;
4782
4783if test $use_pkgconfig = yes ; then
4784  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4785    if test -n "$ac_tool_prefix"; then
4786  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4787set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4788echo "$as_me:$LINENO: checking for $ac_word" >&5
4789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4790if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4791  echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793  case $PKG_CONFIG in
4794  [\\/]* | ?:[\\/]*)
4795  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4796  ;;
4797  *)
4798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803  for ac_exec_ext in '' $ac_executable_extensions; do
4804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807    break 2
4808  fi
4809done
4810done
4811
4812  ;;
4813esac
4814fi
4815PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4816
4817if test -n "$PKG_CONFIG"; then
4818  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4819echo "${ECHO_T}$PKG_CONFIG" >&6
4820else
4821  echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6
4823fi
4824
4825fi
4826if test -z "$ac_cv_path_PKG_CONFIG"; then
4827  ac_pt_PKG_CONFIG=$PKG_CONFIG
4828  # Extract the first word of "pkg-config", so it can be a program name with args.
4829set dummy pkg-config; ac_word=$2
4830echo "$as_me:$LINENO: checking for $ac_word" >&5
4831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835  case $ac_pt_PKG_CONFIG in
4836  [\\/]* | ?:[\\/]*)
4837  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4838  ;;
4839  *)
4840  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841for as_dir in $PATH
4842do
4843  IFS=$as_save_IFS
4844  test -z "$as_dir" && as_dir=.
4845  for ac_exec_ext in '' $ac_executable_extensions; do
4846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849    break 2
4850  fi
4851done
4852done
4853
4854  ;;
4855esac
4856fi
4857ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4858
4859if test -n "$ac_pt_PKG_CONFIG"; then
4860  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4861echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4862else
4863  echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865fi
4866
4867  PKG_CONFIG=$ac_pt_PKG_CONFIG
4868else
4869  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4870fi
4871
4872  fi
4873  if test -n "$PKG_CONFIG"; then
4874    _pkg_min_version=0.9.0
4875    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4876echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4877    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4878      echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
4880    else
4881      echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883      PKG_CONFIG=""
4884    fi
4885  fi
4886
4887  # check if pkg-config supports the short-errors flag
4888  if test -n "$PKG_CONFIG" && \
4889    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4890    pkg_short_errors=" --short-errors "
4891  else
4892    pkg_short_errors=""
4893  fi
4894fi
4895
4896
4897
4898if test -n "$PKG_CONFIG"; then
4899  COIN_HAS_PKGCONFIG_TRUE=
4900  COIN_HAS_PKGCONFIG_FALSE='#'
4901else
4902  COIN_HAS_PKGCONFIG_TRUE='#'
4903  COIN_HAS_PKGCONFIG_FALSE=
4904fi
4905
4906
4907
4908# assemble pkg-config search path for installed projects
4909COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4910
4911# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4912# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4913# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4914COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4915
4916
4917# Check whether --with-coin-instdir or --without-coin-instdir was given.
4918if test "${with_coin_instdir+set}" = set; then
4919  withval="$with_coin_instdir"
4920  if test -d "$withval"; then : ; else
4921     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4922echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4923   { (exit 1); exit 1; }; }
4924   fi
4925   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4926
4927fi;
4928
4929
4930
4931# assemble additional pkg-config search paths for uninstalled projects
4932if test x$coin_projectdir = xyes ; then
4933  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4934  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4935  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4936  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4937  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4938  if test -e ../coin_subdirs.txt ; then
4939    for i in `cat ../coin_subdirs.txt` ; do
4940      if test -d ../$i ; then
4941        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4942      fi
4943    done
4944  fi
4945
4946  if test -e ../../coin_subdirs.txt ; then
4947    for i in `cat ../../coin_subdirs.txt` ; do
4948      if test -d ../../$i ; then
4949        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4950      fi
4951    done
4952  fi
4953
4954
4955fi
4956
4957
4958
4959# Add FLIBS to LAPACK_PCLIBS, so that they get into the .pc files
4960LAPACK_PCLIBS="$FLIBS"
4961
4962
4963# Take care that optimization is disbled for DLAMCH.F
4964
4965if test "x$DLAMCH_FFLAGS" = x ; then
4966  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
4967  case $F77 in
4968    ifort* | */ifort* | IFORT* | */IFORT* )
4969      case $build in
4970        *-cygwin* | *-mingw*)
4971          DLAMCH_FFLAGS="$FFLAGS -Od"
4972          ;;
4973        *)
4974          DLAMCH_FFLAGS="$FFLAGS -O0"
4975          ;;
4976      esac
4977      ;;
4978    compile_f2c*)
4979      case "$CC" in
4980        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4981          DLAMCH_FFLAGS="$FFLAGS -Od"
4982        ;;
4983        *)
4984          DLAMCH_FFLAGS="$FFLAGS -O0"
4985        ;;
4986      esac
4987      ;;
4988    *)
4989      DLAMCH_FFLAGS="$FFLAGS -O0"
4990      ;;
4991  esac
4992fi
4993
4994
4995# Initialize autotools
4996{
4997
4998
4999
5000# START
5001
5002# Test if force_shared has been set
5003if test "x" = xforce_shared; then
5004  if test x$enable_shared = xno; then
5005    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5006echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5007   { (exit 1); exit 1; }; }
5008  fi
5009  enable_shared=yes;
5010else
5011  # On Cygwin and AIX, building DLLs doesn't work
5012  case $build in
5013    *-cygwin*)
5014      coin_disable_shared=yes
5015      platform=Cygwin
5016    ;;
5017    *-aix*)
5018      coin_disable_shared=yes
5019      platform=AIX
5020    ;;
5021    *-mingw*)
5022      coin_disable_shared=yes
5023      platform="Msys"
5024#      case "$CXX" in
5025#        cl*)
5026#          coin_disable_shared=yes
5027#          platform="Msys with cl"
5028#      ;;
5029#      esac
5030    ;;
5031  esac
5032fi
5033if test x"$coin_disable_shared" = xyes; then
5034  if test x"$enable_shared" = xyes; then
5035    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5036echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5037  fi
5038  enable_shared=no
5039fi
5040# By default, we only want the shared objects to be compiled
5041# Check whether --enable-static or --disable-static was given.
5042if test "${enable_static+set}" = set; then
5043  enableval="$enable_static"
5044  p=${PACKAGE-default}
5045    case $enableval in
5046    yes) enable_static=yes ;;
5047    no) enable_static=no ;;
5048    *)
5049     enable_static=no
5050      # Look at the argument we got.  We use all the common list separators.
5051      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5052      for pkg in $enableval; do
5053        IFS="$lt_save_ifs"
5054        if test "X$pkg" = "X$p"; then
5055          enable_static=yes
5056        fi
5057      done
5058      IFS="$lt_save_ifs"
5059      ;;
5060    esac
5061else
5062  enable_static=no
5063fi;
5064
5065
5066
5067
5068# Initialize automake
5069echo "$as_me:$LINENO: checking for egrep" >&5
5070echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5071if test "${ac_cv_prog_egrep+set}" = set; then
5072  echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5075    then ac_cv_prog_egrep='grep -E'
5076    else ac_cv_prog_egrep='egrep'
5077    fi
5078fi
5079echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5080echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5081 EGREP=$ac_cv_prog_egrep
5082
5083
5084am__api_version="1.9"
5085# Find a good install program.  We prefer a C program (faster),
5086# so one script is as good as another.  But avoid the broken or
5087# incompatible versions:
5088# SysV /etc/install, /usr/sbin/install
5089# SunOS /usr/etc/install
5090# IRIX /sbin/install
5091# AIX /bin/install
5092# AmigaOS /C/install, which installs bootblocks on floppy discs
5093# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5094# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5095# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5096# OS/2's system install, which has a completely different semantic
5097# ./install, which can be erroneously created by make from ./install.sh.
5098echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5099echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5100if test -z "$INSTALL"; then
5101if test "${ac_cv_path_install+set}" = set; then
5102  echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107  IFS=$as_save_IFS
5108  test -z "$as_dir" && as_dir=.
5109  # Account for people who put trailing slashes in PATH elements.
5110case $as_dir/ in
5111  ./ | .// | /cC/* | \
5112  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5113  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5114  /usr/ucb/* ) ;;
5115  *)
5116    # OSF1 and SCO ODT 3.0 have their own names for install.
5117    # Don't use installbsd from OSF since it installs stuff as root
5118    # by default.
5119    for ac_prog in ginstall scoinst install; do
5120      for ac_exec_ext in '' $ac_executable_extensions; do
5121        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5122          if test $ac_prog = install &&
5123            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5124            # AIX install.  It has an incompatible calling convention.
5125            :
5126          elif test $ac_prog = install &&
5127            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5128            # program-specific install script used by HP pwplus--don't use.
5129            :
5130          else
5131            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5132            break 3
5133          fi
5134        fi
5135      done
5136    done
5137    ;;
5138esac
5139done
5140
5141
5142fi
5143  if test "${ac_cv_path_install+set}" = set; then
5144    INSTALL=$ac_cv_path_install
5145  else
5146    # As a last resort, use the slow shell script.  We don't cache a
5147    # path for INSTALL within a source directory, because that will
5148    # break other packages using the cache if that directory is
5149    # removed, or if the path is relative.
5150    INSTALL=$ac_install_sh
5151  fi
5152fi
5153echo "$as_me:$LINENO: result: $INSTALL" >&5
5154echo "${ECHO_T}$INSTALL" >&6
5155
5156# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5157# It thinks the first close brace ends the variable substitution.
5158test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5159
5160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5161
5162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5163
5164echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5165echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5166# Just in case
5167sleep 1
5168echo timestamp > conftest.file
5169# Do `set' in a subshell so we don't clobber the current shell's
5170# arguments.  Must try -L first in case configure is actually a
5171# symlink; some systems play weird games with the mod time of symlinks
5172# (eg FreeBSD returns the mod time of the symlink's containing
5173# directory).
5174if (
5175   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5176   if test "$*" = "X"; then
5177      # -L didn't work.
5178      set X `ls -t $srcdir/configure conftest.file`
5179   fi
5180   rm -f conftest.file
5181   if test "$*" != "X $srcdir/configure conftest.file" \
5182      && test "$*" != "X conftest.file $srcdir/configure"; then
5183
5184      # If neither matched, then we have a broken ls.  This can happen
5185      # if, for instance, CONFIG_SHELL is bash and it inherits a
5186      # broken ls alias from the environment.  This has actually
5187      # happened.  Such a system could not be considered "sane".
5188      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5189alias in your environment" >&5
5190echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5191alias in your environment" >&2;}
5192   { (exit 1); exit 1; }; }
5193   fi
5194
5195   test "$2" = conftest.file
5196   )
5197then
5198   # Ok.
5199   :
5200else
5201   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5202Check your system clock" >&5
5203echo "$as_me: error: newly created file is older than distributed files!
5204Check your system clock" >&2;}
5205   { (exit 1); exit 1; }; }
5206fi
5207echo "$as_me:$LINENO: result: yes" >&5
5208echo "${ECHO_T}yes" >&6
5209test "$program_prefix" != NONE &&
5210  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5211# Use a double $ so make ignores it.
5212test "$program_suffix" != NONE &&
5213  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5214# Double any \ or $.  echo might interpret backslashes.
5215# By default was `s,x,x', remove it if useless.
5216cat <<\_ACEOF >conftest.sed
5217s/[\\$]/&&/g;s/;s,x,x,$//
5218_ACEOF
5219program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5220rm conftest.sed
5221
5222# expand $ac_aux_dir to an absolute path
5223am_aux_dir=`cd $ac_aux_dir && pwd`
5224
5225test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5226# Use eval to expand $SHELL
5227if eval "$MISSING --run true"; then
5228  am_missing_run="$MISSING --run "
5229else
5230  am_missing_run=
5231  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5232echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5233fi
5234
5235if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5236  # We used to keeping the `.' as first argument, in order to
5237  # allow $(mkdir_p) to be used without argument.  As in
5238  #   $(mkdir_p) $(somedir)
5239  # where $(somedir) is conditionally defined.  However this is wrong
5240  # for two reasons:
5241  #  1. if the package is installed by a user who cannot write `.'
5242  #     make install will fail,
5243  #  2. the above comment should most certainly read
5244  #     $(mkdir_p) $(DESTDIR)$(somedir)
5245  #     so it does not work when $(somedir) is undefined and
5246  #     $(DESTDIR) is not.
5247  #  To support the latter case, we have to write
5248  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5249  #  so the `.' trick is pointless.
5250  mkdir_p='mkdir -p --'
5251else
5252  # On NextStep and OpenStep, the `mkdir' command does not
5253  # recognize any option.  It will interpret all options as
5254  # directories to create, and then abort because `.' already
5255  # exists.
5256  for d in ./-p ./--version;
5257  do
5258    test -d $d && rmdir $d
5259  done
5260  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5261  if test -f "$ac_aux_dir/mkinstalldirs"; then
5262    mkdir_p='$(mkinstalldirs)'
5263  else
5264    mkdir_p='$(install_sh) -d'
5265  fi
5266fi
5267
5268for ac_prog in gawk mawk nawk awk
5269do
5270  # Extract the first word of "$ac_prog", so it can be a program name with args.
5271set dummy $ac_prog; ac_word=$2
5272echo "$as_me:$LINENO: checking for $ac_word" >&5
5273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274if test "${ac_cv_prog_AWK+set}" = set; then
5275  echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277  if test -n "$AWK"; then
5278  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283  IFS=$as_save_IFS
5284  test -z "$as_dir" && as_dir=.
5285  for ac_exec_ext in '' $ac_executable_extensions; do
5286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287    ac_cv_prog_AWK="$ac_prog"
5288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289    break 2
5290  fi
5291done
5292done
5293
5294fi
5295fi
5296AWK=$ac_cv_prog_AWK
5297if test -n "$AWK"; then
5298  echo "$as_me:$LINENO: result: $AWK" >&5
5299echo "${ECHO_T}$AWK" >&6
5300else
5301  echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
5304
5305  test -n "$AWK" && break
5306done
5307
5308echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5309echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5310set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5311if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  cat >conftest.make <<\_ACEOF
5315all:
5316        @echo 'ac_maketemp="$(MAKE)"'
5317_ACEOF
5318# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5319eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5320if test -n "$ac_maketemp"; then
5321  eval ac_cv_prog_make_${ac_make}_set=yes
5322else
5323  eval ac_cv_prog_make_${ac_make}_set=no
5324fi
5325rm -f conftest.make
5326fi
5327if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5328  echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
5330  SET_MAKE=
5331else
5332  echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334  SET_MAKE="MAKE=${MAKE-make}"
5335fi
5336
5337rm -rf .tst 2>/dev/null
5338mkdir .tst 2>/dev/null
5339if test -d .tst; then
5340  am__leading_dot=.
5341else
5342  am__leading_dot=_
5343fi
5344rmdir .tst 2>/dev/null
5345
5346DEPDIR="${am__leading_dot}deps"
5347
5348          ac_config_commands="$ac_config_commands depfiles"
5349
5350
5351am_make=${MAKE-make}
5352cat > confinc << 'END'
5353am__doit:
5354        @echo done
5355.PHONY: am__doit
5356END
5357# If we don't find an include directive, just comment out the code.
5358echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5359echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5360am__include="#"
5361am__quote=
5362_am_result=none
5363# First try GNU make style include.
5364echo "include confinc" > confmf
5365# We grep out `Entering directory' and `Leaving directory'
5366# messages which can occur if `w' ends up in MAKEFLAGS.
5367# In particular we don't look at `^make:' because GNU make might
5368# be invoked under some other name (usually "gmake"), in which
5369# case it prints its new name instead of `make'.
5370if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5371   am__include=include
5372   am__quote=
5373   _am_result=GNU
5374fi
5375# Now try BSD make style include.
5376if test "$am__include" = "#"; then
5377   echo '.include "confinc"' > confmf
5378   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5379      am__include=.include
5380      am__quote="\""
5381      _am_result=BSD
5382   fi
5383fi
5384
5385
5386echo "$as_me:$LINENO: result: $_am_result" >&5
5387echo "${ECHO_T}$_am_result" >&6
5388rm -f confinc confmf
5389
5390# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5391if test "${enable_dependency_tracking+set}" = set; then
5392  enableval="$enable_dependency_tracking"
5393
5394fi;
5395if test "x$enable_dependency_tracking" != xno; then
5396  am_depcomp="$ac_aux_dir/depcomp"
5397  AMDEPBACKSLASH='\'
5398fi
5399
5400
5401if test "x$enable_dependency_tracking" != xno; then
5402  AMDEP_TRUE=
5403  AMDEP_FALSE='#'
5404else
5405  AMDEP_TRUE='#'
5406  AMDEP_FALSE=
5407fi
5408
5409
5410
5411
5412
5413# AC_MSG_NOTICE([Beginning automake initialisation.])
5414# Stuff for automake
5415# test to see if srcdir already configured
5416if test "`cd $srcdir && pwd`" != "`pwd`" &&
5417   test -f $srcdir/config.status; then
5418  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5419echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5420   { (exit 1); exit 1; }; }
5421fi
5422
5423# test whether we have cygpath
5424if test -z "$CYGPATH_W"; then
5425  if (cygpath --version) >/dev/null 2>/dev/null; then
5426    CYGPATH_W='cygpath -w'
5427  else
5428    CYGPATH_W=echo
5429  fi
5430fi
5431
5432
5433# Define the identity of the package.
5434 PACKAGE='thirdpartylapack'
5435 VERSION='trunk'
5436
5437
5438cat >>confdefs.h <<_ACEOF
5439#define PACKAGE "$PACKAGE"
5440_ACEOF
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define VERSION "$VERSION"
5445_ACEOF
5446
5447# Some tools Automake needs.
5448
5449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5450
5451
5452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5453
5454
5455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5456
5457
5458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5459
5460
5461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5462
5463install_sh=${install_sh-"$am_aux_dir/install-sh"}
5464
5465# Installed binaries are usually stripped using `strip' when the user
5466# run `make install-strip'.  However `strip' might not be the right
5467# tool to use in cross-compilation environments, therefore Automake
5468# will honor the `STRIP' environment variable to overrule this program.
5469if test "$cross_compiling" != no; then
5470  if test -n "$ac_tool_prefix"; then
5471  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5472set dummy ${ac_tool_prefix}strip; ac_word=$2
5473echo "$as_me:$LINENO: checking for $ac_word" >&5
5474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475if test "${ac_cv_prog_STRIP+set}" = set; then
5476  echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478  if test -n "$STRIP"; then
5479  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5480else
5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484  IFS=$as_save_IFS
5485  test -z "$as_dir" && as_dir=.
5486  for ac_exec_ext in '' $ac_executable_extensions; do
5487  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5490    break 2
5491  fi
5492done
5493done
5494
5495fi
5496fi
5497STRIP=$ac_cv_prog_STRIP
5498if test -n "$STRIP"; then
5499  echo "$as_me:$LINENO: result: $STRIP" >&5
5500echo "${ECHO_T}$STRIP" >&6
5501else
5502  echo "$as_me:$LINENO: result: no" >&5
5503echo "${ECHO_T}no" >&6
5504fi
5505
5506fi
5507if test -z "$ac_cv_prog_STRIP"; then
5508  ac_ct_STRIP=$STRIP
5509  # Extract the first word of "strip", so it can be a program name with args.
5510set dummy strip; ac_word=$2
5511echo "$as_me:$LINENO: checking for $ac_word" >&5
5512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5513if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5514  echo $ECHO_N "(cached) $ECHO_C" >&6
5515else
5516  if test -n "$ac_ct_STRIP"; then
5517  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524  for ac_exec_ext in '' $ac_executable_extensions; do
5525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526    ac_cv_prog_ac_ct_STRIP="strip"
5527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531done
5532
5533  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5534fi
5535fi
5536ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5537if test -n "$ac_ct_STRIP"; then
5538  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5539echo "${ECHO_T}$ac_ct_STRIP" >&6
5540else
5541  echo "$as_me:$LINENO: result: no" >&5
5542echo "${ECHO_T}no" >&6
5543fi
5544
5545  STRIP=$ac_ct_STRIP
5546else
5547  STRIP="$ac_cv_prog_STRIP"
5548fi
5549
5550fi
5551INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5552
5553# We need awk for the "check" target.  The system "awk" is bad on
5554# some platforms.
5555# Always define AMTAR for backward compatibility.
5556
5557AMTAR=${AMTAR-"${am_missing_run}tar"}
5558
5559am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5560
5561
5562
5563
5564depcc="$CC"   am_compiler_list=
5565
5566echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5567echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5568if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5572  # We make a subdir and do the tests there.  Otherwise we can end up
5573  # making bogus files that we don't know about and never remove.  For
5574  # instance it was reported that on HP-UX the gcc test will end up
5575  # making a dummy file named `D' -- because `-MD' means `put the output
5576  # in D'.
5577  mkdir conftest.dir
5578  # Copy depcomp to subdir because otherwise we won't find it if we're
5579  # using a relative directory.
5580  cp "$am_depcomp" conftest.dir
5581  cd conftest.dir
5582  # We will build objects and dependencies in a subdirectory because
5583  # it helps to detect inapplicable dependency modes.  For instance
5584  # both Tru64's cc and ICC support -MD to output dependencies as a
5585  # side effect of compilation, but ICC will put the dependencies in
5586  # the current directory while Tru64 will put them in the object
5587  # directory.
5588  mkdir sub
5589
5590  am_cv_CC_dependencies_compiler_type=none
5591  if test "$am_compiler_list" = ""; then
5592     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5593  fi
5594  for depmode in $am_compiler_list; do
5595    # Setup a source with many dependencies, because some compilers
5596    # like to wrap large dependency lists on column 80 (with \), and
5597    # we should not choose a depcomp mode which is confused by this.
5598    #
5599    # We need to recreate these files for each test, as the compiler may
5600    # overwrite some of them when testing with obscure command lines.
5601    # This happens at least with the AIX C compiler.
5602    : > sub/conftest.c
5603    for i in 1 2 3 4 5 6; do
5604      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5605      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5606      # Solaris 8's {/usr,}/bin/sh.
5607      touch sub/conftst$i.h
5608    done
5609    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5610
5611    case $depmode in
5612    nosideeffect)
5613      # after this tag, mechanisms are not by side-effect, so they'll
5614      # only be used when explicitly requested
5615      if test "x$enable_dependency_tracking" = xyes; then
5616        continue
5617      else
5618        break
5619      fi
5620      ;;
5621    none) break ;;
5622    esac
5623    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5624    # mode.  It turns out that the SunPro C++ compiler does not properly
5625    # handle `-M -o', and we need to detect this.
5626    if depmode=$depmode \
5627       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5628       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5629       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5630         >/dev/null 2>conftest.err &&
5631       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5632       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5633       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5634      # icc doesn't choke on unknown options, it will just issue warnings
5635      # or remarks (even with -Werror).  So we grep stderr for any message
5636      # that says an option was ignored or not supported.
5637      # When given -MP, icc 7.0 and 7.1 complain thusly:
5638      #   icc: Command line warning: ignoring option '-M'; no argument required
5639      # The diagnosis changed in icc 8.0:
5640      #   icc: Command line remark: option '-MP' not supported
5641      if (grep 'ignoring option' conftest.err ||
5642          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5643        am_cv_CC_dependencies_compiler_type=$depmode
5644        break
5645      fi
5646    fi
5647  done
5648
5649  cd ..
5650  rm -rf conftest.dir
5651else
5652  am_cv_CC_dependencies_compiler_type=none
5653fi
5654
5655fi
5656echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5657echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5658CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5659
5660
5661
5662if
5663  test "x$enable_dependency_tracking" != xno \
5664  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5665  am__fastdepCC_TRUE=
5666  am__fastdepCC_FALSE='#'
5667else
5668  am__fastdepCC_TRUE='#'
5669  am__fastdepCC_FALSE=
5670fi
5671
5672
5673
5674echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5675echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5676    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5677if test "${enable_maintainer_mode+set}" = set; then
5678  enableval="$enable_maintainer_mode"
5679  USE_MAINTAINER_MODE=$enableval
5680else
5681  USE_MAINTAINER_MODE=no
5682fi;
5683  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5684echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5685
5686
5687if test $USE_MAINTAINER_MODE = yes; then
5688  MAINTAINER_MODE_TRUE=
5689  MAINTAINER_MODE_FALSE='#'
5690else
5691  MAINTAINER_MODE_TRUE='#'
5692  MAINTAINER_MODE_FALSE=
5693fi
5694
5695  MAINT=$MAINTAINER_MODE_TRUE
5696
5697
5698
5699coin_have_externals=no
5700if test "$enable_maintainer_mode" = yes; then
5701
5702  # If maintainer mode is chosen, we make sure that the correct versions
5703  # of the tools are used, and that we know where libtool.m4 is (to
5704  # recreate acinclude.m4)
5705
5706
5707  LIBTOOLM4=
5708  # Normally, $HOME
5709  AUTOTOOLS_DFLT=$HOME
5710
5711  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5712echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5713if test "${ac_cv_use_correct_autotools+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716  ac_cv_use_correct_autotools=check
5717fi
5718echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5719echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5720
5721  if test $ac_cv_use_correct_autotools = check; then
5722    ac_cv_use_correct_autotools=yes
5723    # Check if we have autoconf
5724    # Extract the first word of "autoconf", so it can be a program name with args.
5725set dummy autoconf; ac_word=$2
5726echo "$as_me:$LINENO: checking for $ac_word" >&5
5727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728if test "${ac_cv_prog_have_autoconf+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731  if test -n "$have_autoconf"; then
5732  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737  IFS=$as_save_IFS
5738  test -z "$as_dir" && as_dir=.
5739  for ac_exec_ext in '' $ac_executable_extensions; do
5740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741    ac_cv_prog_have_autoconf="yes"
5742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743    break 2
5744  fi
5745done
5746done
5747
5748  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5749fi
5750fi
5751have_autoconf=$ac_cv_prog_have_autoconf
5752if test -n "$have_autoconf"; then
5753  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5754echo "${ECHO_T}$have_autoconf" >&6
5755else
5756  echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758fi
5759
5760    if test $have_autoconf = no; then
5761      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5762echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5763   { (exit 1); exit 1; }; }
5764    fi
5765
5766    # Check whether autoconf is the correct version
5767    correct_version='2.59'
5768    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5769    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5770echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5771    autoconf --version > confauto.out 2>&1
5772    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5773      echo "$as_me:$LINENO: result: yes" >&5
5774echo "${ECHO_T}yes" >&6
5775    else
5776      rm -f confauto.out
5777      echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5780echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5781   { (exit 1); exit 1; }; }
5782    fi
5783    rm -f confauto.out
5784
5785    # Check if the executable autoconf is picked up from the correct location
5786    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5787echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5788    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5789    autoconf_dir=`cd $autoconf_dir; pwd`
5790    if test x$AUTOTOOLS_DIR = x; then
5791      want_dir=$AUTOTOOLS_DFLT/bin
5792    else
5793      want_dir=$AUTOTOOLS_DIR/bin
5794    fi
5795    if test $autoconf_dir = `cd $want_dir; pwd`; then
5796      echo "$as_me:$LINENO: result: yes" >&5
5797echo "${ECHO_T}yes" >&6
5798    else
5799      rm -f confauto.out
5800      echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5803echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5804   { (exit 1); exit 1; }; }
5805    fi
5806
5807    # Check if we have automake
5808    # Extract the first word of "automake", so it can be a program name with args.
5809set dummy automake; ac_word=$2
5810echo "$as_me:$LINENO: checking for $ac_word" >&5
5811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5812if test "${ac_cv_prog_have_automake+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  if test -n "$have_automake"; then
5816  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5817else
5818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in $PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823  for ac_exec_ext in '' $ac_executable_extensions; do
5824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825    ac_cv_prog_have_automake="yes"
5826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827    break 2
5828  fi
5829done
5830done
5831
5832  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5833fi
5834fi
5835have_automake=$ac_cv_prog_have_automake
5836if test -n "$have_automake"; then
5837  echo "$as_me:$LINENO: result: $have_automake" >&5
5838echo "${ECHO_T}$have_automake" >&6
5839else
5840  echo "$as_me:$LINENO: result: no" >&5
5841echo "${ECHO_T}no" >&6
5842fi
5843
5844    if test $have_automake = no; then
5845      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5846echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5847   { (exit 1); exit 1; }; }
5848    fi
5849
5850    # Check whether automake is the correct version
5851    correct_version='1.9.6'
5852    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5853    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5854echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5855    automake --version > confauto.out 2>&1
5856    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5857      echo "$as_me:$LINENO: result: yes" >&5
5858echo "${ECHO_T}yes" >&6
5859    else
5860      rm -f confauto.out
5861      echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5864echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5865   { (exit 1); exit 1; }; }
5866    fi
5867    rm -f confauto.out
5868
5869    # Check if the executable automake is picked up from the correct location
5870    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5871echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5872    automake_dir=`which automake | sed -e 's=/automake=='`
5873    automake_dir=`cd $automake_dir; pwd`
5874    if test x$AUTOTOOLS_DIR = x; then
5875      want_dir=$AUTOTOOLS_DFLT/bin
5876    else
5877      want_dir=$AUTOTOOLS_DIR/bin
5878    fi
5879    if test $automake_dir = `cd $want_dir; pwd`; then
5880      echo "$as_me:$LINENO: result: yes" >&5
5881echo "${ECHO_T}yes" >&6
5882    else
5883      rm -f confauto.out
5884      echo "$as_me:$LINENO: result: no" >&5
5885echo "${ECHO_T}no" >&6
5886      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5887echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5888   { (exit 1); exit 1; }; }
5889    fi
5890
5891    # Check if this is the correct version of libtool (with escaped dots)
5892    if test x$AUTOTOOLS_DIR = x; then
5893      want_dir=$AUTOTOOLS_DFLT/share
5894    else
5895      want_dir=$AUTOTOOLS_DIR/share
5896    fi
5897    correct_version='1.5.22'
5898    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5899    if test -r $want_dir/libtool/ltmain.sh; then
5900  have_ltmain=yes
5901  :
5902else
5903  have_ltmain=no
5904  :
5905fi
5906
5907    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5908echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5909    if test $have_ltmain = yes; then
5910    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5911        echo "$as_me:$LINENO: result: yes" >&5
5912echo "${ECHO_T}yes" >&6
5913      else
5914        echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6
5916        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5917echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5918   { (exit 1); exit 1; }; }
5919      fi
5920    else
5921      echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5924echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5925   { (exit 1); exit 1; }; }
5926    fi
5927  fi
5928
5929  # Check if we can find the libtool file
5930  if test x$AUTOTOOLS_DIR = x; then
5931    want_dir=$AUTOTOOLS_DFLT/share
5932  else
5933    want_dir=$AUTOTOOLS_DIR/share
5934  fi
5935  if test -r $want_dir/aclocal/libtool.m4; then
5936  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5937  :
5938else
5939  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5940echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5941   { (exit 1); exit 1; }; }
5942  :
5943fi
5944
5945
5946  # Check if we have an Externals file
5947  if test -r $srcdir/Externals; then
5948    coin_have_externals=yes
5949  fi
5950  # Check if subversion is installed and understands https
5951  # Extract the first word of "svn", so it can be a program name with args.
5952set dummy svn; ac_word=$2
5953echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955if test "${ac_cv_prog_have_svn+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  if test -n "$have_svn"; then
5959  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964  IFS=$as_save_IFS
5965  test -z "$as_dir" && as_dir=.
5966  for ac_exec_ext in '' $ac_executable_extensions; do
5967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968    ac_cv_prog_have_svn="yes"
5969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970    break 2
5971  fi
5972done
5973done
5974
5975  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5976fi
5977fi
5978have_svn=$ac_cv_prog_have_svn
5979if test -n "$have_svn"; then
5980  echo "$as_me:$LINENO: result: $have_svn" >&5
5981echo "${ECHO_T}$have_svn" >&6
5982else
5983  echo "$as_me:$LINENO: result: no" >&5
5984echo "${ECHO_T}no" >&6
5985fi
5986
5987  if test x$have_svn = xyes; then
5988    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5989echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5990if test "${ac_cv_svn_understands_https+set}" = set; then
5991  echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993  svn --version > confauto.out 2>&1
5994                    if $EGREP https confauto.out >/dev/null 2>&1; then
5995                      ac_cv_svn_understands_https=yes
5996                    else
5997                      ac_cv_svn_understands_https=no
5998                      have_svn=no
5999                      ac_cv_prog_have_svn=no
6000                    fi
6001                    rm -f confauto.out
6002fi
6003echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6004echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6005  fi
6006
6007  # Find the location of the BuildTools directory
6008  BUILDTOOLSDIR=
6009  if test -r $srcdir/BuildTools/coin.m4; then
6010    BUILDTOOLSDIR=$srcdir/BuildTools
6011  else
6012    if test -r $srcdir/../BuildTools/coin.m4; then
6013      BUILDTOOLSDIR=$srcdir/../BuildTools
6014    else
6015      if test -r $srcdir/../../BuildTools/coin.m4; then
6016        BUILDTOOLSDIR=$srcdir/../../BuildTools
6017      else
6018        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6019echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6020   { (exit 1); exit 1; }; }
6021      fi
6022    fi
6023  fi
6024
6025
6026  # The following variable is set to the name of the directory where
6027  # the autotool scripts are located
6028
6029  AUX_DIR=$ac_aux_dir
6030fi
6031
6032# helpful variable for the base directory of this package
6033abs_source_dir=`cd $srcdir; pwd`
6034
6035
6036# Stuff for example Makefiles
6037if test x$prefix = xNONE; then
6038  full_prefix=$ac_default_prefix
6039else
6040  full_prefix=$prefix
6041fi
6042full_prefix=`cd $full_prefix ; pwd`
6043
6044abs_lib_dir=$full_prefix/lib/coin
6045
6046abs_include_dir=$full_prefix/include
6047
6048abs_bin_dir=$full_prefix/bin
6049
6050
6051
6052if test $coin_have_externals = yes && test x$have_svn = xyes; then
6053  HAVE_EXTERNALS_TRUE=
6054  HAVE_EXTERNALS_FALSE='#'
6055else
6056  HAVE_EXTERNALS_TRUE='#'
6057  HAVE_EXTERNALS_FALSE=
6058fi
6059
6060
6061# AC_MSG_NOTICE([End automake initialisation.])
6062
6063
6064
6065LIBTOOL=
6066if test -r ../libtool; then
6067  coin_config_dir=..
6068  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6069fi
6070if test "x$LIBTOOL" = x; then
6071  if test -r ../../libtool; then
6072    coin_config_dir=../..
6073    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6074  fi
6075fi
6076
6077if test "x$LIBTOOL" = x; then
6078# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6079  # Stuff for libtool
6080  # Check whether --enable-shared or --disable-shared was given.
6081if test "${enable_shared+set}" = set; then
6082  enableval="$enable_shared"
6083  p=${PACKAGE-default}
6084    case $enableval in
6085    yes) enable_shared=yes ;;
6086    no) enable_shared=no ;;
6087    *)
6088      enable_shared=no
6089      # Look at the argument we got.  We use all the common list separators.
6090      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6091      for pkg in $enableval; do
6092        IFS="$lt_save_ifs"
6093        if test "X$pkg" = "X$p"; then
6094          enable_shared=yes
6095        fi
6096      done
6097      IFS="$lt_save_ifs"
6098      ;;
6099    esac
6100else
6101  enable_shared=yes
6102fi;
6103
6104# Check whether --enable-fast-install or --disable-fast-install was given.
6105if test "${enable_fast_install+set}" = set; then
6106  enableval="$enable_fast_install"
6107  p=${PACKAGE-default}
6108    case $enableval in
6109    yes) enable_fast_install=yes ;;
6110    no) enable_fast_install=no ;;
6111    *)
6112      enable_fast_install=no
6113      # Look at the argument we got.  We use all the common list separators.
6114      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6115      for pkg in $enableval; do
6116        IFS="$lt_save_ifs"
6117        if test "X$pkg" = "X$p"; then
6118          enable_fast_install=yes
6119        fi
6120      done
6121      IFS="$lt_save_ifs"
6122      ;;
6123    esac
6124else
6125  enable_fast_install=yes
6126fi;
6127
6128echo "$as_me:$LINENO: checking host system type" >&5
6129echo $ECHO_N "checking host system type... $ECHO_C" >&6
6130if test "${ac_cv_host+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133  ac_cv_host_alias=$host_alias
6134test -z "$ac_cv_host_alias" &&
6135  ac_cv_host_alias=$ac_cv_build_alias
6136ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6137  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6138echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6139   { (exit 1); exit 1; }; }
6140
6141fi
6142echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6143echo "${ECHO_T}$ac_cv_host" >&6
6144host=$ac_cv_host
6145host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6146host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6147host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6148
6149
6150echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6151echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6152if test "${lt_cv_path_SED+set}" = set; then
6153  echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155  # Loop through the user's path and test for sed and gsed.
6156# Then use that list of sed's as ones to test for truncation.
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160  IFS=$as_save_IFS
6161  test -z "$as_dir" && as_dir=.
6162  for lt_ac_prog in sed gsed; do
6163    for ac_exec_ext in '' $ac_executable_extensions; do
6164      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6165        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6166      fi
6167    done
6168  done
6169done
6170lt_ac_max=0
6171lt_ac_count=0
6172# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6173# along with /bin/sed that truncates output.
6174for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6175  test ! -f $lt_ac_sed && continue
6176  cat /dev/null > conftest.in
6177  lt_ac_count=0
6178  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6179  # Check for GNU sed and select it if it is found.
6180  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6181    lt_cv_path_SED=$lt_ac_sed
6182    break
6183  fi
6184  while true; do
6185    cat conftest.in conftest.in >conftest.tmp
6186    mv conftest.tmp conftest.in
6187    cp conftest.in conftest.nl
6188    echo >>conftest.nl
6189    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6190    cmp -s conftest.out conftest.nl || break
6191    # 10000 chars as input seems more than enough
6192    test $lt_ac_count -gt 10 && break
6193    lt_ac_count=`expr $lt_ac_count + 1`
6194    if test $lt_ac_count -gt $lt_ac_max; then
6195      lt_ac_max=$lt_ac_count
6196      lt_cv_path_SED=$lt_ac_sed
6197    fi
6198  done
6199done
6200
6201fi
6202
6203SED=$lt_cv_path_SED
6204echo "$as_me:$LINENO: result: $SED" >&5
6205echo "${ECHO_T}$SED" >&6
6206
6207
6208# Check whether --with-gnu-ld or --without-gnu-ld was given.
6209if test "${with_gnu_ld+set}" = set; then
6210  withval="$with_gnu_ld"
6211  test "$withval" = no || with_gnu_ld=yes
6212else
6213  with_gnu_ld=no
6214fi;
6215ac_prog=ld
6216if test "$GCC" = yes; then
6217  # Check if gcc -print-prog-name=ld gives a path.
6218  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6219echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6220  case $host in
6221  *-*-mingw*)
6222    # gcc leaves a trailing carriage return which upsets mingw
6223    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6224  *)
6225    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6226  esac
6227  case $ac_prog in
6228    # Accept absolute paths.
6229    [\\/]* | ?:[\\/]*)
6230      re_direlt='/[^/][^/]*/\.\./'
6231      # Canonicalize the pathname of ld
6232      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6233      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6234        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6235      done
6236      test -z "$LD" && LD="$ac_prog"
6237      ;;
6238  "")
6239    # If it fails, then pretend we aren't using GCC.
6240    ac_prog=ld
6241    ;;
6242  *)
6243    # If it is relative, then search for the first ld in PATH.
6244    with_gnu_ld=unknown
6245    ;;
6246  esac
6247elif test "$with_gnu_ld" = yes; then
6248  echo "$as_me:$LINENO: checking for GNU ld" >&5
6249echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6250else
6251  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6252echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6253fi
6254if test "${lt_cv_path_LD+set}" = set; then
6255  echo $ECHO_N "(cached) $ECHO_C" >&6
6256else
6257  if test -z "$LD"; then
6258  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6259  for ac_dir in $PATH; do
6260    IFS="$lt_save_ifs"
6261    test -z "$ac_dir" && ac_dir=.
6262    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6263      lt_cv_path_LD="$ac_dir/$ac_prog"
6264      # Check to see if the program is GNU ld.  I'd rather use --version,
6265      # but apparently some variants of GNU ld only accept -v.
6266      # Break only if it was the GNU/non-GNU ld that we prefer.
6267      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6268      *GNU* | *'with BFD'*)
6269        test "$with_gnu_ld" != no && break
6270        ;;
6271      *)
6272        test "$with_gnu_ld" != yes && break
6273        ;;
6274      esac
6275    fi
6276  done
6277  IFS="$lt_save_ifs"
6278else
6279  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6280fi
6281fi
6282
6283LD="$lt_cv_path_LD"
6284if test -n "$LD"; then
6285  echo "$as_me:$LINENO: result: $LD" >&5
6286echo "${ECHO_T}$LD" >&6
6287else
6288  echo "$as_me:$LINENO: result: no" >&5
6289echo "${ECHO_T}no" >&6
6290fi
6291test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6292echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6293   { (exit 1); exit 1; }; }
6294echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6295echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6296if test "${lt_cv_prog_gnu_ld+set}" = set; then
6297  echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6300case `$LD -v 2>&1 </dev/null` in
6301*GNU* | *'with BFD'*)
6302  lt_cv_prog_gnu_ld=yes
6303  ;;
6304*)
6305  lt_cv_prog_gnu_ld=no
6306  ;;
6307esac
6308fi
6309echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6310echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6311with_gnu_ld=$lt_cv_prog_gnu_ld
6312
6313
6314echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6315echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6316if test "${lt_cv_ld_reload_flag+set}" = set; then
6317  echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319  lt_cv_ld_reload_flag='-r'
6320fi
6321echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6322echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6323reload_flag=$lt_cv_ld_reload_flag
6324case $reload_flag in
6325"" | " "*) ;;
6326*) reload_flag=" $reload_flag" ;;
6327esac
6328reload_cmds='$LD$reload_flag -o $output$reload_objs'
6329case $host_os in
6330  darwin*)
6331    if test "$GCC" = yes; then
6332      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6333    else
6334      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6335    fi
6336    ;;
6337esac
6338
6339echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6340echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6341if test "${lt_cv_path_NM+set}" = set; then
6342  echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344  if test -n "$NM"; then
6345  # Let the user override the test.
6346  lt_cv_path_NM="$NM"
6347else
6348  lt_nm_to_check="${ac_tool_prefix}nm"
6349  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350    lt_nm_to_check="$lt_nm_to_check nm"
6351  fi
6352  for lt_tmp_nm in $lt_nm_to_check; do
6353    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355      IFS="$lt_save_ifs"
6356      test -z "$ac_dir" && ac_dir=.
6357      tmp_nm="$ac_dir/$lt_tmp_nm"
6358      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359        # Check to see if the nm accepts a BSD-compat flag.
6360        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361        #   nm: unknown option "B" ignored
6362        # Tru64's nm complains that /dev/null is an invalid object file
6363        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364        */dev/null* | *'Invalid file or object type'*)
6365          lt_cv_path_NM="$tmp_nm -B"
6366          break
6367          ;;
6368        *)
6369          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370          */dev/null*)
6371            lt_cv_path_NM="$tmp_nm -p"
6372            break
6373            ;;
6374          *)
6375            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376            continue # so that we can try to find one that supports BSD flags
6377            ;;
6378          esac
6379          ;;
6380        esac
6381      fi
6382    done
6383    IFS="$lt_save_ifs"
6384  done
6385  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6386fi
6387fi
6388echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6389echo "${ECHO_T}$lt_cv_path_NM" >&6
6390NM="$lt_cv_path_NM"
6391
6392echo "$as_me:$LINENO: checking whether ln -s works" >&5
6393echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6394LN_S=$as_ln_s
6395if test "$LN_S" = "ln -s"; then
6396  echo "$as_me:$LINENO: result: yes" >&5
6397echo "${ECHO_T}yes" >&6
6398else
6399  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6400echo "${ECHO_T}no, using $LN_S" >&6
6401fi
6402
6403echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6404echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6405if test "${lt_cv_deplibs_check_method+set}" = set; then
6406  echo $ECHO_N "(cached) $ECHO_C" >&6
6407else
6408  lt_cv_file_magic_cmd='$MAGIC_CMD'
6409lt_cv_file_magic_test_file=
6410lt_cv_deplibs_check_method='unknown'
6411# Need to set the preceding variable on all platforms that support
6412# interlibrary dependencies.
6413# 'none' -- dependencies not supported.
6414# `unknown' -- same as none, but documents that we really don't know.
6415# 'pass_all' -- all dependencies passed with no checks.
6416# 'test_compile' -- check by making test program.
6417# 'file_magic [[regex]]' -- check by looking for files in library path
6418# which responds to the $file_magic_cmd with a given extended regex.
6419# If you have `file' or equivalent on your system and you're not sure
6420# whether `pass_all' will *always* work, you probably want this one.
6421
6422case $host_os in
6423aix4* | aix5*)
6424  lt_cv_deplibs_check_method=pass_all
6425  ;;
6426
6427beos*)
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430
6431bsdi[45]*)
6432  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6433  lt_cv_file_magic_cmd='/usr/bin/file -L'
6434  lt_cv_file_magic_test_file=/shlib/libc.so
6435  ;;
6436
6437cygwin*)
6438  # func_win32_libid is a shell function defined in ltmain.sh
6439  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6440  lt_cv_file_magic_cmd='func_win32_libid'
6441  ;;
6442
6443mingw* | pw32*)
6444  # Base MSYS/MinGW do not provide the 'file' command needed by
6445  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6446  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6447  lt_cv_file_magic_cmd='$OBJDUMP -f'
6448  ;;
6449
6450darwin* | rhapsody*)
6451  lt_cv_deplibs_check_method=pass_all
6452  ;;
6453
6454freebsd* | kfreebsd*-gnu | dragonfly*)
6455  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6456    case $host_cpu in
6457    i*86 )
6458      # Not sure whether the presence of OpenBSD here was a mistake.
6459      # Let's accept both of them until this is cleared up.
6460      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6461      lt_cv_file_magic_cmd=/usr/bin/file
6462      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6463      ;;
6464    esac
6465  else
6466    lt_cv_deplibs_check_method=pass_all
6467  fi
6468  ;;
6469
6470gnu*)
6471  lt_cv_deplibs_check_method=pass_all
6472  ;;
6473
6474hpux10.20* | hpux11*)
6475  lt_cv_file_magic_cmd=/usr/bin/file
6476  case $host_cpu in
6477  ia64*)
6478    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6479    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6480    ;;
6481  hppa*64*)
6482    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]'
6483    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6484    ;;
6485  *)
6486    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6487    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6488    ;;
6489  esac
6490  ;;
6491
6492interix3*)
6493  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6494  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6495  ;;
6496
6497irix5* | irix6* | nonstopux*)
6498  case $LD in
6499  *-32|*"-32 ") libmagic=32-bit;;
6500  *-n32|*"-n32 ") libmagic=N32;;
6501  *-64|*"-64 ") libmagic=64-bit;;
6502  *) libmagic=never-match;;
6503  esac
6504  lt_cv_deplibs_check_method=pass_all
6505  ;;
6506
6507# This must be Linux ELF.
6508linux*)
6509  lt_cv_deplibs_check_method=pass_all
6510  ;;
6511
6512netbsd*)
6513  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6515  else
6516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6517  fi
6518  ;;
6519
6520newos6*)
6521  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6522  lt_cv_file_magic_cmd=/usr/bin/file
6523  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6524  ;;
6525
6526nto-qnx*)
6527  lt_cv_deplibs_check_method=unknown
6528  ;;
6529
6530openbsd*)
6531  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6532    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6533  else
6534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6535  fi
6536  ;;
6537
6538osf3* | osf4* | osf5*)
6539  lt_cv_deplibs_check_method=pass_all
6540  ;;
6541
6542solaris*)
6543  lt_cv_deplibs_check_method=pass_all
6544  ;;
6545
6546sysv4 | sysv4.3*)
6547  case $host_vendor in
6548  motorola)
6549    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]'
6550    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6551    ;;
6552  ncr)
6553    lt_cv_deplibs_check_method=pass_all
6554    ;;
6555  sequent)
6556    lt_cv_file_magic_cmd='/bin/file'
6557    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6558    ;;
6559  sni)
6560    lt_cv_file_magic_cmd='/bin/file'
6561    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6562    lt_cv_file_magic_test_file=/lib/libc.so
6563    ;;
6564  siemens)
6565    lt_cv_deplibs_check_method=pass_all
6566    ;;
6567  pc)
6568    lt_cv_deplibs_check_method=pass_all
6569    ;;
6570  esac
6571  ;;
6572
6573sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6574  lt_cv_deplibs_check_method=pass_all
6575  ;;
6576esac
6577
6578fi
6579echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6580echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6581file_magic_cmd=$lt_cv_file_magic_cmd
6582deplibs_check_method=$lt_cv_deplibs_check_method
6583test -z "$deplibs_check_method" && deplibs_check_method=unknown
6584
6585
6586
6587
6588# If no C compiler was specified, use CC.
6589LTCC=${LTCC-"$CC"}
6590
6591# If no C compiler flags were specified, use CFLAGS.
6592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6593
6594# Allow CC to be a program name with arguments.
6595compiler=$CC
6596
6597# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6598if test "${enable_libtool_lock+set}" = set; then
6599  enableval="$enable_libtool_lock"
6600
6601fi;
6602test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6603
6604# Some flags need to be propagated to the compiler or linker for good
6605# libtool support.
6606case $host in
6607ia64-*-hpux*)
6608  # Find out which ABI we are using.
6609  echo 'int i;' > conftest.$ac_ext
6610  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611  (eval $ac_compile) 2>&5
6612  ac_status=$?
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); }; then
6615    case `/usr/bin/file conftest.$ac_objext` in
6616    *ELF-32*)
6617      HPUX_IA64_MODE="32"
6618      ;;
6619    *ELF-64*)
6620      HPUX_IA64_MODE="64"
6621      ;;
6622    esac
6623  fi
6624  rm -rf conftest*
6625  ;;
6626*-*-irix6*)
6627  # Find out which ABI we are using.
6628  echo '#line 6628 "configure"' > conftest.$ac_ext
6629  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630  (eval $ac_compile) 2>&5
6631  ac_status=$?
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); }; then
6634   if test "$lt_cv_prog_gnu_ld" = yes; then
6635    case `/usr/bin/file conftest.$ac_objext` in
6636    *32-bit*)
6637      LD="${LD-ld} -melf32bsmip"
6638      ;;
6639    *N32*)
6640      LD="${LD-ld} -melf32bmipn32"
6641      ;;
6642    *64-bit*)
6643      LD="${LD-ld} -melf64bmip"
6644      ;;
6645    esac
6646   else
6647    case `/usr/bin/file conftest.$ac_objext` in
6648    *32-bit*)
6649      LD="${LD-ld} -32"
6650      ;;
6651    *N32*)
6652      LD="${LD-ld} -n32"
6653      ;;
6654    *64-bit*)
6655      LD="${LD-ld} -64"
6656      ;;
6657    esac
6658   fi
6659  fi
6660  rm -rf conftest*
6661  ;;
6662
6663x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6664  # Find out which ABI we are using.
6665  echo 'int i;' > conftest.$ac_ext
6666  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667  (eval $ac_compile) 2>&5
6668  ac_status=$?
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); }; then
6671    case `/usr/bin/file conftest.o` in
6672    *32-bit*)
6673      case $host in
6674        x86_64-*linux*)
6675          LD="${LD-ld} -m elf_i386"
6676          ;;
6677        ppc64-*linux*|powerpc64-*linux*)
6678          LD="${LD-ld} -m elf32ppclinux"
6679          ;;
6680        s390x-*linux*)
6681          LD="${LD-ld} -m elf_s390"
6682          ;;
6683        sparc64-*linux*)
6684          LD="${LD-ld} -m elf32_sparc"
6685          ;;
6686      esac
6687      ;;
6688    *64-bit*)
6689      case $host in
6690        x86_64-*linux*)
6691          LD="${LD-ld} -m elf_x86_64"
6692          ;;
6693        ppc*-*linux*|powerpc*-*linux*)
6694          LD="${LD-ld} -m elf64ppc"
6695          ;;
6696        s390*-*linux*)
6697          LD="${LD-ld} -m elf64_s390"
6698          ;;
6699        sparc*-*linux*)
6700          LD="${LD-ld} -m elf64_sparc"
6701          ;;
6702      esac
6703      ;;
6704    esac
6705  fi
6706  rm -rf conftest*
6707  ;;
6708
6709*-*-sco3.2v5*)
6710  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6711  SAVE_CFLAGS="$CFLAGS"
6712  CFLAGS="$CFLAGS -belf"
6713  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6714echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6715if test "${lt_cv_cc_needs_belf+set}" = set; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  ac_ext=c
6719ac_cpp='$CPP $CPPFLAGS'
6720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722ac_compiler_gnu=$ac_cv_c_compiler_gnu
6723
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
6731#ifdef F77_DUMMY_MAIN
6732
6733#  ifdef __cplusplus
6734     extern "C"
6735#  endif
6736   int F77_DUMMY_MAIN() { return 1; }
6737
6738#endif
6739int
6740main ()
6741{
6742
6743  ;
6744  return 0;
6745}
6746_ACEOF
6747rm -f conftest.$ac_objext conftest$ac_exeext
6748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749  (eval $ac_link) 2>conftest.er1
6750  ac_status=$?
6751  grep -v '^ *+' conftest.er1 >conftest.err
6752  rm -f conftest.er1
6753  cat conftest.err >&5
6754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755  (exit $ac_status); } &&
6756         { ac_try='test -z "$ac_c_werror_flag"
6757                         || test ! -s conftest.err'
6758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759  (eval $ac_try) 2>&5
6760  ac_status=$?
6761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); }; } &&
6763         { ac_try='test -s conftest$ac_exeext'
6764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765  (eval $ac_try) 2>&5
6766  ac_status=$?
6767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); }; }; then
6769  lt_cv_cc_needs_belf=yes
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774lt_cv_cc_needs_belf=no
6775fi
6776rm -f conftest.err conftest.$ac_objext \
6777      conftest$ac_exeext conftest.$ac_ext
6778     ac_ext=c
6779ac_cpp='$CPP $CPPFLAGS'
6780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6782ac_compiler_gnu=$ac_cv_c_compiler_gnu
6783
6784fi
6785echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6786echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6787  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6788    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6789    CFLAGS="$SAVE_CFLAGS"
6790  fi
6791  ;;
6792sparc*-*solaris*)
6793  # Find out which ABI we are using.
6794  echo 'int i;' > conftest.$ac_ext
6795  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796  (eval $ac_compile) 2>&5
6797  ac_status=$?
6798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799  (exit $ac_status); }; then
6800    case `/usr/bin/file conftest.o` in
6801    *64-bit*)
6802      case $lt_cv_prog_gnu_ld in
6803      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6804      *)    LD="${LD-ld} -64" ;;
6805      esac
6806      ;;
6807    esac
6808  fi
6809  rm -rf conftest*
6810  ;;
6811
6812
6813esac
6814
6815need_locks="$enable_libtool_lock"
6816
6817
6818ac_ext=c
6819ac_cpp='$CPP $CPPFLAGS'
6820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6824echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6825# On Suns, sometimes $CPP names a directory.
6826if test -n "$CPP" && test -d "$CPP"; then
6827  CPP=
6828fi
6829if test -z "$CPP"; then
6830  if test "${ac_cv_prog_CPP+set}" = set; then
6831  echo $ECHO_N "(cached) $ECHO_C" >&6
6832else
6833      # Double quotes because CPP needs to be expanded
6834    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6835    do
6836      ac_preproc_ok=false
6837for ac_c_preproc_warn_flag in '' yes
6838do
6839  # Use a header file that comes with gcc, so configuring glibc
6840  # with a fresh cross-compiler works.
6841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842  # <limits.h> exists even on freestanding compilers.
6843  # On the NeXT, cc -E runs the code through the compiler's parser,
6844  # not just through cpp. "Syntax error" is here to catch this case.
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#ifdef __STDC__
6852# include <limits.h>
6853#else
6854# include <assert.h>
6855#endif
6856                     Syntax error
6857_ACEOF
6858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6860  ac_status=$?
6861  grep -v '^ *+' conftest.er1 >conftest.err
6862  rm -f conftest.er1
6863  cat conftest.err >&5
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } >/dev/null; then
6866  if test -s conftest.err; then
6867    ac_cpp_err=$ac_c_preproc_warn_flag
6868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6869  else
6870    ac_cpp_err=
6871  fi
6872else
6873  ac_cpp_err=yes
6874fi
6875if test -z "$ac_cpp_err"; then
6876  :
6877else
6878  echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881  # Broken: fails on valid input.
6882continue
6883fi
6884rm -f conftest.err conftest.$ac_ext
6885
6886  # OK, works on sane cases.  Now check whether non-existent headers
6887  # can be detected and how.
6888  cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h.  */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h.  */
6894#include <ac_nonexistent.h>
6895_ACEOF
6896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898  ac_status=$?
6899  grep -v '^ *+' conftest.er1 >conftest.err
6900  rm -f conftest.er1
6901  cat conftest.err >&5
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } >/dev/null; then
6904  if test -s conftest.err; then
6905    ac_cpp_err=$ac_c_preproc_warn_flag
6906    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6907  else
6908    ac_cpp_err=
6909  fi
6910else
6911  ac_cpp_err=yes
6912fi
6913if test -z "$ac_cpp_err"; then
6914  # Broken: success on invalid input.
6915continue
6916else
6917  echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920  # Passes both tests.
6921ac_preproc_ok=:
6922break
6923fi
6924rm -f conftest.err conftest.$ac_ext
6925
6926done
6927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6928rm -f conftest.err conftest.$ac_ext
6929if $ac_preproc_ok; then
6930  break
6931fi
6932
6933    done
6934    ac_cv_prog_CPP=$CPP
6935
6936fi
6937  CPP=$ac_cv_prog_CPP
6938else
6939  ac_cv_prog_CPP=$CPP
6940fi
6941echo "$as_me:$LINENO: result: $CPP" >&5
6942echo "${ECHO_T}$CPP" >&6
6943ac_preproc_ok=false
6944for ac_c_preproc_warn_flag in '' yes
6945do
6946  # Use a header file that comes with gcc, so configuring glibc
6947  # with a fresh cross-compiler works.
6948  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6949  # <limits.h> exists even on freestanding compilers.
6950  # On the NeXT, cc -E runs the code through the compiler's parser,
6951  # not just through cpp. "Syntax error" is here to catch this case.
6952  cat >conftest.$ac_ext <<_ACEOF
6953/* confdefs.h.  */
6954_ACEOF
6955cat confdefs.h >>conftest.$ac_ext
6956cat >>conftest.$ac_ext <<_ACEOF
6957/* end confdefs.h.  */
6958#ifdef __STDC__
6959# include <limits.h>
6960#else
6961# include <assert.h>
6962#endif
6963                     Syntax error
6964_ACEOF
6965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6966  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
6973  if test -s conftest.err; then
6974    ac_cpp_err=$ac_c_preproc_warn_flag
6975    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6976  else
6977    ac_cpp_err=
6978  fi
6979else
6980  ac_cpp_err=yes
6981fi
6982if test -z "$ac_cpp_err"; then
6983  :
6984else
6985  echo "$as_me: failed program was:" >&5
6986sed 's/^/| /' conftest.$ac_ext >&5
6987
6988  # Broken: fails on valid input.
6989continue
6990fi
6991rm -f conftest.err conftest.$ac_ext
6992
6993  # OK, works on sane cases.  Now check whether non-existent headers
6994  # can be detected and how.
6995  cat >conftest.$ac_ext <<_ACEOF
6996/* confdefs.h.  */
6997_ACEOF
6998cat confdefs.h >>conftest.$ac_ext
6999cat >>conftest.$ac_ext <<_ACEOF
7000/* end confdefs.h.  */
7001#include <ac_nonexistent.h>
7002_ACEOF
7003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7004  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7005  ac_status=$?
7006  grep -v '^ *+' conftest.er1 >conftest.err
7007  rm -f conftest.er1
7008  cat conftest.err >&5
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); } >/dev/null; then
7011  if test -s conftest.err; then
7012    ac_cpp_err=$ac_c_preproc_warn_flag
7013    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7014  else
7015    ac_cpp_err=
7016  fi
7017else
7018  ac_cpp_err=yes
7019fi
7020if test -z "$ac_cpp_err"; then
7021  # Broken: success on invalid input.
7022continue
7023else
7024  echo "$as_me: failed program was:" >&5
7025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027  # Passes both tests.
7028ac_preproc_ok=:
7029break
7030fi
7031rm -f conftest.err conftest.$ac_ext
7032
7033done
7034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7035rm -f conftest.err conftest.$ac_ext
7036if $ac_preproc_ok; then
7037  :
7038else
7039  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7040See \`config.log' for more details." >&5
7041echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7042See \`config.log' for more details." >&2;}
7043   { (exit 1); exit 1; }; }
7044fi
7045
7046ac_ext=c
7047ac_cpp='$CPP $CPPFLAGS'
7048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051
7052
7053echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7054echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7055if test "${ac_cv_header_stdc+set}" = set; then
7056  echo $ECHO_N "(cached) $ECHO_C" >&6
7057else
7058  cat >conftest.$ac_ext <<_ACEOF
7059/* confdefs.h.  */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h.  */
7064#include <stdlib.h>
7065#include <stdarg.h>
7066#include <string.h>
7067#include <float.h>
7068
7069#ifdef F77_DUMMY_MAIN
7070
7071#  ifdef __cplusplus
7072     extern "C"
7073#  endif
7074   int F77_DUMMY_MAIN() { return 1; }
7075
7076#endif
7077int
7078main ()
7079{
7080
7081  ;
7082  return 0;
7083}
7084_ACEOF
7085rm -f conftest.$ac_objext
7086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7087  (eval $ac_compile) 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } &&
7094         { ac_try='test -z "$ac_c_werror_flag"
7095                         || test ! -s conftest.err'
7096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097  (eval $ac_try) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }; } &&
7101         { ac_try='test -s conftest.$ac_objext'
7102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103  (eval $ac_try) 2>&5
7104  ac_status=$?
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); }; }; then
7107  ac_cv_header_stdc=yes
7108else
7109  echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112ac_cv_header_stdc=no
7113fi
7114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7115
7116if test $ac_cv_header_stdc = yes; then
7117  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7118  cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h.  */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h.  */
7124#include <string.h>
7125
7126_ACEOF
7127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7128  $EGREP "memchr" >/dev/null 2>&1; then
7129  :
7130else
7131  ac_cv_header_stdc=no
7132fi
7133rm -f conftest*
7134
7135fi
7136
7137if test $ac_cv_header_stdc = yes; then
7138  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7139  cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h.  */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h.  */
7145#include <stdlib.h>
7146
7147_ACEOF
7148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149  $EGREP "free" >/dev/null 2>&1; then
7150  :
7151else
7152  ac_cv_header_stdc=no
7153fi
7154rm -f conftest*
7155
7156fi
7157
7158if test $ac_cv_header_stdc = yes; then
7159  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7160  if test "$cross_compiling" = yes; then
7161  :
7162else
7163  cat >conftest.$ac_ext <<_ACEOF
7164/* confdefs.h.  */
7165_ACEOF
7166cat confdefs.h >>conftest.$ac_ext
7167cat >>conftest.$ac_ext <<_ACEOF
7168/* end confdefs.h.  */
7169#include <ctype.h>
7170#if ((' ' & 0x0FF) == 0x020)
7171# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7172# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7173#else
7174# define ISLOWER(c) \
7175                   (('a' <= (c) && (c) <= 'i') \
7176                     || ('j' <= (c) && (c) <= 'r') \
7177                     || ('s' <= (c) && (c) <= 'z'))
7178# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7179#endif
7180
7181#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7182int
7183main ()
7184{
7185  int i;
7186  for (i = 0; i < 256; i++)
7187    if (XOR (islower (i), ISLOWER (i))
7188        || toupper (i) != TOUPPER (i))
7189      exit(2);
7190  exit (0);
7191}
7192_ACEOF
7193rm -f conftest$ac_exeext
7194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195  (eval $ac_link) 2>&5
7196  ac_status=$?
7197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200  (eval $ac_try) 2>&5
7201  ac_status=$?
7202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203  (exit $ac_status); }; }; then
7204  :
7205else
7206  echo "$as_me: program exited with status $ac_status" >&5
7207echo "$as_me: failed program was:" >&5
7208sed 's/^/| /' conftest.$ac_ext >&5
7209
7210( exit $ac_status )
7211ac_cv_header_stdc=no
7212fi
7213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7214fi
7215fi
7216fi
7217echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7218echo "${ECHO_T}$ac_cv_header_stdc" >&6
7219if test $ac_cv_header_stdc = yes; then
7220
7221cat >>confdefs.h <<\_ACEOF
7222#define STDC_HEADERS 1
7223_ACEOF
7224
7225fi
7226
7227# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7238                  inttypes.h stdint.h unistd.h
7239do
7240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241echo "$as_me:$LINENO: checking for $ac_header" >&5
7242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7243if eval "test \"\${$as_ac_Header+set}\" = set"; then
7244  echo $ECHO_N "(cached) $ECHO_C" >&6
7245else
7246  cat >conftest.$ac_ext <<_ACEOF
7247/* confdefs.h.  */
7248_ACEOF
7249cat confdefs.h >>conftest.$ac_ext
7250cat >>conftest.$ac_ext <<_ACEOF
7251/* end confdefs.h.  */
7252$ac_includes_default
7253
7254#include <$ac_header>
7255_ACEOF
7256rm -f conftest.$ac_objext
7257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258  (eval $ac_compile) 2>conftest.er1
7259  ac_status=$?
7260  grep -v '^ *+' conftest.er1 >conftest.err
7261  rm -f conftest.er1
7262  cat conftest.err >&5
7263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264  (exit $ac_status); } &&
7265         { ac_try='test -z "$ac_c_werror_flag"
7266                         || test ! -s conftest.err'
7267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268  (eval $ac_try) 2>&5
7269  ac_status=$?
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); }; } &&
7272         { ac_try='test -s conftest.$ac_objext'
7273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274  (eval $ac_try) 2>&5
7275  ac_status=$?
7276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277  (exit $ac_status); }; }; then
7278  eval "$as_ac_Header=yes"
7279else
7280  echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283eval "$as_ac_Header=no"
7284fi
7285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7286fi
7287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7289if test `eval echo '${'$as_ac_Header'}'` = yes; then
7290  cat >>confdefs.h <<_ACEOF
7291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7292_ACEOF
7293
7294fi
7295
7296done
7297
7298
7299
7300for ac_header in dlfcn.h
7301do
7302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7303if eval "test \"\${$as_ac_Header+set}\" = set"; then
7304  echo "$as_me:$LINENO: checking for $ac_header" >&5
7305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7306if eval "test \"\${$as_ac_Header+set}\" = set"; then
7307  echo $ECHO_N "(cached) $ECHO_C" >&6
7308fi
7309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7311else
7312  # Is the header compilable?
7313echo "$as_me:$LINENO: checking $ac_header usability" >&5
7314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7315cat >conftest.$ac_ext <<_ACEOF
7316/* confdefs.h.  */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h.  */
7321$ac_includes_default
7322#include <$ac_header>
7323_ACEOF
7324rm -f conftest.$ac_objext
7325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326  (eval $ac_compile) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } &&
7333         { ac_try='test -z "$ac_c_werror_flag"
7334                         || test ! -s conftest.err'
7335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336  (eval $ac_try) 2>&5
7337  ac_status=$?
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); }; } &&
7340         { ac_try='test -s conftest.$ac_objext'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; }; then
7346  ac_header_compiler=yes
7347else
7348  echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351ac_header_compiler=no
7352fi
7353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7355echo "${ECHO_T}$ac_header_compiler" >&6
7356
7357# Is the header present?
7358echo "$as_me:$LINENO: checking $ac_header presence" >&5
7359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7360cat >conftest.$ac_ext <<_ACEOF
7361/* confdefs.h.  */
7362_ACEOF
7363cat confdefs.h >>conftest.$ac_ext
7364cat >>conftest.$ac_ext <<_ACEOF
7365/* end confdefs.h.  */
7366#include <$ac_header>
7367_ACEOF
7368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7370  ac_status=$?
7371  grep -v '^ *+' conftest.er1 >conftest.err
7372  rm -f conftest.er1
7373  cat conftest.err >&5
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); } >/dev/null; then
7376  if test -s conftest.err; then
7377    ac_cpp_err=$ac_c_preproc_warn_flag
7378    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7379  else
7380    ac_cpp_err=
7381  fi
7382else
7383  ac_cpp_err=yes
7384fi
7385if test -z "$ac_cpp_err"; then
7386  ac_header_preproc=yes
7387else
7388  echo "$as_me: failed program was:" >&5
7389sed 's/^/| /' conftest.$ac_ext >&5
7390
7391  ac_header_preproc=no
7392fi
7393rm -f conftest.err conftest.$ac_ext
7394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7395echo "${ECHO_T}$ac_header_preproc" >&6
7396
7397# So?  What about this header?
7398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7399  yes:no: )
7400    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7402    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7404    ac_header_preproc=yes
7405    ;;
7406  no:yes:* )
7407    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7409    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7410echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7411    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7413    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7414echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7415    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7417    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7419    (
7420      cat <<\_ASBOX
7421## --------------------------------------------------------------- ##
7422## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7423## --------------------------------------------------------------- ##
7424_ASBOX
7425    ) |
7426      sed "s/^/$as_me: WARNING:     /" >&2
7427    ;;
7428esac
7429echo "$as_me:$LINENO: checking for $ac_header" >&5
7430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7431if eval "test \"\${$as_ac_Header+set}\" = set"; then
7432  echo $ECHO_N "(cached) $ECHO_C" >&6
7433else
7434  eval "$as_ac_Header=\$ac_header_preproc"
7435fi
7436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7438
7439fi
7440if test `eval echo '${'$as_ac_Header'}'` = yes; then
7441  cat >>confdefs.h <<_ACEOF
7442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7443_ACEOF
7444
7445fi
7446
7447done
7448
7449ac_ext=cc
7450ac_cpp='$CXXCPP $CPPFLAGS'
7451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7454if test -n "$ac_tool_prefix"; then
7455  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7456  do
7457    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7459echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7461if test "${ac_cv_prog_CXX+set}" = set; then
7462  echo $ECHO_N "(cached) $ECHO_C" >&6
7463else
7464  if test -n "$CXX"; then
7465  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  test -z "$as_dir" && as_dir=.
7472  for ac_exec_ext in '' $ac_executable_extensions; do
7473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7476    break 2
7477  fi
7478done
7479done
7480
7481fi
7482fi
7483CXX=$ac_cv_prog_CXX
7484if test -n "$CXX"; then
7485  echo "$as_me:$LINENO: result: $CXX" >&5
7486echo "${ECHO_T}$CXX" >&6
7487else
7488  echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6
7490fi
7491
7492    test -n "$CXX" && break
7493  done
7494fi
7495if test -z "$CXX"; then
7496  ac_ct_CXX=$CXX
7497  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7498do
7499  # Extract the first word of "$ac_prog", so it can be a program name with args.
7500set dummy $ac_prog; ac_word=$2
7501echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7504  echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506  if test -n "$ac_ct_CXX"; then
7507  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512  IFS=$as_save_IFS
7513  test -z "$as_dir" && as_dir=.
7514  for ac_exec_ext in '' $ac_executable_extensions; do
7515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516    ac_cv_prog_ac_ct_CXX="$ac_prog"
7517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518    break 2
7519  fi
7520done
7521done
7522
7523fi
7524fi
7525ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7526if test -n "$ac_ct_CXX"; then
7527  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7528echo "${ECHO_T}$ac_ct_CXX" >&6
7529else
7530  echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6
7532fi
7533
7534  test -n "$ac_ct_CXX" && break
7535done
7536test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7537
7538  CXX=$ac_ct_CXX
7539fi
7540
7541
7542# Provide some information about the compiler.
7543echo "$as_me:$LINENO:" \
7544     "checking for C++ compiler version" >&5
7545ac_compiler=`set X $ac_compile; echo $2`
7546{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7547  (eval $ac_compiler --version </dev/null >&5) 2>&5
7548  ac_status=$?
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); }
7551{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7552  (eval $ac_compiler -v </dev/null >&5) 2>&5
7553  ac_status=$?
7554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555  (exit $ac_status); }
7556{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7557  (eval $ac_compiler -V </dev/null >&5) 2>&5
7558  ac_status=$?
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); }
7561
7562echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7563echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7564if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  cat >conftest.$ac_ext <<_ACEOF
7568/* confdefs.h.  */
7569_ACEOF
7570cat confdefs.h >>conftest.$ac_ext
7571cat >>conftest.$ac_ext <<_ACEOF
7572/* end confdefs.h.  */
7573
7574#ifdef F77_DUMMY_MAIN
7575
7576#  ifdef __cplusplus
7577     extern "C"
7578#  endif
7579   int F77_DUMMY_MAIN() { return 1; }
7580
7581#endif
7582int
7583main ()
7584{
7585#ifndef __GNUC__
7586       choke me
7587#endif
7588
7589  ;
7590  return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595  (eval $ac_compile) 2>conftest.er1
7596  ac_status=$?
7597  grep -v '^ *+' conftest.er1 >conftest.err
7598  rm -f conftest.er1
7599  cat conftest.err >&5
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); } &&
7602         { ac_try='test -z "$ac_cxx_werror_flag"
7603                         || test ! -s conftest.err'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; } &&
7609         { ac_try='test -s conftest.$ac_objext'
7610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611  (eval $ac_try) 2>&5
7612  ac_status=$?
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); }; }; then
7615  ac_compiler_gnu=yes
7616else
7617  echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620ac_compiler_gnu=no
7621fi
7622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7624
7625fi
7626echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7627echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7628GXX=`test $ac_compiler_gnu = yes && echo yes`
7629ac_test_CXXFLAGS=${CXXFLAGS+set}
7630ac_save_CXXFLAGS=$CXXFLAGS
7631CXXFLAGS="-g"
7632echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7633echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7634if test "${ac_cv_prog_cxx_g+set}" = set; then
7635  echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637  cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h.  */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h.  */
7643
7644#ifdef F77_DUMMY_MAIN
7645
7646#  ifdef __cplusplus
7647     extern "C"
7648#  endif
7649   int F77_DUMMY_MAIN() { return 1; }
7650
7651#endif
7652int
7653main ()
7654{
7655
7656  ;
7657  return 0;
7658}
7659_ACEOF
7660rm -f conftest.$ac_objext
7661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662  (eval $ac_compile) 2>conftest.er1
7663  ac_status=$?
7664  grep -v '^ *+' conftest.er1 >conftest.err
7665  rm -f conftest.er1
7666  cat conftest.err >&5
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); } &&
7669         { ac_try='test -z "$ac_cxx_werror_flag"
7670                         || test ! -s conftest.err'
7671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672  (eval $ac_try) 2>&5
7673  ac_status=$?
7674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675  (exit $ac_status); }; } &&
7676         { ac_try='test -s conftest.$ac_objext'
7677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678  (eval $ac_try) 2>&5
7679  ac_status=$?
7680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681  (exit $ac_status); }; }; then
7682  ac_cv_prog_cxx_g=yes
7683else
7684  echo "$as_me: failed program was:" >&5
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
7687ac_cv_prog_cxx_g=no
7688fi
7689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7690fi
7691echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7692echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7693if test "$ac_test_CXXFLAGS" = set; then
7694  CXXFLAGS=$ac_save_CXXFLAGS
7695elif test $ac_cv_prog_cxx_g = yes; then
7696  if test "$GXX" = yes; then
7697    CXXFLAGS="-g -O2"
7698  else
7699    CXXFLAGS="-g"
7700  fi
7701else
7702  if test "$GXX" = yes; then
7703    CXXFLAGS="-O2"
7704  else
7705    CXXFLAGS=
7706  fi
7707fi
7708for ac_declaration in \
7709   '' \
7710   'extern "C" void std::exit (int) throw (); using std::exit;' \
7711   'extern "C" void std::exit (int); using std::exit;' \
7712   'extern "C" void exit (int) throw ();' \
7713   'extern "C" void exit (int);' \
7714   'void exit (int);'
7715do
7716  cat >conftest.$ac_ext <<_ACEOF
7717/* confdefs.h.  */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h.  */
7722$ac_declaration
7723#include <stdlib.h>
7724#ifdef F77_DUMMY_MAIN
7725
7726#  ifdef __cplusplus
7727     extern "C"
7728#  endif
7729   int F77_DUMMY_MAIN() { return 1; }
7730
7731#endif
7732int
7733main ()
7734{
7735exit (42);
7736  ;
7737  return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext
7741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742  (eval $ac_compile) 2>conftest.er1
7743  ac_status=$?
7744  grep -v '^ *+' conftest.er1 >conftest.err
7745  rm -f conftest.er1
7746  cat conftest.err >&5
7747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); } &&
7749         { ac_try='test -z "$ac_cxx_werror_flag"
7750                         || test ! -s conftest.err'
7751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752  (eval $ac_try) 2>&5
7753  ac_status=$?
7754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755  (exit $ac_status); }; } &&
7756         { ac_try='test -s conftest.$ac_objext'
7757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758  (eval $ac_try) 2>&5
7759  ac_status=$?
7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); }; }; then
7762  :
7763else
7764  echo "$as_me: failed program was:" >&5
7765sed 's/^/| /' conftest.$ac_ext >&5
7766
7767continue
7768fi
7769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7770  cat >conftest.$ac_ext <<_ACEOF
7771/* confdefs.h.  */
7772_ACEOF
7773cat confdefs.h >>conftest.$ac_ext
7774cat >>conftest.$ac_ext <<_ACEOF
7775/* end confdefs.h.  */
7776$ac_declaration
7777#ifdef F77_DUMMY_MAIN
7778
7779#  ifdef __cplusplus
7780     extern "C"
7781#  endif
7782   int F77_DUMMY_MAIN() { return 1; }
7783
7784#endif
7785int
7786main ()
7787{
7788exit (42);
7789  ;
7790  return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext
7794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795  (eval $ac_compile) 2>conftest.er1
7796  ac_status=$?
7797  grep -v '^ *+' conftest.er1 >conftest.err
7798  rm -f conftest.er1
7799  cat conftest.err >&5
7800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801  (exit $ac_status); } &&
7802         { ac_try='test -z "$ac_cxx_werror_flag"
7803                         || test ! -s conftest.err'
7804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805  (eval $ac_try) 2>&5
7806  ac_status=$?
7807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808  (exit $ac_status); }; } &&
7809         { ac_try='test -s conftest.$ac_objext'
7810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811  (eval $ac_try) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); }; }; then
7815  break
7816else
7817  echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820fi
7821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7822done
7823rm -f conftest*
7824if test -n "$ac_declaration"; then
7825  echo '#ifdef __cplusplus' >>confdefs.h
7826  echo $ac_declaration      >>confdefs.h
7827  echo '#endif'             >>confdefs.h
7828fi
7829
7830ac_ext=cc
7831ac_cpp='$CXXCPP $CPPFLAGS'
7832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7835
7836depcc="$CXX"  am_compiler_list=
7837
7838echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7839echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7840if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7841  echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7844  # We make a subdir and do the tests there.  Otherwise we can end up
7845  # making bogus files that we don't know about and never remove.  For
7846  # instance it was reported that on HP-UX the gcc test will end up
7847  # making a dummy file named `D' -- because `-MD' means `put the output
7848  # in D'.
7849  mkdir conftest.dir
7850  # Copy depcomp to subdir because otherwise we won't find it if we're
7851  # using a relative directory.
7852  cp "$am_depcomp" conftest.dir
7853  cd conftest.dir
7854  # We will build objects and dependencies in a subdirectory because
7855  # it helps to detect inapplicable dependency modes.  For instance
7856  # both Tru64's cc and ICC support -MD to output dependencies as a
7857  # side effect of compilation, but ICC will put the dependencies in
7858  # the current directory while Tru64 will put them in the object
7859  # directory.
7860  mkdir sub
7861
7862  am_cv_CXX_dependencies_compiler_type=none
7863  if test "$am_compiler_list" = ""; then
7864     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7865  fi
7866  for depmode in $am_compiler_list; do
7867    # Setup a source with many dependencies, because some compilers
7868    # like to wrap large dependency lists on column 80 (with \), and
7869    # we should not choose a depcomp mode which is confused by this.
7870    #
7871    # We need to recreate these files for each test, as the compiler may
7872    # overwrite some of them when testing with obscure command lines.
7873    # This happens at least with the AIX C compiler.
7874    : > sub/conftest.c
7875    for i in 1 2 3 4 5 6; do
7876      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7877      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7878      # Solaris 8's {/usr,}/bin/sh.
7879      touch sub/conftst$i.h
7880    done
7881    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7882
7883    case $depmode in
7884    nosideeffect)
7885      # after this tag, mechanisms are not by side-effect, so they'll
7886      # only be used when explicitly requested
7887      if test "x$enable_dependency_tracking" = xyes; then
7888        continue
7889      else
7890        break
7891      fi
7892      ;;
7893    none) break ;;
7894    esac
7895    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7896    # mode.  It turns out that the SunPro C++ compiler does not properly
7897    # handle `-M -o', and we need to detect this.
7898    if depmode=$depmode \
7899       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7900       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7901       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7902         >/dev/null 2>conftest.err &&
7903       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7904       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7905       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7906      # icc doesn't choke on unknown options, it will just issue warnings
7907      # or remarks (even with -Werror).  So we grep stderr for any message
7908      # that says an option was ignored or not supported.
7909      # When given -MP, icc 7.0 and 7.1 complain thusly:
7910      #   icc: Command line warning: ignoring option '-M'; no argument required
7911      # The diagnosis changed in icc 8.0:
7912      #   icc: Command line remark: option '-MP' not supported
7913      if (grep 'ignoring option' conftest.err ||
7914          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7915        am_cv_CXX_dependencies_compiler_type=$depmode
7916        break
7917      fi
7918    fi
7919  done
7920
7921  cd ..
7922  rm -rf conftest.dir
7923else
7924  am_cv_CXX_dependencies_compiler_type=none
7925fi
7926
7927fi
7928echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7929echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7930CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7931
7932
7933
7934if
7935  test "x$enable_dependency_tracking" != xno \
7936  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7937  am__fastdepCXX_TRUE=
7938  am__fastdepCXX_FALSE='#'
7939else
7940  am__fastdepCXX_TRUE='#'
7941  am__fastdepCXX_FALSE=
7942fi
7943
7944
7945
7946
7947if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7948    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7949    (test "X$CXX" != "Xg++"))) ; then
7950  ac_ext=cc
7951ac_cpp='$CXXCPP $CPPFLAGS'
7952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7955echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7956echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7957if test -z "$CXXCPP"; then
7958  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7959  echo $ECHO_N "(cached) $ECHO_C" >&6
7960else
7961      # Double quotes because CXXCPP needs to be expanded
7962    for CXXCPP in "$CXX -E" "/lib/cpp"
7963    do
7964      ac_preproc_ok=false
7965for ac_cxx_preproc_warn_flag in '' yes
7966do
7967  # Use a header file that comes with gcc, so configuring glibc
7968  # with a fresh cross-compiler works.
7969  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7970  # <limits.h> exists even on freestanding compilers.
7971  # On the NeXT, cc -E runs the code through the compiler's parser,
7972  # not just through cpp. "Syntax error" is here to catch this case.
7973  cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979#ifdef __STDC__
7980# include <limits.h>
7981#else
7982# include <assert.h>
7983#endif
7984                     Syntax error
7985_ACEOF
7986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7988  ac_status=$?
7989  grep -v '^ *+' conftest.er1 >conftest.err
7990  rm -f conftest.er1
7991  cat conftest.err >&5
7992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993  (exit $ac_status); } >/dev/null; then
7994  if test -s conftest.err; then
7995    ac_cpp_err=$ac_cxx_preproc_warn_flag
7996    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7997  else
7998    ac_cpp_err=
7999  fi
8000else
8001  ac_cpp_err=yes
8002fi
8003if test -z "$ac_cpp_err"; then
8004  :
8005else
8006  echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009  # Broken: fails on valid input.
8010continue
8011fi
8012rm -f conftest.err conftest.$ac_ext
8013
8014  # OK, works on sane cases.  Now check whether non-existent headers
8015  # can be detected and how.
8016  cat >conftest.$ac_ext <<_ACEOF
8017/* confdefs.h.  */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h.  */
8022#include <ac_nonexistent.h>
8023_ACEOF
8024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8025  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8026  ac_status=$?
8027  grep -v '^ *+' conftest.er1 >conftest.err
8028  rm -f conftest.er1
8029  cat conftest.err >&5
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); } >/dev/null; then
8032  if test -s conftest.err; then
8033    ac_cpp_err=$ac_cxx_preproc_warn_flag
8034    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8035  else
8036    ac_cpp_err=
8037  fi
8038else
8039  ac_cpp_err=yes
8040fi
8041if test -z "$ac_cpp_err"; then
8042  # Broken: success on invalid input.
8043continue
8044else
8045  echo "$as_me: failed program was:" >&5
8046sed 's/^/| /' conftest.$ac_ext >&5
8047
8048  # Passes both tests.
8049ac_preproc_ok=:
8050break
8051fi
8052rm -f conftest.err conftest.$ac_ext
8053
8054done
8055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8056rm -f conftest.err conftest.$ac_ext
8057if $ac_preproc_ok; then
8058  break
8059fi
8060
8061    done
8062    ac_cv_prog_CXXCPP=$CXXCPP
8063
8064fi
8065  CXXCPP=$ac_cv_prog_CXXCPP
8066else
8067  ac_cv_prog_CXXCPP=$CXXCPP
8068fi
8069echo "$as_me:$LINENO: result: $CXXCPP" >&5
8070echo "${ECHO_T}$CXXCPP" >&6
8071ac_preproc_ok=false
8072for ac_cxx_preproc_warn_flag in '' yes
8073do
8074  # Use a header file that comes with gcc, so configuring glibc
8075  # with a fresh cross-compiler works.
8076  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8077  # <limits.h> exists even on freestanding compilers.
8078  # On the NeXT, cc -E runs the code through the compiler's parser,
8079  # not just through cpp. "Syntax error" is here to catch this case.
8080  cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h.  */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h.  */
8086#ifdef __STDC__
8087# include <limits.h>
8088#else
8089# include <assert.h>
8090#endif
8091                     Syntax error
8092_ACEOF
8093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8095  ac_status=$?
8096  grep -v '^ *+' conftest.er1 >conftest.err
8097  rm -f conftest.er1
8098  cat conftest.err >&5
8099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100  (exit $ac_status); } >/dev/null; then
8101  if test -s conftest.err; then
8102    ac_cpp_err=$ac_cxx_preproc_warn_flag
8103    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8104  else
8105    ac_cpp_err=
8106  fi
8107else
8108  ac_cpp_err=yes
8109fi
8110if test -z "$ac_cpp_err"; then
8111  :
8112else
8113  echo "$as_me: failed program was:" >&5
8114sed 's/^/| /' conftest.$ac_ext >&5
8115
8116  # Broken: fails on valid input.
8117continue
8118fi
8119rm -f conftest.err conftest.$ac_ext
8120
8121  # OK, works on sane cases.  Now check whether non-existent headers
8122  # can be detected and how.
8123  cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h.  */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h.  */
8129#include <ac_nonexistent.h>
8130_ACEOF
8131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133  ac_status=$?
8134  grep -v '^ *+' conftest.er1 >conftest.err
8135  rm -f conftest.er1
8136  cat conftest.err >&5
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); } >/dev/null; then
8139  if test -s conftest.err; then
8140    ac_cpp_err=$ac_cxx_preproc_warn_flag
8141    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8142  else
8143    ac_cpp_err=
8144  fi
8145else
8146  ac_cpp_err=yes
8147fi
8148if test -z "$ac_cpp_err"; then
8149  # Broken: success on invalid input.
8150continue
8151else
8152  echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
8155  # Passes both tests.
8156ac_preproc_ok=:
8157break
8158fi
8159rm -f conftest.err conftest.$ac_ext
8160
8161done
8162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8163rm -f conftest.err conftest.$ac_ext
8164if $ac_preproc_ok; then
8165  :
8166else
8167  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8168See \`config.log' for more details." >&5
8169echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8170See \`config.log' for more details." >&2;}
8171   { (exit 1); exit 1; }; }
8172fi
8173
8174ac_ext=cc
8175ac_cpp='$CXXCPP $CPPFLAGS'
8176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8179
8180fi
8181
8182
8183
8184# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8185
8186# find the maximum length of command line arguments
8187echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8188echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8189if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8190  echo $ECHO_N "(cached) $ECHO_C" >&6
8191else
8192    i=0
8193  teststring="ABCD"
8194
8195  case $build_os in
8196  msdosdjgpp*)
8197    # On DJGPP, this test can blow up pretty badly due to problems in libc
8198    # (any single argument exceeding 2000 bytes causes a buffer overrun
8199    # during glob expansion).  Even if it were fixed, the result of this
8200    # check would be larger than it should be.
8201    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8202    ;;
8203
8204  gnu*)
8205    # Under GNU Hurd, this test is not required because there is
8206    # no limit to the length of command line arguments.
8207    # Libtool will interpret -1 as no limit whatsoever
8208    lt_cv_sys_max_cmd_len=-1;
8209    ;;
8210
8211  cygwin* | mingw*)
8212    # On Win9x/ME, this test blows up -- it succeeds, but takes
8213    # about 5 minutes as the teststring grows exponentially.
8214    # Worse, since 9x/ME are not pre-emptively multitasking,
8215    # you end up with a "frozen" computer, even though with patience
8216    # the test eventually succeeds (with a max line length of 256k).
8217    # Instead, let's just punt: use the minimum linelength reported by
8218    # all of the supported platforms: 8192 (on NT/2K/XP).
8219    lt_cv_sys_max_cmd_len=8192;
8220    ;;
8221
8222  amigaos*)
8223    # On AmigaOS with pdksh, this test takes hours, literally.
8224    # So we just punt and use a minimum line length of 8192.
8225    lt_cv_sys_max_cmd_len=8192;
8226    ;;
8227
8228  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8229    # This has been around since 386BSD, at least.  Likely further.
8230    if test -x /sbin/sysctl; then
8231      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8232    elif test -x /usr/sbin/sysctl; then
8233      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8234    else
8235      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8236    fi
8237    # And add a safety zone
8238    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8239    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8240    ;;
8241
8242  interix*)
8243    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8244    lt_cv_sys_max_cmd_len=196608
8245    ;;
8246
8247  osf*)
8248    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8249    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8250    # nice to cause kernel panics so lets avoid the loop below.
8251    # First set a reasonable default.
8252    lt_cv_sys_max_cmd_len=16384
8253    #
8254    if test -x /sbin/sysconfig; then
8255      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8256        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8257      esac
8258    fi
8259    ;;
8260  sco3.2v5*)
8261    lt_cv_sys_max_cmd_len=102400
8262    ;;
8263  sysv5* | sco5v6* | sysv4.2uw2*)
8264    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8265    if test -n "$kargmax"; then
8266      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8267    else
8268      lt_cv_sys_max_cmd_len=32768
8269    fi
8270    ;;
8271  *)
8272    # If test is not a shell built-in, we'll probably end up computing a
8273    # maximum length that is only half of the actual maximum length, but
8274    # we can't tell.
8275    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8276    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8277               = "XX$teststring") >/dev/null 2>&1 &&
8278            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8279            lt_cv_sys_max_cmd_len=$new_result &&
8280            test $i != 17 # 1/2 MB should be enough
8281    do
8282      i=`expr $i + 1`
8283      teststring=$teststring$teststring
8284    done
8285    teststring=
8286    # Add a significant safety factor because C++ compilers can tack on massive
8287    # amounts of additional arguments before passing them to the linker.
8288    # It appears as though 1/2 is a usable value.
8289    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8290    ;;
8291  esac
8292
8293fi
8294
8295if test -n $lt_cv_sys_max_cmd_len ; then
8296  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8297echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8298else
8299  echo "$as_me:$LINENO: result: none" >&5
8300echo "${ECHO_T}none" >&6
8301fi
8302
8303
8304
8305
8306# Check for command to grab the raw symbol name followed by C symbol from nm.
8307echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8308echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8309if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8310  echo $ECHO_N "(cached) $ECHO_C" >&6
8311else
8312
8313# These are sane defaults that work on at least a few old systems.
8314# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8315
8316# Character class describing NM global symbol codes.
8317symcode='[BCDEGRST]'
8318
8319# Regexp to match symbols that can be accessed directly from C.
8320sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8321
8322# Transform an extracted symbol line into a proper C declaration
8323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8324
8325# Transform an extracted symbol line into symbol name and symbol address
8326lt_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'"
8327
8328# Define system-specific variables.
8329case $host_os in
8330aix*)
8331  symcode='[BCDT]'
8332  ;;
8333cygwin* | mingw* | pw32*)
8334  symcode='[ABCDGISTW]'
8335  ;;
8336hpux*) # Its linker distinguishes data from code symbols
8337  if test "$host_cpu" = ia64; then
8338    symcode='[ABCDEGRST]'
8339  fi
8340  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8341  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'"
8342  ;;
8343linux*)
8344  if test "$host_cpu" = ia64; then
8345    symcode='[ABCDGIRSTW]'
8346    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8347    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'"
8348  fi
8349  ;;
8350irix* | nonstopux*)
8351  symcode='[BCDEGRST]'
8352  ;;
8353osf*)
8354  symcode='[BCDEGQRST]'
8355  ;;
8356solaris*)
8357  symcode='[BDRT]'
8358  ;;
8359sco3.2v5*)
8360  symcode='[DT]'
8361  ;;
8362sysv4.2uw2*)
8363  symcode='[DT]'
8364  ;;
8365sysv5* | sco5v6* | unixware* | OpenUNIX*)
8366  symcode='[ABDT]'
8367  ;;
8368sysv4)
8369  symcode='[DFNSTU]'
8370  ;;
8371esac
8372
8373# Handle CRLF in mingw tool chain
8374opt_cr=
8375case $build_os in
8376mingw*)
8377  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8378  ;;
8379esac
8380
8381# If we're using GNU nm, then use its standard symbol codes.
8382case `$NM -V 2>&1` in
8383*GNU* | *'with BFD'*)
8384  symcode='[ABCDGIRSTW]' ;;
8385esac
8386
8387# Try without a prefix undercore, then with it.
8388for ac_symprfx in "" "_"; do
8389
8390  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8391  symxfrm="\\1 $ac_symprfx\\2 \\2"
8392
8393  # Write the raw and C identifiers.
8394  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8395
8396  # Check to see that the pipe works correctly.
8397  pipe_works=no
8398
8399  rm -f conftest*
8400  cat > conftest.$ac_ext <<EOF
8401#ifdef __cplusplus
8402extern "C" {
8403#endif
8404char nm_test_var;
8405void nm_test_func(){}
8406#ifdef __cplusplus
8407}
8408#endif
8409int main(){nm_test_var='a';nm_test_func();return(0);}
8410EOF
8411
8412  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8413  (eval $ac_compile) 2>&5
8414  ac_status=$?
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); }; then
8417    # Now try to grab the symbols.
8418    nlist=conftest.nm
8419    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8420  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8421  ac_status=$?
8422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423  (exit $ac_status); } && test -s "$nlist"; then
8424      # Try sorting and uniquifying the output.
8425      if sort "$nlist" | uniq > "$nlist"T; then
8426        mv -f "$nlist"T "$nlist"
8427      else
8428        rm -f "$nlist"T
8429      fi
8430
8431      # Make sure that we snagged all the symbols we need.
8432      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8433        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8434          cat <<EOF > conftest.$ac_ext
8435#ifdef __cplusplus
8436extern "C" {
8437#endif
8438
8439EOF
8440          # Now generate the symbol file.
8441          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8442
8443          cat <<EOF >> conftest.$ac_ext
8444#if defined (__STDC__) && __STDC__
8445# define lt_ptr_t void *
8446#else
8447# define lt_ptr_t char *
8448# define const
8449#endif
8450
8451/* The mapping between symbol names and symbols. */
8452const struct {
8453  const char *name;
8454  lt_ptr_t address;
8455}
8456lt_preloaded_symbols[] =
8457{
8458EOF
8459          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8460          cat <<\EOF >> conftest.$ac_ext
8461  {0, (lt_ptr_t) 0}
8462};
8463
8464#ifdef __cplusplus
8465}
8466#endif
8467EOF
8468          # Now try linking the two files.
8469          mv conftest.$ac_objext conftstm.$ac_objext
8470          lt_save_LIBS="$LIBS"
8471          lt_save_CFLAGS="$CFLAGS"
8472          LIBS="conftstm.$ac_objext"
8473          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8474          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475  (eval $ac_link) 2>&5
8476  ac_status=$?
8477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8479            pipe_works=yes
8480          fi
8481          LIBS="$lt_save_LIBS"
8482          CFLAGS="$lt_save_CFLAGS"
8483        else
8484          echo "cannot find nm_test_func in $nlist" >&5
8485        fi
8486      else
8487        echo "cannot find nm_test_var in $nlist" >&5
8488      fi
8489    else
8490      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8491    fi
8492  else
8493    echo "$progname: failed program was:" >&5
8494    cat conftest.$ac_ext >&5
8495  fi
8496  rm -f conftest* conftst*
8497
8498  # Do not use the global_symbol_pipe unless it works.
8499  if test "$pipe_works" = yes; then
8500    break
8501  else
8502    lt_cv_sys_global_symbol_pipe=
8503  fi
8504done
8505
8506fi
8507
8508if test -z "$lt_cv_sys_global_symbol_pipe"; then
8509  lt_cv_sys_global_symbol_to_cdecl=
8510fi
8511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8512  echo "$as_me:$LINENO: result: failed" >&5
8513echo "${ECHO_T}failed" >&6
8514else
8515  echo "$as_me:$LINENO: result: ok" >&5
8516echo "${ECHO_T}ok" >&6
8517fi
8518
8519echo "$as_me:$LINENO: checking for objdir" >&5
8520echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8521if test "${lt_cv_objdir+set}" = set; then
8522  echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
8524  rm -f .libs 2>/dev/null
8525mkdir .libs 2>/dev/null
8526if test -d .libs; then
8527  lt_cv_objdir=.libs
8528else
8529  # MS-DOS does not allow filenames that begin with a dot.
8530  lt_cv_objdir=_libs
8531fi
8532rmdir .libs 2>/dev/null
8533fi
8534echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8535echo "${ECHO_T}$lt_cv_objdir" >&6
8536objdir=$lt_cv_objdir
8537
8538
8539
8540
8541
8542case $host_os in
8543aix3*)
8544  # AIX sometimes has problems with the GCC collect2 program.  For some
8545  # reason, if we set the COLLECT_NAMES environment variable, the problems
8546  # vanish in a puff of smoke.
8547  if test "X${COLLECT_NAMES+set}" != Xset; then
8548    COLLECT_NAMES=
8549    export COLLECT_NAMES
8550  fi
8551  ;;
8552esac
8553
8554# Sed substitution that helps us do robust quoting.  It backslashifies
8555# metacharacters that are still active within double-quoted strings.
8556Xsed='sed -e 1s/^X//'
8557sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8558
8559# Same as above, but do not quote variable references.
8560double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8561
8562# Sed substitution to delay expansion of an escaped shell variable in a
8563# double_quote_subst'ed string.
8564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8565
8566# Sed substitution to avoid accidental globbing in evaled expressions
8567no_glob_subst='s/\*/\\\*/g'
8568
8569# Constants:
8570rm="rm -f"
8571
8572# Global variables:
8573default_ofile=libtool
8574can_build_shared=yes
8575
8576# All known linkers require a `.a' archive for static linking (except MSVC,
8577# which needs '.lib').
8578libext=a
8579ltmain="$ac_aux_dir/ltmain.sh"
8580ofile="$default_ofile"
8581with_gnu_ld="$lt_cv_prog_gnu_ld"
8582
8583if test -n "$ac_tool_prefix"; then
8584  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8585set dummy ${ac_tool_prefix}ar; ac_word=$2
8586echo "$as_me:$LINENO: checking for $ac_word" >&5
8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8588if test "${ac_cv_prog_AR+set}" = set; then
8589  echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591  if test -n "$AR"; then
8592  ac_cv_prog_AR="$AR" # Let the user override the test.
8593else
8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8595for as_dir in $PATH
8596do
8597  IFS=$as_save_IFS
8598  test -z "$as_dir" && as_dir=.
8599  for ac_exec_ext in '' $ac_executable_extensions; do
8600  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601    ac_cv_prog_AR="${ac_tool_prefix}ar"
8602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8603    break 2
8604  fi
8605done
8606done
8607
8608fi
8609fi
8610AR=$ac_cv_prog_AR
8611if test -n "$AR"; then
8612  echo "$as_me:$LINENO: result: $AR" >&5
8613echo "${ECHO_T}$AR" >&6
8614else
8615  echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
8617fi
8618
8619fi
8620if test -z "$ac_cv_prog_AR"; then
8621  ac_ct_AR=$AR
8622  # Extract the first word of "ar", so it can be a program name with args.
8623set dummy ar; ac_word=$2
8624echo "$as_me:$LINENO: checking for $ac_word" >&5
8625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8626if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8627  echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629  if test -n "$ac_ct_AR"; then
8630  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8631else
8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633for as_dir in $PATH
8634do
8635  IFS=$as_save_IFS
8636  test -z "$as_dir" && as_dir=.
8637  for ac_exec_ext in '' $ac_executable_extensions; do
8638  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8639    ac_cv_prog_ac_ct_AR="ar"
8640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641    break 2
8642  fi
8643done
8644done
8645
8646  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8647fi
8648fi
8649ac_ct_AR=$ac_cv_prog_ac_ct_AR
8650if test -n "$ac_ct_AR"; then
8651  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8652echo "${ECHO_T}$ac_ct_AR" >&6
8653else
8654  echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656fi
8657
8658  AR=$ac_ct_AR
8659else
8660  AR="$ac_cv_prog_AR"
8661fi
8662
8663if test -n "$ac_tool_prefix"; then
8664  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8665set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8666echo "$as_me:$LINENO: checking for $ac_word" >&5
8667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8668if test "${ac_cv_prog_RANLIB+set}" = set; then
8669  echo $ECHO_N "(cached) $ECHO_C" >&6
8670else
8671  if test -n "$RANLIB"; then
8672  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8673else
8674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677  IFS=$as_save_IFS
8678  test -z "$as_dir" && as_dir=.
8679  for ac_exec_ext in '' $ac_executable_extensions; do
8680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8681    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683    break 2
8684  fi
8685done
8686done
8687
8688fi
8689fi
8690RANLIB=$ac_cv_prog_RANLIB
8691if test -n "$RANLIB"; then
8692  echo "$as_me:$LINENO: result: $RANLIB" >&5
8693echo "${ECHO_T}$RANLIB" >&6
8694else
8695  echo "$as_me:$LINENO: result: no" >&5
8696echo "${ECHO_T}no" >&6
8697fi
8698
8699fi
8700if test -z "$ac_cv_prog_RANLIB"; then
8701  ac_ct_RANLIB=$RANLIB
8702  # Extract the first word of "ranlib", so it can be a program name with args.
8703set dummy ranlib; ac_word=$2
8704echo "$as_me:$LINENO: checking for $ac_word" >&5
8705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8706if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8707  echo $ECHO_N "(cached) $ECHO_C" >&6
8708else
8709  if test -n "$ac_ct_RANLIB"; then
8710  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  test -z "$as_dir" && as_dir=.
8717  for ac_exec_ext in '' $ac_executable_extensions; do
8718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8719    ac_cv_prog_ac_ct_RANLIB="ranlib"
8720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721    break 2
8722  fi
8723done
8724done
8725
8726  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8727fi
8728fi
8729ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8730if test -n "$ac_ct_RANLIB"; then
8731  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8732echo "${ECHO_T}$ac_ct_RANLIB" >&6
8733else
8734  echo "$as_me:$LINENO: result: no" >&5
8735echo "${ECHO_T}no" >&6
8736fi
8737
8738  RANLIB=$ac_ct_RANLIB
8739else
8740  RANLIB="$ac_cv_prog_RANLIB"
8741fi
8742
8743if test -n "$ac_tool_prefix"; then
8744  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8745set dummy ${ac_tool_prefix}strip; ac_word=$2
8746echo "$as_me:$LINENO: checking for $ac_word" >&5
8747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8748if test "${ac_cv_prog_STRIP+set}" = set; then
8749  echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751  if test -n "$STRIP"; then
8752  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8753else
8754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755for as_dir in $PATH
8756do
8757  IFS=$as_save_IFS
8758  test -z "$as_dir" && as_dir=.
8759  for ac_exec_ext in '' $ac_executable_extensions; do
8760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763    break 2
8764  fi
8765done
8766done
8767
8768fi
8769fi
8770STRIP=$ac_cv_prog_STRIP
8771if test -n "$STRIP"; then
8772  echo "$as_me:$LINENO: result: $STRIP" >&5
8773echo "${ECHO_T}$STRIP" >&6
8774else
8775  echo "$as_me:$LINENO: result: no" >&5
8776echo "${ECHO_T}no" >&6
8777fi
8778
8779fi
8780if test -z "$ac_cv_prog_STRIP"; then
8781  ac_ct_STRIP=$STRIP
8782  # Extract the first word of "strip", so it can be a program name with args.
8783set dummy strip; ac_word=$2
8784echo "$as_me:$LINENO: checking for $ac_word" >&5
8785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8786if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8787  echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789  if test -n "$ac_ct_STRIP"; then
8790  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8791else
8792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793for as_dir in $PATH
8794do
8795  IFS=$as_save_IFS
8796  test -z "$as_dir" && as_dir=.
8797  for ac_exec_ext in '' $ac_executable_extensions; do
8798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799    ac_cv_prog_ac_ct_STRIP="strip"
8800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8801    break 2
8802  fi
8803done
8804done
8805
8806  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8807fi
8808fi
8809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8810if test -n "$ac_ct_STRIP"; then
8811  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8812echo "${ECHO_T}$ac_ct_STRIP" >&6
8813else
8814  echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816fi
8817
8818  STRIP=$ac_ct_STRIP
8819else
8820  STRIP="$ac_cv_prog_STRIP"
8821fi
8822
8823
8824old_CC="$CC"
8825old_CFLAGS="$CFLAGS"
8826
8827# Set sane defaults for various variables
8828test -z "$AR" && AR=ar
8829test -z "$AR_FLAGS" && AR_FLAGS=cru
8830test -z "$AS" && AS=as
8831test -z "$CC" && CC=cc
8832test -z "$LTCC" && LTCC=$CC
8833test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8834test -z "$DLLTOOL" && DLLTOOL=dlltool
8835test -z "$LD" && LD=ld
8836test -z "$LN_S" && LN_S="ln -s"
8837test -z "$MAGIC_CMD" && MAGIC_CMD=file
8838test -z "$NM" && NM=nm
8839test -z "$SED" && SED=sed
8840test -z "$OBJDUMP" && OBJDUMP=objdump
8841test -z "$RANLIB" && RANLIB=:
8842test -z "$STRIP" && STRIP=:
8843test -z "$ac_objext" && ac_objext=o
8844
8845# Determine commands to create old-style static archives.
8846old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8847old_postinstall_cmds='chmod 644 $oldlib'
8848old_postuninstall_cmds=
8849
8850if test -n "$RANLIB"; then
8851  case $host_os in
8852  openbsd*)
8853    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8854    ;;
8855  *)
8856    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8857    ;;
8858  esac
8859  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8860fi
8861
8862for cc_temp in $compiler""; do
8863  case $cc_temp in
8864    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8865    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8866    \-*) ;;
8867    *) break;;
8868  esac
8869done
8870cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8871
8872
8873# Only perform the check for file, if the check method requires it
8874case $deplibs_check_method in
8875file_magic*)
8876  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8877    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8878echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8879if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8880  echo $ECHO_N "(cached) $ECHO_C" >&6
8881else
8882  case $MAGIC_CMD in
8883[\\/*] |  ?:[\\/]*)
8884  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8885  ;;
8886*)
8887  lt_save_MAGIC_CMD="$MAGIC_CMD"
8888  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8889  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8890  for ac_dir in $ac_dummy; do
8891    IFS="$lt_save_ifs"
8892    test -z "$ac_dir" && ac_dir=.
8893    if test -f $ac_dir/${ac_tool_prefix}file; then
8894      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8895      if test -n "$file_magic_test_file"; then
8896        case $deplibs_check_method in
8897        "file_magic "*)
8898          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8899          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8900          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8901            $EGREP "$file_magic_regex" > /dev/null; then
8902            :
8903          else
8904            cat <<EOF 1>&2
8905
8906*** Warning: the command libtool uses to detect shared libraries,
8907*** $file_magic_cmd, produces output that libtool cannot recognize.
8908*** The result is that libtool may fail to recognize shared libraries
8909*** as such.  This will affect the creation of libtool libraries that
8910*** depend on shared libraries, but programs linked with such libtool
8911*** libraries will work regardless of this problem.  Nevertheless, you
8912*** may want to report the problem to your system manager and/or to
8913*** bug-libtool@gnu.org
8914
8915EOF
8916          fi ;;
8917        esac
8918      fi
8919      break
8920    fi
8921  done
8922  IFS="$lt_save_ifs"
8923  MAGIC_CMD="$lt_save_MAGIC_CMD"
8924  ;;
8925esac
8926fi
8927
8928MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8929if test -n "$MAGIC_CMD"; then
8930  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8931echo "${ECHO_T}$MAGIC_CMD" >&6
8932else
8933  echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935fi
8936
8937if test -z "$lt_cv_path_MAGIC_CMD"; then
8938  if test -n "$ac_tool_prefix"; then
8939    echo "$as_me:$LINENO: checking for file" >&5
8940echo $ECHO_N "checking for file... $ECHO_C" >&6
8941if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943else
8944  case $MAGIC_CMD in
8945[\\/*] |  ?:[\\/]*)
8946  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8947  ;;
8948*)
8949  lt_save_MAGIC_CMD="$MAGIC_CMD"
8950  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8951  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8952  for ac_dir in $ac_dummy; do
8953    IFS="$lt_save_ifs"
8954    test -z "$ac_dir" && ac_dir=.
8955    if test -f $ac_dir/file; then
8956      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8957      if test -n "$file_magic_test_file"; then
8958        case $deplibs_check_method in
8959        "file_magic "*)
8960          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8961          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8962          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8963            $EGREP "$file_magic_regex" > /dev/null; then
8964            :
8965          else
8966            cat <<EOF 1>&2
8967
8968*** Warning: the command libtool uses to detect shared libraries,
8969*** $file_magic_cmd, produces output that libtool cannot recognize.
8970*** The result is that libtool may fail to recognize shared libraries
8971*** as such.  This will affect the creation of libtool libraries that
8972*** depend on shared libraries, but programs linked with such libtool
8973*** libraries will work regardless of this problem.  Nevertheless, you
8974*** may want to report the problem to your system manager and/or to
8975*** bug-libtool@gnu.org
8976
8977EOF
8978          fi ;;
8979        esac
8980      fi
8981      break
8982    fi
8983  done
8984  IFS="$lt_save_ifs"
8985  MAGIC_CMD="$lt_save_MAGIC_CMD"
8986  ;;
8987esac
8988fi
8989
8990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8991if test -n "$MAGIC_CMD"; then
8992  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8993echo "${ECHO_T}$MAGIC_CMD" >&6
8994else
8995  echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997fi
8998
8999  else
9000    MAGIC_CMD=:
9001  fi
9002fi
9003
9004  fi
9005  ;;
9006esac
9007
9008enable_dlopen=no
9009enable_win32_dll=no
9010
9011# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9012if test "${enable_libtool_lock+set}" = set; then
9013  enableval="$enable_libtool_lock"
9014
9015fi;
9016test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9017
9018
9019# Check whether --with-pic or --without-pic was given.
9020if test "${with_pic+set}" = set; then
9021  withval="$with_pic"
9022  pic_mode="$withval"
9023else
9024  pic_mode=default
9025fi;
9026test -z "$pic_mode" && pic_mode=default
9027
9028# Use C for the default configuration in the libtool script
9029tagname=
9030lt_save_CC="$CC"
9031ac_ext=c
9032ac_cpp='$CPP $CPPFLAGS'
9033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9035ac_compiler_gnu=$ac_cv_c_compiler_gnu
9036
9037
9038# Source file extension for C test sources.
9039ac_ext=c
9040
9041# Object file extension for compiled C test sources.
9042objext=o
9043objext=$objext
9044
9045# Code to be used in simple compile tests
9046lt_simple_compile_test_code="int some_variable = 0;\n"
9047
9048# Code to be used in simple link tests
9049lt_simple_link_test_code='int main(){return(0);}\n'
9050
9051
9052# If no C compiler was specified, use CC.
9053LTCC=${LTCC-"$CC"}
9054
9055# If no C compiler flags were specified, use CFLAGS.
9056LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9057
9058# Allow CC to be a program name with arguments.
9059compiler=$CC
9060
9061
9062# save warnings/boilerplate of simple test code
9063ac_outfile=conftest.$ac_objext
9064printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9065eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9066_lt_compiler_boilerplate=`cat conftest.err`
9067$rm conftest*
9068
9069ac_outfile=conftest.$ac_objext
9070printf "$lt_simple_link_test_code" >conftest.$ac_ext
9071eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9072_lt_linker_boilerplate=`cat conftest.err`
9073$rm conftest*
9074
9075
9076## CAVEAT EMPTOR:
9077## There is no encapsulation within the following macros, do not change
9078## the running order or otherwise move them around unless you know exactly
9079## what you are doing...
9080
9081lt_prog_compiler_no_builtin_flag=
9082
9083if test "$GCC" = yes; then
9084  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9085
9086
9087echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9088echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9089if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9090  echo $ECHO_N "(cached) $ECHO_C" >&6
9091else
9092  lt_cv_prog_compiler_rtti_exceptions=no
9093  ac_outfile=conftest.$ac_objext
9094   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9095   lt_compiler_flag="-fno-rtti -fno-exceptions"
9096   # Insert the option either (1) after the last *FLAGS variable, or
9097   # (2) before a word containing "conftest.", or (3) at the end.
9098   # Note that $ac_compile itself does not contain backslashes and begins
9099   # with a dollar sign (not a hyphen), so the echo should work correctly.
9100   # The option is referenced via a variable to avoid confusing sed.
9101   lt_compile=`echo "$ac_compile" | $SED \
9102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104   -e 's:$: $lt_compiler_flag:'`
9105   (eval echo "\"\$as_me:9105: $lt_compile\"" >&5)
9106   (eval "$lt_compile" 2>conftest.err)
9107   ac_status=$?
9108   cat conftest.err >&5
9109   echo "$as_me:9109: \$? = $ac_status" >&5
9110   if (exit $ac_status) && test -s "$ac_outfile"; then
9111     # The compiler can only warn and ignore the option if not recognized
9112     # So say no if there are warnings other than the usual output.
9113     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9114     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9115     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9116       lt_cv_prog_compiler_rtti_exceptions=yes
9117     fi
9118   fi
9119   $rm conftest*
9120
9121fi
9122echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9123echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9124
9125if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9126    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9127else
9128    :
9129fi
9130
9131fi
9132
9133lt_prog_compiler_wl=
9134lt_prog_compiler_pic=
9135lt_prog_compiler_static=
9136
9137echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9138echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9139
9140  if test "$GCC" = yes; then
9141    lt_prog_compiler_wl='-Wl,'
9142    lt_prog_compiler_static='-static'
9143
9144    case $host_os in
9145      aix*)
9146      # All AIX code is PIC.
9147      if test "$host_cpu" = ia64; then
9148        # AIX 5 now supports IA64 processor
9149        lt_prog_compiler_static='-Bstatic'
9150      fi
9151      ;;
9152
9153    amigaos*)
9154      # FIXME: we need at least 68020 code to build shared libraries, but
9155      # adding the `-m68020' flag to GCC prevents building anything better,
9156      # like `-m68040'.
9157      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9158      ;;
9159
9160    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9161      # PIC is the default for these OSes.
9162      ;;
9163
9164    mingw* | pw32* | os2*)
9165      # This hack is so that the source file can tell whether it is being
9166      # built for inclusion in a dll (and should export symbols for example).
9167      lt_prog_compiler_pic='-DDLL_EXPORT'
9168      ;;
9169
9170    darwin* | rhapsody*)
9171      # PIC is the default on this platform
9172      # Common symbols not allowed in MH_DYLIB files
9173      lt_prog_compiler_pic='-fno-common'
9174      ;;
9175
9176    interix3*)
9177      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9178      # Instead, we relocate shared libraries at runtime.
9179      ;;
9180
9181    msdosdjgpp*)
9182      # Just because we use GCC doesn't mean we suddenly get shared libraries
9183      # on systems that don't support them.
9184      lt_prog_compiler_can_build_shared=no
9185      enable_shared=no
9186      ;;
9187
9188    sysv4*MP*)
9189      if test -d /usr/nec; then
9190        lt_prog_compiler_pic=-Kconform_pic
9191      fi
9192      ;;
9193
9194    hpux*)
9195      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9196      # not for PA HP-UX.
9197      case $host_cpu in
9198      hppa*64*|ia64*)
9199        # +Z the default
9200        ;;
9201      *)
9202        lt_prog_compiler_pic='-fPIC'
9203        ;;
9204      esac
9205      ;;
9206
9207    *)
9208      lt_prog_compiler_pic='-fPIC'
9209      ;;
9210    esac
9211  else
9212    # PORTME Check for flag to pass linker flags through the system compiler.
9213    case $host_os in
9214    aix*)
9215      lt_prog_compiler_wl='-Wl,'
9216      if test "$host_cpu" = ia64; then
9217        # AIX 5 now supports IA64 processor
9218        lt_prog_compiler_static='-Bstatic'
9219      else
9220        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9221      fi
9222      ;;
9223      darwin*)
9224        # PIC is the default on this platform
9225        # Common symbols not allowed in MH_DYLIB files
9226       case $cc_basename in
9227         xlc*)
9228         lt_prog_compiler_pic='-qnocommon'
9229         lt_prog_compiler_wl='-Wl,'
9230         ;;
9231       esac
9232       ;;
9233
9234    mingw* | pw32* | os2*)
9235      # This hack is so that the source file can tell whether it is being
9236      # built for inclusion in a dll (and should export symbols for example).
9237      lt_prog_compiler_pic='-DDLL_EXPORT'
9238      ;;
9239
9240    hpux9* | hpux10* | hpux11*)
9241      lt_prog_compiler_wl='-Wl,'
9242      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9243      # not for PA HP-UX.
9244      case $host_cpu in
9245      hppa*64*|ia64*)
9246        # +Z the default
9247        ;;
9248      *)
9249        lt_prog_compiler_pic='+Z'
9250        ;;
9251      esac
9252      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9253      lt_prog_compiler_static='${wl}-a ${wl}archive'
9254      ;;
9255
9256    irix5* | irix6* | nonstopux*)
9257      lt_prog_compiler_wl='-Wl,'
9258      # PIC (with -KPIC) is the default.
9259      lt_prog_compiler_static='-non_shared'
9260      ;;
9261
9262    newsos6)
9263      lt_prog_compiler_pic='-KPIC'
9264      lt_prog_compiler_static='-Bstatic'
9265      ;;
9266
9267    linux*)
9268      case $cc_basename in
9269      icc* | ecc*)
9270        lt_prog_compiler_wl='-Wl,'
9271        lt_prog_compiler_pic='-KPIC'
9272        lt_prog_compiler_static='-static'
9273        ;;
9274      pgcc* | pgf77* | pgf90* | pgf95*)
9275        # Portland Group compilers (*not* the Pentium gcc compiler,
9276        # which looks to be a dead project)
9277        lt_prog_compiler_wl='-Wl,'
9278        lt_prog_compiler_pic='-fpic'
9279        lt_prog_compiler_static='-Bstatic'
9280        ;;
9281      ccc*)
9282        lt_prog_compiler_wl='-Wl,'
9283        # All Alpha code is PIC.
9284        lt_prog_compiler_static='-non_shared'
9285        ;;
9286      esac
9287      ;;
9288
9289    osf3* | osf4* | osf5*)
9290      lt_prog_compiler_wl='-Wl,'
9291      # All OSF/1 code is PIC.
9292      lt_prog_compiler_static='-non_shared'
9293      ;;
9294
9295    solaris*)
9296      lt_prog_compiler_pic='-KPIC'
9297      lt_prog_compiler_static='-Bstatic'
9298      case $cc_basename in
9299      f77* | f90* | f95*)
9300        lt_prog_compiler_wl='-Qoption ld ';;
9301      *)
9302        lt_prog_compiler_wl='-Wl,';;
9303      esac
9304      ;;
9305
9306    sunos4*)
9307      lt_prog_compiler_wl='-Qoption ld '
9308      lt_prog_compiler_pic='-PIC'
9309      lt_prog_compiler_static='-Bstatic'
9310      ;;
9311
9312    sysv4 | sysv4.2uw2* | sysv4.3*)
9313      lt_prog_compiler_wl='-Wl,'
9314      lt_prog_compiler_pic='-KPIC'
9315      lt_prog_compiler_static='-Bstatic'
9316      ;;
9317
9318    sysv4*MP*)
9319      if test -d /usr/nec ;then
9320        lt_prog_compiler_pic='-Kconform_pic'
9321        lt_prog_compiler_static='-Bstatic'
9322      fi
9323      ;;
9324
9325    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9326      lt_prog_compiler_wl='-Wl,'
9327      lt_prog_compiler_pic='-KPIC'
9328      lt_prog_compiler_static='-Bstatic'
9329      ;;
9330
9331    unicos*)
9332      lt_prog_compiler_wl='-Wl,'
9333      lt_prog_compiler_can_build_shared=no
9334      ;;
9335
9336    uts4*)
9337      lt_prog_compiler_pic='-pic'
9338      lt_prog_compiler_static='-Bstatic'
9339      ;;
9340
9341    *)
9342      lt_prog_compiler_can_build_shared=no
9343      ;;
9344    esac
9345  fi
9346
9347echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9348echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9349
9350#
9351# Check to make sure the PIC flag actually works.
9352#
9353if test -n "$lt_prog_compiler_pic"; then
9354
9355echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9356echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9357if test "${lt_prog_compiler_pic_works+set}" = set; then
9358  echo $ECHO_N "(cached) $ECHO_C" >&6
9359else
9360  lt_prog_compiler_pic_works=no
9361  ac_outfile=conftest.$ac_objext
9362   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9363   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9364   # Insert the option either (1) after the last *FLAGS variable, or
9365   # (2) before a word containing "conftest.", or (3) at the end.
9366   # Note that $ac_compile itself does not contain backslashes and begins
9367   # with a dollar sign (not a hyphen), so the echo should work correctly.
9368   # The option is referenced via a variable to avoid confusing sed.
9369   lt_compile=`echo "$ac_compile" | $SED \
9370   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372   -e 's:$: $lt_compiler_flag:'`
9373   (eval echo "\"\$as_me:9373: $lt_compile\"" >&5)
9374   (eval "$lt_compile" 2>conftest.err)
9375   ac_status=$?
9376   cat conftest.err >&5
9377   echo "$as_me:9377: \$? = $ac_status" >&5
9378   if (exit $ac_status) && test -s "$ac_outfile"; then
9379     # The compiler can only warn and ignore the option if not recognized
9380     # So say no if there are warnings other than the usual output.
9381     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9382     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9383     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9384       lt_prog_compiler_pic_works=yes
9385     fi
9386   fi
9387   $rm conftest*
9388
9389fi
9390echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9391echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9392
9393if test x"$lt_prog_compiler_pic_works" = xyes; then
9394    case $lt_prog_compiler_pic in
9395     "" | " "*) ;;
9396     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9397     esac
9398else
9399    lt_prog_compiler_pic=
9400     lt_prog_compiler_can_build_shared=no
9401fi
9402
9403fi
9404case $host_os in
9405  # For platforms which do not support PIC, -DPIC is meaningless:
9406  *djgpp*)
9407    lt_prog_compiler_pic=
9408    ;;
9409  *)
9410    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9411    ;;
9412esac
9413
9414#
9415# Check to make sure the static flag actually works.
9416#
9417wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9418echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9419echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9420if test "${lt_prog_compiler_static_works+set}" = set; then
9421  echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423  lt_prog_compiler_static_works=no
9424   save_LDFLAGS="$LDFLAGS"
9425   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9426   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9427   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9428     # The linker can only warn and ignore the option if not recognized
9429     # So say no if there are warnings
9430     if test -s conftest.err; then
9431       # Append any errors to the config.log.
9432       cat conftest.err 1>&5
9433       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9434       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435       if diff conftest.exp conftest.er2 >/dev/null; then
9436         lt_prog_compiler_static_works=yes
9437       fi
9438     else
9439       lt_prog_compiler_static_works=yes
9440     fi
9441   fi
9442   $rm conftest*
9443   LDFLAGS="$save_LDFLAGS"
9444
9445fi
9446echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9447echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9448
9449if test x"$lt_prog_compiler_static_works" = xyes; then
9450    :
9451else
9452    lt_prog_compiler_static=
9453fi
9454
9455
9456echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9457echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9458if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9459  echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461  lt_cv_prog_compiler_c_o=no
9462   $rm -r conftest 2>/dev/null
9463   mkdir conftest
9464   cd conftest
9465   mkdir out
9466   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9467
9468   lt_compiler_flag="-o out/conftest2.$ac_objext"
9469   # Insert the option either (1) after the last *FLAGS variable, or
9470   # (2) before a word containing "conftest.", or (3) at the end.
9471   # Note that $ac_compile itself does not contain backslashes and begins
9472   # with a dollar sign (not a hyphen), so the echo should work correctly.
9473   lt_compile=`echo "$ac_compile" | $SED \
9474   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9475   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9476   -e 's:$: $lt_compiler_flag:'`
9477   (eval echo "\"\$as_me:9477: $lt_compile\"" >&5)
9478   (eval "$lt_compile" 2>out/conftest.err)
9479   ac_status=$?
9480   cat out/conftest.err >&5
9481   echo "$as_me:9481: \$? = $ac_status" >&5
9482   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9483   then
9484     # The compiler can only warn and ignore the option if not recognized
9485     # So say no if there are warnings
9486     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9487     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9488     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9489       lt_cv_prog_compiler_c_o=yes
9490     fi
9491   fi
9492   chmod u+w . 2>&5
9493   $rm conftest*
9494   # SGI C++ compiler will create directory out/ii_files/ for
9495   # template instantiation
9496   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9497   $rm out/* && rmdir out
9498   cd ..
9499   rmdir conftest
9500   $rm conftest*
9501
9502fi
9503echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9504echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9505
9506
9507hard_links="nottested"
9508if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9509  # do not overwrite the value of need_locks provided by the user
9510  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9511echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9512  hard_links=yes
9513  $rm conftest*
9514  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515  touch conftest.a
9516  ln conftest.a conftest.b 2>&5 || hard_links=no
9517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9518  echo "$as_me:$LINENO: result: $hard_links" >&5
9519echo "${ECHO_T}$hard_links" >&6
9520  if test "$hard_links" = no; then
9521    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9522echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9523    need_locks=warn
9524  fi
9525else
9526  need_locks=no
9527fi
9528
9529echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9530echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9531
9532  runpath_var=
9533  allow_undefined_flag=
9534  enable_shared_with_static_runtimes=no
9535  archive_cmds=
9536  archive_expsym_cmds=
9537  old_archive_From_new_cmds=
9538  old_archive_from_expsyms_cmds=
9539  export_dynamic_flag_spec=
9540  whole_archive_flag_spec=
9541  thread_safe_flag_spec=
9542  hardcode_libdir_flag_spec=
9543  hardcode_libdir_flag_spec_ld=
9544  hardcode_libdir_separator=
9545  hardcode_direct=no
9546  hardcode_minus_L=no
9547  hardcode_shlibpath_var=unsupported
9548  link_all_deplibs=unknown
9549  hardcode_automatic=no
9550  module_cmds=
9551  module_expsym_cmds=
9552  always_export_symbols=no
9553  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9554  # include_expsyms should be a list of space-separated symbols to be *always*
9555  # included in the symbol list
9556  include_expsyms=
9557  # exclude_expsyms can be an extended regexp of symbols to exclude
9558  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9559  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9560  # as well as any symbol that contains `d'.
9561  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9562  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9563  # platforms (ab)use it in PIC code, but their linkers get confused if
9564  # the symbol is explicitly referenced.  Since portable code cannot
9565  # rely on this symbol name, it's probably fine to never include it in
9566  # preloaded symbol tables.
9567  extract_expsyms_cmds=
9568  # Just being paranoid about ensuring that cc_basename is set.
9569  for cc_temp in $compiler""; do
9570  case $cc_temp in
9571    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9572    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9573    \-*) ;;
9574    *) break;;
9575  esac
9576done
9577cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9578
9579  case $host_os in
9580  cygwin* | mingw* | pw32*)
9581    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9582    # When not using gcc, we currently assume that we are using
9583    # Microsoft Visual C++.
9584    if test "$GCC" != yes; then
9585      with_gnu_ld=no
9586    fi
9587    ;;
9588  interix*)
9589    # we just hope/assume this is gcc and not c89 (= MSVC++)
9590    with_gnu_ld=yes
9591    ;;
9592  openbsd*)
9593    with_gnu_ld=no
9594    ;;
9595  esac
9596
9597  ld_shlibs=yes
9598  if test "$with_gnu_ld" = yes; then
9599    # If archive_cmds runs LD, not CC, wlarc should be empty
9600    wlarc='${wl}'
9601
9602    # Set some defaults for GNU ld with shared library support. These
9603    # are reset later if shared libraries are not supported. Putting them
9604    # here allows them to be overridden if necessary.
9605    runpath_var=LD_RUN_PATH
9606    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9607    export_dynamic_flag_spec='${wl}--export-dynamic'
9608    # ancient GNU ld didn't support --whole-archive et. al.
9609    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9610        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9611      else
9612        whole_archive_flag_spec=
9613    fi
9614    supports_anon_versioning=no
9615    case `$LD -v 2>/dev/null` in
9616      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9617      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9618      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9619      *\ 2.11.*) ;; # other 2.11 versions
9620      *) supports_anon_versioning=yes ;;
9621    esac
9622
9623    # See if GNU ld supports shared libraries.
9624    case $host_os in
9625    aix3* | aix4* | aix5*)
9626      # On AIX/PPC, the GNU linker is very broken
9627      if test "$host_cpu" != ia64; then
9628        ld_shlibs=no
9629        cat <<EOF 1>&2
9630
9631*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9632*** to be unable to reliably create shared libraries on AIX.
9633*** Therefore, libtool is disabling shared libraries support.  If you
9634*** really care for shared libraries, you may want to modify your PATH
9635*** so that a non-GNU linker is found, and then restart.
9636
9637EOF
9638      fi
9639      ;;
9640
9641    amigaos*)
9642      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)'
9643      hardcode_libdir_flag_spec='-L$libdir'
9644      hardcode_minus_L=yes
9645
9646      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9647      # that the semantics of dynamic libraries on AmigaOS, at least up
9648      # to version 4, is to share data among multiple programs linked
9649      # with the same dynamic library.  Since this doesn't match the
9650      # behavior of shared libraries on other platforms, we can't use
9651      # them.
9652      ld_shlibs=no
9653      ;;
9654
9655    beos*)
9656      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9657        allow_undefined_flag=unsupported
9658        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9659        # support --undefined.  This deserves some investigation.  FIXME
9660        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661      else
9662        ld_shlibs=no
9663      fi
9664      ;;
9665
9666    cygwin* | mingw* | pw32*)
9667      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9668      # as there is no search path for DLLs.
9669      hardcode_libdir_flag_spec='-L$libdir'
9670      allow_undefined_flag=unsupported
9671      always_export_symbols=no
9672      enable_shared_with_static_runtimes=yes
9673      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9674
9675      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9676        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9677        # If the export-symbols file already is a .def file (1st line
9678        # is EXPORTS), use it as is; otherwise, prepend...
9679        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9680          cp $export_symbols $output_objdir/$soname.def;
9681        else
9682          echo EXPORTS > $output_objdir/$soname.def;
9683          cat $export_symbols >> $output_objdir/$soname.def;
9684        fi~
9685        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9686      else
9687        ld_shlibs=no
9688      fi
9689      ;;
9690
9691    interix3*)
9692      hardcode_direct=no
9693      hardcode_shlibpath_var=no
9694      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9695      export_dynamic_flag_spec='${wl}-E'
9696      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9697      # Instead, shared libraries are loaded at an image base (0x10000000 by
9698      # default) and relocated if they conflict, which is a slow very memory
9699      # consuming and fragmenting process.  To avoid this, we pick a random,
9700      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9701      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9702      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9703      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'
9704      ;;
9705
9706    linux*)
9707      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9708        tmp_addflag=
9709        case $cc_basename,$host_cpu in
9710        pgcc*)                          # Portland Group C compiler
9711          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'
9712          tmp_addflag=' $pic_flag'
9713          ;;
9714        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9715          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'
9716          tmp_addflag=' $pic_flag -Mnomain' ;;
9717        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9718          tmp_addflag=' -i_dynamic' ;;
9719        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9720          tmp_addflag=' -i_dynamic -nofor_main' ;;
9721        ifc* | ifort*)                  # Intel Fortran compiler
9722          tmp_addflag=' -nofor_main' ;;
9723        esac
9724        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9725
9726        if test $supports_anon_versioning = yes; then
9727          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9728  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9729  $echo "local: *; };" >> $output_objdir/$libname.ver~
9730          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9731        fi
9732      else
9733        ld_shlibs=no
9734      fi
9735      ;;
9736
9737    netbsd*)
9738      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9739        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9740        wlarc=
9741      else
9742        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9744      fi
9745      ;;
9746
9747    solaris*)
9748      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9749        ld_shlibs=no
9750        cat <<EOF 1>&2
9751
9752*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9753*** create shared libraries on Solaris systems.  Therefore, libtool
9754*** is disabling shared libraries support.  We urge you to upgrade GNU
9755*** binutils to release 2.9.1 or newer.  Another option is to modify
9756*** your PATH or compiler configuration so that the native linker is
9757*** used, and then restart.
9758
9759EOF
9760      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9761        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9763      else
9764        ld_shlibs=no
9765      fi
9766      ;;
9767
9768    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9769      case `$LD -v 2>&1` in
9770        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9771        ld_shlibs=no
9772        cat <<_LT_EOF 1>&2
9773
9774*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9775*** reliably create shared libraries on SCO systems.  Therefore, libtool
9776*** is disabling shared libraries support.  We urge you to upgrade GNU
9777*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9778*** your PATH or compiler configuration so that the native linker is
9779*** used, and then restart.
9780
9781_LT_EOF
9782        ;;
9783        *)
9784          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9785            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9786            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9787            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9788          else
9789            ld_shlibs=no
9790          fi
9791        ;;
9792      esac
9793      ;;
9794
9795    sunos4*)
9796      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9797      wlarc=
9798      hardcode_direct=yes
9799      hardcode_shlibpath_var=no
9800      ;;
9801
9802    *)
9803      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9804        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9806      else
9807        ld_shlibs=no
9808      fi
9809      ;;
9810    esac
9811
9812    if test "$ld_shlibs" = no; then
9813      runpath_var=
9814      hardcode_libdir_flag_spec=
9815      export_dynamic_flag_spec=
9816      whole_archive_flag_spec=
9817    fi
9818  else
9819    # PORTME fill in a description of your system's linker (not GNU ld)
9820    case $host_os in
9821    aix3*)
9822      allow_undefined_flag=unsupported
9823      always_export_symbols=yes
9824      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'
9825      # Note: this linker hardcodes the directories in LIBPATH if there
9826      # are no directories specified by -L.
9827      hardcode_minus_L=yes
9828      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9829        # Neither direct hardcoding nor static linking is supported with a
9830        # broken collect2.
9831        hardcode_direct=unsupported
9832      fi
9833      ;;
9834
9835    aix4* | aix5*)
9836      if test "$host_cpu" = ia64; then
9837        # On IA64, the linker does run time linking by default, so we don't
9838        # have to do anything special.
9839        aix_use_runtimelinking=no
9840        exp_sym_flag='-Bexport'
9841        no_entry_flag=""
9842      else
9843        # If we're using GNU nm, then we don't want the "-C" option.
9844        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9845        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9846          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'
9847        else
9848          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'
9849        fi
9850        aix_use_runtimelinking=no
9851
9852        # Test if we are trying to use run time linking or normal
9853        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9854        # need to do runtime linking.
9855        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9856          for ld_flag in $LDFLAGS; do
9857          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9858            aix_use_runtimelinking=yes
9859            break
9860          fi
9861          done
9862          ;;
9863        esac
9864
9865        exp_sym_flag='-bexport'
9866        no_entry_flag='-bnoentry'
9867      fi
9868
9869      # When large executables or shared objects are built, AIX ld can
9870      # have problems creating the table of contents.  If linking a library
9871      # or program results in "error TOC overflow" add -mminimal-toc to
9872      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9873      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9874
9875      archive_cmds=''
9876      hardcode_direct=yes
9877      hardcode_libdir_separator=':'
9878      link_all_deplibs=yes
9879
9880      if test "$GCC" = yes; then
9881        case $host_os in aix4.[012]|aix4.[012].*)
9882        # We only want to do this on AIX 4.2 and lower, the check
9883        # below for broken collect2 doesn't work under 4.3+
9884          collect2name=`${CC} -print-prog-name=collect2`
9885          if test -f "$collect2name" && \
9886           strings "$collect2name" | grep resolve_lib_name >/dev/null
9887          then
9888          # We have reworked collect2
9889          hardcode_direct=yes
9890          else
9891          # We have old collect2
9892          hardcode_direct=unsupported
9893          # It fails to find uninstalled libraries when the uninstalled
9894          # path is not listed in the libpath.  Setting hardcode_minus_L
9895          # to unsupported forces relinking
9896          hardcode_minus_L=yes
9897          hardcode_libdir_flag_spec='-L$libdir'
9898          hardcode_libdir_separator=
9899          fi
9900          ;;
9901        esac
9902        shared_flag='-shared'
9903        if test "$aix_use_runtimelinking" = yes; then
9904          shared_flag="$shared_flag "'${wl}-G'
9905        fi
9906      else
9907        # not using gcc
9908        if test "$host_cpu" = ia64; then
9909        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9910        # chokes on -Wl,-G. The following line is correct:
9911          shared_flag='-G'
9912        else
9913          if test "$aix_use_runtimelinking" = yes; then
9914            shared_flag='${wl}-G'
9915          else
9916            shared_flag='${wl}-bM:SRE'
9917          fi
9918        fi
9919      fi
9920
9921      # It seems that -bexpall does not export symbols beginning with
9922      # underscore (_), so it is better to generate a list of symbols to export.
9923      always_export_symbols=yes
9924      if test "$aix_use_runtimelinking" = yes; then
9925        # Warning - without using the other runtime loading flags (-brtl),
9926        # -berok will link without error, but may produce a broken library.
9927        allow_undefined_flag='-berok'
9928       # Determine the default libpath from the value encoded in an empty executable.
9929       cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h.  */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h.  */
9935
9936#ifdef F77_DUMMY_MAIN
9937
9938#  ifdef __cplusplus
9939     extern "C"
9940#  endif
9941   int F77_DUMMY_MAIN() { return 1; }
9942
9943#endif
9944int
9945main ()
9946{
9947
9948  ;
9949  return 0;
9950}
9951_ACEOF
9952rm -f conftest.$ac_objext conftest$ac_exeext
9953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9954  (eval $ac_link) 2>conftest.er1
9955  ac_status=$?
9956  grep -v '^ *+' conftest.er1 >conftest.err
9957  rm -f conftest.er1
9958  cat conftest.err >&5
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); } &&
9961         { ac_try='test -z "$ac_c_werror_flag"
9962                         || test ! -s conftest.err'
9963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964  (eval $ac_try) 2>&5
9965  ac_status=$?
9966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); }; } &&
9968         { ac_try='test -s conftest$ac_exeext'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; }; then
9974
9975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9976}'`
9977# Check for a 64-bit object if we didn't find anything.
9978if 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; }
9979}'`; fi
9980else
9981  echo "$as_me: failed program was:" >&5
9982sed 's/^/| /' conftest.$ac_ext >&5
9983
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986      conftest$ac_exeext conftest.$ac_ext
9987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9988
9989       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9990        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"
9991       else
9992        if test "$host_cpu" = ia64; then
9993          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9994          allow_undefined_flag="-z nodefs"
9995          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"
9996        else
9997         # Determine the default libpath from the value encoded in an empty executable.
9998         cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004
10005#ifdef F77_DUMMY_MAIN
10006
10007#  ifdef __cplusplus
10008     extern "C"
10009#  endif
10010   int F77_DUMMY_MAIN() { return 1; }
10011
10012#endif
10013int
10014main ()
10015{
10016
10017  ;
10018  return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
10022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023  (eval $ac_link) 2>conftest.er1
10024  ac_status=$?
10025  grep -v '^ *+' conftest.er1 >conftest.err
10026  rm -f conftest.er1
10027  cat conftest.err >&5
10028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029  (exit $ac_status); } &&
10030         { ac_try='test -z "$ac_c_werror_flag"
10031                         || test ! -s conftest.err'
10032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033  (eval $ac_try) 2>&5
10034  ac_status=$?
10035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036  (exit $ac_status); }; } &&
10037         { ac_try='test -s conftest$ac_exeext'
10038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039  (eval $ac_try) 2>&5
10040  ac_status=$?
10041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042  (exit $ac_status); }; }; then
10043
10044aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10045}'`
10046# Check for a 64-bit object if we didn't find anything.
10047if 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; }
10048}'`; fi
10049else
10050  echo "$as_me: failed program was:" >&5
10051sed 's/^/| /' conftest.$ac_ext >&5
10052
10053fi
10054rm -f conftest.err conftest.$ac_objext \
10055      conftest$ac_exeext conftest.$ac_ext
10056if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10057
10058         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059          # Warning - without using the other run time loading flags,
10060          # -berok will link without error, but may produce a broken library.
10061          no_undefined_flag=' ${wl}-bernotok'
10062          allow_undefined_flag=' ${wl}-berok'
10063          # Exported symbols can be pulled into shared objects from archives
10064          whole_archive_flag_spec='$convenience'
10065          archive_cmds_need_lc=yes
10066          # This is similar to how AIX traditionally builds its shared libraries.
10067          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'
10068        fi
10069      fi
10070      ;;
10071
10072    amigaos*)
10073      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)'
10074      hardcode_libdir_flag_spec='-L$libdir'
10075      hardcode_minus_L=yes
10076      # see comment about different semantics on the GNU ld section
10077      ld_shlibs=no
10078      ;;
10079
10080    bsdi[45]*)
10081      export_dynamic_flag_spec=-rdynamic
10082      ;;
10083
10084    cygwin* | mingw* | pw32*)
10085      # When not using gcc, we currently assume that we are using
10086      # Microsoft Visual C++.
10087      # hardcode_libdir_flag_spec is actually meaningless, as there is
10088      # no search path for DLLs.
10089      hardcode_libdir_flag_spec=' '
10090      allow_undefined_flag=unsupported
10091      # Tell ltmain to make .lib files, not .a files.
10092      libext=lib
10093      # Tell ltmain to make .dll files, not .so files.
10094      shrext_cmds=".dll"
10095      # FIXME: Setting linknames here is a bad hack.
10096      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10097      # The linker will automatically build a .lib file if we build a DLL.
10098      old_archive_From_new_cmds='true'
10099      # FIXME: Should let the user specify the lib program.
10100      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10101      fix_srcfile_path='`cygpath -w "$srcfile"`'
10102      enable_shared_with_static_runtimes=yes
10103      ;;
10104
10105    darwin* | rhapsody*)
10106      case $host_os in
10107        rhapsody* | darwin1.[012])
10108         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10109         ;;
10110       *) # Darwin 1.3 on
10111         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10112           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10113         else
10114           case ${MACOSX_DEPLOYMENT_TARGET} in
10115             10.[012])
10116               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10117               ;;
10118             10.*)
10119               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10120               ;;
10121           esac
10122         fi
10123         ;;
10124      esac
10125      archive_cmds_need_lc=no
10126      hardcode_direct=no
10127      hardcode_automatic=yes
10128      hardcode_shlibpath_var=unsupported
10129      whole_archive_flag_spec=''
10130      link_all_deplibs=yes
10131    if test "$GCC" = yes ; then
10132        output_verbose_link_cmd='echo'
10133        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10134      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10135      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10136      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}'
10137      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}'
10138    else
10139      case $cc_basename in
10140        xlc*)
10141         output_verbose_link_cmd='echo'
10142         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10143         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10144          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10145         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}'
10146          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}'
10147          ;;
10148       *)
10149         ld_shlibs=no
10150          ;;
10151      esac
10152    fi
10153      ;;
10154
10155    dgux*)
10156      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157      hardcode_libdir_flag_spec='-L$libdir'
10158      hardcode_shlibpath_var=no
10159      ;;
10160
10161    freebsd1*)
10162      ld_shlibs=no
10163      ;;
10164
10165    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10166    # support.  Future versions do this automatically, but an explicit c++rt0.o
10167    # does not break anything, and helps significantly (at the cost of a little
10168    # extra space).
10169    freebsd2.2*)
10170      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10171      hardcode_libdir_flag_spec='-R$libdir'
10172      hardcode_direct=yes
10173      hardcode_shlibpath_var=no
10174      ;;
10175
10176    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10177    freebsd2*)
10178      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10179      hardcode_direct=yes
10180      hardcode_minus_L=yes
10181      hardcode_shlibpath_var=no
10182      ;;
10183
10184    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10185    freebsd* | kfreebsd*-gnu | dragonfly*)
10186      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10187      hardcode_libdir_flag_spec='-R$libdir'
10188      hardcode_direct=yes
10189      hardcode_shlibpath_var=no
10190      ;;
10191
10192    hpux9*)
10193      if test "$GCC" = yes; then
10194        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'
10195      else
10196        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'
10197      fi
10198      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10199      hardcode_libdir_separator=:
10200      hardcode_direct=yes
10201
10202      # hardcode_minus_L: Not really in the search PATH,
10203      # but as the default location of the library.
10204      hardcode_minus_L=yes
10205      export_dynamic_flag_spec='${wl}-E'
10206      ;;
10207
10208    hpux10*)
10209      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10210        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10211      else
10212        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10213      fi
10214      if test "$with_gnu_ld" = no; then
10215        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10216        hardcode_libdir_separator=:
10217
10218        hardcode_direct=yes
10219        export_dynamic_flag_spec='${wl}-E'
10220
10221        # hardcode_minus_L: Not really in the search PATH,
10222        # but as the default location of the library.
10223        hardcode_minus_L=yes
10224      fi
10225      ;;
10226
10227    hpux11*)
10228      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10229        case $host_cpu in
10230        hppa*64*)
10231          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232          ;;
10233        ia64*)
10234          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        *)
10237          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10238          ;;
10239        esac
10240      else
10241        case $host_cpu in
10242        hppa*64*)
10243          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10244          ;;
10245        ia64*)
10246          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10247          ;;
10248        *)
10249          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250          ;;
10251        esac
10252      fi
10253      if test "$with_gnu_ld" = no; then
10254        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10255        hardcode_libdir_separator=:
10256
10257        case $host_cpu in
10258        hppa*64*|ia64*)
10259          hardcode_libdir_flag_spec_ld='+b $libdir'
10260          hardcode_direct=no
10261          hardcode_shlibpath_var=no
10262          ;;
10263        *)
10264          hardcode_direct=yes
10265          export_dynamic_flag_spec='${wl}-E'
10266
10267          # hardcode_minus_L: Not really in the search PATH,
10268          # but as the default location of the library.
10269          hardcode_minus_L=yes
10270          ;;
10271        esac
10272      fi
10273      ;;
10274
10275    irix5* | irix6* | nonstopux*)
10276      if test "$GCC" = yes; then
10277        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'
10278      else
10279        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'
10280        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10281      fi
10282      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10283      hardcode_libdir_separator=:
10284      link_all_deplibs=yes
10285      ;;
10286
10287    netbsd*)
10288      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10289        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10290      else
10291        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10292      fi
10293      hardcode_libdir_flag_spec='-R$libdir'
10294      hardcode_direct=yes
10295      hardcode_shlibpath_var=no
10296      ;;
10297
10298    newsos6)
10299      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300      hardcode_direct=yes
10301      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10302      hardcode_libdir_separator=:
10303      hardcode_shlibpath_var=no
10304      ;;
10305
10306    openbsd*)
10307      hardcode_direct=yes
10308      hardcode_shlibpath_var=no
10309      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10310        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10311        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10312        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10313        export_dynamic_flag_spec='${wl}-E'
10314      else
10315       case $host_os in
10316         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10317           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10318           hardcode_libdir_flag_spec='-R$libdir'
10319           ;;
10320         *)
10321           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10322           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10323           ;;
10324       esac
10325      fi
10326      ;;
10327
10328    os2*)
10329      hardcode_libdir_flag_spec='-L$libdir'
10330      hardcode_minus_L=yes
10331      allow_undefined_flag=unsupported
10332      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'
10333      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10334      ;;
10335
10336    osf3*)
10337      if test "$GCC" = yes; then
10338        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339        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'
10340      else
10341        allow_undefined_flag=' -expect_unresolved \*'
10342        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'
10343      fi
10344      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10345      hardcode_libdir_separator=:
10346      ;;
10347
10348    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10349      if test "$GCC" = yes; then
10350        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10351        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'
10352        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10353      else
10354        allow_undefined_flag=' -expect_unresolved \*'
10355        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'
10356        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10357        $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'
10358
10359        # Both c and cxx compiler support -rpath directly
10360        hardcode_libdir_flag_spec='-rpath $libdir'
10361      fi
10362      hardcode_libdir_separator=:
10363      ;;
10364
10365    solaris*)
10366      no_undefined_flag=' -z text'
10367      if test "$GCC" = yes; then
10368        wlarc='${wl}'
10369        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10370        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10371          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10372      else
10373        wlarc=''
10374        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10376        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10377      fi
10378      hardcode_libdir_flag_spec='-R$libdir'
10379      hardcode_shlibpath_var=no
10380      case $host_os in
10381      solaris2.[0-5] | solaris2.[0-5].*) ;;
10382      *)
10383        # The compiler driver will combine linker options so we
10384        # cannot just pass the convience library names through
10385        # without $wl, iff we do not link with $LD.
10386        # Luckily, gcc supports the same syntax we need for Sun Studio.
10387        # Supported since Solaris 2.6 (maybe 2.5.1?)
10388        case $wlarc in
10389        '')
10390          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10391        *)
10392          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' ;;
10393        esac ;;
10394      esac
10395      link_all_deplibs=yes
10396      ;;
10397
10398    sunos4*)
10399      if test "x$host_vendor" = xsequent; then
10400        # Use $CC to link under sequent, because it throws in some extra .o
10401        # files that make .init and .fini sections work.
10402        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10403      else
10404        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10405      fi
10406      hardcode_libdir_flag_spec='-L$libdir'
10407      hardcode_direct=yes
10408      hardcode_minus_L=yes
10409      hardcode_shlibpath_var=no
10410      ;;
10411
10412    sysv4)
10413      case $host_vendor in
10414        sni)
10415          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416          hardcode_direct=yes # is this really true???
10417        ;;
10418        siemens)
10419          ## LD is ld it makes a PLAMLIB
10420          ## CC just makes a GrossModule.
10421          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10422          reload_cmds='$CC -r -o $output$reload_objs'
10423          hardcode_direct=no
10424        ;;
10425        motorola)
10426          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10428        ;;
10429      esac
10430      runpath_var='LD_RUN_PATH'
10431      hardcode_shlibpath_var=no
10432      ;;
10433
10434    sysv4.3*)
10435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10436      hardcode_shlibpath_var=no
10437      export_dynamic_flag_spec='-Bexport'
10438      ;;
10439
10440    sysv4*MP*)
10441      if test -d /usr/nec; then
10442        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10443        hardcode_shlibpath_var=no
10444        runpath_var=LD_RUN_PATH
10445        hardcode_runpath_var=yes
10446        ld_shlibs=yes
10447      fi
10448      ;;
10449
10450    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10451      no_undefined_flag='${wl}-z,text'
10452      archive_cmds_need_lc=no
10453      hardcode_shlibpath_var=no
10454      runpath_var='LD_RUN_PATH'
10455
10456      if test "$GCC" = yes; then
10457        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459      else
10460        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10461        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462      fi
10463      ;;
10464
10465    sysv5* | sco3.2v5* | sco5v6*)
10466      # Note: We can NOT use -z defs as we might desire, because we do not
10467      # link with -lc, and that would cause any symbols used from libc to
10468      # always be unresolved, which means just about no library would
10469      # ever link correctly.  If we're not using GNU ld we use -z text
10470      # though, which does catch some bad symbols but isn't as heavy-handed
10471      # as -z defs.
10472      no_undefined_flag='${wl}-z,text'
10473      allow_undefined_flag='${wl}-z,nodefs'
10474      archive_cmds_need_lc=no
10475      hardcode_shlibpath_var=no
10476      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10477      hardcode_libdir_separator=':'
10478      link_all_deplibs=yes
10479      export_dynamic_flag_spec='${wl}-Bexport'
10480      runpath_var='LD_RUN_PATH'
10481
10482      if test "$GCC" = yes; then
10483        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10484        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10485      else
10486        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10487        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10488      fi
10489      ;;
10490
10491    uts4*)
10492      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493      hardcode_libdir_flag_spec='-L$libdir'
10494      hardcode_shlibpath_var=no
10495      ;;
10496
10497    *)
10498      ld_shlibs=no
10499      ;;
10500    esac
10501  fi
10502
10503echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10504echo "${ECHO_T}$ld_shlibs" >&6
10505test "$ld_shlibs" = no && can_build_shared=no
10506
10507#
10508# Do we need to explicitly link libc?
10509#
10510case "x$archive_cmds_need_lc" in
10511x|xyes)
10512  # Assume -lc should be added
10513  archive_cmds_need_lc=yes
10514
10515  if test "$enable_shared" = yes && test "$GCC" = yes; then
10516    case $archive_cmds in
10517    *'~'*)
10518      # FIXME: we may have to deal with multi-command sequences.
10519      ;;
10520    '$CC '*)
10521      # Test whether the compiler implicitly links with -lc since on some
10522      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10523      # to ld, don't add -lc before -lgcc.
10524      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10525echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10526      $rm conftest*
10527      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10528
10529      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530  (eval $ac_compile) 2>&5
10531  ac_status=$?
10532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533  (exit $ac_status); } 2>conftest.err; then
10534        soname=conftest
10535        lib=conftest
10536        libobjs=conftest.$ac_objext
10537        deplibs=
10538        wl=$lt_prog_compiler_wl
10539        pic_flag=$lt_prog_compiler_pic
10540        compiler_flags=-v
10541        linker_flags=-v
10542        verstring=
10543        output_objdir=.
10544        libname=conftest
10545        lt_save_allow_undefined_flag=$allow_undefined_flag
10546        allow_undefined_flag=
10547        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10548  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10549  ac_status=$?
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); }
10552        then
10553          archive_cmds_need_lc=no
10554        else
10555          archive_cmds_need_lc=yes
10556        fi
10557        allow_undefined_flag=$lt_save_allow_undefined_flag
10558      else
10559        cat conftest.err 1>&5
10560      fi
10561      $rm conftest*
10562      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10563echo "${ECHO_T}$archive_cmds_need_lc" >&6
10564      ;;
10565    esac
10566  fi
10567  ;;
10568esac
10569
10570echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10571echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10572library_names_spec=
10573libname_spec='lib$name'
10574soname_spec=
10575shrext_cmds=".so"
10576postinstall_cmds=
10577postuninstall_cmds=
10578finish_cmds=
10579finish_eval=
10580shlibpath_var=
10581shlibpath_overrides_runpath=unknown
10582version_type=none
10583dynamic_linker="$host_os ld.so"
10584sys_lib_dlsearch_path_spec="/lib /usr/lib"
10585if test "$GCC" = yes; then
10586  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10587  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10588    # if the path contains ";" then we assume it to be the separator
10589    # otherwise default to the standard path separator (i.e. ":") - it is
10590    # assumed that no part of a normal pathname contains ";" but that should
10591    # okay in the real world where ";" in dirpaths is itself problematic.
10592    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10593  else
10594    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10595  fi
10596else
10597  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10598fi
10599need_lib_prefix=unknown
10600hardcode_into_libs=no
10601
10602# when you set need_version to no, make sure it does not cause -set_version
10603# flags to be left without arguments
10604need_version=unknown
10605
10606case $host_os in
10607aix3*)
10608  version_type=linux
10609  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10610  shlibpath_var=LIBPATH
10611
10612  # AIX 3 has no versioning support, so we append a major version to the name.
10613  soname_spec='${libname}${release}${shared_ext}$major'
10614  ;;
10615
10616aix4* | aix5*)
10617  version_type=linux
10618  need_lib_prefix=no
10619  need_version=no
10620  hardcode_into_libs=yes
10621  if test "$host_cpu" = ia64; then
10622    # AIX 5 supports IA64
10623    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10624    shlibpath_var=LD_LIBRARY_PATH
10625  else
10626    # With GCC up to 2.95.x, collect2 would create an import file
10627    # for dependence libraries.  The import file would start with
10628    # the line `#! .'.  This would cause the generated library to
10629    # depend on `.', always an invalid library.  This was fixed in
10630    # development snapshots of GCC prior to 3.0.
10631    case $host_os in
10632      aix4 | aix4.[01] | aix4.[01].*)
10633      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10634           echo ' yes '
10635           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10636        :
10637      else
10638        can_build_shared=no
10639      fi
10640      ;;
10641    esac
10642    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10643    # soname into executable. Probably we can add versioning support to
10644    # collect2, so additional links can be useful in future.
10645    if test "$aix_use_runtimelinking" = yes; then
10646      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10647      # instead of lib<name>.a to let people know that these are not
10648      # typical AIX shared libraries.
10649      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650    else
10651      # We preserve .a as extension for shared libraries through AIX4.2
10652      # and later when we are not doing run time linking.
10653      library_names_spec='${libname}${release}.a $libname.a'
10654      soname_spec='${libname}${release}${shared_ext}$major'
10655    fi
10656    shlibpath_var=LIBPATH
10657  fi
10658  ;;
10659
10660amigaos*)
10661  library_names_spec='$libname.ixlibrary $libname.a'
10662  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10663  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'
10664  ;;
10665
10666beos*)
10667  library_names_spec='${libname}${shared_ext}'
10668  dynamic_linker="$host_os ld.so"
10669  shlibpath_var=LIBRARY_PATH
10670  ;;
10671
10672bsdi[45]*)
10673  version_type=linux
10674  need_version=no
10675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676  soname_spec='${libname}${release}${shared_ext}$major'
10677  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10678  shlibpath_var=LD_LIBRARY_PATH
10679  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10680  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10681  # the default ld.so.conf also contains /usr/contrib/lib and
10682  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10683  # libtool to hard-code these into programs
10684  ;;
10685
10686cygwin* | mingw* | pw32*)
10687  version_type=windows
10688  shrext_cmds=".dll"
10689  need_version=no
10690  need_lib_prefix=no
10691
10692  case $GCC,$host_os in
10693  yes,cygwin* | yes,mingw* | yes,pw32*)
10694    library_names_spec='$libname.dll.a'
10695    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10696    postinstall_cmds='base_file=`basename \${file}`~
10697      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10698      dldir=$destdir/`dirname \$dlpath`~
10699      test -d \$dldir || mkdir -p \$dldir~
10700      $install_prog $dir/$dlname \$dldir/$dlname~
10701      chmod a+x \$dldir/$dlname'
10702    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10703      dlpath=$dir/\$dldll~
10704       $rm \$dlpath'
10705    shlibpath_overrides_runpath=yes
10706
10707    case $host_os in
10708    cygwin*)
10709      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10710      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10712      ;;
10713    mingw*)
10714      # MinGW DLLs use traditional 'lib' prefix
10715      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10717      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10718        # It is most probably a Windows format PATH printed by
10719        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10720        # path with ; separators, and with drive letters. We can handle the
10721        # drive letters (cygwin fileutils understands them), so leave them,
10722        # especially as we might pass files found there to a mingw objdump,
10723        # which wouldn't understand a cygwinified path. Ahh.
10724        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10725      else
10726        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10727      fi
10728      ;;
10729    pw32*)
10730      # pw32 DLLs use 'pw' prefix rather than 'lib'
10731      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10732      ;;
10733    esac
10734    ;;
10735
10736  *)
10737    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10738    ;;
10739  esac
10740  dynamic_linker='Win32 ld.exe'
10741  # FIXME: first we should search . and the directory the executable is in
10742  shlibpath_var=PATH
10743  ;;
10744
10745darwin* | rhapsody*)
10746  dynamic_linker="$host_os dyld"
10747  version_type=darwin
10748  need_lib_prefix=no
10749  need_version=no
10750  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10751  soname_spec='${libname}${release}${major}$shared_ext'
10752  shlibpath_overrides_runpath=yes
10753  shlibpath_var=DYLD_LIBRARY_PATH
10754  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10755  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10756  if test "$GCC" = yes; then
10757    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"`
10758  else
10759    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10760  fi
10761  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10762  ;;
10763
10764dgux*)
10765  version_type=linux
10766  need_lib_prefix=no
10767  need_version=no
10768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10769  soname_spec='${libname}${release}${shared_ext}$major'
10770  shlibpath_var=LD_LIBRARY_PATH
10771  ;;
10772
10773freebsd1*)
10774  dynamic_linker=no
10775  ;;
10776
10777kfreebsd*-gnu)
10778  version_type=linux
10779  need_lib_prefix=no
10780  need_version=no
10781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10782  soname_spec='${libname}${release}${shared_ext}$major'
10783  shlibpath_var=LD_LIBRARY_PATH
10784  shlibpath_overrides_runpath=no
10785  hardcode_into_libs=yes
10786  dynamic_linker='GNU ld.so'
10787  ;;
10788
10789freebsd* | dragonfly*)
10790  # DragonFly does not have aout.  When/if they implement a new
10791  # versioning mechanism, adjust this.
10792  if test -x /usr/bin/objformat; then
10793    objformat=`/usr/bin/objformat`
10794  else
10795    case $host_os in
10796    freebsd[123]*) objformat=aout ;;
10797    *) objformat=elf ;;
10798    esac
10799  fi
10800  version_type=freebsd-$objformat
10801  case $version_type in