source: ThirdParty/Lapack/trunk/configure @ 1552

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

rerun autotools to get FLIBS fix

  • Property svn:executable set to *
File size: 744.1 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  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4725  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4726     *-cygwin* | *-mingw*)
4727       case "$F77" in
4728#         ifort* | */ifort* | IFORT* | */IFORT*)
4729#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4730#           if "$coin_debug_compile" = true ; then
4731#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4732#           else
4733#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4734#           fi
4735#           ;;
4736         compile_f2c*)
4737           FLIBS=`$F77 -FLIBS` ;;
4738       esac;;
4739     *-hp-*)
4740         FLIBS="$FLIBS -lm";;
4741     *-ibm-*)
4742         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4743     *-linux-*)
4744       case "$F77" in
4745         pgf77* | */pgf77* | pgf90* | */pgf90*)
4746# ask linker to go through the archives multiple times
4747# (the Fortran compiler seems to do that automatically...)
4748           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4749       esac
4750  esac
4751  ac_cv_f77_libs="$FLIBS"
4752fi
4753
4754ac_ext=c
4755ac_cpp='$CPP $CPPFLAGS'
4756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759
4760
4761
4762
4763# Check if pkg-config is available (to setup addlibs file)
4764
4765
4766# Check whether --enable-pkg-config or --disable-pkg-config was given.
4767if test "${enable_pkg_config+set}" = set; then
4768  enableval="$enable_pkg_config"
4769  use_pkgconfig="$enableval"
4770else
4771  use_pkgconfig=yes
4772fi;
4773
4774if test $use_pkgconfig = yes ; then
4775  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4776    if test -n "$ac_tool_prefix"; then
4777  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4778set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4782  echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784  case $PKG_CONFIG in
4785  [\\/]* | ?:[\\/]*)
4786  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4787  ;;
4788  *)
4789  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794  for ac_exec_ext in '' $ac_executable_extensions; do
4795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801done
4802
4803  ;;
4804esac
4805fi
4806PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4807
4808if test -n "$PKG_CONFIG"; then
4809  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4810echo "${ECHO_T}$PKG_CONFIG" >&6
4811else
4812  echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814fi
4815
4816fi
4817if test -z "$ac_cv_path_PKG_CONFIG"; then
4818  ac_pt_PKG_CONFIG=$PKG_CONFIG
4819  # Extract the first word of "pkg-config", so it can be a program name with args.
4820set dummy pkg-config; ac_word=$2
4821echo "$as_me:$LINENO: checking for $ac_word" >&5
4822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4823if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  case $ac_pt_PKG_CONFIG in
4827  [\\/]* | ?:[\\/]*)
4828  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4829  ;;
4830  *)
4831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836  for ac_exec_ext in '' $ac_executable_extensions; do
4837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843done
4844
4845  ;;
4846esac
4847fi
4848ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4849
4850if test -n "$ac_pt_PKG_CONFIG"; then
4851  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4852echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4853else
4854  echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856fi
4857
4858  PKG_CONFIG=$ac_pt_PKG_CONFIG
4859else
4860  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4861fi
4862
4863  fi
4864  if test -n "$PKG_CONFIG"; then
4865    _pkg_min_version=0.9.0
4866    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4867echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4868    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4869      echo "$as_me:$LINENO: result: yes" >&5
4870echo "${ECHO_T}yes" >&6
4871    else
4872      echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874      PKG_CONFIG=""
4875    fi
4876  fi
4877
4878  # check if pkg-config supports the short-errors flag
4879  if test -n "$PKG_CONFIG" && \
4880    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4881    pkg_short_errors=" --short-errors "
4882  else
4883    pkg_short_errors=""
4884  fi
4885fi
4886
4887
4888
4889if test -n "$PKG_CONFIG"; then
4890  COIN_HAS_PKGCONFIG_TRUE=
4891  COIN_HAS_PKGCONFIG_FALSE='#'
4892else
4893  COIN_HAS_PKGCONFIG_TRUE='#'
4894  COIN_HAS_PKGCONFIG_FALSE=
4895fi
4896
4897
4898
4899# assemble search path for pkg-config, if we are in a project setup
4900if test x$coin_projectdir = xyes ; then
4901  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4902
4903  # 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
4904  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4905  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4906  if test -d "${prefix}"; then
4907    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4908  fi
4909
4910
4911# Check whether --with-coin-instdir or --without-coin-instdir was given.
4912if test "${with_coin_instdir+set}" = set; then
4913  withval="$with_coin_instdir"
4914  if test -d "$withval"; then : ; else
4915       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4916echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4917   { (exit 1); exit 1; }; }
4918     fi
4919     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4920
4921fi;
4922
4923  # in a classic setup, we want to find uninstalled projects
4924  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4925  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4926  # 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)
4927  if test -e ../coin_subdirs.txt ; then
4928    for i in `cat ../coin_subdirs.txt` ; do
4929      if test -d ../$i ; then
4930        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4931      fi
4932    done
4933  fi
4934
4935  if test -e ../../coin_subdirs.txt ; then
4936    for i in `cat ../../coin_subdirs.txt` ; do
4937      if test -d ../../$i ; then
4938        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4939      fi
4940    done
4941  fi
4942
4943
4944fi
4945
4946
4947
4948# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
4949coin_need_flibs=yes
4950
4951# Take care that optimization is disbled for DLAMCH.F
4952
4953if test "x$DLAMCH_FFLAGS" = x ; then
4954  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
4955  case $F77 in
4956    ifort* | */ifort* | IFORT* | */IFORT* )
4957      case $build in
4958        *-cygwin* | *-mingw*)
4959          DLAMCH_FFLAGS="$FFLAGS -Od"
4960          ;;
4961        *)
4962          DLAMCH_FFLAGS="$FFLAGS -O0"
4963          ;;
4964      esac
4965      ;;
4966    compile_f2c*)
4967      case "$CC" in
4968        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4969          DLAMCH_FFLAGS="$FFLAGS -Od"
4970        ;;
4971        *)
4972          DLAMCH_FFLAGS="$FFLAGS -O0"
4973        ;;
4974      esac
4975      ;;
4976    *)
4977      DLAMCH_FFLAGS="$FFLAGS -O0"
4978      ;;
4979  esac
4980fi
4981
4982
4983# Initialize autotools
4984{
4985
4986
4987
4988# START
4989
4990# Test if force_shared has been set
4991if test "x" = xforce_shared; then
4992  if test x$enable_shared = xno; then
4993    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4994echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4995   { (exit 1); exit 1; }; }
4996  fi
4997  enable_shared=yes;
4998else
4999  # On Cygwin and AIX, building DLLs doesn't work
5000  case $build in
5001    *-cygwin*)
5002      coin_disable_shared=yes
5003      platform=Cygwin
5004    ;;
5005    *-aix*)
5006      coin_disable_shared=yes
5007      platform=AIX
5008    ;;
5009    *-mingw*)
5010      coin_disable_shared=yes
5011      platform="Msys"
5012#      case "$CXX" in
5013#        cl*)
5014#          coin_disable_shared=yes
5015#          platform="Msys with cl"
5016#      ;;
5017#      esac
5018    ;;
5019  esac
5020fi
5021if test x"$coin_disable_shared" = xyes; then
5022  if test x"$enable_shared" = xyes; then
5023    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5024echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5025  fi
5026  enable_shared=no
5027fi
5028# By default, we only want the shared objects to be compiled
5029# Check whether --enable-static or --disable-static was given.
5030if test "${enable_static+set}" = set; then
5031  enableval="$enable_static"
5032  p=${PACKAGE-default}
5033    case $enableval in
5034    yes) enable_static=yes ;;
5035    no) enable_static=no ;;
5036    *)
5037     enable_static=no
5038      # Look at the argument we got.  We use all the common list separators.
5039      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5040      for pkg in $enableval; do
5041        IFS="$lt_save_ifs"
5042        if test "X$pkg" = "X$p"; then
5043          enable_static=yes
5044        fi
5045      done
5046      IFS="$lt_save_ifs"
5047      ;;
5048    esac
5049else
5050  enable_static=no
5051fi;
5052
5053
5054
5055
5056# Initialize automake
5057echo "$as_me:$LINENO: checking for egrep" >&5
5058echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5059if test "${ac_cv_prog_egrep+set}" = set; then
5060  echo $ECHO_N "(cached) $ECHO_C" >&6
5061else
5062  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5063    then ac_cv_prog_egrep='grep -E'
5064    else ac_cv_prog_egrep='egrep'
5065    fi
5066fi
5067echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5068echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5069 EGREP=$ac_cv_prog_egrep
5070
5071
5072am__api_version="1.9"
5073# Find a good install program.  We prefer a C program (faster),
5074# so one script is as good as another.  But avoid the broken or
5075# incompatible versions:
5076# SysV /etc/install, /usr/sbin/install
5077# SunOS /usr/etc/install
5078# IRIX /sbin/install
5079# AIX /bin/install
5080# AmigaOS /C/install, which installs bootblocks on floppy discs
5081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5082# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5084# OS/2's system install, which has a completely different semantic
5085# ./install, which can be erroneously created by make from ./install.sh.
5086echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5087echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5088if test -z "$INSTALL"; then
5089if test "${ac_cv_path_install+set}" = set; then
5090  echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097  # Account for people who put trailing slashes in PATH elements.
5098case $as_dir/ in
5099  ./ | .// | /cC/* | \
5100  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5101  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5102  /usr/ucb/* ) ;;
5103  *)
5104    # OSF1 and SCO ODT 3.0 have their own names for install.
5105    # Don't use installbsd from OSF since it installs stuff as root
5106    # by default.
5107    for ac_prog in ginstall scoinst install; do
5108      for ac_exec_ext in '' $ac_executable_extensions; do
5109        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5110          if test $ac_prog = install &&
5111            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5112            # AIX install.  It has an incompatible calling convention.
5113            :
5114          elif test $ac_prog = install &&
5115            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5116            # program-specific install script used by HP pwplus--don't use.
5117            :
5118          else
5119            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5120            break 3
5121          fi
5122        fi
5123      done
5124    done
5125    ;;
5126esac
5127done
5128
5129
5130fi
5131  if test "${ac_cv_path_install+set}" = set; then
5132    INSTALL=$ac_cv_path_install
5133  else
5134    # As a last resort, use the slow shell script.  We don't cache a
5135    # path for INSTALL within a source directory, because that will
5136    # break other packages using the cache if that directory is
5137    # removed, or if the path is relative.
5138    INSTALL=$ac_install_sh
5139  fi
5140fi
5141echo "$as_me:$LINENO: result: $INSTALL" >&5
5142echo "${ECHO_T}$INSTALL" >&6
5143
5144# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5145# It thinks the first close brace ends the variable substitution.
5146test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5147
5148test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5149
5150test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5151
5152echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5153echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5154# Just in case
5155sleep 1
5156echo timestamp > conftest.file
5157# Do `set' in a subshell so we don't clobber the current shell's
5158# arguments.  Must try -L first in case configure is actually a
5159# symlink; some systems play weird games with the mod time of symlinks
5160# (eg FreeBSD returns the mod time of the symlink's containing
5161# directory).
5162if (
5163   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5164   if test "$*" = "X"; then
5165      # -L didn't work.
5166      set X `ls -t $srcdir/configure conftest.file`
5167   fi
5168   rm -f conftest.file
5169   if test "$*" != "X $srcdir/configure conftest.file" \
5170      && test "$*" != "X conftest.file $srcdir/configure"; then
5171
5172      # If neither matched, then we have a broken ls.  This can happen
5173      # if, for instance, CONFIG_SHELL is bash and it inherits a
5174      # broken ls alias from the environment.  This has actually
5175      # happened.  Such a system could not be considered "sane".
5176      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5177alias in your environment" >&5
5178echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5179alias in your environment" >&2;}
5180   { (exit 1); exit 1; }; }
5181   fi
5182
5183   test "$2" = conftest.file
5184   )
5185then
5186   # Ok.
5187   :
5188else
5189   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5190Check your system clock" >&5
5191echo "$as_me: error: newly created file is older than distributed files!
5192Check your system clock" >&2;}
5193   { (exit 1); exit 1; }; }
5194fi
5195echo "$as_me:$LINENO: result: yes" >&5
5196echo "${ECHO_T}yes" >&6
5197test "$program_prefix" != NONE &&
5198  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5199# Use a double $ so make ignores it.
5200test "$program_suffix" != NONE &&
5201  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5202# Double any \ or $.  echo might interpret backslashes.
5203# By default was `s,x,x', remove it if useless.
5204cat <<\_ACEOF >conftest.sed
5205s/[\\$]/&&/g;s/;s,x,x,$//
5206_ACEOF
5207program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5208rm conftest.sed
5209
5210# expand $ac_aux_dir to an absolute path
5211am_aux_dir=`cd $ac_aux_dir && pwd`
5212
5213test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5214# Use eval to expand $SHELL
5215if eval "$MISSING --run true"; then
5216  am_missing_run="$MISSING --run "
5217else
5218  am_missing_run=
5219  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5220echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5221fi
5222
5223if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5224  # We used to keeping the `.' as first argument, in order to
5225  # allow $(mkdir_p) to be used without argument.  As in
5226  #   $(mkdir_p) $(somedir)
5227  # where $(somedir) is conditionally defined.  However this is wrong
5228  # for two reasons:
5229  #  1. if the package is installed by a user who cannot write `.'
5230  #     make install will fail,
5231  #  2. the above comment should most certainly read
5232  #     $(mkdir_p) $(DESTDIR)$(somedir)
5233  #     so it does not work when $(somedir) is undefined and
5234  #     $(DESTDIR) is not.
5235  #  To support the latter case, we have to write
5236  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5237  #  so the `.' trick is pointless.
5238  mkdir_p='mkdir -p --'
5239else
5240  # On NextStep and OpenStep, the `mkdir' command does not
5241  # recognize any option.  It will interpret all options as
5242  # directories to create, and then abort because `.' already
5243  # exists.
5244  for d in ./-p ./--version;
5245  do
5246    test -d $d && rmdir $d
5247  done
5248  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5249  if test -f "$ac_aux_dir/mkinstalldirs"; then
5250    mkdir_p='$(mkinstalldirs)'
5251  else
5252    mkdir_p='$(install_sh) -d'
5253  fi
5254fi
5255
5256for ac_prog in gawk mawk nawk awk
5257do
5258  # Extract the first word of "$ac_prog", so it can be a program name with args.
5259set dummy $ac_prog; ac_word=$2
5260echo "$as_me:$LINENO: checking for $ac_word" >&5
5261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262if test "${ac_cv_prog_AWK+set}" = set; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265  if test -n "$AWK"; then
5266  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5267else
5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269for as_dir in $PATH
5270do
5271  IFS=$as_save_IFS
5272  test -z "$as_dir" && as_dir=.
5273  for ac_exec_ext in '' $ac_executable_extensions; do
5274  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275    ac_cv_prog_AWK="$ac_prog"
5276    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277    break 2
5278  fi
5279done
5280done
5281
5282fi
5283fi
5284AWK=$ac_cv_prog_AWK
5285if test -n "$AWK"; then
5286  echo "$as_me:$LINENO: result: $AWK" >&5
5287echo "${ECHO_T}$AWK" >&6
5288else
5289  echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291fi
5292
5293  test -n "$AWK" && break
5294done
5295
5296echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5297echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5298set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5299if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  cat >conftest.make <<\_ACEOF
5303all:
5304        @echo 'ac_maketemp="$(MAKE)"'
5305_ACEOF
5306# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5307eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5308if test -n "$ac_maketemp"; then
5309  eval ac_cv_prog_make_${ac_make}_set=yes
5310else
5311  eval ac_cv_prog_make_${ac_make}_set=no
5312fi
5313rm -f conftest.make
5314fi
5315if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5316  echo "$as_me:$LINENO: result: yes" >&5
5317echo "${ECHO_T}yes" >&6
5318  SET_MAKE=
5319else
5320  echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322  SET_MAKE="MAKE=${MAKE-make}"
5323fi
5324
5325rm -rf .tst 2>/dev/null
5326mkdir .tst 2>/dev/null
5327if test -d .tst; then
5328  am__leading_dot=.
5329else
5330  am__leading_dot=_
5331fi
5332rmdir .tst 2>/dev/null
5333
5334DEPDIR="${am__leading_dot}deps"
5335
5336          ac_config_commands="$ac_config_commands depfiles"
5337
5338
5339am_make=${MAKE-make}
5340cat > confinc << 'END'
5341am__doit:
5342        @echo done
5343.PHONY: am__doit
5344END
5345# If we don't find an include directive, just comment out the code.
5346echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5347echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5348am__include="#"
5349am__quote=
5350_am_result=none
5351# First try GNU make style include.
5352echo "include confinc" > confmf
5353# We grep out `Entering directory' and `Leaving directory'
5354# messages which can occur if `w' ends up in MAKEFLAGS.
5355# In particular we don't look at `^make:' because GNU make might
5356# be invoked under some other name (usually "gmake"), in which
5357# case it prints its new name instead of `make'.
5358if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5359   am__include=include
5360   am__quote=
5361   _am_result=GNU
5362fi
5363# Now try BSD make style include.
5364if test "$am__include" = "#"; then
5365   echo '.include "confinc"' > confmf
5366   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5367      am__include=.include
5368      am__quote="\""
5369      _am_result=BSD
5370   fi
5371fi
5372
5373
5374echo "$as_me:$LINENO: result: $_am_result" >&5
5375echo "${ECHO_T}$_am_result" >&6
5376rm -f confinc confmf
5377
5378# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5379if test "${enable_dependency_tracking+set}" = set; then
5380  enableval="$enable_dependency_tracking"
5381
5382fi;
5383if test "x$enable_dependency_tracking" != xno; then
5384  am_depcomp="$ac_aux_dir/depcomp"
5385  AMDEPBACKSLASH='\'
5386fi
5387
5388
5389if test "x$enable_dependency_tracking" != xno; then
5390  AMDEP_TRUE=
5391  AMDEP_FALSE='#'
5392else
5393  AMDEP_TRUE='#'
5394  AMDEP_FALSE=
5395fi
5396
5397
5398
5399
5400
5401# AC_MSG_NOTICE([Beginning automake initialisation.])
5402# Stuff for automake
5403# test to see if srcdir already configured
5404if test "`cd $srcdir && pwd`" != "`pwd`" &&
5405   test -f $srcdir/config.status; then
5406  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5407echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5408   { (exit 1); exit 1; }; }
5409fi
5410
5411# test whether we have cygpath
5412if test -z "$CYGPATH_W"; then
5413  if (cygpath --version) >/dev/null 2>/dev/null; then
5414    CYGPATH_W='cygpath -w'
5415  else
5416    CYGPATH_W=echo
5417  fi
5418fi
5419
5420
5421# Define the identity of the package.
5422 PACKAGE='thirdpartylapack'
5423 VERSION='0.0'
5424
5425
5426cat >>confdefs.h <<_ACEOF
5427#define PACKAGE "$PACKAGE"
5428_ACEOF
5429
5430
5431cat >>confdefs.h <<_ACEOF
5432#define VERSION "$VERSION"
5433_ACEOF
5434
5435# Some tools Automake needs.
5436
5437ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5438
5439
5440AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5441
5442
5443AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5444
5445
5446AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5447
5448
5449MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5450
5451install_sh=${install_sh-"$am_aux_dir/install-sh"}
5452
5453# Installed binaries are usually stripped using `strip' when the user
5454# run `make install-strip'.  However `strip' might not be the right
5455# tool to use in cross-compilation environments, therefore Automake
5456# will honor the `STRIP' environment variable to overrule this program.
5457if test "$cross_compiling" != no; then
5458  if test -n "$ac_tool_prefix"; then
5459  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5460set dummy ${ac_tool_prefix}strip; ac_word=$2
5461echo "$as_me:$LINENO: checking for $ac_word" >&5
5462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5463if test "${ac_cv_prog_STRIP+set}" = set; then
5464  echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466  if test -n "$STRIP"; then
5467  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472  IFS=$as_save_IFS
5473  test -z "$as_dir" && as_dir=.
5474  for ac_exec_ext in '' $ac_executable_extensions; do
5475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478    break 2
5479  fi
5480done
5481done
5482
5483fi
5484fi
5485STRIP=$ac_cv_prog_STRIP
5486if test -n "$STRIP"; then
5487  echo "$as_me:$LINENO: result: $STRIP" >&5
5488echo "${ECHO_T}$STRIP" >&6
5489else
5490  echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492fi
5493
5494fi
5495if test -z "$ac_cv_prog_STRIP"; then
5496  ac_ct_STRIP=$STRIP
5497  # Extract the first word of "strip", so it can be a program name with args.
5498set dummy strip; ac_word=$2
5499echo "$as_me:$LINENO: checking for $ac_word" >&5
5500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  if test -n "$ac_ct_STRIP"; then
5505  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512  for ac_exec_ext in '' $ac_executable_extensions; do
5513  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514    ac_cv_prog_ac_ct_STRIP="strip"
5515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519done
5520
5521  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5522fi
5523fi
5524ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5525if test -n "$ac_ct_STRIP"; then
5526  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5527echo "${ECHO_T}$ac_ct_STRIP" >&6
5528else
5529  echo "$as_me:$LINENO: result: no" >&5
5530echo "${ECHO_T}no" >&6
5531fi
5532
5533  STRIP=$ac_ct_STRIP
5534else
5535  STRIP="$ac_cv_prog_STRIP"
5536fi
5537
5538fi
5539INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5540
5541# We need awk for the "check" target.  The system "awk" is bad on
5542# some platforms.
5543# Always define AMTAR for backward compatibility.
5544
5545AMTAR=${AMTAR-"${am_missing_run}tar"}
5546
5547am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5548
5549
5550
5551
5552depcc="$CC"   am_compiler_list=
5553
5554echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5555echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5556if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5560  # We make a subdir and do the tests there.  Otherwise we can end up
5561  # making bogus files that we don't know about and never remove.  For
5562  # instance it was reported that on HP-UX the gcc test will end up
5563  # making a dummy file named `D' -- because `-MD' means `put the output
5564  # in D'.
5565  mkdir conftest.dir
5566  # Copy depcomp to subdir because otherwise we won't find it if we're
5567  # using a relative directory.
5568  cp "$am_depcomp" conftest.dir
5569  cd conftest.dir
5570  # We will build objects and dependencies in a subdirectory because
5571  # it helps to detect inapplicable dependency modes.  For instance
5572  # both Tru64's cc and ICC support -MD to output dependencies as a
5573  # side effect of compilation, but ICC will put the dependencies in
5574  # the current directory while Tru64 will put them in the object
5575  # directory.
5576  mkdir sub
5577
5578  am_cv_CC_dependencies_compiler_type=none
5579  if test "$am_compiler_list" = ""; then
5580     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5581  fi
5582  for depmode in $am_compiler_list; do
5583    # Setup a source with many dependencies, because some compilers
5584    # like to wrap large dependency lists on column 80 (with \), and
5585    # we should not choose a depcomp mode which is confused by this.
5586    #
5587    # We need to recreate these files for each test, as the compiler may
5588    # overwrite some of them when testing with obscure command lines.
5589    # This happens at least with the AIX C compiler.
5590    : > sub/conftest.c
5591    for i in 1 2 3 4 5 6; do
5592      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5593      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5594      # Solaris 8's {/usr,}/bin/sh.
5595      touch sub/conftst$i.h
5596    done
5597    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5598
5599    case $depmode in
5600    nosideeffect)
5601      # after this tag, mechanisms are not by side-effect, so they'll
5602      # only be used when explicitly requested
5603      if test "x$enable_dependency_tracking" = xyes; then
5604        continue
5605      else
5606        break
5607      fi
5608      ;;
5609    none) break ;;
5610    esac
5611    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5612    # mode.  It turns out that the SunPro C++ compiler does not properly
5613    # handle `-M -o', and we need to detect this.
5614    if depmode=$depmode \
5615       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5616       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5618         >/dev/null 2>conftest.err &&
5619       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5620       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5621       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5622      # icc doesn't choke on unknown options, it will just issue warnings
5623      # or remarks (even with -Werror).  So we grep stderr for any message
5624      # that says an option was ignored or not supported.
5625      # When given -MP, icc 7.0 and 7.1 complain thusly:
5626      #   icc: Command line warning: ignoring option '-M'; no argument required
5627      # The diagnosis changed in icc 8.0:
5628      #   icc: Command line remark: option '-MP' not supported
5629      if (grep 'ignoring option' conftest.err ||
5630          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5631        am_cv_CC_dependencies_compiler_type=$depmode
5632        break
5633      fi
5634    fi
5635  done
5636
5637  cd ..
5638  rm -rf conftest.dir
5639else
5640  am_cv_CC_dependencies_compiler_type=none
5641fi
5642
5643fi
5644echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5645echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5646CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5647
5648
5649
5650if
5651  test "x$enable_dependency_tracking" != xno \
5652  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5653  am__fastdepCC_TRUE=
5654  am__fastdepCC_FALSE='#'
5655else
5656  am__fastdepCC_TRUE='#'
5657  am__fastdepCC_FALSE=
5658fi
5659
5660
5661
5662echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5663echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5664    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5665if test "${enable_maintainer_mode+set}" = set; then
5666  enableval="$enable_maintainer_mode"
5667  USE_MAINTAINER_MODE=$enableval
5668else
5669  USE_MAINTAINER_MODE=no
5670fi;
5671  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5672echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5673
5674
5675if test $USE_MAINTAINER_MODE = yes; then
5676  MAINTAINER_MODE_TRUE=
5677  MAINTAINER_MODE_FALSE='#'
5678else
5679  MAINTAINER_MODE_TRUE='#'
5680  MAINTAINER_MODE_FALSE=
5681fi
5682
5683  MAINT=$MAINTAINER_MODE_TRUE
5684
5685
5686
5687coin_have_externals=no
5688if test "$enable_maintainer_mode" = yes; then
5689
5690  # If maintainer mode is chosen, we make sure that the correct versions
5691  # of the tools are used, and that we know where libtool.m4 is (to
5692  # recreate acinclude.m4)
5693
5694
5695  LIBTOOLM4=
5696  # Normally, $HOME
5697  AUTOTOOLS_DFLT=$HOME
5698
5699  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5700echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5701if test "${ac_cv_use_correct_autotools+set}" = set; then
5702  echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704  ac_cv_use_correct_autotools=check
5705fi
5706echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5707echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5708
5709  if test $ac_cv_use_correct_autotools = check; then
5710    ac_cv_use_correct_autotools=yes
5711    # Check if we have autoconf
5712    # Extract the first word of "autoconf", so it can be a program name with args.
5713set dummy autoconf; ac_word=$2
5714echo "$as_me:$LINENO: checking for $ac_word" >&5
5715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716if test "${ac_cv_prog_have_autoconf+set}" = set; then
5717  echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719  if test -n "$have_autoconf"; then
5720  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725  IFS=$as_save_IFS
5726  test -z "$as_dir" && as_dir=.
5727  for ac_exec_ext in '' $ac_executable_extensions; do
5728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729    ac_cv_prog_have_autoconf="yes"
5730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731    break 2
5732  fi
5733done
5734done
5735
5736  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5737fi
5738fi
5739have_autoconf=$ac_cv_prog_have_autoconf
5740if test -n "$have_autoconf"; then
5741  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5742echo "${ECHO_T}$have_autoconf" >&6
5743else
5744  echo "$as_me:$LINENO: result: no" >&5
5745echo "${ECHO_T}no" >&6
5746fi
5747
5748    if test $have_autoconf = no; then
5749      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5750echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5751   { (exit 1); exit 1; }; }
5752    fi
5753
5754    # Check whether autoconf is the correct version
5755    correct_version='2.59'
5756    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5757    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5758echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5759    autoconf --version > confauto.out 2>&1
5760    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5761      echo "$as_me:$LINENO: result: yes" >&5
5762echo "${ECHO_T}yes" >&6
5763    else
5764      rm -f confauto.out
5765      echo "$as_me:$LINENO: result: no" >&5
5766echo "${ECHO_T}no" >&6
5767      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5768echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5769   { (exit 1); exit 1; }; }
5770    fi
5771    rm -f confauto.out
5772
5773    # Check if the executable autoconf is picked up from the correct location
5774    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5775echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5776    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5777    autoconf_dir=`cd $autoconf_dir; pwd`
5778    if test x$AUTOTOOLS_DIR = x; then
5779      want_dir=$AUTOTOOLS_DFLT/bin
5780    else
5781      want_dir=$AUTOTOOLS_DIR/bin
5782    fi
5783    if test $autoconf_dir = `cd $want_dir; pwd`; then
5784      echo "$as_me:$LINENO: result: yes" >&5
5785echo "${ECHO_T}yes" >&6
5786    else
5787      rm -f confauto.out
5788      echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6
5790      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5791echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5792   { (exit 1); exit 1; }; }
5793    fi
5794
5795    # Check if we have automake
5796    # Extract the first word of "automake", so it can be a program name with args.
5797set dummy automake; ac_word=$2
5798echo "$as_me:$LINENO: checking for $ac_word" >&5
5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5800if test "${ac_cv_prog_have_automake+set}" = set; then
5801  echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803  if test -n "$have_automake"; then
5804  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5805else
5806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807for as_dir in $PATH
5808do
5809  IFS=$as_save_IFS
5810  test -z "$as_dir" && as_dir=.
5811  for ac_exec_ext in '' $ac_executable_extensions; do
5812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813    ac_cv_prog_have_automake="yes"
5814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5815    break 2
5816  fi
5817done
5818done
5819
5820  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5821fi
5822fi
5823have_automake=$ac_cv_prog_have_automake
5824if test -n "$have_automake"; then
5825  echo "$as_me:$LINENO: result: $have_automake" >&5
5826echo "${ECHO_T}$have_automake" >&6
5827else
5828  echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830fi
5831
5832    if test $have_automake = no; then
5833      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5834echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5835   { (exit 1); exit 1; }; }
5836    fi
5837
5838    # Check whether automake is the correct version
5839    correct_version='1.9.6'
5840    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5841    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5842echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5843    automake --version > confauto.out 2>&1
5844    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5845      echo "$as_me:$LINENO: result: yes" >&5
5846echo "${ECHO_T}yes" >&6
5847    else
5848      rm -f confauto.out
5849      echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
5851      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5852echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5853   { (exit 1); exit 1; }; }
5854    fi
5855    rm -f confauto.out
5856
5857    # Check if the executable automake is picked up from the correct location
5858    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5859echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5860    automake_dir=`which automake | sed -e 's=/automake=='`
5861    automake_dir=`cd $automake_dir; pwd`
5862    if test x$AUTOTOOLS_DIR = x; then
5863      want_dir=$AUTOTOOLS_DFLT/bin
5864    else
5865      want_dir=$AUTOTOOLS_DIR/bin
5866    fi
5867    if test $automake_dir = `cd $want_dir; pwd`; then
5868      echo "$as_me:$LINENO: result: yes" >&5
5869echo "${ECHO_T}yes" >&6
5870    else
5871      rm -f confauto.out
5872      echo "$as_me:$LINENO: result: no" >&5
5873echo "${ECHO_T}no" >&6
5874      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5875echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5876   { (exit 1); exit 1; }; }
5877    fi
5878
5879    # Check if this is the correct version of libtool (with escaped dots)
5880    if test x$AUTOTOOLS_DIR = x; then
5881      want_dir=$AUTOTOOLS_DFLT/share
5882    else
5883      want_dir=$AUTOTOOLS_DIR/share
5884    fi
5885    correct_version='1.5.22'
5886    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5887    if test -r $want_dir/libtool/ltmain.sh; then
5888  have_ltmain=yes
5889  :
5890else
5891  have_ltmain=no
5892  :
5893fi
5894
5895    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5896echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5897    if test $have_ltmain = yes; then
5898    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5899        echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901      else
5902        echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5905echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5906   { (exit 1); exit 1; }; }
5907      fi
5908    else
5909      echo "$as_me:$LINENO: result: no" >&5
5910echo "${ECHO_T}no" >&6
5911      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5912echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5913   { (exit 1); exit 1; }; }
5914    fi
5915  fi
5916
5917  # Check if we can find the libtool file
5918  if test x$AUTOTOOLS_DIR = x; then
5919    want_dir=$AUTOTOOLS_DFLT/share
5920  else
5921    want_dir=$AUTOTOOLS_DIR/share
5922  fi
5923  if test -r $want_dir/aclocal/libtool.m4; then
5924  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5925  :
5926else
5927  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5928echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5929   { (exit 1); exit 1; }; }
5930  :
5931fi
5932
5933
5934  # Check if we have an Externals file
5935  if test -r $srcdir/Externals; then
5936    coin_have_externals=yes
5937  fi
5938  # Check if subversion is installed and understands https
5939  # Extract the first word of "svn", so it can be a program name with args.
5940set dummy svn; ac_word=$2
5941echo "$as_me:$LINENO: checking for $ac_word" >&5
5942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5943if test "${ac_cv_prog_have_svn+set}" = set; then
5944  echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946  if test -n "$have_svn"; then
5947  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952  IFS=$as_save_IFS
5953  test -z "$as_dir" && as_dir=.
5954  for ac_exec_ext in '' $ac_executable_extensions; do
5955  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956    ac_cv_prog_have_svn="yes"
5957    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958    break 2
5959  fi
5960done
5961done
5962
5963  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5964fi
5965fi
5966have_svn=$ac_cv_prog_have_svn
5967if test -n "$have_svn"; then
5968  echo "$as_me:$LINENO: result: $have_svn" >&5
5969echo "${ECHO_T}$have_svn" >&6
5970else
5971  echo "$as_me:$LINENO: result: no" >&5
5972echo "${ECHO_T}no" >&6
5973fi
5974
5975  if test x$have_svn = xyes; then
5976    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5977echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5978if test "${ac_cv_svn_understands_https+set}" = set; then
5979  echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981  svn --version > confauto.out 2>&1
5982                    if $EGREP https confauto.out >/dev/null 2>&1; then
5983                      ac_cv_svn_understands_https=yes
5984                    else
5985                      ac_cv_svn_understands_https=no
5986                      have_svn=no
5987                      ac_cv_prog_have_svn=no
5988                    fi
5989                    rm -f confauto.out
5990fi
5991echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5992echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5993  fi
5994
5995  # Find the location of the BuildTools directory
5996  BUILDTOOLSDIR=
5997  if test -r $srcdir/BuildTools/coin.m4; then
5998    BUILDTOOLSDIR=$srcdir/BuildTools
5999  else
6000    if test -r $srcdir/../BuildTools/coin.m4; then
6001      BUILDTOOLSDIR=$srcdir/../BuildTools
6002    else
6003      if test -r $srcdir/../../BuildTools/coin.m4; then
6004        BUILDTOOLSDIR=$srcdir/../../BuildTools
6005      else
6006        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6007echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6008   { (exit 1); exit 1; }; }
6009      fi
6010    fi
6011  fi
6012
6013
6014  # The following variable is set to the name of the directory where
6015  # the autotool scripts are located
6016
6017  AUX_DIR=$ac_aux_dir
6018fi
6019
6020# helpful variable for the base directory of this package
6021abs_source_dir=`cd $srcdir; pwd`
6022
6023
6024# Stuff for example Makefiles
6025if test x$prefix = xNONE; then
6026  full_prefix=$ac_default_prefix
6027else
6028  full_prefix=$prefix
6029fi
6030full_prefix=`cd $full_prefix ; pwd`
6031
6032abs_lib_dir=$full_prefix/lib
6033
6034abs_include_dir=$full_prefix/include
6035
6036abs_bin_dir=$full_prefix/bin
6037
6038
6039
6040if test $coin_have_externals = yes && test x$have_svn = xyes; then
6041  HAVE_EXTERNALS_TRUE=
6042  HAVE_EXTERNALS_FALSE='#'
6043else
6044  HAVE_EXTERNALS_TRUE='#'
6045  HAVE_EXTERNALS_FALSE=
6046fi
6047
6048
6049# AC_MSG_NOTICE([End automake initialisation.])
6050
6051
6052
6053LIBTOOL=
6054if test -r ../libtool; then
6055  coin_config_dir=..
6056  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6057fi
6058if test "x$LIBTOOL" = x; then
6059  if test -r ../../libtool; then
6060    coin_config_dir=../..
6061    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6062  fi
6063fi
6064
6065if test "x$LIBTOOL" = x; then
6066# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6067  # Stuff for libtool
6068  # Check whether --enable-shared or --disable-shared was given.
6069if test "${enable_shared+set}" = set; then
6070  enableval="$enable_shared"
6071  p=${PACKAGE-default}
6072    case $enableval in
6073    yes) enable_shared=yes ;;
6074    no) enable_shared=no ;;
6075    *)
6076      enable_shared=no
6077      # Look at the argument we got.  We use all the common list separators.
6078      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6079      for pkg in $enableval; do
6080        IFS="$lt_save_ifs"
6081        if test "X$pkg" = "X$p"; then
6082          enable_shared=yes
6083        fi
6084      done
6085      IFS="$lt_save_ifs"
6086      ;;
6087    esac
6088else
6089  enable_shared=yes
6090fi;
6091
6092# Check whether --enable-fast-install or --disable-fast-install was given.
6093if test "${enable_fast_install+set}" = set; then
6094  enableval="$enable_fast_install"
6095  p=${PACKAGE-default}
6096    case $enableval in
6097    yes) enable_fast_install=yes ;;
6098    no) enable_fast_install=no ;;
6099    *)
6100      enable_fast_install=no
6101      # Look at the argument we got.  We use all the common list separators.
6102      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6103      for pkg in $enableval; do
6104        IFS="$lt_save_ifs"
6105        if test "X$pkg" = "X$p"; then
6106          enable_fast_install=yes
6107        fi
6108      done
6109      IFS="$lt_save_ifs"
6110      ;;
6111    esac
6112else
6113  enable_fast_install=yes
6114fi;
6115
6116echo "$as_me:$LINENO: checking host system type" >&5
6117echo $ECHO_N "checking host system type... $ECHO_C" >&6
6118if test "${ac_cv_host+set}" = set; then
6119  echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121  ac_cv_host_alias=$host_alias
6122test -z "$ac_cv_host_alias" &&
6123  ac_cv_host_alias=$ac_cv_build_alias
6124ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6125  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6126echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6127   { (exit 1); exit 1; }; }
6128
6129fi
6130echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6131echo "${ECHO_T}$ac_cv_host" >&6
6132host=$ac_cv_host
6133host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6134host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6135host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6136
6137
6138echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6139echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6140if test "${lt_cv_path_SED+set}" = set; then
6141  echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143  # Loop through the user's path and test for sed and gsed.
6144# Then use that list of sed's as ones to test for truncation.
6145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH
6147do
6148  IFS=$as_save_IFS
6149  test -z "$as_dir" && as_dir=.
6150  for lt_ac_prog in sed gsed; do
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6153        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6154      fi
6155    done
6156  done
6157done
6158lt_ac_max=0
6159lt_ac_count=0
6160# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6161# along with /bin/sed that truncates output.
6162for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6163  test ! -f $lt_ac_sed && continue
6164  cat /dev/null > conftest.in
6165  lt_ac_count=0
6166  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6167  # Check for GNU sed and select it if it is found.
6168  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6169    lt_cv_path_SED=$lt_ac_sed
6170    break
6171  fi
6172  while true; do
6173    cat conftest.in conftest.in >conftest.tmp
6174    mv conftest.tmp conftest.in
6175    cp conftest.in conftest.nl
6176    echo >>conftest.nl
6177    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6178    cmp -s conftest.out conftest.nl || break
6179    # 10000 chars as input seems more than enough
6180    test $lt_ac_count -gt 10 && break
6181    lt_ac_count=`expr $lt_ac_count + 1`
6182    if test $lt_ac_count -gt $lt_ac_max; then
6183      lt_ac_max=$lt_ac_count
6184      lt_cv_path_SED=$lt_ac_sed
6185    fi
6186  done
6187done
6188
6189fi
6190
6191SED=$lt_cv_path_SED
6192echo "$as_me:$LINENO: result: $SED" >&5
6193echo "${ECHO_T}$SED" >&6
6194
6195
6196# Check whether --with-gnu-ld or --without-gnu-ld was given.
6197if test "${with_gnu_ld+set}" = set; then
6198  withval="$with_gnu_ld"
6199  test "$withval" = no || with_gnu_ld=yes
6200else
6201  with_gnu_ld=no
6202fi;
6203ac_prog=ld
6204if test "$GCC" = yes; then
6205  # Check if gcc -print-prog-name=ld gives a path.
6206  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6207echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6208  case $host in
6209  *-*-mingw*)
6210    # gcc leaves a trailing carriage return which upsets mingw
6211    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6212  *)
6213    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6214  esac
6215  case $ac_prog in
6216    # Accept absolute paths.
6217    [\\/]* | ?:[\\/]*)
6218      re_direlt='/[^/][^/]*/\.\./'
6219      # Canonicalize the pathname of ld
6220      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6221      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6222        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6223      done
6224      test -z "$LD" && LD="$ac_prog"
6225      ;;
6226  "")
6227    # If it fails, then pretend we aren't using GCC.
6228    ac_prog=ld
6229    ;;
6230  *)
6231    # If it is relative, then search for the first ld in PATH.
6232    with_gnu_ld=unknown
6233    ;;
6234  esac
6235elif test "$with_gnu_ld" = yes; then
6236  echo "$as_me:$LINENO: checking for GNU ld" >&5
6237echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6238else
6239  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6240echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6241fi
6242if test "${lt_cv_path_LD+set}" = set; then
6243  echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245  if test -z "$LD"; then
6246  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6247  for ac_dir in $PATH; do
6248    IFS="$lt_save_ifs"
6249    test -z "$ac_dir" && ac_dir=.
6250    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6251      lt_cv_path_LD="$ac_dir/$ac_prog"
6252      # Check to see if the program is GNU ld.  I'd rather use --version,
6253      # but apparently some variants of GNU ld only accept -v.
6254      # Break only if it was the GNU/non-GNU ld that we prefer.
6255      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6256      *GNU* | *'with BFD'*)
6257        test "$with_gnu_ld" != no && break
6258        ;;
6259      *)
6260        test "$with_gnu_ld" != yes && break
6261        ;;
6262      esac
6263    fi
6264  done
6265  IFS="$lt_save_ifs"
6266else
6267  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6268fi
6269fi
6270
6271LD="$lt_cv_path_LD"
6272if test -n "$LD"; then
6273  echo "$as_me:$LINENO: result: $LD" >&5
6274echo "${ECHO_T}$LD" >&6
6275else
6276  echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278fi
6279test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6280echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6281   { (exit 1); exit 1; }; }
6282echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6283echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6284if test "${lt_cv_prog_gnu_ld+set}" = set; then
6285  echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6288case `$LD -v 2>&1 </dev/null` in
6289*GNU* | *'with BFD'*)
6290  lt_cv_prog_gnu_ld=yes
6291  ;;
6292*)
6293  lt_cv_prog_gnu_ld=no
6294  ;;
6295esac
6296fi
6297echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6298echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6299with_gnu_ld=$lt_cv_prog_gnu_ld
6300
6301
6302echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6303echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6304if test "${lt_cv_ld_reload_flag+set}" = set; then
6305  echo $ECHO_N "(cached) $ECHO_C" >&6
6306else
6307  lt_cv_ld_reload_flag='-r'
6308fi
6309echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6310echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6311reload_flag=$lt_cv_ld_reload_flag
6312case $reload_flag in
6313"" | " "*) ;;
6314*) reload_flag=" $reload_flag" ;;
6315esac
6316reload_cmds='$LD$reload_flag -o $output$reload_objs'
6317case $host_os in
6318  darwin*)
6319    if test "$GCC" = yes; then
6320      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6321    else
6322      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6323    fi
6324    ;;
6325esac
6326
6327echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6328echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6329if test "${lt_cv_path_NM+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  if test -n "$NM"; then
6333  # Let the user override the test.
6334  lt_cv_path_NM="$NM"
6335else
6336  lt_nm_to_check="${ac_tool_prefix}nm"
6337  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6338    lt_nm_to_check="$lt_nm_to_check nm"
6339  fi
6340  for lt_tmp_nm in $lt_nm_to_check; do
6341    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6342    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6343      IFS="$lt_save_ifs"
6344      test -z "$ac_dir" && ac_dir=.
6345      tmp_nm="$ac_dir/$lt_tmp_nm"
6346      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6347        # Check to see if the nm accepts a BSD-compat flag.
6348        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6349        #   nm: unknown option "B" ignored
6350        # Tru64's nm complains that /dev/null is an invalid object file
6351        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6352        */dev/null* | *'Invalid file or object type'*)
6353          lt_cv_path_NM="$tmp_nm -B"
6354          break
6355          ;;
6356        *)
6357          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6358          */dev/null*)
6359            lt_cv_path_NM="$tmp_nm -p"
6360            break
6361            ;;
6362          *)
6363            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6364            continue # so that we can try to find one that supports BSD flags
6365            ;;
6366          esac
6367          ;;
6368        esac
6369      fi
6370    done
6371    IFS="$lt_save_ifs"
6372  done
6373  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6374fi
6375fi
6376echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6377echo "${ECHO_T}$lt_cv_path_NM" >&6
6378NM="$lt_cv_path_NM"
6379
6380echo "$as_me:$LINENO: checking whether ln -s works" >&5
6381echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6382LN_S=$as_ln_s
6383if test "$LN_S" = "ln -s"; then
6384  echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386else
6387  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6388echo "${ECHO_T}no, using $LN_S" >&6
6389fi
6390
6391echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6392echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6393if test "${lt_cv_deplibs_check_method+set}" = set; then
6394  echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396  lt_cv_file_magic_cmd='$MAGIC_CMD'
6397lt_cv_file_magic_test_file=
6398lt_cv_deplibs_check_method='unknown'
6399# Need to set the preceding variable on all platforms that support
6400# interlibrary dependencies.
6401# 'none' -- dependencies not supported.
6402# `unknown' -- same as none, but documents that we really don't know.
6403# 'pass_all' -- all dependencies passed with no checks.
6404# 'test_compile' -- check by making test program.
6405# 'file_magic [[regex]]' -- check by looking for files in library path
6406# which responds to the $file_magic_cmd with a given extended regex.
6407# If you have `file' or equivalent on your system and you're not sure
6408# whether `pass_all' will *always* work, you probably want this one.
6409
6410case $host_os in
6411aix4* | aix5*)
6412  lt_cv_deplibs_check_method=pass_all
6413  ;;
6414
6415beos*)
6416  lt_cv_deplibs_check_method=pass_all
6417  ;;
6418
6419bsdi[45]*)
6420  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6421  lt_cv_file_magic_cmd='/usr/bin/file -L'
6422  lt_cv_file_magic_test_file=/shlib/libc.so
6423  ;;
6424
6425cygwin*)
6426  # func_win32_libid is a shell function defined in ltmain.sh
6427  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6428  lt_cv_file_magic_cmd='func_win32_libid'
6429  ;;
6430
6431mingw* | pw32*)
6432  # Base MSYS/MinGW do not provide the 'file' command needed by
6433  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6434  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6435  lt_cv_file_magic_cmd='$OBJDUMP -f'
6436  ;;
6437
6438darwin* | rhapsody*)
6439  lt_cv_deplibs_check_method=pass_all
6440  ;;
6441
6442freebsd* | kfreebsd*-gnu | dragonfly*)
6443  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6444    case $host_cpu in
6445    i*86 )
6446      # Not sure whether the presence of OpenBSD here was a mistake.
6447      # Let's accept both of them until this is cleared up.
6448      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6449      lt_cv_file_magic_cmd=/usr/bin/file
6450      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6451      ;;
6452    esac
6453  else
6454    lt_cv_deplibs_check_method=pass_all
6455  fi
6456  ;;
6457
6458gnu*)
6459  lt_cv_deplibs_check_method=pass_all
6460  ;;
6461
6462hpux10.20* | hpux11*)
6463  lt_cv_file_magic_cmd=/usr/bin/file
6464  case $host_cpu in
6465  ia64*)
6466    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6467    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6468    ;;
6469  hppa*64*)
6470    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]'
6471    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6472    ;;
6473  *)
6474    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6475    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6476    ;;
6477  esac
6478  ;;
6479
6480interix3*)
6481  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6482  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6483  ;;
6484
6485irix5* | irix6* | nonstopux*)
6486  case $LD in
6487  *-32|*"-32 ") libmagic=32-bit;;
6488  *-n32|*"-n32 ") libmagic=N32;;
6489  *-64|*"-64 ") libmagic=64-bit;;
6490  *) libmagic=never-match;;
6491  esac
6492  lt_cv_deplibs_check_method=pass_all
6493  ;;
6494
6495# This must be Linux ELF.
6496linux*)
6497  lt_cv_deplibs_check_method=pass_all
6498  ;;
6499
6500netbsd*)
6501  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6502    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6503  else
6504    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6505  fi
6506  ;;
6507
6508newos6*)
6509  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6510  lt_cv_file_magic_cmd=/usr/bin/file
6511  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6512  ;;
6513
6514nto-qnx*)
6515  lt_cv_deplibs_check_method=unknown
6516  ;;
6517
6518openbsd*)
6519  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6520    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6521  else
6522    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6523  fi
6524  ;;
6525
6526osf3* | osf4* | osf5*)
6527  lt_cv_deplibs_check_method=pass_all
6528  ;;
6529
6530solaris*)
6531  lt_cv_deplibs_check_method=pass_all
6532  ;;
6533
6534sysv4 | sysv4.3*)
6535  case $host_vendor in
6536  motorola)
6537    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]'
6538    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6539    ;;
6540  ncr)
6541    lt_cv_deplibs_check_method=pass_all
6542    ;;
6543  sequent)
6544    lt_cv_file_magic_cmd='/bin/file'
6545    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6546    ;;
6547  sni)
6548    lt_cv_file_magic_cmd='/bin/file'
6549    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6550    lt_cv_file_magic_test_file=/lib/libc.so
6551    ;;
6552  siemens)
6553    lt_cv_deplibs_check_method=pass_all
6554    ;;
6555  pc)
6556    lt_cv_deplibs_check_method=pass_all
6557    ;;
6558  esac
6559  ;;
6560
6561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6562  lt_cv_deplibs_check_method=pass_all
6563  ;;
6564esac
6565
6566fi
6567echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6568echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6569file_magic_cmd=$lt_cv_file_magic_cmd
6570deplibs_check_method=$lt_cv_deplibs_check_method
6571test -z "$deplibs_check_method" && deplibs_check_method=unknown
6572
6573
6574
6575
6576# If no C compiler was specified, use CC.
6577LTCC=${LTCC-"$CC"}
6578
6579# If no C compiler flags were specified, use CFLAGS.
6580LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6581
6582# Allow CC to be a program name with arguments.
6583compiler=$CC
6584
6585# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6586if test "${enable_libtool_lock+set}" = set; then
6587  enableval="$enable_libtool_lock"
6588
6589fi;
6590test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6591
6592# Some flags need to be propagated to the compiler or linker for good
6593# libtool support.
6594case $host in
6595ia64-*-hpux*)
6596  # Find out which ABI we are using.
6597  echo 'int i;' > conftest.$ac_ext
6598  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599  (eval $ac_compile) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; then
6603    case `/usr/bin/file conftest.$ac_objext` in
6604    *ELF-32*)
6605      HPUX_IA64_MODE="32"
6606      ;;
6607    *ELF-64*)
6608      HPUX_IA64_MODE="64"
6609      ;;
6610    esac
6611  fi
6612  rm -rf conftest*
6613  ;;
6614*-*-irix6*)
6615  # Find out which ABI we are using.
6616  echo '#line 6616 "configure"' > conftest.$ac_ext
6617  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6618  (eval $ac_compile) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; then
6622   if test "$lt_cv_prog_gnu_ld" = yes; then
6623    case `/usr/bin/file conftest.$ac_objext` in
6624    *32-bit*)
6625      LD="${LD-ld} -melf32bsmip"
6626      ;;
6627    *N32*)
6628      LD="${LD-ld} -melf32bmipn32"
6629      ;;
6630    *64-bit*)
6631      LD="${LD-ld} -melf64bmip"
6632      ;;
6633    esac
6634   else
6635    case `/usr/bin/file conftest.$ac_objext` in
6636    *32-bit*)
6637      LD="${LD-ld} -32"
6638      ;;
6639    *N32*)
6640      LD="${LD-ld} -n32"
6641      ;;
6642    *64-bit*)
6643      LD="${LD-ld} -64"
6644      ;;
6645    esac
6646   fi
6647  fi
6648  rm -rf conftest*
6649  ;;
6650
6651x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6652  # Find out which ABI we are using.
6653  echo 'int i;' > conftest.$ac_ext
6654  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6655  (eval $ac_compile) 2>&5
6656  ac_status=$?
6657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658  (exit $ac_status); }; then
6659    case `/usr/bin/file conftest.o` in
6660    *32-bit*)
6661      case $host in
6662        x86_64-*linux*)
6663          LD="${LD-ld} -m elf_i386"
6664          ;;
6665        ppc64-*linux*|powerpc64-*linux*)
6666          LD="${LD-ld} -m elf32ppclinux"
6667          ;;
6668        s390x-*linux*)
6669          LD="${LD-ld} -m elf_s390"
6670          ;;
6671        sparc64-*linux*)
6672          LD="${LD-ld} -m elf32_sparc"
6673          ;;
6674      esac
6675      ;;
6676    *64-bit*)
6677      case $host in
6678        x86_64-*linux*)
6679          LD="${LD-ld} -m elf_x86_64"
6680          ;;
6681        ppc*-*linux*|powerpc*-*linux*)
6682          LD="${LD-ld} -m elf64ppc"
6683          ;;
6684        s390*-*linux*)
6685          LD="${LD-ld} -m elf64_s390"
6686          ;;
6687        sparc*-*linux*)
6688          LD="${LD-ld} -m elf64_sparc"
6689          ;;
6690      esac
6691      ;;
6692    esac
6693  fi
6694  rm -rf conftest*
6695  ;;
6696
6697*-*-sco3.2v5*)
6698  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6699  SAVE_CFLAGS="$CFLAGS"
6700  CFLAGS="$CFLAGS -belf"
6701  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6702echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6703if test "${lt_cv_cc_needs_belf+set}" = set; then
6704  echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706  ac_ext=c
6707ac_cpp='$CPP $CPPFLAGS'
6708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6710ac_compiler_gnu=$ac_cv_c_compiler_gnu
6711
6712     cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718
6719#ifdef F77_DUMMY_MAIN
6720
6721#  ifdef __cplusplus
6722     extern "C"
6723#  endif
6724   int F77_DUMMY_MAIN() { return 1; }
6725
6726#endif
6727int
6728main ()
6729{
6730
6731  ;
6732  return 0;
6733}
6734_ACEOF
6735rm -f conftest.$ac_objext conftest$ac_exeext
6736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737  (eval $ac_link) 2>conftest.er1
6738  ac_status=$?
6739  grep -v '^ *+' conftest.er1 >conftest.err
6740  rm -f conftest.er1
6741  cat conftest.err >&5
6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743  (exit $ac_status); } &&
6744         { ac_try='test -z "$ac_c_werror_flag"
6745                         || test ! -s conftest.err'
6746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747  (eval $ac_try) 2>&5
6748  ac_status=$?
6749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750  (exit $ac_status); }; } &&
6751         { ac_try='test -s conftest$ac_exeext'
6752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753  (eval $ac_try) 2>&5
6754  ac_status=$?
6755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756  (exit $ac_status); }; }; then
6757  lt_cv_cc_needs_belf=yes
6758else
6759  echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
6761
6762lt_cv_cc_needs_belf=no
6763fi
6764rm -f conftest.err conftest.$ac_objext \
6765      conftest$ac_exeext conftest.$ac_ext
6766     ac_ext=c
6767ac_cpp='$CPP $CPPFLAGS'
6768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770ac_compiler_gnu=$ac_cv_c_compiler_gnu
6771
6772fi
6773echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6774echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6775  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6776    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6777    CFLAGS="$SAVE_CFLAGS"
6778  fi
6779  ;;
6780sparc*-*solaris*)
6781  # Find out which ABI we are using.
6782  echo 'int i;' > conftest.$ac_ext
6783  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6784  (eval $ac_compile) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }; then
6788    case `/usr/bin/file conftest.o` in
6789    *64-bit*)
6790      case $lt_cv_prog_gnu_ld in
6791      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6792      *)    LD="${LD-ld} -64" ;;
6793      esac
6794      ;;
6795    esac
6796  fi
6797  rm -rf conftest*
6798  ;;
6799
6800
6801esac
6802
6803need_locks="$enable_libtool_lock"
6804
6805
6806ac_ext=c
6807ac_cpp='$CPP $CPPFLAGS'
6808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6812echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6813# On Suns, sometimes $CPP names a directory.
6814if test -n "$CPP" && test -d "$CPP"; then
6815  CPP=
6816fi
6817if test -z "$CPP"; then
6818  if test "${ac_cv_prog_CPP+set}" = set; then
6819  echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821      # Double quotes because CPP needs to be expanded
6822    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6823    do
6824      ac_preproc_ok=false
6825for ac_c_preproc_warn_flag in '' yes
6826do
6827  # Use a header file that comes with gcc, so configuring glibc
6828  # with a fresh cross-compiler works.
6829  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830  # <limits.h> exists even on freestanding compilers.
6831  # On the NeXT, cc -E runs the code through the compiler's parser,
6832  # not just through cpp. "Syntax error" is here to catch this case.
6833  cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h.  */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h.  */
6839#ifdef __STDC__
6840# include <limits.h>
6841#else
6842# include <assert.h>
6843#endif
6844                     Syntax error
6845_ACEOF
6846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6847  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6848  ac_status=$?
6849  grep -v '^ *+' conftest.er1 >conftest.err
6850  rm -f conftest.er1
6851  cat conftest.err >&5
6852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853  (exit $ac_status); } >/dev/null; then
6854  if test -s conftest.err; then
6855    ac_cpp_err=$ac_c_preproc_warn_flag
6856    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6857  else
6858    ac_cpp_err=
6859  fi
6860else
6861  ac_cpp_err=yes
6862fi
6863if test -z "$ac_cpp_err"; then
6864  :
6865else
6866  echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869  # Broken: fails on valid input.
6870continue
6871fi
6872rm -f conftest.err conftest.$ac_ext
6873
6874  # OK, works on sane cases.  Now check whether non-existent headers
6875  # can be detected and how.
6876  cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882#include <ac_nonexistent.h>
6883_ACEOF
6884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6886  ac_status=$?
6887  grep -v '^ *+' conftest.er1 >conftest.err
6888  rm -f conftest.er1
6889  cat conftest.err >&5
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); } >/dev/null; then
6892  if test -s conftest.err; then
6893    ac_cpp_err=$ac_c_preproc_warn_flag
6894    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6895  else
6896    ac_cpp_err=
6897  fi
6898else
6899  ac_cpp_err=yes
6900fi
6901if test -z "$ac_cpp_err"; then
6902  # Broken: success on invalid input.
6903continue
6904else
6905  echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908  # Passes both tests.
6909ac_preproc_ok=:
6910break
6911fi
6912rm -f conftest.err conftest.$ac_ext
6913
6914done
6915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6916rm -f conftest.err conftest.$ac_ext
6917if $ac_preproc_ok; then
6918  break
6919fi
6920
6921    done
6922    ac_cv_prog_CPP=$CPP
6923
6924fi
6925  CPP=$ac_cv_prog_CPP
6926else
6927  ac_cv_prog_CPP=$CPP
6928fi
6929echo "$as_me:$LINENO: result: $CPP" >&5
6930echo "${ECHO_T}$CPP" >&6
6931ac_preproc_ok=false
6932for ac_c_preproc_warn_flag in '' yes
6933do
6934  # Use a header file that comes with gcc, so configuring glibc
6935  # with a fresh cross-compiler works.
6936  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6937  # <limits.h> exists even on freestanding compilers.
6938  # On the NeXT, cc -E runs the code through the compiler's parser,
6939  # not just through cpp. "Syntax error" is here to catch this case.
6940  cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h.  */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h.  */
6946#ifdef __STDC__
6947# include <limits.h>
6948#else
6949# include <assert.h>
6950#endif
6951                     Syntax error
6952_ACEOF
6953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6954  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6955  ac_status=$?
6956  grep -v '^ *+' conftest.er1 >conftest.err
6957  rm -f conftest.er1
6958  cat conftest.err >&5
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); } >/dev/null; then
6961  if test -s conftest.err; then
6962    ac_cpp_err=$ac_c_preproc_warn_flag
6963    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6964  else
6965    ac_cpp_err=
6966  fi
6967else
6968  ac_cpp_err=yes
6969fi
6970if test -z "$ac_cpp_err"; then
6971  :
6972else
6973  echo "$as_me: failed program was:" >&5
6974sed 's/^/| /' conftest.$ac_ext >&5
6975
6976  # Broken: fails on valid input.
6977continue
6978fi
6979rm -f conftest.err conftest.$ac_ext
6980
6981  # OK, works on sane cases.  Now check whether non-existent headers
6982  # can be detected and how.
6983  cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h.  */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h.  */
6989#include <ac_nonexistent.h>
6990_ACEOF
6991if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6992  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6993  ac_status=$?
6994  grep -v '^ *+' conftest.er1 >conftest.err
6995  rm -f conftest.er1
6996  cat conftest.err >&5
6997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998  (exit $ac_status); } >/dev/null; then
6999  if test -s conftest.err; then
7000    ac_cpp_err=$ac_c_preproc_warn_flag
7001    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7002  else
7003    ac_cpp_err=
7004  fi
7005else
7006  ac_cpp_err=yes
7007fi
7008if test -z "$ac_cpp_err"; then
7009  # Broken: success on invalid input.
7010continue
7011else
7012  echo "$as_me: failed program was:" >&5
7013sed 's/^/| /' conftest.$ac_ext >&5
7014
7015  # Passes both tests.
7016ac_preproc_ok=:
7017break
7018fi
7019rm -f conftest.err conftest.$ac_ext
7020
7021done
7022# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7023rm -f conftest.err conftest.$ac_ext
7024if $ac_preproc_ok; then
7025  :
7026else
7027  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7028See \`config.log' for more details." >&5
7029echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7030See \`config.log' for more details." >&2;}
7031   { (exit 1); exit 1; }; }
7032fi
7033
7034ac_ext=c
7035ac_cpp='$CPP $CPPFLAGS'
7036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_c_compiler_gnu
7039
7040
7041echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7043if test "${ac_cv_header_stdc+set}" = set; then
7044  echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046  cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h.  */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h.  */
7052#include <stdlib.h>
7053#include <stdarg.h>
7054#include <string.h>
7055#include <float.h>
7056
7057#ifdef F77_DUMMY_MAIN
7058
7059#  ifdef __cplusplus
7060     extern "C"
7061#  endif
7062   int F77_DUMMY_MAIN() { return 1; }
7063
7064#endif
7065int
7066main ()
7067{
7068
7069  ;
7070  return 0;
7071}
7072_ACEOF
7073rm -f conftest.$ac_objext
7074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7075  (eval $ac_compile) 2>conftest.er1
7076  ac_status=$?
7077  grep -v '^ *+' conftest.er1 >conftest.err
7078  rm -f conftest.er1
7079  cat conftest.err >&5
7080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081  (exit $ac_status); } &&
7082         { ac_try='test -z "$ac_c_werror_flag"
7083                         || test ! -s conftest.err'
7084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085  (eval $ac_try) 2>&5
7086  ac_status=$?
7087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); }; } &&
7089         { ac_try='test -s conftest.$ac_objext'
7090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091  (eval $ac_try) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }; }; then
7095  ac_cv_header_stdc=yes
7096else
7097  echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
7099
7100ac_cv_header_stdc=no
7101fi
7102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7103
7104if test $ac_cv_header_stdc = yes; then
7105  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7106  cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h.  */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h.  */
7112#include <string.h>
7113
7114_ACEOF
7115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116  $EGREP "memchr" >/dev/null 2>&1; then
7117  :
7118else
7119  ac_cv_header_stdc=no
7120fi
7121rm -f conftest*
7122
7123fi
7124
7125if test $ac_cv_header_stdc = yes; then
7126  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7127  cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h.  */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h.  */
7133#include <stdlib.h>
7134
7135_ACEOF
7136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7137  $EGREP "free" >/dev/null 2>&1; then
7138  :
7139else
7140  ac_cv_header_stdc=no
7141fi
7142rm -f conftest*
7143
7144fi
7145
7146if test $ac_cv_header_stdc = yes; then
7147  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7148  if test "$cross_compiling" = yes; then
7149  :
7150else
7151  cat >conftest.$ac_ext <<_ACEOF
7152/* confdefs.h.  */
7153_ACEOF
7154cat confdefs.h >>conftest.$ac_ext
7155cat >>conftest.$ac_ext <<_ACEOF
7156/* end confdefs.h.  */
7157#include <ctype.h>
7158#if ((' ' & 0x0FF) == 0x020)
7159# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7160# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7161#else
7162# define ISLOWER(c) \
7163                   (('a' <= (c) && (c) <= 'i') \
7164                     || ('j' <= (c) && (c) <= 'r') \
7165                     || ('s' <= (c) && (c) <= 'z'))
7166# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7167#endif
7168
7169#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7170int
7171main ()
7172{
7173  int i;
7174  for (i = 0; i < 256; i++)
7175    if (XOR (islower (i), ISLOWER (i))
7176        || toupper (i) != TOUPPER (i))
7177      exit(2);
7178  exit (0);
7179}
7180_ACEOF
7181rm -f conftest$ac_exeext
7182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7183  (eval $ac_link) 2>&5
7184  ac_status=$?
7185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188  (eval $ac_try) 2>&5
7189  ac_status=$?
7190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); }; }; then
7192  :
7193else
7194  echo "$as_me: program exited with status $ac_status" >&5
7195echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
7197
7198( exit $ac_status )
7199ac_cv_header_stdc=no
7200fi
7201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7202fi
7203fi
7204fi
7205echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7206echo "${ECHO_T}$ac_cv_header_stdc" >&6
7207if test $ac_cv_header_stdc = yes; then
7208
7209cat >>confdefs.h <<\_ACEOF
7210#define STDC_HEADERS 1
7211_ACEOF
7212
7213fi
7214
7215# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7226                  inttypes.h stdint.h unistd.h
7227do
7228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7229echo "$as_me:$LINENO: checking for $ac_header" >&5
7230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7231if eval "test \"\${$as_ac_Header+set}\" = set"; then
7232  echo $ECHO_N "(cached) $ECHO_C" >&6
7233else
7234  cat >conftest.$ac_ext <<_ACEOF
7235/* confdefs.h.  */
7236_ACEOF
7237cat confdefs.h >>conftest.$ac_ext
7238cat >>conftest.$ac_ext <<_ACEOF
7239/* end confdefs.h.  */
7240$ac_includes_default
7241
7242#include <$ac_header>
7243_ACEOF
7244rm -f conftest.$ac_objext
7245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246  (eval $ac_compile) 2>conftest.er1
7247  ac_status=$?
7248  grep -v '^ *+' conftest.er1 >conftest.err
7249  rm -f conftest.er1
7250  cat conftest.err >&5
7251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252  (exit $ac_status); } &&
7253         { ac_try='test -z "$ac_c_werror_flag"
7254                         || test ! -s conftest.err'
7255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256  (eval $ac_try) 2>&5
7257  ac_status=$?
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); }; } &&
7260         { ac_try='test -s conftest.$ac_objext'
7261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262  (eval $ac_try) 2>&5
7263  ac_status=$?
7264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265  (exit $ac_status); }; }; then
7266  eval "$as_ac_Header=yes"
7267else
7268  echo "$as_me: failed program was:" >&5
7269sed 's/^/| /' conftest.$ac_ext >&5
7270
7271eval "$as_ac_Header=no"
7272fi
7273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274fi
7275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277if test `eval echo '${'$as_ac_Header'}'` = yes; then
7278  cat >>confdefs.h <<_ACEOF
7279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7280_ACEOF
7281
7282fi
7283
7284done
7285
7286
7287
7288for ac_header in dlfcn.h
7289do
7290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292  echo "$as_me:$LINENO: checking for $ac_header" >&5
7293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296fi
7297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299else
7300  # Is the header compilable?
7301echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h.  */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h.  */
7309$ac_includes_default
7310#include <$ac_header>
7311_ACEOF
7312rm -f conftest.$ac_objext
7313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314  (eval $ac_compile) 2>conftest.er1
7315  ac_status=$?
7316  grep -v '^ *+' conftest.er1 >conftest.err
7317  rm -f conftest.er1
7318  cat conftest.err >&5
7319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320  (exit $ac_status); } &&
7321         { ac_try='test -z "$ac_c_werror_flag"
7322                         || test ! -s conftest.err'
7323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324  (eval $ac_try) 2>&5
7325  ac_status=$?
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); }; } &&
7328         { ac_try='test -s conftest.$ac_objext'
7329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330  (eval $ac_try) 2>&5
7331  ac_status=$?
7332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333  (exit $ac_status); }; }; then
7334  ac_header_compiler=yes
7335else
7336  echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339ac_header_compiler=no
7340fi
7341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7343echo "${ECHO_T}$ac_header_compiler" >&6
7344
7345# Is the header present?
7346echo "$as_me:$LINENO: checking $ac_header presence" >&5
7347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7348cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h.  */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h.  */
7354#include <$ac_header>
7355_ACEOF
7356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } >/dev/null; then
7364  if test -s conftest.err; then
7365    ac_cpp_err=$ac_c_preproc_warn_flag
7366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7367  else
7368    ac_cpp_err=
7369  fi
7370else
7371  ac_cpp_err=yes
7372fi
7373if test -z "$ac_cpp_err"; then
7374  ac_header_preproc=yes
7375else
7376  echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379  ac_header_preproc=no
7380fi
7381rm -f conftest.err conftest.$ac_ext
7382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7383echo "${ECHO_T}$ac_header_preproc" >&6
7384
7385# So?  What about this header?
7386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7387  yes:no: )
7388    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7390    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7392    ac_header_preproc=yes
7393    ;;
7394  no:yes:* )
7395    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7397    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7398echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7399    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7401    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7402echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7405    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7407    (
7408      cat <<\_ASBOX
7409## --------------------------------------------------------------- ##
7410## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7411## --------------------------------------------------------------- ##
7412_ASBOX
7413    ) |
7414      sed "s/^/$as_me: WARNING:     /" >&2
7415    ;;
7416esac
7417echo "$as_me:$LINENO: checking for $ac_header" >&5
7418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7419if eval "test \"\${$as_ac_Header+set}\" = set"; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  eval "$as_ac_Header=\$ac_header_preproc"
7423fi
7424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7426
7427fi
7428if test `eval echo '${'$as_ac_Header'}'` = yes; then
7429  cat >>confdefs.h <<_ACEOF
7430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7431_ACEOF
7432
7433fi
7434
7435done
7436
7437ac_ext=cc
7438ac_cpp='$CXXCPP $CPPFLAGS'
7439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7442if test -n "$ac_tool_prefix"; then
7443  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7444  do
7445    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7446set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7447echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7449if test "${ac_cv_prog_CXX+set}" = set; then
7450  echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452  if test -n "$CXX"; then
7453  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7454else
7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458  IFS=$as_save_IFS
7459  test -z "$as_dir" && as_dir=.
7460  for ac_exec_ext in '' $ac_executable_extensions; do
7461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464    break 2
7465  fi
7466done
7467done
7468
7469fi
7470fi
7471CXX=$ac_cv_prog_CXX
7472if test -n "$CXX"; then
7473  echo "$as_me:$LINENO: result: $CXX" >&5
7474echo "${ECHO_T}$CXX" >&6
7475else
7476  echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6
7478fi
7479
7480    test -n "$CXX" && break
7481  done
7482fi
7483if test -z "$CXX"; then
7484  ac_ct_CXX=$CXX
7485  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7486do
7487  # Extract the first word of "$ac_prog", so it can be a program name with args.
7488set dummy $ac_prog; ac_word=$2
7489echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7491if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  if test -n "$ac_ct_CXX"; then
7495  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500  IFS=$as_save_IFS
7501  test -z "$as_dir" && as_dir=.
7502  for ac_exec_ext in '' $ac_executable_extensions; do
7503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504    ac_cv_prog_ac_ct_CXX="$ac_prog"
7505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7506    break 2
7507  fi
7508done
7509done
7510
7511fi
7512fi
7513ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7514if test -n "$ac_ct_CXX"; then
7515  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7516echo "${ECHO_T}$ac_ct_CXX" >&6
7517else
7518  echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520fi
7521
7522  test -n "$ac_ct_CXX" && break
7523done
7524test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7525
7526  CXX=$ac_ct_CXX
7527fi
7528
7529
7530# Provide some information about the compiler.
7531echo "$as_me:$LINENO:" \
7532     "checking for C++ compiler version" >&5
7533ac_compiler=`set X $ac_compile; echo $2`
7534{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7535  (eval $ac_compiler --version </dev/null >&5) 2>&5
7536  ac_status=$?
7537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538  (exit $ac_status); }
7539{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7540  (eval $ac_compiler -v </dev/null >&5) 2>&5
7541  ac_status=$?
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); }
7544{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7545  (eval $ac_compiler -V </dev/null >&5) 2>&5
7546  ac_status=$?
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); }
7549
7550echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7551echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7552if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7553  echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555  cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h.  */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h.  */
7561
7562#ifdef F77_DUMMY_MAIN
7563
7564#  ifdef __cplusplus
7565     extern "C"
7566#  endif
7567   int F77_DUMMY_MAIN() { return 1; }
7568
7569#endif
7570int
7571main ()
7572{
7573#ifndef __GNUC__
7574       choke me
7575#endif
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581rm -f conftest.$ac_objext
7582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7583  (eval $ac_compile) 2>conftest.er1
7584  ac_status=$?
7585  grep -v '^ *+' conftest.er1 >conftest.err
7586  rm -f conftest.er1
7587  cat conftest.err >&5
7588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589  (exit $ac_status); } &&
7590         { ac_try='test -z "$ac_cxx_werror_flag"
7591                         || test ! -s conftest.err'
7592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593  (eval $ac_try) 2>&5
7594  ac_status=$?
7595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596  (exit $ac_status); }; } &&
7597         { ac_try='test -s conftest.$ac_objext'
7598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599  (eval $ac_try) 2>&5
7600  ac_status=$?
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); }; }; then
7603  ac_compiler_gnu=yes
7604else
7605  echo "$as_me: failed program was:" >&5
7606sed 's/^/| /' conftest.$ac_ext >&5
7607
7608ac_compiler_gnu=no
7609fi
7610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7611ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7612
7613fi
7614echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7615echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7616GXX=`test $ac_compiler_gnu = yes && echo yes`
7617ac_test_CXXFLAGS=${CXXFLAGS+set}
7618ac_save_CXXFLAGS=$CXXFLAGS
7619CXXFLAGS="-g"
7620echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7621echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7622if test "${ac_cv_prog_cxx_g+set}" = set; then
7623  echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625  cat >conftest.$ac_ext <<_ACEOF
7626/* confdefs.h.  */
7627_ACEOF
7628cat confdefs.h >>conftest.$ac_ext
7629cat >>conftest.$ac_ext <<_ACEOF
7630/* end confdefs.h.  */
7631
7632#ifdef F77_DUMMY_MAIN
7633
7634#  ifdef __cplusplus
7635     extern "C"
7636#  endif
7637   int F77_DUMMY_MAIN() { return 1; }
7638
7639#endif
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext
7649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650  (eval $ac_compile) 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } &&
7657         { ac_try='test -z "$ac_cxx_werror_flag"
7658                         || test ! -s conftest.err'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; } &&
7664         { ac_try='test -s conftest.$ac_objext'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; }; then
7670  ac_cv_prog_cxx_g=yes
7671else
7672  echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_cv_prog_cxx_g=no
7676fi
7677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7680echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7681if test "$ac_test_CXXFLAGS" = set; then
7682  CXXFLAGS=$ac_save_CXXFLAGS
7683elif test $ac_cv_prog_cxx_g = yes; then
7684  if test "$GXX" = yes; then
7685    CXXFLAGS="-g -O2"
7686  else
7687    CXXFLAGS="-g"
7688  fi
7689else
7690  if test "$GXX" = yes; then
7691    CXXFLAGS="-O2"
7692  else
7693    CXXFLAGS=
7694  fi
7695fi
7696for ac_declaration in \
7697   '' \
7698   'extern "C" void std::exit (int) throw (); using std::exit;' \
7699   'extern "C" void std::exit (int); using std::exit;' \
7700   'extern "C" void exit (int) throw ();' \
7701   'extern "C" void exit (int);' \
7702   'void exit (int);'
7703do
7704  cat >conftest.$ac_ext <<_ACEOF
7705/* confdefs.h.  */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h.  */
7710$ac_declaration
7711#include <stdlib.h>
7712#ifdef F77_DUMMY_MAIN
7713
7714#  ifdef __cplusplus
7715     extern "C"
7716#  endif
7717   int F77_DUMMY_MAIN() { return 1; }
7718
7719#endif
7720int
7721main ()
7722{
7723exit (42);
7724  ;
7725  return 0;
7726}
7727_ACEOF
7728rm -f conftest.$ac_objext
7729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730  (eval $ac_compile) 2>conftest.er1
7731  ac_status=$?
7732  grep -v '^ *+' conftest.er1 >conftest.err
7733  rm -f conftest.er1
7734  cat conftest.err >&5
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); } &&
7737         { ac_try='test -z "$ac_cxx_werror_flag"
7738                         || test ! -s conftest.err'
7739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740  (eval $ac_try) 2>&5
7741  ac_status=$?
7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743  (exit $ac_status); }; } &&
7744         { ac_try='test -s conftest.$ac_objext'
7745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746  (eval $ac_try) 2>&5
7747  ac_status=$?
7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749  (exit $ac_status); }; }; then
7750  :
7751else
7752  echo "$as_me: failed program was:" >&5
7753sed 's/^/| /' conftest.$ac_ext >&5
7754
7755continue
7756fi
7757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7758  cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h.  */
7760_ACEOF
7761cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h.  */
7764$ac_declaration
7765#ifdef F77_DUMMY_MAIN
7766
7767#  ifdef __cplusplus
7768     extern "C"
7769#  endif
7770   int F77_DUMMY_MAIN() { return 1; }
7771
7772#endif
7773int
7774main ()
7775{
7776exit (42);
7777  ;
7778  return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext
7782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783  (eval $ac_compile) 2>conftest.er1
7784  ac_status=$?
7785  grep -v '^ *+' conftest.er1 >conftest.err
7786  rm -f conftest.er1
7787  cat conftest.err >&5
7788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789  (exit $ac_status); } &&
7790         { ac_try='test -z "$ac_cxx_werror_flag"
7791                         || test ! -s conftest.err'
7792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793  (eval $ac_try) 2>&5
7794  ac_status=$?
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); }; } &&
7797         { ac_try='test -s conftest.$ac_objext'
7798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799  (eval $ac_try) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); }; }; then
7803  break
7804else
7805  echo "$as_me: failed program was:" >&5
7806sed 's/^/| /' conftest.$ac_ext >&5
7807
7808fi
7809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7810done
7811rm -f conftest*
7812if test -n "$ac_declaration"; then
7813  echo '#ifdef __cplusplus' >>confdefs.h
7814  echo $ac_declaration      >>confdefs.h
7815  echo '#endif'             >>confdefs.h
7816fi
7817
7818ac_ext=cc
7819ac_cpp='$CXXCPP $CPPFLAGS'
7820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7823
7824depcc="$CXX"  am_compiler_list=
7825
7826echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7827echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7828if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7829  echo $ECHO_N "(cached) $ECHO_C" >&6
7830else
7831  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7832  # We make a subdir and do the tests there.  Otherwise we can end up
7833  # making bogus files that we don't know about and never remove.  For
7834  # instance it was reported that on HP-UX the gcc test will end up
7835  # making a dummy file named `D' -- because `-MD' means `put the output
7836  # in D'.
7837  mkdir conftest.dir
7838  # Copy depcomp to subdir because otherwise we won't find it if we're
7839  # using a relative directory.
7840  cp "$am_depcomp" conftest.dir
7841  cd conftest.dir
7842  # We will build objects and dependencies in a subdirectory because
7843  # it helps to detect inapplicable dependency modes.  For instance
7844  # both Tru64's cc and ICC support -MD to output dependencies as a
7845  # side effect of compilation, but ICC will put the dependencies in
7846  # the current directory while Tru64 will put them in the object
7847  # directory.
7848  mkdir sub
7849
7850  am_cv_CXX_dependencies_compiler_type=none
7851  if test "$am_compiler_list" = ""; then
7852     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7853  fi
7854  for depmode in $am_compiler_list; do
7855    # Setup a source with many dependencies, because some compilers
7856    # like to wrap large dependency lists on column 80 (with \), and
7857    # we should not choose a depcomp mode which is confused by this.
7858    #
7859    # We need to recreate these files for each test, as the compiler may
7860    # overwrite some of them when testing with obscure command lines.
7861    # This happens at least with the AIX C compiler.
7862    : > sub/conftest.c
7863    for i in 1 2 3 4 5 6; do
7864      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7865      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7866      # Solaris 8's {/usr,}/bin/sh.
7867      touch sub/conftst$i.h
7868    done
7869    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7870
7871    case $depmode in
7872    nosideeffect)
7873      # after this tag, mechanisms are not by side-effect, so they'll
7874      # only be used when explicitly requested
7875      if test "x$enable_dependency_tracking" = xyes; then
7876        continue
7877      else
7878        break
7879      fi
7880      ;;
7881    none) break ;;
7882    esac
7883    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7884    # mode.  It turns out that the SunPro C++ compiler does not properly
7885    # handle `-M -o', and we need to detect this.
7886    if depmode=$depmode \
7887       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7888       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7889       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7890         >/dev/null 2>conftest.err &&
7891       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7892       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7893       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7894      # icc doesn't choke on unknown options, it will just issue warnings
7895      # or remarks (even with -Werror).  So we grep stderr for any message
7896      # that says an option was ignored or not supported.
7897      # When given -MP, icc 7.0 and 7.1 complain thusly:
7898      #   icc: Command line warning: ignoring option '-M'; no argument required
7899      # The diagnosis changed in icc 8.0:
7900      #   icc: Command line remark: option '-MP' not supported
7901      if (grep 'ignoring option' conftest.err ||
7902          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7903        am_cv_CXX_dependencies_compiler_type=$depmode
7904        break
7905      fi
7906    fi
7907  done
7908
7909  cd ..
7910  rm -rf conftest.dir
7911else
7912  am_cv_CXX_dependencies_compiler_type=none
7913fi
7914
7915fi
7916echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7917echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7918CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7919
7920
7921
7922if
7923  test "x$enable_dependency_tracking" != xno \
7924  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7925  am__fastdepCXX_TRUE=
7926  am__fastdepCXX_FALSE='#'
7927else
7928  am__fastdepCXX_TRUE='#'
7929  am__fastdepCXX_FALSE=
7930fi
7931
7932
7933
7934
7935if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7936    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7937    (test "X$CXX" != "Xg++"))) ; then
7938  ac_ext=cc
7939ac_cpp='$CXXCPP $CPPFLAGS'
7940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7943echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7944echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7945if test -z "$CXXCPP"; then
7946  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7947  echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949      # Double quotes because CXXCPP needs to be expanded
7950    for CXXCPP in "$CXX -E" "/lib/cpp"
7951    do
7952      ac_preproc_ok=false
7953for ac_cxx_preproc_warn_flag in '' yes
7954do
7955  # Use a header file that comes with gcc, so configuring glibc
7956  # with a fresh cross-compiler works.
7957  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7958  # <limits.h> exists even on freestanding compilers.
7959  # On the NeXT, cc -E runs the code through the compiler's parser,
7960  # not just through cpp. "Syntax error" is here to catch this case.
7961  cat >conftest.$ac_ext <<_ACEOF
7962/* confdefs.h.  */
7963_ACEOF
7964cat confdefs.h >>conftest.$ac_ext
7965cat >>conftest.$ac_ext <<_ACEOF
7966/* end confdefs.h.  */
7967#ifdef __STDC__
7968# include <limits.h>
7969#else
7970# include <assert.h>
7971#endif
7972                     Syntax error
7973_ACEOF
7974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7975  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7976  ac_status=$?
7977  grep -v '^ *+' conftest.er1 >conftest.err
7978  rm -f conftest.er1
7979  cat conftest.err >&5
7980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981  (exit $ac_status); } >/dev/null; then
7982  if test -s conftest.err; then
7983    ac_cpp_err=$ac_cxx_preproc_warn_flag
7984    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7985  else
7986    ac_cpp_err=
7987  fi
7988else
7989  ac_cpp_err=yes
7990fi
7991if test -z "$ac_cpp_err"; then
7992  :
7993else
7994  echo "$as_me: failed program was:" >&5
7995sed 's/^/| /' conftest.$ac_ext >&5
7996
7997  # Broken: fails on valid input.
7998continue
7999fi
8000rm -f conftest.err conftest.$ac_ext
8001
8002  # OK, works on sane cases.  Now check whether non-existent headers
8003  # can be detected and how.
8004  cat >conftest.$ac_ext <<_ACEOF
8005/* confdefs.h.  */
8006_ACEOF
8007cat confdefs.h >>conftest.$ac_ext
8008cat >>conftest.$ac_ext <<_ACEOF
8009/* end confdefs.h.  */
8010#include <ac_nonexistent.h>
8011_ACEOF
8012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8013  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8014  ac_status=$?
8015  grep -v '^ *+' conftest.er1 >conftest.err
8016  rm -f conftest.er1
8017  cat conftest.err >&5
8018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019  (exit $ac_status); } >/dev/null; then
8020  if test -s conftest.err; then
8021    ac_cpp_err=$ac_cxx_preproc_warn_flag
8022    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8023  else
8024    ac_cpp_err=
8025  fi
8026else
8027  ac_cpp_err=yes
8028fi
8029if test -z "$ac_cpp_err"; then
8030  # Broken: success on invalid input.
8031continue
8032else
8033  echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
8036  # Passes both tests.
8037ac_preproc_ok=:
8038break
8039fi
8040rm -f conftest.err conftest.$ac_ext
8041
8042done
8043# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8044rm -f conftest.err conftest.$ac_ext
8045if $ac_preproc_ok; then
8046  break
8047fi
8048
8049    done
8050    ac_cv_prog_CXXCPP=$CXXCPP
8051
8052fi
8053  CXXCPP=$ac_cv_prog_CXXCPP
8054else
8055  ac_cv_prog_CXXCPP=$CXXCPP
8056fi
8057echo "$as_me:$LINENO: result: $CXXCPP" >&5
8058echo "${ECHO_T}$CXXCPP" >&6
8059ac_preproc_ok=false
8060for ac_cxx_preproc_warn_flag in '' yes
8061do
8062  # Use a header file that comes with gcc, so configuring glibc
8063  # with a fresh cross-compiler works.
8064  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8065  # <limits.h> exists even on freestanding compilers.
8066  # On the NeXT, cc -E runs the code through the compiler's parser,
8067  # not just through cpp. "Syntax error" is here to catch this case.
8068  cat >conftest.$ac_ext <<_ACEOF
8069/* confdefs.h.  */
8070_ACEOF
8071cat confdefs.h >>conftest.$ac_ext
8072cat >>conftest.$ac_ext <<_ACEOF
8073/* end confdefs.h.  */
8074#ifdef __STDC__
8075# include <limits.h>
8076#else
8077# include <assert.h>
8078#endif
8079                     Syntax error
8080_ACEOF
8081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8082  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8083  ac_status=$?
8084  grep -v '^ *+' conftest.er1 >conftest.err
8085  rm -f conftest.er1
8086  cat conftest.err >&5
8087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088  (exit $ac_status); } >/dev/null; then
8089  if test -s conftest.err; then
8090    ac_cpp_err=$ac_cxx_preproc_warn_flag
8091    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8092  else
8093    ac_cpp_err=
8094  fi
8095else
8096  ac_cpp_err=yes
8097fi
8098if test -z "$ac_cpp_err"; then
8099  :
8100else
8101  echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
8104  # Broken: fails on valid input.
8105continue
8106fi
8107rm -f conftest.err conftest.$ac_ext
8108
8109  # OK, works on sane cases.  Now check whether non-existent headers
8110  # can be detected and how.
8111  cat >conftest.$ac_ext <<_ACEOF
8112/* confdefs.h.  */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h.  */
8117#include <ac_nonexistent.h>
8118_ACEOF
8119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8121  ac_status=$?
8122  grep -v '^ *+' conftest.er1 >conftest.err
8123  rm -f conftest.er1
8124  cat conftest.err >&5
8125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126  (exit $ac_status); } >/dev/null; then
8127  if test -s conftest.err; then
8128    ac_cpp_err=$ac_cxx_preproc_warn_flag
8129    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8130  else
8131    ac_cpp_err=
8132  fi
8133else
8134  ac_cpp_err=yes
8135fi
8136if test -z "$ac_cpp_err"; then
8137  # Broken: success on invalid input.
8138continue
8139else
8140  echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143  # Passes both tests.
8144ac_preproc_ok=:
8145break
8146fi
8147rm -f conftest.err conftest.$ac_ext
8148
8149done
8150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8151rm -f conftest.err conftest.$ac_ext
8152if $ac_preproc_ok; then
8153  :
8154else
8155  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8156See \`config.log' for more details." >&5
8157echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8158See \`config.log' for more details." >&2;}
8159   { (exit 1); exit 1; }; }
8160fi
8161
8162ac_ext=cc
8163ac_cpp='$CXXCPP $CPPFLAGS'
8164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8167
8168fi
8169
8170
8171
8172# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8173
8174# find the maximum length of command line arguments
8175echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8176echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8177if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8178  echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180    i=0
8181  teststring="ABCD"
8182
8183  case $build_os in
8184  msdosdjgpp*)
8185    # On DJGPP, this test can blow up pretty badly due to problems in libc
8186    # (any single argument exceeding 2000 bytes causes a buffer overrun
8187    # during glob expansion).  Even if it were fixed, the result of this
8188    # check would be larger than it should be.
8189    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8190    ;;
8191
8192  gnu*)
8193    # Under GNU Hurd, this test is not required because there is
8194    # no limit to the length of command line arguments.
8195    # Libtool will interpret -1 as no limit whatsoever
8196    lt_cv_sys_max_cmd_len=-1;
8197    ;;
8198
8199  cygwin* | mingw*)
8200    # On Win9x/ME, this test blows up -- it succeeds, but takes
8201    # about 5 minutes as the teststring grows exponentially.
8202    # Worse, since 9x/ME are not pre-emptively multitasking,
8203    # you end up with a "frozen" computer, even though with patience
8204    # the test eventually succeeds (with a max line length of 256k).
8205    # Instead, let's just punt: use the minimum linelength reported by
8206    # all of the supported platforms: 8192 (on NT/2K/XP).
8207    lt_cv_sys_max_cmd_len=8192;
8208    ;;
8209
8210  amigaos*)
8211    # On AmigaOS with pdksh, this test takes hours, literally.
8212    # So we just punt and use a minimum line length of 8192.
8213    lt_cv_sys_max_cmd_len=8192;
8214    ;;
8215
8216  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8217    # This has been around since 386BSD, at least.  Likely further.
8218    if test -x /sbin/sysctl; then
8219      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8220    elif test -x /usr/sbin/sysctl; then
8221      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8222    else
8223      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8224    fi
8225    # And add a safety zone
8226    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8227    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8228    ;;
8229
8230  interix*)
8231    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8232    lt_cv_sys_max_cmd_len=196608
8233    ;;
8234
8235  osf*)
8236    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8237    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8238    # nice to cause kernel panics so lets avoid the loop below.
8239    # First set a reasonable default.
8240    lt_cv_sys_max_cmd_len=16384
8241    #
8242    if test -x /sbin/sysconfig; then
8243      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8244        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8245      esac
8246    fi
8247    ;;
8248  sco3.2v5*)
8249    lt_cv_sys_max_cmd_len=102400
8250    ;;
8251  sysv5* | sco5v6* | sysv4.2uw2*)
8252    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8253    if test -n "$kargmax"; then
8254      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8255    else
8256      lt_cv_sys_max_cmd_len=32768
8257    fi
8258    ;;
8259  *)
8260    # If test is not a shell built-in, we'll probably end up computing a
8261    # maximum length that is only half of the actual maximum length, but
8262    # we can't tell.
8263    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8264    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8265               = "XX$teststring") >/dev/null 2>&1 &&
8266            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8267            lt_cv_sys_max_cmd_len=$new_result &&
8268            test $i != 17 # 1/2 MB should be enough
8269    do
8270      i=`expr $i + 1`
8271      teststring=$teststring$teststring
8272    done
8273    teststring=
8274    # Add a significant safety factor because C++ compilers can tack on massive
8275    # amounts of additional arguments before passing them to the linker.
8276    # It appears as though 1/2 is a usable value.
8277    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8278    ;;
8279  esac
8280
8281fi
8282
8283if test -n $lt_cv_sys_max_cmd_len ; then
8284  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8285echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8286else
8287  echo "$as_me:$LINENO: result: none" >&5
8288echo "${ECHO_T}none" >&6
8289fi
8290
8291
8292
8293
8294# Check for command to grab the raw symbol name followed by C symbol from nm.
8295echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8296echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8298  echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300
8301# These are sane defaults that work on at least a few old systems.
8302# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8303
8304# Character class describing NM global symbol codes.
8305symcode='[BCDEGRST]'
8306
8307# Regexp to match symbols that can be accessed directly from C.
8308sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8309
8310# Transform an extracted symbol line into a proper C declaration
8311lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8312
8313# Transform an extracted symbol line into symbol name and symbol address
8314lt_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'"
8315
8316# Define system-specific variables.
8317case $host_os in
8318aix*)
8319  symcode='[BCDT]'
8320  ;;
8321cygwin* | mingw* | pw32*)
8322  symcode='[ABCDGISTW]'
8323  ;;
8324hpux*) # Its linker distinguishes data from code symbols
8325  if test "$host_cpu" = ia64; then
8326    symcode='[ABCDEGRST]'
8327  fi
8328  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8329  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'"
8330  ;;
8331linux*)
8332  if test "$host_cpu" = ia64; then
8333    symcode='[ABCDGIRSTW]'
8334    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8335    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'"
8336  fi
8337  ;;
8338irix* | nonstopux*)
8339  symcode='[BCDEGRST]'
8340  ;;
8341osf*)
8342  symcode='[BCDEGQRST]'
8343  ;;
8344solaris*)
8345  symcode='[BDRT]'
8346  ;;
8347sco3.2v5*)
8348  symcode='[DT]'
8349  ;;
8350sysv4.2uw2*)
8351  symcode='[DT]'
8352  ;;
8353sysv5* | sco5v6* | unixware* | OpenUNIX*)
8354  symcode='[ABDT]'
8355  ;;
8356sysv4)
8357  symcode='[DFNSTU]'
8358  ;;
8359esac
8360
8361# Handle CRLF in mingw tool chain
8362opt_cr=
8363case $build_os in
8364mingw*)
8365  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8366  ;;
8367esac
8368
8369# If we're using GNU nm, then use its standard symbol codes.
8370case `$NM -V 2>&1` in
8371*GNU* | *'with BFD'*)
8372  symcode='[ABCDGIRSTW]' ;;
8373esac
8374
8375# Try without a prefix undercore, then with it.
8376for ac_symprfx in "" "_"; do
8377
8378  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8379  symxfrm="\\1 $ac_symprfx\\2 \\2"
8380
8381  # Write the raw and C identifiers.
8382  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8383
8384  # Check to see that the pipe works correctly.
8385  pipe_works=no
8386
8387  rm -f conftest*
8388  cat > conftest.$ac_ext <<EOF
8389#ifdef __cplusplus
8390extern "C" {
8391#endif
8392char nm_test_var;
8393void nm_test_func(){}
8394#ifdef __cplusplus
8395}
8396#endif
8397int main(){nm_test_var='a';nm_test_func();return(0);}
8398EOF
8399
8400  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401  (eval $ac_compile) 2>&5
8402  ac_status=$?
8403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404  (exit $ac_status); }; then
8405    # Now try to grab the symbols.
8406    nlist=conftest.nm
8407    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8408  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8409  ac_status=$?
8410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); } && test -s "$nlist"; then
8412      # Try sorting and uniquifying the output.
8413      if sort "$nlist" | uniq > "$nlist"T; then
8414        mv -f "$nlist"T "$nlist"
8415      else
8416        rm -f "$nlist"T
8417      fi
8418
8419      # Make sure that we snagged all the symbols we need.
8420      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8421        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8422          cat <<EOF > conftest.$ac_ext
8423#ifdef __cplusplus
8424extern "C" {
8425#endif
8426
8427EOF
8428          # Now generate the symbol file.
8429          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8430
8431          cat <<EOF >> conftest.$ac_ext
8432#if defined (__STDC__) && __STDC__
8433# define lt_ptr_t void *
8434#else
8435# define lt_ptr_t char *
8436# define const
8437#endif
8438
8439/* The mapping between symbol names and symbols. */
8440const struct {
8441  const char *name;
8442  lt_ptr_t address;
8443}
8444lt_preloaded_symbols[] =
8445{
8446EOF
8447          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8448          cat <<\EOF >> conftest.$ac_ext
8449  {0, (lt_ptr_t) 0}
8450};
8451
8452#ifdef __cplusplus
8453}
8454#endif
8455EOF
8456          # Now try linking the two files.
8457          mv conftest.$ac_objext conftstm.$ac_objext
8458          lt_save_LIBS="$LIBS"
8459          lt_save_CFLAGS="$CFLAGS"
8460          LIBS="conftstm.$ac_objext"
8461          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8462          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8463  (eval $ac_link) 2>&5
8464  ac_status=$?
8465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8467            pipe_works=yes
8468          fi
8469          LIBS="$lt_save_LIBS"
8470          CFLAGS="$lt_save_CFLAGS"
8471        else
8472          echo "cannot find nm_test_func in $nlist" >&5
8473        fi
8474      else
8475        echo "cannot find nm_test_var in $nlist" >&5
8476      fi
8477    else
8478      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8479    fi
8480  else
8481    echo "$progname: failed program was:" >&5
8482    cat conftest.$ac_ext >&5
8483  fi
8484  rm -f conftest* conftst*
8485
8486  # Do not use the global_symbol_pipe unless it works.
8487  if test "$pipe_works" = yes; then
8488    break
8489  else
8490    lt_cv_sys_global_symbol_pipe=
8491  fi
8492done
8493
8494fi
8495
8496if test -z "$lt_cv_sys_global_symbol_pipe"; then
8497  lt_cv_sys_global_symbol_to_cdecl=
8498fi
8499if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8500  echo "$as_me:$LINENO: result: failed" >&5
8501echo "${ECHO_T}failed" >&6
8502else
8503  echo "$as_me:$LINENO: result: ok" >&5
8504echo "${ECHO_T}ok" >&6
8505fi
8506
8507echo "$as_me:$LINENO: checking for objdir" >&5
8508echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8509if test "${lt_cv_objdir+set}" = set; then
8510  echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512  rm -f .libs 2>/dev/null
8513mkdir .libs 2>/dev/null
8514if test -d .libs; then
8515  lt_cv_objdir=.libs
8516else
8517  # MS-DOS does not allow filenames that begin with a dot.
8518  lt_cv_objdir=_libs
8519fi
8520rmdir .libs 2>/dev/null
8521fi
8522echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8523echo "${ECHO_T}$lt_cv_objdir" >&6
8524objdir=$lt_cv_objdir
8525
8526
8527
8528
8529
8530case $host_os in
8531aix3*)
8532  # AIX sometimes has problems with the GCC collect2 program.  For some
8533  # reason, if we set the COLLECT_NAMES environment variable, the problems
8534  # vanish in a puff of smoke.
8535  if test "X${COLLECT_NAMES+set}" != Xset; then
8536    COLLECT_NAMES=
8537    export COLLECT_NAMES
8538  fi
8539  ;;
8540esac
8541
8542# Sed substitution that helps us do robust quoting.  It backslashifies
8543# metacharacters that are still active within double-quoted strings.
8544Xsed='sed -e 1s/^X//'
8545sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8546
8547# Same as above, but do not quote variable references.
8548double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8549
8550# Sed substitution to delay expansion of an escaped shell variable in a
8551# double_quote_subst'ed string.
8552delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8553
8554# Sed substitution to avoid accidental globbing in evaled expressions
8555no_glob_subst='s/\*/\\\*/g'
8556
8557# Constants:
8558rm="rm -f"
8559
8560# Global variables:
8561default_ofile=libtool
8562can_build_shared=yes
8563
8564# All known linkers require a `.a' archive for static linking (except MSVC,
8565# which needs '.lib').
8566libext=a
8567ltmain="$ac_aux_dir/ltmain.sh"
8568ofile="$default_ofile"
8569with_gnu_ld="$lt_cv_prog_gnu_ld"
8570
8571if test -n "$ac_tool_prefix"; then
8572  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8573set dummy ${ac_tool_prefix}ar; ac_word=$2
8574echo "$as_me:$LINENO: checking for $ac_word" >&5
8575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8576if test "${ac_cv_prog_AR+set}" = set; then
8577  echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579  if test -n "$AR"; then
8580  ac_cv_prog_AR="$AR" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585  IFS=$as_save_IFS
8586  test -z "$as_dir" && as_dir=.
8587  for ac_exec_ext in '' $ac_executable_extensions; do
8588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589    ac_cv_prog_AR="${ac_tool_prefix}ar"
8590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591    break 2
8592  fi
8593done
8594done
8595
8596fi
8597fi
8598AR=$ac_cv_prog_AR
8599if test -n "$AR"; then
8600  echo "$as_me:$LINENO: result: $AR" >&5
8601echo "${ECHO_T}$AR" >&6
8602else
8603  echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605fi
8606
8607fi
8608if test -z "$ac_cv_prog_AR"; then
8609  ac_ct_AR=$AR
8610  # Extract the first word of "ar", so it can be a program name with args.
8611set dummy ar; ac_word=$2
8612echo "$as_me:$LINENO: checking for $ac_word" >&5
8613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8614if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8615  echo $ECHO_N "(cached) $ECHO_C" >&6
8616else
8617  if test -n "$ac_ct_AR"; then
8618  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8619else
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623  IFS=$as_save_IFS
8624  test -z "$as_dir" && as_dir=.
8625  for ac_exec_ext in '' $ac_executable_extensions; do
8626  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8627    ac_cv_prog_ac_ct_AR="ar"
8628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8629    break 2
8630  fi
8631done
8632done
8633
8634  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8635fi
8636fi
8637ac_ct_AR=$ac_cv_prog_ac_ct_AR
8638if test -n "$ac_ct_AR"; then
8639  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8640echo "${ECHO_T}$ac_ct_AR" >&6
8641else
8642  echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6
8644fi
8645
8646  AR=$ac_ct_AR
8647else
8648  AR="$ac_cv_prog_AR"
8649fi
8650
8651if test -n "$ac_tool_prefix"; then
8652  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8653set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8654echo "$as_me:$LINENO: checking for $ac_word" >&5
8655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8656if test "${ac_cv_prog_RANLIB+set}" = set; then
8657  echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659  if test -n "$RANLIB"; then
8660  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8661else
8662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663for as_dir in $PATH
8664do
8665  IFS=$as_save_IFS
8666  test -z "$as_dir" && as_dir=.
8667  for ac_exec_ext in '' $ac_executable_extensions; do
8668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8671    break 2
8672  fi
8673done
8674done
8675
8676fi
8677fi
8678RANLIB=$ac_cv_prog_RANLIB
8679if test -n "$RANLIB"; then
8680  echo "$as_me:$LINENO: result: $RANLIB" >&5
8681echo "${ECHO_T}$RANLIB" >&6
8682else
8683  echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
8685fi
8686
8687fi
8688if test -z "$ac_cv_prog_RANLIB"; then
8689  ac_ct_RANLIB=$RANLIB
8690  # Extract the first word of "ranlib", so it can be a program name with args.
8691set dummy ranlib; ac_word=$2
8692echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8694if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8695  echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697  if test -n "$ac_ct_RANLIB"; then
8698  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703  IFS=$as_save_IFS
8704  test -z "$as_dir" && as_dir=.
8705  for ac_exec_ext in '' $ac_executable_extensions; do
8706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707    ac_cv_prog_ac_ct_RANLIB="ranlib"
8708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709    break 2
8710  fi
8711done
8712done
8713
8714  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8715fi
8716fi
8717ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8718if test -n "$ac_ct_RANLIB"; then
8719  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8720echo "${ECHO_T}$ac_ct_RANLIB" >&6
8721else
8722  echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
8724fi
8725
8726  RANLIB=$ac_ct_RANLIB
8727else
8728  RANLIB="$ac_cv_prog_RANLIB"
8729fi
8730
8731if test -n "$ac_tool_prefix"; then
8732  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8733set dummy ${ac_tool_prefix}strip; ac_word=$2
8734echo "$as_me:$LINENO: checking for $ac_word" >&5
8735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736if test "${ac_cv_prog_STRIP+set}" = set; then
8737  echo $ECHO_N "(cached) $ECHO_C" >&6
8738else
8739  if test -n "$STRIP"; then
8740  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745  IFS=$as_save_IFS
8746  test -z "$as_dir" && as_dir=.
8747  for ac_exec_ext in '' $ac_executable_extensions; do
8748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8749    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8751    break 2
8752  fi
8753done
8754done
8755
8756fi
8757fi
8758STRIP=$ac_cv_prog_STRIP
8759if test -n "$STRIP"; then
8760  echo "$as_me:$LINENO: result: $STRIP" >&5
8761echo "${ECHO_T}$STRIP" >&6
8762else
8763  echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
8765fi
8766
8767fi
8768if test -z "$ac_cv_prog_STRIP"; then
8769  ac_ct_STRIP=$STRIP
8770  # Extract the first word of "strip", so it can be a program name with args.
8771set dummy strip; ac_word=$2
8772echo "$as_me:$LINENO: checking for $ac_word" >&5
8773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8775  echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777  if test -n "$ac_ct_STRIP"; then
8778  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8779else
8780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781for as_dir in $PATH
8782do
8783  IFS=$as_save_IFS
8784  test -z "$as_dir" && as_dir=.
8785  for ac_exec_ext in '' $ac_executable_extensions; do
8786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787    ac_cv_prog_ac_ct_STRIP="strip"
8788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789    break 2
8790  fi
8791done
8792done
8793
8794  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8795fi
8796fi
8797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8798if test -n "$ac_ct_STRIP"; then
8799  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8800echo "${ECHO_T}$ac_ct_STRIP" >&6
8801else
8802  echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6
8804fi
8805
8806  STRIP=$ac_ct_STRIP
8807else
8808  STRIP="$ac_cv_prog_STRIP"
8809fi
8810
8811
8812old_CC="$CC"
8813old_CFLAGS="$CFLAGS"
8814
8815# Set sane defaults for various variables
8816test -z "$AR" && AR=ar
8817test -z "$AR_FLAGS" && AR_FLAGS=cru
8818test -z "$AS" && AS=as
8819test -z "$CC" && CC=cc
8820test -z "$LTCC" && LTCC=$CC
8821test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8822test -z "$DLLTOOL" && DLLTOOL=dlltool
8823test -z "$LD" && LD=ld
8824test -z "$LN_S" && LN_S="ln -s"
8825test -z "$MAGIC_CMD" && MAGIC_CMD=file
8826test -z "$NM" && NM=nm
8827test -z "$SED" && SED=sed
8828test -z "$OBJDUMP" && OBJDUMP=objdump
8829test -z "$RANLIB" && RANLIB=:
8830test -z "$STRIP" && STRIP=:
8831test -z "$ac_objext" && ac_objext=o
8832
8833# Determine commands to create old-style static archives.
8834old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8835old_postinstall_cmds='chmod 644 $oldlib'
8836old_postuninstall_cmds=
8837
8838if test -n "$RANLIB"; then
8839  case $host_os in
8840  openbsd*)
8841    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8842    ;;
8843  *)
8844    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8845    ;;
8846  esac
8847  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8848fi
8849
8850for cc_temp in $compiler""; do
8851  case $cc_temp in
8852    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8853    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8854    \-*) ;;
8855    *) break;;
8856  esac
8857done
8858cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8859
8860
8861# Only perform the check for file, if the check method requires it
8862case $deplibs_check_method in
8863file_magic*)
8864  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8865    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8866echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8867if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8868  echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870  case $MAGIC_CMD in
8871[\\/*] |  ?:[\\/]*)
8872  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8873  ;;
8874*)
8875  lt_save_MAGIC_CMD="$MAGIC_CMD"
8876  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8877  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8878  for ac_dir in $ac_dummy; do
8879    IFS="$lt_save_ifs"
8880    test -z "$ac_dir" && ac_dir=.
8881    if test -f $ac_dir/${ac_tool_prefix}file; then
8882      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8883      if test -n "$file_magic_test_file"; then
8884        case $deplibs_check_method in
8885        "file_magic "*)
8886          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8887          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8889            $EGREP "$file_magic_regex" > /dev/null; then
8890            :
8891          else
8892            cat <<EOF 1>&2
8893
8894*** Warning: the command libtool uses to detect shared libraries,
8895*** $file_magic_cmd, produces output that libtool cannot recognize.
8896*** The result is that libtool may fail to recognize shared libraries
8897*** as such.  This will affect the creation of libtool libraries that
8898*** depend on shared libraries, but programs linked with such libtool
8899*** libraries will work regardless of this problem.  Nevertheless, you
8900*** may want to report the problem to your system manager and/or to
8901*** bug-libtool@gnu.org
8902
8903EOF
8904          fi ;;
8905        esac
8906      fi
8907      break
8908    fi
8909  done
8910  IFS="$lt_save_ifs"
8911  MAGIC_CMD="$lt_save_MAGIC_CMD"
8912  ;;
8913esac
8914fi
8915
8916MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8917if test -n "$MAGIC_CMD"; then
8918  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8919echo "${ECHO_T}$MAGIC_CMD" >&6
8920else
8921  echo "$as_me:$LINENO: result: no" >&5
8922echo "${ECHO_T}no" >&6
8923fi
8924
8925if test -z "$lt_cv_path_MAGIC_CMD"; then
8926  if test -n "$ac_tool_prefix"; then
8927    echo "$as_me:$LINENO: checking for file" >&5
8928echo $ECHO_N "checking for file... $ECHO_C" >&6
8929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8930  echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932  case $MAGIC_CMD in
8933[\\/*] |  ?:[\\/]*)
8934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8935  ;;
8936*)
8937  lt_save_MAGIC_CMD="$MAGIC_CMD"
8938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8940  for ac_dir in $ac_dummy; do
8941    IFS="$lt_save_ifs"
8942    test -z "$ac_dir" && ac_dir=.
8943    if test -f $ac_dir/file; then
8944      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8945      if test -n "$file_magic_test_file"; then
8946        case $deplibs_check_method in
8947        "file_magic "*)
8948          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8949          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8950          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8951            $EGREP "$file_magic_regex" > /dev/null; then
8952            :
8953          else
8954            cat <<EOF 1>&2
8955
8956*** Warning: the command libtool uses to detect shared libraries,
8957*** $file_magic_cmd, produces output that libtool cannot recognize.
8958*** The result is that libtool may fail to recognize shared libraries
8959*** as such.  This will affect the creation of libtool libraries that
8960*** depend on shared libraries, but programs linked with such libtool
8961*** libraries will work regardless of this problem.  Nevertheless, you
8962*** may want to report the problem to your system manager and/or to
8963*** bug-libtool@gnu.org
8964
8965EOF
8966          fi ;;
8967        esac
8968      fi
8969      break
8970    fi
8971  done
8972  IFS="$lt_save_ifs"
8973  MAGIC_CMD="$lt_save_MAGIC_CMD"
8974  ;;
8975esac
8976fi
8977
8978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8979if test -n "$MAGIC_CMD"; then
8980  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8981echo "${ECHO_T}$MAGIC_CMD" >&6
8982else
8983  echo "$as_me:$LINENO: result: no" >&5
8984echo "${ECHO_T}no" >&6
8985fi
8986
8987  else
8988    MAGIC_CMD=:
8989  fi
8990fi
8991
8992  fi
8993  ;;
8994esac
8995
8996enable_dlopen=no
8997enable_win32_dll=no
8998
8999# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9000if test "${enable_libtool_lock+set}" = set; then
9001  enableval="$enable_libtool_lock"
9002
9003fi;
9004test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9005
9006
9007# Check whether --with-pic or --without-pic was given.
9008if test "${with_pic+set}" = set; then
9009  withval="$with_pic"
9010  pic_mode="$withval"
9011else
9012  pic_mode=default
9013fi;
9014test -z "$pic_mode" && pic_mode=default
9015
9016# Use C for the default configuration in the libtool script
9017tagname=
9018lt_save_CC="$CC"
9019ac_ext=c
9020ac_cpp='$CPP $CPPFLAGS'
9021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9023ac_compiler_gnu=$ac_cv_c_compiler_gnu
9024
9025
9026# Source file extension for C test sources.
9027ac_ext=c
9028
9029# Object file extension for compiled C test sources.
9030objext=o
9031objext=$objext
9032
9033# Code to be used in simple compile tests
9034lt_simple_compile_test_code="int some_variable = 0;\n"
9035
9036# Code to be used in simple link tests
9037lt_simple_link_test_code='int main(){return(0);}\n'
9038
9039
9040# If no C compiler was specified, use CC.
9041LTCC=${LTCC-"$CC"}
9042
9043# If no C compiler flags were specified, use CFLAGS.
9044LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9045
9046# Allow CC to be a program name with arguments.
9047compiler=$CC
9048
9049
9050# save warnings/boilerplate of simple test code
9051ac_outfile=conftest.$ac_objext
9052printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9053eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9054_lt_compiler_boilerplate=`cat conftest.err`
9055$rm conftest*
9056
9057ac_outfile=conftest.$ac_objext
9058printf "$lt_simple_link_test_code" >conftest.$ac_ext
9059eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9060_lt_linker_boilerplate=`cat conftest.err`
9061$rm conftest*
9062
9063
9064## CAVEAT EMPTOR:
9065## There is no encapsulation within the following macros, do not change
9066## the running order or otherwise move them around unless you know exactly
9067## what you are doing...
9068
9069lt_prog_compiler_no_builtin_flag=
9070
9071if test "$GCC" = yes; then
9072  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9073
9074
9075echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9076echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9077if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9078  echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080  lt_cv_prog_compiler_rtti_exceptions=no
9081  ac_outfile=conftest.$ac_objext
9082   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9083   lt_compiler_flag="-fno-rtti -fno-exceptions"
9084   # Insert the option either (1) after the last *FLAGS variable, or
9085   # (2) before a word containing "conftest.", or (3) at the end.
9086   # Note that $ac_compile itself does not contain backslashes and begins
9087   # with a dollar sign (not a hyphen), so the echo should work correctly.
9088   # The option is referenced via a variable to avoid confusing sed.
9089   lt_compile=`echo "$ac_compile" | $SED \
9090   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092   -e 's:$: $lt_compiler_flag:'`
9093   (eval echo "\"\$as_me:9093: $lt_compile\"" >&5)
9094   (eval "$lt_compile" 2>conftest.err)
9095   ac_status=$?
9096   cat conftest.err >&5
9097   echo "$as_me:9097: \$? = $ac_status" >&5
9098   if (exit $ac_status) && test -s "$ac_outfile"; then
9099     # The compiler can only warn and ignore the option if not recognized
9100     # So say no if there are warnings other than the usual output.
9101     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9102     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9103     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9104       lt_cv_prog_compiler_rtti_exceptions=yes
9105     fi
9106   fi
9107   $rm conftest*
9108
9109fi
9110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9111echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9112
9113if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9114    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9115else
9116    :
9117fi
9118
9119fi
9120
9121lt_prog_compiler_wl=
9122lt_prog_compiler_pic=
9123lt_prog_compiler_static=
9124
9125echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9126echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9127
9128  if test "$GCC" = yes; then
9129    lt_prog_compiler_wl='-Wl,'
9130    lt_prog_compiler_static='-static'
9131
9132    case $host_os in
9133      aix*)
9134      # All AIX code is PIC.
9135      if test "$host_cpu" = ia64; then
9136        # AIX 5 now supports IA64 processor
9137        lt_prog_compiler_static='-Bstatic'
9138      fi
9139      ;;
9140
9141    amigaos*)
9142      # FIXME: we need at least 68020 code to build shared libraries, but
9143      # adding the `-m68020' flag to GCC prevents building anything better,
9144      # like `-m68040'.
9145      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9146      ;;
9147
9148    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9149      # PIC is the default for these OSes.
9150      ;;
9151
9152    mingw* | pw32* | os2*)
9153      # This hack is so that the source file can tell whether it is being
9154      # built for inclusion in a dll (and should export symbols for example).
9155      lt_prog_compiler_pic='-DDLL_EXPORT'
9156      ;;
9157
9158    darwin* | rhapsody*)
9159      # PIC is the default on this platform
9160      # Common symbols not allowed in MH_DYLIB files
9161      lt_prog_compiler_pic='-fno-common'
9162      ;;
9163
9164    interix3*)
9165      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9166      # Instead, we relocate shared libraries at runtime.
9167      ;;
9168
9169    msdosdjgpp*)
9170      # Just because we use GCC doesn't mean we suddenly get shared libraries
9171      # on systems that don't support them.
9172      lt_prog_compiler_can_build_shared=no
9173      enable_shared=no
9174      ;;
9175
9176    sysv4*MP*)
9177      if test -d /usr/nec; then
9178        lt_prog_compiler_pic=-Kconform_pic
9179      fi
9180      ;;
9181
9182    hpux*)
9183      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9184      # not for PA HP-UX.
9185      case $host_cpu in
9186      hppa*64*|ia64*)
9187        # +Z the default
9188        ;;
9189      *)
9190        lt_prog_compiler_pic='-fPIC'
9191        ;;
9192      esac
9193      ;;
9194
9195    *)
9196      lt_prog_compiler_pic='-fPIC'
9197      ;;
9198    esac
9199  else
9200    # PORTME Check for flag to pass linker flags through the system compiler.
9201    case $host_os in
9202    aix*)
9203      lt_prog_compiler_wl='-Wl,'
9204      if test "$host_cpu" = ia64; then
9205        # AIX 5 now supports IA64 processor
9206        lt_prog_compiler_static='-Bstatic'
9207      else
9208        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9209      fi
9210      ;;
9211      darwin*)
9212        # PIC is the default on this platform
9213        # Common symbols not allowed in MH_DYLIB files
9214       case $cc_basename in
9215         xlc*)
9216         lt_prog_compiler_pic='-qnocommon'
9217         lt_prog_compiler_wl='-Wl,'
9218         ;;
9219       esac
9220       ;;
9221
9222    mingw* | pw32* | os2*)
9223      # This hack is so that the source file can tell whether it is being
9224      # built for inclusion in a dll (and should export symbols for example).
9225      lt_prog_compiler_pic='-DDLL_EXPORT'
9226      ;;
9227
9228    hpux9* | hpux10* | hpux11*)
9229      lt_prog_compiler_wl='-Wl,'
9230      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9231      # not for PA HP-UX.
9232      case $host_cpu in
9233      hppa*64*|ia64*)
9234        # +Z the default
9235        ;;
9236      *)
9237        lt_prog_compiler_pic='+Z'
9238        ;;
9239      esac
9240      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9241      lt_prog_compiler_static='${wl}-a ${wl}archive'
9242      ;;
9243
9244    irix5* | irix6* | nonstopux*)
9245      lt_prog_compiler_wl='-Wl,'
9246      # PIC (with -KPIC) is the default.
9247      lt_prog_compiler_static='-non_shared'
9248      ;;
9249
9250    newsos6)
9251      lt_prog_compiler_pic='-KPIC'
9252      lt_prog_compiler_static='-Bstatic'
9253      ;;
9254
9255    linux*)
9256      case $cc_basename in
9257      icc* | ecc*)
9258        lt_prog_compiler_wl='-Wl,'
9259        lt_prog_compiler_pic='-KPIC'
9260        lt_prog_compiler_static='-static'
9261        ;;
9262      pgcc* | pgf77* | pgf90* | pgf95*)
9263        # Portland Group compilers (*not* the Pentium gcc compiler,
9264        # which looks to be a dead project)
9265        lt_prog_compiler_wl='-Wl,'
9266        lt_prog_compiler_pic='-fpic'
9267        lt_prog_compiler_static='-Bstatic'
9268        ;;
9269      ccc*)
9270        lt_prog_compiler_wl='-Wl,'
9271        # All Alpha code is PIC.
9272        lt_prog_compiler_static='-non_shared'
9273        ;;
9274      esac
9275      ;;
9276
9277    osf3* | osf4* | osf5*)
9278      lt_prog_compiler_wl='-Wl,'
9279      # All OSF/1 code is PIC.
9280      lt_prog_compiler_static='-non_shared'
9281      ;;
9282
9283    solaris*)
9284      lt_prog_compiler_pic='-KPIC'
9285      lt_prog_compiler_static='-Bstatic'
9286      case $cc_basename in
9287      f77* | f90* | f95*)
9288        lt_prog_compiler_wl='-Qoption ld ';;
9289      *)
9290        lt_prog_compiler_wl='-Wl,';;
9291      esac
9292      ;;
9293
9294    sunos4*)
9295      lt_prog_compiler_wl='-Qoption ld '
9296      lt_prog_compiler_pic='-PIC'
9297      lt_prog_compiler_static='-Bstatic'
9298      ;;
9299
9300    sysv4 | sysv4.2uw2* | sysv4.3*)
9301      lt_prog_compiler_wl='-Wl,'
9302      lt_prog_compiler_pic='-KPIC'
9303      lt_prog_compiler_static='-Bstatic'
9304      ;;
9305
9306    sysv4*MP*)
9307      if test -d /usr/nec ;then
9308        lt_prog_compiler_pic='-Kconform_pic'
9309        lt_prog_compiler_static='-Bstatic'
9310      fi
9311      ;;
9312
9313    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9314      lt_prog_compiler_wl='-Wl,'
9315      lt_prog_compiler_pic='-KPIC'
9316      lt_prog_compiler_static='-Bstatic'
9317      ;;
9318
9319    unicos*)
9320      lt_prog_compiler_wl='-Wl,'
9321      lt_prog_compiler_can_build_shared=no
9322      ;;
9323
9324    uts4*)
9325      lt_prog_compiler_pic='-pic'
9326      lt_prog_compiler_static='-Bstatic'
9327      ;;
9328
9329    *)
9330      lt_prog_compiler_can_build_shared=no
9331      ;;
9332    esac
9333  fi
9334
9335echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9336echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9337
9338#
9339# Check to make sure the PIC flag actually works.
9340#
9341if test -n "$lt_prog_compiler_pic"; then
9342
9343echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9344echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9345if test "${lt_prog_compiler_pic_works+set}" = set; then
9346  echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348  lt_prog_compiler_pic_works=no
9349  ac_outfile=conftest.$ac_objext
9350   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9351   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9352   # Insert the option either (1) after the last *FLAGS variable, or
9353   # (2) before a word containing "conftest.", or (3) at the end.
9354   # Note that $ac_compile itself does not contain backslashes and begins
9355   # with a dollar sign (not a hyphen), so the echo should work correctly.
9356   # The option is referenced via a variable to avoid confusing sed.
9357   lt_compile=`echo "$ac_compile" | $SED \
9358   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360   -e 's:$: $lt_compiler_flag:'`
9361   (eval echo "\"\$as_me:9361: $lt_compile\"" >&5)
9362   (eval "$lt_compile" 2>conftest.err)
9363   ac_status=$?
9364   cat conftest.err >&5
9365   echo "$as_me:9365: \$? = $ac_status" >&5
9366   if (exit $ac_status) && test -s "$ac_outfile"; then
9367     # The compiler can only warn and ignore the option if not recognized
9368     # So say no if there are warnings other than the usual output.
9369     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9370     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9372       lt_prog_compiler_pic_works=yes
9373     fi
9374   fi
9375   $rm conftest*
9376
9377fi
9378echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9379echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9380
9381if test x"$lt_prog_compiler_pic_works" = xyes; then
9382    case $lt_prog_compiler_pic in
9383     "" | " "*) ;;
9384     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9385     esac
9386else
9387    lt_prog_compiler_pic=
9388     lt_prog_compiler_can_build_shared=no
9389fi
9390
9391fi
9392case $host_os in
9393  # For platforms which do not support PIC, -DPIC is meaningless:
9394  *djgpp*)
9395    lt_prog_compiler_pic=
9396    ;;
9397  *)
9398    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9399    ;;
9400esac
9401
9402#
9403# Check to make sure the static flag actually works.
9404#
9405wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9406echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9407echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9408if test "${lt_prog_compiler_static_works+set}" = set; then
9409  echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411  lt_prog_compiler_static_works=no
9412   save_LDFLAGS="$LDFLAGS"
9413   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9414   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9415   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9416     # The linker can only warn and ignore the option if not recognized
9417     # So say no if there are warnings
9418     if test -s conftest.err; then
9419       # Append any errors to the config.log.
9420       cat conftest.err 1>&5
9421       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9422       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9423       if diff conftest.exp conftest.er2 >/dev/null; then
9424         lt_prog_compiler_static_works=yes
9425       fi
9426     else
9427       lt_prog_compiler_static_works=yes
9428     fi
9429   fi
9430   $rm conftest*
9431   LDFLAGS="$save_LDFLAGS"
9432
9433fi
9434echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9435echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9436
9437if test x"$lt_prog_compiler_static_works" = xyes; then
9438    :
9439else
9440    lt_prog_compiler_static=
9441fi
9442
9443
9444echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9445echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9446if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9447  echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449  lt_cv_prog_compiler_c_o=no
9450   $rm -r conftest 2>/dev/null
9451   mkdir conftest
9452   cd conftest
9453   mkdir out
9454   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9455
9456   lt_compiler_flag="-o out/conftest2.$ac_objext"
9457   # Insert the option either (1) after the last *FLAGS variable, or
9458   # (2) before a word containing "conftest.", or (3) at the end.
9459   # Note that $ac_compile itself does not contain backslashes and begins
9460   # with a dollar sign (not a hyphen), so the echo should work correctly.
9461   lt_compile=`echo "$ac_compile" | $SED \
9462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464   -e 's:$: $lt_compiler_flag:'`
9465   (eval echo "\"\$as_me:9465: $lt_compile\"" >&5)
9466   (eval "$lt_compile" 2>out/conftest.err)
9467   ac_status=$?
9468   cat out/conftest.err >&5
9469   echo "$as_me:9469: \$? = $ac_status" >&5
9470   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9471   then
9472     # The compiler can only warn and ignore the option if not recognized
9473     # So say no if there are warnings
9474     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9475     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9476     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9477       lt_cv_prog_compiler_c_o=yes
9478     fi
9479   fi
9480   chmod u+w . 2>&5
9481   $rm conftest*
9482   # SGI C++ compiler will create directory out/ii_files/ for
9483   # template instantiation
9484   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9485   $rm out/* && rmdir out
9486   cd ..
9487   rmdir conftest
9488   $rm conftest*
9489
9490fi
9491echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9492echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9493
9494
9495hard_links="nottested"
9496if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9497  # do not overwrite the value of need_locks provided by the user
9498  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9499echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9500  hard_links=yes
9501  $rm conftest*
9502  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503  touch conftest.a
9504  ln conftest.a conftest.b 2>&5 || hard_links=no
9505  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9506  echo "$as_me:$LINENO: result: $hard_links" >&5
9507echo "${ECHO_T}$hard_links" >&6
9508  if test "$hard_links" = no; then
9509    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9510echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9511    need_locks=warn
9512  fi
9513else
9514  need_locks=no
9515fi
9516
9517echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9518echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9519
9520  runpath_var=
9521  allow_undefined_flag=
9522  enable_shared_with_static_runtimes=no
9523  archive_cmds=
9524  archive_expsym_cmds=
9525  old_archive_From_new_cmds=
9526  old_archive_from_expsyms_cmds=
9527  export_dynamic_flag_spec=
9528  whole_archive_flag_spec=
9529  thread_safe_flag_spec=
9530  hardcode_libdir_flag_spec=
9531  hardcode_libdir_flag_spec_ld=
9532  hardcode_libdir_separator=
9533  hardcode_direct=no
9534  hardcode_minus_L=no
9535  hardcode_shlibpath_var=unsupported
9536  link_all_deplibs=unknown
9537  hardcode_automatic=no
9538  module_cmds=
9539  module_expsym_cmds=
9540  always_export_symbols=no
9541  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9542  # include_expsyms should be a list of space-separated symbols to be *always*
9543  # included in the symbol list
9544  include_expsyms=
9545  # exclude_expsyms can be an extended regexp of symbols to exclude
9546  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9547  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9548  # as well as any symbol that contains `d'.
9549  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9550  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9551  # platforms (ab)use it in PIC code, but their linkers get confused if
9552  # the symbol is explicitly referenced.  Since portable code cannot
9553  # rely on this symbol name, it's probably fine to never include it in
9554  # preloaded symbol tables.
9555  extract_expsyms_cmds=
9556  # Just being paranoid about ensuring that cc_basename is set.
9557  for cc_temp in $compiler""; do
9558  case $cc_temp in
9559    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9560    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9561    \-*) ;;
9562    *) break;;
9563  esac
9564done
9565cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9566
9567  case $host_os in
9568  cygwin* | mingw* | pw32*)
9569    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9570    # When not using gcc, we currently assume that we are using
9571    # Microsoft Visual C++.
9572    if test "$GCC" != yes; then
9573      with_gnu_ld=no
9574    fi
9575    ;;
9576  interix*)
9577    # we just hope/assume this is gcc and not c89 (= MSVC++)
9578    with_gnu_ld=yes
9579    ;;
9580  openbsd*)
9581    with_gnu_ld=no
9582    ;;
9583  esac
9584
9585  ld_shlibs=yes
9586  if test "$with_gnu_ld" = yes; then
9587    # If archive_cmds runs LD, not CC, wlarc should be empty
9588    wlarc='${wl}'
9589
9590    # Set some defaults for GNU ld with shared library support. These
9591    # are reset later if shared libraries are not supported. Putting them
9592    # here allows them to be overridden if necessary.
9593    runpath_var=LD_RUN_PATH
9594    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9595    export_dynamic_flag_spec='${wl}--export-dynamic'
9596    # ancient GNU ld didn't support --whole-archive et. al.
9597    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9598        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9599      else
9600        whole_archive_flag_spec=
9601    fi
9602    supports_anon_versioning=no
9603    case `$LD -v 2>/dev/null` in
9604      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9605      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9606      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9607      *\ 2.11.*) ;; # other 2.11 versions
9608      *) supports_anon_versioning=yes ;;
9609    esac
9610
9611    # See if GNU ld supports shared libraries.
9612    case $host_os in
9613    aix3* | aix4* | aix5*)
9614      # On AIX/PPC, the GNU linker is very broken
9615      if test "$host_cpu" != ia64; then
9616        ld_shlibs=no
9617        cat <<EOF 1>&2
9618
9619*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9620*** to be unable to reliably create shared libraries on AIX.
9621*** Therefore, libtool is disabling shared libraries support.  If you
9622*** really care for shared libraries, you may want to modify your PATH
9623*** so that a non-GNU linker is found, and then restart.
9624
9625EOF
9626      fi
9627      ;;
9628
9629    amigaos*)
9630      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)'
9631      hardcode_libdir_flag_spec='-L$libdir'
9632      hardcode_minus_L=yes
9633
9634      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9635      # that the semantics of dynamic libraries on AmigaOS, at least up
9636      # to version 4, is to share data among multiple programs linked
9637      # with the same dynamic library.  Since this doesn't match the
9638      # behavior of shared libraries on other platforms, we can't use
9639      # them.
9640      ld_shlibs=no
9641      ;;
9642
9643    beos*)
9644      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9645        allow_undefined_flag=unsupported
9646        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9647        # support --undefined.  This deserves some investigation.  FIXME
9648        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649      else
9650        ld_shlibs=no
9651      fi
9652      ;;
9653
9654    cygwin* | mingw* | pw32*)
9655      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9656      # as there is no search path for DLLs.
9657      hardcode_libdir_flag_spec='-L$libdir'
9658      allow_undefined_flag=unsupported
9659      always_export_symbols=no
9660      enable_shared_with_static_runtimes=yes
9661      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9662
9663      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9664        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9665        # If the export-symbols file already is a .def file (1st line
9666        # is EXPORTS), use it as is; otherwise, prepend...
9667        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9668          cp $export_symbols $output_objdir/$soname.def;
9669        else
9670          echo EXPORTS > $output_objdir/$soname.def;
9671          cat $export_symbols >> $output_objdir/$soname.def;
9672        fi~
9673        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674      else
9675        ld_shlibs=no
9676      fi
9677      ;;
9678
9679    interix3*)
9680      hardcode_direct=no
9681      hardcode_shlibpath_var=no
9682      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9683      export_dynamic_flag_spec='${wl}-E'
9684      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9685      # Instead, shared libraries are loaded at an image base (0x10000000 by
9686      # default) and relocated if they conflict, which is a slow very memory
9687      # consuming and fragmenting process.  To avoid this, we pick a random,
9688      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9689      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9690      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9691      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'
9692      ;;
9693
9694    linux*)
9695      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9696        tmp_addflag=
9697        case $cc_basename,$host_cpu in
9698        pgcc*)                          # Portland Group C compiler
9699          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'
9700          tmp_addflag=' $pic_flag'
9701          ;;
9702        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9703          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'
9704          tmp_addflag=' $pic_flag -Mnomain' ;;
9705        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9706          tmp_addflag=' -i_dynamic' ;;
9707        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9708          tmp_addflag=' -i_dynamic -nofor_main' ;;
9709        ifc* | ifort*)                  # Intel Fortran compiler
9710          tmp_addflag=' -nofor_main' ;;
9711        esac
9712        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713
9714        if test $supports_anon_versioning = yes; then
9715          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9716  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9717  $echo "local: *; };" >> $output_objdir/$libname.ver~
9718          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9719        fi
9720      else
9721        ld_shlibs=no
9722      fi
9723      ;;
9724
9725    netbsd*)
9726      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9727        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9728        wlarc=
9729      else
9730        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9731        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9732      fi
9733      ;;
9734
9735    solaris*)
9736      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9737        ld_shlibs=no
9738        cat <<EOF 1>&2
9739
9740*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9741*** create shared libraries on Solaris systems.  Therefore, libtool
9742*** is disabling shared libraries support.  We urge you to upgrade GNU
9743*** binutils to release 2.9.1 or newer.  Another option is to modify
9744*** your PATH or compiler configuration so that the native linker is
9745*** used, and then restart.
9746
9747EOF
9748      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9749        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9751      else
9752        ld_shlibs=no
9753      fi
9754      ;;
9755
9756    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9757      case `$LD -v 2>&1` in
9758        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9759        ld_shlibs=no
9760        cat <<_LT_EOF 1>&2
9761
9762*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9763*** reliably create shared libraries on SCO systems.  Therefore, libtool
9764*** is disabling shared libraries support.  We urge you to upgrade GNU
9765*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9766*** your PATH or compiler configuration so that the native linker is
9767*** used, and then restart.
9768
9769_LT_EOF
9770        ;;
9771        *)
9772          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9773            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9774            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9775            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9776          else
9777            ld_shlibs=no
9778          fi
9779        ;;
9780      esac
9781      ;;
9782
9783    sunos4*)
9784      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9785      wlarc=
9786      hardcode_direct=yes
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    *)
9791      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9792        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794      else
9795        ld_shlibs=no
9796      fi
9797      ;;
9798    esac
9799
9800    if test "$ld_shlibs" = no; then
9801      runpath_var=
9802      hardcode_libdir_flag_spec=
9803      export_dynamic_flag_spec=
9804      whole_archive_flag_spec=
9805    fi
9806  else
9807    # PORTME fill in a description of your system's linker (not GNU ld)
9808    case $host_os in
9809    aix3*)
9810      allow_undefined_flag=unsupported
9811      always_export_symbols=yes
9812      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'
9813      # Note: this linker hardcodes the directories in LIBPATH if there
9814      # are no directories specified by -L.
9815      hardcode_minus_L=yes
9816      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9817        # Neither direct hardcoding nor static linking is supported with a
9818        # broken collect2.
9819        hardcode_direct=unsupported
9820      fi
9821      ;;
9822
9823    aix4* | aix5*)
9824      if test "$host_cpu" = ia64; then
9825        # On IA64, the linker does run time linking by default, so we don't
9826        # have to do anything special.
9827        aix_use_runtimelinking=no
9828        exp_sym_flag='-Bexport'
9829        no_entry_flag=""
9830      else
9831        # If we're using GNU nm, then we don't want the "-C" option.
9832        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9833        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9834          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'
9835        else
9836          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'
9837        fi
9838        aix_use_runtimelinking=no
9839
9840        # Test if we are trying to use run time linking or normal
9841        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9842        # need to do runtime linking.
9843        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9844          for ld_flag in $LDFLAGS; do
9845          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9846            aix_use_runtimelinking=yes
9847            break
9848          fi
9849          done
9850          ;;
9851        esac
9852
9853        exp_sym_flag='-bexport'
9854        no_entry_flag='-bnoentry'
9855      fi
9856
9857      # When large executables or shared objects are built, AIX ld can
9858      # have problems creating the table of contents.  If linking a library
9859      # or program results in "error TOC overflow" add -mminimal-toc to
9860      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9861      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9862
9863      archive_cmds=''
9864      hardcode_direct=yes
9865      hardcode_libdir_separator=':'
9866      link_all_deplibs=yes
9867
9868      if test "$GCC" = yes; then
9869        case $host_os in aix4.[012]|aix4.[012].*)
9870        # We only want to do this on AIX 4.2 and lower, the check
9871        # below for broken collect2 doesn't work under 4.3+
9872          collect2name=`${CC} -print-prog-name=collect2`
9873          if test -f "$collect2name" && \
9874           strings "$collect2name" | grep resolve_lib_name >/dev/null
9875          then
9876          # We have reworked collect2
9877          hardcode_direct=yes
9878          else
9879          # We have old collect2
9880          hardcode_direct=unsupported
9881          # It fails to find uninstalled libraries when the uninstalled
9882          # path is not listed in the libpath.  Setting hardcode_minus_L
9883          # to unsupported forces relinking
9884          hardcode_minus_L=yes
9885          hardcode_libdir_flag_spec='-L$libdir'
9886          hardcode_libdir_separator=
9887          fi
9888          ;;
9889        esac
9890        shared_flag='-shared'
9891        if test "$aix_use_runtimelinking" = yes; then
9892          shared_flag="$shared_flag "'${wl}-G'
9893        fi
9894      else
9895        # not using gcc
9896        if test "$host_cpu" = ia64; then
9897        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9898        # chokes on -Wl,-G. The following line is correct:
9899          shared_flag='-G'
9900        else
9901          if test "$aix_use_runtimelinking" = yes; then
9902            shared_flag='${wl}-G'
9903          else
9904            shared_flag='${wl}-bM:SRE'
9905          fi
9906        fi
9907      fi
9908
9909      # It seems that -bexpall does not export symbols beginning with
9910      # underscore (_), so it is better to generate a list of symbols to export.
9911      always_export_symbols=yes
9912      if test "$aix_use_runtimelinking" = yes; then
9913        # Warning - without using the other runtime loading flags (-brtl),
9914        # -berok will link without error, but may produce a broken library.
9915        allow_undefined_flag='-berok'
9916       # Determine the default libpath from the value encoded in an empty executable.
9917       cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h.  */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h.  */
9923
9924#ifdef F77_DUMMY_MAIN
9925
9926#  ifdef __cplusplus
9927     extern "C"
9928#  endif
9929   int F77_DUMMY_MAIN() { return 1; }
9930
9931#endif
9932int
9933main ()
9934{
9935
9936  ;
9937  return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext conftest$ac_exeext
9941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942  (eval $ac_link) 2>conftest.er1
9943  ac_status=$?
9944  grep -v '^ *+' conftest.er1 >conftest.err
9945  rm -f conftest.er1
9946  cat conftest.err >&5
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); } &&
9949         { ac_try='test -z "$ac_c_werror_flag"
9950                         || test ! -s conftest.err'
9951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952  (eval $ac_try) 2>&5
9953  ac_status=$?
9954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955  (exit $ac_status); }; } &&
9956         { ac_try='test -s conftest$ac_exeext'
9957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958  (eval $ac_try) 2>&5
9959  ac_status=$?
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); }; }; then
9962
9963aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9964}'`
9965# Check for a 64-bit object if we didn't find anything.
9966if 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; }
9967}'`; fi
9968else
9969  echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972fi
9973rm -f conftest.err conftest.$ac_objext \
9974      conftest$ac_exeext conftest.$ac_ext
9975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9976
9977       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9978        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"
9979       else
9980        if test "$host_cpu" = ia64; then
9981          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9982          allow_undefined_flag="-z nodefs"
9983          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"
9984        else
9985         # Determine the default libpath from the value encoded in an empty executable.
9986         cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h.  */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h.  */
9992
9993#ifdef F77_DUMMY_MAIN
9994
9995#  ifdef __cplusplus
9996     extern "C"
9997#  endif
9998   int F77_DUMMY_MAIN() { return 1; }
9999
10000#endif
10001int
10002main ()
10003{
10004
10005  ;
10006  return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext conftest$ac_exeext
10010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10011  (eval $ac_link) 2>conftest.er1
10012  ac_status=$?
10013  grep -v '^ *+' conftest.er1 >conftest.err
10014  rm -f conftest.er1
10015  cat conftest.err >&5
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); } &&
10018         { ac_try='test -z "$ac_c_werror_flag"
10019                         || test ! -s conftest.err'
10020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021  (eval $ac_try) 2>&5
10022  ac_status=$?
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); }; } &&
10025         { ac_try='test -s conftest$ac_exeext'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; }; then
10031
10032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10033}'`
10034# Check for a 64-bit object if we didn't find anything.
10035if 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; }
10036}'`; fi
10037else
10038  echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041fi
10042rm -f conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10045
10046         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10047          # Warning - without using the other run time loading flags,
10048          # -berok will link without error, but may produce a broken library.
10049          no_undefined_flag=' ${wl}-bernotok'
10050          allow_undefined_flag=' ${wl}-berok'
10051          # Exported symbols can be pulled into shared objects from archives
10052          whole_archive_flag_spec='$convenience'
10053          archive_cmds_need_lc=yes
10054          # This is similar to how AIX traditionally builds its shared libraries.
10055          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'
10056        fi
10057      fi
10058      ;;
10059
10060    amigaos*)
10061      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)'
10062      hardcode_libdir_flag_spec='-L$libdir'
10063      hardcode_minus_L=yes
10064      # see comment about different semantics on the GNU ld section
10065      ld_shlibs=no
10066      ;;
10067
10068    bsdi[45]*)
10069      export_dynamic_flag_spec=-rdynamic
10070      ;;
10071
10072    cygwin* | mingw* | pw32*)
10073      # When not using gcc, we currently assume that we are using
10074      # Microsoft Visual C++.
10075      # hardcode_libdir_flag_spec is actually meaningless, as there is
10076      # no search path for DLLs.
10077      hardcode_libdir_flag_spec=' '
10078      allow_undefined_flag=unsupported
10079      # Tell ltmain to make .lib files, not .a files.
10080      libext=lib
10081      # Tell ltmain to make .dll files, not .so files.
10082      shrext_cmds=".dll"
10083      # FIXME: Setting linknames here is a bad hack.
10084      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10085      # The linker will automatically build a .lib file if we build a DLL.
10086      old_archive_From_new_cmds='true'
10087      # FIXME: Should let the user specify the lib program.
10088      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10089      fix_srcfile_path='`cygpath -w "$srcfile"`'
10090      enable_shared_with_static_runtimes=yes
10091      ;;
10092
10093    darwin* | rhapsody*)
10094      case $host_os in
10095        rhapsody* | darwin1.[012])
10096         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10097         ;;
10098       *) # Darwin 1.3 on
10099         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10100           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10101         else
10102           case ${MACOSX_DEPLOYMENT_TARGET} in
10103             10.[012])
10104               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10105               ;;
10106             10.*)
10107               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10108               ;;
10109           esac
10110         fi
10111         ;;
10112      esac
10113      archive_cmds_need_lc=no
10114      hardcode_direct=no
10115      hardcode_automatic=yes
10116      hardcode_shlibpath_var=unsupported
10117      whole_archive_flag_spec=''
10118      link_all_deplibs=yes
10119    if test "$GCC" = yes ; then
10120        output_verbose_link_cmd='echo'
10121        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10122      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10123      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10124      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}'
10125      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}'
10126    else
10127      case $cc_basename in
10128        xlc*)
10129         output_verbose_link_cmd='echo'
10130         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10131         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10132          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10133         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}'
10134          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}'
10135          ;;
10136       *)
10137         ld_shlibs=no
10138          ;;
10139      esac
10140    fi
10141      ;;
10142
10143    dgux*)
10144      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145      hardcode_libdir_flag_spec='-L$libdir'
10146      hardcode_shlibpath_var=no
10147      ;;
10148
10149    freebsd1*)
10150      ld_shlibs=no
10151      ;;
10152
10153    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10154    # support.  Future versions do this automatically, but an explicit c++rt0.o
10155    # does not break anything, and helps significantly (at the cost of a little
10156    # extra space).
10157    freebsd2.2*)
10158      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10159      hardcode_libdir_flag_spec='-R$libdir'
10160      hardcode_direct=yes
10161      hardcode_shlibpath_var=no
10162      ;;
10163
10164    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10165    freebsd2*)
10166      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10167      hardcode_direct=yes
10168      hardcode_minus_L=yes
10169      hardcode_shlibpath_var=no
10170      ;;
10171
10172    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10173    freebsd* | kfreebsd*-gnu | dragonfly*)
10174      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10175      hardcode_libdir_flag_spec='-R$libdir'
10176      hardcode_direct=yes
10177      hardcode_shlibpath_var=no
10178      ;;
10179
10180    hpux9*)
10181      if test "$GCC" = yes; then
10182        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'
10183      else
10184        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'
10185      fi
10186      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10187      hardcode_libdir_separator=:
10188      hardcode_direct=yes
10189
10190      # hardcode_minus_L: Not really in the search PATH,
10191      # but as the default location of the library.
10192      hardcode_minus_L=yes
10193      export_dynamic_flag_spec='${wl}-E'
10194      ;;
10195
10196    hpux10*)
10197      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10198        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10199      else
10200        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10201      fi
10202      if test "$with_gnu_ld" = no; then
10203        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10204        hardcode_libdir_separator=:
10205
10206        hardcode_direct=yes
10207        export_dynamic_flag_spec='${wl}-E'
10208
10209        # hardcode_minus_L: Not really in the search PATH,
10210        # but as the default location of the library.
10211        hardcode_minus_L=yes
10212      fi
10213      ;;
10214
10215    hpux11*)
10216      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10217        case $host_cpu in
10218        hppa*64*)
10219          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10220          ;;
10221        ia64*)
10222          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10223          ;;
10224        *)
10225          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10226          ;;
10227        esac
10228      else
10229        case $host_cpu in
10230        hppa*64*)
10231          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232          ;;
10233        ia64*)
10234          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10235          ;;
10236        *)
10237          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10238          ;;
10239        esac
10240      fi
10241      if test "$with_gnu_ld" = no; then
10242        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243        hardcode_libdir_separator=:
10244
10245        case $host_cpu in
10246        hppa*64*|ia64*)
10247          hardcode_libdir_flag_spec_ld='+b $libdir'
10248          hardcode_direct=no
10249          hardcode_shlibpath_var=no
10250          ;;
10251        *)
10252          hardcode_direct=yes
10253          export_dynamic_flag_spec='${wl}-E'
10254
10255          # hardcode_minus_L: Not really in the search PATH,
10256          # but as the default location of the library.
10257          hardcode_minus_L=yes
10258          ;;
10259        esac
10260      fi
10261      ;;
10262
10263    irix5* | irix6* | nonstopux*)
10264      if test "$GCC" = yes; then
10265        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'
10266      else
10267        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'
10268        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10269      fi
10270      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10271      hardcode_libdir_separator=:
10272      link_all_deplibs=yes
10273      ;;
10274
10275    netbsd*)
10276      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10277        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10278      else
10279        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10280      fi
10281      hardcode_libdir_flag_spec='-R$libdir'
10282      hardcode_direct=yes
10283      hardcode_shlibpath_var=no
10284      ;;
10285
10286    newsos6)
10287      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288      hardcode_direct=yes
10289      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10290      hardcode_libdir_separator=:
10291      hardcode_shlibpath_var=no
10292      ;;
10293
10294    openbsd*)
10295      hardcode_direct=yes
10296      hardcode_shlibpath_var=no
10297      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10298        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10299        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10300        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10301        export_dynamic_flag_spec='${wl}-E'
10302      else
10303       case $host_os in
10304         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10305           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10306           hardcode_libdir_flag_spec='-R$libdir'
10307           ;;
10308         *)
10309           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10310           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10311           ;;
10312       esac
10313      fi
10314      ;;
10315
10316    os2*)
10317      hardcode_libdir_flag_spec='-L$libdir'
10318      hardcode_minus_L=yes
10319      allow_undefined_flag=unsupported
10320      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'
10321      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10322      ;;
10323
10324    osf3*)
10325      if test "$GCC" = yes; then
10326        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10327        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'
10328      else
10329        allow_undefined_flag=' -expect_unresolved \*'
10330        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'
10331      fi
10332      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333      hardcode_libdir_separator=:
10334      ;;
10335
10336    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10337      if test "$GCC" = yes; then
10338        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10339        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10340        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341      else
10342        allow_undefined_flag=' -expect_unresolved \*'
10343        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'
10344        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10345        $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'
10346
10347        # Both c and cxx compiler support -rpath directly
10348        hardcode_libdir_flag_spec='-rpath $libdir'
10349      fi
10350      hardcode_libdir_separator=:
10351      ;;
10352
10353    solaris*)
10354      no_undefined_flag=' -z text'
10355      if test "$GCC" = yes; then
10356        wlarc='${wl}'
10357        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10358        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10359          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10360      else
10361        wlarc=''
10362        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10364        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10365      fi
10366      hardcode_libdir_flag_spec='-R$libdir'
10367      hardcode_shlibpath_var=no
10368      case $host_os in
10369      solaris2.[0-5] | solaris2.[0-5].*) ;;
10370      *)
10371        # The compiler driver will combine linker options so we
10372        # cannot just pass the convience library names through
10373        # without $wl, iff we do not link with $LD.
10374        # Luckily, gcc supports the same syntax we need for Sun Studio.
10375        # Supported since Solaris 2.6 (maybe 2.5.1?)
10376        case $wlarc in
10377        '')
10378          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10379        *)
10380          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' ;;
10381        esac ;;
10382      esac
10383      link_all_deplibs=yes
10384      ;;
10385
10386    sunos4*)
10387      if test "x$host_vendor" = xsequent; then
10388        # Use $CC to link under sequent, because it throws in some extra .o
10389        # files that make .init and .fini sections work.
10390        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10391      else
10392        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10393      fi
10394      hardcode_libdir_flag_spec='-L$libdir'
10395      hardcode_direct=yes
10396      hardcode_minus_L=yes
10397      hardcode_shlibpath_var=no
10398      ;;
10399
10400    sysv4)
10401      case $host_vendor in
10402        sni)
10403          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404          hardcode_direct=yes # is this really true???
10405        ;;
10406        siemens)
10407          ## LD is ld it makes a PLAMLIB
10408          ## CC just makes a GrossModule.
10409          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10410          reload_cmds='$CC -r -o $output$reload_objs'
10411          hardcode_direct=no
10412        ;;
10413        motorola)
10414          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10416        ;;
10417      esac
10418      runpath_var='LD_RUN_PATH'
10419      hardcode_shlibpath_var=no
10420      ;;
10421
10422    sysv4.3*)
10423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424      hardcode_shlibpath_var=no
10425      export_dynamic_flag_spec='-Bexport'
10426      ;;
10427
10428    sysv4*MP*)
10429      if test -d /usr/nec; then
10430        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431        hardcode_shlibpath_var=no
10432        runpath_var=LD_RUN_PATH
10433        hardcode_runpath_var=yes
10434        ld_shlibs=yes
10435      fi
10436      ;;
10437
10438    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10439      no_undefined_flag='${wl}-z,text'
10440      archive_cmds_need_lc=no
10441      hardcode_shlibpath_var=no
10442      runpath_var='LD_RUN_PATH'
10443
10444      if test "$GCC" = yes; then
10445        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447      else
10448        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450      fi
10451      ;;
10452
10453    sysv5* | sco3.2v5* | sco5v6*)
10454      # Note: We can NOT use -z defs as we might desire, because we do not
10455      # link with -lc, and that would cause any symbols used from libc to
10456      # always be unresolved, which means just about no library would
10457      # ever link correctly.  If we're not using GNU ld we use -z text
10458      # though, which does catch some bad symbols but isn't as heavy-handed
10459      # as -z defs.
10460      no_undefined_flag='${wl}-z,text'
10461      allow_undefined_flag='${wl}-z,nodefs'
10462      archive_cmds_need_lc=no
10463      hardcode_shlibpath_var=no
10464      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10465      hardcode_libdir_separator=':'
10466      link_all_deplibs=yes
10467      export_dynamic_flag_spec='${wl}-Bexport'
10468      runpath_var='LD_RUN_PATH'
10469
10470      if test "$GCC" = yes; then
10471        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10472        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473      else
10474        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10475        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10476      fi
10477      ;;
10478
10479    uts4*)
10480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481      hardcode_libdir_flag_spec='-L$libdir'
10482      hardcode_shlibpath_var=no
10483      ;;
10484
10485    *)
10486      ld_shlibs=no
10487      ;;
10488    esac
10489  fi
10490
10491echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10492echo "${ECHO_T}$ld_shlibs" >&6
10493test "$ld_shlibs" = no && can_build_shared=no
10494
10495#
10496# Do we need to explicitly link libc?
10497#
10498case "x$archive_cmds_need_lc" in
10499x|xyes)
10500  # Assume -lc should be added
10501  archive_cmds_need_lc=yes
10502
10503  if test "$enable_shared" = yes && test "$GCC" = yes; then
10504    case $archive_cmds in
10505    *'~'*)
10506      # FIXME: we may have to deal with multi-command sequences.
10507      ;;
10508    '$CC '*)
10509      # Test whether the compiler implicitly links with -lc since on some
10510      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10511      # to ld, don't add -lc before -lgcc.
10512      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10513echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10514      $rm conftest*
10515      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10516
10517      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518  (eval $ac_compile) 2>&5
10519  ac_status=$?
10520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521  (exit $ac_status); } 2>conftest.err; then
10522        soname=conftest
10523        lib=conftest
10524        libobjs=conftest.$ac_objext
10525        deplibs=
10526        wl=$lt_prog_compiler_wl
10527        pic_flag=$lt_prog_compiler_pic
10528        compiler_flags=-v
10529        linker_flags=-v
10530        verstring=
10531        output_objdir=.
10532        libname=conftest
10533        lt_save_allow_undefined_flag=$allow_undefined_flag
10534        allow_undefined_flag=
10535        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10536  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); }
10540        then
10541          archive_cmds_need_lc=no
10542        else
10543          archive_cmds_need_lc=yes
10544        fi
10545        allow_undefined_flag=$lt_save_allow_undefined_flag
10546      else
10547        cat conftest.err 1>&5
10548      fi
10549      $rm conftest*
10550      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10551echo "${ECHO_T}$archive_cmds_need_lc" >&6
10552      ;;
10553    esac
10554  fi
10555  ;;
10556esac
10557
10558echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10559echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10560library_names_spec=
10561libname_spec='lib$name'
10562soname_spec=
10563shrext_cmds=".so"
10564postinstall_cmds=
10565postuninstall_cmds=
10566finish_cmds=
10567finish_eval=
10568shlibpath_var=
10569shlibpath_overrides_runpath=unknown
10570version_type=none
10571dynamic_linker="$host_os ld.so"
10572sys_lib_dlsearch_path_spec="/lib /usr/lib"
10573if test "$GCC" = yes; then
10574  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10575  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10576    # if the path contains ";" then we assume it to be the separator
10577    # otherwise default to the standard path separator (i.e. ":") - it is
10578    # assumed that no part of a normal pathname contains ";" but that should
10579    # okay in the real world where ";" in dirpaths is itself problematic.
10580    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10581  else
10582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10583  fi
10584else
10585  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10586fi
10587need_lib_prefix=unknown
10588hardcode_into_libs=no
10589
10590# when you set need_version to no, make sure it does not cause -set_version
10591# flags to be left without arguments
10592need_version=unknown
10593
10594case $host_os in
10595aix3*)
10596  version_type=linux
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10598  shlibpath_var=LIBPATH
10599
10600  # AIX 3 has no versioning support, so we append a major version to the name.
10601  soname_spec='${libname}${release}${shared_ext}$major'
10602  ;;
10603
10604aix4* | aix5*)
10605  version_type=linux
10606  need_lib_prefix=no
10607  need_version=no
10608  hardcode_into_libs=yes
10609  if test "$host_cpu" = ia64; then
10610    # AIX 5 supports IA64
10611    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10612    shlibpath_var=LD_LIBRARY_PATH
10613  else
10614    # With GCC up to 2.95.x, collect2 would create an import file
10615    # for dependence libraries.  The import file would start with
10616    # the line `#! .'.  This would cause the generated library to
10617    # depend on `.', always an invalid library.  This was fixed in
10618    # development snapshots of GCC prior to 3.0.
10619    case $host_os in
10620      aix4 | aix4.[01] | aix4.[01].*)
10621      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10622           echo ' yes '
10623           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10624        :
10625      else
10626        can_build_shared=no
10627      fi
10628      ;;
10629    esac
10630    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10631    # soname into executable. Probably we can add versioning support to
10632    # collect2, so additional links can be useful in future.
10633    if test "$aix_use_runtimelinking" = yes; then
10634      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10635      # instead of lib<name>.a to let people know that these are not
10636      # typical AIX shared libraries.
10637      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638    else
10639      # We preserve .a as extension for shared libraries through AIX4.2
10640      # and later when we are not doing run time linking.
10641      library_names_spec='${libname}${release}.a $libname.a'
10642      soname_spec='${libname}${release}${shared_ext}$major'
10643    fi
10644    shlibpath_var=LIBPATH
10645  fi
10646  ;;
10647
10648amigaos*)
10649  library_names_spec='$libname.ixlibrary $libname.a'
10650  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10651  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'
10652  ;;
10653
10654beos*)
10655  library_names_spec='${libname}${shared_ext}'
10656  dynamic_linker="$host_os ld.so"
10657  shlibpath_var=LIBRARY_PATH
10658  ;;
10659
10660bsdi[45]*)
10661  version_type=linux
10662  need_version=no
10663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664  soname_spec='${libname}${release}${shared_ext}$major'
10665  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10666  shlibpath_var=LD_LIBRARY_PATH
10667  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10668  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10669  # the default ld.so.conf also contains /usr/contrib/lib and
10670  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10671  # libtool to hard-code these into programs
10672  ;;
10673
10674cygwin* | mingw* | pw32*)
10675  version_type=windows
10676  shrext_cmds=".dll"
10677  need_version=no
10678  need_lib_prefix=no
10679
10680  case $GCC,$host_os in
10681  yes,cygwin* | yes,mingw* | yes,pw32*)
10682    library_names_spec='$libname.dll.a'
10683    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10684    postinstall_cmds='base_file=`basename \${file}`~
10685      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10686      dldir=$destdir/`dirname \$dlpath`~
10687      test -d \$dldir || mkdir -p \$dldir~
10688      $install_prog $dir/$dlname \$dldir/$dlname~
10689      chmod a+x \$dldir/$dlname'
10690    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10691      dlpath=$dir/\$dldll~
10692       $rm \$dlpath'
10693    shlibpath_overrides_runpath=yes
10694
10695    case $host_os in
10696    cygwin*)
10697      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10698      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10699      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10700      ;;
10701    mingw*)
10702      # MinGW DLLs use traditional 'lib' prefix
10703      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10704      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10705      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10706        # It is most probably a Windows format PATH printed by
10707        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10708        # path with ; separators, and with drive letters. We can handle the
10709        # drive letters (cygwin fileutils understands them), so leave them,
10710        # especially as we might pass files found there to a mingw objdump,
10711        # which wouldn't understand a cygwinified path. Ahh.
10712        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713      else
10714        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10715      fi
10716      ;;
10717    pw32*)
10718      # pw32 DLLs use 'pw' prefix rather than 'lib'
10719      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720      ;;
10721    esac
10722    ;;
10723
10724  *)
10725    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10726    ;;
10727  esac
10728  dynamic_linker='Win32 ld.exe'
10729  # FIXME: first we should search . and the directory the executable is in
10730  shlibpath_var=PATH
10731  ;;
10732
10733darwin* | rhapsody*)
10734  dynamic_linker="$host_os dyld"
10735  version_type=darwin
10736  need_lib_prefix=no
10737  need_version=no
10738  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10739  soname_spec='${libname}${release}${major}$shared_ext'
10740  shlibpath_overrides_runpath=yes
10741  shlibpath_var=DYLD_LIBRARY_PATH
10742  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10743  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10744  if test "$GCC" = yes; then
10745    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"`
10746  else
10747    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10748  fi
10749  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10750  ;;
10751
10752dgux*)
10753  version_type=linux
10754  need_lib_prefix=no
10755  need_version=no
10756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10757  soname_spec='${libname}${release}${shared_ext}$major'
10758  shlibpath_var=LD_LIBRARY_PATH
10759  ;;
10760
10761freebsd1*)
10762  dynamic_linker=no
10763  ;;
10764
10765kfreebsd*-gnu)
10766  version_type=linux
10767  need_lib_prefix=no
10768  need_version=no
10769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10770  soname_spec='${libname}${release}${shared_ext}$major'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  shlibpath_overrides_runpath=no
10773  hardcode_into_libs=yes
10774  dynamic_linker='GNU ld.so'
10775  ;;
10776
10777freebsd* | dragonfly*)
10778  # DragonFly does not have aout.  When/if they implement a new
10779  # versioning mechanism, adjust this.
10780  if test -x /usr/bin/objformat; then
10781    objformat=`/usr/bin/objformat`
10782  else
10783    case $host_os in
10784    freebsd[123]*) objformat=aout ;;
10785    *) objformat=elf ;;
10786    esac
10787  fi
10788  version_type=freebsd-$objformat
10789  case $version_type in
10790    freebsd-elf*)
10791      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10792      need_version=no
10793      need_lib_prefix=no
10794      ;;
10795    freebsd-*)
10796      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10797      need_version=yes
10798      ;;
10799  esac
10800  shlibpath_var=LD_LIBRARY_PATH
10801  case $host_os in
10802  freebsd2*)
10803    shlibpath_overrides_runpath=yes