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

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

temporarily committing release candidate

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