source: ThirdParty/Blas/stable/1.3/configure @ 2720

Last change on this file since 2720 was 2720, checked in by stefan, 6 years ago

restoring BuildTools/ThirdParty/Blas?/stable/1.3

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