source: ThirdParty/HSL/trunk/configure @ 1552

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

rerun autotools to get FLIBS fix

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