source: ThirdParty/Lapack/trunk/configure @ 1548

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

copy over pkg-config setup and making thirdparty projects installable projects from split branch

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