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

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

rerun autotools; improve setup of addlibs file

  • Property svn:executable set to *
File size: 742.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyLapack 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH DLAMCH_FFLAGS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
981ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
982ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
983ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXX_set=${CXX+set}
989ac_env_CXX_value=$CXX
990ac_cv_env_CXX_set=${CXX+set}
991ac_cv_env_CXX_value=$CXX
992ac_env_CXXFLAGS_set=${CXXFLAGS+set}
993ac_env_CXXFLAGS_value=$CXXFLAGS
994ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
995ac_cv_env_CXXFLAGS_value=$CXXFLAGS
996ac_env_CXXCPP_set=${CXXCPP+set}
997ac_env_CXXCPP_value=$CXXCPP
998ac_cv_env_CXXCPP_set=${CXXCPP+set}
999ac_cv_env_CXXCPP_value=$CXXCPP
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyLapack 0.0 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyLapack 0.0:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-lapack compile this project (Lapack) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-pkg-config     use pkg-config if available (default is yes)
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1104  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1105  --with-lapack-checklevel
1106                          specify the sanity check level for project Lapack
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  ADD_FFLAGS  Additional Fortran compiler options
1128  DBG_FFLAGS  Debug Fortran compiler options
1129  OPT_FFLAGS  Optimize Fortran compiler options
1130  F77         Fortran 77 compiler command
1131  FFLAGS      Fortran 77 compiler flags
1132  MPIF77      Fortran MPI Compiler
1133  PKG_CONFIG  path to pkg-config utility
1134  DLAMCH_FFLAGS
1135              Fortran compiler options for DLAMCH.F
1136  CPP         C preprocessor
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  CXXCPP      C++ preprocessor
1140
1141Use these variables to override the choices made by `configure' or to help
1142it to find libraries and programs with nonstandard names/locations.
1143
1144Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1145_ACEOF
1146fi
1147
1148if test "$ac_init_help" = "recursive"; then
1149  # If there are subdirs, report their specific --help.
1150  ac_popdir=`pwd`
1151  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1152    test -d $ac_dir || continue
1153    ac_builddir=.
1154
1155if test "$ac_dir" != .; then
1156  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1157  # A "../" for each directory in $ac_dir_suffix.
1158  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1159else
1160  ac_dir_suffix= ac_top_builddir=
1161fi
1162
1163case $srcdir in
1164  .)  # No --srcdir option.  We are building in place.
1165    ac_srcdir=.
1166    if test -z "$ac_top_builddir"; then
1167       ac_top_srcdir=.
1168    else
1169       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1170    fi ;;
1171  [\\/]* | ?:[\\/]* )  # Absolute path.
1172    ac_srcdir=$srcdir$ac_dir_suffix;
1173    ac_top_srcdir=$srcdir ;;
1174  *) # Relative path.
1175    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1176    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1177esac
1178
1179# Do not use `cd foo && pwd` to compute absolute paths, because
1180# the directories may not exist.
1181case `pwd` in
1182.) ac_abs_builddir="$ac_dir";;
1183*)
1184  case "$ac_dir" in
1185  .) ac_abs_builddir=`pwd`;;
1186  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1187  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1188  esac;;
1189esac
1190case $ac_abs_builddir in
1191.) ac_abs_top_builddir=${ac_top_builddir}.;;
1192*)
1193  case ${ac_top_builddir}. in
1194  .) ac_abs_top_builddir=$ac_abs_builddir;;
1195  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1196  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1197  esac;;
1198esac
1199case $ac_abs_builddir in
1200.) ac_abs_srcdir=$ac_srcdir;;
1201*)
1202  case $ac_srcdir in
1203  .) ac_abs_srcdir=$ac_abs_builddir;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1205  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1206  esac;;
1207esac
1208case $ac_abs_builddir in
1209.) ac_abs_top_srcdir=$ac_top_srcdir;;
1210*)
1211  case $ac_top_srcdir in
1212  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1213  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1214  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1215  esac;;
1216esac
1217
1218    cd $ac_dir
1219    # Check for guested configure; otherwise get Cygnus style configure.
1220    if test -f $ac_srcdir/configure.gnu; then
1221      echo
1222      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1223    elif test -f $ac_srcdir/configure; then
1224      echo
1225      $SHELL $ac_srcdir/configure  --help=recursive
1226    elif test -f $ac_srcdir/configure.ac ||
1227           test -f $ac_srcdir/configure.in; then
1228      echo
1229      $ac_configure --help
1230    else
1231      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1232    fi
1233    cd $ac_popdir
1234  done
1235fi
1236
1237test -n "$ac_init_help" && exit 0
1238if $ac_init_version; then
1239  cat <<\_ACEOF
1240ThirdPartyLapack configure 0.0
1241generated by GNU Autoconf 2.59
1242
1243Copyright (C) 2003 Free Software Foundation, Inc.
1244This configure script is free software; the Free Software Foundation
1245gives unlimited permission to copy, distribute and modify it.
1246
1247
1248Copyright 2006 International Business Machines and others.
1249All Rights Reserved.
1250This file is part of the open source package Coin which is distributed
1251under the Common Public License.
1252_ACEOF
1253  exit 0
1254fi
1255exec 5>config.log
1256cat >&5 <<_ACEOF
1257This file contains any messages produced by compilers while
1258running configure, to aid debugging if configure makes a mistake.
1259
1260It was created by ThirdPartyLapack $as_me 0.0, which was
1261generated by GNU Autoconf 2.59.  Invocation command line was
1262
1263  $ $0 $@
1264
1265_ACEOF
1266{
1267cat <<_ASUNAME
1268## --------- ##
1269## Platform. ##
1270## --------- ##
1271
1272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1273uname -m = `(uname -m) 2>/dev/null || echo unknown`
1274uname -r = `(uname -r) 2>/dev/null || echo unknown`
1275uname -s = `(uname -s) 2>/dev/null || echo unknown`
1276uname -v = `(uname -v) 2>/dev/null || echo unknown`
1277
1278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1279/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1280
1281/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1282/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1284hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1285/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1286/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1287/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1288
1289_ASUNAME
1290
1291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1292for as_dir in $PATH
1293do
1294  IFS=$as_save_IFS
1295  test -z "$as_dir" && as_dir=.
1296  echo "PATH: $as_dir"
1297done
1298
1299} >&5
1300
1301cat >&5 <<_ACEOF
1302
1303
1304## ----------- ##
1305## Core tests. ##
1306## ----------- ##
1307
1308_ACEOF
1309
1310
1311# Keep a trace of the command line.
1312# Strip out --no-create and --no-recursion so they do not pile up.
1313# Strip out --silent because we don't want to record it for future runs.
1314# Also quote any args containing shell meta-characters.
1315# Make two passes to allow for proper duplicate-argument suppression.
1316ac_configure_args=
1317ac_configure_args0=
1318ac_configure_args1=
1319ac_sep=
1320ac_must_keep_next=false
1321for ac_pass in 1 2
1322do
1323  for ac_arg
1324  do
1325    case $ac_arg in
1326    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1327    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1328    | -silent | --silent | --silen | --sile | --sil)
1329      continue ;;
1330    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1332    esac
1333    case $ac_pass in
1334    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1335    2)
1336      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1337      if test $ac_must_keep_next = true; then
1338        ac_must_keep_next=false # Got value, back to normal.
1339      else
1340        case $ac_arg in
1341          *=* | --config-cache | -C | -disable-* | --disable-* \
1342          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1343          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1344          | -with-* | --with-* | -without-* | --without-* | --x)
1345            case "$ac_configure_args0 " in
1346              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1347            esac
1348            ;;
1349          -* ) ac_must_keep_next=true ;;
1350        esac
1351      fi
1352      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1353      # Get rid of the leading space.
1354      ac_sep=" "
1355      ;;
1356    esac
1357  done
1358done
1359$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1360$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1361
1362# When interrupted or exit'd, cleanup temporary files, and complete
1363# config.log.  We remove comments because anyway the quotes in there
1364# would cause problems or look ugly.
1365# WARNING: Be sure not to use single quotes in there, as some shells,
1366# such as our DU 5.0 friend, will then `close' the trap.
1367trap 'exit_status=$?
1368  # Save into config.log some information that might help in debugging.
1369  {
1370    echo
1371
1372    cat <<\_ASBOX
1373## ---------------- ##
1374## Cache variables. ##
1375## ---------------- ##
1376_ASBOX
1377    echo
1378    # The following way of writing the cache mishandles newlines in values,
1379{
1380  (set) 2>&1 |
1381    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1382    *ac_space=\ *)
1383      sed -n \
1384        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1385          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1386      ;;
1387    *)
1388      sed -n \
1389        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1390      ;;
1391    esac;
1392}
1393    echo
1394
1395    cat <<\_ASBOX
1396## ----------------- ##
1397## Output variables. ##
1398## ----------------- ##
1399_ASBOX
1400    echo
1401    for ac_var in $ac_subst_vars
1402    do
1403      eval ac_val=$`echo $ac_var`
1404      echo "$ac_var='"'"'$ac_val'"'"'"
1405    done | sort
1406    echo
1407
1408    if test -n "$ac_subst_files"; then
1409      cat <<\_ASBOX
1410## ------------- ##
1411## Output files. ##
1412## ------------- ##
1413_ASBOX
1414      echo
1415      for ac_var in $ac_subst_files
1416      do
1417        eval ac_val=$`echo $ac_var`
1418        echo "$ac_var='"'"'$ac_val'"'"'"
1419      done | sort
1420      echo
1421    fi
1422
1423    if test -s confdefs.h; then
1424      cat <<\_ASBOX
1425## ----------- ##
1426## confdefs.h. ##
1427## ----------- ##
1428_ASBOX
1429      echo
1430      sed "/^$/d" confdefs.h | sort
1431      echo
1432    fi
1433    test "$ac_signal" != 0 &&
1434      echo "$as_me: caught signal $ac_signal"
1435    echo "$as_me: exit $exit_status"
1436  } >&5
1437  rm -f core *.core &&
1438  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1439    exit $exit_status
1440     ' 0
1441for ac_signal in 1 2 13 15; do
1442  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1443done
1444ac_signal=0
1445
1446# confdefs.h avoids OS command line length limits that DEFS can exceed.
1447rm -rf conftest* confdefs.h
1448# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1449echo >confdefs.h
1450
1451# Predefined preprocessor variables.
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_NAME "$PACKAGE_NAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_VERSION "$PACKAGE_VERSION"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_STRING "$PACKAGE_STRING"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1475_ACEOF
1476
1477
1478# Let the site file select an alternate cache file if it wants to.
1479# Prefer explicitly selected file to automatically selected ones.
1480if test -z "$CONFIG_SITE"; then
1481  if test "x$prefix" != xNONE; then
1482    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1483  else
1484    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1485  fi
1486fi
1487for ac_site_file in $CONFIG_SITE; do
1488  if test -r "$ac_site_file"; then
1489    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1490echo "$as_me: loading site script $ac_site_file" >&6;}
1491    sed 's/^/| /' "$ac_site_file" >&5
1492    . "$ac_site_file"
1493  fi
1494done
1495
1496if test -r "$cache_file"; then
1497  # Some versions of bash will fail to source /dev/null (special
1498  # files actually), so we avoid doing that.
1499  if test -f "$cache_file"; then
1500    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1501echo "$as_me: loading cache $cache_file" >&6;}
1502    case $cache_file in
1503      [\\/]* | ?:[\\/]* ) . $cache_file;;
1504      *)                      . ./$cache_file;;
1505    esac
1506  fi
1507else
1508  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1509echo "$as_me: creating cache $cache_file" >&6;}
1510  >$cache_file
1511fi
1512
1513# Check that the precious variables saved in the cache have kept the same
1514# value.
1515ac_cache_corrupted=false
1516for ac_var in `(set) 2>&1 |
1517               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1518  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1519  eval ac_new_set=\$ac_env_${ac_var}_set
1520  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1521  eval ac_new_val="\$ac_env_${ac_var}_value"
1522  case $ac_old_set,$ac_new_set in
1523    set,)
1524      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1525echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1526      ac_cache_corrupted=: ;;
1527    ,set)
1528      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1529echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1530      ac_cache_corrupted=: ;;
1531    ,);;
1532    *)
1533      if test "x$ac_old_val" != "x$ac_new_val"; then
1534        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1535echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1536        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1537echo "$as_me:   former value:  $ac_old_val" >&2;}
1538        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1539echo "$as_me:   current value: $ac_new_val" >&2;}
1540        ac_cache_corrupted=:
1541      fi;;
1542  esac
1543  # Pass precious variables to config.status.
1544  if test "$ac_new_set" = set; then
1545    case $ac_new_val in
1546    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1547      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1548    *) ac_arg=$ac_var=$ac_new_val ;;
1549    esac
1550    case " $ac_configure_args " in
1551      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1552      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1553    esac
1554  fi
1555done
1556if $ac_cache_corrupted; then
1557  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1558echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1559  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1560echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1561   { (exit 1); exit 1; }; }
1562fi
1563
1564ac_ext=c
1565ac_cpp='$CPP $CPPFLAGS'
1566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1568ac_compiler_gnu=$ac_cv_c_compiler_gnu
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599# List one file in the package so that the configure script can test
1600# whether the package is actually there
1601
1602
1603# Where should everything be installed by default?  Here, we want it
1604# to be installed directly in 'bin', 'lib', 'include' subdirectories
1605# of the directory where configure is run.  The default would be
1606# /usr/local.
1607
1608
1609# Initialize the ADDLIBS variable
1610ADDLIBS="-lm $LIBS"
1611
1612
1613# As backup, we make sure we don't loose an FLIBS if it has been set
1614# by the user
1615save_FLIBS="$FLIBS"
1616
1617# Initialize the FADDLIBS variable (which is to be used with a fortran
1618# compiler and will not include FLIBS)
1619FADDLIBS="$LIBS"
1620
1621
1622# A useful makefile conditional that is always false
1623
1624
1625if false; then
1626  ALWAYS_FALSE_TRUE=
1627  ALWAYS_FALSE_FALSE='#'
1628else
1629  ALWAYS_FALSE_TRUE='#'
1630  ALWAYS_FALSE_FALSE=
1631fi
1632
1633
1634# We set the following variable so that we know later in AC_COIN_FINALIZE
1635# that we are in a project main directory
1636coin_projectdir=yes
1637
1638# Check if a library version is set for libtool
1639
1640
1641
1642#############################################################################
1643#                         Standard build tool stuff                         #
1644#############################################################################
1645
1646# Get the system type
1647ac_aux_dir=
1648for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1649  if test -f $ac_dir/install-sh; then
1650    ac_aux_dir=$ac_dir
1651    ac_install_sh="$ac_aux_dir/install-sh -c"
1652    break
1653  elif test -f $ac_dir/install.sh; then
1654    ac_aux_dir=$ac_dir
1655    ac_install_sh="$ac_aux_dir/install.sh -c"
1656    break
1657  elif test -f $ac_dir/shtool; then
1658    ac_aux_dir=$ac_dir
1659    ac_install_sh="$ac_aux_dir/shtool install -c"
1660    break
1661  fi
1662done
1663if test -z "$ac_aux_dir"; then
1664  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1665echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1666   { (exit 1); exit 1; }; }
1667fi
1668ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1669ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1670ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1671
1672# Make sure we can run config.sub.
1673$ac_config_sub sun4 >/dev/null 2>&1 ||
1674  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1675echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1676   { (exit 1); exit 1; }; }
1677
1678echo "$as_me:$LINENO: checking build system type" >&5
1679echo $ECHO_N "checking build system type... $ECHO_C" >&6
1680if test "${ac_cv_build+set}" = set; then
1681  echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683  ac_cv_build_alias=$build_alias
1684test -z "$ac_cv_build_alias" &&
1685  ac_cv_build_alias=`$ac_config_guess`
1686test -z "$ac_cv_build_alias" &&
1687  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1688echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1689   { (exit 1); exit 1; }; }
1690ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1691  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1692echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1693   { (exit 1); exit 1; }; }
1694
1695fi
1696echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1697echo "${ECHO_T}$ac_cv_build" >&6
1698build=$ac_cv_build
1699build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1700build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1701build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702
1703
1704
1705#turn off warnings and pedantic mode since they could make trouble on some platforms,
1706#and we couldn't fix them anyway
1707coin_skip_warn_fflags=yes
1708
1709# Check if user wants to produce debugging code
1710
1711echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1712echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1713
1714# Check whether --enable-debug or --disable-debug was given.
1715if test "${enable_debug+set}" = set; then
1716  enableval="$enable_debug"
1717  case "${enableval}" in
1718   yes) coin_debug_compile=true
1719        if test "${enable_shared+set}" = set; then :; else
1720          enable_shared=no
1721        fi
1722        ;;
1723   no)  coin_debug_compile=false
1724        ;;
1725   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1726echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1727   { (exit 1); exit 1; }; }
1728        ;;
1729esac
1730else
1731  coin_debug_compile=false
1732fi;
1733
1734# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1735if test "${enable_debug_lapack+set}" = set; then
1736  enableval="$enable_debug_lapack"
1737  case "${enableval}" in
1738    yes) coin_debug_compile=true
1739         enable_shared=no
1740         ;;
1741    no)  coin_debug_compile=false
1742         ;;
1743    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1744echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1745   { (exit 1); exit 1; }; }
1746         ;;
1747 esac
1748else
1749  :
1750fi;
1751
1752 # m4_ifvaln([Lapack],
1753
1754if test $coin_debug_compile = true; then
1755  echo "$as_me:$LINENO: result: yes" >&5
1756echo "${ECHO_T}yes" >&6
1757else
1758  echo "$as_me:$LINENO: result: no" >&5
1759echo "${ECHO_T}no" >&6
1760fi
1761
1762
1763# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1764if test "${with_lapack_verbosity+set}" = set; then
1765  withval="$with_lapack_verbosity"
1766  if test "$withval" = yes; then
1767                withval=1
1768              fi
1769              coin_lapack_verbosity=$withval
1770else
1771  coin_lapack_verbosity=0
1772fi;
1773
1774cat >>confdefs.h <<_ACEOF
1775#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1776_ACEOF
1777
1778
1779
1780# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1781if test "${with_lapack_checklevel+set}" = set; then
1782  withval="$with_lapack_checklevel"
1783  if test "$withval" = yes; then
1784                withval=1
1785              fi
1786              coin_lapack_checklevel=$withval
1787else
1788  coin_lapack_checklevel=0
1789fi;
1790
1791cat >>confdefs.h <<_ACEOF
1792#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1793_ACEOF
1794
1795
1796# We use the following variable to have a string with the upper case
1797# version of the project name
1798COIN_PRJCT=LAPACK
1799
1800
1801 # m4_ifvaln([Lapack],
1802
1803
1804
1805# Get the name of the Fortran compiler and appropriate compiler options
1806case $build in
1807  *-mingw*)
1808    if test "${LD+set}" = set; then :; else
1809      LD=link
1810    fi
1811    ;;
1812 esac
1813 case $enable_doscompile in
1814   msvc)
1815     if test "x${LD+set}" = xset; then :; else
1816       LD=link
1817     fi
1818     ;;
1819 esac
1820
1821
1822 # Check whether --enable-doscompile or --disable-doscompile was given.
1823if test "${enable_doscompile+set}" = set; then
1824  enableval="$enable_doscompile"
1825  if test "$enable_doscompile" != no; then
1826     case $build in
1827       *-cygwin* | *-mingw*) ;;
1828       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1829echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1830   { (exit 1); exit 1; }; } ;;
1831     esac
1832   fi
1833else
1834  enable_doscompile=no
1835fi;
1836 case "$enable_doscompile" in
1837   mingw)
1838     case $build in
1839       *-mingw*) enable_doscompile=no ;;
1840     esac
1841     ;;
1842   msvc|no) ;;
1843   yes) enable_doscompile=mingw ;;
1844   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1845                    Try configure --help=recursive." >&5
1846echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1847                    Try configure --help=recursive." >&2;}
1848   { (exit 1); exit 1; }; }
1849      ;;
1850  esac
1851  if test "$enable_doscompile" != no ; then
1852    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1853echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1854  fi
1855
1856
1857
1858
1859ac_ext=c
1860ac_cpp='$CPP $CPPFLAGS'
1861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864
1865
1866# For consistency, we set the C compiler to the same value of the C++
1867# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1868if test x"$CXX" != x; then
1869  case "$CXX" in
1870    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1871      if test x"$CC" = x; then
1872        CC="$CXX"
1873        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1874echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1875      fi
1876      ;;
1877  esac
1878fi
1879
1880
1881
1882
1883
1884
1885coin_has_cc=yes
1886
1887save_cflags="$CFLAGS"
1888
1889# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1890# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1891# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1892# compiler. In this case, put cc after gcc.
1893
1894case $build in
1895  *-cygwin* | *-mingw*)
1896             if test "$enable_doscompile" = msvc ; then
1897               comps="icl cl"
1898             else
1899               comps="gcc cl"
1900             fi ;;
1901  *-*-solaris*)
1902             # Extract the first word of "cc", so it can be a program name with args.
1903set dummy cc; ac_word=$2
1904echo "$as_me:$LINENO: checking for $ac_word" >&5
1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1907  echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909  if test -n "$sol_cc_compiler"; then
1910  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1911else
1912  ac_prog_rejected=no
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916  IFS=$as_save_IFS
1917  test -z "$as_dir" && as_dir=.
1918  for ac_exec_ext in '' $ac_executable_extensions; do
1919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1921       ac_prog_rejected=yes
1922       continue
1923     fi
1924    ac_cv_prog_sol_cc_compiler="cc"
1925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926    break 2
1927  fi
1928done
1929done
1930
1931if test $ac_prog_rejected = yes; then
1932  # We found a bogon in the path, so make sure we never use it.
1933  set dummy $ac_cv_prog_sol_cc_compiler
1934  shift
1935  if test $# != 0; then
1936    # We chose a different compiler from the bogus one.
1937    # However, it has the same basename, so the bogon will be chosen
1938    # first if we set sol_cc_compiler to just the basename; use the full file name.
1939    shift
1940    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1941  fi
1942fi
1943fi
1944fi
1945sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1946if test -n "$sol_cc_compiler"; then
1947  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1948echo "${ECHO_T}$sol_cc_compiler" >&6
1949else
1950  echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6
1952fi
1953
1954             if test "$sol_cc_compiler" = "cc" ; then
1955               comps="cc xlc gcc pgcc icc"
1956             else
1957               comps="xlc gcc pgcc icc cc"
1958             fi
1959             ;;
1960  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1961  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1962esac
1963
1964# We delete the cached value, since the test might not have been
1965# performed with our choice of compilers earlier
1966$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1967# AC_MSG_NOTICE([C compiler candidates: $comps])
1968ac_ext=c
1969ac_cpp='$CPP $CPPFLAGS'
1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973if test -n "$ac_tool_prefix"; then
1974  for ac_prog in $comps
1975  do
1976    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$CC"; then
1984  ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002CC=$ac_cv_prog_CC
2003if test -n "$CC"; then
2004  echo "$as_me:$LINENO: result: $CC" >&5
2005echo "${ECHO_T}$CC" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011    test -n "$CC" && break
2012  done
2013fi
2014if test -z "$CC"; then
2015  ac_ct_CC=$CC
2016  for ac_prog in $comps
2017do
2018  # Extract the first word of "$ac_prog", so it can be a program name with args.
2019set dummy $ac_prog; ac_word=$2
2020echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023  echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025  if test -n "$ac_ct_CC"; then
2026  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027else
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    ac_cv_prog_ac_ct_CC="$ac_prog"
2036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037    break 2
2038  fi
2039done
2040done
2041
2042fi
2043fi
2044ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045if test -n "$ac_ct_CC"; then
2046  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047echo "${ECHO_T}$ac_ct_CC" >&6
2048else
2049  echo "$as_me:$LINENO: result: no" >&5
2050echo "${ECHO_T}no" >&6
2051fi
2052
2053  test -n "$ac_ct_CC" && break
2054done
2055
2056  CC=$ac_ct_CC
2057fi
2058
2059
2060test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2061See \`config.log' for more details." >&5
2062echo "$as_me: error: no acceptable C compiler found in \$PATH
2063See \`config.log' for more details." >&2;}
2064   { (exit 1); exit 1; }; }
2065
2066# Provide some information about the compiler.
2067echo "$as_me:$LINENO:" \
2068     "checking for C compiler version" >&5
2069ac_compiler=`set X $ac_compile; echo $2`
2070{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2071  (eval $ac_compiler --version </dev/null >&5) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }
2075{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2076  (eval $ac_compiler -v </dev/null >&5) 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }
2080{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2081  (eval $ac_compiler -V </dev/null >&5) 2>&5
2082  ac_status=$?
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); }
2085
2086cat >conftest.$ac_ext <<_ACEOF
2087/* confdefs.h.  */
2088_ACEOF
2089cat confdefs.h >>conftest.$ac_ext
2090cat >>conftest.$ac_ext <<_ACEOF
2091/* end confdefs.h.  */
2092
2093int
2094main ()
2095{
2096
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101ac_clean_files_save=$ac_clean_files
2102ac_clean_files="$ac_clean_files a.out a.exe b.out"
2103# Try to create an executable without -o first, disregard a.out.
2104# It will help us diagnose broken compilers, and finding out an intuition
2105# of exeext.
2106echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2107echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2108ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2109if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2110  (eval $ac_link_default) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); }; then
2114  # Find the output, starting from the most likely.  This scheme is
2115# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2116# resort.
2117
2118# Be careful to initialize this variable, since it used to be cached.
2119# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2120ac_cv_exeext=
2121# b.out is created by i960 compilers.
2122for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2123do
2124  test -f "$ac_file" || continue
2125  case $ac_file in
2126    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2127        ;;
2128    conftest.$ac_ext )
2129        # This is the source file.
2130        ;;
2131    [ab].out )
2132        # We found the default executable, but exeext='' is most
2133        # certainly right.
2134        break;;
2135    *.* )
2136        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137        # FIXME: I believe we export ac_cv_exeext for Libtool,
2138        # but it would be cool to find out if it's true.  Does anybody
2139        # maintain Libtool? --akim.
2140        export ac_cv_exeext
2141        break;;
2142    * )
2143        break;;
2144  esac
2145done
2146else
2147  echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2151See \`config.log' for more details." >&5
2152echo "$as_me: error: C compiler cannot create executables
2153See \`config.log' for more details." >&2;}
2154   { (exit 77); exit 77; }; }
2155fi
2156
2157ac_exeext=$ac_cv_exeext
2158echo "$as_me:$LINENO: result: $ac_file" >&5
2159echo "${ECHO_T}$ac_file" >&6
2160
2161# Check the compiler produces executables we can run.  If not, either
2162# the compiler is broken, or we cross compile.
2163echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2164echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2165# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2166# If not cross compiling, check that we can run a simple program.
2167if test "$cross_compiling" != yes; then
2168  if { ac_try='./$ac_file'
2169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170  (eval $ac_try) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }; }; then
2174    cross_compiling=no
2175  else
2176    if test "$cross_compiling" = maybe; then
2177        cross_compiling=yes
2178    else
2179        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2180If you meant to cross compile, use \`--host'.
2181See \`config.log' for more details." >&5
2182echo "$as_me: error: cannot run C compiled programs.
2183If you meant to cross compile, use \`--host'.
2184See \`config.log' for more details." >&2;}
2185   { (exit 1); exit 1; }; }
2186    fi
2187  fi
2188fi
2189echo "$as_me:$LINENO: result: yes" >&5
2190echo "${ECHO_T}yes" >&6
2191
2192rm -f a.out a.exe conftest$ac_cv_exeext b.out
2193ac_clean_files=$ac_clean_files_save
2194# Check the compiler produces executables we can run.  If not, either
2195# the compiler is broken, or we cross compile.
2196echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2197echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2198echo "$as_me:$LINENO: result: $cross_compiling" >&5
2199echo "${ECHO_T}$cross_compiling" >&6
2200
2201echo "$as_me:$LINENO: checking for suffix of executables" >&5
2202echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2204  (eval $ac_link) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }; then
2208  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2209# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2210# work properly (i.e., refer to `conftest.exe'), while it won't with
2211# `rm'.
2212for ac_file in conftest.exe conftest conftest.*; do
2213  test -f "$ac_file" || continue
2214  case $ac_file in
2215    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2216    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217          export ac_cv_exeext
2218          break;;
2219    * ) break;;
2220  esac
2221done
2222else
2223  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2226See \`config.log' for more details." >&2;}
2227   { (exit 1); exit 1; }; }
2228fi
2229
2230rm -f conftest$ac_cv_exeext
2231echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2232echo "${ECHO_T}$ac_cv_exeext" >&6
2233
2234rm -f conftest.$ac_ext
2235EXEEXT=$ac_cv_exeext
2236ac_exeext=$EXEEXT
2237echo "$as_me:$LINENO: checking for suffix of object files" >&5
2238echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2239if test "${ac_cv_objext+set}" = set; then
2240  echo $ECHO_N "(cached) $ECHO_C" >&6
2241else
2242  cat >conftest.$ac_ext <<_ACEOF
2243/* confdefs.h.  */
2244_ACEOF
2245cat confdefs.h >>conftest.$ac_ext
2246cat >>conftest.$ac_ext <<_ACEOF
2247/* end confdefs.h.  */
2248
2249int
2250main ()
2251{
2252
2253  ;
2254  return 0;
2255}
2256_ACEOF
2257rm -f conftest.o conftest.obj
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259  (eval $ac_compile) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; then
2263  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2264  case $ac_file in
2265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2266    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2267       break;;
2268  esac
2269done
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: cannot compute suffix of object files: cannot compile
2277See \`config.log' for more details." >&2;}
2278   { (exit 1); exit 1; }; }
2279fi
2280
2281rm -f conftest.$ac_cv_objext conftest.$ac_ext
2282fi
2283echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2284echo "${ECHO_T}$ac_cv_objext" >&6
2285OBJEXT=$ac_cv_objext
2286ac_objext=$OBJEXT
2287echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2288echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2289if test "${ac_cv_c_compiler_gnu+set}" = set; then
2290  echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292  cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h.  */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h.  */
2298
2299int
2300main ()
2301{
2302#ifndef __GNUC__
2303       choke me
2304#endif
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312  (eval $ac_compile) 2>conftest.er1
2313  ac_status=$?
2314  grep -v '^ *+' conftest.er1 >conftest.err
2315  rm -f conftest.er1
2316  cat conftest.err >&5
2317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318  (exit $ac_status); } &&
2319         { ac_try='test -z "$ac_c_werror_flag"
2320                         || test ! -s conftest.err'
2321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322  (eval $ac_try) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; } &&
2326         { ac_try='test -s conftest.$ac_objext'
2327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328  (eval $ac_try) 2>&5
2329  ac_status=$?
2330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }; }; then
2332  ac_compiler_gnu=yes
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337ac_compiler_gnu=no
2338fi
2339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340ac_cv_c_compiler_gnu=$ac_compiler_gnu
2341
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2344echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2345GCC=`test $ac_compiler_gnu = yes && echo yes`
2346ac_test_CFLAGS=${CFLAGS+set}
2347ac_save_CFLAGS=$CFLAGS
2348CFLAGS="-g"
2349echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2350echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2351if test "${ac_cv_prog_cc_g+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h.  */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h.  */
2360
2361int
2362main ()
2363{
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371  (eval $ac_compile) 2>conftest.er1
2372  ac_status=$?
2373  grep -v '^ *+' conftest.er1 >conftest.err
2374  rm -f conftest.er1
2375  cat conftest.err >&5
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); } &&
2378         { ac_try='test -z "$ac_c_werror_flag"
2379                         || test ! -s conftest.err'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; } &&
2385         { ac_try='test -s conftest.$ac_objext'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; }; then
2391  ac_cv_prog_cc_g=yes
2392else
2393  echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396ac_cv_prog_cc_g=no
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399fi
2400echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2401echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2402if test "$ac_test_CFLAGS" = set; then
2403  CFLAGS=$ac_save_CFLAGS
2404elif test $ac_cv_prog_cc_g = yes; then
2405  if test "$GCC" = yes; then
2406    CFLAGS="-g -O2"
2407  else
2408    CFLAGS="-g"
2409  fi
2410else
2411  if test "$GCC" = yes; then
2412    CFLAGS="-O2"
2413  else
2414    CFLAGS=
2415  fi
2416fi
2417echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2418echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2419if test "${ac_cv_prog_cc_stdc+set}" = set; then
2420  echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422  ac_cv_prog_cc_stdc=no
2423ac_save_CC=$CC
2424cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430#include <stdarg.h>
2431#include <stdio.h>
2432#include <sys/types.h>
2433#include <sys/stat.h>
2434/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2435struct buf { int x; };
2436FILE * (*rcsopen) (struct buf *, struct stat *, int);
2437static char *e (p, i)
2438     char **p;
2439     int i;
2440{
2441  return p[i];
2442}
2443static char *f (char * (*g) (char **, int), char **p, ...)
2444{
2445  char *s;
2446  va_list v;
2447  va_start (v,p);
2448  s = g (p, va_arg (v,int));
2449  va_end (v);
2450  return s;
2451}
2452
2453/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2454   function prototypes and stuff, but not '\xHH' hex character constants.
2455   These don't provoke an error unfortunately, instead are silently treated
2456   as 'x'.  The following induces an error, until -std1 is added to get
2457   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2458   array size at least.  It's necessary to write '\x00'==0 to get something
2459   that's true only with -std1.  */
2460int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2461
2462int test (int i, double x);
2463struct s1 {int (*f) (int a);};
2464struct s2 {int (*f) (double a);};
2465int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2466int argc;
2467char **argv;
2468int
2469main ()
2470{
2471return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476# Don't try gcc -ansi; that turns off useful extensions and
2477# breaks some systems' header files.
2478# AIX                   -qlanglvl=ansi
2479# Ultrix and OSF/1      -std1
2480# HP-UX 10.20 and later -Ae
2481# HP-UX older versions  -Aa -D_HPUX_SOURCE
2482# SVR4                  -Xc -D__EXTENSIONS__
2483for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2484do
2485  CC="$ac_save_CC $ac_arg"
2486  rm -f conftest.$ac_objext
2487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488  (eval $ac_compile) 2>conftest.er1
2489  ac_status=$?
2490  grep -v '^ *+' conftest.er1 >conftest.err
2491  rm -f conftest.er1
2492  cat conftest.err >&5
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); } &&
2495         { ac_try='test -z "$ac_c_werror_flag"
2496                         || test ! -s conftest.err'
2497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498  (eval $ac_try) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }; } &&
2502         { ac_try='test -s conftest.$ac_objext'
2503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504  (eval $ac_try) 2>&5
2505  ac_status=$?
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); }; }; then
2508  ac_cv_prog_cc_stdc=$ac_arg
2509break
2510else
2511  echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514fi
2515rm -f conftest.err conftest.$ac_objext
2516done
2517rm -f conftest.$ac_ext conftest.$ac_objext
2518CC=$ac_save_CC
2519
2520fi
2521
2522case "x$ac_cv_prog_cc_stdc" in
2523  x|xno)
2524    echo "$as_me:$LINENO: result: none needed" >&5
2525echo "${ECHO_T}none needed" >&6 ;;
2526  *)
2527    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2528echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2529    CC="$CC $ac_cv_prog_cc_stdc" ;;
2530esac
2531
2532# Some people use a C++ compiler to compile C.  Since we use `exit',
2533# in C++ we need to declare it.  In case someone uses the same compiler
2534# for both compiling C and C++ we need to have the C++ compiler decide
2535# the declaration of exit, since it's the most demanding environment.
2536cat >conftest.$ac_ext <<_ACEOF
2537#ifndef __cplusplus
2538  choke me
2539#endif
2540_ACEOF
2541rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543  (eval $ac_compile) 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550         { ac_try='test -z "$ac_c_werror_flag"
2551                         || test ! -s conftest.err'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; } &&
2557         { ac_try='test -s conftest.$ac_objext'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563  for ac_declaration in \
2564   '' \
2565   'extern "C" void std::exit (int) throw (); using std::exit;' \
2566   'extern "C" void std::exit (int); using std::exit;' \
2567   'extern "C" void exit (int) throw ();' \
2568   'extern "C" void exit (int);' \
2569   'void exit (int);'
2570do
2571  cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577$ac_declaration
2578#include <stdlib.h>
2579int
2580main ()
2581{
2582exit (42);
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -z "$ac_c_werror_flag"
2597                         || test ! -s conftest.err'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; } &&
2603         { ac_try='test -s conftest.$ac_objext'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; }; then
2609  :
2610else
2611  echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614continue
2615fi
2616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617  cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h.  */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h.  */
2623$ac_declaration
2624int
2625main ()
2626{
2627exit (42);
2628  ;
2629  return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } &&
2641         { ac_try='test -z "$ac_c_werror_flag"
2642                         || test ! -s conftest.err'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; } &&
2648         { ac_try='test -s conftest.$ac_objext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  break
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659fi
2660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661done
2662rm -f conftest*
2663if test -n "$ac_declaration"; then
2664  echo '#ifdef __cplusplus' >>confdefs.h
2665  echo $ac_declaration      >>confdefs.h
2666  echo '#endif'             >>confdefs.h
2667fi
2668
2669else
2670  echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673fi
2674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675ac_ext=c
2676ac_cpp='$CPP $CPPFLAGS'
2677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680
2681if test -z "$CC" ; then
2682  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2683echo "$as_me: error: Failed to find a C compiler!" >&2;}
2684   { (exit 1); exit 1; }; }
2685fi
2686# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2687case "$CC" in
2688  cl* | */cl* | CL* | */CL* )
2689    if test "$ac_cv_prog_cc_g" = yes ; then
2690      ac_cv_prog_cc_g=no
2691      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2692echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2693    fi ;;
2694esac
2695CFLAGS="$save_cflags"
2696
2697# Check if a project specific CFLAGS variable has been set
2698if test x$COIN_PRJCT != x; then
2699  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2700  if test x$coin_tmp = xset; then
2701    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2702  fi
2703fi
2704
2705if test x"$CFLAGS" = x; then
2706
2707  coin_add_cflags=
2708  coin_opt_cflags=
2709  coin_dbg_cflags=
2710  coin_warn_cflags=
2711
2712  if test "$GCC" = "yes"; then
2713    case "$CC" in
2714      icc* | */icc*)
2715        ;;
2716      *)
2717        coin_opt_cflags="-O3 -fomit-frame-pointer"
2718        coin_add_cflags="-pipe"
2719        coin_dbg_cflags="-g"
2720        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2721        case $build in
2722          *-darwin*)
2723            ;;
2724          *)
2725            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2726            ;;
2727        esac
2728        case $enable_doscompile in
2729          mingw)
2730            CFLAGS="-mno-cygwin"
2731            cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h.  */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h.  */
2737
2738int
2739main ()
2740{
2741int i=0; i++;
2742  ;
2743  return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext conftest$ac_exeext
2747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2748  (eval $ac_link) 2>conftest.er1
2749  ac_status=$?
2750  grep -v '^ *+' conftest.er1 >conftest.err
2751  rm -f conftest.er1
2752  cat conftest.err >&5
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); } &&
2755         { ac_try='test -z "$ac_c_werror_flag"
2756                         || test ! -s conftest.err'
2757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758  (eval $ac_try) 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }; } &&
2762         { ac_try='test -s conftest$ac_exeext'
2763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764  (eval $ac_try) 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }; }; then
2768  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2769else
2770  echo "$as_me: failed program was:" >&5
2771sed 's/^/| /' conftest.$ac_ext >&5
2772
2773fi
2774rm -f conftest.err conftest.$ac_objext \
2775      conftest$ac_exeext conftest.$ac_ext
2776            CFLAGS=
2777          ;;
2778        esac
2779    esac
2780  fi
2781  if test -z "$coin_opt_cflags"; then
2782    case $build in
2783      *-cygwin* | *-mingw*)
2784        case "$CC" in
2785          cl* | */cl* | CL* | */CL*)
2786            coin_opt_cflags='-MT -O2'
2787            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2788            coin_dbg_cflags='-MTd'
2789            ;;
2790          icl* | */icl* | ICL* | */ICL*)
2791            coin_opt_cflags='-MT -Ox'
2792            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2793            coin_dbg_cflags='-MTd -debug'
2794            ;;
2795        esac
2796        ;;
2797      *-linux-*)
2798        case "$CC" in
2799          icc* | */icc*)
2800            coin_opt_cflags="-O3 -ip -mp1"
2801            coin_add_cflags=""
2802            coin_dbg_cflags="-g"
2803            # Check if -i_dynamic is necessary (for new glibc library)
2804            CFLAGS=
2805            cat >conftest.$ac_ext <<_ACEOF
2806/* confdefs.h.  */
2807_ACEOF
2808cat confdefs.h >>conftest.$ac_ext
2809cat >>conftest.$ac_ext <<_ACEOF
2810/* end confdefs.h.  */
2811
2812int
2813main ()
2814{
2815int i=0; i++;
2816  ;
2817  return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext conftest$ac_exeext
2821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2822  (eval $ac_link) 2>conftest.er1
2823  ac_status=$?
2824  grep -v '^ *+' conftest.er1 >conftest.err
2825  rm -f conftest.er1
2826  cat conftest.err >&5
2827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828  (exit $ac_status); } &&
2829         { ac_try='test -z "$ac_c_werror_flag"
2830                         || test ! -s conftest.err'
2831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832  (eval $ac_try) 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; } &&
2836         { ac_try='test -s conftest$ac_exeext'
2837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838  (eval $ac_try) 2>&5
2839  ac_status=$?
2840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841  (exit $ac_status); }; }; then
2842  :
2843else
2844  echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847coin_add_cflags="-i_dynamic $coin_add_cflags"
2848fi
2849rm -f conftest.err conftest.$ac_objext \
2850      conftest$ac_exeext conftest.$ac_ext
2851            ;;
2852          pgcc* | */pgcc*)
2853            coin_opt_cflags="-fast"
2854            coin_add_cflags="-Kieee -pc 64"
2855            coin_dbg_cflags="-g"
2856            ;;
2857        esac
2858        ;;
2859      *-ibm-*)
2860        case "$CC" in
2861          xlc* | */xlc* | mpxlc* | */mpxlc*)
2862            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2863            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2864            coin_dbg_cflags="-g"
2865          ;;
2866        esac
2867        ;;
2868      *-hp-*)
2869        coin_opt_cflags="-O"
2870        coin_add_cflags="-Ae"
2871        coin_dbg_cflags="-g"
2872        ;;
2873      *-*-solaris*)
2874        coin_opt_cflags="-xO4"
2875        coin_dbg_cflags="-g"
2876        ;;
2877      *-sgi-*)
2878        coin_opt_cflags="-O -OPT:Olimit=0"
2879        coin_dbg_cflags="-g"
2880        ;;
2881    esac
2882  fi
2883
2884  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2885    coin_dbg_cflags="-g"
2886  fi
2887
2888  if test -z "$coin_opt_cflags"; then
2889    # Try if -O option works if nothing else is set
2890    CFLAGS="-O"
2891    cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h.  */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h.  */
2897
2898int
2899main ()
2900{
2901int i=0; i++;
2902  ;
2903  return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908  (eval $ac_link) 2>conftest.er1
2909  ac_status=$?
2910  grep -v '^ *+' conftest.er1 >conftest.err
2911  rm -f conftest.er1
2912  cat conftest.err >&5
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); } &&
2915         { ac_try='test -z "$ac_c_werror_flag"
2916                         || test ! -s conftest.err'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; } &&
2922         { ac_try='test -s conftest$ac_exeext'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; }; then
2928  coin_opt_cflags="-O"
2929else
2930  echo "$as_me: failed program was:" >&5
2931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933fi
2934rm -f conftest.err conftest.$ac_objext \
2935      conftest$ac_exeext conftest.$ac_ext
2936  fi
2937
2938  # if PM doesn't want the warning messages, take them out
2939  if test x"$coin_skip_warn_cflags" = xyes; then
2940    coin_warn_cflags=
2941  fi
2942
2943  if test x${DBG_CFLAGS+set} != xset; then
2944    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2945  fi
2946  if test x${OPT_CFLAGS+set} != xset; then
2947    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2948  fi
2949
2950  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2951  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2952
2953  if test "$coin_debug_compile" = "true"; then
2954    CFLAGS="$DBG_CFLAGS"
2955  else
2956    CFLAGS="$OPT_CFLAGS"
2957  fi
2958else
2959  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2960  if test x${DBG_CFLAGS+set} != xset; then
2961    DBG_CFLAGS="$CFLAGS"
2962  fi
2963  if test x${OPT_CFLAGS+set} != xset; then
2964    OPT_CFLAGS="$CFLAGS"
2965  fi
2966fi
2967
2968# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2969
2970case "$CFLAGS" in
2971  *-mno-cygwin*)
2972    if test x${CPPFLAGS+set} != xset ; then
2973      CPPFLAGS="-mno-cygwin"
2974    else
2975      case "$CPPFLAGS" in
2976        *-mno-cygwin*)
2977          ;;
2978        *)
2979          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2980          ;;
2981      esac
2982    fi ;;
2983esac
2984
2985# Try if CFLAGS works
2986save_CFLAGS="$CFLAGS"
2987cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993
2994int
2995main ()
2996{
2997int i=0; i++;
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext conftest$ac_exeext
3003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3004  (eval $ac_link) 2>conftest.er1
3005  ac_status=$?
3006  grep -v '^ *+' conftest.er1 >conftest.err
3007  rm -f conftest.er1
3008  cat conftest.err >&5
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); } &&
3011         { ac_try='test -z "$ac_c_werror_flag"
3012                         || test ! -s conftest.err'
3013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014  (eval $ac_try) 2>&5
3015  ac_status=$?
3016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017  (exit $ac_status); }; } &&
3018         { ac_try='test -s conftest$ac_exeext'
3019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020  (eval $ac_try) 2>&5
3021  ac_status=$?
3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023  (exit $ac_status); }; }; then
3024  :
3025else
3026  echo "$as_me: failed program was:" >&5
3027sed 's/^/| /' conftest.$ac_ext >&5
3028
3029CFLAGS=
3030fi
3031rm -f conftest.err conftest.$ac_objext \
3032      conftest$ac_exeext conftest.$ac_ext
3033if test -z "$CFLAGS"; then
3034  { 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
3035echo "$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;}
3036  CFLAGS='-O'
3037  cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h.  */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h.  */
3043
3044int
3045main ()
3046{
3047int i=0; i++;
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext conftest$ac_exeext
3053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3054  (eval $ac_link) 2>conftest.er1
3055  ac_status=$?
3056  grep -v '^ *+' conftest.er1 >conftest.err
3057  rm -f conftest.er1
3058  cat conftest.err >&5
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); } &&
3061         { ac_try='test -z "$ac_c_werror_flag"
3062                         || test ! -s conftest.err'
3063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064  (eval $ac_try) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); }; } &&
3068         { ac_try='test -s conftest$ac_exeext'
3069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070  (eval $ac_try) 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }; }; then
3074  :
3075else
3076  echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079CFLAGS=
3080fi
3081rm -f conftest.err conftest.$ac_objext \
3082      conftest$ac_exeext conftest.$ac_ext
3083  if test -z "$CFLAGS"; then
3084    { 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
3085echo "$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;}
3086  fi
3087fi
3088
3089{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3090echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3091
3092
3093if test x"$MPICC" = x; then :; else
3094  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3095echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3096  CC="$MPICC"
3097fi
3098
3099# Correct ADDLIBS initialization if we are using the MS compiler
3100case "$CC" in
3101  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3102    ADDLIBS=
3103    case $build in
3104  *-mingw*)
3105    if test "${LD+set}" = set; then :; else
3106      LD=link
3107    fi
3108    ;;
3109 esac
3110 case $enable_doscompile in
3111   msvc)
3112     if test "x${LD+set}" = xset; then :; else
3113       LD=link
3114     fi
3115     ;;
3116 esac
3117
3118    ;;
3119esac
3120
3121ac_ext=c
3122ac_cpp='$CPP $CPPFLAGS'
3123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126
3127
3128case $build in
3129  *-cygwin* | *-mingw*)
3130     if test "$enable_doscompile" = msvc ; then
3131       coin_f77_comps="ifort fl32 compile_f2c"
3132     else
3133       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3134     fi ;;
3135  *-*-solaris*)
3136     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3137  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3138 esac
3139
3140
3141
3142
3143
3144
3145ac_ext=f
3146ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3147ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3149
3150
3151
3152
3153
3154
3155coin_has_f77=yes
3156
3157save_fflags="$FFLAGS"
3158
3159# We delete the cached value, since the test might not have been
3160# performed with our choice of compilers earlier
3161$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3162
3163# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3164# coin_f77_comps to see if there's a program that matches one of the names.
3165# If there's no such program, F77 = unavailable. If we match the name,
3166# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3167# compiler.
3168# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3169
3170
3171{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3172echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3173for ac_prog in $coin_f77_comps
3174do
3175  # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177echo "$as_me:$LINENO: checking for $ac_word" >&5
3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179if test "${ac_cv_prog_F77+set}" = set; then
3180  echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182  if test -n "$F77"; then
3183  ac_cv_prog_F77="$F77" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190  for ac_exec_ext in '' $ac_executable_extensions; do
3191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    ac_cv_prog_F77="$ac_prog"
3193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197done
3198
3199fi
3200fi
3201F77=$ac_cv_prog_F77
3202if test -n "$F77"; then
3203  echo "$as_me:$LINENO: result: $F77" >&5
3204echo "${ECHO_T}$F77" >&6
3205else
3206  echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208fi
3209
3210  test -n "$F77" && break
3211done
3212test -n "$F77" || F77="unavailable"
3213
3214
3215if test "$F77" != "unavailable" ; then
3216  ac_ext=f
3217ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3218ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3220if test -n "$ac_tool_prefix"; then
3221  for ac_prog in $coin_f77_comps
3222  do
3223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3225echo "$as_me:$LINENO: checking for $ac_word" >&5
3226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227if test "${ac_cv_prog_F77+set}" = set; then
3228  echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
3230  if test -n "$F77"; then
3231  ac_cv_prog_F77="$F77" # Let the user override the test.
3232else
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236  IFS=$as_save_IFS
3237  test -z "$as_dir" && as_dir=.
3238  for ac_exec_ext in '' $ac_executable_extensions; do
3239  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242    break 2
3243  fi
3244done
3245done
3246
3247fi
3248fi
3249F77=$ac_cv_prog_F77
3250if test -n "$F77"; then
3251  echo "$as_me:$LINENO: result: $F77" >&5
3252echo "${ECHO_T}$F77" >&6
3253else
3254  echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256fi
3257
3258    test -n "$F77" && break
3259  done
3260fi
3261if test -z "$F77"; then
3262  ac_ct_F77=$F77
3263  for ac_prog in $coin_f77_comps
3264do
3265  # Extract the first word of "$ac_prog", so it can be a program name with args.
3266set dummy $ac_prog; ac_word=$2
3267echo "$as_me:$LINENO: checking for $ac_word" >&5
3268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3270  echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272  if test -n "$ac_ct_F77"; then
3273  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3274else
3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276for as_dir in $PATH
3277do
3278  IFS=$as_save_IFS
3279  test -z "$as_dir" && as_dir=.
3280  for ac_exec_ext in '' $ac_executable_extensions; do
3281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282    ac_cv_prog_ac_ct_F77="$ac_prog"
3283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284    break 2
3285  fi
3286done
3287done
3288
3289fi
3290fi
3291ac_ct_F77=$ac_cv_prog_ac_ct_F77
3292if test -n "$ac_ct_F77"; then
3293  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3294echo "${ECHO_T}$ac_ct_F77" >&6
3295else
3296  echo "$as_me:$LINENO: result: no" >&5
3297echo "${ECHO_T}no" >&6
3298fi
3299
3300  test -n "$ac_ct_F77" && break
3301done
3302
3303  F77=$ac_ct_F77
3304fi
3305
3306
3307# Provide some information about the compiler.
3308echo "$as_me:3308:" \
3309     "checking for Fortran 77 compiler version" >&5
3310ac_compiler=`set X $ac_compile; echo $2`
3311{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3312  (eval $ac_compiler --version </dev/null >&5) 2>&5
3313  ac_status=$?
3314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315  (exit $ac_status); }
3316{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3317  (eval $ac_compiler -v </dev/null >&5) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }
3321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3322  (eval $ac_compiler -V </dev/null >&5) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }
3326rm -f a.out
3327
3328# If we don't use `.F' as extension, the preprocessor is not run on the
3329# input file.  (Note that this only needs to work for GNU compilers.)
3330ac_save_ext=$ac_ext
3331ac_ext=F
3332echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3333echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3334if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3335  echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337  cat >conftest.$ac_ext <<_ACEOF
3338      program main
3339#ifndef __GNUC__
3340       choke me
3341#endif
3342
3343      end
3344_ACEOF
3345rm -f conftest.$ac_objext
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347  (eval $ac_compile) 2>conftest.er1
3348  ac_status=$?
3349  grep -v '^ *+' conftest.er1 >conftest.err
3350  rm -f conftest.er1
3351  cat conftest.err >&5
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); } &&
3354         { ac_try='test -z "$ac_f77_werror_flag"
3355                         || test ! -s conftest.err'
3356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357  (eval $ac_try) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }; } &&
3361         { ac_try='test -s conftest.$ac_objext'
3362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3363  (eval $ac_try) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }; }; then
3367  ac_compiler_gnu=yes
3368else
3369  echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372ac_compiler_gnu=no
3373fi
3374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3375ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3376
3377fi
3378echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3379echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3380ac_ext=$ac_save_ext
3381ac_test_FFLAGS=${FFLAGS+set}
3382ac_save_FFLAGS=$FFLAGS
3383FFLAGS=
3384echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3385echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3386if test "${ac_cv_prog_f77_g+set}" = set; then
3387  echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389  FFLAGS=-g
3390cat >conftest.$ac_ext <<_ACEOF
3391      program main
3392
3393      end
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397  (eval $ac_compile) 2>conftest.er1
3398  ac_status=$?
3399  grep -v '^ *+' conftest.er1 >conftest.err
3400  rm -f conftest.er1
3401  cat conftest.err >&5
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); } &&
3404         { ac_try='test -z "$ac_f77_werror_flag"
3405                         || test ! -s conftest.err'
3406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407  (eval $ac_try) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; } &&
3411         { ac_try='test -s conftest.$ac_objext'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; }; then
3417  ac_cv_prog_f77_g=yes
3418else
3419  echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422ac_cv_prog_f77_g=no
3423fi
3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425
3426fi
3427echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3428echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3429if test "$ac_test_FFLAGS" = set; then
3430  FFLAGS=$ac_save_FFLAGS
3431elif test $ac_cv_prog_f77_g = yes; then
3432  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3433    FFLAGS="-g -O2"
3434  else
3435    FFLAGS="-g"
3436  fi
3437else
3438  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3439    FFLAGS="-O2"
3440  else
3441    FFLAGS=
3442  fi
3443fi
3444
3445G77=`test $ac_compiler_gnu = yes && echo yes`
3446ac_ext=f
3447ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3448ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3450
3451else
3452  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3453echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3454fi
3455
3456FFLAGS="$save_fflags"
3457
3458# Check if a project specific FFLAGS variable has been set
3459if test x$COIN_PRJCT != x; then
3460  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3461  if test x$coin_tmp = xset; then
3462    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3463  fi
3464fi
3465
3466if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3467
3468  coin_add_fflags=
3469  coin_opt_fflags=
3470  coin_dbg_fflags=
3471  coin_warn_fflags=
3472
3473  if test "$G77" = "yes"; then
3474    coin_opt_fflags="-O3 -fomit-frame-pointer"
3475    coin_add_fflags="-pipe"
3476    coin_dbg_fflags="-g"
3477    case $enable_doscompile in
3478      mingw)
3479        FFLAGS="-mno-cygwin"
3480        cat >conftest.$ac_ext <<_ACEOF
3481      program main
3482      write(*,*) 'Hello world'
3483      end
3484_ACEOF
3485rm -f conftest.$ac_objext conftest$ac_exeext
3486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3487  (eval $ac_link) 2>conftest.er1
3488  ac_status=$?
3489  grep -v '^ *+' conftest.er1 >conftest.err
3490  rm -f conftest.er1
3491  cat conftest.err >&5
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); } &&
3494         { ac_try='test -z "$ac_f77_werror_flag"
3495                         || test ! -s conftest.err'
3496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497  (eval $ac_try) 2>&5
3498  ac_status=$?
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); }; } &&
3501         { ac_try='test -s conftest$ac_exeext'
3502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503  (eval $ac_try) 2>&5
3504  ac_status=$?
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); }; }; then
3507  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3508else
3509  echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512fi
3513rm -f conftest.err conftest.$ac_objext \
3514      conftest$ac_exeext conftest.$ac_ext
3515        FFLAGS=
3516      ;;
3517    esac
3518  else
3519    case $build in
3520      *-cygwin* | *-mingw*)
3521        case $F77 in
3522          ifort* | */ifort* | IFORT* | */IFORT* )
3523            coin_opt_fflags='-MT -O3'
3524            coin_add_fflags='-fpp -nologo'
3525            coin_dbg_fflags='-MTd -debug'
3526          ;;
3527          compile_f2c*)
3528            coin_opt_fflags='-MT -O2'
3529            coin_add_fflags='-nologo -wd4996'
3530            coin_dbg_fflags='-MTd'
3531          ;;
3532        esac
3533        ;;
3534      *-linux-*)
3535        case $F77 in
3536          ifc* | */ifc* | ifort* | */ifort*)
3537            coin_opt_fflags="-O3 -ip"
3538            coin_add_fflags="-cm -w90 -w95"
3539            coin_dbg_fflags="-g -CA -CB -CS"
3540            # Check if -i_dynamic is necessary (for new glibc library)
3541            FFLAGS=
3542            cat >conftest.$ac_ext <<_ACEOF
3543      program main
3544      write(*,*) 'Hello world'
3545      end
3546_ACEOF
3547rm -f conftest.$ac_objext conftest$ac_exeext
3548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3549  (eval $ac_link) 2>conftest.er1
3550  ac_status=$?
3551  grep -v '^ *+' conftest.er1 >conftest.err
3552  rm -f conftest.er1
3553  cat conftest.err >&5
3554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555  (exit $ac_status); } &&
3556         { ac_try='test -z "$ac_f77_werror_flag"
3557                         || test ! -s conftest.err'
3558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559  (eval $ac_try) 2>&5
3560  ac_status=$?
3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); }; } &&
3563         { ac_try='test -s conftest$ac_exeext'
3564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565  (eval $ac_try) 2>&5
3566  ac_status=$?
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); }; }; then
3569  :
3570else
3571  echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574coin_add_fflags="-i_dynamic $coin_add_fflags"
3575fi
3576rm -f conftest.err conftest.$ac_objext \
3577      conftest$ac_exeext conftest.$ac_ext
3578            ;;
3579          pgf77* | */pgf77* | pgf90* | */pgf90*)
3580            coin_opt_fflags="-fast"
3581            coin_add_fflags="-Kieee -pc 64"
3582            coin_dbg_fflags="-g"
3583          ;;
3584        esac
3585        ;;
3586      *-ibm-*)
3587        case "$F77" in
3588          xlf* | */xlf* | mpxlf* | */mpxlf* )
3589            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3590            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3591            coin_dbg_fflags="-g -C"
3592            ;;
3593        esac
3594        ;;
3595      *-hp-*)
3596        coin_opt_fflags="+O3"
3597        coin_add_fflags="+U77"
3598        coin_dbg_fflags="-C -g"
3599        ;;
3600      *-*-solaris*)
3601        coin_opt_fflags="-O4"
3602        coin_dbg_fflags="-g"
3603        ;;
3604      *-sgi-*)
3605        coin_opt_fflags="-O5 -OPT:Olimit=0"
3606        coin_dbg_fflags="-g"
3607        ;;
3608    esac
3609  fi
3610
3611  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3612    coin_dbg_fflags="-g"
3613  fi
3614
3615  if test -z "$coin_opt_fflags"; then
3616    # Try if -O option works if nothing else is set
3617    FFLAGS=-O
3618    cat >conftest.$ac_ext <<_ACEOF
3619      program main
3620      integer i
3621      end
3622_ACEOF
3623rm -f conftest.$ac_objext conftest$ac_exeext
3624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3625  (eval $ac_link) 2>conftest.er1
3626  ac_status=$?
3627  grep -v '^ *+' conftest.er1 >conftest.err
3628  rm -f conftest.er1
3629  cat conftest.err >&5
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); } &&
3632         { ac_try='test -z "$ac_f77_werror_flag"
3633                         || test ! -s conftest.err'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; } &&
3639         { ac_try='test -s conftest$ac_exeext'
3640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641  (eval $ac_try) 2>&5
3642  ac_status=$?
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); }; }; then
3645  coin_opt_fflags="-O"
3646else
3647  echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650fi
3651rm -f conftest.err conftest.$ac_objext \
3652      conftest$ac_exeext conftest.$ac_ext
3653  fi
3654
3655  # if PM doesn't want the warning messages, take them out
3656  if test x"$coin_skip_warn_fflags" = xyes; then
3657    coin_warn_fflags=
3658  fi
3659
3660  if test x${DBG_FFLAGS+set} != xset; then
3661    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3662  fi
3663  if test x${OPT_FFLAGS+set} != xset; then
3664    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3665  fi
3666
3667  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3668  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3669
3670  if test "$coin_debug_compile" = "true"; then
3671    FFLAGS="$DBG_FFLAGS"
3672  else
3673    FFLAGS="$OPT_FFLAGS"
3674  fi
3675else
3676  FFLAGS="$FFLAGS $ADD_FFLAGS"
3677  if test x${DBG_FFLAGS+set} != xset; then
3678    DBG_FFLAGS="$FFLAGS"
3679  fi
3680  if test x${OPT_FFLAGS+set} != xset; then
3681    OPT_FFLAGS="$FFLAGS"
3682  fi
3683fi
3684
3685# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3686case "$FFLAGS" in
3687  *-mno-cygwin*)
3688    if test x${CPPFLAGS+set} != xset ; then
3689      CPPFLAGS="-mno-cygwin"
3690    else
3691      case "$CPPFLAGS" in
3692        *-mno-cygwin*)
3693          ;;
3694        *)
3695          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3696          ;;
3697      esac
3698    fi ;;
3699esac
3700
3701# Try if FFLAGS works
3702if test "$F77" != "unavailable" ; then
3703  cat >conftest.$ac_ext <<_ACEOF
3704      program main
3705      integer i
3706      end
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710  (eval $ac_link) 2>conftest.er1
3711  ac_status=$?
3712  grep -v '^ *+' conftest.er1 >conftest.err
3713  rm -f conftest.er1
3714  cat conftest.err >&5
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); } &&
3717         { ac_try='test -z "$ac_f77_werror_flag"
3718                         || test ! -s conftest.err'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; } &&
3724         { ac_try='test -s conftest$ac_exeext'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; }; then
3730  :
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735FFLAGS=
3736fi
3737rm -f conftest.err conftest.$ac_objext \
3738      conftest$ac_exeext conftest.$ac_ext
3739  if test -z "$FFLAGS"; then
3740    { 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
3741echo "$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;}
3742    FFLAGS='-O'
3743    cat >conftest.$ac_ext <<_ACEOF
3744      program main
3745      integer i
3746      end
3747_ACEOF
3748rm -f conftest.$ac_objext conftest$ac_exeext
3749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3750  (eval $ac_link) 2>conftest.er1
3751  ac_status=$?
3752  grep -v '^ *+' conftest.er1 >conftest.err
3753  rm -f conftest.er1
3754  cat conftest.err >&5
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); } &&
3757         { ac_try='test -z "$ac_f77_werror_flag"
3758                         || test ! -s conftest.err'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; } &&
3764         { ac_try='test -s conftest$ac_exeext'
3765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766  (eval $ac_try) 2>&5
3767  ac_status=$?
3768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); }; }; then
3770  :
3771else
3772  echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775FFLAGS=
3776fi
3777rm -f conftest.err conftest.$ac_objext \
3778      conftest$ac_exeext conftest.$ac_ext
3779    if test -z "$FFLAGS"; then
3780      { 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
3781echo "$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;}
3782    fi
3783  fi
3784fi
3785
3786{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3787echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3788
3789
3790if test x"$MPIF77" = x; then :; else
3791  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3792echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3793  F77="$MPIF77"
3794fi
3795
3796case "$F77" in
3797  ifort* | */ifort* | IFORT* | */IFORT*)
3798    case $build in
3799  *-mingw*)
3800    if test "${LD+set}" = set; then :; else
3801      LD=link
3802    fi
3803    ;;
3804 esac
3805 case $enable_doscompile in
3806   msvc)
3807     if test "x${LD+set}" = xset; then :; else
3808       LD=link
3809     fi
3810     ;;
3811 esac
3812
3813    ;;
3814esac
3815
3816ac_ext=c
3817ac_cpp='$CPP $CPPFLAGS'
3818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822
3823
3824# Get the linker flags (FLIBS) that are required for linking against this blas library
3825ac_ext=f
3826ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3827ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3829echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3830echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3831if test "${ac_cv_prog_f77_v+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  cat >conftest.$ac_ext <<_ACEOF
3835      program main
3836
3837      end
3838_ACEOF
3839rm -f conftest.$ac_objext
3840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841  (eval $ac_compile) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_f77_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest.$ac_objext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  ac_cv_prog_f77_v=
3862# Try some options frequently used verbose output
3863for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3864  cat >conftest.$ac_ext <<_ACEOF
3865      program main
3866
3867      end
3868_ACEOF
3869
3870# Compile and link our simple test program by passing a flag (argument
3871# 1 to this macro) to the Fortran compiler in order to get
3872# "verbose" output that we can then parse for the Fortran linker
3873# flags.
3874ac_save_FFLAGS=$FFLAGS
3875FFLAGS="$FFLAGS $ac_verb"
3876(eval echo $as_me:3876: \"$ac_link\") >&5
3877ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3878echo "$ac_f77_v_output" >&5
3879FFLAGS=$ac_save_FFLAGS
3880
3881rm -f conftest*
3882
3883# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3884# /foo, /bar, and /baz are search directories for the Fortran linker.
3885# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3886ac_f77_v_output="`echo $ac_f77_v_output |
3887        grep 'LPATH is:' |
3888        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3889
3890case $ac_f77_v_output in
3891  # If we are using xlf then replace all the commas with spaces.
3892  *xlfentry*)
3893    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3894
3895  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3896  # $LIBS confuse us, and the libraries appear later in the output anyway).
3897  *mGLOB_options_string*)
3898    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3899
3900  # If we are using Cray Fortran then delete quotes.
3901  # Use "\"" instead of '"' for font-lock-mode.
3902  # FIXME: a more general fix for quoted arguments with spaces?
3903  *cft90*)
3904    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3905esac
3906
3907
3908  # look for -l* and *.a constructs in the output
3909  for ac_arg in $ac_f77_v_output; do
3910     case $ac_arg in
3911        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3912          ac_cv_prog_f77_v=$ac_verb
3913          break 2 ;;
3914     esac
3915  done
3916done
3917if test -z "$ac_cv_prog_f77_v"; then
3918   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3919echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3920fi
3921else
3922  echo "$as_me: failed program was:" >&5
3923sed 's/^/| /' conftest.$ac_ext >&5
3924
3925{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3926echo "$as_me: WARNING: compilation failed" >&2;}
3927fi
3928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3929
3930fi
3931echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3932echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3933echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3934echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3935if test "${ac_cv_f77_libs+set}" = set; then
3936  echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938  if test "x$FLIBS" != "x"; then
3939  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3940else
3941
3942cat >conftest.$ac_ext <<_ACEOF
3943      program main
3944
3945      end
3946_ACEOF
3947
3948# Compile and link our simple test program by passing a flag (argument
3949# 1 to this macro) to the Fortran compiler in order to get
3950# "verbose" output that we can then parse for the Fortran linker
3951# flags.
3952ac_save_FFLAGS=$FFLAGS
3953FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3954(eval echo $as_me:3954: \"$ac_link\") >&5
3955ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3956echo "$ac_f77_v_output" >&5
3957FFLAGS=$ac_save_FFLAGS
3958
3959rm -f conftest*
3960
3961# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3962# /foo, /bar, and /baz are search directories for the Fortran linker.
3963# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3964ac_f77_v_output="`echo $ac_f77_v_output |
3965        grep 'LPATH is:' |
3966        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3967
3968case $ac_f77_v_output in
3969  # If we are using xlf then replace all the commas with spaces.
3970  *xlfentry*)
3971    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3972
3973  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3974  # $LIBS confuse us, and the libraries appear later in the output anyway).
3975  *mGLOB_options_string*)
3976    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3977
3978  # If we are using Cray Fortran then delete quotes.
3979  # Use "\"" instead of '"' for font-lock-mode.
3980  # FIXME: a more general fix for quoted arguments with spaces?
3981  *cft90*)
3982    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3983esac
3984
3985
3986
3987ac_cv_f77_libs=
3988
3989# Save positional arguments (if any)
3990ac_save_positional="$@"
3991
3992set X $ac_f77_v_output
3993while test $# != 1; do
3994  shift
3995  ac_arg=$1
3996  case $ac_arg in
3997        [\\/]*.a | ?:[\\/]*.a)
3998            ac_exists=false
3999  for ac_i in $ac_cv_f77_libs; do
4000    if test x"$ac_arg" = x"$ac_i"; then
4001      ac_exists=true
4002      break
4003    fi
4004  done
4005
4006  if test x"$ac_exists" = xtrue; then
4007  :
4008else
4009  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4010fi
4011
4012          ;;
4013        -bI:*)
4014            ac_exists=false
4015  for ac_i in $ac_cv_f77_libs; do
4016    if test x"$ac_arg" = x"$ac_i"; then
4017      ac_exists=true
4018      break
4019    fi
4020  done
4021
4022  if test x"$ac_exists" = xtrue; then
4023  :
4024else
4025  if test "$ac_compiler_gnu" = yes; then
4026  for ac_link_opt in $ac_arg; do
4027    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4028  done
4029else
4030  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4031fi
4032fi
4033
4034          ;;
4035          # Ignore these flags.
4036        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4037          ;;
4038        -lkernel32)
4039          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4040          ;;
4041        -[LRuY])
4042          # These flags, when seen by themselves, take an argument.
4043          # We remove the space between option and argument and re-iterate
4044          # unless we find an empty arg or a new option (starting with -)
4045          case $2 in
4046             "" | -*);;
4047             *)
4048                ac_arg="$ac_arg$2"
4049                shift; shift
4050                set X $ac_arg "$@"
4051                ;;
4052          esac
4053          ;;
4054        -YP,*)
4055          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4056              ac_exists=false
4057  for ac_i in $ac_cv_f77_libs; do
4058    if test x"$ac_j" = x"$ac_i"; then
4059      ac_exists=true
4060      break
4061    fi
4062  done
4063
4064  if test x"$ac_exists" = xtrue; then
4065  :
4066else
4067  ac_arg="$ac_arg $ac_j"
4068                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4069fi
4070
4071          done
4072          ;;
4073        -[lLR]*)
4074            ac_exists=false
4075  for ac_i in $ac_cv_f77_libs; do
4076    if test x"$ac_arg" = x"$ac_i"; then
4077      ac_exists=true
4078      break
4079    fi
4080  done
4081
4082  if test x"$ac_exists" = xtrue; then
4083  :
4084else
4085  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4086fi
4087
4088          ;;
4089          # Ignore everything else.
4090  esac
4091done
4092# restore positional arguments
4093set X $ac_save_positional; shift
4094
4095# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4096# then we insist that the "run path" must be an absolute path (i.e. it
4097# must begin with a "/").
4098case `(uname -sr) 2>/dev/null` in
4099   "SunOS 5"*)
4100      ac_ld_run_path=`echo $ac_f77_v_output |
4101                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4102      test "x$ac_ld_run_path" != x &&
4103        if test "$ac_compiler_gnu" = yes; then
4104  for ac_link_opt in $ac_ld_run_path; do
4105    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4106  done
4107else
4108  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4109fi
4110      ;;
4111esac
4112fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4113
4114fi
4115echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4116echo "${ECHO_T}$ac_cv_f77_libs" >&6
4117FLIBS="$ac_cv_f77_libs"
4118
4119
4120ac_ext=f
4121ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4122ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4124
4125ac_ext=f
4126ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4127ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4129
4130echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4131echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4132if test "${ac_cv_f77_dummy_main+set}" = set; then
4133  echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135  ac_f77_dm_save_LIBS=$LIBS
4136 LIBS="$LIBS $FLIBS"
4137 ac_fortran_dm_var=F77_DUMMY_MAIN
4138 ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144 # First, try linking without a dummy main:
4145 cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151
4152#ifdef F77_DUMMY_MAIN
4153
4154#  ifdef __cplusplus
4155     extern "C"
4156#  endif
4157   int F77_DUMMY_MAIN() { return 1; }
4158
4159#endif
4160int
4161main ()
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168rm -f conftest.$ac_objext conftest$ac_exeext
4169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170  (eval $ac_link) 2>conftest.er1
4171  ac_status=$?
4172  grep -v '^ *+' conftest.er1 >conftest.err
4173  rm -f conftest.er1
4174  cat conftest.err >&5
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); } &&
4177         { ac_try='test -z "$ac_c_werror_flag"
4178                         || test ! -s conftest.err'
4179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180  (eval $ac_try) 2>&5
4181  ac_status=$?
4182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183  (exit $ac_status); }; } &&
4184         { ac_try='test -s conftest$ac_exeext'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; }; then
4190  ac_cv_fortran_dummy_main=none
4191else
4192  echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195ac_cv_fortran_dummy_main=unknown
4196fi
4197rm -f conftest.err conftest.$ac_objext \
4198      conftest$ac_exeext conftest.$ac_ext
4199
4200 if test $ac_cv_fortran_dummy_main = unknown; then
4201   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4202     cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h.  */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h.  */
4208#define $ac_fortran_dm_var $ac_func
4209#ifdef F77_DUMMY_MAIN
4210
4211#  ifdef __cplusplus
4212     extern "C"
4213#  endif
4214   int F77_DUMMY_MAIN() { return 1; }
4215
4216#endif
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225rm -f conftest.$ac_objext conftest$ac_exeext
4226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4227  (eval $ac_link) 2>conftest.er1
4228  ac_status=$?
4229  grep -v '^ *+' conftest.er1 >conftest.err
4230  rm -f conftest.er1
4231  cat conftest.err >&5
4232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233  (exit $ac_status); } &&
4234         { ac_try='test -z "$ac_c_werror_flag"
4235                         || test ! -s conftest.err'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; } &&
4241         { ac_try='test -s conftest$ac_exeext'
4242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243  (eval $ac_try) 2>&5
4244  ac_status=$?
4245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246  (exit $ac_status); }; }; then
4247  ac_cv_fortran_dummy_main=$ac_func; break
4248else
4249  echo "$as_me: failed program was:" >&5
4250sed 's/^/| /' conftest.$ac_ext >&5
4251
4252fi
4253rm -f conftest.err conftest.$ac_objext \
4254      conftest$ac_exeext conftest.$ac_ext
4255   done
4256 fi
4257 ac_ext=f
4258ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4259ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4261 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4262 rm -f conftest*
4263 LIBS=$ac_f77_dm_save_LIBS
4264
4265fi
4266echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4267echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4268F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4269if test "$F77_DUMMY_MAIN" != unknown; then
4270  if test $F77_DUMMY_MAIN != none; then
4271
4272cat >>confdefs.h <<_ACEOF
4273#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4274_ACEOF
4275
4276  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4277
4278cat >>confdefs.h <<\_ACEOF
4279#define FC_DUMMY_MAIN_EQ_F77 1
4280_ACEOF
4281
4282  fi
4283fi
4284else
4285  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4286See \`config.log' for more details." >&5
4287echo "$as_me: error: linking to Fortran libraries from C fails
4288See \`config.log' for more details." >&2;}
4289   { (exit 1); exit 1; }; }
4290fi
4291
4292
4293ac_ext=f
4294ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4295ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4297
4298ac_ext=f
4299ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4300ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4302echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4303echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4304if test "${ac_cv_f77_mangling+set}" = set; then
4305  echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307  cat >conftest.$ac_ext <<_ACEOF
4308      subroutine foobar()
4309      return
4310      end
4311      subroutine foo_bar()
4312      return
4313      end
4314_ACEOF
4315rm -f conftest.$ac_objext
4316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317  (eval $ac_compile) 2>conftest.er1
4318  ac_status=$?
4319  grep -v '^ *+' conftest.er1 >conftest.err
4320  rm -f conftest.er1
4321  cat conftest.err >&5
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); } &&
4324         { ac_try='test -z "$ac_f77_werror_flag"
4325                         || test ! -s conftest.err'
4326  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327  (eval $ac_try) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); }; } &&
4331         { ac_try='test -s conftest.$ac_objext'
4332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333  (eval $ac_try) 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); }; }; then
4337  mv conftest.$ac_objext cfortran_test.$ac_objext
4338
4339  ac_save_LIBS=$LIBS
4340  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4341
4342  ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347  ac_success=no
4348  for ac_foobar in foobar FOOBAR; do
4349    for ac_underscore in "" "_"; do
4350      ac_func="$ac_foobar$ac_underscore"
4351      cat >conftest.$ac_ext <<_ACEOF
4352/* confdefs.h.  */
4353_ACEOF
4354cat confdefs.h >>conftest.$ac_ext
4355cat >>conftest.$ac_ext <<_ACEOF
4356/* end confdefs.h.  */
4357
4358/* Override any gcc2 internal prototype to avoid an error.  */
4359#ifdef __cplusplus
4360extern "C"
4361#endif
4362/* We use char because int might match the return type of a gcc2
4363   builtin and then its argument prototype would still apply.  */
4364char $ac_func ();
4365#ifdef F77_DUMMY_MAIN
4366
4367#  ifdef __cplusplus
4368     extern "C"
4369#  endif
4370   int F77_DUMMY_MAIN() { return 1; }
4371
4372#endif
4373int
4374main ()
4375{
4376$ac_func ();
4377  ;
4378  return 0;
4379}
4380_ACEOF
4381rm -f conftest.$ac_objext conftest$ac_exeext
4382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4383  (eval $ac_link) 2>conftest.er1
4384  ac_status=$?
4385  grep -v '^ *+' conftest.er1 >conftest.err
4386  rm -f conftest.er1
4387  cat conftest.err >&5
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); } &&
4390         { ac_try='test -z "$ac_c_werror_flag"
4391                         || test ! -s conftest.err'
4392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393  (eval $ac_try) 2>&5
4394  ac_status=$?
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); }; } &&
4397         { ac_try='test -s conftest$ac_exeext'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; }; then
4403  ac_success=yes; break 2
4404else
4405  echo "$as_me: failed program was:" >&5
4406sed 's/^/| /' conftest.$ac_ext >&5
4407
4408fi
4409rm -f conftest.err conftest.$ac_objext \
4410      conftest$ac_exeext conftest.$ac_ext
4411    done
4412  done
4413  ac_ext=f
4414ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4415ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4417
4418  if test "$ac_success" = "yes"; then
4419     case $ac_foobar in
4420        foobar)
4421           ac_case=lower
4422           ac_foo_bar=foo_bar
4423           ;;
4424        FOOBAR)
4425           ac_case=upper
4426           ac_foo_bar=FOO_BAR
4427           ;;
4428     esac
4429
4430     ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435     ac_success_extra=no
4436     for ac_extra in "" "_"; do
4437        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4438        cat >conftest.$ac_ext <<_ACEOF
4439/* confdefs.h.  */
4440_ACEOF
4441cat confdefs.h >>conftest.$ac_ext
4442cat >>conftest.$ac_ext <<_ACEOF
4443/* end confdefs.h.  */
4444
4445/* Override any gcc2 internal prototype to avoid an error.  */
4446#ifdef __cplusplus
4447extern "C"
4448#endif
4449/* We use char because int might match the return type of a gcc2
4450   builtin and then its argument prototype would still apply.  */
4451char $ac_func ();
4452#ifdef F77_DUMMY_MAIN
4453
4454#  ifdef __cplusplus
4455     extern "C"
4456#  endif
4457   int F77_DUMMY_MAIN() { return 1; }
4458
4459#endif
4460int
4461main ()
4462{
4463$ac_func ();
4464  ;
4465  return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext conftest$ac_exeext
4469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470  (eval $ac_link) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } &&
4477         { ac_try='test -z "$ac_c_werror_flag"
4478                         || test ! -s conftest.err'
4479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480  (eval $ac_try) 2>&5
4481  ac_status=$?
4482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483  (exit $ac_status); }; } &&
4484         { ac_try='test -s conftest$ac_exeext'
4485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486  (eval $ac_try) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; }; then
4490  ac_success_extra=yes; break
4491else
4492  echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495fi
4496rm -f conftest.err conftest.$ac_objext \
4497      conftest$ac_exeext conftest.$ac_ext
4498     done
4499     ac_ext=f
4500ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4501ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4503
4504     if test "$ac_success_extra" = "yes"; then
4505        ac_cv_f77_mangling="$ac_case case"
4506        if test -z "$ac_underscore"; then
4507           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4508        else
4509           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4510        fi
4511        if test -z "$ac_extra"; then
4512           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4513        else
4514           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4515        fi
4516      else
4517        ac_cv_f77_mangling="unknown"
4518      fi
4519  else
4520     ac_cv_f77_mangling="unknown"
4521  fi
4522
4523  LIBS=$ac_save_LIBS
4524  rm -f cfortran_test* conftest*
4525else
4526  echo "$as_me: failed program was:" >&5
4527sed 's/^/| /' conftest.$ac_ext >&5
4528
4529{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4530See \`config.log' for more details." >&5
4531echo "$as_me: error: cannot compile a simple Fortran program
4532See \`config.log' for more details." >&2;}
4533   { (exit 1); exit 1; }; }
4534fi
4535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536
4537fi
4538echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4539echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4540
4541ac_ext=f
4542ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4543ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4545
4546
4547ac_ext=f
4548ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4549ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4551
4552
4553ac_ext=f
4554ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4555ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4557
4558
4559case $ac_cv_f77_mangling in
4560  "lower case, no underscore, no extra underscore")
4561          cat >>confdefs.h <<\_ACEOF
4562#define F77_FUNC(name,NAME) name
4563_ACEOF
4564
4565          cat >>confdefs.h <<\_ACEOF
4566#define F77_FUNC_(name,NAME) name
4567_ACEOF
4568 ;;
4569  "lower case, no underscore, extra underscore")
4570          cat >>confdefs.h <<\_ACEOF
4571#define F77_FUNC(name,NAME) name
4572_ACEOF
4573
4574          cat >>confdefs.h <<\_ACEOF
4575#define F77_FUNC_(name,NAME) name ## _
4576_ACEOF
4577 ;;
4578  "lower case, underscore, no extra underscore")
4579          cat >>confdefs.h <<\_ACEOF
4580#define F77_FUNC(name,NAME) name ## _
4581_ACEOF
4582
4583          cat >>confdefs.h <<\_ACEOF
4584#define F77_FUNC_(name,NAME) name ## _
4585_ACEOF
4586 ;;
4587  "lower case, underscore, extra underscore")
4588          cat >>confdefs.h <<\_ACEOF
4589#define F77_FUNC(name,NAME) name ## _
4590_ACEOF
4591
4592          cat >>confdefs.h <<\_ACEOF
4593#define F77_FUNC_(name,NAME) name ## __
4594_ACEOF
4595 ;;
4596  "upper case, no underscore, no extra underscore")
4597          cat >>confdefs.h <<\_ACEOF
4598#define F77_FUNC(name,NAME) NAME
4599_ACEOF
4600
4601          cat >>confdefs.h <<\_ACEOF
4602#define F77_FUNC_(name,NAME) NAME
4603_ACEOF
4604 ;;
4605  "upper case, no underscore, extra underscore")
4606          cat >>confdefs.h <<\_ACEOF
4607#define F77_FUNC(name,NAME) NAME
4608_ACEOF
4609
4610          cat >>confdefs.h <<\_ACEOF
4611#define F77_FUNC_(name,NAME) NAME ## _
4612_ACEOF
4613 ;;
4614  "upper case, underscore, no extra underscore")
4615          cat >>confdefs.h <<\_ACEOF
4616#define F77_FUNC(name,NAME) NAME ## _
4617_ACEOF
4618
4619          cat >>confdefs.h <<\_ACEOF
4620#define F77_FUNC_(name,NAME) NAME ## _
4621_ACEOF
4622 ;;
4623  "upper case, underscore, extra underscore")
4624          cat >>confdefs.h <<\_ACEOF
4625#define F77_FUNC(name,NAME) NAME ## _
4626_ACEOF
4627
4628          cat >>confdefs.h <<\_ACEOF
4629#define F77_FUNC_(name,NAME) NAME ## __
4630_ACEOF
4631 ;;
4632  *)
4633          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4634echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4635          ;;
4636esac
4637
4638ac_ext=f
4639ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4640ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4642
4643
4644# If FLIBS has been set by the user, we just restore its value here
4645if test x"$save_FLIBS" != x; then
4646  FLIBS="$save_FLIBS"
4647else
4648  # This is to correct a missing exclusion in autoconf 2.59
4649  if test x"$FLIBS" != x; then
4650    my_flibs=
4651    for flag in $FLIBS; do
4652      case $flag in
4653        -lcrt*.o) ;;
4654        -lcygwin) ;;
4655               *) my_flibs="$my_flibs $flag" ;;
4656      esac
4657    done
4658    FLIBS="$my_flibs"
4659  fi
4660
4661  case $build in
4662  # The following is a fix to define FLIBS for ifort on Windows
4663  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4664  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4665  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4666     *-cygwin* | *-mingw*)
4667       case "$F77" in
4668         ifort* | */ifort* | IFORT* | */IFORT*)
4669           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4670#           if "$coin_debug_compile" = true ; then
4671#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4672#           else
4673#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4674#           fi
4675           ;;
4676         compile_f2c*)
4677           FLIBS=`$F77 -FLIBS` ;;
4678       esac;;
4679     *-hp-*)
4680         FLIBS="$FLIBS -lm";;
4681     *-ibm-*)
4682         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4683     *-linux-*)
4684       case "$F77" in
4685         pgf77* | */pgf77* | pgf90* | */pgf90*)
4686# ask linker to go through the archives multiple times
4687# (the Fortran compiler seems to do that automatically...
4688           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4689       esac
4690  esac
4691  ac_cv_f77_libs="$FLIBS"
4692fi
4693
4694ac_ext=c
4695ac_cpp='$CPP $CPPFLAGS'
4696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699
4700
4701
4702
4703# Check if pkg-config is available (to setup addlibs file)
4704
4705
4706# Check whether --enable-pkg-config or --disable-pkg-config was given.
4707if test "${enable_pkg_config+set}" = set; then
4708  enableval="$enable_pkg_config"
4709  use_pkgconfig="$enableval"
4710else
4711  use_pkgconfig=yes
4712fi;
4713
4714if test $use_pkgconfig = yes ; then
4715  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4716    if test -n "$ac_tool_prefix"; then
4717  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4718set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4719echo "$as_me:$LINENO: checking for $ac_word" >&5
4720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4721if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4722  echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724  case $PKG_CONFIG in
4725  [\\/]* | ?:[\\/]*)
4726  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4727  ;;
4728  *)
4729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732  IFS=$as_save_IFS
4733  test -z "$as_dir" && as_dir=.
4734  for ac_exec_ext in '' $ac_executable_extensions; do
4735  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4736    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4737    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738    break 2
4739  fi
4740done
4741done
4742
4743  ;;
4744esac
4745fi
4746PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4747
4748if test -n "$PKG_CONFIG"; then
4749  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4750echo "${ECHO_T}$PKG_CONFIG" >&6
4751else
4752  echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6
4754fi
4755
4756fi
4757if test -z "$ac_cv_path_PKG_CONFIG"; then
4758  ac_pt_PKG_CONFIG=$PKG_CONFIG
4759  # Extract the first word of "pkg-config", so it can be a program name with args.
4760set dummy pkg-config; ac_word=$2
4761echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  case $ac_pt_PKG_CONFIG in
4767  [\\/]* | ?:[\\/]*)
4768  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4769  ;;
4770  *)
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776  for ac_exec_ext in '' $ac_executable_extensions; do
4777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780    break 2
4781  fi
4782done
4783done
4784
4785  ;;
4786esac
4787fi
4788ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4789
4790if test -n "$ac_pt_PKG_CONFIG"; then
4791  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4792echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4793else
4794  echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796fi
4797
4798  PKG_CONFIG=$ac_pt_PKG_CONFIG
4799else
4800  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4801fi
4802
4803  fi
4804  if test -n "$PKG_CONFIG"; then
4805    _pkg_min_version=0.9.0
4806    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4807echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4808    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4809      echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811    else
4812      echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814      PKG_CONFIG=""
4815    fi
4816  fi
4817
4818  # check if pkg-config supports the short-errors flag
4819  if test -n "$PKG_CONFIG" && \
4820    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4821    pkg_short_errors=" --short-errors "
4822  else
4823    pkg_short_errors=""
4824  fi
4825fi
4826
4827
4828
4829if test -n "$PKG_CONFIG"; then
4830  COIN_HAS_PKGCONFIG_TRUE=
4831  COIN_HAS_PKGCONFIG_FALSE='#'
4832else
4833  COIN_HAS_PKGCONFIG_TRUE='#'
4834  COIN_HAS_PKGCONFIG_FALSE=
4835fi
4836
4837
4838
4839# assemble search path for pkg-config, if we are in a project setup
4840if test x$coin_projectdir = xyes ; then
4841  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4842
4843  # let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4844  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4845  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4846  if test -d "${prefix}"; then
4847    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4848  fi
4849
4850
4851# Check whether --with-coin-instdir or --without-coin-instdir was given.
4852if test "${with_coin_instdir+set}" = set; then
4853  withval="$with_coin_instdir"
4854  if test -d "$withval"; then : ; else
4855       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4856echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4857   { (exit 1); exit 1; }; }
4858     fi
4859     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4860
4861fi;
4862
4863  # in a classic setup, we want to find uninstalled projects
4864  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4865  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4866  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4867  if test -e ../coin_subdirs.txt ; then
4868    for i in `cat ../coin_subdirs.txt` ; do
4869      COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4870    done
4871  fi
4872
4873  if test -e ../../coin_subdirs.txt ; then
4874    for i in `cat ../../coin_subdirs.txt` ; do
4875      COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4876    done
4877  fi
4878
4879
4880fi
4881
4882
4883
4884# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
4885coin_need_flibs=yes
4886
4887# Take care that optimization is disbled for DLAMCH.F
4888
4889if test "x$DLAMCH_FFLAGS" = x ; then
4890  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
4891  case $F77 in
4892    ifort* | */ifort* | IFORT* | */IFORT* )
4893      case $build in
4894        *-cygwin* | *-mingw*)
4895          DLAMCH_FFLAGS="$FFLAGS -Od"
4896          ;;
4897        *)
4898          DLAMCH_FFLAGS="$FFLAGS -O0"
4899          ;;
4900      esac
4901      ;;
4902    compile_f2c*)
4903      case "$CC" in
4904        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4905          DLAMCH_FFLAGS="$FFLAGS -Od"
4906        ;;
4907        *)
4908          DLAMCH_FFLAGS="$FFLAGS -O0"
4909        ;;
4910      esac
4911      ;;
4912    *)
4913      DLAMCH_FFLAGS="$FFLAGS -O0"
4914      ;;
4915  esac
4916fi
4917
4918
4919# Initialize autotools
4920{
4921
4922
4923
4924# START
4925
4926# Test if force_shared has been set
4927if test "x" = xforce_shared; then
4928  if test x$enable_shared = xno; then
4929    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4930echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4931   { (exit 1); exit 1; }; }
4932  fi
4933  enable_shared=yes;
4934else
4935  # On Cygwin and AIX, building DLLs doesn't work
4936  case $build in
4937    *-cygwin*)
4938      coin_disable_shared=yes
4939      platform=Cygwin
4940    ;;
4941    *-aix*)
4942      coin_disable_shared=yes
4943      platform=AIX
4944    ;;
4945    *-mingw*)
4946      coin_disable_shared=yes
4947      platform="Msys"
4948#      case "$CXX" in
4949#        cl*)
4950#          coin_disable_shared=yes
4951#          platform="Msys with cl"
4952#      ;;
4953#      esac
4954    ;;
4955  esac
4956fi
4957if test x"$coin_disable_shared" = xyes; then
4958  if test x"$enable_shared" = xyes; then
4959    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4960echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4961  fi
4962  enable_shared=no
4963fi
4964# By default, we only want the shared objects to be compiled
4965# Check whether --enable-static or --disable-static was given.
4966if test "${enable_static+set}" = set; then
4967  enableval="$enable_static"
4968  p=${PACKAGE-default}
4969    case $enableval in
4970    yes) enable_static=yes ;;
4971    no) enable_static=no ;;
4972    *)
4973     enable_static=no
4974      # Look at the argument we got.  We use all the common list separators.
4975      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4976      for pkg in $enableval; do
4977        IFS="$lt_save_ifs"
4978        if test "X$pkg" = "X$p"; then
4979          enable_static=yes
4980        fi
4981      done
4982      IFS="$lt_save_ifs"
4983      ;;
4984    esac
4985else
4986  enable_static=no
4987fi;
4988
4989
4990
4991
4992# Initialize automake
4993echo "$as_me:$LINENO: checking for egrep" >&5
4994echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4995if test "${ac_cv_prog_egrep+set}" = set; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4999    then ac_cv_prog_egrep='grep -E'
5000    else ac_cv_prog_egrep='egrep'
5001    fi
5002fi
5003echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5004echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5005 EGREP=$ac_cv_prog_egrep
5006
5007
5008am__api_version="1.9"
5009# Find a good install program.  We prefer a C program (faster),
5010# so one script is as good as another.  But avoid the broken or
5011# incompatible versions:
5012# SysV /etc/install, /usr/sbin/install
5013# SunOS /usr/etc/install
5014# IRIX /sbin/install
5015# AIX /bin/install
5016# AmigaOS /C/install, which installs bootblocks on floppy discs
5017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5018# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5020# OS/2's system install, which has a completely different semantic
5021# ./install, which can be erroneously created by make from ./install.sh.
5022echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5023echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5024if test -z "$INSTALL"; then
5025if test "${ac_cv_path_install+set}" = set; then
5026  echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033  # Account for people who put trailing slashes in PATH elements.
5034case $as_dir/ in
5035  ./ | .// | /cC/* | \
5036  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5037  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5038  /usr/ucb/* ) ;;
5039  *)
5040    # OSF1 and SCO ODT 3.0 have their own names for install.
5041    # Don't use installbsd from OSF since it installs stuff as root
5042    # by default.
5043    for ac_prog in ginstall scoinst install; do
5044      for ac_exec_ext in '' $ac_executable_extensions; do
5045        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5046          if test $ac_prog = install &&
5047            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5048            # AIX install.  It has an incompatible calling convention.
5049            :
5050          elif test $ac_prog = install &&
5051            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052            # program-specific install script used by HP pwplus--don't use.
5053            :
5054          else
5055            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5056            break 3
5057          fi
5058        fi
5059      done
5060    done
5061    ;;
5062esac
5063done
5064
5065
5066fi
5067  if test "${ac_cv_path_install+set}" = set; then
5068    INSTALL=$ac_cv_path_install
5069  else
5070    # As a last resort, use the slow shell script.  We don't cache a
5071    # path for INSTALL within a source directory, because that will
5072    # break other packages using the cache if that directory is
5073    # removed, or if the path is relative.
5074    INSTALL=$ac_install_sh
5075  fi
5076fi
5077echo "$as_me:$LINENO: result: $INSTALL" >&5
5078echo "${ECHO_T}$INSTALL" >&6
5079
5080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5081# It thinks the first close brace ends the variable substitution.
5082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5083
5084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5085
5086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5087
5088echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5089echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5090# Just in case
5091sleep 1
5092echo timestamp > conftest.file
5093# Do `set' in a subshell so we don't clobber the current shell's
5094# arguments.  Must try -L first in case configure is actually a
5095# symlink; some systems play weird games with the mod time of symlinks
5096# (eg FreeBSD returns the mod time of the symlink's containing
5097# directory).
5098if (
5099   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5100   if test "$*" = "X"; then
5101      # -L didn't work.
5102      set X `ls -t $srcdir/configure conftest.file`
5103   fi
5104   rm -f conftest.file
5105   if test "$*" != "X $srcdir/configure conftest.file" \
5106      && test "$*" != "X conftest.file $srcdir/configure"; then
5107
5108      # If neither matched, then we have a broken ls.  This can happen
5109      # if, for instance, CONFIG_SHELL is bash and it inherits a
5110      # broken ls alias from the environment.  This has actually
5111      # happened.  Such a system could not be considered "sane".
5112      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5113alias in your environment" >&5
5114echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5115alias in your environment" >&2;}
5116   { (exit 1); exit 1; }; }
5117   fi
5118
5119   test "$2" = conftest.file
5120   )
5121then
5122   # Ok.
5123   :
5124else
5125   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5126Check your system clock" >&5
5127echo "$as_me: error: newly created file is older than distributed files!
5128Check your system clock" >&2;}
5129   { (exit 1); exit 1; }; }
5130fi
5131echo "$as_me:$LINENO: result: yes" >&5
5132echo "${ECHO_T}yes" >&6
5133test "$program_prefix" != NONE &&
5134  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5135# Use a double $ so make ignores it.
5136test "$program_suffix" != NONE &&
5137  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5138# Double any \ or $.  echo might interpret backslashes.
5139# By default was `s,x,x', remove it if useless.
5140cat <<\_ACEOF >conftest.sed
5141s/[\\$]/&&/g;s/;s,x,x,$//
5142_ACEOF
5143program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5144rm conftest.sed
5145
5146# expand $ac_aux_dir to an absolute path
5147am_aux_dir=`cd $ac_aux_dir && pwd`
5148
5149test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5150# Use eval to expand $SHELL
5151if eval "$MISSING --run true"; then
5152  am_missing_run="$MISSING --run "
5153else
5154  am_missing_run=
5155  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5156echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5157fi
5158
5159if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5160  # We used to keeping the `.' as first argument, in order to
5161  # allow $(mkdir_p) to be used without argument.  As in
5162  #   $(mkdir_p) $(somedir)
5163  # where $(somedir) is conditionally defined.  However this is wrong
5164  # for two reasons:
5165  #  1. if the package is installed by a user who cannot write `.'
5166  #     make install will fail,
5167  #  2. the above comment should most certainly read
5168  #     $(mkdir_p) $(DESTDIR)$(somedir)
5169  #     so it does not work when $(somedir) is undefined and
5170  #     $(DESTDIR) is not.
5171  #  To support the latter case, we have to write
5172  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5173  #  so the `.' trick is pointless.
5174  mkdir_p='mkdir -p --'
5175else
5176  # On NextStep and OpenStep, the `mkdir' command does not
5177  # recognize any option.  It will interpret all options as
5178  # directories to create, and then abort because `.' already
5179  # exists.
5180  for d in ./-p ./--version;
5181  do
5182    test -d $d && rmdir $d
5183  done
5184  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5185  if test -f "$ac_aux_dir/mkinstalldirs"; then
5186    mkdir_p='$(mkinstalldirs)'
5187  else
5188    mkdir_p='$(install_sh) -d'
5189  fi
5190fi
5191
5192for ac_prog in gawk mawk nawk awk
5193do
5194  # Extract the first word of "$ac_prog", so it can be a program name with args.
5195set dummy $ac_prog; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_prog_AWK+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201  if test -n "$AWK"; then
5202  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5203else
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207  IFS=$as_save_IFS
5208  test -z "$as_dir" && as_dir=.
5209  for ac_exec_ext in '' $ac_executable_extensions; do
5210  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211    ac_cv_prog_AWK="$ac_prog"
5212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213    break 2
5214  fi
5215done
5216done
5217
5218fi
5219fi
5220AWK=$ac_cv_prog_AWK
5221if test -n "$AWK"; then
5222  echo "$as_me:$LINENO: result: $AWK" >&5
5223echo "${ECHO_T}$AWK" >&6
5224else
5225  echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228
5229  test -n "$AWK" && break
5230done
5231
5232echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5233echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5234set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5235if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  cat >conftest.make <<\_ACEOF
5239all:
5240        @echo 'ac_maketemp="$(MAKE)"'
5241_ACEOF
5242# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5243eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5244if test -n "$ac_maketemp"; then
5245  eval ac_cv_prog_make_${ac_make}_set=yes
5246else
5247  eval ac_cv_prog_make_${ac_make}_set=no
5248fi
5249rm -f conftest.make
5250fi
5251if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5252  echo "$as_me:$LINENO: result: yes" >&5
5253echo "${ECHO_T}yes" >&6
5254  SET_MAKE=
5255else
5256  echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258  SET_MAKE="MAKE=${MAKE-make}"
5259fi
5260
5261rm -rf .tst 2>/dev/null
5262mkdir .tst 2>/dev/null
5263if test -d .tst; then
5264  am__leading_dot=.
5265else
5266  am__leading_dot=_
5267fi
5268rmdir .tst 2>/dev/null
5269
5270DEPDIR="${am__leading_dot}deps"
5271
5272          ac_config_commands="$ac_config_commands depfiles"
5273
5274
5275am_make=${MAKE-make}
5276cat > confinc << 'END'
5277am__doit:
5278        @echo done
5279.PHONY: am__doit
5280END
5281# If we don't find an include directive, just comment out the code.
5282echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5283echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5284am__include="#"
5285am__quote=
5286_am_result=none
5287# First try GNU make style include.
5288echo "include confinc" > confmf
5289# We grep out `Entering directory' and `Leaving directory'
5290# messages which can occur if `w' ends up in MAKEFLAGS.
5291# In particular we don't look at `^make:' because GNU make might
5292# be invoked under some other name (usually "gmake"), in which
5293# case it prints its new name instead of `make'.
5294if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5295   am__include=include
5296   am__quote=
5297   _am_result=GNU
5298fi
5299# Now try BSD make style include.
5300if test "$am__include" = "#"; then
5301   echo '.include "confinc"' > confmf
5302   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5303      am__include=.include
5304      am__quote="\""
5305      _am_result=BSD
5306   fi
5307fi
5308
5309
5310echo "$as_me:$LINENO: result: $_am_result" >&5
5311echo "${ECHO_T}$_am_result" >&6
5312rm -f confinc confmf
5313
5314# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5315if test "${enable_dependency_tracking+set}" = set; then
5316  enableval="$enable_dependency_tracking"
5317
5318fi;
5319if test "x$enable_dependency_tracking" != xno; then
5320  am_depcomp="$ac_aux_dir/depcomp"
5321  AMDEPBACKSLASH='\'
5322fi
5323
5324
5325if test "x$enable_dependency_tracking" != xno; then
5326  AMDEP_TRUE=
5327  AMDEP_FALSE='#'
5328else
5329  AMDEP_TRUE='#'
5330  AMDEP_FALSE=
5331fi
5332
5333
5334
5335
5336
5337# AC_MSG_NOTICE([Beginning automake initialisation.])
5338# Stuff for automake
5339# test to see if srcdir already configured
5340if test "`cd $srcdir && pwd`" != "`pwd`" &&
5341   test -f $srcdir/config.status; then
5342  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5343echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5344   { (exit 1); exit 1; }; }
5345fi
5346
5347# test whether we have cygpath
5348if test -z "$CYGPATH_W"; then
5349  if (cygpath --version) >/dev/null 2>/dev/null; then
5350    CYGPATH_W='cygpath -w'
5351  else
5352    CYGPATH_W=echo
5353  fi
5354fi
5355
5356
5357# Define the identity of the package.
5358 PACKAGE='thirdpartylapack'
5359 VERSION='0.0'
5360
5361
5362cat >>confdefs.h <<_ACEOF
5363#define PACKAGE "$PACKAGE"
5364_ACEOF
5365
5366
5367cat >>confdefs.h <<_ACEOF
5368#define VERSION "$VERSION"
5369_ACEOF
5370
5371# Some tools Automake needs.
5372
5373ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5374
5375
5376AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5377
5378
5379AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5380
5381
5382AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5383
5384
5385MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5386
5387install_sh=${install_sh-"$am_aux_dir/install-sh"}
5388
5389# Installed binaries are usually stripped using `strip' when the user
5390# run `make install-strip'.  However `strip' might not be the right
5391# tool to use in cross-compilation environments, therefore Automake
5392# will honor the `STRIP' environment variable to overrule this program.
5393if test "$cross_compiling" != no; then
5394  if test -n "$ac_tool_prefix"; then
5395  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5396set dummy ${ac_tool_prefix}strip; ac_word=$2
5397echo "$as_me:$LINENO: checking for $ac_word" >&5
5398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399if test "${ac_cv_prog_STRIP+set}" = set; then
5400  echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402  if test -n "$STRIP"; then
5403  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408  IFS=$as_save_IFS
5409  test -z "$as_dir" && as_dir=.
5410  for ac_exec_ext in '' $ac_executable_extensions; do
5411  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414    break 2
5415  fi
5416done
5417done
5418
5419fi
5420fi
5421STRIP=$ac_cv_prog_STRIP
5422if test -n "$STRIP"; then
5423  echo "$as_me:$LINENO: result: $STRIP" >&5
5424echo "${ECHO_T}$STRIP" >&6
5425else
5426  echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6
5428fi
5429
5430fi
5431if test -z "$ac_cv_prog_STRIP"; then
5432  ac_ct_STRIP=$STRIP
5433  # Extract the first word of "strip", so it can be a program name with args.
5434set dummy strip; ac_word=$2
5435echo "$as_me:$LINENO: checking for $ac_word" >&5
5436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5437if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  if test -n "$ac_ct_STRIP"; then
5441  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446  IFS=$as_save_IFS
5447  test -z "$as_dir" && as_dir=.
5448  for ac_exec_ext in '' $ac_executable_extensions; do
5449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450    ac_cv_prog_ac_ct_STRIP="strip"
5451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452    break 2
5453  fi
5454done
5455done
5456
5457  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5458fi
5459fi
5460ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5461if test -n "$ac_ct_STRIP"; then
5462  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5463echo "${ECHO_T}$ac_ct_STRIP" >&6
5464else
5465  echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467fi
5468
5469  STRIP=$ac_ct_STRIP
5470else
5471  STRIP="$ac_cv_prog_STRIP"
5472fi
5473
5474fi
5475INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5476
5477# We need awk for the "check" target.  The system "awk" is bad on
5478# some platforms.
5479# Always define AMTAR for backward compatibility.
5480
5481AMTAR=${AMTAR-"${am_missing_run}tar"}
5482
5483am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5484
5485
5486
5487
5488depcc="$CC"   am_compiler_list=
5489
5490echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5491echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5492if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5493  echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5496  # We make a subdir and do the tests there.  Otherwise we can end up
5497  # making bogus files that we don't know about and never remove.  For
5498  # instance it was reported that on HP-UX the gcc test will end up
5499  # making a dummy file named `D' -- because `-MD' means `put the output
5500  # in D'.
5501  mkdir conftest.dir
5502  # Copy depcomp to subdir because otherwise we won't find it if we're
5503  # using a relative directory.
5504  cp "$am_depcomp" conftest.dir
5505  cd conftest.dir
5506  # We will build objects and dependencies in a subdirectory because
5507  # it helps to detect inapplicable dependency modes.  For instance
5508  # both Tru64's cc and ICC support -MD to output dependencies as a
5509  # side effect of compilation, but ICC will put the dependencies in
5510  # the current directory while Tru64 will put them in the object
5511  # directory.
5512  mkdir sub
5513
5514  am_cv_CC_dependencies_compiler_type=none
5515  if test "$am_compiler_list" = ""; then
5516     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5517  fi
5518  for depmode in $am_compiler_list; do
5519    # Setup a source with many dependencies, because some compilers
5520    # like to wrap large dependency lists on column 80 (with \), and
5521    # we should not choose a depcomp mode which is confused by this.
5522    #
5523    # We need to recreate these files for each test, as the compiler may
5524    # overwrite some of them when testing with obscure command lines.
5525    # This happens at least with the AIX C compiler.
5526    : > sub/conftest.c
5527    for i in 1 2 3 4 5 6; do
5528      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5529      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5530      # Solaris 8's {/usr,}/bin/sh.
5531      touch sub/conftst$i.h
5532    done
5533    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5534
5535    case $depmode in
5536    nosideeffect)
5537      # after this tag, mechanisms are not by side-effect, so they'll
5538      # only be used when explicitly requested
5539      if test "x$enable_dependency_tracking" = xyes; then
5540        continue
5541      else
5542        break
5543      fi
5544      ;;
5545    none) break ;;
5546    esac
5547    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5548    # mode.  It turns out that the SunPro C++ compiler does not properly
5549    # handle `-M -o', and we need to detect this.
5550    if depmode=$depmode \
5551       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5552       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5553       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5554         >/dev/null 2>conftest.err &&
5555       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5556       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5557       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5558      # icc doesn't choke on unknown options, it will just issue warnings
5559      # or remarks (even with -Werror).  So we grep stderr for any message
5560      # that says an option was ignored or not supported.
5561      # When given -MP, icc 7.0 and 7.1 complain thusly:
5562      #   icc: Command line warning: ignoring option '-M'; no argument required
5563      # The diagnosis changed in icc 8.0:
5564      #   icc: Command line remark: option '-MP' not supported
5565      if (grep 'ignoring option' conftest.err ||
5566          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5567        am_cv_CC_dependencies_compiler_type=$depmode
5568        break
5569      fi
5570    fi
5571  done
5572
5573  cd ..
5574  rm -rf conftest.dir
5575else
5576  am_cv_CC_dependencies_compiler_type=none
5577fi
5578
5579fi
5580echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5581echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5582CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5583
5584
5585
5586if
5587  test "x$enable_dependency_tracking" != xno \
5588  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5589  am__fastdepCC_TRUE=
5590  am__fastdepCC_FALSE='#'
5591else
5592  am__fastdepCC_TRUE='#'
5593  am__fastdepCC_FALSE=
5594fi
5595
5596
5597
5598echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5599echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5600    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5601if test "${enable_maintainer_mode+set}" = set; then
5602  enableval="$enable_maintainer_mode"
5603  USE_MAINTAINER_MODE=$enableval
5604else
5605  USE_MAINTAINER_MODE=no
5606fi;
5607  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5608echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5609
5610
5611if test $USE_MAINTAINER_MODE = yes; then
5612  MAINTAINER_MODE_TRUE=
5613  MAINTAINER_MODE_FALSE='#'
5614else
5615  MAINTAINER_MODE_TRUE='#'
5616  MAINTAINER_MODE_FALSE=
5617fi
5618
5619  MAINT=$MAINTAINER_MODE_TRUE
5620
5621
5622
5623coin_have_externals=no
5624if test "$enable_maintainer_mode" = yes; then
5625
5626  # If maintainer mode is chosen, we make sure that the correct versions
5627  # of the tools are used, and that we know where libtool.m4 is (to
5628  # recreate acinclude.m4)
5629
5630
5631  LIBTOOLM4=
5632  # Normally, $HOME
5633  AUTOTOOLS_DFLT=$HOME
5634
5635  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5636echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5637if test "${ac_cv_use_correct_autotools+set}" = set; then
5638  echo $ECHO_N "(cached) $ECHO_C" >&6
5639else
5640  ac_cv_use_correct_autotools=check
5641fi
5642echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5643echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5644
5645  if test $ac_cv_use_correct_autotools = check; then
5646    ac_cv_use_correct_autotools=yes
5647    # Check if we have autoconf
5648    # Extract the first word of "autoconf", so it can be a program name with args.
5649set dummy autoconf; ac_word=$2
5650echo "$as_me:$LINENO: checking for $ac_word" >&5
5651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652if test "${ac_cv_prog_have_autoconf+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  if test -n "$have_autoconf"; then
5656  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5657else
5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659for as_dir in $PATH
5660do
5661  IFS=$as_save_IFS
5662  test -z "$as_dir" && as_dir=.
5663  for ac_exec_ext in '' $ac_executable_extensions; do
5664  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5665    ac_cv_prog_have_autoconf="yes"
5666    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667    break 2
5668  fi
5669done
5670done
5671
5672  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5673fi
5674fi
5675have_autoconf=$ac_cv_prog_have_autoconf
5676if test -n "$have_autoconf"; then
5677  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5678echo "${ECHO_T}$have_autoconf" >&6
5679else
5680  echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682fi
5683
5684    if test $have_autoconf = no; then
5685      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5686echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5687   { (exit 1); exit 1; }; }
5688    fi
5689
5690    # Check whether autoconf is the correct version
5691    correct_version='2.59'
5692    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5693    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5694echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5695    autoconf --version > confauto.out 2>&1
5696    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5697      echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6
5699    else
5700      rm -f confauto.out
5701      echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6
5703      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5704echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5705   { (exit 1); exit 1; }; }
5706    fi
5707    rm -f confauto.out
5708
5709    # Check if the executable autoconf is picked up from the correct location
5710    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5711echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5712    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5713    autoconf_dir=`cd $autoconf_dir; pwd`
5714    if test x$AUTOTOOLS_DIR = x; then
5715      want_dir=$AUTOTOOLS_DFLT/bin
5716    else
5717      want_dir=$AUTOTOOLS_DIR/bin
5718    fi
5719    if test $autoconf_dir = `cd $want_dir; pwd`; then
5720      echo "$as_me:$LINENO: result: yes" >&5
5721echo "${ECHO_T}yes" >&6
5722    else
5723      rm -f confauto.out
5724      echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5727echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5728   { (exit 1); exit 1; }; }
5729    fi
5730
5731    # Check if we have automake
5732    # Extract the first word of "automake", so it can be a program name with args.
5733set dummy automake; ac_word=$2
5734echo "$as_me:$LINENO: checking for $ac_word" >&5
5735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736if test "${ac_cv_prog_have_automake+set}" = set; then
5737  echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739  if test -n "$have_automake"; then
5740  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745  IFS=$as_save_IFS
5746  test -z "$as_dir" && as_dir=.
5747  for ac_exec_ext in '' $ac_executable_extensions; do
5748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749    ac_cv_prog_have_automake="yes"
5750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751    break 2
5752  fi
5753done
5754done
5755
5756  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5757fi
5758fi
5759have_automake=$ac_cv_prog_have_automake
5760if test -n "$have_automake"; then
5761  echo "$as_me:$LINENO: result: $have_automake" >&5
5762echo "${ECHO_T}$have_automake" >&6
5763else
5764  echo "$as_me:$LINENO: result: no" >&5
5765echo "${ECHO_T}no" >&6
5766fi
5767
5768    if test $have_automake = no; then
5769      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5770echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5771   { (exit 1); exit 1; }; }
5772    fi
5773
5774    # Check whether automake is the correct version
5775    correct_version='1.9.6'
5776    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5777    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5778echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5779    automake --version > confauto.out 2>&1
5780    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5781      echo "$as_me:$LINENO: result: yes" >&5
5782echo "${ECHO_T}yes" >&6
5783    else
5784      rm -f confauto.out
5785      echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5788echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5789   { (exit 1); exit 1; }; }
5790    fi
5791    rm -f confauto.out
5792
5793    # Check if the executable automake is picked up from the correct location
5794    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5795echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5796    automake_dir=`which automake | sed -e 's=/automake=='`
5797    automake_dir=`cd $automake_dir; pwd`
5798    if test x$AUTOTOOLS_DIR = x; then
5799      want_dir=$AUTOTOOLS_DFLT/bin
5800    else
5801      want_dir=$AUTOTOOLS_DIR/bin
5802    fi
5803    if test $automake_dir = `cd $want_dir; pwd`; then
5804      echo "$as_me:$LINENO: result: yes" >&5
5805echo "${ECHO_T}yes" >&6
5806    else
5807      rm -f confauto.out
5808      echo "$as_me:$LINENO: result: no" >&5
5809echo "${ECHO_T}no" >&6
5810      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5811echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5812   { (exit 1); exit 1; }; }
5813    fi
5814
5815    # Check if this is the correct version of libtool (with escaped dots)
5816    if test x$AUTOTOOLS_DIR = x; then
5817      want_dir=$AUTOTOOLS_DFLT/share
5818    else
5819      want_dir=$AUTOTOOLS_DIR/share
5820    fi
5821    correct_version='1.5.22'
5822    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5823    if test -r $want_dir/libtool/ltmain.sh; then
5824  have_ltmain=yes
5825  :
5826else
5827  have_ltmain=no
5828  :
5829fi
5830
5831    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5832echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5833    if test $have_ltmain = yes; then
5834    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5835        echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837      else
5838        echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5841echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5842   { (exit 1); exit 1; }; }
5843      fi
5844    else
5845      echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5848echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5849   { (exit 1); exit 1; }; }
5850    fi
5851  fi
5852
5853  # Check if we can find the libtool file
5854  if test x$AUTOTOOLS_DIR = x; then
5855    want_dir=$AUTOTOOLS_DFLT/share
5856  else
5857    want_dir=$AUTOTOOLS_DIR/share
5858  fi
5859  if test -r $want_dir/aclocal/libtool.m4; then
5860  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5861  :
5862else
5863  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5864echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5865   { (exit 1); exit 1; }; }
5866  :
5867fi
5868
5869
5870  # Check if we have an Externals file
5871  if test -r $srcdir/Externals; then
5872    coin_have_externals=yes
5873  fi
5874  # Check if subversion is installed and understands https
5875  # Extract the first word of "svn", so it can be a program name with args.
5876set dummy svn; ac_word=$2
5877echo "$as_me:$LINENO: checking for $ac_word" >&5
5878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879if test "${ac_cv_prog_have_svn+set}" = set; then
5880  echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882  if test -n "$have_svn"; then
5883  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5884else
5885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886for as_dir in $PATH
5887do
5888  IFS=$as_save_IFS
5889  test -z "$as_dir" && as_dir=.
5890  for ac_exec_ext in '' $ac_executable_extensions; do
5891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892    ac_cv_prog_have_svn="yes"
5893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894    break 2
5895  fi
5896done
5897done
5898
5899  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5900fi
5901fi
5902have_svn=$ac_cv_prog_have_svn
5903if test -n "$have_svn"; then
5904  echo "$as_me:$LINENO: result: $have_svn" >&5
5905echo "${ECHO_T}$have_svn" >&6
5906else
5907  echo "$as_me:$LINENO: result: no" >&5
5908echo "${ECHO_T}no" >&6
5909fi
5910
5911  if test x$have_svn = xyes; then
5912    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5913echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5914if test "${ac_cv_svn_understands_https+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  svn --version > confauto.out 2>&1
5918                    if $EGREP https confauto.out >/dev/null 2>&1; then
5919                      ac_cv_svn_understands_https=yes
5920                    else
5921                      ac_cv_svn_understands_https=no
5922                      have_svn=no
5923                      ac_cv_prog_have_svn=no
5924                    fi
5925                    rm -f confauto.out
5926fi
5927echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5928echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5929  fi
5930
5931  # Find the location of the BuildTools directory
5932  BUILDTOOLSDIR=
5933  if test -r $srcdir/BuildTools/coin.m4; then
5934    BUILDTOOLSDIR=$srcdir/BuildTools
5935  else
5936    if test -r $srcdir/../BuildTools/coin.m4; then
5937      BUILDTOOLSDIR=$srcdir/../BuildTools
5938    else
5939      if test -r $srcdir/../../BuildTools/coin.m4; then
5940        BUILDTOOLSDIR=$srcdir/../../BuildTools
5941      else
5942        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5943echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5944   { (exit 1); exit 1; }; }
5945      fi
5946    fi
5947  fi
5948
5949
5950  # The following variable is set to the name of the directory where
5951  # the autotool scripts are located
5952
5953  AUX_DIR=$ac_aux_dir
5954fi
5955
5956# helpful variable for the base directory of this package
5957abs_source_dir=`cd $srcdir; pwd`
5958
5959
5960# Stuff for example Makefiles
5961if test x$prefix = xNONE; then
5962  full_prefix=$ac_default_prefix
5963else
5964  full_prefix=$prefix
5965fi
5966full_prefix=`cd $full_prefix ; pwd`
5967
5968abs_lib_dir=$full_prefix/lib
5969
5970abs_include_dir=$full_prefix/include
5971
5972abs_bin_dir=$full_prefix/bin
5973
5974
5975
5976if test $coin_have_externals = yes && test x$have_svn = xyes; then
5977  HAVE_EXTERNALS_TRUE=
5978  HAVE_EXTERNALS_FALSE='#'
5979else
5980  HAVE_EXTERNALS_TRUE='#'
5981  HAVE_EXTERNALS_FALSE=
5982fi
5983
5984
5985# AC_MSG_NOTICE([End automake initialisation.])
5986
5987
5988
5989LIBTOOL=
5990if test -r ../libtool; then
5991  coin_config_dir=..
5992  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5993fi
5994if test "x$LIBTOOL" = x; then
5995  if test -r ../../libtool; then
5996    coin_config_dir=../..
5997    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5998  fi
5999fi
6000
6001if test "x$LIBTOOL" = x; then
6002# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6003  # Stuff for libtool
6004  # Check whether --enable-shared or --disable-shared was given.
6005if test "${enable_shared+set}" = set; then
6006  enableval="$enable_shared"
6007  p=${PACKAGE-default}
6008    case $enableval in
6009    yes) enable_shared=yes ;;
6010    no) enable_shared=no ;;
6011    *)
6012      enable_shared=no
6013      # Look at the argument we got.  We use all the common list separators.
6014      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6015      for pkg in $enableval; do
6016        IFS="$lt_save_ifs"
6017        if test "X$pkg" = "X$p"; then
6018          enable_shared=yes
6019        fi
6020      done
6021      IFS="$lt_save_ifs"
6022      ;;
6023    esac
6024else
6025  enable_shared=yes
6026fi;
6027
6028# Check whether --enable-fast-install or --disable-fast-install was given.
6029if test "${enable_fast_install+set}" = set; then
6030  enableval="$enable_fast_install"
6031  p=${PACKAGE-default}
6032    case $enableval in
6033    yes) enable_fast_install=yes ;;
6034    no) enable_fast_install=no ;;
6035    *)
6036      enable_fast_install=no
6037      # Look at the argument we got.  We use all the common list separators.
6038      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6039      for pkg in $enableval; do
6040        IFS="$lt_save_ifs"
6041        if test "X$pkg" = "X$p"; then
6042          enable_fast_install=yes
6043        fi
6044      done
6045      IFS="$lt_save_ifs"
6046      ;;
6047    esac
6048else
6049  enable_fast_install=yes
6050fi;
6051
6052echo "$as_me:$LINENO: checking host system type" >&5
6053echo $ECHO_N "checking host system type... $ECHO_C" >&6
6054if test "${ac_cv_host+set}" = set; then
6055  echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057  ac_cv_host_alias=$host_alias
6058test -z "$ac_cv_host_alias" &&
6059  ac_cv_host_alias=$ac_cv_build_alias
6060ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6061  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6062echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6063   { (exit 1); exit 1; }; }
6064
6065fi
6066echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6067echo "${ECHO_T}$ac_cv_host" >&6
6068host=$ac_cv_host
6069host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6070host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6071host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6072
6073
6074echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6075echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6076if test "${lt_cv_path_SED+set}" = set; then
6077  echo $ECHO_N "(cached) $ECHO_C" >&6
6078else
6079  # Loop through the user's path and test for sed and gsed.
6080# Then use that list of sed's as ones to test for truncation.
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084  IFS=$as_save_IFS
6085  test -z "$as_dir" && as_dir=.
6086  for lt_ac_prog in sed gsed; do
6087    for ac_exec_ext in '' $ac_executable_extensions; do
6088      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6089        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6090      fi
6091    done
6092  done
6093done
6094lt_ac_max=0
6095lt_ac_count=0
6096# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6097# along with /bin/sed that truncates output.
6098for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6099  test ! -f $lt_ac_sed && continue
6100  cat /dev/null > conftest.in
6101  lt_ac_count=0
6102  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6103  # Check for GNU sed and select it if it is found.
6104  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6105    lt_cv_path_SED=$lt_ac_sed
6106    break
6107  fi
6108  while true; do
6109    cat conftest.in conftest.in >conftest.tmp
6110    mv conftest.tmp conftest.in
6111    cp conftest.in conftest.nl
6112    echo >>conftest.nl
6113    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6114    cmp -s conftest.out conftest.nl || break
6115    # 10000 chars as input seems more than enough
6116    test $lt_ac_count -gt 10 && break
6117    lt_ac_count=`expr $lt_ac_count + 1`
6118    if test $lt_ac_count -gt $lt_ac_max; then
6119      lt_ac_max=$lt_ac_count
6120      lt_cv_path_SED=$lt_ac_sed
6121    fi
6122  done
6123done
6124
6125fi
6126
6127SED=$lt_cv_path_SED
6128echo "$as_me:$LINENO: result: $SED" >&5
6129echo "${ECHO_T}$SED" >&6
6130
6131
6132# Check whether --with-gnu-ld or --without-gnu-ld was given.
6133if test "${with_gnu_ld+set}" = set; then
6134  withval="$with_gnu_ld"
6135  test "$withval" = no || with_gnu_ld=yes
6136else
6137  with_gnu_ld=no
6138fi;
6139ac_prog=ld
6140if test "$GCC" = yes; then
6141  # Check if gcc -print-prog-name=ld gives a path.
6142  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6143echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6144  case $host in
6145  *-*-mingw*)
6146    # gcc leaves a trailing carriage return which upsets mingw
6147    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6148  *)
6149    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6150  esac
6151  case $ac_prog in
6152    # Accept absolute paths.
6153    [\\/]* | ?:[\\/]*)
6154      re_direlt='/[^/][^/]*/\.\./'
6155      # Canonicalize the pathname of ld
6156      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6157      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6158        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6159      done
6160      test -z "$LD" && LD="$ac_prog"
6161      ;;
6162  "")
6163    # If it fails, then pretend we aren't using GCC.
6164    ac_prog=ld
6165    ;;
6166  *)
6167    # If it is relative, then search for the first ld in PATH.
6168    with_gnu_ld=unknown
6169    ;;
6170  esac
6171elif test "$with_gnu_ld" = yes; then
6172  echo "$as_me:$LINENO: checking for GNU ld" >&5
6173echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6174else
6175  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6176echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6177fi
6178if test "${lt_cv_path_LD+set}" = set; then
6179  echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181  if test -z "$LD"; then
6182  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6183  for ac_dir in $PATH; do
6184    IFS="$lt_save_ifs"
6185    test -z "$ac_dir" && ac_dir=.
6186    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6187      lt_cv_path_LD="$ac_dir/$ac_prog"
6188      # Check to see if the program is GNU ld.  I'd rather use --version,
6189      # but apparently some variants of GNU ld only accept -v.
6190      # Break only if it was the GNU/non-GNU ld that we prefer.
6191      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6192      *GNU* | *'with BFD'*)
6193        test "$with_gnu_ld" != no && break
6194        ;;
6195      *)
6196        test "$with_gnu_ld" != yes && break
6197        ;;
6198      esac
6199    fi
6200  done
6201  IFS="$lt_save_ifs"
6202else
6203  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6204fi
6205fi
6206
6207LD="$lt_cv_path_LD"
6208if test -n "$LD"; then
6209  echo "$as_me:$LINENO: result: $LD" >&5
6210echo "${ECHO_T}$LD" >&6
6211else
6212  echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6
6214fi
6215test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6216echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6217   { (exit 1); exit 1; }; }
6218echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6219echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6220if test "${lt_cv_prog_gnu_ld+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6224case `$LD -v 2>&1 </dev/null` in
6225*GNU* | *'with BFD'*)
6226  lt_cv_prog_gnu_ld=yes
6227  ;;
6228*)
6229  lt_cv_prog_gnu_ld=no
6230  ;;
6231esac
6232fi
6233echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6234echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6235with_gnu_ld=$lt_cv_prog_gnu_ld
6236
6237
6238echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6239echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6240if test "${lt_cv_ld_reload_flag+set}" = set; then
6241  echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243  lt_cv_ld_reload_flag='-r'
6244fi
6245echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6246echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6247reload_flag=$lt_cv_ld_reload_flag
6248case $reload_flag in
6249"" | " "*) ;;
6250*) reload_flag=" $reload_flag" ;;
6251esac
6252reload_cmds='$LD$reload_flag -o $output$reload_objs'
6253case $host_os in
6254  darwin*)
6255    if test "$GCC" = yes; then
6256      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6257    else
6258      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6259    fi
6260    ;;
6261esac
6262
6263echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6264echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6265if test "${lt_cv_path_NM+set}" = set; then
6266  echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268  if test -n "$NM"; then
6269  # Let the user override the test.
6270  lt_cv_path_NM="$NM"
6271else
6272  lt_nm_to_check="${ac_tool_prefix}nm"
6273  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6274    lt_nm_to_check="$lt_nm_to_check nm"
6275  fi
6276  for lt_tmp_nm in $lt_nm_to_check; do
6277    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6278    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6279      IFS="$lt_save_ifs"
6280      test -z "$ac_dir" && ac_dir=.
6281      tmp_nm="$ac_dir/$lt_tmp_nm"
6282      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6283        # Check to see if the nm accepts a BSD-compat flag.
6284        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6285        #   nm: unknown option "B" ignored
6286        # Tru64's nm complains that /dev/null is an invalid object file
6287        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6288        */dev/null* | *'Invalid file or object type'*)
6289          lt_cv_path_NM="$tmp_nm -B"
6290          break
6291          ;;
6292        *)
6293          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6294          */dev/null*)
6295            lt_cv_path_NM="$tmp_nm -p"
6296            break
6297            ;;
6298          *)
6299            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6300            continue # so that we can try to find one that supports BSD flags
6301            ;;
6302          esac
6303          ;;
6304        esac
6305      fi
6306    done
6307    IFS="$lt_save_ifs"
6308  done
6309  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6310fi
6311fi
6312echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6313echo "${ECHO_T}$lt_cv_path_NM" >&6
6314NM="$lt_cv_path_NM"
6315
6316echo "$as_me:$LINENO: checking whether ln -s works" >&5
6317echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6318LN_S=$as_ln_s
6319if test "$LN_S" = "ln -s"; then
6320  echo "$as_me:$LINENO: result: yes" >&5
6321echo "${ECHO_T}yes" >&6
6322else
6323  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6324echo "${ECHO_T}no, using $LN_S" >&6
6325fi
6326
6327echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6328echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6329if test "${lt_cv_deplibs_check_method+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  lt_cv_file_magic_cmd='$MAGIC_CMD'
6333lt_cv_file_magic_test_file=
6334lt_cv_deplibs_check_method='unknown'
6335# Need to set the preceding variable on all platforms that support
6336# interlibrary dependencies.
6337# 'none' -- dependencies not supported.
6338# `unknown' -- same as none, but documents that we really don't know.
6339# 'pass_all' -- all dependencies passed with no checks.
6340# 'test_compile' -- check by making test program.
6341# 'file_magic [[regex]]' -- check by looking for files in library path
6342# which responds to the $file_magic_cmd with a given extended regex.
6343# If you have `file' or equivalent on your system and you're not sure
6344# whether `pass_all' will *always* work, you probably want this one.
6345
6346case $host_os in
6347aix4* | aix5*)
6348  lt_cv_deplibs_check_method=pass_all
6349  ;;
6350
6351beos*)
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355bsdi[45]*)
6356  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6357  lt_cv_file_magic_cmd='/usr/bin/file -L'
6358  lt_cv_file_magic_test_file=/shlib/libc.so
6359  ;;
6360
6361cygwin*)
6362  # func_win32_libid is a shell function defined in ltmain.sh
6363  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6364  lt_cv_file_magic_cmd='func_win32_libid'
6365  ;;
6366
6367mingw* | pw32*)
6368  # Base MSYS/MinGW do not provide the 'file' command needed by
6369  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6370  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6371  lt_cv_file_magic_cmd='$OBJDUMP -f'
6372  ;;
6373
6374darwin* | rhapsody*)
6375  lt_cv_deplibs_check_method=pass_all
6376  ;;
6377
6378freebsd* | kfreebsd*-gnu | dragonfly*)
6379  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6380    case $host_cpu in
6381    i*86 )
6382      # Not sure whether the presence of OpenBSD here was a mistake.
6383      # Let's accept both of them until this is cleared up.
6384      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6385      lt_cv_file_magic_cmd=/usr/bin/file
6386      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6387      ;;
6388    esac
6389  else
6390    lt_cv_deplibs_check_method=pass_all
6391  fi
6392  ;;
6393
6394gnu*)
6395  lt_cv_deplibs_check_method=pass_all
6396  ;;
6397
6398hpux10.20* | hpux11*)
6399  lt_cv_file_magic_cmd=/usr/bin/file
6400  case $host_cpu in
6401  ia64*)
6402    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6403    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6404    ;;
6405  hppa*64*)
6406    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]'
6407    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6408    ;;
6409  *)
6410    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6411    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6412    ;;
6413  esac
6414  ;;
6415
6416interix3*)
6417  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6418  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6419  ;;
6420
6421irix5* | irix6* | nonstopux*)
6422  case $LD in
6423  *-32|*"-32 ") libmagic=32-bit;;
6424  *-n32|*"-n32 ") libmagic=N32;;
6425  *-64|*"-64 ") libmagic=64-bit;;
6426  *) libmagic=never-match;;
6427  esac
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430
6431# This must be Linux ELF.
6432linux*)
6433  lt_cv_deplibs_check_method=pass_all
6434  ;;
6435
6436netbsd*)
6437  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6438    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6439  else
6440    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6441  fi
6442  ;;
6443
6444newos6*)
6445  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6446  lt_cv_file_magic_cmd=/usr/bin/file
6447  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6448  ;;
6449
6450nto-qnx*)
6451  lt_cv_deplibs_check_method=unknown
6452  ;;
6453
6454openbsd*)
6455  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6456    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6457  else
6458    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6459  fi
6460  ;;
6461
6462osf3* | osf4* | osf5*)
6463  lt_cv_deplibs_check_method=pass_all
6464  ;;
6465
6466solaris*)
6467  lt_cv_deplibs_check_method=pass_all
6468  ;;
6469
6470sysv4 | sysv4.3*)
6471  case $host_vendor in
6472  motorola)
6473    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]'
6474    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6475    ;;
6476  ncr)
6477    lt_cv_deplibs_check_method=pass_all
6478    ;;
6479  sequent)
6480    lt_cv_file_magic_cmd='/bin/file'
6481    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6482    ;;
6483  sni)
6484    lt_cv_file_magic_cmd='/bin/file'
6485    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6486    lt_cv_file_magic_test_file=/lib/libc.so
6487    ;;
6488  siemens)
6489    lt_cv_deplibs_check_method=pass_all
6490    ;;
6491  pc)
6492    lt_cv_deplibs_check_method=pass_all
6493    ;;
6494  esac
6495  ;;
6496
6497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6498  lt_cv_deplibs_check_method=pass_all
6499  ;;
6500esac
6501
6502fi
6503echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6504echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6505file_magic_cmd=$lt_cv_file_magic_cmd
6506deplibs_check_method=$lt_cv_deplibs_check_method
6507test -z "$deplibs_check_method" && deplibs_check_method=unknown
6508
6509
6510
6511
6512# If no C compiler was specified, use CC.
6513LTCC=${LTCC-"$CC"}
6514
6515# If no C compiler flags were specified, use CFLAGS.
6516LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6517
6518# Allow CC to be a program name with arguments.
6519compiler=$CC
6520
6521# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6522if test "${enable_libtool_lock+set}" = set; then
6523  enableval="$enable_libtool_lock"
6524
6525fi;
6526test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6527
6528# Some flags need to be propagated to the compiler or linker for good
6529# libtool support.
6530case $host in
6531ia64-*-hpux*)
6532  # Find out which ABI we are using.
6533  echo 'int i;' > conftest.$ac_ext
6534  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6535  (eval $ac_compile) 2>&5
6536  ac_status=$?
6537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538  (exit $ac_status); }; then
6539    case `/usr/bin/file conftest.$ac_objext` in
6540    *ELF-32*)
6541      HPUX_IA64_MODE="32"
6542      ;;
6543    *ELF-64*)
6544      HPUX_IA64_MODE="64"
6545      ;;
6546    esac
6547  fi
6548  rm -rf conftest*
6549  ;;
6550*-*-irix6*)
6551  # Find out which ABI we are using.
6552  echo '#line 6552 "configure"' > conftest.$ac_ext
6553  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554  (eval $ac_compile) 2>&5
6555  ac_status=$?
6556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557  (exit $ac_status); }; then
6558   if test "$lt_cv_prog_gnu_ld" = yes; then
6559    case `/usr/bin/file conftest.$ac_objext` in
6560    *32-bit*)
6561      LD="${LD-ld} -melf32bsmip"
6562      ;;
6563    *N32*)
6564      LD="${LD-ld} -melf32bmipn32"
6565      ;;
6566    *64-bit*)
6567      LD="${LD-ld} -melf64bmip"
6568      ;;
6569    esac
6570   else
6571    case `/usr/bin/file conftest.$ac_objext` in
6572    *32-bit*)
6573      LD="${LD-ld} -32"
6574      ;;
6575    *N32*)
6576      LD="${LD-ld} -n32"
6577      ;;
6578    *64-bit*)
6579      LD="${LD-ld} -64"
6580      ;;
6581    esac
6582   fi
6583  fi
6584  rm -rf conftest*
6585  ;;
6586
6587x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6588  # Find out which ABI we are using.
6589  echo 'int i;' > conftest.$ac_ext
6590  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591  (eval $ac_compile) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }; then
6595    case `/usr/bin/file conftest.o` in
6596    *32-bit*)
6597      case $host in
6598        x86_64-*linux*)
6599          LD="${LD-ld} -m elf_i386"
6600          ;;
6601        ppc64-*linux*|powerpc64-*linux*)
6602          LD="${LD-ld} -m elf32ppclinux"
6603          ;;
6604        s390x-*linux*)
6605          LD="${LD-ld} -m elf_s390"
6606          ;;
6607        sparc64-*linux*)
6608          LD="${LD-ld} -m elf32_sparc"
6609          ;;
6610      esac
6611      ;;
6612    *64-bit*)
6613      case $host in
6614        x86_64-*linux*)
6615          LD="${LD-ld} -m elf_x86_64"
6616          ;;
6617        ppc*-*linux*|powerpc*-*linux*)
6618          LD="${LD-ld} -m elf64ppc"
6619          ;;
6620        s390*-*linux*)
6621          LD="${LD-ld} -m elf64_s390"
6622          ;;
6623        sparc*-*linux*)
6624          LD="${LD-ld} -m elf64_sparc"
6625          ;;
6626      esac
6627      ;;
6628    esac
6629  fi
6630  rm -rf conftest*
6631  ;;
6632
6633*-*-sco3.2v5*)
6634  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6635  SAVE_CFLAGS="$CFLAGS"
6636  CFLAGS="$CFLAGS -belf"
6637  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6638echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6639if test "${lt_cv_cc_needs_belf+set}" = set; then
6640  echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642  ac_ext=c
6643ac_cpp='$CPP $CPPFLAGS'
6644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
6648     cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h.  */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h.  */
6654
6655#ifdef F77_DUMMY_MAIN
6656
6657#  ifdef __cplusplus
6658     extern "C"
6659#  endif
6660   int F77_DUMMY_MAIN() { return 1; }
6661
6662#endif
6663int
6664main ()
6665{
6666
6667  ;
6668  return 0;
6669}
6670_ACEOF
6671rm -f conftest.$ac_objext conftest$ac_exeext
6672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6673  (eval $ac_link) 2>conftest.er1
6674  ac_status=$?
6675  grep -v '^ *+' conftest.er1 >conftest.err
6676  rm -f conftest.er1
6677  cat conftest.err >&5
6678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679  (exit $ac_status); } &&
6680         { ac_try='test -z "$ac_c_werror_flag"
6681                         || test ! -s conftest.err'
6682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683  (eval $ac_try) 2>&5
6684  ac_status=$?
6685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686  (exit $ac_status); }; } &&
6687         { ac_try='test -s conftest$ac_exeext'
6688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689  (eval $ac_try) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; }; then
6693  lt_cv_cc_needs_belf=yes
6694else
6695  echo "$as_me: failed program was:" >&5
6696sed 's/^/| /' conftest.$ac_ext >&5
6697
6698lt_cv_cc_needs_belf=no
6699fi
6700rm -f conftest.err conftest.$ac_objext \
6701      conftest$ac_exeext conftest.$ac_ext
6702     ac_ext=c
6703ac_cpp='$CPP $CPPFLAGS'
6704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707
6708fi
6709echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6710echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6711  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6712    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6713    CFLAGS="$SAVE_CFLAGS"
6714  fi
6715  ;;
6716sparc*-*solaris*)
6717  # Find out which ABI we are using.
6718  echo 'int i;' > conftest.$ac_ext
6719  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6720  (eval $ac_compile) 2>&5
6721  ac_status=$?
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); }; then
6724    case `/usr/bin/file conftest.o` in
6725    *64-bit*)
6726      case $lt_cv_prog_gnu_ld in
6727      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6728      *)    LD="${LD-ld} -64" ;;
6729      esac
6730      ;;
6731    esac
6732  fi
6733  rm -rf conftest*
6734  ;;
6735
6736
6737esac
6738
6739need_locks="$enable_libtool_lock"
6740
6741
6742ac_ext=c
6743ac_cpp='$CPP $CPPFLAGS'
6744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6746ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6748echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6749# On Suns, sometimes $CPP names a directory.
6750if test -n "$CPP" && test -d "$CPP"; then
6751  CPP=
6752fi
6753if test -z "$CPP"; then
6754  if test "${ac_cv_prog_CPP+set}" = set; then
6755  echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757      # Double quotes because CPP needs to be expanded
6758    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6759    do
6760      ac_preproc_ok=false
6761for ac_c_preproc_warn_flag in '' yes
6762do
6763  # Use a header file that comes with gcc, so configuring glibc
6764  # with a fresh cross-compiler works.
6765  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6766  # <limits.h> exists even on freestanding compilers.
6767  # On the NeXT, cc -E runs the code through the compiler's parser,
6768  # not just through cpp. "Syntax error" is here to catch this case.
6769  cat >conftest.$ac_ext <<_ACEOF
6770/* confdefs.h.  */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6774/* end confdefs.h.  */
6775#ifdef __STDC__
6776# include <limits.h>
6777#else
6778# include <assert.h>
6779#endif
6780                     Syntax error
6781_ACEOF
6782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6783  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6784  ac_status=$?
6785  grep -v '^ *+' conftest.er1 >conftest.err
6786  rm -f conftest.er1
6787  cat conftest.err >&5
6788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); } >/dev/null; then
6790  if test -s conftest.err; then
6791    ac_cpp_err=$ac_c_preproc_warn_flag
6792    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6793  else
6794    ac_cpp_err=
6795  fi
6796else
6797  ac_cpp_err=yes
6798fi
6799if test -z "$ac_cpp_err"; then
6800  :
6801else
6802  echo "$as_me: failed program was:" >&5
6803sed 's/^/| /' conftest.$ac_ext >&5
6804
6805  # Broken: fails on valid input.
6806continue
6807fi
6808rm -f conftest.err conftest.$ac_ext
6809
6810  # OK, works on sane cases.  Now check whether non-existent headers
6811  # can be detected and how.
6812  cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h.  */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h.  */
6818#include <ac_nonexistent.h>
6819_ACEOF
6820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6822  ac_status=$?
6823  grep -v '^ *+' conftest.er1 >conftest.err
6824  rm -f conftest.er1
6825  cat conftest.err >&5
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); } >/dev/null; then
6828  if test -s conftest.err; then
6829    ac_cpp_err=$ac_c_preproc_warn_flag
6830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6831  else
6832    ac_cpp_err=
6833  fi
6834else
6835  ac_cpp_err=yes
6836fi
6837if test -z "$ac_cpp_err"; then
6838  # Broken: success on invalid input.
6839continue
6840else
6841  echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844  # Passes both tests.
6845ac_preproc_ok=:
6846break
6847fi
6848rm -f conftest.err conftest.$ac_ext
6849
6850done
6851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6852rm -f conftest.err conftest.$ac_ext
6853if $ac_preproc_ok; then
6854  break
6855fi
6856
6857    done
6858    ac_cv_prog_CPP=$CPP
6859
6860fi
6861  CPP=$ac_cv_prog_CPP
6862else
6863  ac_cv_prog_CPP=$CPP
6864fi
6865echo "$as_me:$LINENO: result: $CPP" >&5
6866echo "${ECHO_T}$CPP" >&6
6867ac_preproc_ok=false
6868for ac_c_preproc_warn_flag in '' yes
6869do
6870  # Use a header file that comes with gcc, so configuring glibc
6871  # with a fresh cross-compiler works.
6872  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873  # <limits.h> exists even on freestanding compilers.
6874  # On the NeXT, cc -E runs the code through the compiler's parser,
6875  # not just through cpp. "Syntax error" is here to catch this case.
6876  cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882#ifdef __STDC__
6883# include <limits.h>
6884#else
6885# include <assert.h>
6886#endif
6887                     Syntax error
6888_ACEOF
6889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6891  ac_status=$?
6892  grep -v '^ *+' conftest.er1 >conftest.err
6893  rm -f conftest.er1
6894  cat conftest.err >&5
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); } >/dev/null; then
6897  if test -s conftest.err; then
6898    ac_cpp_err=$ac_c_preproc_warn_flag
6899    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6900  else
6901    ac_cpp_err=
6902  fi
6903else
6904  ac_cpp_err=yes
6905fi
6906if test -z "$ac_cpp_err"; then
6907  :
6908else
6909  echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
6912  # Broken: fails on valid input.
6913continue
6914fi
6915rm -f conftest.err conftest.$ac_ext
6916
6917  # OK, works on sane cases.  Now check whether non-existent headers
6918  # can be detected and how.
6919  cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h.  */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h.  */
6925#include <ac_nonexistent.h>
6926_ACEOF
6927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6928  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929  ac_status=$?
6930  grep -v '^ *+' conftest.er1 >conftest.err
6931  rm -f conftest.er1
6932  cat conftest.err >&5
6933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934  (exit $ac_status); } >/dev/null; then
6935  if test -s conftest.err; then
6936    ac_cpp_err=$ac_c_preproc_warn_flag
6937    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6938  else
6939    ac_cpp_err=
6940  fi
6941else
6942  ac_cpp_err=yes
6943fi
6944if test -z "$ac_cpp_err"; then
6945  # Broken: success on invalid input.
6946continue
6947else
6948  echo "$as_me: failed program was:" >&5
6949sed 's/^/| /' conftest.$ac_ext >&5
6950
6951  # Passes both tests.
6952ac_preproc_ok=:
6953break
6954fi
6955rm -f conftest.err conftest.$ac_ext
6956
6957done
6958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6959rm -f conftest.err conftest.$ac_ext
6960if $ac_preproc_ok; then
6961  :
6962else
6963  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6964See \`config.log' for more details." >&5
6965echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6966See \`config.log' for more details." >&2;}
6967   { (exit 1); exit 1; }; }
6968fi
6969
6970ac_ext=c
6971ac_cpp='$CPP $CPPFLAGS'
6972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975
6976
6977echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6978echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6979if test "${ac_cv_header_stdc+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h.  */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h.  */
6988#include <stdlib.h>
6989#include <stdarg.h>
6990#include <string.h>
6991#include <float.h>
6992
6993#ifdef F77_DUMMY_MAIN
6994
6995#  ifdef __cplusplus
6996     extern "C"
6997#  endif
6998   int F77_DUMMY_MAIN() { return 1; }
6999
7000#endif
7001int
7002main ()
7003{
7004
7005  ;
7006  return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011  (eval $ac_compile) 2>conftest.er1
7012  ac_status=$?
7013  grep -v '^ *+' conftest.er1 >conftest.err
7014  rm -f conftest.er1
7015  cat conftest.err >&5
7016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017  (exit $ac_status); } &&
7018         { ac_try='test -z "$ac_c_werror_flag"
7019                         || test ! -s conftest.err'
7020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021  (eval $ac_try) 2>&5
7022  ac_status=$?
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); }; } &&
7025         { ac_try='test -s conftest.$ac_objext'
7026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027  (eval $ac_try) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); }; }; then
7031  ac_cv_header_stdc=yes
7032else
7033  echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036ac_cv_header_stdc=no
7037fi
7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039
7040if test $ac_cv_header_stdc = yes; then
7041  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042  cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h.  */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h.  */
7048#include <string.h>
7049
7050_ACEOF
7051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052  $EGREP "memchr" >/dev/null 2>&1; then
7053  :
7054else
7055  ac_cv_header_stdc=no
7056fi
7057rm -f conftest*
7058
7059fi
7060
7061if test $ac_cv_header_stdc = yes; then
7062  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063  cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h.  */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h.  */
7069#include <stdlib.h>
7070
7071_ACEOF
7072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073  $EGREP "free" >/dev/null 2>&1; then
7074  :
7075else
7076  ac_cv_header_stdc=no
7077fi
7078rm -f conftest*
7079
7080fi
7081
7082if test $ac_cv_header_stdc = yes; then
7083  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084  if test "$cross_compiling" = yes; then
7085  :
7086else
7087  cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h.  */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h.  */
7093#include <ctype.h>
7094#if ((' ' & 0x0FF) == 0x020)
7095# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7096# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097#else
7098# define ISLOWER(c) \
7099                   (('a' <= (c) && (c) <= 'i') \
7100                     || ('j' <= (c) && (c) <= 'r') \
7101                     || ('s' <= (c) && (c) <= 'z'))
7102# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7103#endif
7104
7105#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106int
7107main ()
7108{
7109  int i;
7110  for (i = 0; i < 256; i++)
7111    if (XOR (islower (i), ISLOWER (i))
7112        || toupper (i) != TOUPPER (i))
7113      exit(2);
7114  exit (0);
7115}
7116_ACEOF
7117rm -f conftest$ac_exeext
7118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119  (eval $ac_link) 2>&5
7120  ac_status=$?
7121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124  (eval $ac_try) 2>&5
7125  ac_status=$?
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); }; }; then
7128  :
7129else
7130  echo "$as_me: program exited with status $ac_status" >&5
7131echo "$as_me: failed program was:" >&5
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
7134( exit $ac_status )
7135ac_cv_header_stdc=no
7136fi
7137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7138fi
7139fi
7140fi
7141echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7142echo "${ECHO_T}$ac_cv_header_stdc" >&6
7143if test $ac_cv_header_stdc = yes; then
7144
7145cat >>confdefs.h <<\_ACEOF
7146#define STDC_HEADERS 1
7147_ACEOF
7148
7149fi
7150
7151# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7162                  inttypes.h stdint.h unistd.h
7163do
7164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7165echo "$as_me:$LINENO: checking for $ac_header" >&5
7166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7167if eval "test \"\${$as_ac_Header+set}\" = set"; then
7168  echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170  cat >conftest.$ac_ext <<_ACEOF
7171/* confdefs.h.  */
7172_ACEOF
7173cat confdefs.h >>conftest.$ac_ext
7174cat >>conftest.$ac_ext <<_ACEOF
7175/* end confdefs.h.  */
7176$ac_includes_default
7177
7178#include <$ac_header>
7179_ACEOF
7180rm -f conftest.$ac_objext
7181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7182  (eval $ac_compile) 2>conftest.er1
7183  ac_status=$?
7184  grep -v '^ *+' conftest.er1 >conftest.err
7185  rm -f conftest.er1
7186  cat conftest.err >&5
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); } &&
7189         { ac_try='test -z "$ac_c_werror_flag"
7190                         || test ! -s conftest.err'
7191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192  (eval $ac_try) 2>&5
7193  ac_status=$?
7194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195  (exit $ac_status); }; } &&
7196         { ac_try='test -s conftest.$ac_objext'
7197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198  (eval $ac_try) 2>&5
7199  ac_status=$?
7200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201  (exit $ac_status); }; }; then
7202  eval "$as_ac_Header=yes"
7203else
7204  echo "$as_me: failed program was:" >&5
7205sed 's/^/| /' conftest.$ac_ext >&5
7206
7207eval "$as_ac_Header=no"
7208fi
7209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7210fi
7211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7213if test `eval echo '${'$as_ac_Header'}'` = yes; then
7214  cat >>confdefs.h <<_ACEOF
7215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216_ACEOF
7217
7218fi
7219
7220done
7221
7222
7223
7224for ac_header in dlfcn.h
7225do
7226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7227if eval "test \"\${$as_ac_Header+set}\" = set"; then
7228  echo "$as_me:$LINENO: checking for $ac_header" >&5
7229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7230if eval "test \"\${$as_ac_Header+set}\" = set"; then
7231  echo $ECHO_N "(cached) $ECHO_C" >&6
7232fi
7233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7235else
7236  # Is the header compilable?
7237echo "$as_me:$LINENO: checking $ac_header usability" >&5
7238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7239cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h.  */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h.  */
7245$ac_includes_default
7246#include <$ac_header>
7247_ACEOF
7248rm -f conftest.$ac_objext
7249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250  (eval $ac_compile) 2>conftest.er1
7251  ac_status=$?
7252  grep -v '^ *+' conftest.er1 >conftest.err
7253  rm -f conftest.er1
7254  cat conftest.err >&5
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); } &&
7257         { ac_try='test -z "$ac_c_werror_flag"
7258                         || test ! -s conftest.err'
7259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260  (eval $ac_try) 2>&5
7261  ac_status=$?
7262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263  (exit $ac_status); }; } &&
7264         { ac_try='test -s conftest.$ac_objext'
7265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266  (eval $ac_try) 2>&5
7267  ac_status=$?
7268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269  (exit $ac_status); }; }; then
7270  ac_header_compiler=yes
7271else
7272  echo "$as_me: failed program was:" >&5
7273sed 's/^/| /' conftest.$ac_ext >&5
7274
7275ac_header_compiler=no
7276fi
7277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279echo "${ECHO_T}$ac_header_compiler" >&6
7280
7281# Is the header present?
7282echo "$as_me:$LINENO: checking $ac_header presence" >&5
7283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7284cat >conftest.$ac_ext <<_ACEOF
7285/* confdefs.h.  */
7286_ACEOF
7287cat confdefs.h >>conftest.$ac_ext
7288cat >>conftest.$ac_ext <<_ACEOF
7289/* end confdefs.h.  */
7290#include <$ac_header>
7291_ACEOF
7292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7294  ac_status=$?
7295  grep -v '^ *+' conftest.er1 >conftest.err
7296  rm -f conftest.er1
7297  cat conftest.err >&5
7298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299  (exit $ac_status); } >/dev/null; then
7300  if test -s conftest.err; then
7301    ac_cpp_err=$ac_c_preproc_warn_flag
7302    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7303  else
7304    ac_cpp_err=
7305  fi
7306else
7307  ac_cpp_err=yes
7308fi
7309if test -z "$ac_cpp_err"; then
7310  ac_header_preproc=yes
7311else
7312  echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
7314
7315  ac_header_preproc=no
7316fi
7317rm -f conftest.err conftest.$ac_ext
7318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319echo "${ECHO_T}$ac_header_preproc" >&6
7320
7321# So?  What about this header?
7322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7323  yes:no: )
7324    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7328    ac_header_preproc=yes
7329    ;;
7330  no:yes:* )
7331    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7333    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7334echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7335    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7337    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7338echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7339    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7341    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7343    (
7344      cat <<\_ASBOX
7345## --------------------------------------------------------------- ##
7346## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7347## --------------------------------------------------------------- ##
7348_ASBOX
7349    ) |
7350      sed "s/^/$as_me: WARNING:     /" >&2
7351    ;;
7352esac
7353echo "$as_me:$LINENO: checking for $ac_header" >&5
7354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7355if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  eval "$as_ac_Header=\$ac_header_preproc"
7359fi
7360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7362
7363fi
7364if test `eval echo '${'$as_ac_Header'}'` = yes; then
7365  cat >>confdefs.h <<_ACEOF
7366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367_ACEOF
7368
7369fi
7370
7371done
7372
7373ac_ext=cc
7374ac_cpp='$CXXCPP $CPPFLAGS'
7375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7378if test -n "$ac_tool_prefix"; then
7379  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7380  do
7381    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7382set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7383echo "$as_me:$LINENO: checking for $ac_word" >&5
7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7385if test "${ac_cv_prog_CXX+set}" = set; then
7386  echo $ECHO_N "(cached) $ECHO_C" >&6
7387else
7388  if test -n "$CXX"; then
7389  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7390else
7391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394  IFS=$as_save_IFS
7395  test -z "$as_dir" && as_dir=.
7396  for ac_exec_ext in '' $ac_executable_extensions; do
7397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400    break 2
7401  fi
7402done
7403done
7404
7405fi
7406fi
7407CXX=$ac_cv_prog_CXX
7408if test -n "$CXX"; then
7409  echo "$as_me:$LINENO: result: $CXX" >&5
7410echo "${ECHO_T}$CXX" >&6
7411else
7412  echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6
7414fi
7415
7416    test -n "$CXX" && break
7417  done
7418fi
7419if test -z "$CXX"; then
7420  ac_ct_CXX=$CXX
7421  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7422do
7423  # Extract the first word of "$ac_prog", so it can be a program name with args.
7424set dummy $ac_prog; ac_word=$2
7425echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7427if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7428  echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430  if test -n "$ac_ct_CXX"; then
7431  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7432else
7433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436  IFS=$as_save_IFS
7437  test -z "$as_dir" && as_dir=.
7438  for ac_exec_ext in '' $ac_executable_extensions; do
7439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440    ac_cv_prog_ac_ct_CXX="$ac_prog"
7441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442    break 2
7443  fi
7444done
7445done
7446
7447fi
7448fi
7449ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7450if test -n "$ac_ct_CXX"; then
7451  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7452echo "${ECHO_T}$ac_ct_CXX" >&6
7453else
7454  echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6
7456fi
7457
7458  test -n "$ac_ct_CXX" && break
7459done
7460test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7461
7462  CXX=$ac_ct_CXX
7463fi
7464
7465
7466# Provide some information about the compiler.
7467echo "$as_me:$LINENO:" \
7468     "checking for C++ compiler version" >&5
7469ac_compiler=`set X $ac_compile; echo $2`
7470{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7471  (eval $ac_compiler --version </dev/null >&5) 2>&5
7472  ac_status=$?
7473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474  (exit $ac_status); }
7475{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7476  (eval $ac_compiler -v </dev/null >&5) 2>&5
7477  ac_status=$?
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); }
7480{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7481  (eval $ac_compiler -V </dev/null >&5) 2>&5
7482  ac_status=$?
7483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484  (exit $ac_status); }
7485
7486echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7487echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7488if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h.  */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h.  */
7497
7498#ifdef F77_DUMMY_MAIN
7499
7500#  ifdef __cplusplus
7501     extern "C"
7502#  endif
7503   int F77_DUMMY_MAIN() { return 1; }
7504
7505#endif
7506int
7507main ()
7508{
7509#ifndef __GNUC__
7510       choke me
7511#endif
7512
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext
7518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519  (eval $ac_compile) 2>conftest.er1
7520  ac_status=$?
7521  grep -v '^ *+' conftest.er1 >conftest.err
7522  rm -f conftest.er1
7523  cat conftest.err >&5
7524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525  (exit $ac_status); } &&
7526         { ac_try='test -z "$ac_cxx_werror_flag"
7527                         || test ! -s conftest.err'
7528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529  (eval $ac_try) 2>&5
7530  ac_status=$?
7531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532  (exit $ac_status); }; } &&
7533         { ac_try='test -s conftest.$ac_objext'
7534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535  (eval $ac_try) 2>&5
7536  ac_status=$?
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); }; }; then
7539  ac_compiler_gnu=yes
7540else
7541  echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544ac_compiler_gnu=no
7545fi
7546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7548
7549fi
7550echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7551echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7552GXX=`test $ac_compiler_gnu = yes && echo yes`
7553ac_test_CXXFLAGS=${CXXFLAGS+set}
7554ac_save_CXXFLAGS=$CXXFLAGS
7555CXXFLAGS="-g"
7556echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7557echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7558if test "${ac_cv_prog_cxx_g+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561  cat >conftest.$ac_ext <<_ACEOF
7562/* confdefs.h.  */
7563_ACEOF
7564cat confdefs.h >>conftest.$ac_ext
7565cat >>conftest.$ac_ext <<_ACEOF
7566/* end confdefs.h.  */
7567
7568#ifdef F77_DUMMY_MAIN
7569
7570#  ifdef __cplusplus
7571     extern "C"
7572#  endif
7573   int F77_DUMMY_MAIN() { return 1; }
7574
7575#endif
7576int
7577main ()
7578{
7579
7580  ;
7581  return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext
7585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7586  (eval $ac_compile) 2>conftest.er1
7587  ac_status=$?
7588  grep -v '^ *+' conftest.er1 >conftest.err
7589  rm -f conftest.er1
7590  cat conftest.err >&5
7591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592  (exit $ac_status); } &&
7593         { ac_try='test -z "$ac_cxx_werror_flag"
7594                         || test ! -s conftest.err'
7595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596  (eval $ac_try) 2>&5
7597  ac_status=$?
7598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599  (exit $ac_status); }; } &&
7600         { ac_try='test -s conftest.$ac_objext'
7601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602  (eval $ac_try) 2>&5
7603  ac_status=$?
7604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605  (exit $ac_status); }; }; then
7606  ac_cv_prog_cxx_g=yes
7607else
7608  echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611ac_cv_prog_cxx_g=no
7612fi
7613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7617if test "$ac_test_CXXFLAGS" = set; then
7618  CXXFLAGS=$ac_save_CXXFLAGS
7619elif test $ac_cv_prog_cxx_g = yes; then
7620  if test "$GXX" = yes; then
7621    CXXFLAGS="-g -O2"
7622  else
7623    CXXFLAGS="-g"
7624  fi
7625else
7626  if test "$GXX" = yes; then
7627    CXXFLAGS="-O2"
7628  else
7629    CXXFLAGS=
7630  fi
7631fi
7632for ac_declaration in \
7633   '' \
7634   'extern "C" void std::exit (int) throw (); using std::exit;' \
7635   'extern "C" void std::exit (int); using std::exit;' \
7636   'extern "C" void exit (int) throw ();' \
7637   'extern "C" void exit (int);' \
7638   'void exit (int);'
7639do
7640  cat >conftest.$ac_ext <<_ACEOF
7641/* confdefs.h.  */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h.  */
7646$ac_declaration
7647#include <stdlib.h>
7648#ifdef F77_DUMMY_MAIN
7649
7650#  ifdef __cplusplus
7651     extern "C"
7652#  endif
7653   int F77_DUMMY_MAIN() { return 1; }
7654
7655#endif
7656int
7657main ()
7658{
7659exit (42);
7660  ;
7661  return 0;
7662}
7663_ACEOF
7664rm -f conftest.$ac_objext
7665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7666  (eval $ac_compile) 2>conftest.er1
7667  ac_status=$?
7668  grep -v '^ *+' conftest.er1 >conftest.err
7669  rm -f conftest.er1
7670  cat conftest.err >&5
7671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672  (exit $ac_status); } &&
7673         { ac_try='test -z "$ac_cxx_werror_flag"
7674                         || test ! -s conftest.err'
7675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676  (eval $ac_try) 2>&5
7677  ac_status=$?
7678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679  (exit $ac_status); }; } &&
7680         { ac_try='test -s conftest.$ac_objext'
7681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682  (eval $ac_try) 2>&5
7683  ac_status=$?
7684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685  (exit $ac_status); }; }; then
7686  :
7687else
7688  echo "$as_me: failed program was:" >&5
7689sed 's/^/| /' conftest.$ac_ext >&5
7690
7691continue
7692fi
7693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7694  cat >conftest.$ac_ext <<_ACEOF
7695/* confdefs.h.  */
7696_ACEOF
7697cat confdefs.h >>conftest.$ac_ext
7698cat >>conftest.$ac_ext <<_ACEOF
7699/* end confdefs.h.  */
7700$ac_declaration
7701#ifdef F77_DUMMY_MAIN
7702
7703#  ifdef __cplusplus
7704     extern "C"
7705#  endif
7706   int F77_DUMMY_MAIN() { return 1; }
7707
7708#endif
7709int
7710main ()
7711{
7712exit (42);
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717rm -f conftest.$ac_objext
7718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7719  (eval $ac_compile) 2>conftest.er1
7720  ac_status=$?
7721  grep -v '^ *+' conftest.er1 >conftest.err
7722  rm -f conftest.er1
7723  cat conftest.err >&5
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); } &&
7726         { ac_try='test -z "$ac_cxx_werror_flag"
7727                         || test ! -s conftest.err'
7728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729  (eval $ac_try) 2>&5
7730  ac_status=$?
7731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732  (exit $ac_status); }; } &&
7733         { ac_try='test -s conftest.$ac_objext'
7734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735  (eval $ac_try) 2>&5
7736  ac_status=$?
7737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738  (exit $ac_status); }; }; then
7739  break
7740else
7741  echo "$as_me: failed program was:" >&5
7742sed 's/^/| /' conftest.$ac_ext >&5
7743
7744fi
7745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7746done
7747rm -f conftest*
7748if test -n "$ac_declaration"; then
7749  echo '#ifdef __cplusplus' >>confdefs.h
7750  echo $ac_declaration      >>confdefs.h
7751  echo '#endif'             >>confdefs.h
7752fi
7753
7754ac_ext=cc
7755ac_cpp='$CXXCPP $CPPFLAGS'
7756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7759
7760depcc="$CXX"  am_compiler_list=
7761
7762echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7763echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7764if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7765  echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7768  # We make a subdir and do the tests there.  Otherwise we can end up
7769  # making bogus files that we don't know about and never remove.  For
7770  # instance it was reported that on HP-UX the gcc test will end up
7771  # making a dummy file named `D' -- because `-MD' means `put the output
7772  # in D'.
7773  mkdir conftest.dir
7774  # Copy depcomp to subdir because otherwise we won't find it if we're
7775  # using a relative directory.
7776  cp "$am_depcomp" conftest.dir
7777  cd conftest.dir
7778  # We will build objects and dependencies in a subdirectory because
7779  # it helps to detect inapplicable dependency modes.  For instance
7780  # both Tru64's cc and ICC support -MD to output dependencies as a
7781  # side effect of compilation, but ICC will put the dependencies in
7782  # the current directory while Tru64 will put them in the object
7783  # directory.
7784  mkdir sub
7785
7786  am_cv_CXX_dependencies_compiler_type=none
7787  if test "$am_compiler_list" = ""; then
7788     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7789  fi
7790  for depmode in $am_compiler_list; do
7791    # Setup a source with many dependencies, because some compilers
7792    # like to wrap large dependency lists on column 80 (with \), and
7793    # we should not choose a depcomp mode which is confused by this.
7794    #
7795    # We need to recreate these files for each test, as the compiler may
7796    # overwrite some of them when testing with obscure command lines.
7797    # This happens at least with the AIX C compiler.
7798    : > sub/conftest.c
7799    for i in 1 2 3 4 5 6; do
7800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7802      # Solaris 8's {/usr,}/bin/sh.
7803      touch sub/conftst$i.h
7804    done
7805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7806
7807    case $depmode in
7808    nosideeffect)
7809      # after this tag, mechanisms are not by side-effect, so they'll
7810      # only be used when explicitly requested
7811      if test "x$enable_dependency_tracking" = xyes; then
7812        continue
7813      else
7814        break
7815      fi
7816      ;;
7817    none) break ;;
7818    esac
7819    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7820    # mode.  It turns out that the SunPro C++ compiler does not properly
7821    # handle `-M -o', and we need to detect this.
7822    if depmode=$depmode \
7823       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7824       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7825       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7826         >/dev/null 2>conftest.err &&
7827       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7828       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7829       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7830      # icc doesn't choke on unknown options, it will just issue warnings
7831      # or remarks (even with -Werror).  So we grep stderr for any message
7832      # that says an option was ignored or not supported.
7833      # When given -MP, icc 7.0 and 7.1 complain thusly:
7834      #   icc: Command line warning: ignoring option '-M'; no argument required
7835      # The diagnosis changed in icc 8.0:
7836      #   icc: Command line remark: option '-MP' not supported
7837      if (grep 'ignoring option' conftest.err ||
7838          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7839        am_cv_CXX_dependencies_compiler_type=$depmode
7840        break
7841      fi
7842    fi
7843  done
7844
7845  cd ..
7846  rm -rf conftest.dir
7847else
7848  am_cv_CXX_dependencies_compiler_type=none
7849fi
7850
7851fi
7852echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7853echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7854CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7855
7856
7857
7858if
7859  test "x$enable_dependency_tracking" != xno \
7860  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7861  am__fastdepCXX_TRUE=
7862  am__fastdepCXX_FALSE='#'
7863else
7864  am__fastdepCXX_TRUE='#'
7865  am__fastdepCXX_FALSE=
7866fi
7867
7868
7869
7870
7871if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7872    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7873    (test "X$CXX" != "Xg++"))) ; then
7874  ac_ext=cc
7875ac_cpp='$CXXCPP $CPPFLAGS'
7876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7879echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7880echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7881if test -z "$CXXCPP"; then
7882  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7883  echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885      # Double quotes because CXXCPP needs to be expanded
7886    for CXXCPP in "$CXX -E" "/lib/cpp"
7887    do
7888      ac_preproc_ok=false
7889for ac_cxx_preproc_warn_flag in '' yes
7890do
7891  # Use a header file that comes with gcc, so configuring glibc
7892  # with a fresh cross-compiler works.
7893  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7894  # <limits.h> exists even on freestanding compilers.
7895  # On the NeXT, cc -E runs the code through the compiler's parser,
7896  # not just through cpp. "Syntax error" is here to catch this case.
7897  cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h.  */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h.  */
7903#ifdef __STDC__
7904# include <limits.h>
7905#else
7906# include <assert.h>
7907#endif
7908                     Syntax error
7909_ACEOF
7910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7911  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7912  ac_status=$?
7913  grep -v '^ *+' conftest.er1 >conftest.err
7914  rm -f conftest.er1
7915  cat conftest.err >&5
7916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917  (exit $ac_status); } >/dev/null; then
7918  if test -s conftest.err; then
7919    ac_cpp_err=$ac_cxx_preproc_warn_flag
7920    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7921  else
7922    ac_cpp_err=
7923  fi
7924else
7925  ac_cpp_err=yes
7926fi
7927if test -z "$ac_cpp_err"; then
7928  :
7929else
7930  echo "$as_me: failed program was:" >&5
7931sed 's/^/| /' conftest.$ac_ext >&5
7932
7933  # Broken: fails on valid input.
7934continue
7935fi
7936rm -f conftest.err conftest.$ac_ext
7937
7938  # OK, works on sane cases.  Now check whether non-existent headers
7939  # can be detected and how.
7940  cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h.  */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h.  */
7946#include <ac_nonexistent.h>
7947_ACEOF
7948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7950  ac_status=$?
7951  grep -v '^ *+' conftest.er1 >conftest.err
7952  rm -f conftest.er1
7953  cat conftest.err >&5
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); } >/dev/null; then
7956  if test -s conftest.err; then
7957    ac_cpp_err=$ac_cxx_preproc_warn_flag
7958    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7959  else
7960    ac_cpp_err=
7961  fi
7962else
7963  ac_cpp_err=yes
7964fi
7965if test -z "$ac_cpp_err"; then
7966  # Broken: success on invalid input.
7967continue
7968else
7969  echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972  # Passes both tests.
7973ac_preproc_ok=:
7974break
7975fi
7976rm -f conftest.err conftest.$ac_ext
7977
7978done
7979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7980rm -f conftest.err conftest.$ac_ext
7981if $ac_preproc_ok; then
7982  break
7983fi
7984
7985    done
7986    ac_cv_prog_CXXCPP=$CXXCPP
7987
7988fi
7989  CXXCPP=$ac_cv_prog_CXXCPP
7990else
7991  ac_cv_prog_CXXCPP=$CXXCPP
7992fi
7993echo "$as_me:$LINENO: result: $CXXCPP" >&5
7994echo "${ECHO_T}$CXXCPP" >&6
7995ac_preproc_ok=false
7996for ac_cxx_preproc_warn_flag in '' yes
7997do
7998  # Use a header file that comes with gcc, so configuring glibc
7999  # with a fresh cross-compiler works.
8000  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8001  # <limits.h> exists even on freestanding compilers.
8002  # On the NeXT, cc -E runs the code through the compiler's parser,
8003  # not just through cpp. "Syntax error" is here to catch this case.
8004  cat >conftest.$ac_ext <<_ACEOF
8005/* confdefs.h.  */
8006_ACEOF
8007cat confdefs.h >>conftest.$ac_ext
8008cat >>conftest.$ac_ext <<_ACEOF
8009/* end confdefs.h.  */
8010#ifdef __STDC__
8011# include <limits.h>
8012#else
8013# include <assert.h>
8014#endif
8015                     Syntax error
8016_ACEOF
8017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8019  ac_status=$?
8020  grep -v '^ *+' conftest.er1 >conftest.err
8021  rm -f conftest.er1
8022  cat conftest.err >&5
8023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024  (exit $ac_status); } >/dev/null; then
8025  if test -s conftest.err; then
8026    ac_cpp_err=$ac_cxx_preproc_warn_flag
8027    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8028  else
8029    ac_cpp_err=
8030  fi
8031else
8032  ac_cpp_err=yes
8033fi
8034if test -z "$ac_cpp_err"; then
8035  :
8036else
8037  echo "$as_me: failed program was:" >&5
8038sed 's/^/| /' conftest.$ac_ext >&5
8039
8040  # Broken: fails on valid input.
8041continue
8042fi
8043rm -f conftest.err conftest.$ac_ext
8044
8045  # OK, works on sane cases.  Now check whether non-existent headers
8046  # can be detected and how.
8047  cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h.  */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h.  */
8053#include <ac_nonexistent.h>
8054_ACEOF
8055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8057  ac_status=$?
8058  grep -v '^ *+' conftest.er1 >conftest.err
8059  rm -f conftest.er1
8060  cat conftest.err >&5
8061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062  (exit $ac_status); } >/dev/null; then
8063  if test -s conftest.err; then
8064    ac_cpp_err=$ac_cxx_preproc_warn_flag
8065    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8066  else
8067    ac_cpp_err=
8068  fi
8069else
8070  ac_cpp_err=yes
8071fi
8072if test -z "$ac_cpp_err"; then
8073  # Broken: success on invalid input.
8074continue
8075else
8076  echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079  # Passes both tests.
8080ac_preproc_ok=:
8081break
8082fi
8083rm -f conftest.err conftest.$ac_ext
8084
8085done
8086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8087rm -f conftest.err conftest.$ac_ext
8088if $ac_preproc_ok; then
8089  :
8090else
8091  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8092See \`config.log' for more details." >&5
8093echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8094See \`config.log' for more details." >&2;}
8095   { (exit 1); exit 1; }; }
8096fi
8097
8098ac_ext=cc
8099ac_cpp='$CXXCPP $CPPFLAGS'
8100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8103
8104fi
8105
8106
8107
8108# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8109
8110# find the maximum length of command line arguments
8111echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8112echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8113if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8114  echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116    i=0
8117  teststring="ABCD"
8118
8119  case $build_os in
8120  msdosdjgpp*)
8121    # On DJGPP, this test can blow up pretty badly due to problems in libc
8122    # (any single argument exceeding 2000 bytes causes a buffer overrun
8123    # during glob expansion).  Even if it were fixed, the result of this
8124    # check would be larger than it should be.
8125    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8126    ;;
8127
8128  gnu*)
8129    # Under GNU Hurd, this test is not required because there is
8130    # no limit to the length of command line arguments.
8131    # Libtool will interpret -1 as no limit whatsoever
8132    lt_cv_sys_max_cmd_len=-1;
8133    ;;
8134
8135  cygwin* | mingw*)
8136    # On Win9x/ME, this test blows up -- it succeeds, but takes
8137    # about 5 minutes as the teststring grows exponentially.
8138    # Worse, since 9x/ME are not pre-emptively multitasking,
8139    # you end up with a "frozen" computer, even though with patience
8140    # the test eventually succeeds (with a max line length of 256k).
8141    # Instead, let's just punt: use the minimum linelength reported by
8142    # all of the supported platforms: 8192 (on NT/2K/XP).
8143    lt_cv_sys_max_cmd_len=8192;
8144    ;;
8145
8146  amigaos*)
8147    # On AmigaOS with pdksh, this test takes hours, literally.
8148    # So we just punt and use a minimum line length of 8192.
8149    lt_cv_sys_max_cmd_len=8192;
8150    ;;
8151
8152  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8153    # This has been around since 386BSD, at least.  Likely further.
8154    if test -x /sbin/sysctl; then
8155      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8156    elif test -x /usr/sbin/sysctl; then
8157      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8158    else
8159      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8160    fi
8161    # And add a safety zone
8162    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8163    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8164    ;;
8165
8166  interix*)
8167    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8168    lt_cv_sys_max_cmd_len=196608
8169    ;;
8170
8171  osf*)
8172    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8173    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8174    # nice to cause kernel panics so lets avoid the loop below.
8175    # First set a reasonable default.
8176    lt_cv_sys_max_cmd_len=16384
8177    #
8178    if test -x /sbin/sysconfig; then
8179      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8180        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8181      esac
8182    fi
8183    ;;
8184  sco3.2v5*)
8185    lt_cv_sys_max_cmd_len=102400
8186    ;;
8187  sysv5* | sco5v6* | sysv4.2uw2*)
8188    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8189    if test -n "$kargmax"; then
8190      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8191    else
8192      lt_cv_sys_max_cmd_len=32768
8193    fi
8194    ;;
8195  *)
8196    # If test is not a shell built-in, we'll probably end up computing a
8197    # maximum length that is only half of the actual maximum length, but
8198    # we can't tell.
8199    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8200    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8201               = "XX$teststring") >/dev/null 2>&1 &&
8202            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8203            lt_cv_sys_max_cmd_len=$new_result &&
8204            test $i != 17 # 1/2 MB should be enough
8205    do
8206      i=`expr $i + 1`
8207      teststring=$teststring$teststring
8208    done
8209    teststring=
8210    # Add a significant safety factor because C++ compilers can tack on massive
8211    # amounts of additional arguments before passing them to the linker.
8212    # It appears as though 1/2 is a usable value.
8213    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8214    ;;
8215  esac
8216
8217fi
8218
8219if test -n $lt_cv_sys_max_cmd_len ; then
8220  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8221echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8222else
8223  echo "$as_me:$LINENO: result: none" >&5
8224echo "${ECHO_T}none" >&6
8225fi
8226
8227
8228
8229
8230# Check for command to grab the raw symbol name followed by C symbol from nm.
8231echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8232echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8233if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8234  echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236
8237# These are sane defaults that work on at least a few old systems.
8238# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8239
8240# Character class describing NM global symbol codes.
8241symcode='[BCDEGRST]'
8242
8243# Regexp to match symbols that can be accessed directly from C.
8244sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8245
8246# Transform an extracted symbol line into a proper C declaration
8247lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8248
8249# Transform an extracted symbol line into symbol name and symbol address
8250lt_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'"
8251
8252# Define system-specific variables.
8253case $host_os in
8254aix*)
8255  symcode='[BCDT]'
8256  ;;
8257cygwin* | mingw* | pw32*)
8258  symcode='[ABCDGISTW]'
8259  ;;
8260hpux*) # Its linker distinguishes data from code symbols
8261  if test "$host_cpu" = ia64; then
8262    symcode='[ABCDEGRST]'
8263  fi
8264  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8265  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'"
8266  ;;
8267linux*)
8268  if test "$host_cpu" = ia64; then
8269    symcode='[ABCDGIRSTW]'
8270    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8271    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'"
8272  fi
8273  ;;
8274irix* | nonstopux*)
8275  symcode='[BCDEGRST]'
8276  ;;
8277osf*)
8278  symcode='[BCDEGQRST]'
8279  ;;
8280solaris*)
8281  symcode='[BDRT]'
8282  ;;
8283sco3.2v5*)
8284  symcode='[DT]'
8285  ;;
8286sysv4.2uw2*)
8287  symcode='[DT]'
8288  ;;
8289sysv5* | sco5v6* | unixware* | OpenUNIX*)
8290  symcode='[ABDT]'
8291  ;;
8292sysv4)
8293  symcode='[DFNSTU]'
8294  ;;
8295esac
8296
8297# Handle CRLF in mingw tool chain
8298opt_cr=
8299case $build_os in
8300mingw*)
8301  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8302  ;;
8303esac
8304
8305# If we're using GNU nm, then use its standard symbol codes.
8306case `$NM -V 2>&1` in
8307*GNU* | *'with BFD'*)
8308  symcode='[ABCDGIRSTW]' ;;
8309esac
8310
8311# Try without a prefix undercore, then with it.
8312for ac_symprfx in "" "_"; do
8313
8314  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8315  symxfrm="\\1 $ac_symprfx\\2 \\2"
8316
8317  # Write the raw and C identifiers.
8318  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8319
8320  # Check to see that the pipe works correctly.
8321  pipe_works=no
8322
8323  rm -f conftest*
8324  cat > conftest.$ac_ext <<EOF
8325#ifdef __cplusplus
8326extern "C" {
8327#endif
8328char nm_test_var;
8329void nm_test_func(){}
8330#ifdef __cplusplus
8331}
8332#endif
8333int main(){nm_test_var='a';nm_test_func();return(0);}
8334EOF
8335
8336  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8337  (eval $ac_compile) 2>&5
8338  ac_status=$?
8339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340  (exit $ac_status); }; then
8341    # Now try to grab the symbols.
8342    nlist=conftest.nm
8343    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8344  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8345  ac_status=$?
8346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); } && test -s "$nlist"; then
8348      # Try sorting and uniquifying the output.
8349      if sort "$nlist" | uniq > "$nlist"T; then
8350        mv -f "$nlist"T "$nlist"
8351      else
8352        rm -f "$nlist"T
8353      fi
8354
8355      # Make sure that we snagged all the symbols we need.
8356      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8357        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8358          cat <<EOF > conftest.$ac_ext
8359#ifdef __cplusplus
8360extern "C" {
8361#endif
8362
8363EOF
8364          # Now generate the symbol file.
8365          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8366
8367          cat <<EOF >> conftest.$ac_ext
8368#if defined (__STDC__) && __STDC__
8369# define lt_ptr_t void *
8370#else
8371# define lt_ptr_t char *
8372# define const
8373#endif
8374
8375/* The mapping between symbol names and symbols. */
8376const struct {
8377  const char *name;
8378  lt_ptr_t address;
8379}
8380lt_preloaded_symbols[] =
8381{
8382EOF
8383          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8384          cat <<\EOF >> conftest.$ac_ext
8385  {0, (lt_ptr_t) 0}
8386};
8387
8388#ifdef __cplusplus
8389}
8390#endif
8391EOF
8392          # Now try linking the two files.
8393          mv conftest.$ac_objext conftstm.$ac_objext
8394          lt_save_LIBS="$LIBS"
8395          lt_save_CFLAGS="$CFLAGS"
8396          LIBS="conftstm.$ac_objext"
8397          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8398          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399  (eval $ac_link) 2>&5
8400  ac_status=$?
8401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8403            pipe_works=yes
8404          fi
8405          LIBS="$lt_save_LIBS"
8406          CFLAGS="$lt_save_CFLAGS"
8407        else
8408          echo "cannot find nm_test_func in $nlist" >&5
8409        fi
8410      else
8411        echo "cannot find nm_test_var in $nlist" >&5
8412      fi
8413    else
8414      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8415    fi
8416  else
8417    echo "$progname: failed program was:" >&5
8418    cat conftest.$ac_ext >&5
8419  fi
8420  rm -f conftest* conftst*
8421
8422  # Do not use the global_symbol_pipe unless it works.
8423  if test "$pipe_works" = yes; then
8424    break
8425  else
8426    lt_cv_sys_global_symbol_pipe=
8427  fi
8428done
8429
8430fi
8431
8432if test -z "$lt_cv_sys_global_symbol_pipe"; then
8433  lt_cv_sys_global_symbol_to_cdecl=
8434fi
8435if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8436  echo "$as_me:$LINENO: result: failed" >&5
8437echo "${ECHO_T}failed" >&6
8438else
8439  echo "$as_me:$LINENO: result: ok" >&5
8440echo "${ECHO_T}ok" >&6
8441fi
8442
8443echo "$as_me:$LINENO: checking for objdir" >&5
8444echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8445if test "${lt_cv_objdir+set}" = set; then
8446  echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448  rm -f .libs 2>/dev/null
8449mkdir .libs 2>/dev/null
8450if test -d .libs; then
8451  lt_cv_objdir=.libs
8452else
8453  # MS-DOS does not allow filenames that begin with a dot.
8454  lt_cv_objdir=_libs
8455fi
8456rmdir .libs 2>/dev/null
8457fi
8458echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8459echo "${ECHO_T}$lt_cv_objdir" >&6
8460objdir=$lt_cv_objdir
8461
8462
8463
8464
8465
8466case $host_os in
8467aix3*)
8468  # AIX sometimes has problems with the GCC collect2 program.  For some
8469  # reason, if we set the COLLECT_NAMES environment variable, the problems
8470  # vanish in a puff of smoke.
8471  if test "X${COLLECT_NAMES+set}" != Xset; then
8472    COLLECT_NAMES=
8473    export COLLECT_NAMES
8474  fi
8475  ;;
8476esac
8477
8478# Sed substitution that helps us do robust quoting.  It backslashifies
8479# metacharacters that are still active within double-quoted strings.
8480Xsed='sed -e 1s/^X//'
8481sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8482
8483# Same as above, but do not quote variable references.
8484double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8485
8486# Sed substitution to delay expansion of an escaped shell variable in a
8487# double_quote_subst'ed string.
8488delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8489
8490# Sed substitution to avoid accidental globbing in evaled expressions
8491no_glob_subst='s/\*/\\\*/g'
8492
8493# Constants:
8494rm="rm -f"
8495
8496# Global variables:
8497default_ofile=libtool
8498can_build_shared=yes
8499
8500# All known linkers require a `.a' archive for static linking (except MSVC,
8501# which needs '.lib').
8502libext=a
8503ltmain="$ac_aux_dir/ltmain.sh"
8504ofile="$default_ofile"
8505with_gnu_ld="$lt_cv_prog_gnu_ld"
8506
8507if test -n "$ac_tool_prefix"; then
8508  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8509set dummy ${ac_tool_prefix}ar; ac_word=$2
8510echo "$as_me:$LINENO: checking for $ac_word" >&5
8511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8512if test "${ac_cv_prog_AR+set}" = set; then
8513  echo $ECHO_N "(cached) $ECHO_C" >&6
8514else
8515  if test -n "$AR"; then
8516  ac_cv_prog_AR="$AR" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521  IFS=$as_save_IFS
8522  test -z "$as_dir" && as_dir=.
8523  for ac_exec_ext in '' $ac_executable_extensions; do
8524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525    ac_cv_prog_AR="${ac_tool_prefix}ar"
8526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527    break 2
8528  fi
8529done
8530done
8531
8532fi
8533fi
8534AR=$ac_cv_prog_AR
8535if test -n "$AR"; then
8536  echo "$as_me:$LINENO: result: $AR" >&5
8537echo "${ECHO_T}$AR" >&6
8538else
8539  echo "$as_me:$LINENO: result: no" >&5
8540echo "${ECHO_T}no" >&6
8541fi
8542
8543fi
8544if test -z "$ac_cv_prog_AR"; then
8545  ac_ct_AR=$AR
8546  # Extract the first word of "ar", so it can be a program name with args.
8547set dummy ar; ac_word=$2
8548echo "$as_me:$LINENO: checking for $ac_word" >&5
8549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8550if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  if test -n "$ac_ct_AR"; then
8554  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559  IFS=$as_save_IFS
8560  test -z "$as_dir" && as_dir=.
8561  for ac_exec_ext in '' $ac_executable_extensions; do
8562  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563    ac_cv_prog_ac_ct_AR="ar"
8564    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8565    break 2
8566  fi
8567done
8568done
8569
8570  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8571fi
8572fi
8573ac_ct_AR=$ac_cv_prog_ac_ct_AR
8574if test -n "$ac_ct_AR"; then
8575  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8576echo "${ECHO_T}$ac_ct_AR" >&6
8577else
8578  echo "$as_me:$LINENO: result: no" >&5
8579echo "${ECHO_T}no" >&6
8580fi
8581
8582  AR=$ac_ct_AR
8583else
8584  AR="$ac_cv_prog_AR"
8585fi
8586
8587if test -n "$ac_tool_prefix"; then
8588  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8589set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8590echo "$as_me:$LINENO: checking for $ac_word" >&5
8591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8592if test "${ac_cv_prog_RANLIB+set}" = set; then
8593  echo $ECHO_N "(cached) $ECHO_C" >&6
8594else
8595  if test -n "$RANLIB"; then
8596  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601  IFS=$as_save_IFS
8602  test -z "$as_dir" && as_dir=.
8603  for ac_exec_ext in '' $ac_executable_extensions; do
8604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8607    break 2
8608  fi
8609done
8610done
8611
8612fi
8613fi
8614RANLIB=$ac_cv_prog_RANLIB
8615if test -n "$RANLIB"; then
8616  echo "$as_me:$LINENO: result: $RANLIB" >&5
8617echo "${ECHO_T}$RANLIB" >&6
8618else
8619  echo "$as_me:$LINENO: result: no" >&5
8620echo "${ECHO_T}no" >&6
8621fi
8622
8623fi
8624if test -z "$ac_cv_prog_RANLIB"; then
8625  ac_ct_RANLIB=$RANLIB
8626  # Extract the first word of "ranlib", so it can be a program name with args.
8627set dummy ranlib; ac_word=$2
8628echo "$as_me:$LINENO: checking for $ac_word" >&5
8629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8630if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8631  echo $ECHO_N "(cached) $ECHO_C" >&6
8632else
8633  if test -n "$ac_ct_RANLIB"; then
8634  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8635else
8636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637for as_dir in $PATH
8638do
8639  IFS=$as_save_IFS
8640  test -z "$as_dir" && as_dir=.
8641  for ac_exec_ext in '' $ac_executable_extensions; do
8642  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643    ac_cv_prog_ac_ct_RANLIB="ranlib"
8644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645    break 2
8646  fi
8647done
8648done
8649
8650  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8651fi
8652fi
8653ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8654if test -n "$ac_ct_RANLIB"; then
8655  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8656echo "${ECHO_T}$ac_ct_RANLIB" >&6
8657else
8658  echo "$as_me:$LINENO: result: no" >&5
8659echo "${ECHO_T}no" >&6
8660fi
8661
8662  RANLIB=$ac_ct_RANLIB
8663else
8664  RANLIB="$ac_cv_prog_RANLIB"
8665fi
8666
8667if test -n "$ac_tool_prefix"; then
8668  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8669set dummy ${ac_tool_prefix}strip; ac_word=$2
8670echo "$as_me:$LINENO: checking for $ac_word" >&5
8671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672if test "${ac_cv_prog_STRIP+set}" = set; then
8673  echo $ECHO_N "(cached) $ECHO_C" >&6
8674else
8675  if test -n "$STRIP"; then
8676  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8677else
8678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681  IFS=$as_save_IFS
8682  test -z "$as_dir" && as_dir=.
8683  for ac_exec_ext in '' $ac_executable_extensions; do
8684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8685    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8687    break 2
8688  fi
8689done
8690done
8691
8692fi
8693fi
8694STRIP=$ac_cv_prog_STRIP
8695if test -n "$STRIP"; then
8696  echo "$as_me:$LINENO: result: $STRIP" >&5
8697echo "${ECHO_T}$STRIP" >&6
8698else
8699  echo "$as_me:$LINENO: result: no" >&5
8700echo "${ECHO_T}no" >&6
8701fi
8702
8703fi
8704if test -z "$ac_cv_prog_STRIP"; then
8705  ac_ct_STRIP=$STRIP
8706  # Extract the first word of "strip", so it can be a program name with args.
8707set dummy strip; ac_word=$2
8708echo "$as_me:$LINENO: checking for $ac_word" >&5
8709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8710if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8711  echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713  if test -n "$ac_ct_STRIP"; then
8714  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8715else
8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717for as_dir in $PATH
8718do
8719  IFS=$as_save_IFS
8720  test -z "$as_dir" && as_dir=.
8721  for ac_exec_ext in '' $ac_executable_extensions; do
8722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8723    ac_cv_prog_ac_ct_STRIP="strip"
8724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8725    break 2
8726  fi
8727done
8728done
8729
8730  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8731fi
8732fi
8733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8734if test -n "$ac_ct_STRIP"; then
8735  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8736echo "${ECHO_T}$ac_ct_STRIP" >&6
8737else
8738  echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
8740fi
8741
8742  STRIP=$ac_ct_STRIP
8743else
8744  STRIP="$ac_cv_prog_STRIP"
8745fi
8746
8747
8748old_CC="$CC"
8749old_CFLAGS="$CFLAGS"
8750
8751# Set sane defaults for various variables
8752test -z "$AR" && AR=ar
8753test -z "$AR_FLAGS" && AR_FLAGS=cru
8754test -z "$AS" && AS=as
8755test -z "$CC" && CC=cc
8756test -z "$LTCC" && LTCC=$CC
8757test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8758test -z "$DLLTOOL" && DLLTOOL=dlltool
8759test -z "$LD" && LD=ld
8760test -z "$LN_S" && LN_S="ln -s"
8761test -z "$MAGIC_CMD" && MAGIC_CMD=file
8762test -z "$NM" && NM=nm
8763test -z "$SED" && SED=sed
8764test -z "$OBJDUMP" && OBJDUMP=objdump
8765test -z "$RANLIB" && RANLIB=:
8766test -z "$STRIP" && STRIP=:
8767test -z "$ac_objext" && ac_objext=o
8768
8769# Determine commands to create old-style static archives.
8770old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8771old_postinstall_cmds='chmod 644 $oldlib'
8772old_postuninstall_cmds=
8773
8774if test -n "$RANLIB"; then
8775  case $host_os in
8776  openbsd*)
8777    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8778    ;;
8779  *)
8780    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8781    ;;
8782  esac
8783  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8784fi
8785
8786for cc_temp in $compiler""; do
8787  case $cc_temp in
8788    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8789    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8790    \-*) ;;
8791    *) break;;
8792  esac
8793done
8794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8795
8796
8797# Only perform the check for file, if the check method requires it
8798case $deplibs_check_method in
8799file_magic*)
8800  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8801    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8802echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8803if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8804  echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806  case $MAGIC_CMD in
8807[\\/*] |  ?:[\\/]*)
8808  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8809  ;;
8810*)
8811  lt_save_MAGIC_CMD="$MAGIC_CMD"
8812  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8813  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8814  for ac_dir in $ac_dummy; do
8815    IFS="$lt_save_ifs"
8816    test -z "$ac_dir" && ac_dir=.
8817    if test -f $ac_dir/${ac_tool_prefix}file; then
8818      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8819      if test -n "$file_magic_test_file"; then
8820        case $deplibs_check_method in
8821        "file_magic "*)
8822          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8823          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8824          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8825            $EGREP "$file_magic_regex" > /dev/null; then
8826            :
8827          else
8828            cat <<EOF 1>&2
8829
8830*** Warning: the command libtool uses to detect shared libraries,
8831*** $file_magic_cmd, produces output that libtool cannot recognize.
8832*** The result is that libtool may fail to recognize shared libraries
8833*** as such.  This will affect the creation of libtool libraries that
8834*** depend on shared libraries, but programs linked with such libtool
8835*** libraries will work regardless of this problem.  Nevertheless, you
8836*** may want to report the problem to your system manager and/or to
8837*** bug-libtool@gnu.org
8838
8839EOF
8840          fi ;;
8841        esac
8842      fi
8843      break
8844    fi
8845  done
8846  IFS="$lt_save_ifs"
8847  MAGIC_CMD="$lt_save_MAGIC_CMD"
8848  ;;
8849esac
8850fi
8851
8852MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8853if test -n "$MAGIC_CMD"; then
8854  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8855echo "${ECHO_T}$MAGIC_CMD" >&6
8856else
8857  echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6
8859fi
8860
8861if test -z "$lt_cv_path_MAGIC_CMD"; then
8862  if test -n "$ac_tool_prefix"; then
8863    echo "$as_me:$LINENO: checking for file" >&5
8864echo $ECHO_N "checking for file... $ECHO_C" >&6
8865if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8866  echo $ECHO_N "(cached) $ECHO_C" >&6
8867else
8868  case $MAGIC_CMD in
8869[\\/*] |  ?:[\\/]*)
8870  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8871  ;;
8872*)
8873  lt_save_MAGIC_CMD="$MAGIC_CMD"
8874  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8875  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8876  for ac_dir in $ac_dummy; do
8877    IFS="$lt_save_ifs"
8878    test -z "$ac_dir" && ac_dir=.
8879    if test -f $ac_dir/file; then
8880      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8881      if test -n "$file_magic_test_file"; then
8882        case $deplibs_check_method in
8883        "file_magic "*)
8884          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8885          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8886          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8887            $EGREP "$file_magic_regex" > /dev/null; then
8888            :
8889          else
8890            cat <<EOF 1>&2
8891
8892*** Warning: the command libtool uses to detect shared libraries,
8893*** $file_magic_cmd, produces output that libtool cannot recognize.
8894*** The result is that libtool may fail to recognize shared libraries
8895*** as such.  This will affect the creation of libtool libraries that
8896*** depend on shared libraries, but programs linked with such libtool
8897*** libraries will work regardless of this problem.  Nevertheless, you
8898*** may want to report the problem to your system manager and/or to
8899*** bug-libtool@gnu.org
8900
8901EOF
8902          fi ;;
8903        esac
8904      fi
8905      break
8906    fi
8907  done
8908  IFS="$lt_save_ifs"
8909  MAGIC_CMD="$lt_save_MAGIC_CMD"
8910  ;;
8911esac
8912fi
8913
8914MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8915if test -n "$MAGIC_CMD"; then
8916  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8917echo "${ECHO_T}$MAGIC_CMD" >&6
8918else
8919  echo "$as_me:$LINENO: result: no" >&5
8920echo "${ECHO_T}no" >&6
8921fi
8922
8923  else
8924    MAGIC_CMD=:
8925  fi
8926fi
8927
8928  fi
8929  ;;
8930esac
8931
8932enable_dlopen=no
8933enable_win32_dll=no
8934
8935# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8936if test "${enable_libtool_lock+set}" = set; then
8937  enableval="$enable_libtool_lock"
8938
8939fi;
8940test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8941
8942
8943# Check whether --with-pic or --without-pic was given.
8944if test "${with_pic+set}" = set; then
8945  withval="$with_pic"
8946  pic_mode="$withval"
8947else
8948  pic_mode=default
8949fi;
8950test -z "$pic_mode" && pic_mode=default
8951
8952# Use C for the default configuration in the libtool script
8953tagname=
8954lt_save_CC="$CC"
8955ac_ext=c
8956ac_cpp='$CPP $CPPFLAGS'
8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960
8961
8962# Source file extension for C test sources.
8963ac_ext=c
8964
8965# Object file extension for compiled C test sources.
8966objext=o
8967objext=$objext
8968
8969# Code to be used in simple compile tests
8970lt_simple_compile_test_code="int some_variable = 0;\n"
8971
8972# Code to be used in simple link tests
8973lt_simple_link_test_code='int main(){return(0);}\n'
8974
8975
8976# If no C compiler was specified, use CC.
8977LTCC=${LTCC-"$CC"}
8978
8979# If no C compiler flags were specified, use CFLAGS.
8980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8981
8982# Allow CC to be a program name with arguments.
8983compiler=$CC
8984
8985
8986# save warnings/boilerplate of simple test code
8987ac_outfile=conftest.$ac_objext
8988printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8990_lt_compiler_boilerplate=`cat conftest.err`
8991$rm conftest*
8992
8993ac_outfile=conftest.$ac_objext
8994printf "$lt_simple_link_test_code" >conftest.$ac_ext
8995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8996_lt_linker_boilerplate=`cat conftest.err`
8997$rm conftest*
8998
8999
9000## CAVEAT EMPTOR:
9001## There is no encapsulation within the following macros, do not change
9002## the running order or otherwise move them around unless you know exactly
9003## what you are doing...
9004
9005lt_prog_compiler_no_builtin_flag=
9006
9007if test "$GCC" = yes; then
9008  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9009
9010
9011echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9012echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9013if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9014  echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016  lt_cv_prog_compiler_rtti_exceptions=no
9017  ac_outfile=conftest.$ac_objext
9018   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9019   lt_compiler_flag="-fno-rtti -fno-exceptions"
9020   # Insert the option either (1) after the last *FLAGS variable, or
9021   # (2) before a word containing "conftest.", or (3) at the end.
9022   # Note that $ac_compile itself does not contain backslashes and begins
9023   # with a dollar sign (not a hyphen), so the echo should work correctly.
9024   # The option is referenced via a variable to avoid confusing sed.
9025   lt_compile=`echo "$ac_compile" | $SED \
9026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9028   -e 's:$: $lt_compiler_flag:'`
9029   (eval echo "\"\$as_me:9029: $lt_compile\"" >&5)
9030   (eval "$lt_compile" 2>conftest.err)
9031   ac_status=$?
9032   cat conftest.err >&5
9033   echo "$as_me:9033: \$? = $ac_status" >&5
9034   if (exit $ac_status) && test -s "$ac_outfile"; then
9035     # The compiler can only warn and ignore the option if not recognized
9036     # So say no if there are warnings other than the usual output.
9037     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9038     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9039     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9040       lt_cv_prog_compiler_rtti_exceptions=yes
9041     fi
9042   fi
9043   $rm conftest*
9044
9045fi
9046echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9047echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9048
9049if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9050    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9051else
9052    :
9053fi
9054
9055fi
9056
9057lt_prog_compiler_wl=
9058lt_prog_compiler_pic=
9059lt_prog_compiler_static=
9060
9061echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9062echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9063
9064  if test "$GCC" = yes; then
9065    lt_prog_compiler_wl='-Wl,'
9066    lt_prog_compiler_static='-static'
9067
9068    case $host_os in
9069      aix*)
9070      # All AIX code is PIC.
9071      if test "$host_cpu" = ia64; then
9072        # AIX 5 now supports IA64 processor
9073        lt_prog_compiler_static='-Bstatic'
9074      fi
9075      ;;
9076
9077    amigaos*)
9078      # FIXME: we need at least 68020 code to build shared libraries, but
9079      # adding the `-m68020' flag to GCC prevents building anything better,
9080      # like `-m68040'.
9081      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9082      ;;
9083
9084    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9085      # PIC is the default for these OSes.
9086      ;;
9087
9088    mingw* | pw32* | os2*)
9089      # This hack is so that the source file can tell whether it is being
9090      # built for inclusion in a dll (and should export symbols for example).
9091      lt_prog_compiler_pic='-DDLL_EXPORT'
9092      ;;
9093
9094    darwin* | rhapsody*)
9095      # PIC is the default on this platform
9096      # Common symbols not allowed in MH_DYLIB files
9097      lt_prog_compiler_pic='-fno-common'
9098      ;;
9099
9100    interix3*)
9101      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9102      # Instead, we relocate shared libraries at runtime.
9103      ;;
9104
9105    msdosdjgpp*)
9106      # Just because we use GCC doesn't mean we suddenly get shared libraries
9107      # on systems that don't support them.
9108      lt_prog_compiler_can_build_shared=no
9109      enable_shared=no
9110      ;;
9111
9112    sysv4*MP*)
9113      if test -d /usr/nec; then
9114        lt_prog_compiler_pic=-Kconform_pic
9115      fi
9116      ;;
9117
9118    hpux*)
9119      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9120      # not for PA HP-UX.
9121      case $host_cpu in
9122      hppa*64*|ia64*)
9123        # +Z the default
9124        ;;
9125      *)
9126        lt_prog_compiler_pic='-fPIC'
9127        ;;
9128      esac
9129      ;;
9130
9131    *)
9132      lt_prog_compiler_pic='-fPIC'
9133      ;;
9134    esac
9135  else
9136    # PORTME Check for flag to pass linker flags through the system compiler.
9137    case $host_os in
9138    aix*)
9139      lt_prog_compiler_wl='-Wl,'
9140      if test "$host_cpu" = ia64; then
9141        # AIX 5 now supports IA64 processor
9142        lt_prog_compiler_static='-Bstatic'
9143      else
9144        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9145      fi
9146      ;;
9147      darwin*)
9148        # PIC is the default on this platform
9149        # Common symbols not allowed in MH_DYLIB files
9150       case $cc_basename in
9151         xlc*)
9152         lt_prog_compiler_pic='-qnocommon'
9153         lt_prog_compiler_wl='-Wl,'
9154         ;;
9155       esac
9156       ;;
9157
9158    mingw* | pw32* | os2*)
9159      # This hack is so that the source file can tell whether it is being
9160      # built for inclusion in a dll (and should export symbols for example).
9161      lt_prog_compiler_pic='-DDLL_EXPORT'
9162      ;;
9163
9164    hpux9* | hpux10* | hpux11*)
9165      lt_prog_compiler_wl='-Wl,'
9166      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9167      # not for PA HP-UX.
9168      case $host_cpu in
9169      hppa*64*|ia64*)
9170        # +Z the default
9171        ;;
9172      *)
9173        lt_prog_compiler_pic='+Z'
9174        ;;
9175      esac
9176      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9177      lt_prog_compiler_static='${wl}-a ${wl}archive'
9178      ;;
9179
9180    irix5* | irix6* | nonstopux*)
9181      lt_prog_compiler_wl='-Wl,'
9182      # PIC (with -KPIC) is the default.
9183      lt_prog_compiler_static='-non_shared'
9184      ;;
9185
9186    newsos6)
9187      lt_prog_compiler_pic='-KPIC'
9188      lt_prog_compiler_static='-Bstatic'
9189      ;;
9190
9191    linux*)
9192      case $cc_basename in
9193      icc* | ecc*)
9194        lt_prog_compiler_wl='-Wl,'
9195        lt_prog_compiler_pic='-KPIC'
9196        lt_prog_compiler_static='-static'
9197        ;;
9198      pgcc* | pgf77* | pgf90* | pgf95*)
9199        # Portland Group compilers (*not* the Pentium gcc compiler,
9200        # which looks to be a dead project)
9201        lt_prog_compiler_wl='-Wl,'
9202        lt_prog_compiler_pic='-fpic'
9203        lt_prog_compiler_static='-Bstatic'
9204        ;;
9205      ccc*)
9206        lt_prog_compiler_wl='-Wl,'
9207        # All Alpha code is PIC.
9208        lt_prog_compiler_static='-non_shared'
9209        ;;
9210      esac
9211      ;;
9212
9213    osf3* | osf4* | osf5*)
9214      lt_prog_compiler_wl='-Wl,'
9215      # All OSF/1 code is PIC.
9216      lt_prog_compiler_static='-non_shared'
9217      ;;
9218
9219    solaris*)
9220      lt_prog_compiler_pic='-KPIC'
9221      lt_prog_compiler_static='-Bstatic'
9222      case $cc_basename in
9223      f77* | f90* | f95*)
9224        lt_prog_compiler_wl='-Qoption ld ';;
9225      *)
9226        lt_prog_compiler_wl='-Wl,';;
9227      esac
9228      ;;
9229
9230    sunos4*)
9231      lt_prog_compiler_wl='-Qoption ld '
9232      lt_prog_compiler_pic='-PIC'
9233      lt_prog_compiler_static='-Bstatic'
9234      ;;
9235
9236    sysv4 | sysv4.2uw2* | sysv4.3*)
9237      lt_prog_compiler_wl='-Wl,'
9238      lt_prog_compiler_pic='-KPIC'
9239      lt_prog_compiler_static='-Bstatic'
9240      ;;
9241
9242    sysv4*MP*)
9243      if test -d /usr/nec ;then
9244        lt_prog_compiler_pic='-Kconform_pic'
9245        lt_prog_compiler_static='-Bstatic'
9246      fi
9247      ;;
9248
9249    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9250      lt_prog_compiler_wl='-Wl,'
9251      lt_prog_compiler_pic='-KPIC'
9252      lt_prog_compiler_static='-Bstatic'
9253      ;;
9254
9255    unicos*)
9256      lt_prog_compiler_wl='-Wl,'
9257      lt_prog_compiler_can_build_shared=no
9258      ;;
9259
9260    uts4*)
9261      lt_prog_compiler_pic='-pic'
9262      lt_prog_compiler_static='-Bstatic'
9263      ;;
9264
9265    *)
9266      lt_prog_compiler_can_build_shared=no
9267      ;;
9268    esac
9269  fi
9270
9271echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9272echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9273
9274#
9275# Check to make sure the PIC flag actually works.
9276#
9277if test -n "$lt_prog_compiler_pic"; then
9278
9279echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9280echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9281if test "${lt_prog_compiler_pic_works+set}" = set; then
9282  echo $ECHO_N "(cached) $ECHO_C" >&6
9283else
9284  lt_prog_compiler_pic_works=no
9285  ac_outfile=conftest.$ac_objext
9286   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9287   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9288   # Insert the option either (1) after the last *FLAGS variable, or
9289   # (2) before a word containing "conftest.", or (3) at the end.
9290   # Note that $ac_compile itself does not contain backslashes and begins
9291   # with a dollar sign (not a hyphen), so the echo should work correctly.
9292   # The option is referenced via a variable to avoid confusing sed.
9293   lt_compile=`echo "$ac_compile" | $SED \
9294   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9295   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9296   -e 's:$: $lt_compiler_flag:'`
9297   (eval echo "\"\$as_me:9297: $lt_compile\"" >&5)
9298   (eval "$lt_compile" 2>conftest.err)
9299   ac_status=$?
9300   cat conftest.err >&5
9301   echo "$as_me:9301: \$? = $ac_status" >&5
9302   if (exit $ac_status) && test -s "$ac_outfile"; then
9303     # The compiler can only warn and ignore the option if not recognized
9304     # So say no if there are warnings other than the usual output.
9305     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9306     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9307     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9308       lt_prog_compiler_pic_works=yes
9309     fi
9310   fi
9311   $rm conftest*
9312
9313fi
9314echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9315echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9316
9317if test x"$lt_prog_compiler_pic_works" = xyes; then
9318    case $lt_prog_compiler_pic in
9319     "" | " "*) ;;
9320     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9321     esac
9322else
9323    lt_prog_compiler_pic=
9324     lt_prog_compiler_can_build_shared=no
9325fi
9326
9327fi
9328case $host_os in
9329  # For platforms which do not support PIC, -DPIC is meaningless:
9330  *djgpp*)
9331    lt_prog_compiler_pic=
9332    ;;
9333  *)
9334    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9335    ;;
9336esac
9337
9338#
9339# Check to make sure the static flag actually works.
9340#
9341wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9342echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9343echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9344if test "${lt_prog_compiler_static_works+set}" = set; then
9345  echo $ECHO_N "(cached) $ECHO_C" >&6
9346else
9347  lt_prog_compiler_static_works=no
9348   save_LDFLAGS="$LDFLAGS"
9349   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9350   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9351   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9352     # The linker can only warn and ignore the option if not recognized
9353     # So say no if there are warnings
9354     if test -s conftest.err; then
9355       # Append any errors to the config.log.
9356       cat conftest.err 1>&5
9357       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9358       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9359       if diff conftest.exp conftest.er2 >/dev/null; then
9360         lt_prog_compiler_static_works=yes
9361       fi
9362     else
9363       lt_prog_compiler_static_works=yes
9364     fi
9365   fi
9366   $rm conftest*
9367   LDFLAGS="$save_LDFLAGS"
9368
9369fi
9370echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9371echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9372
9373if test x"$lt_prog_compiler_static_works" = xyes; then
9374    :
9375else
9376    lt_prog_compiler_static=
9377fi
9378
9379
9380echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9381echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9382if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9383  echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385  lt_cv_prog_compiler_c_o=no
9386   $rm -r conftest 2>/dev/null
9387   mkdir conftest
9388   cd conftest
9389   mkdir out
9390   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9391
9392   lt_compiler_flag="-o out/conftest2.$ac_objext"
9393   # Insert the option either (1) after the last *FLAGS variable, or
9394   # (2) before a word containing "conftest.", or (3) at the end.
9395   # Note that $ac_compile itself does not contain backslashes and begins
9396   # with a dollar sign (not a hyphen), so the echo should work correctly.
9397   lt_compile=`echo "$ac_compile" | $SED \
9398   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9399   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9400   -e 's:$: $lt_compiler_flag:'`
9401   (eval echo "\"\$as_me:9401: $lt_compile\"" >&5)
9402   (eval "$lt_compile" 2>out/conftest.err)
9403   ac_status=$?
9404   cat out/conftest.err >&5
9405   echo "$as_me:9405: \$? = $ac_status" >&5
9406   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9407   then
9408     # The compiler can only warn and ignore the option if not recognized
9409     # So say no if there are warnings
9410     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9411     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9412     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9413       lt_cv_prog_compiler_c_o=yes
9414     fi
9415   fi
9416   chmod u+w . 2>&5
9417   $rm conftest*
9418   # SGI C++ compiler will create directory out/ii_files/ for
9419   # template instantiation
9420   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9421   $rm out/* && rmdir out
9422   cd ..
9423   rmdir conftest
9424   $rm conftest*
9425
9426fi
9427echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9428echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9429
9430
9431hard_links="nottested"
9432if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9433  # do not overwrite the value of need_locks provided by the user
9434  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9435echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9436  hard_links=yes
9437  $rm conftest*
9438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9439  touch conftest.a
9440  ln conftest.a conftest.b 2>&5 || hard_links=no
9441  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9442  echo "$as_me:$LINENO: result: $hard_links" >&5
9443echo "${ECHO_T}$hard_links" >&6
9444  if test "$hard_links" = no; then
9445    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9446echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9447    need_locks=warn
9448  fi
9449else
9450  need_locks=no
9451fi
9452
9453echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9454echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9455
9456  runpath_var=
9457  allow_undefined_flag=
9458  enable_shared_with_static_runtimes=no
9459  archive_cmds=
9460  archive_expsym_cmds=
9461  old_archive_From_new_cmds=
9462  old_archive_from_expsyms_cmds=
9463  export_dynamic_flag_spec=
9464  whole_archive_flag_spec=
9465  thread_safe_flag_spec=
9466  hardcode_libdir_flag_spec=
9467  hardcode_libdir_flag_spec_ld=
9468  hardcode_libdir_separator=
9469  hardcode_direct=no
9470  hardcode_minus_L=no
9471  hardcode_shlibpath_var=unsupported
9472  link_all_deplibs=unknown
9473  hardcode_automatic=no
9474  module_cmds=
9475  module_expsym_cmds=
9476  always_export_symbols=no
9477  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9478  # include_expsyms should be a list of space-separated symbols to be *always*
9479  # included in the symbol list
9480  include_expsyms=
9481  # exclude_expsyms can be an extended regexp of symbols to exclude
9482  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9483  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9484  # as well as any symbol that contains `d'.
9485  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9486  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9487  # platforms (ab)use it in PIC code, but their linkers get confused if
9488  # the symbol is explicitly referenced.  Since portable code cannot
9489  # rely on this symbol name, it's probably fine to never include it in
9490  # preloaded symbol tables.
9491  extract_expsyms_cmds=
9492  # Just being paranoid about ensuring that cc_basename is set.
9493  for cc_temp in $compiler""; do
9494  case $cc_temp in
9495    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9496    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9497    \-*) ;;
9498    *) break;;
9499  esac
9500done
9501cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9502
9503  case $host_os in
9504  cygwin* | mingw* | pw32*)
9505    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9506    # When not using gcc, we currently assume that we are using
9507    # Microsoft Visual C++.
9508    if test "$GCC" != yes; then
9509      with_gnu_ld=no
9510    fi
9511    ;;
9512  interix*)
9513    # we just hope/assume this is gcc and not c89 (= MSVC++)
9514    with_gnu_ld=yes
9515    ;;
9516  openbsd*)
9517    with_gnu_ld=no
9518    ;;
9519  esac
9520
9521  ld_shlibs=yes
9522  if test "$with_gnu_ld" = yes; then
9523    # If archive_cmds runs LD, not CC, wlarc should be empty
9524    wlarc='${wl}'
9525
9526    # Set some defaults for GNU ld with shared library support. These
9527    # are reset later if shared libraries are not supported. Putting them
9528    # here allows them to be overridden if necessary.
9529    runpath_var=LD_RUN_PATH
9530    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9531    export_dynamic_flag_spec='${wl}--export-dynamic'
9532    # ancient GNU ld didn't support --whole-archive et. al.
9533    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9534        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9535      else
9536        whole_archive_flag_spec=
9537    fi
9538    supports_anon_versioning=no
9539    case `$LD -v 2>/dev/null` in
9540      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9541      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9542      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9543      *\ 2.11.*) ;; # other 2.11 versions
9544      *) supports_anon_versioning=yes ;;
9545    esac
9546
9547    # See if GNU ld supports shared libraries.
9548    case $host_os in
9549    aix3* | aix4* | aix5*)
9550      # On AIX/PPC, the GNU linker is very broken
9551      if test "$host_cpu" != ia64; then
9552        ld_shlibs=no
9553        cat <<EOF 1>&2
9554
9555*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9556*** to be unable to reliably create shared libraries on AIX.
9557*** Therefore, libtool is disabling shared libraries support.  If you
9558*** really care for shared libraries, you may want to modify your PATH
9559*** so that a non-GNU linker is found, and then restart.
9560
9561EOF
9562      fi
9563      ;;
9564
9565    amigaos*)
9566      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)'
9567      hardcode_libdir_flag_spec='-L$libdir'
9568      hardcode_minus_L=yes
9569
9570      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9571      # that the semantics of dynamic libraries on AmigaOS, at least up
9572      # to version 4, is to share data among multiple programs linked
9573      # with the same dynamic library.  Since this doesn't match the
9574      # behavior of shared libraries on other platforms, we can't use
9575      # them.
9576      ld_shlibs=no
9577      ;;
9578
9579    beos*)
9580      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9581        allow_undefined_flag=unsupported
9582        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9583        # support --undefined.  This deserves some investigation.  FIXME
9584        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9585      else
9586        ld_shlibs=no
9587      fi
9588      ;;
9589
9590    cygwin* | mingw* | pw32*)
9591      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9592      # as there is no search path for DLLs.
9593      hardcode_libdir_flag_spec='-L$libdir'
9594      allow_undefined_flag=unsupported
9595      always_export_symbols=no
9596      enable_shared_with_static_runtimes=yes
9597      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9598
9599      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9600        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9601        # If the export-symbols file already is a .def file (1st line
9602        # is EXPORTS), use it as is; otherwise, prepend...
9603        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9604          cp $export_symbols $output_objdir/$soname.def;
9605        else
9606          echo EXPORTS > $output_objdir/$soname.def;
9607          cat $export_symbols >> $output_objdir/$soname.def;
9608        fi~
9609        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9610      else
9611        ld_shlibs=no
9612      fi
9613      ;;
9614
9615    interix3*)
9616      hardcode_direct=no
9617      hardcode_shlibpath_var=no
9618      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9619      export_dynamic_flag_spec='${wl}-E'
9620      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9621      # Instead, shared libraries are loaded at an image base (0x10000000 by
9622      # default) and relocated if they conflict, which is a slow very memory
9623      # consuming and fragmenting process.  To avoid this, we pick a random,
9624      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9625      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9626      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9627      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'
9628      ;;
9629
9630    linux*)
9631      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9632        tmp_addflag=
9633        case $cc_basename,$host_cpu in
9634        pgcc*)                          # Portland Group C compiler
9635          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'
9636          tmp_addflag=' $pic_flag'
9637          ;;
9638        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9639          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'
9640          tmp_addflag=' $pic_flag -Mnomain' ;;
9641        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9642          tmp_addflag=' -i_dynamic' ;;
9643        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9644          tmp_addflag=' -i_dynamic -nofor_main' ;;
9645        ifc* | ifort*)                  # Intel Fortran compiler
9646          tmp_addflag=' -nofor_main' ;;
9647        esac
9648        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649
9650        if test $supports_anon_versioning = yes; then
9651          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9652  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9653  $echo "local: *; };" >> $output_objdir/$libname.ver~
9654          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9655        fi
9656      else
9657        ld_shlibs=no
9658      fi
9659      ;;
9660
9661    netbsd*)
9662      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9663        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9664        wlarc=
9665      else
9666        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9668      fi
9669      ;;
9670
9671    solaris*)
9672      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9673        ld_shlibs=no
9674        cat <<EOF 1>&2
9675
9676*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9677*** create shared libraries on Solaris systems.  Therefore, libtool
9678*** is disabling shared libraries support.  We urge you to upgrade GNU
9679*** binutils to release 2.9.1 or newer.  Another option is to modify
9680*** your PATH or compiler configuration so that the native linker is
9681*** used, and then restart.
9682
9683EOF
9684      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9685        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9687      else
9688        ld_shlibs=no
9689      fi
9690      ;;
9691
9692    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9693      case `$LD -v 2>&1` in
9694        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9695        ld_shlibs=no
9696        cat <<_LT_EOF 1>&2
9697
9698*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9699*** reliably create shared libraries on SCO systems.  Therefore, libtool
9700*** is disabling shared libraries support.  We urge you to upgrade GNU
9701*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9702*** your PATH or compiler configuration so that the native linker is
9703*** used, and then restart.
9704
9705_LT_EOF
9706        ;;
9707        *)
9708          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9709            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9710            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9711            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9712          else
9713            ld_shlibs=no
9714          fi
9715        ;;
9716      esac
9717      ;;
9718
9719    sunos4*)
9720      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721      wlarc=
9722      hardcode_direct=yes
9723      hardcode_shlibpath_var=no
9724      ;;
9725
9726    *)
9727      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9728        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9730      else
9731        ld_shlibs=no
9732      fi
9733      ;;
9734    esac
9735
9736    if test "$ld_shlibs" = no; then
9737      runpath_var=
9738      hardcode_libdir_flag_spec=
9739      export_dynamic_flag_spec=
9740      whole_archive_flag_spec=
9741    fi
9742  else
9743    # PORTME fill in a description of your system's linker (not GNU ld)
9744    case $host_os in
9745    aix3*)
9746      allow_undefined_flag=unsupported
9747      always_export_symbols=yes
9748      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'
9749      # Note: this linker hardcodes the directories in LIBPATH if there
9750      # are no directories specified by -L.
9751      hardcode_minus_L=yes
9752      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9753        # Neither direct hardcoding nor static linking is supported with a
9754        # broken collect2.
9755        hardcode_direct=unsupported
9756      fi
9757      ;;
9758
9759    aix4* | aix5*)
9760      if test "$host_cpu" = ia64; then
9761        # On IA64, the linker does run time linking by default, so we don't
9762        # have to do anything special.
9763        aix_use_runtimelinking=no
9764        exp_sym_flag='-Bexport'
9765        no_entry_flag=""
9766      else
9767        # If we're using GNU nm, then we don't want the "-C" option.
9768        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9769        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9770          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'
9771        else
9772          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'
9773        fi
9774        aix_use_runtimelinking=no
9775
9776        # Test if we are trying to use run time linking or normal
9777        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9778        # need to do runtime linking.
9779        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9780          for ld_flag in $LDFLAGS; do
9781          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9782            aix_use_runtimelinking=yes
9783            break
9784          fi
9785          done
9786          ;;
9787        esac
9788
9789        exp_sym_flag='-bexport'
9790        no_entry_flag='-bnoentry'
9791      fi
9792
9793      # When large executables or shared objects are built, AIX ld can
9794      # have problems creating the table of contents.  If linking a library
9795      # or program results in "error TOC overflow" add -mminimal-toc to
9796      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9797      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9798
9799      archive_cmds=''
9800      hardcode_direct=yes
9801      hardcode_libdir_separator=':'
9802      link_all_deplibs=yes
9803
9804      if test "$GCC" = yes; then
9805        case $host_os in aix4.[012]|aix4.[012].*)
9806        # We only want to do this on AIX 4.2 and lower, the check
9807        # below for broken collect2 doesn't work under 4.3+
9808          collect2name=`${CC} -print-prog-name=collect2`
9809          if test -f "$collect2name" && \
9810           strings "$collect2name" | grep resolve_lib_name >/dev/null
9811          then
9812          # We have reworked collect2
9813          hardcode_direct=yes
9814          else
9815          # We have old collect2
9816          hardcode_direct=unsupported
9817          # It fails to find uninstalled libraries when the uninstalled
9818          # path is not listed in the libpath.  Setting hardcode_minus_L
9819          # to unsupported forces relinking
9820          hardcode_minus_L=yes
9821          hardcode_libdir_flag_spec='-L$libdir'
9822          hardcode_libdir_separator=
9823          fi
9824          ;;
9825        esac
9826        shared_flag='-shared'
9827        if test "$aix_use_runtimelinking" = yes; then
9828          shared_flag="$shared_flag "'${wl}-G'
9829        fi
9830      else
9831        # not using gcc
9832        if test "$host_cpu" = ia64; then
9833        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9834        # chokes on -Wl,-G. The following line is correct:
9835          shared_flag='-G'
9836        else
9837          if test "$aix_use_runtimelinking" = yes; then
9838            shared_flag='${wl}-G'
9839          else
9840            shared_flag='${wl}-bM:SRE'
9841          fi
9842        fi
9843      fi
9844
9845      # It seems that -bexpall does not export symbols beginning with
9846      # underscore (_), so it is better to generate a list of symbols to export.
9847      always_export_symbols=yes
9848      if test "$aix_use_runtimelinking" = yes; then
9849        # Warning - without using the other runtime loading flags (-brtl),
9850        # -berok will link without error, but may produce a broken library.
9851        allow_undefined_flag='-berok'
9852       # Determine the default libpath from the value encoded in an empty executable.
9853       cat >conftest.$ac_ext <<_ACEOF
9854/* confdefs.h.  */
9855_ACEOF
9856cat confdefs.h >>conftest.$ac_ext
9857cat >>conftest.$ac_ext <<_ACEOF
9858/* end confdefs.h.  */
9859
9860#ifdef F77_DUMMY_MAIN
9861
9862#  ifdef __cplusplus
9863     extern "C"
9864#  endif
9865   int F77_DUMMY_MAIN() { return 1; }
9866
9867#endif
9868int
9869main ()
9870{
9871
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876rm -f conftest.$ac_objext conftest$ac_exeext
9877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878  (eval $ac_link) 2>conftest.er1
9879  ac_status=$?
9880  grep -v '^ *+' conftest.er1 >conftest.err
9881  rm -f conftest.er1
9882  cat conftest.err >&5
9883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884  (exit $ac_status); } &&
9885         { ac_try='test -z "$ac_c_werror_flag"
9886                         || test ! -s conftest.err'
9887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888  (eval $ac_try) 2>&5
9889  ac_status=$?
9890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891  (exit $ac_status); }; } &&
9892         { ac_try='test -s conftest$ac_exeext'
9893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894  (eval $ac_try) 2>&5
9895  ac_status=$?
9896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); }; }; then
9898
9899aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9900}'`
9901# Check for a 64-bit object if we didn't find anything.
9902if 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; }
9903}'`; fi
9904else
9905  echo "$as_me: failed program was:" >&5
9906sed 's/^/| /' conftest.$ac_ext >&5
9907
9908fi
9909rm -f conftest.err conftest.$ac_objext \
9910      conftest$ac_exeext conftest.$ac_ext
9911if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9912
9913       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9914        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"
9915       else
9916        if test "$host_cpu" = ia64; then
9917          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9918          allow_undefined_flag="-z nodefs"
9919          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"
9920        else
9921         # Determine the default libpath from the value encoded in an empty executable.
9922         cat >conftest.$ac_ext <<_ACEOF
9923/* confdefs.h.  */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h.  */
9928
9929#ifdef F77_DUMMY_MAIN
9930
9931#  ifdef __cplusplus
9932     extern "C"
9933#  endif
9934   int F77_DUMMY_MAIN() { return 1; }
9935
9936#endif
9937int
9938main ()
9939{
9940
9941  ;
9942  return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext conftest$ac_exeext
9946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947  (eval $ac_link) 2>conftest.er1
9948  ac_status=$?
9949  grep -v '^ *+' conftest.er1 >conftest.err
9950  rm -f conftest.er1
9951  cat conftest.err >&5
9952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953  (exit $ac_status); } &&
9954         { ac_try='test -z "$ac_c_werror_flag"
9955                         || test ! -s conftest.err'
9956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957  (eval $ac_try) 2>&5
9958  ac_status=$?
9959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960  (exit $ac_status); }; } &&
9961         { ac_try='test -s conftest$ac_exeext'
9962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963  (eval $ac_try) 2>&5
9964  ac_status=$?
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); }; }; then
9967
9968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9969}'`
9970# Check for a 64-bit object if we didn't find anything.
9971if 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; }
9972}'`; fi
9973else
9974  echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977fi
9978rm -f conftest.err conftest.$ac_objext \
9979      conftest$ac_exeext conftest.$ac_ext
9980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9981
9982         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9983          # Warning - without using the other run time loading flags,
9984          # -berok will link without error, but may produce a broken library.
9985          no_undefined_flag=' ${wl}-bernotok'
9986          allow_undefined_flag=' ${wl}-berok'
9987          # Exported symbols can be pulled into shared objects from archives
9988          whole_archive_flag_spec='$convenience'
9989          archive_cmds_need_lc=yes
9990          # This is similar to how AIX traditionally builds its shared libraries.
9991          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'
9992        fi
9993      fi
9994      ;;
9995
9996    amigaos*)
9997      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)'
9998      hardcode_libdir_flag_spec='-L$libdir'
9999      hardcode_minus_L=yes
10000      # see comment about different semantics on the GNU ld section
10001      ld_shlibs=no
10002      ;;
10003
10004    bsdi[45]*)
10005      export_dynamic_flag_spec=-rdynamic
10006      ;;
10007
10008    cygwin* | mingw* | pw32*)
10009      # When not using gcc, we currently assume that we are using
10010      # Microsoft Visual C++.
10011      # hardcode_libdir_flag_spec is actually meaningless, as there is
10012      # no search path for DLLs.
10013      hardcode_libdir_flag_spec=' '
10014      allow_undefined_flag=unsupported
10015      # Tell ltmain to make .lib files, not .a files.
10016      libext=lib
10017      # Tell ltmain to make .dll files, not .so files.
10018      shrext_cmds=".dll"
10019      # FIXME: Setting linknames here is a bad hack.
10020      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10021      # The linker will automatically build a .lib file if we build a DLL.
10022      old_archive_From_new_cmds='true'
10023      # FIXME: Should let the user specify the lib program.
10024      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10025      fix_srcfile_path='`cygpath -w "$srcfile"`'
10026      enable_shared_with_static_runtimes=yes
10027      ;;
10028
10029    darwin* | rhapsody*)
10030      case $host_os in
10031        rhapsody* | darwin1.[012])
10032         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10033         ;;
10034       *) # Darwin 1.3 on
10035         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10036           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10037         else
10038           case ${MACOSX_DEPLOYMENT_TARGET} in
10039             10.[012])
10040               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10041               ;;
10042             10.*)
10043               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10044               ;;
10045           esac
10046         fi
10047         ;;
10048      esac
10049      archive_cmds_need_lc=no
10050      hardcode_direct=no
10051      hardcode_automatic=yes
10052      hardcode_shlibpath_var=unsupported
10053      whole_archive_flag_spec=''
10054      link_all_deplibs=yes
10055    if test "$GCC" = yes ; then
10056        output_verbose_link_cmd='echo'
10057        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10058      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10059      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10060      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}'
10061      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}'
10062    else
10063      case $cc_basename in
10064        xlc*)
10065         output_verbose_link_cmd='echo'
10066         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10067         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10068          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10069         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}'
10070          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}'
10071          ;;
10072       *)
10073         ld_shlibs=no
10074          ;;
10075      esac
10076    fi
10077      ;;
10078
10079    dgux*)
10080      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081      hardcode_libdir_flag_spec='-L$libdir'
10082      hardcode_shlibpath_var=no
10083      ;;
10084
10085    freebsd1*)
10086      ld_shlibs=no
10087      ;;
10088
10089    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10090    # support.  Future versions do this automatically, but an explicit c++rt0.o
10091    # does not break anything, and helps significantly (at the cost of a little
10092    # extra space).
10093    freebsd2.2*)
10094      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10095      hardcode_libdir_flag_spec='-R$libdir'
10096      hardcode_direct=yes
10097      hardcode_shlibpath_var=no
10098      ;;
10099
10100    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10101    freebsd2*)
10102      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10103      hardcode_direct=yes
10104      hardcode_minus_L=yes
10105      hardcode_shlibpath_var=no
10106      ;;
10107
10108    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10109    freebsd* | kfreebsd*-gnu | dragonfly*)
10110      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10111      hardcode_libdir_flag_spec='-R$libdir'
10112      hardcode_direct=yes
10113      hardcode_shlibpath_var=no
10114      ;;
10115
10116    hpux9*)
10117      if test "$GCC" = yes; then
10118        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'
10119      else
10120        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'
10121      fi
10122      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10123      hardcode_libdir_separator=:
10124      hardcode_direct=yes
10125
10126      # hardcode_minus_L: Not really in the search PATH,
10127      # but as the default location of the library.
10128      hardcode_minus_L=yes
10129      export_dynamic_flag_spec='${wl}-E'
10130      ;;
10131
10132    hpux10*)
10133      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10134        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10135      else
10136        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10137      fi
10138      if test "$with_gnu_ld" = no; then
10139        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140        hardcode_libdir_separator=:
10141
10142        hardcode_direct=yes
10143        export_dynamic_flag_spec='${wl}-E'
10144
10145        # hardcode_minus_L: Not really in the search PATH,
10146        # but as the default location of the library.
10147        hardcode_minus_L=yes
10148      fi
10149      ;;
10150
10151    hpux11*)
10152      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10153        case $host_cpu in
10154        hppa*64*)
10155          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10156          ;;
10157        ia64*)
10158          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10159          ;;
10160        *)
10161          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10162          ;;
10163        esac
10164      else
10165        case $host_cpu in
10166        hppa*64*)
10167          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10168          ;;
10169        ia64*)
10170          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10171          ;;
10172        *)
10173          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10174          ;;
10175        esac
10176      fi
10177      if test "$with_gnu_ld" = no; then
10178        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10179        hardcode_libdir_separator=:
10180
10181        case $host_cpu in
10182        hppa*64*|ia64*)
10183          hardcode_libdir_flag_spec_ld='+b $libdir'
10184          hardcode_direct=no
10185          hardcode_shlibpath_var=no
10186          ;;
10187        *)
10188          hardcode_direct=yes
10189          export_dynamic_flag_spec='${wl}-E'
10190
10191          # hardcode_minus_L: Not really in the search PATH,
10192          # but as the default location of the library.
10193          hardcode_minus_L=yes
10194          ;;
10195        esac
10196      fi
10197      ;;
10198
10199    irix5* | irix6* | nonstopux*)
10200      if test "$GCC" = yes; then
10201        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'
10202      else
10203        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'
10204        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10205      fi
10206      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10207      hardcode_libdir_separator=:
10208      link_all_deplibs=yes
10209      ;;
10210
10211    netbsd*)
10212      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10213        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10214      else
10215        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10216      fi
10217      hardcode_libdir_flag_spec='-R$libdir'
10218      hardcode_direct=yes
10219      hardcode_shlibpath_var=no
10220      ;;
10221
10222    newsos6)
10223      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224      hardcode_direct=yes
10225      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10226      hardcode_libdir_separator=:
10227      hardcode_shlibpath_var=no
10228      ;;
10229
10230    openbsd*)
10231      hardcode_direct=yes
10232      hardcode_shlibpath_var=no
10233      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10236        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10237        export_dynamic_flag_spec='${wl}-E'
10238      else
10239       case $host_os in
10240         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10241           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10242           hardcode_libdir_flag_spec='-R$libdir'
10243           ;;
10244         *)
10245           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10247           ;;
10248       esac
10249      fi
10250      ;;
10251
10252    os2*)
10253      hardcode_libdir_flag_spec='-L$libdir'
10254      hardcode_minus_L=yes
10255      allow_undefined_flag=unsupported
10256      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'
10257      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258      ;;
10259
10260    osf3*)
10261      if test "$GCC" = yes; then
10262        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263        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'
10264      else
10265        allow_undefined_flag=' -expect_unresolved \*'
10266        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'
10267      fi
10268      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269      hardcode_libdir_separator=:
10270      ;;
10271
10272    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10273      if test "$GCC" = yes; then
10274        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275        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'
10276        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277      else
10278        allow_undefined_flag=' -expect_unresolved \*'
10279        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'
10280        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10281        $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'
10282
10283        # Both c and cxx compiler support -rpath directly
10284        hardcode_libdir_flag_spec='-rpath $libdir'
10285      fi
10286      hardcode_libdir_separator=:
10287      ;;
10288
10289    solaris*)
10290      no_undefined_flag=' -z text'
10291      if test "$GCC" = yes; then
10292        wlarc='${wl}'
10293        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10295          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10296      else
10297        wlarc=''
10298        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10299        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10300        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10301      fi
10302      hardcode_libdir_flag_spec='-R$libdir'
10303      hardcode_shlibpath_var=no
10304      case $host_os in
10305      solaris2.[0-5] | solaris2.[0-5].*) ;;
10306      *)
10307        # The compiler driver will combine linker options so we
10308        # cannot just pass the convience library names through
10309        # without $wl, iff we do not link with $LD.
10310        # Luckily, gcc supports the same syntax we need for Sun Studio.
10311        # Supported since Solaris 2.6 (maybe 2.5.1?)
10312        case $wlarc in
10313        '')
10314          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10315        *)
10316          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' ;;
10317        esac ;;
10318      esac
10319      link_all_deplibs=yes
10320      ;;
10321
10322    sunos4*)
10323      if test "x$host_vendor" = xsequent; then
10324        # Use $CC to link under sequent, because it throws in some extra .o
10325        # files that make .init and .fini sections work.
10326        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10327      else
10328        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10329      fi
10330      hardcode_libdir_flag_spec='-L$libdir'
10331      hardcode_direct=yes
10332      hardcode_minus_L=yes
10333      hardcode_shlibpath_var=no
10334      ;;
10335
10336    sysv4)
10337      case $host_vendor in
10338        sni)
10339          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10340          hardcode_direct=yes # is this really true???
10341        ;;
10342        siemens)
10343          ## LD is ld it makes a PLAMLIB
10344          ## CC just makes a GrossModule.
10345          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10346          reload_cmds='$CC -r -o $output$reload_objs'
10347          hardcode_direct=no
10348        ;;
10349        motorola)
10350          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10352        ;;
10353      esac
10354      runpath_var='LD_RUN_PATH'
10355      hardcode_shlibpath_var=no
10356      ;;
10357
10358    sysv4.3*)
10359      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360      hardcode_shlibpath_var=no
10361      export_dynamic_flag_spec='-Bexport'
10362      ;;
10363
10364    sysv4*MP*)
10365      if test -d /usr/nec; then
10366        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10367        hardcode_shlibpath_var=no
10368        runpath_var=LD_RUN_PATH
10369        hardcode_runpath_var=yes
10370        ld_shlibs=yes
10371      fi
10372      ;;
10373
10374    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10375      no_undefined_flag='${wl}-z,text'
10376      archive_cmds_need_lc=no
10377      hardcode_shlibpath_var=no
10378      runpath_var='LD_RUN_PATH'
10379
10380      if test "$GCC" = yes; then
10381        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10382        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383      else
10384        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386      fi
10387      ;;
10388
10389    sysv5* | sco3.2v5* | sco5v6*)
10390      # Note: We can NOT use -z defs as we might desire, because we do not
10391      # link with -lc, and that would cause any symbols used from libc to
10392      # always be unresolved, which means just about no library would
10393      # ever link correctly.  If we're not using GNU ld we use -z text
10394      # though, which does catch some bad symbols but isn't as heavy-handed
10395      # as -z defs.
10396      no_undefined_flag='${wl}-z,text'
10397      allow_undefined_flag='${wl}-z,nodefs'
10398      archive_cmds_need_lc=no
10399      hardcode_shlibpath_var=no
10400      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10401      hardcode_libdir_separator=':'
10402      link_all_deplibs=yes
10403      export_dynamic_flag_spec='${wl}-Bexport'
10404      runpath_var='LD_RUN_PATH'
10405
10406      if test "$GCC" = yes; then
10407        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10408        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10409      else
10410        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10411        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10412      fi
10413      ;;
10414
10415    uts4*)
10416      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417      hardcode_libdir_flag_spec='-L$libdir'
10418      hardcode_shlibpath_var=no
10419      ;;
10420
10421    *)
10422      ld_shlibs=no
10423      ;;
10424    esac
10425  fi
10426
10427echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10428echo "${ECHO_T}$ld_shlibs" >&6
10429test "$ld_shlibs" = no && can_build_shared=no
10430
10431#
10432# Do we need to explicitly link libc?
10433#
10434case "x$archive_cmds_need_lc" in
10435x|xyes)
10436  # Assume -lc should be added
10437  archive_cmds_need_lc=yes
10438
10439  if test "$enable_shared" = yes && test "$GCC" = yes; then
10440    case $archive_cmds in
10441    *'~'*)
10442      # FIXME: we may have to deal with multi-command sequences.
10443      ;;
10444    '$CC '*)
10445      # Test whether the compiler implicitly links with -lc since on some
10446      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10447      # to ld, don't add -lc before -lgcc.
10448      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10449echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10450      $rm conftest*
10451      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10452
10453      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454  (eval $ac_compile) 2>&5
10455  ac_status=$?
10456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); } 2>conftest.err; then
10458        soname=conftest
10459        lib=conftest
10460        libobjs=conftest.$ac_objext
10461        deplibs=
10462        wl=$lt_prog_compiler_wl
10463        pic_flag=$lt_prog_compiler_pic
10464        compiler_flags=-v
10465        linker_flags=-v
10466        verstring=
10467        output_objdir=.
10468        libname=conftest
10469        lt_save_allow_undefined_flag=$allow_undefined_flag
10470        allow_undefined_flag=
10471        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10472  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10473  ac_status=$?
10474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475  (exit $ac_status); }
10476        then
10477          archive_cmds_need_lc=no
10478        else
10479          archive_cmds_need_lc=yes
10480        fi
10481        allow_undefined_flag=$lt_save_allow_undefined_flag
10482      else
10483        cat conftest.err 1>&5
10484      fi
10485      $rm conftest*
10486      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10487echo "${ECHO_T}$archive_cmds_need_lc" >&6
10488      ;;
10489    esac
10490  fi
10491  ;;
10492esac
10493
10494echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10495echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10496library_names_spec=
10497libname_spec='lib$name'
10498soname_spec=
10499shrext_cmds=".so"
10500postinstall_cmds=
10501postuninstall_cmds=
10502finish_cmds=
10503finish_eval=
10504shlibpath_var=
10505shlibpath_overrides_runpath=unknown
10506version_type=none
10507dynamic_linker="$host_os ld.so"
10508sys_lib_dlsearch_path_spec="/lib /usr/lib"
10509if test "$GCC" = yes; then
10510  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10511  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10512    # if the path contains ";" then we assume it to be the separator
10513    # otherwise default to the standard path separator (i.e. ":") - it is
10514    # assumed that no part of a normal pathname contains ";" but that should
10515    # okay in the real world where ";" in dirpaths is itself problematic.
10516    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10517  else
10518    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10519  fi
10520else
10521  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10522fi
10523need_lib_prefix=unknown
10524hardcode_into_libs=no
10525
10526# when you set need_version to no, make sure it does not cause -set_version
10527# flags to be left without arguments
10528need_version=unknown
10529
10530case $host_os in
10531aix3*)
10532  version_type=linux
10533  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10534  shlibpath_var=LIBPATH
10535
10536  # AIX 3 has no versioning support, so we append a major version to the name.
10537  soname_spec='${libname}${release}${shared_ext}$major'
10538  ;;
10539
10540aix4* | aix5*)
10541  version_type=linux
10542  need_lib_prefix=no
10543  need_version=no
10544  hardcode_into_libs=yes
10545  if test "$host_cpu" = ia64; then
10546    # AIX 5 supports IA64
10547    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10548    shlibpath_var=LD_LIBRARY_PATH
10549  else
10550    # With GCC up to 2.95.x, collect2 would create an import file
10551    # for dependence libraries.  The import file would start with
10552    # the line `#! .'.  This would cause the generated library to
10553    # depend on `.', always an invalid library.  This was fixed in
10554    # development snapshots of GCC prior to 3.0.
10555    case $host_os in
10556      aix4 | aix4.[01] | aix4.[01].*)
10557      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10558           echo ' yes '
10559           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10560        :
10561      else
10562        can_build_shared=no
10563      fi
10564      ;;
10565    esac
10566    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10567    # soname into executable. Probably we can add versioning support to
10568    # collect2, so additional links can be useful in future.
10569    if test "$aix_use_runtimelinking" = yes; then
10570      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10571      # instead of lib<name>.a to let people know that these are not
10572      # typical AIX shared libraries.
10573      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574    else
10575      # We preserve .a as extension for shared libraries through AIX4.2
10576      # and later when we are not doing run time linking.
10577      library_names_spec='${libname}${release}.a $libname.a'
10578      soname_spec='${libname}${release}${shared_ext}$major'
10579    fi
10580    shlibpath_var=LIBPATH
10581  fi
10582  ;;
10583
10584amigaos*)
10585  library_names_spec='$libname.ixlibrary $libname.a'
10586  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10587  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'
10588  ;;
10589
10590beos*)
10591  library_names_spec='${libname}${shared_ext}'
10592  dynamic_linker="$host_os ld.so"
10593  shlibpath_var=LIBRARY_PATH
10594  ;;
10595
10596bsdi[45]*)
10597  version_type=linux
10598  need_version=no
10599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600  soname_spec='${libname}${release}${shared_ext}$major'
10601  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10602  shlibpath_var=LD_LIBRARY_PATH
10603  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10604  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10605  # the default ld.so.conf also contains /usr/contrib/lib and
10606  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10607  # libtool to hard-code these into programs
10608  ;;
10609
10610cygwin* | mingw* | pw32*)
10611  version_type=windows
10612  shrext_cmds=".dll"
10613  need_version=no
10614  need_lib_prefix=no
10615
10616  case $GCC,$host_os in
10617  yes,cygwin* | yes,mingw* | yes,pw32*)
10618    library_names_spec='$libname.dll.a'
10619    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10620    postinstall_cmds='base_file=`basename \${file}`~
10621      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10622      dldir=$destdir/`dirname \$dlpath`~
10623      test -d \$dldir || mkdir -p \$dldir~
10624      $install_prog $dir/$dlname \$dldir/$dlname~
10625      chmod a+x \$dldir/$dlname'
10626    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10627      dlpath=$dir/\$dldll~
10628       $rm \$dlpath'
10629    shlibpath_overrides_runpath=yes
10630
10631    case $host_os in
10632    cygwin*)
10633      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10634      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10635      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10636      ;;
10637    mingw*)
10638      # MinGW DLLs use traditional 'lib' prefix
10639      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10641      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10642        # It is most probably a Windows format PATH printed by
10643        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10644        # path with ; separators, and with drive letters. We can handle the
10645        # drive letters (cygwin fileutils understands them), so leave them,
10646        # especially as we might pass files found there to a mingw objdump,
10647        # which wouldn't understand a cygwinified path. Ahh.
10648        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10649      else
10650        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10651      fi
10652      ;;
10653    pw32*)
10654      # pw32 DLLs use 'pw' prefix rather than 'lib'
10655      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656      ;;
10657    esac
10658    ;;
10659
10660  *)
10661    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10662    ;;
10663  esac
10664  dynamic_linker='Win32 ld.exe'
10665  # FIXME: first we should search . and the directory the executable is in
10666  shlibpath_var=PATH
10667  ;;
10668
10669darwin* | rhapsody*)
10670  dynamic_linker="$host_os dyld"
10671  version_type=darwin
10672  need_lib_prefix=no
10673  need_version=no
10674  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10675  soname_spec='${libname}${release}${major}$shared_ext'
10676  shlibpath_overrides_runpath=yes
10677  shlibpath_var=DYLD_LIBRARY_PATH
10678  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10679  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10680  if test "$GCC" = yes; then
10681    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"`
10682  else
10683    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10684  fi
10685  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10686  ;;
10687
10688dgux*)
10689  version_type=linux
10690  need_lib_prefix=no
10691  need_version=no
10692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10693  soname_spec='${libname}${release}${shared_ext}$major'
10694  shlibpath_var=LD_LIBRARY_PATH
10695  ;;
10696
10697freebsd1*)
10698  dynamic_linker=no
10699  ;;
10700
10701kfreebsd*-gnu)
10702  version_type=linux
10703  need_lib_prefix=no
10704  need_version=no
10705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10706  soname_spec='${libname}${release}${shared_ext}$major'
10707  shlibpath_var=LD_LIBRARY_PATH
10708  shlibpath_overrides_runpath=no
10709  hardcode_into_libs=yes
10710  dynamic_linker='GNU ld.so'
10711  ;;
10712
10713freebsd* | dragonfly*)
10714  # DragonFly does not have aout.  When/if they implement a new
10715  # versioning mechanism, adjust this.
10716  if test -x /usr/bin/objformat; then
10717    objformat=`/usr/bin/objformat`
10718  else
10719    case $host_os in
10720    freebsd[123]*) objformat=aout ;;
10721    *) objformat=elf ;;
10722    esac
10723  fi
10724  version_type=freebsd-$objformat
10725  case $version_type in
10726    freebsd-elf*)
10727      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10728      need_version=no
10729      need_lib_prefix=no
10730      ;;
10731    freebsd-*)
10732      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10733      need_version=yes
10734      ;;
10735  esac
10736  shlibpath_var=LD_LIBRARY_PATH
10737  case $host_os in
10738  freebsd2*)
10739    shlibpath_overrides_runpath=yes
10740    ;;
10741  freebsd3.[01]* | freebsdelf3.[01]*)
10742    shlibpath_overrides_runpath=yes
10743    hardcode_into_libs=yes
10744    ;;
10745  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10746  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10747    shlibpath_overrides_runpath=no
10748    hardcode_into_libs=yes
10749    ;;
10750  freebsd*) # from 4.6 on
10751    shlibpath_overrides_runpath=yes
10752    hardcode_into_libs=yes
10753    ;;
10754  esac
10755  ;;
10756
10757gnu*)
10758  version_type=linux
10759  need_lib_prefix=no
10760  need_version=no
10761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10762  soname_spec='${libname}${release}${shared_ext}$major'
10763  shlibpath_var=LD_LIBRARY_PATH
10764  hardcode_into_libs=yes
10765  ;;
10766
10767hpux9* | hpux10* | hpux11*)
10768  # Give a soname corresponding to the major version so that dld.sl refuses to
10769  # link against other versions.
10770  version_type=sunos
10771  need_lib_prefix=no
10772  need_version=no
10773  case $host_cpu in
10774  ia64*)
10775    shrext_cmds='.so'
10776    hardcode_into_libs=yes
10777    dynamic_linker="$host_os dld.so"
10778    shlibpath_var=LD_LIBRARY_PATH
10779    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781    soname_spec='${libname}${release}${shared_ext}$major'
10782    if test "X$HPUX_IA64_MODE" = X32; then
10783      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10784    else
10785      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10786    fi
10787    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10788    ;;
10789   hppa*64*)
10790     shrext_cmds='.sl'
10791     hardcode_into_libs=yes
10792     dynamic_linker="$host_os dld.sl"
10793     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796     soname_spec='${libname}${release}${shared_ext}$major'</