source: ThirdParty/Lapack/stable/1.2/configure @ 1854

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

temporarily committing release candidate

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