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

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

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

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