source: ThirdParty/HSL/branches/split/configure @ 1490

Last change on this file since 1490 was 1490, checked in by stefan, 10 years ago

change externals to use split branches; rerun autotools after changing to use BuildTools?/branches/split

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