source: ThirdParty/FilterSQP/trunk/configure @ 1552

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

rerun autotools to get FLIBS fix

File size: 765.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyFilterSQP 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS 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 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 0.0 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 0.0:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-filtersqp
1079                          compile this project (FilterSQP) with debug options
1080  --enable-doscompile     Under Cygwin, compile so that executables run under
1081                          DOS. Set to mingw to use gcc/g++/ld with
1082                          -mno-cygwin. Set to msvc to use cl/link (or
1083                          icl/link). Default when mentioned: mingw. Default
1084                          when not mentioned: disabled.
1085  --enable-pkg-config     use pkg-config if available (default is yes)
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-filtersqp-verbosity
1102                          specify the debug verbosity level for project
1103                          FilterSQP
1104  --with-filtersqp-checklevel
1105                          specify the sanity check level for project FilterSQP
1106  --with-coin-instdir     prefix of installation directory for precompiled
1107                          COIN packages
1108  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1109  --with-pic              try to use only PIC/non-PIC objects [default=use
1110                          both]
1111  --with-tags[=TAGS]
1112                          include additional configurations [automatic]
1113
1114Some influential environment variables:
1115  CDEFS       Additional -D flags to be used when compiling C code.
1116  ADD_CFLAGS  Additional C compiler options
1117  DBG_CFLAGS  Debug C compiler options
1118  OPT_CFLAGS  Optimize C compiler options
1119  CC          C compiler command
1120  CFLAGS      C compiler flags
1121  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122              nonstandard directory <lib dir>
1123  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124              headers in a nonstandard directory <include dir>
1125  MPICC       C MPI Compiler
1126  ADD_FFLAGS  Additional Fortran compiler options
1127  DBG_FFLAGS  Debug Fortran compiler options
1128  OPT_FFLAGS  Optimize Fortran compiler options
1129  F77         Fortran 77 compiler command
1130  FFLAGS      Fortran 77 compiler flags
1131  MPIF77      Fortran MPI Compiler
1132  PKG_CONFIG  path to pkg-config utility
1133  CPP         C preprocessor
1134  CXX         C++ compiler command
1135  CXXFLAGS    C++ compiler flags
1136  CXXCPP      C++ preprocessor
1137
1138Use these variables to override the choices made by `configure' or to help
1139it to find libraries and programs with nonstandard names/locations.
1140
1141Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1142_ACEOF
1143fi
1144
1145if test "$ac_init_help" = "recursive"; then
1146  # If there are subdirs, report their specific --help.
1147  ac_popdir=`pwd`
1148  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1149    test -d $ac_dir || continue
1150    ac_builddir=.
1151
1152if test "$ac_dir" != .; then
1153  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1154  # A "../" for each directory in $ac_dir_suffix.
1155  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1156else
1157  ac_dir_suffix= ac_top_builddir=
1158fi
1159
1160case $srcdir in
1161  .)  # No --srcdir option.  We are building in place.
1162    ac_srcdir=.
1163    if test -z "$ac_top_builddir"; then
1164       ac_top_srcdir=.
1165    else
1166       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1167    fi ;;
1168  [\\/]* | ?:[\\/]* )  # Absolute path.
1169    ac_srcdir=$srcdir$ac_dir_suffix;
1170    ac_top_srcdir=$srcdir ;;
1171  *) # Relative path.
1172    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1173    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1174esac
1175
1176# Do not use `cd foo && pwd` to compute absolute paths, because
1177# the directories may not exist.
1178case `pwd` in
1179.) ac_abs_builddir="$ac_dir";;
1180*)
1181  case "$ac_dir" in
1182  .) ac_abs_builddir=`pwd`;;
1183  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1184  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1185  esac;;
1186esac
1187case $ac_abs_builddir in
1188.) ac_abs_top_builddir=${ac_top_builddir}.;;
1189*)
1190  case ${ac_top_builddir}. in
1191  .) ac_abs_top_builddir=$ac_abs_builddir;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1193  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_srcdir=$ac_srcdir;;
1198*)
1199  case $ac_srcdir in
1200  .) ac_abs_srcdir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1202  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1203  esac;;
1204esac
1205case $ac_abs_builddir in
1206.) ac_abs_top_srcdir=$ac_top_srcdir;;
1207*)
1208  case $ac_top_srcdir in
1209  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1211  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1212  esac;;
1213esac
1214
1215    cd $ac_dir
1216    # Check for guested configure; otherwise get Cygnus style configure.
1217    if test -f $ac_srcdir/configure.gnu; then
1218      echo
1219      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1220    elif test -f $ac_srcdir/configure; then
1221      echo
1222      $SHELL $ac_srcdir/configure  --help=recursive
1223    elif test -f $ac_srcdir/configure.ac ||
1224           test -f $ac_srcdir/configure.in; then
1225      echo
1226      $ac_configure --help
1227    else
1228      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1229    fi
1230    cd $ac_popdir
1231  done
1232fi
1233
1234test -n "$ac_init_help" && exit 0
1235if $ac_init_version; then
1236  cat <<\_ACEOF
1237ThirdPartyFilterSQP configure 0.0
1238generated by GNU Autoconf 2.59
1239
1240Copyright (C) 2003 Free Software Foundation, Inc.
1241This configure script is free software; the Free Software Foundation
1242gives unlimited permission to copy, distribute and modify it.
1243
1244
1245Copyright 2006 International Business Machines and others.
1246All Rights Reserved.
1247This file is part of the open source package Coin which is distributed
1248under the Common Public License.
1249_ACEOF
1250  exit 0
1251fi
1252exec 5>config.log
1253cat >&5 <<_ACEOF
1254This file contains any messages produced by compilers while
1255running configure, to aid debugging if configure makes a mistake.
1256
1257It was created by ThirdPartyFilterSQP $as_me 0.0, which was
1258generated by GNU Autoconf 2.59.  Invocation command line was
1259
1260  $ $0 $@
1261
1262_ACEOF
1263{
1264cat <<_ASUNAME
1265## --------- ##
1266## Platform. ##
1267## --------- ##
1268
1269hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1270uname -m = `(uname -m) 2>/dev/null || echo unknown`
1271uname -r = `(uname -r) 2>/dev/null || echo unknown`
1272uname -s = `(uname -s) 2>/dev/null || echo unknown`
1273uname -v = `(uname -v) 2>/dev/null || echo unknown`
1274
1275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1276/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1277
1278/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1279/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1280/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1281hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1282/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1283/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1284/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1285
1286_ASUNAME
1287
1288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1289for as_dir in $PATH
1290do
1291  IFS=$as_save_IFS
1292  test -z "$as_dir" && as_dir=.
1293  echo "PATH: $as_dir"
1294done
1295
1296} >&5
1297
1298cat >&5 <<_ACEOF
1299
1300
1301## ----------- ##
1302## Core tests. ##
1303## ----------- ##
1304
1305_ACEOF
1306
1307
1308# Keep a trace of the command line.
1309# Strip out --no-create and --no-recursion so they do not pile up.
1310# Strip out --silent because we don't want to record it for future runs.
1311# Also quote any args containing shell meta-characters.
1312# Make two passes to allow for proper duplicate-argument suppression.
1313ac_configure_args=
1314ac_configure_args0=
1315ac_configure_args1=
1316ac_sep=
1317ac_must_keep_next=false
1318for ac_pass in 1 2
1319do
1320  for ac_arg
1321  do
1322    case $ac_arg in
1323    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1324    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325    | -silent | --silent | --silen | --sile | --sil)
1326      continue ;;
1327    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1329    esac
1330    case $ac_pass in
1331    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1332    2)
1333      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1334      if test $ac_must_keep_next = true; then
1335        ac_must_keep_next=false # Got value, back to normal.
1336      else
1337        case $ac_arg in
1338          *=* | --config-cache | -C | -disable-* | --disable-* \
1339          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1340          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1341          | -with-* | --with-* | -without-* | --without-* | --x)
1342            case "$ac_configure_args0 " in
1343              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344            esac
1345            ;;
1346          -* ) ac_must_keep_next=true ;;
1347        esac
1348      fi
1349      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1350      # Get rid of the leading space.
1351      ac_sep=" "
1352      ;;
1353    esac
1354  done
1355done
1356$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1357$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1358
1359# When interrupted or exit'd, cleanup temporary files, and complete
1360# config.log.  We remove comments because anyway the quotes in there
1361# would cause problems or look ugly.
1362# WARNING: Be sure not to use single quotes in there, as some shells,
1363# such as our DU 5.0 friend, will then `close' the trap.
1364trap 'exit_status=$?
1365  # Save into config.log some information that might help in debugging.
1366  {
1367    echo
1368
1369    cat <<\_ASBOX
1370## ---------------- ##
1371## Cache variables. ##
1372## ---------------- ##
1373_ASBOX
1374    echo
1375    # The following way of writing the cache mishandles newlines in values,
1376{
1377  (set) 2>&1 |
1378    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379    *ac_space=\ *)
1380      sed -n \
1381        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1382          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1383      ;;
1384    *)
1385      sed -n \
1386        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1387      ;;
1388    esac;
1389}
1390    echo
1391
1392    cat <<\_ASBOX
1393## ----------------- ##
1394## Output variables. ##
1395## ----------------- ##
1396_ASBOX
1397    echo
1398    for ac_var in $ac_subst_vars
1399    do
1400      eval ac_val=$`echo $ac_var`
1401      echo "$ac_var='"'"'$ac_val'"'"'"
1402    done | sort
1403    echo
1404
1405    if test -n "$ac_subst_files"; then
1406      cat <<\_ASBOX
1407## ------------- ##
1408## Output files. ##
1409## ------------- ##
1410_ASBOX
1411      echo
1412      for ac_var in $ac_subst_files
1413      do
1414        eval ac_val=$`echo $ac_var`
1415        echo "$ac_var='"'"'$ac_val'"'"'"
1416      done | sort
1417      echo
1418    fi
1419
1420    if test -s confdefs.h; then
1421      cat <<\_ASBOX
1422## ----------- ##
1423## confdefs.h. ##
1424## ----------- ##
1425_ASBOX
1426      echo
1427      sed "/^$/d" confdefs.h | sort
1428      echo
1429    fi
1430    test "$ac_signal" != 0 &&
1431      echo "$as_me: caught signal $ac_signal"
1432    echo "$as_me: exit $exit_status"
1433  } >&5
1434  rm -f core *.core &&
1435  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1436    exit $exit_status
1437     ' 0
1438for ac_signal in 1 2 13 15; do
1439  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1440done
1441ac_signal=0
1442
1443# confdefs.h avoids OS command line length limits that DEFS can exceed.
1444rm -rf conftest* confdefs.h
1445# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446echo >confdefs.h
1447
1448# Predefined preprocessor variables.
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_NAME "$PACKAGE_NAME"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_VERSION "$PACKAGE_VERSION"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_STRING "$PACKAGE_STRING"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1472_ACEOF
1473
1474
1475# Let the site file select an alternate cache file if it wants to.
1476# Prefer explicitly selected file to automatically selected ones.
1477if test -z "$CONFIG_SITE"; then
1478  if test "x$prefix" != xNONE; then
1479    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1480  else
1481    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482  fi
1483fi
1484for ac_site_file in $CONFIG_SITE; do
1485  if test -r "$ac_site_file"; then
1486    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1487echo "$as_me: loading site script $ac_site_file" >&6;}
1488    sed 's/^/| /' "$ac_site_file" >&5
1489    . "$ac_site_file"
1490  fi
1491done
1492
1493if test -r "$cache_file"; then
1494  # Some versions of bash will fail to source /dev/null (special
1495  # files actually), so we avoid doing that.
1496  if test -f "$cache_file"; then
1497    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1498echo "$as_me: loading cache $cache_file" >&6;}
1499    case $cache_file in
1500      [\\/]* | ?:[\\/]* ) . $cache_file;;
1501      *)                      . ./$cache_file;;
1502    esac
1503  fi
1504else
1505  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1506echo "$as_me: creating cache $cache_file" >&6;}
1507  >$cache_file
1508fi
1509
1510# Check that the precious variables saved in the cache have kept the same
1511# value.
1512ac_cache_corrupted=false
1513for ac_var in `(set) 2>&1 |
1514               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1515  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1516  eval ac_new_set=\$ac_env_${ac_var}_set
1517  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1518  eval ac_new_val="\$ac_env_${ac_var}_value"
1519  case $ac_old_set,$ac_new_set in
1520    set,)
1521      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1522echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1523      ac_cache_corrupted=: ;;
1524    ,set)
1525      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1526echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1527      ac_cache_corrupted=: ;;
1528    ,);;
1529    *)
1530      if test "x$ac_old_val" != "x$ac_new_val"; then
1531        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1534echo "$as_me:   former value:  $ac_old_val" >&2;}
1535        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1536echo "$as_me:   current value: $ac_new_val" >&2;}
1537        ac_cache_corrupted=:
1538      fi;;
1539  esac
1540  # Pass precious variables to config.status.
1541  if test "$ac_new_set" = set; then
1542    case $ac_new_val in
1543    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545    *) ac_arg=$ac_var=$ac_new_val ;;
1546    esac
1547    case " $ac_configure_args " in
1548      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1549      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1550    esac
1551  fi
1552done
1553if $ac_cache_corrupted; then
1554  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1555echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1556  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1557echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1558   { (exit 1); exit 1; }; }
1559fi
1560
1561ac_ext=c
1562ac_cpp='$CPP $CPPFLAGS'
1563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596# List one file in the package so that the configure script can test
1597# whether the package is actually there
1598
1599
1600# Where should everything be installed by default?  Here, we want it
1601# to be installed directly in 'bin', 'lib', 'include' subdirectories
1602# of the directory where configure is run.  The default would be
1603# /usr/local.
1604
1605
1606# Initialize the ADDLIBS variable
1607ADDLIBS="-lm $LIBS"
1608
1609
1610# As backup, we make sure we don't loose an FLIBS if it has been set
1611# by the user
1612save_FLIBS="$FLIBS"
1613
1614# Initialize the FADDLIBS variable (which is to be used with a fortran
1615# compiler and will not include FLIBS)
1616FADDLIBS="$LIBS"
1617
1618
1619# A useful makefile conditional that is always false
1620
1621
1622if false; then
1623  ALWAYS_FALSE_TRUE=
1624  ALWAYS_FALSE_FALSE='#'
1625else
1626  ALWAYS_FALSE_TRUE='#'
1627  ALWAYS_FALSE_FALSE=
1628fi
1629
1630
1631#Set the project's version number
1632if test "x" != x; then
1633
1634cat >>confdefs.h <<_ACEOF
1635#define _VERSION "$PACKAGE_VERSION"
1636_ACEOF
1637
1638fi
1639
1640#Set the project's SVN revision number
1641# Extract the first word of "svnversion", so it can be a program name with args.
1642set dummy svnversion; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_have_svnversion+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$have_svnversion"; then
1649  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_have_svnversion="yes"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1666fi
1667fi
1668have_svnversion=$ac_cv_prog_have_svnversion
1669if test -n "$have_svnversion"; then
1670  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1671echo "${ECHO_T}$have_svnversion" >&6
1672else
1673  echo "$as_me:$LINENO: result: no" >&5
1674echo "${ECHO_T}no" >&6
1675fi
1676
1677if test "x$have_svnversion" = xyes && test "x" != x; then
1678
1679  _SVN_REV=`cd $srcdir/$coin_has_ ; svnversion`
1680  if test $_SVN_REV != exported; then
1681
1682cat >>confdefs.h <<_ACEOF
1683#define _SVN_REV "$_SVN_REV"
1684_ACEOF
1685
1686  fi
1687fi
1688
1689# We set the following variable so that we know later in AC_COIN_FINALIZE
1690# that we are in a project main directory
1691coin_projectdir=yes
1692
1693# Check if a library version is set for libtool
1694
1695
1696
1697#############################################################################
1698#                         Standard build tool stuff                         #
1699#############################################################################
1700
1701# Get the system type
1702ac_aux_dir=
1703for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1704  if test -f $ac_dir/install-sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install-sh -c"
1707    break
1708  elif test -f $ac_dir/install.sh; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/install.sh -c"
1711    break
1712  elif test -f $ac_dir/shtool; then
1713    ac_aux_dir=$ac_dir
1714    ac_install_sh="$ac_aux_dir/shtool install -c"
1715    break
1716  fi
1717done
1718if test -z "$ac_aux_dir"; then
1719  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1720echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1721   { (exit 1); exit 1; }; }
1722fi
1723ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736  echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738  ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740  ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744   { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748   { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759
1760# Check if user wants to produce debugging code
1761
1762echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1763echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1764
1765# Check whether --enable-debug or --disable-debug was given.
1766if test "${enable_debug+set}" = set; then
1767  enableval="$enable_debug"
1768  case "${enableval}" in
1769   yes) coin_debug_compile=true
1770        if test "${enable_shared+set}" = set; then :; else
1771          enable_shared=no
1772        fi
1773        ;;
1774   no)  coin_debug_compile=false
1775        ;;
1776   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1777echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1778   { (exit 1); exit 1; }; }
1779        ;;
1780esac
1781else
1782  coin_debug_compile=false
1783fi;
1784
1785# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1786if test "${enable_debug_filtersqp+set}" = set; then
1787  enableval="$enable_debug_filtersqp"
1788  case "${enableval}" in
1789    yes) coin_debug_compile=true
1790         enable_shared=no
1791         ;;
1792    no)  coin_debug_compile=false
1793         ;;
1794    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1795echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1796   { (exit 1); exit 1; }; }
1797         ;;
1798 esac
1799else
1800  :
1801fi;
1802
1803 # m4_ifvaln([FilterSQP],
1804
1805if test $coin_debug_compile = true; then
1806  echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
1808else
1809  echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813
1814# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1815if test "${with_filtersqp_verbosity+set}" = set; then
1816  withval="$with_filtersqp_verbosity"
1817  if test "$withval" = yes; then
1818                withval=1
1819              fi
1820              coin_filtersqp_verbosity=$withval
1821else
1822  coin_filtersqp_verbosity=0
1823fi;
1824
1825cat >>confdefs.h <<_ACEOF
1826#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1827_ACEOF
1828
1829
1830
1831# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1832if test "${with_filtersqp_checklevel+set}" = set; then
1833  withval="$with_filtersqp_checklevel"
1834  if test "$withval" = yes; then
1835                withval=1
1836              fi
1837              coin_filtersqp_checklevel=$withval
1838else
1839  coin_filtersqp_checklevel=0
1840fi;
1841
1842cat >>confdefs.h <<_ACEOF
1843#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1844_ACEOF
1845
1846
1847# We use the following variable to have a string with the upper case
1848# version of the project name
1849COIN_PRJCT=FILTERSQP
1850
1851
1852 # m4_ifvaln([FilterSQP],
1853
1854
1855
1856# Get the name of the Fortran compiler and appropriate compiler options
1857case $build in
1858  *-mingw*)
1859    if test "${LD+set}" = set; then :; else
1860      LD=link
1861    fi
1862    ;;
1863 esac
1864 case $enable_doscompile in
1865   msvc)
1866     if test "x${LD+set}" = xset; then :; else
1867       LD=link
1868     fi
1869     ;;
1870 esac
1871
1872
1873 # Check whether --enable-doscompile or --disable-doscompile was given.
1874if test "${enable_doscompile+set}" = set; then
1875  enableval="$enable_doscompile"
1876  if test "$enable_doscompile" != no; then
1877     case $build in
1878       *-cygwin* | *-mingw*) ;;
1879       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1880echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1881   { (exit 1); exit 1; }; } ;;
1882     esac
1883   fi
1884else
1885  enable_doscompile=no
1886fi;
1887 case "$enable_doscompile" in
1888   mingw)
1889     case $build in
1890       *-mingw*) enable_doscompile=no ;;
1891     esac
1892     ;;
1893   msvc|no) ;;
1894   yes) enable_doscompile=mingw ;;
1895   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1896                    Try configure --help=recursive." >&5
1897echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1898                    Try configure --help=recursive." >&2;}
1899   { (exit 1); exit 1; }; }
1900      ;;
1901  esac
1902  if test "$enable_doscompile" != no ; then
1903    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1904echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1905  fi
1906
1907
1908
1909
1910ac_ext=c
1911ac_cpp='$CPP $CPPFLAGS'
1912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915
1916
1917# For consistency, we set the C compiler to the same value of the C++
1918# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1919if test x"$CXX" != x; then
1920  case "$CXX" in
1921    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1922      if test x"$CC" = x; then
1923        CC="$CXX"
1924        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1925echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1926      fi
1927      ;;
1928  esac
1929fi
1930
1931
1932
1933
1934
1935
1936coin_has_cc=yes
1937
1938save_cflags="$CFLAGS"
1939
1940# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1941# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1942# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1943# compiler. In this case, put cc after gcc.
1944
1945case $build in
1946  *-cygwin* | *-mingw*)
1947             if test "$enable_doscompile" = msvc ; then
1948               comps="icl cl"
1949             else
1950               comps="gcc cl"
1951             fi ;;
1952  *-*-solaris*)
1953             # Extract the first word of "cc", so it can be a program name with args.
1954set dummy cc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$sol_cc_compiler"; then
1961  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1962else
1963  ac_prog_rejected=no
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972       ac_prog_rejected=yes
1973       continue
1974     fi
1975    ac_cv_prog_sol_cc_compiler="cc"
1976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977    break 2
1978  fi
1979done
1980done
1981
1982if test $ac_prog_rejected = yes; then
1983  # We found a bogon in the path, so make sure we never use it.
1984  set dummy $ac_cv_prog_sol_cc_compiler
1985  shift
1986  if test $# != 0; then
1987    # We chose a different compiler from the bogus one.
1988    # However, it has the same basename, so the bogon will be chosen
1989    # first if we set sol_cc_compiler to just the basename; use the full file name.
1990    shift
1991    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1992  fi
1993fi
1994fi
1995fi
1996sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1997if test -n "$sol_cc_compiler"; then
1998  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1999echo "${ECHO_T}$sol_cc_compiler" >&6
2000else
2001  echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005             if test "$sol_cc_compiler" = "cc" ; then
2006               comps="cc xlc gcc pgcc icc"
2007             else
2008               comps="xlc gcc pgcc icc cc"
2009             fi
2010             ;;
2011  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2012  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2013esac
2014
2015# We delete the cached value, since the test might not have been
2016# performed with our choice of compilers earlier
2017$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2018# AC_MSG_NOTICE([C compiler candidates: $comps])
2019ac_ext=c
2020ac_cpp='$CPP $CPPFLAGS'
2021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024if test -n "$ac_tool_prefix"; then
2025  for ac_prog in $comps
2026  do
2027    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2029echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031if test "${ac_cv_prog_CC+set}" = set; then
2032  echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034  if test -n "$CC"; then
2035  ac_cv_prog_CC="$CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040  IFS=$as_save_IFS
2041  test -z "$as_dir" && as_dir=.
2042  for ac_exec_ext in '' $ac_executable_extensions; do
2043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046    break 2
2047  fi
2048done
2049done
2050
2051fi
2052fi
2053CC=$ac_cv_prog_CC
2054if test -n "$CC"; then
2055  echo "$as_me:$LINENO: result: $CC" >&5
2056echo "${ECHO_T}$CC" >&6
2057else
2058  echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
2062    test -n "$CC" && break
2063  done
2064fi
2065if test -z "$CC"; then
2066  ac_ct_CC=$CC
2067  for ac_prog in $comps
2068do
2069  # Extract the first word of "$ac_prog", so it can be a program name with args.
2070set dummy $ac_prog; ac_word=$2
2071echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  if test -n "$ac_ct_CC"; then
2077  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084  for ac_exec_ext in '' $ac_executable_extensions; do
2085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2086    ac_cv_prog_ac_ct_CC="$ac_prog"
2087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088    break 2
2089  fi
2090done
2091done
2092
2093fi
2094fi
2095ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096if test -n "$ac_ct_CC"; then
2097  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098echo "${ECHO_T}$ac_ct_CC" >&6
2099else
2100  echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6
2102fi
2103
2104  test -n "$ac_ct_CC" && break
2105done
2106
2107  CC=$ac_ct_CC
2108fi
2109
2110
2111test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: no acceptable C compiler found in \$PATH
2114See \`config.log' for more details." >&2;}
2115   { (exit 1); exit 1; }; }
2116
2117# Provide some information about the compiler.
2118echo "$as_me:$LINENO:" \
2119     "checking for C compiler version" >&5
2120ac_compiler=`set X $ac_compile; echo $2`
2121{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2122  (eval $ac_compiler --version </dev/null >&5) 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }
2126{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2127  (eval $ac_compiler -v </dev/null >&5) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }
2131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2132  (eval $ac_compiler -V </dev/null >&5) 2>&5
2133  ac_status=$?
2134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135  (exit $ac_status); }
2136
2137cat >conftest.$ac_ext <<_ACEOF
2138/* confdefs.h.  */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
2142/* end confdefs.h.  */
2143
2144int
2145main ()
2146{
2147
2148  ;
2149  return 0;
2150}
2151_ACEOF
2152ac_clean_files_save=$ac_clean_files
2153ac_clean_files="$ac_clean_files a.out a.exe b.out"
2154# Try to create an executable without -o first, disregard a.out.
2155# It will help us diagnose broken compilers, and finding out an intuition
2156# of exeext.
2157echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2161  (eval $ac_link_default) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; then
2165  # Find the output, starting from the most likely.  This scheme is
2166# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167# resort.
2168
2169# Be careful to initialize this variable, since it used to be cached.
2170# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2171ac_cv_exeext=
2172# b.out is created by i960 compilers.
2173for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174do
2175  test -f "$ac_file" || continue
2176  case $ac_file in
2177    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2178        ;;
2179    conftest.$ac_ext )
2180        # This is the source file.
2181        ;;
2182    [ab].out )
2183        # We found the default executable, but exeext='' is most
2184        # certainly right.
2185        break;;
2186    *.* )
2187        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188        # FIXME: I believe we export ac_cv_exeext for Libtool,
2189        # but it would be cool to find out if it's true.  Does anybody
2190        # maintain Libtool? --akim.
2191        export ac_cv_exeext
2192        break;;
2193    * )
2194        break;;
2195  esac
2196done
2197else
2198  echo "$as_me: failed program was:" >&5
2199sed 's/^/| /' conftest.$ac_ext >&5
2200
2201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: C compiler cannot create executables
2204See \`config.log' for more details." >&2;}
2205   { (exit 77); exit 77; }; }
2206fi
2207
2208ac_exeext=$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_file" >&5
2210echo "${ECHO_T}$ac_file" >&6
2211
2212# Check the compiler produces executables we can run.  If not, either
2213# the compiler is broken, or we cross compile.
2214echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217# If not cross compiling, check that we can run a simple program.
2218if test "$cross_compiling" != yes; then
2219  if { ac_try='./$ac_file'
2220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221  (eval $ac_try) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }; }; then
2225    cross_compiling=no
2226  else
2227    if test "$cross_compiling" = maybe; then
2228        cross_compiling=yes
2229    else
2230        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot run C compiled programs.
2234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
2236   { (exit 1); exit 1; }; }
2237    fi
2238  fi
2239fi
2240echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6
2242
2243rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244ac_clean_files=$ac_clean_files_save
2245# Check the compiler produces executables we can run.  If not, either
2246# the compiler is broken, or we cross compile.
2247echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2249echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6
2251
2252echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2255  (eval $ac_link) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; then
2259  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
2263for ac_file in conftest.exe conftest conftest.*; do
2264  test -f "$ac_file" || continue
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2267    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268          export ac_cv_exeext
2269          break;;
2270    * ) break;;
2271  esac
2272done
2273else
2274  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2277See \`config.log' for more details." >&2;}
2278   { (exit 1); exit 1; }; }
2279fi
2280
2281rm -f conftest$ac_cv_exeext
2282echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2283echo "${ECHO_T}$ac_cv_exeext" >&6
2284
2285rm -f conftest.$ac_ext
2286EXEEXT=$ac_cv_exeext
2287ac_exeext=$EXEEXT
2288echo "$as_me:$LINENO: checking for suffix of object files" >&5
2289echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2290if test "${ac_cv_objext+set}" = set; then
2291  echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293  cat >conftest.$ac_ext <<_ACEOF
2294/* confdefs.h.  */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h.  */
2299
2300int
2301main ()
2302{
2303
2304  ;
2305  return 0;
2306}
2307_ACEOF
2308rm -f conftest.o conftest.obj
2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310  (eval $ac_compile) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; then
2314  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2315  case $ac_file in
2316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2317    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318       break;;
2319  esac
2320done
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&2;}
2329   { (exit 1); exit 1; }; }
2330fi
2331
2332rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333fi
2334echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335echo "${ECHO_T}$ac_cv_objext" >&6
2336OBJEXT=$ac_cv_objext
2337ac_objext=$OBJEXT
2338echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2340if test "${ac_cv_c_compiler_gnu+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353#ifndef __GNUC__
2354       choke me
2355#endif
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>conftest.er1
2364  ac_status=$?
2365  grep -v '^ *+' conftest.er1 >conftest.err
2366  rm -f conftest.er1
2367  cat conftest.err >&5
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); } &&
2370         { ac_try='test -z "$ac_c_werror_flag"
2371                         || test ! -s conftest.err'
2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373  (eval $ac_try) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; } &&
2377         { ac_try='test -s conftest.$ac_objext'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383  ac_compiler_gnu=yes
2384else
2385  echo "$as_me: failed program was:" >&5
2386sed 's/^/| /' conftest.$ac_ext >&5
2387
2388ac_compiler_gnu=no
2389fi
2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391ac_cv_c_compiler_gnu=$ac_compiler_gnu
2392
2393fi
2394echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2395echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2396GCC=`test $ac_compiler_gnu = yes && echo yes`
2397ac_test_CFLAGS=${CFLAGS+set}
2398ac_save_CFLAGS=$CFLAGS
2399CFLAGS="-g"
2400echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2401echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2402if test "${ac_cv_prog_cc_g+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  cat >conftest.$ac_ext <<_ACEOF
2406/* confdefs.h.  */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h.  */
2411
2412int
2413main ()
2414{
2415
2416  ;
2417  return 0;
2418}
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422  (eval $ac_compile) 2>conftest.er1
2423  ac_status=$?
2424  grep -v '^ *+' conftest.er1 >conftest.err
2425  rm -f conftest.er1
2426  cat conftest.err >&5
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); } &&
2429         { ac_try='test -z "$ac_c_werror_flag"
2430                         || test ! -s conftest.err'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; } &&
2436         { ac_try='test -s conftest.$ac_objext'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; }; then
2442  ac_cv_prog_cc_g=yes
2443else
2444  echo "$as_me: failed program was:" >&5
2445sed 's/^/| /' conftest.$ac_ext >&5
2446
2447ac_cv_prog_cc_g=no
2448fi
2449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450fi
2451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453if test "$ac_test_CFLAGS" = set; then
2454  CFLAGS=$ac_save_CFLAGS
2455elif test $ac_cv_prog_cc_g = yes; then
2456  if test "$GCC" = yes; then
2457    CFLAGS="-g -O2"
2458  else
2459    CFLAGS="-g"
2460  fi
2461else
2462  if test "$GCC" = yes; then
2463    CFLAGS="-O2"
2464  else
2465    CFLAGS=
2466  fi
2467fi
2468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2470if test "${ac_cv_prog_cc_stdc+set}" = set; then
2471  echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473  ac_cv_prog_cc_stdc=no
2474ac_save_CC=$CC
2475cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h.  */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h.  */
2481#include <stdarg.h>
2482#include <stdio.h>
2483#include <sys/types.h>
2484#include <sys/stat.h>
2485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2486struct buf { int x; };
2487FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488static char *e (p, i)
2489     char **p;
2490     int i;
2491{
2492  return p[i];
2493}
2494static char *f (char * (*g) (char **, int), char **p, ...)
2495{
2496  char *s;
2497  va_list v;
2498  va_start (v,p);
2499  s = g (p, va_arg (v,int));
2500  va_end (v);
2501  return s;
2502}
2503
2504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2505   function prototypes and stuff, but not '\xHH' hex character constants.
2506   These don't provoke an error unfortunately, instead are silently treated
2507   as 'x'.  The following induces an error, until -std1 is added to get
2508   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2509   array size at least.  It's necessary to write '\x00'==0 to get something
2510   that's true only with -std1.  */
2511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512
2513int test (int i, double x);
2514struct s1 {int (*f) (int a);};
2515struct s2 {int (*f) (double a);};
2516int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2517int argc;
2518char **argv;
2519int
2520main ()
2521{
2522return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2523  ;
2524  return 0;
2525}
2526_ACEOF
2527# Don't try gcc -ansi; that turns off useful extensions and
2528# breaks some systems' header files.
2529# AIX                   -qlanglvl=ansi
2530# Ultrix and OSF/1      -std1
2531# HP-UX 10.20 and later -Ae
2532# HP-UX older versions  -Aa -D_HPUX_SOURCE
2533# SVR4                  -Xc -D__EXTENSIONS__
2534for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535do
2536  CC="$ac_save_CC $ac_arg"
2537  rm -f conftest.$ac_objext
2538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539  (eval $ac_compile) 2>conftest.er1
2540  ac_status=$?
2541  grep -v '^ *+' conftest.er1 >conftest.err
2542  rm -f conftest.er1
2543  cat conftest.err >&5
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); } &&
2546         { ac_try='test -z "$ac_c_werror_flag"
2547                         || test ! -s conftest.err'
2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549  (eval $ac_try) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }; } &&
2553         { ac_try='test -s conftest.$ac_objext'
2554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555  (eval $ac_try) 2>&5
2556  ac_status=$?
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); }; }; then
2559  ac_cv_prog_cc_stdc=$ac_arg
2560break
2561else
2562  echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565fi
2566rm -f conftest.err conftest.$ac_objext
2567done
2568rm -f conftest.$ac_ext conftest.$ac_objext
2569CC=$ac_save_CC
2570
2571fi
2572
2573case "x$ac_cv_prog_cc_stdc" in
2574  x|xno)
2575    echo "$as_me:$LINENO: result: none needed" >&5
2576echo "${ECHO_T}none needed" >&6 ;;
2577  *)
2578    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580    CC="$CC $ac_cv_prog_cc_stdc" ;;
2581esac
2582
2583# Some people use a C++ compiler to compile C.  Since we use `exit',
2584# in C++ we need to declare it.  In case someone uses the same compiler
2585# for both compiling C and C++ we need to have the C++ compiler decide
2586# the declaration of exit, since it's the most demanding environment.
2587cat >conftest.$ac_ext <<_ACEOF
2588#ifndef __cplusplus
2589  choke me
2590#endif
2591_ACEOF
2592rm -f conftest.$ac_objext
2593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594  (eval $ac_compile) 2>conftest.er1
2595  ac_status=$?
2596  grep -v '^ *+' conftest.er1 >conftest.err
2597  rm -f conftest.er1
2598  cat conftest.err >&5
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); } &&
2601         { ac_try='test -z "$ac_c_werror_flag"
2602                         || test ! -s conftest.err'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; } &&
2608         { ac_try='test -s conftest.$ac_objext'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; }; then
2614  for ac_declaration in \
2615   '' \
2616   'extern "C" void std::exit (int) throw (); using std::exit;' \
2617   'extern "C" void std::exit (int); using std::exit;' \
2618   'extern "C" void exit (int) throw ();' \
2619   'extern "C" void exit (int);' \
2620   'void exit (int);'
2621do
2622  cat >conftest.$ac_ext <<_ACEOF
2623/* confdefs.h.  */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h.  */
2628$ac_declaration
2629#include <stdlib.h>
2630int
2631main ()
2632{
2633exit (42);
2634  ;
2635  return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640  (eval $ac_compile) 2>conftest.er1
2641  ac_status=$?
2642  grep -v '^ *+' conftest.er1 >conftest.err
2643  rm -f conftest.er1
2644  cat conftest.err >&5
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); } &&
2647         { ac_try='test -z "$ac_c_werror_flag"
2648                         || test ! -s conftest.err'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; } &&
2654         { ac_try='test -s conftest.$ac_objext'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; }; then
2660  :
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665continue
2666fi
2667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674$ac_declaration
2675int
2676main ()
2677{
2678exit (42);
2679  ;
2680  return 0;
2681}
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685  (eval $ac_compile) 2>conftest.er1
2686  ac_status=$?
2687  grep -v '^ *+' conftest.er1 >conftest.err
2688  rm -f conftest.er1
2689  cat conftest.err >&5
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); } &&
2692         { ac_try='test -z "$ac_c_werror_flag"
2693                         || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699         { ac_try='test -s conftest.$ac_objext'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; }; then
2705  break
2706else
2707  echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710fi
2711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712done
2713rm -f conftest*
2714if test -n "$ac_declaration"; then
2715  echo '#ifdef __cplusplus' >>confdefs.h
2716  echo $ac_declaration      >>confdefs.h
2717  echo '#endif'             >>confdefs.h
2718fi
2719
2720else
2721  echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724fi
2725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732if test -z "$CC" ; then
2733  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2734echo "$as_me: error: Failed to find a C compiler!" >&2;}
2735   { (exit 1); exit 1; }; }
2736fi
2737# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2738case "$CC" in
2739  cl* | */cl* | CL* | */CL* )
2740    if test "$ac_cv_prog_cc_g" = yes ; then
2741      ac_cv_prog_cc_g=no
2742      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2743echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2744    fi ;;
2745esac
2746CFLAGS="$save_cflags"
2747
2748# Check if a project specific CFLAGS variable has been set
2749if test x$COIN_PRJCT != x; then
2750  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2751  if test x$coin_tmp = xset; then
2752    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2753  fi
2754fi
2755
2756if test x"$CFLAGS" = x; then
2757
2758  coin_add_cflags=
2759  coin_opt_cflags=
2760  coin_dbg_cflags=
2761  coin_warn_cflags=
2762
2763  if test "$GCC" = "yes"; then
2764    case "$CC" in
2765      icc* | */icc*)
2766        ;;
2767      *)
2768        coin_opt_cflags="-O3 -fomit-frame-pointer"
2769        coin_add_cflags="-pipe"
2770        coin_dbg_cflags="-g"
2771        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2772        case $build in
2773          *-darwin*)
2774            ;;
2775          *)
2776            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2777            ;;
2778        esac
2779        case $enable_doscompile in
2780          mingw)
2781            CFLAGS="-mno-cygwin"
2782            cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792int i=0; i++;
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext conftest$ac_exeext
2798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799  (eval $ac_link) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806         { ac_try='test -z "$ac_c_werror_flag"
2807                         || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813         { ac_try='test -s conftest$ac_exeext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext \
2826      conftest$ac_exeext conftest.$ac_ext
2827            CFLAGS=
2828          ;;
2829        esac
2830    esac
2831  fi
2832  if test -z "$coin_opt_cflags"; then
2833    case $build in
2834      *-cygwin* | *-mingw*)
2835        case "$CC" in
2836          cl* | */cl* | CL* | */CL*)
2837            coin_opt_cflags='-MT -O2'
2838            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2839            coin_dbg_cflags='-MTd'
2840            ;;
2841          icl* | */icl* | ICL* | */ICL*)
2842            coin_opt_cflags='-MT -Ox'
2843            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2844            coin_dbg_cflags='-MTd -debug'
2845            ;;
2846        esac
2847        ;;
2848      *-linux-*)
2849        case "$CC" in
2850          icc* | */icc*)
2851            coin_opt_cflags="-O3 -ip -mp1"
2852            coin_add_cflags=""
2853            coin_dbg_cflags="-g"
2854            # Check if -i_dynamic is necessary (for new glibc library)
2855            CFLAGS=
2856            cat >conftest.$ac_ext <<_ACEOF
2857/* confdefs.h.  */
2858_ACEOF
2859cat confdefs.h >>conftest.$ac_ext
2860cat >>conftest.$ac_ext <<_ACEOF
2861/* end confdefs.h.  */
2862
2863int
2864main ()
2865{
2866int i=0; i++;
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext conftest$ac_exeext
2872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2873  (eval $ac_link) 2>conftest.er1
2874  ac_status=$?
2875  grep -v '^ *+' conftest.er1 >conftest.err
2876  rm -f conftest.er1
2877  cat conftest.err >&5
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); } &&
2880         { ac_try='test -z "$ac_c_werror_flag"
2881                         || test ! -s conftest.err'
2882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883  (eval $ac_try) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }; } &&
2887         { ac_try='test -s conftest$ac_exeext'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; }; then
2893  :
2894else
2895  echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898coin_add_cflags="-i_dynamic $coin_add_cflags"
2899fi
2900rm -f conftest.err conftest.$ac_objext \
2901      conftest$ac_exeext conftest.$ac_ext
2902            ;;
2903          pgcc* | */pgcc*)
2904            coin_opt_cflags="-fast"
2905            coin_add_cflags="-Kieee -pc 64"
2906            coin_dbg_cflags="-g"
2907            ;;
2908        esac
2909        ;;
2910      *-ibm-*)
2911        case "$CC" in
2912          xlc* | */xlc* | mpxlc* | */mpxlc*)
2913            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2914            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2915            coin_dbg_cflags="-g"
2916          ;;
2917        esac
2918        ;;
2919      *-hp-*)
2920        coin_opt_cflags="-O"
2921        coin_add_cflags="-Ae"
2922        coin_dbg_cflags="-g"
2923        ;;
2924      *-*-solaris*)
2925        coin_opt_cflags="-xO4"
2926        coin_dbg_cflags="-g"
2927        ;;
2928      *-sgi-*)
2929        coin_opt_cflags="-O -OPT:Olimit=0"
2930        coin_dbg_cflags="-g"
2931        ;;
2932    esac
2933  fi
2934
2935  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2936    coin_dbg_cflags="-g"
2937  fi
2938
2939  if test -z "$coin_opt_cflags"; then
2940    # Try if -O option works if nothing else is set
2941    CFLAGS="-O"
2942    cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952int i=0; i++;
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959  (eval $ac_link) 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } &&
2966         { ac_try='test -z "$ac_c_werror_flag"
2967                         || test ! -s conftest.err'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; } &&
2973         { ac_try='test -s conftest$ac_exeext'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  coin_opt_cflags="-O"
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984fi
2985rm -f conftest.err conftest.$ac_objext \
2986      conftest$ac_exeext conftest.$ac_ext
2987  fi
2988
2989  # if PM doesn't want the warning messages, take them out
2990  if test x"$coin_skip_warn_cflags" = xyes; then
2991    coin_warn_cflags=
2992  fi
2993
2994  if test x${DBG_CFLAGS+set} != xset; then
2995    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2996  fi
2997  if test x${OPT_CFLAGS+set} != xset; then
2998    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2999  fi
3000
3001  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3002  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3003
3004  if test "$coin_debug_compile" = "true"; then
3005    CFLAGS="$DBG_CFLAGS"
3006  else
3007    CFLAGS="$OPT_CFLAGS"
3008  fi
3009else
3010  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3011  if test x${DBG_CFLAGS+set} != xset; then
3012    DBG_CFLAGS="$CFLAGS"
3013  fi
3014  if test x${OPT_CFLAGS+set} != xset; then
3015    OPT_CFLAGS="$CFLAGS"
3016  fi
3017fi
3018
3019# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3020
3021case "$CFLAGS" in
3022  *-mno-cygwin*)
3023    if test x${CPPFLAGS+set} != xset ; then
3024      CPPFLAGS="-mno-cygwin"
3025    else
3026      case "$CPPFLAGS" in
3027        *-mno-cygwin*)
3028          ;;
3029        *)
3030          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3031          ;;
3032      esac
3033    fi ;;
3034esac
3035
3036# Try if CFLAGS works
3037save_CFLAGS="$CFLAGS"
3038cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048int i=0; i++;
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext conftest$ac_exeext
3054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055  (eval $ac_link) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062         { ac_try='test -z "$ac_c_werror_flag"
3063                         || test ! -s conftest.err'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; } &&
3069         { ac_try='test -s conftest$ac_exeext'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; }; then
3075  :
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080CFLAGS=
3081fi
3082rm -f conftest.err conftest.$ac_objext \
3083      conftest$ac_exeext conftest.$ac_ext
3084if test -z "$CFLAGS"; then
3085  { 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
3086echo "$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;}
3087  CFLAGS='-O'
3088  cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098int i=0; i++;
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext conftest$ac_exeext
3104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3105  (eval $ac_link) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112         { ac_try='test -z "$ac_c_werror_flag"
3113                         || test ! -s conftest.err'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; } &&
3119         { ac_try='test -s conftest$ac_exeext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  :
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130CFLAGS=
3131fi
3132rm -f conftest.err conftest.$ac_objext \
3133      conftest$ac_exeext conftest.$ac_ext
3134  if test -z "$CFLAGS"; then
3135    { 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
3136echo "$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;}
3137  fi
3138fi
3139
3140{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3141echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3142
3143
3144if test x"$MPICC" = x; then :; else
3145  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3146echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3147  CC="$MPICC"
3148fi
3149
3150# Correct ADDLIBS initialization if we are using the MS compiler
3151case "$CC" in
3152  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3153    ADDLIBS=
3154    case $build in
3155  *-mingw*)
3156    if test "${LD+set}" = set; then :; else
3157      LD=link
3158    fi
3159    ;;
3160 esac
3161 case $enable_doscompile in
3162   msvc)
3163     if test "x${LD+set}" = xset; then :; else
3164       LD=link
3165     fi
3166     ;;
3167 esac
3168
3169    ;;
3170esac
3171
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
3179case $build in
3180  *-cygwin* | *-mingw*)
3181     if test "$enable_doscompile" = msvc ; then
3182       coin_f77_comps="ifort fl32 compile_f2c"
3183     else
3184       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3185     fi ;;
3186  *-*-solaris*)
3187     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3188  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3189 esac
3190
3191
3192
3193
3194
3195
3196ac_ext=f
3197ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3198ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3200
3201
3202
3203
3204
3205
3206coin_has_f77=yes
3207
3208save_fflags="$FFLAGS"
3209
3210# We delete the cached value, since the test might not have been
3211# performed with our choice of compilers earlier
3212$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3213
3214# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3215# coin_f77_comps to see if there's a program that matches one of the names.
3216# If there's no such program, F77 = unavailable. If we match the name,
3217# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3218# compiler.
3219# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3220
3221
3222{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3223echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3224for ac_prog in $coin_f77_comps
3225do
3226  # Extract the first word of "$ac_prog", so it can be a program name with args.
3227set dummy $ac_prog; ac_word=$2
3228echo "$as_me:$LINENO: checking for $ac_word" >&5
3229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3230if test "${ac_cv_prog_F77+set}" = set; then
3231  echo $ECHO_N "(cached) $ECHO_C" >&6
3232else
3233  if test -n "$F77"; then
3234  ac_cv_prog_F77="$F77" # Let the user override the test.
3235else
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241  for ac_exec_ext in '' $ac_executable_extensions; do
3242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243    ac_cv_prog_F77="$ac_prog"
3244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248done
3249
3250fi
3251fi
3252F77=$ac_cv_prog_F77
3253if test -n "$F77"; then
3254  echo "$as_me:$LINENO: result: $F77" >&5
3255echo "${ECHO_T}$F77" >&6
3256else
3257  echo "$as_me:$LINENO: result: no" >&5
3258echo "${ECHO_T}no" >&6
3259fi
3260
3261  test -n "$F77" && break
3262done
3263test -n "$F77" || F77="unavailable"
3264
3265
3266if test "$F77" != "unavailable" ; then
3267  ac_ext=f
3268ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3269ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3271if test -n "$ac_tool_prefix"; then
3272  for ac_prog in $coin_f77_comps
3273  do
3274    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3275set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3276echo "$as_me:$LINENO: checking for $ac_word" >&5
3277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278if test "${ac_cv_prog_F77+set}" = set; then
3279  echo $ECHO_N "(cached) $ECHO_C" >&6
3280else
3281  if test -n "$F77"; then
3282  ac_cv_prog_F77="$F77" # Let the user override the test.
3283else
3284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285for as_dir in $PATH
3286do
3287  IFS=$as_save_IFS
3288  test -z "$as_dir" && as_dir=.
3289  for ac_exec_ext in '' $ac_executable_extensions; do
3290  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293    break 2
3294  fi
3295done
3296done
3297
3298fi
3299fi
3300F77=$ac_cv_prog_F77
3301if test -n "$F77"; then
3302  echo "$as_me:$LINENO: result: $F77" >&5
3303echo "${ECHO_T}$F77" >&6
3304else
3305  echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307fi
3308
3309    test -n "$F77" && break
3310  done
3311fi
3312if test -z "$F77"; then
3313  ac_ct_F77=$F77
3314  for ac_prog in $coin_f77_comps
3315do
3316  # Extract the first word of "$ac_prog", so it can be a program name with args.
3317set dummy $ac_prog; ac_word=$2
3318echo "$as_me:$LINENO: checking for $ac_word" >&5
3319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3321  echo $ECHO_N "(cached) $ECHO_C" >&6
3322else
3323  if test -n "$ac_ct_F77"; then
3324  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3325else
3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327for as_dir in $PATH
3328do
3329  IFS=$as_save_IFS
3330  test -z "$as_dir" && as_dir=.
3331  for ac_exec_ext in '' $ac_executable_extensions; do
3332  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333    ac_cv_prog_ac_ct_F77="$ac_prog"
3334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335    break 2
3336  fi
3337done
3338done
3339
3340fi
3341fi
3342ac_ct_F77=$ac_cv_prog_ac_ct_F77
3343if test -n "$ac_ct_F77"; then
3344  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3345echo "${ECHO_T}$ac_ct_F77" >&6
3346else
3347  echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349fi
3350
3351  test -n "$ac_ct_F77" && break
3352done
3353
3354  F77=$ac_ct_F77
3355fi
3356
3357
3358# Provide some information about the compiler.
3359echo "$as_me:3359:" \
3360     "checking for Fortran 77 compiler version" >&5
3361ac_compiler=`set X $ac_compile; echo $2`
3362{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3363  (eval $ac_compiler --version </dev/null >&5) 2>&5
3364  ac_status=$?
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); }
3367{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3368  (eval $ac_compiler -v </dev/null >&5) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }
3372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3373  (eval $ac_compiler -V </dev/null >&5) 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }
3377rm -f a.out
3378
3379# If we don't use `.F' as extension, the preprocessor is not run on the
3380# input file.  (Note that this only needs to work for GNU compilers.)
3381ac_save_ext=$ac_ext
3382ac_ext=F
3383echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3384echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3385if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3386  echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388  cat >conftest.$ac_ext <<_ACEOF
3389      program main
3390#ifndef __GNUC__
3391       choke me
3392#endif
3393
3394      end
3395_ACEOF
3396rm -f conftest.$ac_objext
3397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398  (eval $ac_compile) 2>conftest.er1
3399  ac_status=$?
3400  grep -v '^ *+' conftest.er1 >conftest.err
3401  rm -f conftest.er1
3402  cat conftest.err >&5
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); } &&
3405         { ac_try='test -z "$ac_f77_werror_flag"
3406                         || test ! -s conftest.err'
3407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408  (eval $ac_try) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; } &&
3412         { ac_try='test -s conftest.$ac_objext'
3413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414  (eval $ac_try) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); }; }; then
3418  ac_compiler_gnu=yes
3419else
3420  echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423ac_compiler_gnu=no
3424fi
3425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3426ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3427
3428fi
3429echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3430echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3431ac_ext=$ac_save_ext
3432ac_test_FFLAGS=${FFLAGS+set}
3433ac_save_FFLAGS=$FFLAGS
3434FFLAGS=
3435echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3436echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3437if test "${ac_cv_prog_f77_g+set}" = set; then
3438  echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440  FFLAGS=-g
3441cat >conftest.$ac_ext <<_ACEOF
3442      program main
3443
3444      end
3445_ACEOF
3446rm -f conftest.$ac_objext
3447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3448  (eval $ac_compile) 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } &&
3455         { ac_try='test -z "$ac_f77_werror_flag"
3456                         || test ! -s conftest.err'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; } &&
3462         { ac_try='test -s conftest.$ac_objext'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; }; then
3468  ac_cv_prog_f77_g=yes
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473ac_cv_prog_f77_g=no
3474fi
3475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3476
3477fi
3478echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3479echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3480if test "$ac_test_FFLAGS" = set; then
3481  FFLAGS=$ac_save_FFLAGS
3482elif test $ac_cv_prog_f77_g = yes; then
3483  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3484    FFLAGS="-g -O2"
3485  else
3486    FFLAGS="-g"
3487  fi
3488else
3489  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3490    FFLAGS="-O2"
3491  else
3492    FFLAGS=
3493  fi
3494fi
3495
3496G77=`test $ac_compiler_gnu = yes && echo yes`
3497ac_ext=f
3498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3501
3502else
3503  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3504echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3505fi
3506
3507FFLAGS="$save_fflags"
3508
3509# Check if a project specific FFLAGS variable has been set
3510if test x$COIN_PRJCT != x; then
3511  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3512  if test x$coin_tmp = xset; then
3513    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3514  fi
3515fi
3516
3517if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3518
3519  coin_add_fflags=
3520  coin_opt_fflags=
3521  coin_dbg_fflags=
3522  coin_warn_fflags=
3523
3524  if test "$G77" = "yes"; then
3525    coin_opt_fflags="-O3 -fomit-frame-pointer"
3526    coin_add_fflags="-pipe"
3527    coin_dbg_fflags="-g"
3528    case $enable_doscompile in
3529      mingw)
3530        FFLAGS="-mno-cygwin"
3531        cat >conftest.$ac_ext <<_ACEOF
3532      program main
3533      write(*,*) 'Hello world'
3534      end
3535_ACEOF
3536rm -f conftest.$ac_objext conftest$ac_exeext
3537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3538  (eval $ac_link) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545         { ac_try='test -z "$ac_f77_werror_flag"
3546                         || test ! -s conftest.err'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; } &&
3552         { ac_try='test -s conftest$ac_exeext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563fi
3564rm -f conftest.err conftest.$ac_objext \
3565      conftest$ac_exeext conftest.$ac_ext
3566        FFLAGS=
3567      ;;
3568    esac
3569  else
3570    case $build in
3571      *-cygwin* | *-mingw*)
3572        case $F77 in
3573          ifort* | */ifort* | IFORT* | */IFORT* )
3574            coin_opt_fflags='-MT -O3'
3575            coin_add_fflags='-fpp -nologo'
3576            coin_dbg_fflags='-MTd -debug'
3577          ;;
3578          compile_f2c*)
3579            coin_opt_fflags='-MT -O2'
3580            coin_add_fflags='-nologo -wd4996'
3581            coin_dbg_fflags='-MTd'
3582          ;;
3583        esac
3584        ;;
3585      *-linux-*)
3586        case $F77 in
3587          ifc* | */ifc* | ifort* | */ifort*)
3588            coin_opt_fflags="-O3 -ip"
3589            coin_add_fflags="-cm -w90 -w95"
3590            coin_dbg_fflags="-g -CA -CB -CS"
3591            # Check if -i_dynamic is necessary (for new glibc library)
3592            FFLAGS=
3593            cat >conftest.$ac_ext <<_ACEOF
3594      program main
3595      write(*,*) 'Hello world'
3596      end
3597_ACEOF
3598rm -f conftest.$ac_objext conftest$ac_exeext
3599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3600  (eval $ac_link) 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } &&
3607         { ac_try='test -z "$ac_f77_werror_flag"
3608                         || test ! -s conftest.err'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; } &&
3614         { ac_try='test -s conftest$ac_exeext'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; }; then
3620  :
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625coin_add_fflags="-i_dynamic $coin_add_fflags"
3626fi
3627rm -f conftest.err conftest.$ac_objext \
3628      conftest$ac_exeext conftest.$ac_ext
3629            ;;
3630          pgf77* | */pgf77* | pgf90* | */pgf90*)
3631            coin_opt_fflags="-fast"
3632            coin_add_fflags="-Kieee -pc 64"
3633            coin_dbg_fflags="-g"
3634          ;;
3635        esac
3636        ;;
3637      *-ibm-*)
3638        case "$F77" in
3639          xlf* | */xlf* | mpxlf* | */mpxlf* )
3640            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3641            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3642            coin_dbg_fflags="-g -C"
3643            ;;
3644        esac
3645        ;;
3646      *-hp-*)
3647        coin_opt_fflags="+O3"
3648        coin_add_fflags="+U77"
3649        coin_dbg_fflags="-C -g"
3650        ;;
3651      *-*-solaris*)
3652        coin_opt_fflags="-O4"
3653        coin_dbg_fflags="-g"
3654        ;;
3655      *-sgi-*)
3656        coin_opt_fflags="-O5 -OPT:Olimit=0"
3657        coin_dbg_fflags="-g"
3658        ;;
3659    esac
3660  fi
3661
3662  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3663    coin_dbg_fflags="-g"
3664  fi
3665
3666  if test -z "$coin_opt_fflags"; then
3667    # Try if -O option works if nothing else is set
3668    FFLAGS=-O
3669    cat >conftest.$ac_ext <<_ACEOF
3670      program main
3671      integer i
3672      end
3673_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext
3675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676  (eval $ac_link) 2>conftest.er1
3677  ac_status=$?
3678  grep -v '^ *+' conftest.er1 >conftest.err
3679  rm -f conftest.er1
3680  cat conftest.err >&5
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); } &&
3683         { ac_try='test -z "$ac_f77_werror_flag"
3684                         || test ! -s conftest.err'
3685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686  (eval $ac_try) 2>&5
3687  ac_status=$?
3688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689  (exit $ac_status); }; } &&
3690         { ac_try='test -s conftest$ac_exeext'
3691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692  (eval $ac_try) 2>&5
3693  ac_status=$?
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); }; }; then
3696  coin_opt_fflags="-O"
3697else
3698  echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701fi
3702rm -f conftest.err conftest.$ac_objext \
3703      conftest$ac_exeext conftest.$ac_ext
3704  fi
3705
3706  # if PM doesn't want the warning messages, take them out
3707  if test x"$coin_skip_warn_fflags" = xyes; then
3708    coin_warn_fflags=
3709  fi
3710
3711  if test x${DBG_FFLAGS+set} != xset; then
3712    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3713  fi
3714  if test x${OPT_FFLAGS+set} != xset; then
3715    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3716  fi
3717
3718  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3719  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3720
3721  if test "$coin_debug_compile" = "true"; then
3722    FFLAGS="$DBG_FFLAGS"
3723  else
3724    FFLAGS="$OPT_FFLAGS"
3725  fi
3726else
3727  FFLAGS="$FFLAGS $ADD_FFLAGS"
3728  if test x${DBG_FFLAGS+set} != xset; then
3729    DBG_FFLAGS="$FFLAGS"
3730  fi
3731  if test x${OPT_FFLAGS+set} != xset; then
3732    OPT_FFLAGS="$FFLAGS"
3733  fi
3734fi
3735
3736# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3737case "$FFLAGS" in
3738  *-mno-cygwin*)
3739    if test x${CPPFLAGS+set} != xset ; then
3740      CPPFLAGS="-mno-cygwin"
3741    else
3742      case "$CPPFLAGS" in
3743        *-mno-cygwin*)
3744          ;;
3745        *)
3746          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3747          ;;
3748      esac
3749    fi ;;
3750esac
3751
3752# Try if FFLAGS works
3753if test "$F77" != "unavailable" ; then
3754  cat >conftest.$ac_ext <<_ACEOF
3755      program main
3756      integer i
3757      end
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761  (eval $ac_link) 2>conftest.er1
3762  ac_status=$?
3763  grep -v '^ *+' conftest.er1 >conftest.err
3764  rm -f conftest.er1
3765  cat conftest.err >&5
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); } &&
3768         { ac_try='test -z "$ac_f77_werror_flag"
3769                         || test ! -s conftest.err'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; } &&
3775         { ac_try='test -s conftest$ac_exeext'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; }; then
3781  :
3782else
3783  echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786FFLAGS=
3787fi
3788rm -f conftest.err conftest.$ac_objext \
3789      conftest$ac_exeext conftest.$ac_ext
3790  if test -z "$FFLAGS"; then
3791    { 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
3792echo "$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;}
3793    FFLAGS='-O'
3794    cat >conftest.$ac_ext <<_ACEOF
3795      program main
3796      integer i
3797      end
3798_ACEOF
3799rm -f conftest.$ac_objext conftest$ac_exeext
3800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801  (eval $ac_link) 2>conftest.er1
3802  ac_status=$?
3803  grep -v '^ *+' conftest.er1 >conftest.err
3804  rm -f conftest.er1
3805  cat conftest.err >&5
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); } &&
3808         { ac_try='test -z "$ac_f77_werror_flag"
3809                         || test ! -s conftest.err'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; } &&
3815         { ac_try='test -s conftest$ac_exeext'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; }; then
3821  :
3822else
3823  echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826FFLAGS=
3827fi
3828rm -f conftest.err conftest.$ac_objext \
3829      conftest$ac_exeext conftest.$ac_ext
3830    if test -z "$FFLAGS"; then
3831      { 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
3832echo "$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;}
3833    fi
3834  fi
3835fi
3836
3837{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3838echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3839
3840
3841if test x"$MPIF77" = x; then :; else
3842  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3843echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3844  F77="$MPIF77"
3845fi
3846
3847case "$F77" in
3848  ifort* | */ifort* | IFORT* | */IFORT*)
3849    case $build in
3850  *-mingw*)
3851    if test "${LD+set}" = set; then :; else
3852      LD=link
3853    fi
3854    ;;
3855 esac
3856 case $enable_doscompile in
3857   msvc)
3858     if test "x${LD+set}" = xset; then :; else
3859       LD=link
3860     fi
3861     ;;
3862 esac
3863
3864    ;;
3865esac
3866
3867ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
3873
3874
3875# Get the linker flags (FLIBS) that are required for linking against this blas library
3876ac_ext=f
3877ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3878ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3880echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3881echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3882if test "${ac_cv_prog_f77_v+set}" = set; then
3883  echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885  cat >conftest.$ac_ext <<_ACEOF
3886      program main
3887
3888      end
3889_ACEOF
3890rm -f conftest.$ac_objext
3891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892  (eval $ac_compile) 2>conftest.er1
3893  ac_status=$?
3894  grep -v '^ *+' conftest.er1 >conftest.err
3895  rm -f conftest.er1
3896  cat conftest.err >&5
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); } &&
3899         { ac_try='test -z "$ac_f77_werror_flag"
3900                         || test ! -s conftest.err'
3901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902  (eval $ac_try) 2>&5
3903  ac_status=$?
3904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905  (exit $ac_status); }; } &&
3906         { ac_try='test -s conftest.$ac_objext'
3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908  (eval $ac_try) 2>&5
3909  ac_status=$?
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); }; }; then
3912  ac_cv_prog_f77_v=
3913# Try some options frequently used verbose output
3914for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3915  cat >conftest.$ac_ext <<_ACEOF
3916      program main
3917
3918      end
3919_ACEOF
3920
3921# Compile and link our simple test program by passing a flag (argument
3922# 1 to this macro) to the Fortran compiler in order to get
3923# "verbose" output that we can then parse for the Fortran linker
3924# flags.
3925ac_save_FFLAGS=$FFLAGS
3926FFLAGS="$FFLAGS $ac_verb"
3927(eval echo $as_me:3927: \"$ac_link\") >&5
3928ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3929echo "$ac_f77_v_output" >&5
3930FFLAGS=$ac_save_FFLAGS
3931
3932rm -f conftest*
3933
3934# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3935# /foo, /bar, and /baz are search directories for the Fortran linker.
3936# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3937ac_f77_v_output="`echo $ac_f77_v_output |
3938        grep 'LPATH is:' |
3939        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3940
3941case $ac_f77_v_output in
3942  # If we are using xlf then replace all the commas with spaces.
3943  *xlfentry*)
3944    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3945
3946  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3947  # $LIBS confuse us, and the libraries appear later in the output anyway).
3948  *mGLOB_options_string*)
3949    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3950
3951  # If we are using Cray Fortran then delete quotes.
3952  # Use "\"" instead of '"' for font-lock-mode.
3953  # FIXME: a more general fix for quoted arguments with spaces?
3954  *cft90*)
3955    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3956esac
3957
3958
3959  # look for -l* and *.a constructs in the output
3960  for ac_arg in $ac_f77_v_output; do
3961     case $ac_arg in
3962        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3963          ac_cv_prog_f77_v=$ac_verb
3964          break 2 ;;
3965     esac
3966  done
3967done
3968if test -z "$ac_cv_prog_f77_v"; then
3969   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3970echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3971fi
3972else
3973  echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3977echo "$as_me: WARNING: compilation failed" >&2;}
3978fi
3979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980
3981fi
3982echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3983echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3984echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3985echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3986if test "${ac_cv_f77_libs+set}" = set; then
3987  echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989  if test "x$FLIBS" != "x"; then
3990  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3991else
3992
3993cat >conftest.$ac_ext <<_ACEOF
3994      program main
3995
3996      end
3997_ACEOF
3998
3999# Compile and link our simple test program by passing a flag (argument
4000# 1 to this macro) to the Fortran compiler in order to get
4001# "verbose" output that we can then parse for the Fortran linker
4002# flags.
4003ac_save_FFLAGS=$FFLAGS
4004FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4005(eval echo $as_me:4005: \"$ac_link\") >&5
4006ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4007echo "$ac_f77_v_output" >&5
4008FFLAGS=$ac_save_FFLAGS
4009
4010rm -f conftest*
4011
4012# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4013# /foo, /bar, and /baz are search directories for the Fortran linker.
4014# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4015ac_f77_v_output="`echo $ac_f77_v_output |
4016        grep 'LPATH is:' |
4017        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4018
4019case $ac_f77_v_output in
4020  # If we are using xlf then replace all the commas with spaces.
4021  *xlfentry*)
4022    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4023
4024  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4025  # $LIBS confuse us, and the libraries appear later in the output anyway).
4026  *mGLOB_options_string*)
4027    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4028
4029  # If we are using Cray Fortran then delete quotes.
4030  # Use "\"" instead of '"' for font-lock-mode.
4031  # FIXME: a more general fix for quoted arguments with spaces?
4032  *cft90*)
4033    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4034esac
4035
4036
4037
4038ac_cv_f77_libs=
4039
4040# Save positional arguments (if any)
4041ac_save_positional="$@"
4042
4043set X $ac_f77_v_output
4044while test $# != 1; do
4045  shift
4046  ac_arg=$1
4047  case $ac_arg in
4048        [\\/]*.a | ?:[\\/]*.a)
4049            ac_exists=false
4050  for ac_i in $ac_cv_f77_libs; do
4051    if test x"$ac_arg" = x"$ac_i"; then
4052      ac_exists=true
4053      break
4054    fi
4055  done
4056
4057  if test x"$ac_exists" = xtrue; then
4058  :
4059else
4060  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4061fi
4062
4063          ;;
4064        -bI:*)
4065            ac_exists=false
4066  for ac_i in $ac_cv_f77_libs; do
4067    if test x"$ac_arg" = x"$ac_i"; then
4068      ac_exists=true
4069      break
4070    fi
4071  done
4072
4073  if test x"$ac_exists" = xtrue; then
4074  :
4075else
4076  if test "$ac_compiler_gnu" = yes; then
4077  for ac_link_opt in $ac_arg; do
4078    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4079  done
4080else
4081  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4082fi
4083fi
4084
4085          ;;
4086          # Ignore these flags.
4087        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4088          ;;
4089        -lkernel32)
4090          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4091          ;;
4092        -[LRuY])
4093          # These flags, when seen by themselves, take an argument.
4094          # We remove the space between option and argument and re-iterate
4095          # unless we find an empty arg or a new option (starting with -)
4096          case $2 in
4097             "" | -*);;
4098             *)
4099                ac_arg="$ac_arg$2"
4100                shift; shift
4101                set X $ac_arg "$@"
4102                ;;
4103          esac
4104          ;;
4105        -YP,*)
4106          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4107              ac_exists=false
4108  for ac_i in $ac_cv_f77_libs; do
4109    if test x"$ac_j" = x"$ac_i"; then
4110      ac_exists=true
4111      break
4112    fi
4113  done
4114
4115  if test x"$ac_exists" = xtrue; then
4116  :
4117else
4118  ac_arg="$ac_arg $ac_j"
4119                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4120fi
4121
4122          done
4123          ;;
4124        -[lLR]*)
4125            ac_exists=false
4126  for ac_i in $ac_cv_f77_libs; do
4127    if test x"$ac_arg" = x"$ac_i"; then
4128      ac_exists=true
4129      break
4130    fi
4131  done
4132
4133  if test x"$ac_exists" = xtrue; then
4134  :
4135else
4136  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4137fi
4138
4139          ;;
4140          # Ignore everything else.
4141  esac
4142done
4143# restore positional arguments
4144set X $ac_save_positional; shift
4145
4146# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4147# then we insist that the "run path" must be an absolute path (i.e. it
4148# must begin with a "/").
4149case `(uname -sr) 2>/dev/null` in
4150   "SunOS 5"*)
4151      ac_ld_run_path=`echo $ac_f77_v_output |
4152                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4153      test "x$ac_ld_run_path" != x &&
4154        if test "$ac_compiler_gnu" = yes; then
4155  for ac_link_opt in $ac_ld_run_path; do
4156    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4157  done
4158else
4159  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4160fi
4161      ;;
4162esac
4163fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4164
4165fi
4166echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4167echo "${ECHO_T}$ac_cv_f77_libs" >&6
4168FLIBS="$ac_cv_f77_libs"
4169
4170
4171ac_ext=f
4172ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4173ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4175
4176ac_ext=f
4177ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4178ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4180
4181echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4182echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4183if test "${ac_cv_f77_dummy_main+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  ac_f77_dm_save_LIBS=$LIBS
4187 LIBS="$LIBS $FLIBS"
4188 ac_fortran_dm_var=F77_DUMMY_MAIN
4189 ac_ext=c
4190ac_cpp='$CPP $CPPFLAGS'
4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195 # First, try linking without a dummy main:
4196 cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h.  */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h.  */
4202
4203#ifdef F77_DUMMY_MAIN
4204
4205#  ifdef __cplusplus
4206     extern "C"
4207#  endif
4208   int F77_DUMMY_MAIN() { return 1; }
4209
4210#endif
4211int
4212main ()
4213{
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219rm -f conftest.$ac_objext conftest$ac_exeext
4220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221  (eval $ac_link) 2>conftest.er1
4222  ac_status=$?
4223  grep -v '^ *+' conftest.er1 >conftest.err
4224  rm -f conftest.er1
4225  cat conftest.err >&5
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } &&
4228         { ac_try='test -z "$ac_c_werror_flag"
4229                         || test ! -s conftest.err'
4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231  (eval $ac_try) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; } &&
4235         { ac_try='test -s conftest$ac_exeext'
4236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237  (eval $ac_try) 2>&5
4238  ac_status=$?
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); }; }; then
4241  ac_cv_fortran_dummy_main=none
4242else
4243  echo "$as_me: failed program was:" >&5
4244sed 's/^/| /' conftest.$ac_ext >&5
4245
4246ac_cv_fortran_dummy_main=unknown
4247fi
4248rm -f conftest.err conftest.$ac_objext \
4249      conftest$ac_exeext conftest.$ac_ext
4250
4251 if test $ac_cv_fortran_dummy_main = unknown; then
4252   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4253     cat >conftest.$ac_ext <<_ACEOF
4254/* confdefs.h.  */
4255_ACEOF
4256cat confdefs.h >>conftest.$ac_ext
4257cat >>conftest.$ac_ext <<_ACEOF
4258/* end confdefs.h.  */
4259#define $ac_fortran_dm_var $ac_func
4260#ifdef F77_DUMMY_MAIN
4261
4262#  ifdef __cplusplus
4263     extern "C"
4264#  endif
4265   int F77_DUMMY_MAIN() { return 1; }
4266
4267#endif
4268int
4269main ()
4270{
4271
4272  ;
4273  return 0;
4274}
4275_ACEOF
4276rm -f conftest.$ac_objext conftest$ac_exeext
4277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4278  (eval $ac_link) 2>conftest.er1
4279  ac_status=$?
4280  grep -v '^ *+' conftest.er1 >conftest.err
4281  rm -f conftest.er1
4282  cat conftest.err >&5
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); } &&
4285         { ac_try='test -z "$ac_c_werror_flag"
4286                         || test ! -s conftest.err'
4287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288  (eval $ac_try) 2>&5
4289  ac_status=$?
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); }; } &&
4292         { ac_try='test -s conftest$ac_exeext'
4293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294  (eval $ac_try) 2>&5
4295  ac_status=$?
4296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297  (exit $ac_status); }; }; then
4298  ac_cv_fortran_dummy_main=$ac_func; break
4299else
4300  echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303fi
4304rm -f conftest.err conftest.$ac_objext \
4305      conftest$ac_exeext conftest.$ac_ext
4306   done
4307 fi
4308 ac_ext=f
4309ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4310ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4312 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4313 rm -f conftest*
4314 LIBS=$ac_f77_dm_save_LIBS
4315
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4318echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4319F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4320if test "$F77_DUMMY_MAIN" != unknown; then
4321  if test $F77_DUMMY_MAIN != none; then
4322
4323cat >>confdefs.h <<_ACEOF
4324#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4325_ACEOF
4326
4327  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4328
4329cat >>confdefs.h <<\_ACEOF
4330#define FC_DUMMY_MAIN_EQ_F77 1
4331_ACEOF
4332
4333  fi
4334fi
4335else
4336  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4337See \`config.log' for more details." >&5
4338echo "$as_me: error: linking to Fortran libraries from C fails
4339See \`config.log' for more details." >&2;}
4340   { (exit 1); exit 1; }; }
4341fi
4342
4343
4344ac_ext=f
4345ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4346ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4348
4349ac_ext=f
4350ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4351ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4353echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4354echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4355if test "${ac_cv_f77_mangling+set}" = set; then
4356  echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358  cat >conftest.$ac_ext <<_ACEOF
4359      subroutine foobar()
4360      return
4361      end
4362      subroutine foo_bar()
4363      return
4364      end
4365_ACEOF
4366rm -f conftest.$ac_objext
4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368  (eval $ac_compile) 2>conftest.er1
4369  ac_status=$?
4370  grep -v '^ *+' conftest.er1 >conftest.err
4371  rm -f conftest.er1
4372  cat conftest.err >&5
4373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374  (exit $ac_status); } &&
4375         { ac_try='test -z "$ac_f77_werror_flag"
4376                         || test ! -s conftest.err'
4377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378  (eval $ac_try) 2>&5
4379  ac_status=$?
4380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381  (exit $ac_status); }; } &&
4382         { ac_try='test -s conftest.$ac_objext'
4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384  (eval $ac_try) 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; }; then
4388  mv conftest.$ac_objext cfortran_test.$ac_objext
4389
4390  ac_save_LIBS=$LIBS
4391  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4392
4393  ac_ext=c
4394ac_cpp='$CPP $CPPFLAGS'
4395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398  ac_success=no
4399  for ac_foobar in foobar FOOBAR; do
4400    for ac_underscore in "" "_"; do
4401      ac_func="$ac_foobar$ac_underscore"
4402      cat >conftest.$ac_ext <<_ACEOF
4403/* confdefs.h.  */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h.  */
4408
4409/* Override any gcc2 internal prototype to avoid an error.  */
4410#ifdef __cplusplus
4411extern "C"
4412#endif
4413/* We use char because int might match the return type of a gcc2
4414   builtin and then its argument prototype would still apply.  */
4415char $ac_func ();
4416#ifdef F77_DUMMY_MAIN
4417
4418#  ifdef __cplusplus
4419     extern "C"
4420#  endif
4421   int F77_DUMMY_MAIN() { return 1; }
4422
4423#endif
4424int
4425main ()
4426{
4427$ac_func ();
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432rm -f conftest.$ac_objext conftest$ac_exeext
4433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434  (eval $ac_link) 2>conftest.er1
4435  ac_status=$?
4436  grep -v '^ *+' conftest.er1 >conftest.err
4437  rm -f conftest.er1
4438  cat conftest.err >&5
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); } &&
4441         { ac_try='test -z "$ac_c_werror_flag"
4442                         || test ! -s conftest.err'
4443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444  (eval $ac_try) 2>&5
4445  ac_status=$?
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); }; } &&
4448         { ac_try='test -s conftest$ac_exeext'
4449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450  (eval $ac_try) 2>&5
4451  ac_status=$?
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); }; }; then
4454  ac_success=yes; break 2
4455else
4456  echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
4459fi
4460rm -f conftest.err conftest.$ac_objext \
4461      conftest$ac_exeext conftest.$ac_ext
4462    done
4463  done
4464  ac_ext=f
4465ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4466ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4468
4469  if test "$ac_success" = "yes"; then
4470     case $ac_foobar in
4471        foobar)
4472           ac_case=lower
4473           ac_foo_bar=foo_bar
4474           ;;
4475        FOOBAR)
4476           ac_case=upper
4477           ac_foo_bar=FOO_BAR
4478           ;;
4479     esac
4480
4481     ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486     ac_success_extra=no
4487     for ac_extra in "" "_"; do
4488        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4489        cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495
4496/* Override any gcc2 internal prototype to avoid an error.  */
4497#ifdef __cplusplus
4498extern "C"
4499#endif
4500/* We use char because int might match the return type of a gcc2
4501   builtin and then its argument prototype would still apply.  */
4502char $ac_func ();
4503#ifdef F77_DUMMY_MAIN
4504
4505#  ifdef __cplusplus
4506     extern "C"
4507#  endif
4508   int F77_DUMMY_MAIN() { return 1; }
4509
4510#endif
4511int
4512main ()
4513{
4514$ac_func ();
4515  ;
4516  return 0;
4517}
4518_ACEOF
4519rm -f conftest.$ac_objext conftest$ac_exeext
4520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4521  (eval $ac_link) 2>conftest.er1
4522  ac_status=$?
4523  grep -v '^ *+' conftest.er1 >conftest.err
4524  rm -f conftest.er1
4525  cat conftest.err >&5
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); } &&
4528         { ac_try='test -z "$ac_c_werror_flag"
4529                         || test ! -s conftest.err'
4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531  (eval $ac_try) 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); }; } &&
4535         { ac_try='test -s conftest$ac_exeext'
4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537  (eval $ac_try) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; }; then
4541  ac_success_extra=yes; break
4542else
4543  echo "$as_me: failed program was:" >&5
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
4546fi
4547rm -f conftest.err conftest.$ac_objext \
4548      conftest$ac_exeext conftest.$ac_ext
4549     done
4550     ac_ext=f
4551ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4552ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4554
4555     if test "$ac_success_extra" = "yes"; then
4556        ac_cv_f77_mangling="$ac_case case"
4557        if test -z "$ac_underscore"; then
4558           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4559        else
4560           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4561        fi
4562        if test -z "$ac_extra"; then
4563           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4564        else
4565           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4566        fi
4567      else
4568        ac_cv_f77_mangling="unknown"
4569      fi
4570  else
4571     ac_cv_f77_mangling="unknown"
4572  fi
4573
4574  LIBS=$ac_save_LIBS
4575  rm -f cfortran_test* conftest*
4576else
4577  echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4581See \`config.log' for more details." >&5
4582echo "$as_me: error: cannot compile a simple Fortran program
4583See \`config.log' for more details." >&2;}
4584   { (exit 1); exit 1; }; }
4585fi
4586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4587
4588fi
4589echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4590echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4591
4592ac_ext=f
4593ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4594ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4596
4597
4598ac_ext=f
4599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4602
4603
4604ac_ext=f
4605ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4606ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4608
4609
4610case $ac_cv_f77_mangling in
4611  "lower case, no underscore, no extra underscore")
4612          cat >>confdefs.h <<\_ACEOF
4613#define F77_FUNC(name,NAME) name
4614_ACEOF
4615
4616          cat >>confdefs.h <<\_ACEOF
4617#define F77_FUNC_(name,NAME) name
4618_ACEOF
4619 ;;
4620  "lower case, no underscore, extra underscore")
4621          cat >>confdefs.h <<\_ACEOF
4622#define F77_FUNC(name,NAME) name
4623_ACEOF
4624
4625          cat >>confdefs.h <<\_ACEOF
4626#define F77_FUNC_(name,NAME) name ## _
4627_ACEOF
4628 ;;
4629  "lower case, underscore, no extra underscore")
4630          cat >>confdefs.h <<\_ACEOF
4631#define F77_FUNC(name,NAME) name ## _
4632_ACEOF
4633
4634          cat >>confdefs.h <<\_ACEOF
4635#define F77_FUNC_(name,NAME) name ## _
4636_ACEOF
4637 ;;
4638  "lower case, underscore, extra underscore")
4639          cat >>confdefs.h <<\_ACEOF
4640#define F77_FUNC(name,NAME) name ## _
4641_ACEOF
4642
4643          cat >>confdefs.h <<\_ACEOF
4644#define F77_FUNC_(name,NAME) name ## __
4645_ACEOF
4646 ;;
4647  "upper case, no underscore, no extra underscore")
4648          cat >>confdefs.h <<\_ACEOF
4649#define F77_FUNC(name,NAME) NAME
4650_ACEOF
4651
4652          cat >>confdefs.h <<\_ACEOF
4653#define F77_FUNC_(name,NAME) NAME
4654_ACEOF
4655 ;;
4656  "upper case, no underscore, extra underscore")
4657          cat >>confdefs.h <<\_ACEOF
4658#define F77_FUNC(name,NAME) NAME
4659_ACEOF
4660
4661          cat >>confdefs.h <<\_ACEOF
4662#define F77_FUNC_(name,NAME) NAME ## _
4663_ACEOF
4664 ;;
4665  "upper case, underscore, no extra underscore")
4666          cat >>confdefs.h <<\_ACEOF
4667#define F77_FUNC(name,NAME) NAME ## _
4668_ACEOF
4669
4670          cat >>confdefs.h <<\_ACEOF
4671#define F77_FUNC_(name,NAME) NAME ## _
4672_ACEOF
4673 ;;
4674  "upper case, underscore, extra underscore")
4675          cat >>confdefs.h <<\_ACEOF
4676#define F77_FUNC(name,NAME) NAME ## _
4677_ACEOF
4678
4679          cat >>confdefs.h <<\_ACEOF
4680#define F77_FUNC_(name,NAME) NAME ## __
4681_ACEOF
4682 ;;
4683  *)
4684          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4685echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4686          ;;
4687esac
4688
4689ac_ext=f
4690ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4691ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4693
4694
4695# If FLIBS has been set by the user, we just restore its value here
4696if test x"$save_FLIBS" != x; then
4697  FLIBS="$save_FLIBS"
4698else
4699  # This is to correct a missing exclusion in autoconf 2.59
4700  if test x"$FLIBS" != x; then
4701    my_flibs=
4702    for flag in $FLIBS; do
4703      case $flag in
4704        -lcrt*.o) ;;
4705        -lcygwin) ;;
4706               *) my_flibs="$my_flibs $flag" ;;
4707      esac
4708    done
4709    FLIBS="$my_flibs"
4710  fi
4711
4712  case $build in
4713  # The following is a fix to define FLIBS for ifort on Windows
4714  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4715  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4716  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4717  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4718  # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
4719     *-cygwin* | *-mingw*)
4720       case "$F77" in
4721#         ifort* | */ifort* | IFORT* | */IFORT*)
4722#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4723#           if "$coin_debug_compile" = true ; then
4724#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4725#           else
4726#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4727#           fi
4728#           ;;
4729         compile_f2c*)
4730           FLIBS=`$F77 -FLIBS` ;;
4731       esac;;
4732     *-hp-*)
4733         FLIBS="$FLIBS -lm";;
4734     *-ibm-*)
4735         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4736     *-linux-*)
4737       case "$F77" in
4738         pgf77* | */pgf77* | pgf90* | */pgf90*)
4739# ask linker to go through the archives multiple times
4740# (the Fortran compiler seems to do that automatically...)
4741           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4742       esac
4743  esac
4744  ac_cv_f77_libs="$FLIBS"
4745fi
4746
4747ac_ext=c
4748ac_cpp='$CPP $CPPFLAGS'
4749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752
4753
4754
4755
4756# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
4757coin_need_flibs=yes
4758
4759# Check if pkg-config is available (to setup addlibs file)
4760
4761
4762# Check whether --enable-pkg-config or --disable-pkg-config was given.
4763if test "${enable_pkg_config+set}" = set; then
4764  enableval="$enable_pkg_config"
4765  use_pkgconfig="$enableval"
4766else
4767  use_pkgconfig=yes
4768fi;
4769
4770if test $use_pkgconfig = yes ; then
4771  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4772    if test -n "$ac_tool_prefix"; then
4773  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4774set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4775echo "$as_me:$LINENO: checking for $ac_word" >&5
4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4777if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4778  echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780  case $PKG_CONFIG in
4781  [\\/]* | ?:[\\/]*)
4782  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4783  ;;
4784  *)
4785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786for as_dir in $PATH
4787do
4788  IFS=$as_save_IFS
4789  test -z "$as_dir" && as_dir=.
4790  for ac_exec_ext in '' $ac_executable_extensions; do
4791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794    break 2
4795  fi
4796done
4797done
4798
4799  ;;
4800esac
4801fi
4802PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4803
4804if test -n "$PKG_CONFIG"; then
4805  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4806echo "${ECHO_T}$PKG_CONFIG" >&6
4807else
4808  echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
4810fi
4811
4812fi
4813if test -z "$ac_cv_path_PKG_CONFIG"; then
4814  ac_pt_PKG_CONFIG=$PKG_CONFIG
4815  # Extract the first word of "pkg-config", so it can be a program name with args.
4816set dummy pkg-config; ac_word=$2
4817echo "$as_me:$LINENO: checking for $ac_word" >&5
4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4820  echo $ECHO_N "(cached) $ECHO_C" >&6
4821else
4822  case $ac_pt_PKG_CONFIG in
4823  [\\/]* | ?:[\\/]*)
4824  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4825  ;;
4826  *)
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832  for ac_exec_ext in '' $ac_executable_extensions; do
4833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4834    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836    break 2
4837  fi
4838done
4839done
4840
4841  ;;
4842esac
4843fi
4844ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4845
4846if test -n "$ac_pt_PKG_CONFIG"; then
4847  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4848echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4849else
4850  echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852fi
4853
4854  PKG_CONFIG=$ac_pt_PKG_CONFIG
4855else
4856  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4857fi
4858
4859  fi
4860  if test -n "$PKG_CONFIG"; then
4861    _pkg_min_version=0.9.0
4862    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4863echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4864    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4865      echo "$as_me:$LINENO: result: yes" >&5
4866echo "${ECHO_T}yes" >&6
4867    else
4868      echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
4870      PKG_CONFIG=""
4871    fi
4872  fi
4873
4874  # check if pkg-config supports the short-errors flag
4875  if test -n "$PKG_CONFIG" && \
4876    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4877    pkg_short_errors=" --short-errors "
4878  else
4879    pkg_short_errors=""
4880  fi
4881fi
4882
4883
4884
4885if test -n "$PKG_CONFIG"; then
4886  COIN_HAS_PKGCONFIG_TRUE=
4887  COIN_HAS_PKGCONFIG_FALSE='#'
4888else
4889  COIN_HAS_PKGCONFIG_TRUE='#'
4890  COIN_HAS_PKGCONFIG_FALSE=
4891fi
4892
4893
4894
4895# assemble search path for pkg-config, if we are in a project setup
4896if test x$coin_projectdir = xyes ; then
4897  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4898
4899  # 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
4900  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4901  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4902  if test -d "${prefix}"; then
4903    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4904  fi
4905
4906
4907# Check whether --with-coin-instdir or --without-coin-instdir was given.
4908if test "${with_coin_instdir+set}" = set; then
4909  withval="$with_coin_instdir"
4910  if test -d "$withval"; then : ; else
4911       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4912echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4913   { (exit 1); exit 1; }; }
4914     fi
4915     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4916
4917fi;
4918
4919  # in a classic setup, we want to find uninstalled projects
4920  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4921  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4922  # 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)
4923  if test -e ../coin_subdirs.txt ; then
4924    for i in `cat ../coin_subdirs.txt` ; do
4925      if test -d ../$i ; then
4926        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4927      fi
4928    done
4929  fi
4930
4931  if test -e ../../coin_subdirs.txt ; then
4932    for i in `cat ../../coin_subdirs.txt` ; do
4933      if test -d ../../$i ; then
4934        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4935      fi
4936    done
4937  fi
4938
4939
4940fi
4941
4942
4943
4944# Initialize automake
4945echo "$as_me:$LINENO: checking for egrep" >&5
4946echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4947if test "${ac_cv_prog_egrep+set}" = set; then
4948  echo $ECHO_N "(cached) $ECHO_C" >&6
4949else
4950  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4951    then ac_cv_prog_egrep='grep -E'
4952    else ac_cv_prog_egrep='egrep'
4953    fi
4954fi
4955echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4956echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4957 EGREP=$ac_cv_prog_egrep
4958
4959
4960am__api_version="1.9"
4961# Find a good install program.  We prefer a C program (faster),
4962# so one script is as good as another.  But avoid the broken or
4963# incompatible versions:
4964# SysV /etc/install, /usr/sbin/install
4965# SunOS /usr/etc/install
4966# IRIX /sbin/install
4967# AIX /bin/install
4968# AmigaOS /C/install, which installs bootblocks on floppy discs
4969# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4970# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4971# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4972# OS/2's system install, which has a completely different semantic
4973# ./install, which can be erroneously created by make from ./install.sh.
4974echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4975echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4976if test -z "$INSTALL"; then
4977if test "${ac_cv_path_install+set}" = set; then
4978  echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983  IFS=$as_save_IFS
4984  test -z "$as_dir" && as_dir=.
4985  # Account for people who put trailing slashes in PATH elements.
4986case $as_dir/ in
4987  ./ | .// | /cC/* | \
4988  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4989  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4990  /usr/ucb/* ) ;;
4991  *)
4992    # OSF1 and SCO ODT 3.0 have their own names for install.
4993    # Don't use installbsd from OSF since it installs stuff as root
4994    # by default.
4995    for ac_prog in ginstall scoinst install; do
4996      for ac_exec_ext in '' $ac_executable_extensions; do
4997        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4998          if test $ac_prog = install &&
4999            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5000            # AIX install.  It has an incompatible calling convention.
5001            :
5002          elif test $ac_prog = install &&
5003            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5004            # program-specific install script used by HP pwplus--don't use.
5005            :
5006          else
5007            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5008            break 3
5009          fi
5010        fi
5011      done
5012    done
5013    ;;
5014esac
5015done
5016
5017
5018fi
5019  if test "${ac_cv_path_install+set}" = set; then
5020    INSTALL=$ac_cv_path_install
5021  else
5022    # As a last resort, use the slow shell script.  We don't cache a
5023    # path for INSTALL within a source directory, because that will
5024    # break other packages using the cache if that directory is
5025    # removed, or if the path is relative.
5026    INSTALL=$ac_install_sh
5027  fi
5028fi
5029echo "$as_me:$LINENO: result: $INSTALL" >&5
5030echo "${ECHO_T}$INSTALL" >&6
5031
5032# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5033# It thinks the first close brace ends the variable substitution.
5034test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5035
5036test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5037
5038test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5039
5040echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5041echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5042# Just in case
5043sleep 1
5044echo timestamp > conftest.file
5045# Do `set' in a subshell so we don't clobber the current shell's
5046# arguments.  Must try -L first in case configure is actually a
5047# symlink; some systems play weird games with the mod time of symlinks
5048# (eg FreeBSD returns the mod time of the symlink's containing
5049# directory).
5050if (
5051   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5052   if test "$*" = "X"; then
5053      # -L didn't work.
5054      set X `ls -t $srcdir/configure conftest.file`
5055   fi
5056   rm -f conftest.file
5057   if test "$*" != "X $srcdir/configure conftest.file" \
5058      && test "$*" != "X conftest.file $srcdir/configure"; then
5059
5060      # If neither matched, then we have a broken ls.  This can happen
5061      # if, for instance, CONFIG_SHELL is bash and it inherits a
5062      # broken ls alias from the environment.  This has actually
5063      # happened.  Such a system could not be considered "sane".
5064      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5065alias in your environment" >&5
5066echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5067alias in your environment" >&2;}
5068   { (exit 1); exit 1; }; }
5069   fi
5070
5071   test "$2" = conftest.file
5072   )
5073then
5074   # Ok.
5075   :
5076else
5077   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5078Check your system clock" >&5
5079echo "$as_me: error: newly created file is older than distributed files!
5080Check your system clock" >&2;}
5081   { (exit 1); exit 1; }; }
5082fi
5083echo "$as_me:$LINENO: result: yes" >&5
5084echo "${ECHO_T}yes" >&6
5085test "$program_prefix" != NONE &&
5086  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5087# Use a double $ so make ignores it.
5088test "$program_suffix" != NONE &&
5089  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5090# Double any \ or $.  echo might interpret backslashes.
5091# By default was `s,x,x', remove it if useless.
5092cat <<\_ACEOF >conftest.sed
5093s/[\\$]/&&/g;s/;s,x,x,$//
5094_ACEOF
5095program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5096rm conftest.sed
5097
5098# expand $ac_aux_dir to an absolute path
5099am_aux_dir=`cd $ac_aux_dir && pwd`
5100
5101test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5102# Use eval to expand $SHELL
5103if eval "$MISSING --run true"; then
5104  am_missing_run="$MISSING --run "
5105else
5106  am_missing_run=
5107  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5108echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5109fi
5110
5111if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5112  # We used to keeping the `.' as first argument, in order to
5113  # allow $(mkdir_p) to be used without argument.  As in
5114  #   $(mkdir_p) $(somedir)
5115  # where $(somedir) is conditionally defined.  However this is wrong
5116  # for two reasons:
5117  #  1. if the package is installed by a user who cannot write `.'
5118  #     make install will fail,
5119  #  2. the above comment should most certainly read
5120  #     $(mkdir_p) $(DESTDIR)$(somedir)
5121  #     so it does not work when $(somedir) is undefined and
5122  #     $(DESTDIR) is not.
5123  #  To support the latter case, we have to write
5124  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5125  #  so the `.' trick is pointless.
5126  mkdir_p='mkdir -p --'
5127else
5128  # On NextStep and OpenStep, the `mkdir' command does not
5129  # recognize any option.  It will interpret all options as
5130  # directories to create, and then abort because `.' already
5131  # exists.
5132  for d in ./-p ./--version;
5133  do
5134    test -d $d && rmdir $d
5135  done
5136  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5137  if test -f "$ac_aux_dir/mkinstalldirs"; then
5138    mkdir_p='$(mkinstalldirs)'
5139  else
5140    mkdir_p='$(install_sh) -d'
5141  fi
5142fi
5143
5144for ac_prog in gawk mawk nawk awk
5145do
5146  # Extract the first word of "$ac_prog", so it can be a program name with args.
5147set dummy $ac_prog; ac_word=$2
5148echo "$as_me:$LINENO: checking for $ac_word" >&5
5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150if test "${ac_cv_prog_AWK+set}" = set; then
5151  echo $ECHO_N "(cached) $ECHO_C" >&6
5152else
5153  if test -n "$AWK"; then
5154  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159  IFS=$as_save_IFS
5160  test -z "$as_dir" && as_dir=.
5161  for ac_exec_ext in '' $ac_executable_extensions; do
5162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163    ac_cv_prog_AWK="$ac_prog"
5164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165    break 2
5166  fi
5167done
5168done
5169
5170fi
5171fi
5172AWK=$ac_cv_prog_AWK
5173if test -n "$AWK"; then
5174  echo "$as_me:$LINENO: result: $AWK" >&5
5175echo "${ECHO_T}$AWK" >&6
5176else
5177  echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
5179fi
5180
5181  test -n "$AWK" && break
5182done
5183
5184echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5185echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5186set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5187if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5188  echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190  cat >conftest.make <<\_ACEOF
5191all:
5192        @echo 'ac_maketemp="$(MAKE)"'
5193_ACEOF
5194# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5195eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5196if test -n "$ac_maketemp"; then
5197  eval ac_cv_prog_make_${ac_make}_set=yes
5198else
5199  eval ac_cv_prog_make_${ac_make}_set=no
5200fi
5201rm -f conftest.make
5202fi
5203if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5204  echo "$as_me:$LINENO: result: yes" >&5
5205echo "${ECHO_T}yes" >&6
5206  SET_MAKE=
5207else
5208  echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210  SET_MAKE="MAKE=${MAKE-make}"
5211fi
5212
5213rm -rf .tst 2>/dev/null
5214mkdir .tst 2>/dev/null
5215if test -d .tst; then
5216  am__leading_dot=.
5217else
5218  am__leading_dot=_
5219fi
5220rmdir .tst 2>/dev/null
5221
5222DEPDIR="${am__leading_dot}deps"
5223
5224          ac_config_commands="$ac_config_commands depfiles"
5225
5226
5227am_make=${MAKE-make}
5228cat > confinc << 'END'
5229am__doit:
5230        @echo done
5231.PHONY: am__doit
5232END
5233# If we don't find an include directive, just comment out the code.
5234echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5235echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5236am__include="#"
5237am__quote=
5238_am_result=none
5239# First try GNU make style include.
5240echo "include confinc" > confmf
5241# We grep out `Entering directory' and `Leaving directory'
5242# messages which can occur if `w' ends up in MAKEFLAGS.
5243# In particular we don't look at `^make:' because GNU make might
5244# be invoked under some other name (usually "gmake"), in which
5245# case it prints its new name instead of `make'.
5246if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5247   am__include=include
5248   am__quote=
5249   _am_result=GNU
5250fi
5251# Now try BSD make style include.
5252if test "$am__include" = "#"; then
5253   echo '.include "confinc"' > confmf
5254   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5255      am__include=.include
5256      am__quote="\""
5257      _am_result=BSD
5258   fi
5259fi
5260
5261
5262echo "$as_me:$LINENO: result: $_am_result" >&5
5263echo "${ECHO_T}$_am_result" >&6
5264rm -f confinc confmf
5265
5266# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5267if test "${enable_dependency_tracking+set}" = set; then
5268  enableval="$enable_dependency_tracking"
5269
5270fi;
5271if test "x$enable_dependency_tracking" != xno; then
5272  am_depcomp="$ac_aux_dir/depcomp"
5273  AMDEPBACKSLASH='\'
5274fi
5275
5276
5277if test "x$enable_dependency_tracking" != xno; then
5278  AMDEP_TRUE=
5279  AMDEP_FALSE='#'
5280else
5281  AMDEP_TRUE='#'
5282  AMDEP_FALSE=
5283fi
5284
5285
5286
5287
5288
5289# AC_MSG_NOTICE([Beginning automake initialisation.])
5290# Stuff for automake
5291# test to see if srcdir already configured
5292if test "`cd $srcdir && pwd`" != "`pwd`" &&
5293   test -f $srcdir/config.status; then
5294  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5295echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5296   { (exit 1); exit 1; }; }
5297fi
5298
5299# test whether we have cygpath
5300if test -z "$CYGPATH_W"; then
5301  if (cygpath --version) >/dev/null 2>/dev/null; then
5302    CYGPATH_W='cygpath -w'
5303  else
5304    CYGPATH_W=echo
5305  fi
5306fi
5307
5308
5309# Define the identity of the package.
5310 PACKAGE='thirdpartyfiltersqp'
5311 VERSION='0.0'
5312
5313
5314cat >>confdefs.h <<_ACEOF
5315#define PACKAGE "$PACKAGE"
5316_ACEOF
5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define VERSION "$VERSION"
5321_ACEOF
5322
5323# Some tools Automake needs.
5324
5325ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5326
5327
5328AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5329
5330
5331AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5332
5333
5334AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5335
5336
5337MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5338
5339install_sh=${install_sh-"$am_aux_dir/install-sh"}
5340
5341# Installed binaries are usually stripped using `strip' when the user
5342# run `make install-strip'.  However `strip' might not be the right
5343# tool to use in cross-compilation environments, therefore Automake
5344# will honor the `STRIP' environment variable to overrule this program.
5345if test "$cross_compiling" != no; then
5346  if test -n "$ac_tool_prefix"; then
5347  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5348set dummy ${ac_tool_prefix}strip; ac_word=$2
5349echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351if test "${ac_cv_prog_STRIP+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354  if test -n "$STRIP"; then
5355  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362  for ac_exec_ext in '' $ac_executable_extensions; do
5363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369done
5370
5371fi
5372fi
5373STRIP=$ac_cv_prog_STRIP
5374if test -n "$STRIP"; then
5375  echo "$as_me:$LINENO: result: $STRIP" >&5
5376echo "${ECHO_T}$STRIP" >&6
5377else
5378  echo "$as_me:$LINENO: result: no" >&5
5379echo "${ECHO_T}no" >&6
5380fi
5381
5382fi
5383if test -z "$ac_cv_prog_STRIP"; then
5384  ac_ct_STRIP=$STRIP
5385  # Extract the first word of "strip", so it can be a program name with args.
5386set dummy strip; ac_word=$2
5387echo "$as_me:$LINENO: checking for $ac_word" >&5
5388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5390  echo $ECHO_N "(cached) $ECHO_C" >&6
5391else
5392  if test -n "$ac_ct_STRIP"; then
5393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398  IFS=$as_save_IFS
5399  test -z "$as_dir" && as_dir=.
5400  for ac_exec_ext in '' $ac_executable_extensions; do
5401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402    ac_cv_prog_ac_ct_STRIP="strip"
5403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404    break 2
5405  fi
5406done
5407done
5408
5409  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5410fi
5411fi
5412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5413if test -n "$ac_ct_STRIP"; then
5414  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5415echo "${ECHO_T}$ac_ct_STRIP" >&6
5416else
5417  echo "$as_me:$LINENO: result: no" >&5
5418echo "${ECHO_T}no" >&6
5419fi
5420
5421  STRIP=$ac_ct_STRIP
5422else
5423  STRIP="$ac_cv_prog_STRIP"
5424fi
5425
5426fi
5427INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5428
5429# We need awk for the "check" target.  The system "awk" is bad on
5430# some platforms.
5431# Always define AMTAR for backward compatibility.
5432
5433AMTAR=${AMTAR-"${am_missing_run}tar"}
5434
5435am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5436
5437
5438
5439
5440depcc="$CC"   am_compiler_list=
5441
5442echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5443echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5444if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5448  # We make a subdir and do the tests there.  Otherwise we can end up
5449  # making bogus files that we don't know about and never remove.  For
5450  # instance it was reported that on HP-UX the gcc test will end up
5451  # making a dummy file named `D' -- because `-MD' means `put the output
5452  # in D'.
5453  mkdir conftest.dir
5454  # Copy depcomp to subdir because otherwise we won't find it if we're
5455  # using a relative directory.
5456  cp "$am_depcomp" conftest.dir
5457  cd conftest.dir
5458  # We will build objects and dependencies in a subdirectory because
5459  # it helps to detect inapplicable dependency modes.  For instance
5460  # both Tru64's cc and ICC support -MD to output dependencies as a
5461  # side effect of compilation, but ICC will put the dependencies in
5462  # the current directory while Tru64 will put them in the object
5463  # directory.
5464  mkdir sub
5465
5466  am_cv_CC_dependencies_compiler_type=none
5467  if test "$am_compiler_list" = ""; then
5468     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5469  fi
5470  for depmode in $am_compiler_list; do
5471    # Setup a source with many dependencies, because some compilers
5472    # like to wrap large dependency lists on column 80 (with \), and
5473    # we should not choose a depcomp mode which is confused by this.
5474    #
5475    # We need to recreate these files for each test, as the compiler may
5476    # overwrite some of them when testing with obscure command lines.
5477    # This happens at least with the AIX C compiler.
5478    : > sub/conftest.c
5479    for i in 1 2 3 4 5 6; do
5480      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5481      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5482      # Solaris 8's {/usr,}/bin/sh.
5483      touch sub/conftst$i.h
5484    done
5485    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5486
5487    case $depmode in
5488    nosideeffect)
5489      # after this tag, mechanisms are not by side-effect, so they'll
5490      # only be used when explicitly requested
5491      if test "x$enable_dependency_tracking" = xyes; then
5492        continue
5493      else
5494        break
5495      fi
5496      ;;
5497    none) break ;;
5498    esac
5499    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5500    # mode.  It turns out that the SunPro C++ compiler does not properly
5501    # handle `-M -o', and we need to detect this.
5502    if depmode=$depmode \
5503       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5504       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5505       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5506         >/dev/null 2>conftest.err &&
5507       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5508       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5509       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5510      # icc doesn't choke on unknown options, it will just issue warnings
5511      # or remarks (even with -Werror).  So we grep stderr for any message
5512      # that says an option was ignored or not supported.
5513      # When given -MP, icc 7.0 and 7.1 complain thusly:
5514      #   icc: Command line warning: ignoring option '-M'; no argument required
5515      # The diagnosis changed in icc 8.0:
5516      #   icc: Command line remark: option '-MP' not supported
5517      if (grep 'ignoring option' conftest.err ||
5518          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5519        am_cv_CC_dependencies_compiler_type=$depmode
5520        break
5521      fi
5522    fi
5523  done
5524
5525  cd ..
5526  rm -rf conftest.dir
5527else
5528  am_cv_CC_dependencies_compiler_type=none
5529fi
5530
5531fi
5532echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5533echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5534CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5535
5536
5537
5538if
5539  test "x$enable_dependency_tracking" != xno \
5540  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5541  am__fastdepCC_TRUE=
5542  am__fastdepCC_FALSE='#'
5543else
5544  am__fastdepCC_TRUE='#'
5545  am__fastdepCC_FALSE=
5546fi
5547
5548
5549
5550echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5551echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5552    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5553if test "${enable_maintainer_mode+set}" = set; then
5554  enableval="$enable_maintainer_mode"
5555  USE_MAINTAINER_MODE=$enableval
5556else
5557  USE_MAINTAINER_MODE=no
5558fi;
5559  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5560echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5561
5562
5563if test $USE_MAINTAINER_MODE = yes; then
5564  MAINTAINER_MODE_TRUE=
5565  MAINTAINER_MODE_FALSE='#'
5566else
5567  MAINTAINER_MODE_TRUE='#'
5568  MAINTAINER_MODE_FALSE=
5569fi
5570
5571  MAINT=$MAINTAINER_MODE_TRUE
5572
5573
5574
5575coin_have_externals=no
5576if test "$enable_maintainer_mode" = yes; then
5577
5578  # If maintainer mode is chosen, we make sure that the correct versions
5579  # of the tools are used, and that we know where libtool.m4 is (to
5580  # recreate acinclude.m4)
5581
5582
5583  LIBTOOLM4=
5584  # Normally, $HOME
5585  AUTOTOOLS_DFLT=$HOME
5586
5587  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5588echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5589if test "${ac_cv_use_correct_autotools+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  ac_cv_use_correct_autotools=check
5593fi
5594echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5595echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5596
5597  if test $ac_cv_use_correct_autotools = check; then
5598    ac_cv_use_correct_autotools=yes
5599    # Check if we have autoconf
5600    # Extract the first word of "autoconf", so it can be a program name with args.
5601set dummy autoconf; ac_word=$2
5602echo "$as_me:$LINENO: checking for $ac_word" >&5
5603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604if test "${ac_cv_prog_have_autoconf+set}" = set; then
5605  echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607  if test -n "$have_autoconf"; then
5608  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5609else
5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH
5612do
5613  IFS=$as_save_IFS
5614  test -z "$as_dir" && as_dir=.
5615  for ac_exec_ext in '' $ac_executable_extensions; do
5616  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617    ac_cv_prog_have_autoconf="yes"
5618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619    break 2
5620  fi
5621done
5622done
5623
5624  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5625fi
5626fi
5627have_autoconf=$ac_cv_prog_have_autoconf
5628if test -n "$have_autoconf"; then
5629  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5630echo "${ECHO_T}$have_autoconf" >&6
5631else
5632  echo "$as_me:$LINENO: result: no" >&5
5633echo "${ECHO_T}no" >&6
5634fi
5635
5636    if test $have_autoconf = no; then
5637      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5638echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5639   { (exit 1); exit 1; }; }
5640    fi
5641
5642    # Check whether autoconf is the correct version
5643    correct_version='2.59'
5644    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5645    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5646echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5647    autoconf --version > confauto.out 2>&1
5648    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5649      echo "$as_me:$LINENO: result: yes" >&5
5650echo "${ECHO_T}yes" >&6
5651    else
5652      rm -f confauto.out
5653      echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5656echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5657   { (exit 1); exit 1; }; }
5658    fi
5659    rm -f confauto.out
5660
5661    # Check if the executable autoconf is picked up from the correct location
5662    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5663echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5664    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5665    autoconf_dir=`cd $autoconf_dir; pwd`
5666    if test x$AUTOTOOLS_DIR = x; then
5667      want_dir=$AUTOTOOLS_DFLT/bin
5668    else
5669      want_dir=$AUTOTOOLS_DIR/bin
5670    fi
5671    if test $autoconf_dir = `cd $want_dir; pwd`; then
5672      echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674    else
5675      rm -f confauto.out
5676      echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
5678      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5679echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5680   { (exit 1); exit 1; }; }
5681    fi
5682
5683    # Check if we have automake
5684    # Extract the first word of "automake", so it can be a program name with args.
5685set dummy automake; ac_word=$2
5686echo "$as_me:$LINENO: checking for $ac_word" >&5
5687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5688if test "${ac_cv_prog_have_automake+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  if test -n "$have_automake"; then
5692  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697  IFS=$as_save_IFS
5698  test -z "$as_dir" && as_dir=.
5699  for ac_exec_ext in '' $ac_executable_extensions; do
5700  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701    ac_cv_prog_have_automake="yes"
5702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703    break 2
5704  fi
5705done
5706done
5707
5708  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5709fi
5710fi
5711have_automake=$ac_cv_prog_have_automake
5712if test -n "$have_automake"; then
5713  echo "$as_me:$LINENO: result: $have_automake" >&5
5714echo "${ECHO_T}$have_automake" >&6
5715else
5716  echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718fi
5719
5720    if test $have_automake = no; then
5721      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5722echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5723   { (exit 1); exit 1; }; }
5724    fi
5725
5726    # Check whether automake is the correct version
5727    correct_version='1.9.6'
5728    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5729    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5730echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5731    automake --version > confauto.out 2>&1
5732    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5733      echo "$as_me:$LINENO: result: yes" >&5
5734echo "${ECHO_T}yes" >&6
5735    else
5736      rm -f confauto.out
5737      echo "$as_me:$LINENO: result: no" >&5
5738echo "${ECHO_T}no" >&6
5739      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5740echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5741   { (exit 1); exit 1; }; }
5742    fi
5743    rm -f confauto.out
5744
5745    # Check if the executable automake is picked up from the correct location
5746    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5747echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5748    automake_dir=`which automake | sed -e 's=/automake=='`
5749    automake_dir=`cd $automake_dir; pwd`
5750    if test x$AUTOTOOLS_DIR = x; then
5751      want_dir=$AUTOTOOLS_DFLT/bin
5752    else
5753      want_dir=$AUTOTOOLS_DIR/bin
5754    fi
5755    if test $automake_dir = `cd $want_dir; pwd`; then
5756      echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
5758    else
5759      rm -f confauto.out
5760      echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6
5762      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5763echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5764   { (exit 1); exit 1; }; }
5765    fi
5766
5767    # Check if this is the correct version of libtool (with escaped dots)
5768    if test x$AUTOTOOLS_DIR = x; then
5769      want_dir=$AUTOTOOLS_DFLT/share
5770    else
5771      want_dir=$AUTOTOOLS_DIR/share
5772    fi
5773    correct_version='1.5.22'
5774    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5775    if test -r $want_dir/libtool/ltmain.sh; then
5776  have_ltmain=yes
5777  :
5778else
5779  have_ltmain=no
5780  :
5781fi
5782
5783    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5784echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5785    if test $have_ltmain = yes; then
5786    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5787        echo "$as_me:$LINENO: result: yes" >&5
5788echo "${ECHO_T}yes" >&6
5789      else
5790        echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5793echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5794   { (exit 1); exit 1; }; }
5795      fi
5796    else
5797      echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5800echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5801   { (exit 1); exit 1; }; }
5802    fi
5803  fi
5804
5805  # Check if we can find the libtool file
5806  if test x$AUTOTOOLS_DIR = x; then
5807    want_dir=$AUTOTOOLS_DFLT/share
5808  else
5809    want_dir=$AUTOTOOLS_DIR/share
5810  fi
5811  if test -r $want_dir/aclocal/libtool.m4; then
5812  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5813  :
5814else
5815  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5816echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5817   { (exit 1); exit 1; }; }
5818  :
5819fi
5820
5821
5822  # Check if we have an Externals file
5823  if test -r $srcdir/Externals; then
5824    coin_have_externals=yes
5825  fi
5826  # Check if subversion is installed and understands https
5827  # Extract the first word of "svn", so it can be a program name with args.
5828set dummy svn; ac_word=$2
5829echo "$as_me:$LINENO: checking for $ac_word" >&5
5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5831if test "${ac_cv_prog_have_svn+set}" = set; then
5832  echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834  if test -n "$have_svn"; then
5835  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5836else
5837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838for as_dir in $PATH
5839do
5840  IFS=$as_save_IFS
5841  test -z "$as_dir" && as_dir=.
5842  for ac_exec_ext in '' $ac_executable_extensions; do
5843  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844    ac_cv_prog_have_svn="yes"
5845    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5846    break 2
5847  fi
5848done
5849done
5850
5851  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5852fi
5853fi
5854have_svn=$ac_cv_prog_have_svn
5855if test -n "$have_svn"; then
5856  echo "$as_me:$LINENO: result: $have_svn" >&5
5857echo "${ECHO_T}$have_svn" >&6
5858else
5859  echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861fi
5862
5863  if test x$have_svn = xyes; then
5864    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5865echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5866if test "${ac_cv_svn_understands_https+set}" = set; then
5867  echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869  svn --version > confauto.out 2>&1
5870                    if $EGREP https confauto.out >/dev/null 2>&1; then
5871                      ac_cv_svn_understands_https=yes
5872                    else
5873                      ac_cv_svn_understands_https=no
5874                      have_svn=no
5875                      ac_cv_prog_have_svn=no
5876                    fi
5877                    rm -f confauto.out
5878fi
5879echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5880echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5881  fi
5882
5883  # Find the location of the BuildTools directory
5884  BUILDTOOLSDIR=
5885  if test -r $srcdir/BuildTools/coin.m4; then
5886    BUILDTOOLSDIR=$srcdir/BuildTools
5887  else
5888    if test -r $srcdir/../BuildTools/coin.m4; then
5889      BUILDTOOLSDIR=$srcdir/../BuildTools
5890    else
5891      if test -r $srcdir/../../BuildTools/coin.m4; then
5892        BUILDTOOLSDIR=$srcdir/../../BuildTools
5893      else
5894        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5895echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5896   { (exit 1); exit 1; }; }
5897      fi
5898    fi
5899  fi
5900
5901
5902  # The following variable is set to the name of the directory where
5903  # the autotool scripts are located
5904
5905  AUX_DIR=$ac_aux_dir
5906fi
5907
5908# helpful variable for the base directory of this package
5909abs_source_dir=`cd $srcdir; pwd`
5910
5911
5912# Stuff for example Makefiles
5913if test x$prefix = xNONE; then
5914  full_prefix=$ac_default_prefix
5915else
5916  full_prefix=$prefix
5917fi
5918full_prefix=`cd $full_prefix ; pwd`
5919
5920abs_lib_dir=$full_prefix/lib
5921
5922abs_include_dir=$full_prefix/include
5923
5924abs_bin_dir=$full_prefix/bin
5925
5926
5927
5928if test $coin_have_externals = yes && test x$have_svn = xyes; then
5929  HAVE_EXTERNALS_TRUE=
5930  HAVE_EXTERNALS_FALSE='#'
5931else
5932  HAVE_EXTERNALS_TRUE='#'
5933  HAVE_EXTERNALS_FALSE=
5934fi
5935
5936
5937# AC_MSG_NOTICE([End automake initialisation.])
5938
5939
5940
5941# Initialize automake
5942{
5943
5944
5945
5946# START
5947
5948# Test if force_shared has been set
5949if test "x" = xforce_shared; then
5950  if test x$enable_shared = xno; then
5951    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5952echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5953   { (exit 1); exit 1; }; }
5954  fi
5955  enable_shared=yes;
5956else
5957  # On Cygwin and AIX, building DLLs doesn't work
5958  case $build in
5959    *-cygwin*)
5960      coin_disable_shared=yes
5961      platform=Cygwin
5962    ;;
5963    *-aix*)
5964      coin_disable_shared=yes
5965      platform=AIX
5966    ;;
5967    *-mingw*)
5968      coin_disable_shared=yes
5969      platform="Msys"
5970#      case "$CXX" in
5971#        cl*)
5972#          coin_disable_shared=yes
5973#          platform="Msys with cl"
5974#      ;;
5975#      esac
5976    ;;
5977  esac
5978fi
5979if test x"$coin_disable_shared" = xyes; then
5980  if test x"$enable_shared" = xyes; then
5981    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5982echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5983  fi
5984  enable_shared=no
5985fi
5986# By default, we only want the shared objects to be compiled
5987# Check whether --enable-static or --disable-static was given.
5988if test "${enable_static+set}" = set; then
5989  enableval="$enable_static"
5990  p=${PACKAGE-default}
5991    case $enableval in
5992    yes) enable_static=yes ;;
5993    no) enable_static=no ;;
5994    *)
5995     enable_static=no
5996      # Look at the argument we got.  We use all the common list separators.
5997      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5998      for pkg in $enableval; do
5999        IFS="$lt_save_ifs"
6000        if test "X$pkg" = "X$p"; then
6001          enable_static=yes
6002        fi
6003      done
6004      IFS="$lt_save_ifs"
6005      ;;
6006    esac
6007else
6008  enable_static=no
6009fi;
6010
6011
6012
6013
6014# Initialize automake
6015
6016
6017# AC_MSG_NOTICE([Beginning automake initialisation.])
6018# Stuff for automake
6019# test to see if srcdir already configured
6020if test "`cd $srcdir && pwd`" != "`pwd`" &&
6021   test -f $srcdir/config.status; then
6022  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6023echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6024   { (exit 1); exit 1; }; }
6025fi
6026
6027# test whether we have cygpath
6028if test -z "$CYGPATH_W"; then
6029  if (cygpath --version) >/dev/null 2>/dev/null; then
6030    CYGPATH_W='cygpath -w'
6031  else
6032    CYGPATH_W=echo
6033  fi
6034fi
6035
6036
6037# Define the identity of the package.
6038 PACKAGE='thirdpartyfiltersqp'
6039 VERSION='0.0'
6040
6041
6042cat >>confdefs.h <<_ACEOF
6043#define PACKAGE "$PACKAGE"
6044_ACEOF
6045
6046
6047cat >>confdefs.h <<_ACEOF
6048#define VERSION "$VERSION"
6049_ACEOF
6050
6051# Some tools Automake needs.
6052
6053ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6054
6055
6056AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6057
6058
6059AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6060
6061
6062AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6063
6064
6065MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6066
6067install_sh=${install_sh-"$am_aux_dir/install-sh"}
6068
6069# Installed binaries are usually stripped using `strip' when the user
6070# run `make install-strip'.  However `strip' might not be the right
6071# tool to use in cross-compilation environments, therefore Automake
6072# will honor the `STRIP' environment variable to overrule this program.
6073if test "$cross_compiling" != no; then
6074  if test -n "$ac_tool_prefix"; then
6075  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}strip; ac_word=$2
6077echo "$as_me:$LINENO: checking for $ac_word" >&5
6078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079if test "${ac_cv_prog_STRIP+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082  if test -n "$STRIP"; then
6083  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088  IFS=$as_save_IFS
6089  test -z "$as_dir" && as_dir=.
6090  for ac_exec_ext in '' $ac_executable_extensions; do
6091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094    break 2
6095  fi
6096done
6097done
6098
6099fi
6100fi
6101STRIP=$ac_cv_prog_STRIP
6102if test -n "$STRIP"; then
6103  echo "$as_me:$LINENO: result: $STRIP" >&5
6104echo "${ECHO_T}$STRIP" >&6
6105else
6106  echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6
6108fi
6109
6110fi
6111if test -z "$ac_cv_prog_STRIP"; then
6112  ac_ct_STRIP=$STRIP
6113  # Extract the first word of "strip", so it can be a program name with args.
6114set dummy strip; ac_word=$2
6115echo "$as_me:$LINENO: checking for $ac_word" >&5
6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6118  echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120  if test -n "$ac_ct_STRIP"; then
6121  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6122else
6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124for as_dir in $PATH
6125do
6126  IFS=$as_save_IFS
6127  test -z "$as_dir" && as_dir=.
6128  for ac_exec_ext in '' $ac_executable_extensions; do
6129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130    ac_cv_prog_ac_ct_STRIP="strip"
6131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132    break 2
6133  fi
6134done
6135done
6136
6137  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6138fi
6139fi
6140ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6141if test -n "$ac_ct_STRIP"; then
6142  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6143echo "${ECHO_T}$ac_ct_STRIP" >&6
6144else
6145  echo "$as_me:$LINENO: result: no" >&5
6146echo "${ECHO_T}no" >&6
6147fi
6148
6149  STRIP=$ac_ct_STRIP
6150else
6151  STRIP="$ac_cv_prog_STRIP"
6152fi
6153
6154fi
6155INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6156
6157# We need awk for the "check" target.  The system "awk" is bad on
6158# some platforms.
6159# Always define AMTAR for backward compatibility.
6160
6161AMTAR=${AMTAR-"${am_missing_run}tar"}
6162
6163am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6164
6165
6166
6167
6168depcc="$CC"   am_compiler_list=
6169
6170echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6171echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6172if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6173  echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6176  # We make a subdir and do the tests there.  Otherwise we can end up
6177  # making bogus files that we don't know about and never remove.  For
6178  # instance it was reported that on HP-UX the gcc test will end up
6179  # making a dummy file named `D' -- because `-MD' means `put the output
6180  # in D'.
6181  mkdir conftest.dir
6182  # Copy depcomp to subdir because otherwise we won't find it if we're
6183  # using a relative directory.
6184  cp "$am_depcomp" conftest.dir
6185  cd conftest.dir
6186  # We will build objects and dependencies in a subdirectory because
6187  # it helps to detect inapplicable dependency modes.  For instance
6188  # both Tru64's cc and ICC support -MD to output dependencies as a
6189  # side effect of compilation, but ICC will put the dependencies in
6190  # the current directory while Tru64 will put them in the object
6191  # directory.
6192  mkdir sub
6193
6194  am_cv_CC_dependencies_compiler_type=none
6195  if test "$am_compiler_list" = ""; then
6196     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6197  fi
6198  for depmode in $am_compiler_list; do
6199    # Setup a source with many dependencies, because some compilers
6200    # like to wrap large dependency lists on column 80 (with \), and
6201    # we should not choose a depcomp mode which is confused by this.
6202    #
6203    # We need to recreate these files for each test, as the compiler may
6204    # overwrite some of them when testing with obscure command lines.
6205    # This happens at least with the AIX C compiler.
6206    : > sub/conftest.c
6207    for i in 1 2 3 4 5 6; do
6208      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6209      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6210      # Solaris 8's {/usr,}/bin/sh.
6211      touch sub/conftst$i.h
6212    done
6213    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6214
6215    case $depmode in
6216    nosideeffect)
6217      # after this tag, mechanisms are not by side-effect, so they'll
6218      # only be used when explicitly requested
6219      if test "x$enable_dependency_tracking" = xyes; then
6220        continue
6221      else
6222        break
6223      fi
6224      ;;
6225    none) break ;;
6226    esac
6227    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6228    # mode.  It turns out that the SunPro C++ compiler does not properly
6229    # handle `-M -o', and we need to detect this.
6230    if depmode=$depmode \
6231       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6232       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6233       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6234         >/dev/null 2>conftest.err &&
6235       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6236       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6237       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6238      # icc doesn't choke on unknown options, it will just issue warnings
6239      # or remarks (even with -Werror).  So we grep stderr for any message
6240      # that says an option was ignored or not supported.
6241      # When given -MP, icc 7.0 and 7.1 complain thusly:
6242      #   icc: Command line warning: ignoring option '-M'; no argument required
6243      # The diagnosis changed in icc 8.0:
6244      #   icc: Command line remark: option '-MP' not supported
6245      if (grep 'ignoring option' conftest.err ||
6246          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6247        am_cv_CC_dependencies_compiler_type=$depmode
6248        break
6249      fi
6250    fi
6251  done
6252
6253  cd ..
6254  rm -rf conftest.dir
6255else
6256  am_cv_CC_dependencies_compiler_type=none
6257fi
6258
6259fi
6260echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6261echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6262CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6263
6264
6265
6266if
6267  test "x$enable_dependency_tracking" != xno \
6268  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6269  am__fastdepCC_TRUE=
6270  am__fastdepCC_FALSE='#'
6271else
6272  am__fastdepCC_TRUE='#'
6273  am__fastdepCC_FALSE=
6274fi
6275
6276
6277
6278echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6279echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6280    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6281if test "${enable_maintainer_mode+set}" = set; then
6282  enableval="$enable_maintainer_mode"
6283  USE_MAINTAINER_MODE=$enableval
6284else
6285  USE_MAINTAINER_MODE=no
6286fi;
6287  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6288echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6289
6290
6291if test $USE_MAINTAINER_MODE = yes; then
6292  MAINTAINER_MODE_TRUE=
6293  MAINTAINER_MODE_FALSE='#'
6294else
6295  MAINTAINER_MODE_TRUE='#'
6296  MAINTAINER_MODE_FALSE=
6297fi
6298
6299  MAINT=$MAINTAINER_MODE_TRUE
6300
6301
6302
6303coin_have_externals=no
6304if test "$enable_maintainer_mode" = yes; then
6305
6306  # If maintainer mode is chosen, we make sure that the correct versions
6307  # of the tools are used, and that we know where libtool.m4 is (to
6308  # recreate acinclude.m4)
6309
6310
6311  LIBTOOLM4=
6312  # Normally, $HOME
6313  AUTOTOOLS_DFLT=$HOME
6314
6315  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6316echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6317if test "${ac_cv_use_correct_autotools+set}" = set; then
6318  echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
6320  ac_cv_use_correct_autotools=check
6321fi
6322echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6323echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6324
6325  if test $ac_cv_use_correct_autotools = check; then
6326    ac_cv_use_correct_autotools=yes
6327    # Check if we have autoconf
6328    # Extract the first word of "autoconf", so it can be a program name with args.
6329set dummy autoconf; ac_word=$2
6330echo "$as_me:$LINENO: checking for $ac_word" >&5
6331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332if test "${ac_cv_prog_have_autoconf+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  if test -n "$have_autoconf"; then
6336  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341  IFS=$as_save_IFS
6342  test -z "$as_dir" && as_dir=.
6343  for ac_exec_ext in '' $ac_executable_extensions; do
6344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345    ac_cv_prog_have_autoconf="yes"
6346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347    break 2
6348  fi
6349done
6350done
6351
6352  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6353fi
6354fi
6355have_autoconf=$ac_cv_prog_have_autoconf
6356if test -n "$have_autoconf"; then
6357  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6358echo "${ECHO_T}$have_autoconf" >&6
6359else
6360  echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6
6362fi
6363
6364    if test $have_autoconf = no; then
6365      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6366echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6367   { (exit 1); exit 1; }; }
6368    fi
6369
6370    # Check whether autoconf is the correct version
6371    correct_version='2.59'
6372    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6373    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6374echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6375    autoconf --version > confauto.out 2>&1
6376    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6377      echo "$as_me:$LINENO: result: yes" >&5
6378echo "${ECHO_T}yes" >&6
6379    else
6380      rm -f confauto.out
6381      echo "$as_me:$LINENO: result: no" >&5
6382echo "${ECHO_T}no" >&6
6383      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6384echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6385   { (exit 1); exit 1; }; }
6386    fi
6387    rm -f confauto.out
6388
6389    # Check if the executable autoconf is picked up from the correct location
6390    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6391echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6392    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6393    autoconf_dir=`cd $autoconf_dir; pwd`
6394    if test x$AUTOTOOLS_DIR = x; then
6395      want_dir=$AUTOTOOLS_DFLT/bin
6396    else
6397      want_dir=$AUTOTOOLS_DIR/bin
6398    fi
6399    if test $autoconf_dir = `cd $want_dir; pwd`; then
6400      echo "$as_me:$LINENO: result: yes" >&5
6401echo "${ECHO_T}yes" >&6
6402    else
6403      rm -f confauto.out
6404      echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6407echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6408   { (exit 1); exit 1; }; }
6409    fi
6410
6411    # Check if we have automake
6412    # Extract the first word of "automake", so it can be a program name with args.
6413set dummy automake; ac_word=$2
6414echo "$as_me:$LINENO: checking for $ac_word" >&5
6415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6416if test "${ac_cv_prog_have_automake+set}" = set; then
6417  echo $ECHO_N "(cached) $ECHO_C" >&6
6418else
6419  if test -n "$have_automake"; then
6420  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6421else
6422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425  IFS=$as_save_IFS
6426  test -z "$as_dir" && as_dir=.
6427  for ac_exec_ext in '' $ac_executable_extensions; do
6428  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429    ac_cv_prog_have_automake="yes"
6430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431    break 2
6432  fi
6433done
6434done
6435
6436  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6437fi
6438fi
6439have_automake=$ac_cv_prog_have_automake
6440if test -n "$have_automake"; then
6441  echo "$as_me:$LINENO: result: $have_automake" >&5
6442echo "${ECHO_T}$have_automake" >&6
6443else
6444  echo "$as_me:$LINENO: result: no" >&5
6445echo "${ECHO_T}no" >&6
6446fi
6447
6448    if test $have_automake = no; then
6449      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6450echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6451   { (exit 1); exit 1; }; }
6452    fi
6453
6454    # Check whether automake is the correct version
6455    correct_version='1.9.6'
6456    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6457    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6458echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6459    automake --version > confauto.out 2>&1
6460    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6461      echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
6463    else
6464      rm -f confauto.out
6465      echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
6467      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6468echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6469   { (exit 1); exit 1; }; }
6470    fi
6471    rm -f confauto.out
6472
6473    # Check if the executable automake is picked up from the correct location
6474    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6475echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6476    automake_dir=`which automake | sed -e 's=/automake=='`
6477    automake_dir=`cd $automake_dir; pwd`
6478    if test x$AUTOTOOLS_DIR = x; then
6479      want_dir=$AUTOTOOLS_DFLT/bin
6480    else
6481      want_dir=$AUTOTOOLS_DIR/bin
6482    fi
6483    if test $automake_dir = `cd $want_dir; pwd`; then
6484      echo "$as_me:$LINENO: result: yes" >&5
6485echo "${ECHO_T}yes" >&6
6486    else
6487      rm -f confauto.out
6488      echo "$as_me:$LINENO: result: no" >&5
6489echo "${ECHO_T}no" >&6
6490      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6491echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6492   { (exit 1); exit 1; }; }
6493    fi
6494
6495    # Check if this is the correct version of libtool (with escaped dots)
6496    if test x$AUTOTOOLS_DIR = x; then
6497      want_dir=$AUTOTOOLS_DFLT/share
6498    else
6499      want_dir=$AUTOTOOLS_DIR/share
6500    fi
6501    correct_version='1.5.22'
6502    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6503    if test -r $want_dir/libtool/ltmain.sh; then
6504  have_ltmain=yes
6505  :
6506else
6507  have_ltmain=no
6508  :
6509fi
6510
6511    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6512echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6513    if test $have_ltmain = yes; then
6514    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6515        echo "$as_me:$LINENO: result: yes" >&5
6516echo "${ECHO_T}yes" >&6
6517      else
6518        echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
6520        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6521echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6522   { (exit 1); exit 1; }; }
6523      fi
6524    else
6525      echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6528echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6529   { (exit 1); exit 1; }; }
6530    fi
6531  fi
6532
6533  # Check if we can find the libtool file
6534  if test x$AUTOTOOLS_DIR = x; then
6535    want_dir=$AUTOTOOLS_DFLT/share
6536  else
6537    want_dir=$AUTOTOOLS_DIR/share
6538  fi
6539  if test -r $want_dir/aclocal/libtool.m4; then
6540  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6541  :
6542else
6543  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6544echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6545   { (exit 1); exit 1; }; }
6546  :
6547fi
6548
6549
6550  # Check if we have an Externals file
6551  if test -r $srcdir/Externals; then
6552    coin_have_externals=yes
6553  fi
6554  # Check if subversion is installed and understands https
6555  # Extract the first word of "svn", so it can be a program name with args.
6556set dummy svn; ac_word=$2
6557echo "$as_me:$LINENO: checking for $ac_word" >&5
6558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6559if test "${ac_cv_prog_have_svn+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562  if test -n "$have_svn"; then
6563  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570  for ac_exec_ext in '' $ac_executable_extensions; do
6571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572    ac_cv_prog_have_svn="yes"
6573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577done
6578
6579  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6580fi
6581fi
6582have_svn=$ac_cv_prog_have_svn
6583if test -n "$have_svn"; then
6584  echo "$as_me:$LINENO: result: $have_svn" >&5
6585echo "${ECHO_T}$have_svn" >&6
6586else
6587  echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589fi
6590
6591  if test x$have_svn = xyes; then
6592    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6593echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6594if test "${ac_cv_svn_understands_https+set}" = set; then
6595  echo $ECHO_N "(cached) $ECHO_C" >&6
6596else
6597  svn --version > confauto.out 2>&1
6598                    if $EGREP https confauto.out >/dev/null 2>&1; then
6599                      ac_cv_svn_understands_https=yes
6600                    else
6601                      ac_cv_svn_understands_https=no
6602                      have_svn=no
6603                      ac_cv_prog_have_svn=no
6604                    fi
6605                    rm -f confauto.out
6606fi
6607echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6608echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6609  fi
6610
6611  # Find the location of the BuildTools directory
6612  BUILDTOOLSDIR=
6613  if test -r $srcdir/BuildTools/coin.m4; then
6614    BUILDTOOLSDIR=$srcdir/BuildTools
6615  else
6616    if test -r $srcdir/../BuildTools/coin.m4; then
6617      BUILDTOOLSDIR=$srcdir/../BuildTools
6618    else
6619      if test -r $srcdir/../../BuildTools/coin.m4; then
6620        BUILDTOOLSDIR=$srcdir/../../BuildTools
6621      else
6622        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6623echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6624   { (exit 1); exit 1; }; }
6625      fi
6626    fi
6627  fi
6628
6629
6630  # The following variable is set to the name of the directory where
6631  # the autotool scripts are located
6632
6633  AUX_DIR=$ac_aux_dir
6634fi
6635
6636# helpful variable for the base directory of this package
6637abs_source_dir=`cd $srcdir; pwd`
6638
6639
6640# Stuff for example Makefiles
6641if test x$prefix = xNONE; then
6642  full_prefix=$ac_default_prefix
6643else
6644  full_prefix=$prefix
6645fi
6646full_prefix=`cd $full_prefix ; pwd`
6647
6648abs_lib_dir=$full_prefix/lib
6649
6650abs_include_dir=$full_prefix/include
6651
6652abs_bin_dir=$full_prefix/bin
6653
6654
6655
6656if test $coin_have_externals = yes && test x$have_svn = xyes; then
6657  HAVE_EXTERNALS_TRUE=
6658  HAVE_EXTERNALS_FALSE='#'
6659else
6660  HAVE_EXTERNALS_TRUE='#'
6661  HAVE_EXTERNALS_FALSE=
6662fi
6663
6664
6665# AC_MSG_NOTICE([End automake initialisation.])
6666
6667
6668
6669LIBTOOL=
6670if test -r ../libtool; then
6671  coin_config_dir=..
6672  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6673fi
6674if test "x$LIBTOOL" = x; then
6675  if test -r ../../libtool; then
6676    coin_config_dir=../..
6677    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6678  fi
6679fi
6680
6681if test "x$LIBTOOL" = x; then
6682# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6683  # Stuff for libtool
6684  # Check whether --enable-shared or --disable-shared was given.
6685if test "${enable_shared+set}" = set; then
6686  enableval="$enable_shared"
6687  p=${PACKAGE-default}
6688    case $enableval in
6689    yes) enable_shared=yes ;;
6690    no) enable_shared=no ;;
6691    *)
6692      enable_shared=no
6693      # Look at the argument we got.  We use all the common list separators.
6694      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6695      for pkg in $enableval; do
6696        IFS="$lt_save_ifs"
6697        if test "X$pkg" = "X$p"; then
6698          enable_shared=yes
6699        fi
6700      done
6701      IFS="$lt_save_ifs"
6702      ;;
6703    esac
6704else
6705  enable_shared=yes
6706fi;
6707
6708# Check whether --enable-fast-install or --disable-fast-install was given.
6709if test "${enable_fast_install+set}" = set; then
6710  enableval="$enable_fast_install"
6711  p=${PACKAGE-default}
6712    case $enableval in
6713    yes) enable_fast_install=yes ;;
6714    no) enable_fast_install=no ;;
6715    *)
6716      enable_fast_install=no
6717      # Look at the argument we got.  We use all the common list separators.
6718      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6719      for pkg in $enableval; do
6720        IFS="$lt_save_ifs"
6721        if test "X$pkg" = "X$p"; then
6722          enable_fast_install=yes
6723        fi
6724      done
6725      IFS="$lt_save_ifs"
6726      ;;
6727    esac
6728else
6729  enable_fast_install=yes
6730fi;
6731
6732echo "$as_me:$LINENO: checking host system type" >&5
6733echo $ECHO_N "checking host system type... $ECHO_C" >&6
6734if test "${ac_cv_host+set}" = set; then
6735  echo $ECHO_N "(cached) $ECHO_C" >&6
6736else
6737  ac_cv_host_alias=$host_alias
6738test -z "$ac_cv_host_alias" &&
6739  ac_cv_host_alias=$ac_cv_build_alias
6740ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6741  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6742echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6743   { (exit 1); exit 1; }; }
6744
6745fi
6746echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6747echo "${ECHO_T}$ac_cv_host" >&6
6748host=$ac_cv_host
6749host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6750host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6751host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6752
6753
6754echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6755echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6756if test "${lt_cv_path_SED+set}" = set; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759  # Loop through the user's path and test for sed and gsed.
6760# Then use that list of sed's as ones to test for truncation.
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764  IFS=$as_save_IFS
6765  test -z "$as_dir" && as_dir=.
6766  for lt_ac_prog in sed gsed; do
6767    for ac_exec_ext in '' $ac_executable_extensions; do
6768      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6769        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6770      fi
6771    done
6772  done
6773done
6774lt_ac_max=0
6775lt_ac_count=0
6776# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6777# along with /bin/sed that truncates output.
6778for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6779  test ! -f $lt_ac_sed && continue
6780  cat /dev/null > conftest.in
6781  lt_ac_count=0
6782  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6783  # Check for GNU sed and select it if it is found.
6784  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6785    lt_cv_path_SED=$lt_ac_sed
6786    break
6787  fi
6788  while true; do
6789    cat conftest.in conftest.in >conftest.tmp
6790    mv conftest.tmp conftest.in
6791    cp conftest.in conftest.nl
6792    echo >>conftest.nl
6793    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6794    cmp -s conftest.out conftest.nl || break
6795    # 10000 chars as input seems more than enough
6796    test $lt_ac_count -gt 10 && break
6797    lt_ac_count=`expr $lt_ac_count + 1`
6798    if test $lt_ac_count -gt $lt_ac_max; then
6799      lt_ac_max=$lt_ac_count
6800      lt_cv_path_SED=$lt_ac_sed
6801    fi
6802  done
6803done
6804
6805fi
6806
6807SED=$lt_cv_path_SED
6808echo "$as_me:$LINENO: result: $SED" >&5
6809echo "${ECHO_T}$SED" >&6
6810
6811
6812# Check whether --with-gnu-ld or --without-gnu-ld was given.
6813if test "${with_gnu_ld+set}" = set; then
6814  withval="$with_gnu_ld"
6815  test "$withval" = no || with_gnu_ld=yes
6816else
6817  with_gnu_ld=no
6818fi;
6819ac_prog=ld
6820if test "$GCC" = yes; then
6821  # Check if gcc -print-prog-name=ld gives a path.
6822  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6823echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6824  case $host in
6825  *-*-mingw*)
6826    # gcc leaves a trailing carriage return which upsets mingw
6827    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6828  *)
6829    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6830  esac
6831  case $ac_prog in
6832    # Accept absolute paths.
6833    [\\/]* | ?:[\\/]*)
6834      re_direlt='/[^/][^/]*/\.\./'
6835      # Canonicalize the pathname of ld
6836      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6837      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6838        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6839      done
6840      test -z "$LD" && LD="$ac_prog"
6841      ;;
6842  "")
6843    # If it fails, then pretend we aren't using GCC.
6844    ac_prog=ld
6845    ;;
6846  *)
6847    # If it is relative, then search for the first ld in PATH.
6848    with_gnu_ld=unknown
6849    ;;
6850  esac
6851elif test "$with_gnu_ld" = yes; then
6852  echo "$as_me:$LINENO: checking for GNU ld" >&5
6853echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6854else
6855  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6856echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6857fi
6858if test "${lt_cv_path_LD+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861  if test -z "$LD"; then
6862  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6863  for ac_dir in $PATH; do
6864    IFS="$lt_save_ifs"
6865    test -z "$ac_dir" && ac_dir=.
6866    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6867      lt_cv_path_LD="$ac_dir/$ac_prog"
6868      # Check to see if the program is GNU ld.  I'd rather use --version,
6869      # but apparently some variants of GNU ld only accept -v.
6870      # Break only if it was the GNU/non-GNU ld that we prefer.
6871      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6872      *GNU* | *'with BFD'*)
6873        test "$with_gnu_ld" != no && break
6874        ;;
6875      *)
6876        test "$with_gnu_ld" != yes && break
6877        ;;
6878      esac
6879    fi
6880  done
6881  IFS="$lt_save_ifs"
6882else
6883  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6884fi
6885fi
6886
6887LD="$lt_cv_path_LD"
6888if test -n "$LD"; then
6889  echo "$as_me:$LINENO: result: $LD" >&5
6890echo "${ECHO_T}$LD" >&6
6891else
6892  echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
6894fi
6895test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6896echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6897   { (exit 1); exit 1; }; }
6898echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6899echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6900if test "${lt_cv_prog_gnu_ld+set}" = set; then
6901  echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6904case `$LD -v 2>&1 </dev/null` in
6905*GNU* | *'with BFD'*)
6906  lt_cv_prog_gnu_ld=yes
6907  ;;
6908*)
6909  lt_cv_prog_gnu_ld=no
6910  ;;
6911esac
6912fi
6913echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6914echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6915with_gnu_ld=$lt_cv_prog_gnu_ld
6916
6917
6918echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6919echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6920if test "${lt_cv_ld_reload_flag+set}" = set; then
6921  echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
6923  lt_cv_ld_reload_flag='-r'
6924fi
6925echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6926echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6927reload_flag=$lt_cv_ld_reload_flag
6928case $reload_flag in
6929"" | " "*) ;;
6930*) reload_flag=" $reload_flag" ;;
6931esac
6932reload_cmds='$LD$reload_flag -o $output$reload_objs'
6933case $host_os in
6934  darwin*)
6935    if test "$GCC" = yes; then
6936      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6937    else
6938      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6939    fi
6940    ;;
6941esac
6942
6943echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6944echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6945if test "${lt_cv_path_NM+set}" = set; then
6946  echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948  if test -n "$NM"; then
6949  # Let the user override the test.
6950  lt_cv_path_NM="$NM"
6951else
6952  lt_nm_to_check="${ac_tool_prefix}nm"
6953  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6954    lt_nm_to_check="$lt_nm_to_check nm"
6955  fi
6956  for lt_tmp_nm in $lt_nm_to_check; do
6957    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6958    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6959      IFS="$lt_save_ifs"
6960      test -z "$ac_dir" && ac_dir=.
6961      tmp_nm="$ac_dir/$lt_tmp_nm"
6962      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6963        # Check to see if the nm accepts a BSD-compat flag.
6964        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6965        #   nm: unknown option "B" ignored
6966        # Tru64's nm complains that /dev/null is an invalid object file
6967        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6968        */dev/null* | *'Invalid file or object type'*)
6969          lt_cv_path_NM="$tmp_nm -B"
6970          break
6971          ;;
6972        *)
6973          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6974          */dev/null*)
6975            lt_cv_path_NM="$tmp_nm -p"
6976            break
6977            ;;
6978          *)
6979            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6980            continue # so that we can try to find one that supports BSD flags
6981            ;;
6982          esac
6983          ;;
6984        esac
6985      fi
6986    done
6987    IFS="$lt_save_ifs"
6988  done
6989  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6990fi
6991fi
6992echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6993echo "${ECHO_T}$lt_cv_path_NM" >&6
6994NM="$lt_cv_path_NM"
6995
6996echo "$as_me:$LINENO: checking whether ln -s works" >&5
6997echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6998LN_S=$as_ln_s
6999if test "$LN_S" = "ln -s"; then
7000  echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6
7002else
7003  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7004echo "${ECHO_T}no, using $LN_S" >&6
7005fi
7006
7007echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7008echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7009if test "${lt_cv_deplibs_check_method+set}" = set; then
7010  echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012  lt_cv_file_magic_cmd='$MAGIC_CMD'
7013lt_cv_file_magic_test_file=
7014lt_cv_deplibs_check_method='unknown'
7015# Need to set the preceding variable on all platforms that support
7016# interlibrary dependencies.
7017# 'none' -- dependencies not supported.
7018# `unknown' -- same as none, but documents that we really don't know.
7019# 'pass_all' -- all dependencies passed with no checks.
7020# 'test_compile' -- check by making test program.
7021# 'file_magic [[regex]]' -- check by looking for files in library path
7022# which responds to the $file_magic_cmd with a given extended regex.
7023# If you have `file' or equivalent on your system and you're not sure
7024# whether `pass_all' will *always* work, you probably want this one.
7025
7026case $host_os in
7027aix4* | aix5*)
7028  lt_cv_deplibs_check_method=pass_all
7029  ;;
7030
7031beos*)
7032  lt_cv_deplibs_check_method=pass_all
7033  ;;
7034
7035bsdi[45]*)
7036  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7037  lt_cv_file_magic_cmd='/usr/bin/file -L'
7038  lt_cv_file_magic_test_file=/shlib/libc.so
7039  ;;
7040
7041cygwin*)
7042  # func_win32_libid is a shell function defined in ltmain.sh
7043  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7044  lt_cv_file_magic_cmd='func_win32_libid'
7045  ;;
7046
7047mingw* | pw32*)
7048  # Base MSYS/MinGW do not provide the 'file' command needed by
7049  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7050  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7051  lt_cv_file_magic_cmd='$OBJDUMP -f'
7052  ;;
7053
7054darwin* | rhapsody*)
7055  lt_cv_deplibs_check_method=pass_all
7056  ;;
7057
7058freebsd* | kfreebsd*-gnu | dragonfly*)
7059  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7060    case $host_cpu in
7061    i*86 )
7062      # Not sure whether the presence of OpenBSD here was a mistake.
7063      # Let's accept both of them until this is cleared up.
7064      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7065      lt_cv_file_magic_cmd=/usr/bin/file
7066      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7067      ;;
7068    esac
7069  else
7070    lt_cv_deplibs_check_method=pass_all
7071  fi
7072  ;;
7073
7074gnu*)
7075  lt_cv_deplibs_check_method=pass_all
7076  ;;
7077
7078hpux10.20* | hpux11*)
7079  lt_cv_file_magic_cmd=/usr/bin/file
7080  case $host_cpu in
7081  ia64*)
7082    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7083    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7084    ;;
7085  hppa*64*)
7086    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]'
7087    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7088    ;;
7089  *)
7090    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7091    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7092    ;;
7093  esac
7094  ;;
7095
7096interix3*)
7097  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7098  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7099  ;;
7100
7101irix5* | irix6* | nonstopux*)
7102  case $LD in
7103  *-32|*"-32 ") libmagic=32-bit;;
7104  *-n32|*"-n32 ") libmagic=N32;;
7105  *-64|*"-64 ") libmagic=64-bit;;
7106  *) libmagic=never-match;;
7107  esac
7108  lt_cv_deplibs_check_method=pass_all
7109  ;;
7110
7111# This must be Linux ELF.
7112linux*)
7113  lt_cv_deplibs_check_method=pass_all
7114  ;;
7115
7116netbsd*)
7117  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7118    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7119  else
7120    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7121  fi
7122  ;;
7123
7124newos6*)
7125  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7126  lt_cv_file_magic_cmd=/usr/bin/file
7127  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7128  ;;
7129
7130nto-qnx*)
7131  lt_cv_deplibs_check_method=unknown
7132  ;;
7133
7134openbsd*)
7135  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7137  else
7138    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7139  fi
7140  ;;
7141
7142osf3* | osf4* | osf5*)
7143  lt_cv_deplibs_check_method=pass_all
7144  ;;
7145
7146solaris*)
7147  lt_cv_deplibs_check_method=pass_all
7148  ;;
7149
7150sysv4 | sysv4.3*)
7151  case $host_vendor in
7152  motorola)
7153    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]'
7154    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7155    ;;
7156  ncr)
7157    lt_cv_deplibs_check_method=pass_all
7158    ;;
7159  sequent)
7160    lt_cv_file_magic_cmd='/bin/file'
7161    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7162    ;;
7163  sni)
7164    lt_cv_file_magic_cmd='/bin/file'
7165    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7166    lt_cv_file_magic_test_file=/lib/libc.so
7167    ;;
7168  siemens)
7169    lt_cv_deplibs_check_method=pass_all
7170    ;;
7171  pc)
7172    lt_cv_deplibs_check_method=pass_all
7173    ;;
7174  esac
7175  ;;
7176
7177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7178  lt_cv_deplibs_check_method=pass_all
7179  ;;
7180esac
7181
7182fi
7183echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7184echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7185file_magic_cmd=$lt_cv_file_magic_cmd
7186deplibs_check_method=$lt_cv_deplibs_check_method
7187test -z "$deplibs_check_method" && deplibs_check_method=unknown
7188
7189
7190
7191
7192# If no C compiler was specified, use CC.
7193LTCC=${LTCC-"$CC"}
7194
7195# If no C compiler flags were specified, use CFLAGS.
7196LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7197
7198# Allow CC to be a program name with arguments.
7199compiler=$CC
7200
7201# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7202if test "${enable_libtool_lock+set}" = set; then
7203  enableval="$enable_libtool_lock"
7204
7205fi;
7206test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7207
7208# Some flags need to be propagated to the compiler or linker for good
7209# libtool support.
7210case $host in
7211ia64-*-hpux*)
7212  # Find out which ABI we are using.
7213  echo 'int i;' > conftest.$ac_ext
7214  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215  (eval $ac_compile) 2>&5
7216  ac_status=$?
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); }; then
7219    case `/usr/bin/file conftest.$ac_objext` in
7220    *ELF-32*)
7221      HPUX_IA64_MODE="32"
7222      ;;
7223    *ELF-64*)
7224      HPUX_IA64_MODE="64"
7225      ;;
7226    esac
7227  fi
7228  rm -rf conftest*
7229  ;;
7230*-*-irix6*)
7231  # Find out which ABI we are using.
7232  echo '#line 7232 "configure"' > conftest.$ac_ext
7233  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234  (eval $ac_compile) 2>&5
7235  ac_status=$?
7236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237  (exit $ac_status); }; then
7238   if test "$lt_cv_prog_gnu_ld" = yes; then
7239    case `/usr/bin/file conftest.$ac_objext` in
7240    *32-bit*)
7241      LD="${LD-ld} -melf32bsmip"
7242      ;;
7243    *N32*)
7244      LD="${LD-ld} -melf32bmipn32"
7245      ;;
7246    *64-bit*)
7247      LD="${LD-ld} -melf64bmip"
7248      ;;
7249    esac
7250   else
7251    case `/usr/bin/file conftest.$ac_objext` in
7252    *32-bit*)
7253      LD="${LD-ld} -32"
7254      ;;
7255    *N32*)
7256      LD="${LD-ld} -n32"
7257      ;;
7258    *64-bit*)
7259      LD="${LD-ld} -64"
7260      ;;
7261    esac
7262   fi
7263  fi
7264  rm -rf conftest*
7265  ;;
7266
7267x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7268  # Find out which ABI we are using.
7269  echo 'int i;' > conftest.$ac_ext
7270  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271  (eval $ac_compile) 2>&5
7272  ac_status=$?
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); }; then
7275    case `/usr/bin/file conftest.o` in
7276    *32-bit*)
7277      case $host in
7278        x86_64-*linux*)
7279          LD="${LD-ld} -m elf_i386"
7280          ;;
7281        ppc64-*linux*|powerpc64-*linux*)
7282          LD="${LD-ld} -m elf32ppclinux"
7283          ;;
7284        s390x-*linux*)
7285          LD="${LD-ld} -m elf_s390"
7286          ;;
7287        sparc64-*linux*)
7288          LD="${LD-ld} -m elf32_sparc"
7289          ;;
7290      esac
7291      ;;
7292    *64-bit*)
7293      case $host in
7294        x86_64-*linux*)
7295          LD="${LD-ld} -m elf_x86_64"
7296          ;;
7297        ppc*-*linux*|powerpc*-*linux*)
7298          LD="${LD-ld} -m elf64ppc"
7299          ;;
7300        s390*-*linux*)
7301          LD="${LD-ld} -m elf64_s390"
7302          ;;
7303        sparc*-*linux*)
7304          LD="${LD-ld} -m elf64_sparc"
7305          ;;
7306      esac
7307      ;;
7308    esac
7309  fi
7310  rm -rf conftest*
7311  ;;
7312
7313*-*-sco3.2v5*)
7314  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7315  SAVE_CFLAGS="$CFLAGS"
7316  CFLAGS="$CFLAGS -belf"
7317  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7318echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7319if test "${lt_cv_cc_needs_belf+set}" = set; then
7320  echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322  ac_ext=c
7323ac_cpp='$CPP $CPPFLAGS'
7324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328     cat >conftest.$ac_ext <<_ACEOF
7329/* confdefs.h.  */
7330_ACEOF
7331cat confdefs.h >>conftest.$ac_ext
7332cat >>conftest.$ac_ext <<_ACEOF
7333/* end confdefs.h.  */
7334
7335#ifdef F77_DUMMY_MAIN
7336
7337#  ifdef __cplusplus
7338     extern "C"
7339#  endif
7340   int F77_DUMMY_MAIN() { return 1; }
7341
7342#endif
7343int
7344main ()
7345{
7346
7347  ;
7348  return 0;
7349}
7350_ACEOF
7351rm -f conftest.$ac_objext conftest$ac_exeext
7352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353  (eval $ac_link) 2>conftest.er1
7354  ac_status=$?
7355  grep -v '^ *+' conftest.er1 >conftest.err
7356  rm -f conftest.er1
7357  cat conftest.err >&5
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); } &&
7360         { ac_try='test -z "$ac_c_werror_flag"
7361                         || test ! -s conftest.err'
7362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363  (eval $ac_try) 2>&5
7364  ac_status=$?
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); }; } &&
7367         { ac_try='test -s conftest$ac_exeext'
7368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369  (eval $ac_try) 2>&5
7370  ac_status=$?
7371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372  (exit $ac_status); }; }; then
7373  lt_cv_cc_needs_belf=yes
7374else
7375  echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378lt_cv_cc_needs_belf=no
7379fi
7380rm -f conftest.err conftest.$ac_objext \
7381      conftest$ac_exeext conftest.$ac_ext
7382     ac_ext=c
7383ac_cpp='$CPP $CPPFLAGS'
7384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387
7388fi
7389echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7390echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7391  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7393    CFLAGS="$SAVE_CFLAGS"
7394  fi
7395  ;;
7396sparc*-*solaris*)
7397  # Find out which ABI we are using.
7398  echo 'int i;' > conftest.$ac_ext
7399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400  (eval $ac_compile) 2>&5
7401  ac_status=$?
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); }; then
7404    case `/usr/bin/file conftest.o` in
7405    *64-bit*)
7406      case $lt_cv_prog_gnu_ld in
7407      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7408      *)    LD="${LD-ld} -64" ;;
7409      esac
7410      ;;
7411    esac
7412  fi
7413  rm -rf conftest*
7414  ;;
7415
7416
7417esac
7418
7419need_locks="$enable_libtool_lock"
7420
7421
7422ac_ext=c
7423ac_cpp='$CPP $CPPFLAGS'
7424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7428echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7429# On Suns, sometimes $CPP names a directory.
7430if test -n "$CPP" && test -d "$CPP"; then
7431  CPP=
7432fi
7433if test -z "$CPP"; then
7434  if test "${ac_cv_prog_CPP+set}" = set; then
7435  echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437      # Double quotes because CPP needs to be expanded
7438    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7439    do
7440      ac_preproc_ok=false
7441for ac_c_preproc_warn_flag in '' yes
7442do
7443  # Use a header file that comes with gcc, so configuring glibc
7444  # with a fresh cross-compiler works.
7445  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7446  # <limits.h> exists even on freestanding compilers.
7447  # On the NeXT, cc -E runs the code through the compiler's parser,
7448  # not just through cpp. "Syntax error" is here to catch this case.
7449  cat >conftest.$ac_ext <<_ACEOF
7450/* confdefs.h.  */
7451_ACEOF
7452cat confdefs.h >>conftest.$ac_ext
7453cat >>conftest.$ac_ext <<_ACEOF
7454/* end confdefs.h.  */
7455#ifdef __STDC__
7456# include <limits.h>
7457#else
7458# include <assert.h>
7459#endif
7460                     Syntax error
7461_ACEOF
7462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7464  ac_status=$?
7465  grep -v '^ *+' conftest.er1 >conftest.err
7466  rm -f conftest.er1
7467  cat conftest.err >&5
7468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469  (exit $ac_status); } >/dev/null; then
7470  if test -s conftest.err; then
7471    ac_cpp_err=$ac_c_preproc_warn_flag
7472    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7473  else
7474    ac_cpp_err=
7475  fi
7476else
7477  ac_cpp_err=yes
7478fi
7479if test -z "$ac_cpp_err"; then
7480  :
7481else
7482  echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485  # Broken: fails on valid input.
7486continue
7487fi
7488rm -f conftest.err conftest.$ac_ext
7489
7490  # OK, works on sane cases.  Now check whether non-existent headers
7491  # can be detected and how.
7492  cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498#include <ac_nonexistent.h>
7499_ACEOF
7500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7501  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7502  ac_status=$?
7503  grep -v '^ *+' conftest.er1 >conftest.err
7504  rm -f conftest.er1
7505  cat conftest.err >&5
7506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507  (exit $ac_status); } >/dev/null; then
7508  if test -s conftest.err; then
7509    ac_cpp_err=$ac_c_preproc_warn_flag
7510    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7511  else
7512    ac_cpp_err=
7513  fi
7514else
7515  ac_cpp_err=yes
7516fi
7517if test -z "$ac_cpp_err"; then
7518  # Broken: success on invalid input.
7519continue
7520else
7521  echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524  # Passes both tests.
7525ac_preproc_ok=:
7526break
7527fi
7528rm -f conftest.err conftest.$ac_ext
7529
7530done
7531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7532rm -f conftest.err conftest.$ac_ext
7533if $ac_preproc_ok; then
7534  break
7535fi
7536
7537    done
7538    ac_cv_prog_CPP=$CPP
7539
7540fi
7541  CPP=$ac_cv_prog_CPP
7542else
7543  ac_cv_prog_CPP=$CPP
7544fi
7545echo "$as_me:$LINENO: result: $CPP" >&5
7546echo "${ECHO_T}$CPP" >&6
7547ac_preproc_ok=false
7548for ac_c_preproc_warn_flag in '' yes
7549do
7550  # Use a header file that comes with gcc, so configuring glibc
7551  # with a fresh cross-compiler works.
7552  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553  # <limits.h> exists even on freestanding compilers.
7554  # On the NeXT, cc -E runs the code through the compiler's parser,
7555  # not just through cpp. "Syntax error" is here to catch this case.
7556  cat >conftest.$ac_ext <<_ACEOF
7557/* confdefs.h.  */
7558_ACEOF
7559cat confdefs.h >>conftest.$ac_ext
7560cat >>conftest.$ac_ext <<_ACEOF
7561/* end confdefs.h.  */
7562#ifdef __STDC__
7563# include <limits.h>
7564#else
7565# include <assert.h>
7566#endif
7567                     Syntax error
7568_ACEOF
7569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7570  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7571  ac_status=$?
7572  grep -v '^ *+' conftest.er1 >conftest.err
7573  rm -f conftest.er1
7574  cat conftest.err >&5
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); } >/dev/null; then
7577  if test -s conftest.err; then
7578    ac_cpp_err=$ac_c_preproc_warn_flag
7579    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7580  else
7581    ac_cpp_err=
7582  fi
7583else
7584  ac_cpp_err=yes
7585fi
7586if test -z "$ac_cpp_err"; then
7587  :
7588else
7589  echo "$as_me: failed program was:" >&5
7590sed 's/^/| /' conftest.$ac_ext >&5
7591
7592  # Broken: fails on valid input.
7593continue
7594fi
7595rm -f conftest.err conftest.$ac_ext
7596
7597  # OK, works on sane cases.  Now check whether non-existent headers
7598  # can be detected and how.
7599  cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h.  */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h.  */
7605#include <ac_nonexistent.h>
7606_ACEOF
7607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7609  ac_status=$?
7610  grep -v '^ *+' conftest.er1 >conftest.err
7611  rm -f conftest.er1
7612  cat conftest.err >&5
7613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614  (exit $ac_status); } >/dev/null; then
7615  if test -s conftest.err; then
7616    ac_cpp_err=$ac_c_preproc_warn_flag
7617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7618  else
7619    ac_cpp_err=
7620  fi
7621else
7622  ac_cpp_err=yes
7623fi
7624if test -z "$ac_cpp_err"; then
7625  # Broken: success on invalid input.
7626continue
7627else
7628  echo "$as_me: failed program was:" >&5
7629sed 's/^/| /' conftest.$ac_ext >&5
7630
7631  # Passes both tests.
7632ac_preproc_ok=:
7633break
7634fi
7635rm -f conftest.err conftest.$ac_ext
7636
7637done
7638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7639rm -f conftest.err conftest.$ac_ext
7640if $ac_preproc_ok; then
7641  :
7642else
7643  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7644See \`config.log' for more details." >&5
7645echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7646See \`config.log' for more details." >&2;}
7647   { (exit 1); exit 1; }; }
7648fi
7649
7650ac_ext=c
7651ac_cpp='$CPP $CPPFLAGS'
7652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656
7657echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7658echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7659if test "${ac_cv_header_stdc+set}" = set; then
7660  echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662  cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h.  */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h.  */
7668#include <stdlib.h>
7669#include <stdarg.h>
7670#include <string.h>
7671#include <float.h>
7672
7673#ifdef F77_DUMMY_MAIN
7674
7675#  ifdef __cplusplus
7676     extern "C"
7677#  endif
7678   int F77_DUMMY_MAIN() { return 1; }
7679
7680#endif
7681int
7682main ()
7683{
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext
7690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691  (eval $ac_compile) 2>conftest.er1
7692  ac_status=$?
7693  grep -v '^ *+' conftest.er1 >conftest.err
7694  rm -f conftest.er1
7695  cat conftest.err >&5
7696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697  (exit $ac_status); } &&
7698         { ac_try='test -z "$ac_c_werror_flag"
7699                         || test ! -s conftest.err'
7700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701  (eval $ac_try) 2>&5
7702  ac_status=$?
7703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704  (exit $ac_status); }; } &&
7705         { ac_try='test -s conftest.$ac_objext'
7706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707  (eval $ac_try) 2>&5
7708  ac_status=$?
7709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710  (exit $ac_status); }; }; then
7711  ac_cv_header_stdc=yes
7712else
7713  echo "$as_me: failed program was:" >&5
7714sed 's/^/| /' conftest.$ac_ext >&5
7715
7716ac_cv_header_stdc=no
7717fi
7718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7719
7720if test $ac_cv_header_stdc = yes; then
7721  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7722  cat >conftest.$ac_ext <<_ACEOF
7723/* confdefs.h.  */
7724_ACEOF
7725cat confdefs.h >>conftest.$ac_ext
7726cat >>conftest.$ac_ext <<_ACEOF
7727/* end confdefs.h.  */
7728#include <string.h>
7729
7730_ACEOF
7731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732  $EGREP "memchr" >/dev/null 2>&1; then
7733  :
7734else
7735  ac_cv_header_stdc=no
7736fi
7737rm -f conftest*
7738
7739fi
7740
7741if test $ac_cv_header_stdc = yes; then
7742  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7743  cat >conftest.$ac_ext <<_ACEOF
7744/* confdefs.h.  */
7745_ACEOF
7746cat confdefs.h >>conftest.$ac_ext
7747cat >>conftest.$ac_ext <<_ACEOF
7748/* end confdefs.h.  */
7749#include <stdlib.h>
7750
7751_ACEOF
7752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7753  $EGREP "free" >/dev/null 2>&1; then
7754  :
7755else
7756  ac_cv_header_stdc=no
7757fi
7758rm -f conftest*
7759
7760fi
7761
7762if test $ac_cv_header_stdc = yes; then
7763  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7764  if test "$cross_compiling" = yes; then
7765  :
7766else
7767  cat >conftest.$ac_ext <<_ACEOF
7768/* confdefs.h.  */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h.  */
7773#include <ctype.h>
7774#if ((' ' & 0x0FF) == 0x020)
7775# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7776# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7777#else
7778# define ISLOWER(c) \
7779                   (('a' <= (c) && (c) <= 'i') \
7780                     || ('j' <= (c) && (c) <= 'r') \
7781                     || ('s' <= (c) && (c) <= 'z'))
7782# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7783#endif
7784
7785#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7786int
7787main ()
7788{
7789  int i;
7790  for (i = 0; i < 256; i++)
7791    if (XOR (islower (i), ISLOWER (i))
7792        || toupper (i) != TOUPPER (i))
7793      exit(2);
7794  exit (0);
7795}
7796_ACEOF
7797rm -f conftest$ac_exeext
7798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799  (eval $ac_link) 2>&5
7800  ac_status=$?
7801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804  (eval $ac_try) 2>&5
7805  ac_status=$?
7806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807  (exit $ac_status); }; }; then
7808  :
7809else
7810  echo "$as_me: program exited with status $ac_status" >&5
7811echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814( exit $ac_status )
7815ac_cv_header_stdc=no
7816fi
7817rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7818fi
7819fi
7820fi
7821echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7822echo "${ECHO_T}$ac_cv_header_stdc" >&6
7823if test $ac_cv_header_stdc = yes; then
7824
7825cat >>confdefs.h <<\_ACEOF
7826#define STDC_HEADERS 1
7827_ACEOF
7828
7829fi
7830
7831# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7842                  inttypes.h stdint.h unistd.h
7843do
7844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7845echo "$as_me:$LINENO: checking for $ac_header" >&5
7846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7847if eval "test \"\${$as_ac_Header+set}\" = set"; then
7848  echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850  cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h.  */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h.  */
7856$ac_includes_default
7857
7858#include <$ac_header>
7859_ACEOF
7860rm -f conftest.$ac_objext
7861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7862  (eval $ac_compile) 2>conftest.er1
7863  ac_status=$?
7864  grep -v '^ *+' conftest.er1 >conftest.err
7865  rm -f conftest.er1
7866  cat conftest.err >&5
7867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868  (exit $ac_status); } &&
7869         { ac_try='test -z "$ac_c_werror_flag"
7870                         || test ! -s conftest.err'
7871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872  (eval $ac_try) 2>&5
7873  ac_status=$?
7874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875  (exit $ac_status); }; } &&
7876         { ac_try='test -s conftest.$ac_objext'
7877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878  (eval $ac_try) 2>&5
7879  ac_status=$?
7880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881  (exit $ac_status); }; }; then
7882  eval "$as_ac_Header=yes"
7883else
7884  echo "$as_me: failed program was:" >&5
7885sed 's/^/| /' conftest.$ac_ext >&5
7886
7887eval "$as_ac_Header=no"
7888fi
7889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7892echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7893if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894  cat >>confdefs.h <<_ACEOF
7895#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7896_ACEOF
7897
7898fi
7899
7900done
7901
7902
7903
7904for ac_header in dlfcn.h
7905do
7906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7907if eval "test \"\${$as_ac_Header+set}\" = set"; then
7908  echo "$as_me:$LINENO: checking for $ac_header" >&5
7909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911  echo $ECHO_N "(cached) $ECHO_C" >&6
7912fi
7913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7915else
7916  # Is the header compilable?
7917echo "$as_me:$LINENO: checking $ac_header usability" >&5
7918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7919cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h.  */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h.  */
7925$ac_includes_default
7926#include <$ac_header>
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930  (eval $ac_compile) 2>conftest.er1
7931  ac_status=$?
7932  grep -v '^ *+' conftest.er1 >conftest.err
7933  rm -f conftest.er1
7934  cat conftest.err >&5
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); } &&
7937         { ac_try='test -z "$ac_c_werror_flag"
7938                         || test ! -s conftest.err'
7939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940  (eval $ac_try) 2>&5
7941  ac_status=$?
7942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943  (exit $ac_status); }; } &&
7944         { ac_try='test -s conftest.$ac_objext'
7945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946  (eval $ac_try) 2>&5
7947  ac_status=$?
7948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); }; }; then
7950  ac_header_compiler=yes
7951else
7952  echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955ac_header_compiler=no
7956fi
7957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959echo "${ECHO_T}$ac_header_compiler" >&6
7960
7961# Is the header present?
7962echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7964cat >conftest.$ac_ext <<_ACEOF
7965/* confdefs.h.  */
7966_ACEOF
7967cat confdefs.h >>conftest.$ac_ext
7968cat >>conftest.$ac_ext <<_ACEOF
7969/* end confdefs.h.  */
7970#include <$ac_header>
7971_ACEOF
7972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7973  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7974  ac_status=$?
7975  grep -v '^ *+' conftest.er1 >conftest.err
7976  rm -f conftest.er1
7977  cat conftest.err >&5
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } >/dev/null; then
7980  if test -s conftest.err; then
7981    ac_cpp_err=$ac_c_preproc_warn_flag
7982    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7983  else
7984    ac_cpp_err=
7985  fi
7986else
7987  ac_cpp_err=yes
7988fi
7989if test -z "$ac_cpp_err"; then
7990  ac_header_preproc=yes
7991else
7992  echo "$as_me: failed program was:" >&5
7993sed 's/^/| /' conftest.$ac_ext >&5
7994
7995  ac_header_preproc=no
7996fi
7997rm -f conftest.err conftest.$ac_ext
7998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7999echo "${ECHO_T}$ac_header_preproc" >&6
8000
8001# So?  What about this header?
8002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8003  yes:no: )
8004    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8005echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8006    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8007echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8008    ac_header_preproc=yes
8009    ;;
8010  no:yes:* )
8011    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8012echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8013    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8014echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8015    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8016echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8017    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8018echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8019    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8021    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8022echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8023    (
8024      cat <<\_ASBOX
8025## --------------------------------------------------------------- ##
8026## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8027## --------------------------------------------------------------- ##
8028_ASBOX
8029    ) |
8030      sed "s/^/$as_me: WARNING:     /" >&2
8031    ;;
8032esac
8033echo "$as_me:$LINENO: checking for $ac_header" >&5
8034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8035if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  eval "$as_ac_Header=\$ac_header_preproc"
8039fi
8040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8042
8043fi
8044if test `eval echo '${'$as_ac_Header'}'` = yes; then
8045  cat >>confdefs.h <<_ACEOF
8046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8047_ACEOF
8048
8049fi
8050
8051done
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
8058if test -n "$ac_tool_prefix"; then
8059  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8060  do
8061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8063echo "$as_me:$LINENO: checking for $ac_word" >&5
8064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8065if test "${ac_cv_prog_CXX+set}" = set; then
8066  echo $ECHO_N "(cached) $ECHO_C" >&6
8067else
8068  if test -n "$CXX"; then
8069  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8070else
8071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072for as_dir in $PATH
8073do
8074  IFS=$as_save_IFS
8075  test -z "$as_dir" && as_dir=.
8076  for ac_exec_ext in '' $ac_executable_extensions; do
8077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8078    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8080    break 2
8081  fi
8082done
8083done
8084
8085fi
8086fi
8087CXX=$ac_cv_prog_CXX
8088if test -n "$CXX"; then
8089  echo "$as_me:$LINENO: result: $CXX" >&5
8090echo "${ECHO_T}$CXX" >&6
8091else
8092  echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6
8094fi
8095
8096    test -n "$CXX" && break
8097  done
8098fi
8099if test -z "$CXX"; then
8100  ac_ct_CXX=$CXX
8101  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8102do
8103  # Extract the first word of "$ac_prog", so it can be a program name with args.
8104set dummy $ac_prog; ac_word=$2
8105echo "$as_me:$LINENO: checking for $ac_word" >&5
8106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8107if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8108  echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110  if test -n "$ac_ct_CXX"; then
8111  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8112else
8113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114for as_dir in $PATH
8115do
8116  IFS=$as_save_IFS
8117  test -z "$as_dir" && as_dir=.
8118  for ac_exec_ext in '' $ac_executable_extensions; do
8119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120    ac_cv_prog_ac_ct_CXX="$ac_prog"
8121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8122    break 2
8123  fi
8124done
8125done
8126
8127fi
8128fi
8129ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8130if test -n "$ac_ct_CXX"; then
8131  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8132echo "${ECHO_T}$ac_ct_CXX" >&6
8133else
8134  echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
8136fi
8137
8138  test -n "$ac_ct_CXX" && break
8139done
8140test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8141
8142  CXX=$ac_ct_CXX
8143fi
8144
8145
8146# Provide some information about the compiler.
8147echo "$as_me:$LINENO:" \
8148     "checking for C++ compiler version" >&5
8149ac_compiler=`set X $ac_compile; echo $2`
8150{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8151  (eval $ac_compiler --version </dev/null >&5) 2>&5
8152  ac_status=$?
8153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154  (exit $ac_status); }
8155{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8156  (eval $ac_compiler -v </dev/null >&5) 2>&5
8157  ac_status=$?
8158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159  (exit $ac_status); }
8160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8161  (eval $ac_compiler -V </dev/null >&5) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); }
8165
8166echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8167echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8168if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8169  echo $ECHO_N "(cached) $ECHO_C" >&6
8170else
8171  cat >conftest.$ac_ext <<_ACEOF
8172/* confdefs.h.  */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
8176/* end confdefs.h.  */
8177
8178#ifdef F77_DUMMY_MAIN
8179
8180#  ifdef __cplusplus
8181     extern "C"
8182#  endif
8183   int F77_DUMMY_MAIN() { return 1; }
8184
8185#endif
8186int
8187main ()
8188{
8189#ifndef __GNUC__
8190       choke me
8191#endif
8192
8193  ;
8194  return 0;
8195}
8196_ACEOF
8197rm -f conftest.$ac_objext
8198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199  (eval $ac_compile) 2>conftest.er1
8200  ac_status=$?
8201  grep -v '^ *+' conftest.er1 >conftest.err
8202  rm -f conftest.er1
8203  cat conftest.err >&5
8204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205  (exit $ac_status); } &&
8206         { ac_try='test -z "$ac_cxx_werror_flag"
8207                         || test ! -s conftest.err'
8208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209  (eval $ac_try) 2>&5
8210  ac_status=$?
8211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212  (exit $ac_status); }; } &&
8213         { ac_try='test -s conftest.$ac_objext'
8214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215  (eval $ac_try) 2>&5
8216  ac_status=$?
8217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218  (exit $ac_status); }; }; then
8219  ac_compiler_gnu=yes
8220else
8221  echo "$as_me: failed program was:" >&5
8222sed 's/^/| /' conftest.$ac_ext >&5
8223
8224ac_compiler_gnu=no
8225fi
8226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8227ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8228
8229fi
8230echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8231echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8232GXX=`test $ac_compiler_gnu = yes && echo yes`
8233ac_test_CXXFLAGS=${CXXFLAGS+set}
8234ac_save_CXXFLAGS=$CXXFLAGS
8235CXXFLAGS="-g"
8236echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8237echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8238if test "${ac_cv_prog_cxx_g+set}" = set; then
8239  echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241  cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h.  */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h.  */
8247
8248#ifdef F77_DUMMY_MAIN
8249
8250#  ifdef __cplusplus
8251     extern "C"
8252#  endif
8253   int F77_DUMMY_MAIN() { return 1; }
8254
8255#endif
8256int
8257main ()
8258{
8259
8260  ;
8261  return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext
8265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8266  (eval $ac_compile) 2>conftest.er1
8267  ac_status=$?
8268  grep -v '^ *+' conftest.er1 >conftest.err
8269  rm -f conftest.er1
8270  cat conftest.err >&5
8271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272  (exit $ac_status); } &&
8273         { ac_try='test -z "$ac_cxx_werror_flag"
8274                         || test ! -s conftest.err'
8275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276  (eval $ac_try) 2>&5
8277  ac_status=$?
8278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279  (exit $ac_status); }; } &&
8280         { ac_try='test -s conftest.$ac_objext'
8281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282  (eval $ac_try) 2>&5
8283  ac_status=$?
8284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285  (exit $ac_status); }; }; then
8286  ac_cv_prog_cxx_g=yes
8287else
8288  echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
8291ac_cv_prog_cxx_g=no
8292fi
8293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8294fi
8295echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8296echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8297if test "$ac_test_CXXFLAGS" = set; then
8298  CXXFLAGS=$ac_save_CXXFLAGS
8299elif test $ac_cv_prog_cxx_g = yes; then
8300  if test "$GXX" = yes; then
8301    CXXFLAGS="-g -O2"
8302  else
8303    CXXFLAGS="-g"
8304  fi
8305else
8306  if test "$GXX" = yes; then
8307    CXXFLAGS="-O2"
8308  else
8309    CXXFLAGS=
8310  fi
8311fi
8312for ac_declaration in \
8313   '' \
8314   'extern "C" void std::exit (int) throw (); using std::exit;' \
8315   'extern "C" void std::exit (int); using std::exit;' \
8316   'extern "C" void exit (int) throw ();' \
8317   'extern "C" void exit (int);' \
8318   'void exit (int);'
8319do
8320  cat >conftest.$ac_ext <<_ACEOF
8321/* confdefs.h.  */
8322_ACEOF
8323cat confdefs.h >>conftest.$ac_ext
8324cat >>conftest.$ac_ext <<_ACEOF
8325/* end confdefs.h.  */
8326$ac_declaration
8327#include <stdlib.h>
8328#ifdef F77_DUMMY_MAIN
8329
8330#  ifdef __cplusplus
8331     extern "C"
8332#  endif
8333   int F77_DUMMY_MAIN() { return 1; }
8334
8335#endif
8336int
8337main ()
8338{
8339exit (42);
8340  ;
8341  return 0;
8342}
8343_ACEOF
8344rm -f conftest.$ac_objext
8345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346  (eval $ac_compile) 2>conftest.er1
8347  ac_status=$?
8348  grep -v '^ *+' conftest.er1 >conftest.err
8349  rm -f conftest.er1
8350  cat conftest.err >&5
8351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352  (exit $ac_status); } &&
8353         { ac_try='test -z "$ac_cxx_werror_flag"
8354                         || test ! -s conftest.err'
8355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356  (eval $ac_try) 2>&5
8357  ac_status=$?
8358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359  (exit $ac_status); }; } &&
8360         { ac_try='test -s conftest.$ac_objext'
8361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362  (eval $ac_try) 2>&5
8363  ac_status=$?
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); }; }; then
8366  :
8367else
8368  echo "$as_me: failed program was:" >&5
8369sed 's/^/| /' conftest.$ac_ext >&5
8370
8371continue
8372fi
8373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374  cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h.  */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h.  */
8380$ac_declaration
8381#ifdef F77_DUMMY_MAIN
8382
8383#  ifdef __cplusplus
8384     extern "C"
8385#  endif
8386   int F77_DUMMY_MAIN() { return 1; }
8387
8388#endif
8389int
8390main ()
8391{
8392exit (42);
8393  ;
8394  return 0;
8395}
8396_ACEOF
8397rm -f conftest.$ac_objext
8398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8399  (eval $ac_compile) 2>conftest.er1
8400  ac_status=$?
8401  grep -v '^ *+' conftest.er1 >conftest.err
8402  rm -f conftest.er1
8403  cat conftest.err >&5
8404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405  (exit $ac_status); } &&
8406         { ac_try='test -z "$ac_cxx_werror_flag"
8407                         || test ! -s conftest.err'
8408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409  (eval $ac_try) 2>&5
8410  ac_status=$?
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); }; } &&
8413         { ac_try='test -s conftest.$ac_objext'
8414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415  (eval $ac_try) 2>&5
8416  ac_status=$?
8417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418  (exit $ac_status); }; }; then
8419  break
8420else
8421  echo "$as_me: failed program was:" >&5
8422sed 's/^/| /' conftest.$ac_ext >&5
8423
8424fi
8425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426done
8427rm -f conftest*
8428if test -n "$ac_declaration"; then
8429  echo '#ifdef __cplusplus' >>confdefs.h
8430  echo $ac_declaration      >>confdefs.h
8431  echo '#endif'             >>confdefs.h
8432fi
8433
8434ac_ext=cc
8435ac_cpp='$CXXCPP $CPPFLAGS'
8436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8439
8440depcc="$CXX"  am_compiler_list=
8441
8442echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8443echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8444if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8445  echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8448  # We make a subdir and do the tests there.  Otherwise we can end up
8449  # making bogus files that we don't know about and never remove.  For
8450  # instance it was reported that on HP-UX the gcc test will end up
8451  # making a dummy file named `D' -- because `-MD' means `put the output
8452  # in D'.
8453  mkdir conftest.dir
8454  # Copy depcomp to subdir because otherwise we won't find it if we're
8455  # using a relative directory.
8456  cp "$am_depcomp" conftest.dir
8457  cd conftest.dir
8458  # We will build objects and dependencies in a subdirectory because
8459  # it helps to detect inapplicable dependency modes.  For instance
8460  # both Tru64's cc and ICC support -MD to output dependencies as a
8461  # side effect of compilation, but ICC will put the dependencies in
8462  # the current directory while Tru64 will put them in the object
8463  # directory.
8464  mkdir sub
8465
8466  am_cv_CXX_dependencies_compiler_type=none
8467  if test "$am_compiler_list" = ""; then
8468     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8469  fi
8470  for depmode in $am_compiler_list; do
8471    # Setup a source with many dependencies, because some compilers
8472    # like to wrap large dependency lists on column 80 (with \), and
8473    # we should not choose a depcomp mode which is confused by this.
8474    #
8475    # We need to recreate these files for each test, as the compiler may
8476    # overwrite some of them when testing with obscure command lines.
8477    # This happens at least with the AIX C compiler.
8478    : > sub/conftest.c
8479    for i in 1 2 3 4 5 6; do
8480      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8481      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8482      # Solaris 8's {/usr,}/bin/sh.
8483      touch sub/conftst$i.h
8484    done
8485    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8486
8487    case $depmode in
8488    nosideeffect)
8489      # after this tag, mechanisms are not by side-effect, so they'll
8490      # only be used when explicitly requested
8491      if test "x$enable_dependency_tracking" = xyes; then
8492        continue
8493      else
8494        break
8495      fi
8496      ;;
8497    none) break ;;
8498    esac
8499    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8500    # mode.  It turns out that the SunPro C++ compiler does not properly
8501    # handle `-M -o', and we need to detect this.
8502    if depmode=$depmode \
8503       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8504       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8505       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8506         >/dev/null 2>conftest.err &&
8507       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8508       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8509       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8510      # icc doesn't choke on unknown options, it will just issue warnings
8511      # or remarks (even with -Werror).  So we grep stderr for any message
8512      # that says an option was ignored or not supported.
8513      # When given -MP, icc 7.0 and 7.1 complain thusly:
8514      #   icc: Command line warning: ignoring option '-M'; no argument required
8515      # The diagnosis changed in icc 8.0:
8516      #   icc: Command line remark: option '-MP' not supported
8517      if (grep 'ignoring option' conftest.err ||
8518          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8519        am_cv_CXX_dependencies_compiler_type=$depmode
8520        break
8521      fi
8522    fi
8523  done
8524
8525  cd ..
8526  rm -rf conftest.dir
8527else
8528  am_cv_CXX_dependencies_compiler_type=none
8529fi
8530
8531fi
8532echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8533echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8534CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8535
8536
8537
8538if
8539  test "x$enable_dependency_tracking" != xno \
8540  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8541  am__fastdepCXX_TRUE=
8542  am__fastdepCXX_FALSE='#'
8543else
8544  am__fastdepCXX_TRUE='#'
8545  am__fastdepCXX_FALSE=
8546fi
8547
8548
8549depcc="$CXX"  am_compiler_list=
8550
8551echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8552echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8553if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8554  echo $ECHO_N "(cached) $ECHO_C" >&6
8555else
8556  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8557  # We make a subdir and do the tests there.  Otherwise we can end up
8558  # making bogus files that we don't know about and never remove.  For
8559  # instance it was reported that on HP-UX the gcc test will end up
8560  # making a dummy file named `D' -- because `-MD' means `put the output
8561  # in D'.
8562  mkdir conftest.dir
8563  # Copy depcomp to subdir because otherwise we won't find it if we're
8564  # using a relative directory.
8565  cp "$am_depcomp" conftest.dir
8566  cd conftest.dir
8567  # We will build objects and dependencies in a subdirectory because
8568  # it helps to detect inapplicable dependency modes.  For instance
8569  # both Tru64's cc and ICC support -MD to output dependencies as a
8570  # side effect of compilation, but ICC will put the dependencies in
8571  # the current directory while Tru64 will put them in the object
8572  # directory.
8573  mkdir sub
8574
8575  am_cv_CXX_dependencies_compiler_type=none
8576  if test "$am_compiler_list" = ""; then
8577     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8578  fi
8579  for depmode in $am_compiler_list; do
8580    # Setup a source with many dependencies, because some compilers
8581    # like to wrap large dependency lists on column 80 (with \), and
8582    # we should not choose a depcomp mode which is confused by this.
8583    #
8584    # We need to recreate these files for each test, as the compiler may
8585    # overwrite some of them when testing with obscure command lines.
8586    # This happens at least with the AIX C compiler.
8587    : > sub/conftest.c
8588    for i in 1 2 3 4 5 6; do
8589      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8590      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8591      # Solaris 8's {/usr,}/bin/sh.
8592      touch sub/conftst$i.h
8593    done
8594    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8595
8596    case $depmode in
8597    nosideeffect)
8598      # after this tag, mechanisms are not by side-effect, so they'll
8599      # only be used when explicitly requested
8600      if test "x$enable_dependency_tracking" = xyes; then
8601        continue
8602      else
8603        break
8604      fi
8605      ;;
8606    none) break ;;
8607    esac
8608    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8609    # mode.  It turns out that the SunPro C++ compiler does not properly
8610    # handle `-M -o', and we need to detect this.
8611    if depmode=$depmode \
8612       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8613       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8614       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8615         >/dev/null 2>conftest.err &&
8616       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8617       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8618       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8619      # icc doesn't choke on unknown options, it will just issue warnings
8620      # or remarks (even with -Werror).  So we grep stderr for any message
8621      # that says an option was ignored or not supported.
8622      # When given -MP, icc 7.0 and 7.1 complain thusly:
8623      #   icc: Command line warning: ignoring option '-M'; no argument required
8624      # The diagnosis changed in icc 8.0:
8625      #   icc: Command line remark: option '-MP' not supported
8626      if (grep 'ignoring option' conftest.err ||
8627          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8628        am_cv_CXX_dependencies_compiler_type=$depmode
8629        break
8630      fi
8631    fi
8632  done
8633
8634  cd ..
8635  rm -rf conftest.dir
8636else
8637  am_cv_CXX_dependencies_compiler_type=none
8638fi
8639
8640fi
8641echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8642echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8643CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8644
8645
8646
8647if
8648  test "x$enable_dependency_tracking" != xno \
8649  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8650  am__fastdepCXX_TRUE=
8651  am__fastdepCXX_FALSE='#'
8652else
8653  am__fastdepCXX_TRUE='#'
8654  am__fastdepCXX_FALSE=
8655fi
8656
8657
8658
8659
8660if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8661    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8662    (test "X$CXX" != "Xg++"))) ; then
8663  ac_ext=cc
8664ac_cpp='$CXXCPP $CPPFLAGS'
8665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8668echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8669echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8670if test -z "$CXXCPP"; then
8671  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8672  echo $ECHO_N "(cached) $ECHO_C" >&6
8673else
8674      # Double quotes because CXXCPP needs to be expanded
8675    for CXXCPP in "$CXX -E" "/lib/cpp"
8676    do
8677      ac_preproc_ok=false
8678for ac_cxx_preproc_warn_flag in '' yes
8679do
8680  # Use a header file that comes with gcc, so configuring glibc
8681  # with a fresh cross-compiler works.
8682  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8683  # <limits.h> exists even on freestanding compilers.
8684  # On the NeXT, cc -E runs the code through the compiler's parser,
8685  # not just through cpp. "Syntax error" is here to catch this case.
8686  cat >conftest.$ac_ext <<_ACEOF
8687/* confdefs.h.  */
8688_ACEOF
8689cat confdefs.h >>conftest.$ac_ext
8690cat >>conftest.$ac_ext <<_ACEOF
8691/* end confdefs.h.  */
8692#ifdef __STDC__
8693# include <limits.h>
8694#else
8695# include <assert.h>
8696#endif
8697                     Syntax error
8698_ACEOF
8699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8700  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8701  ac_status=$?
8702  grep -v '^ *+' conftest.er1 >conftest.err
8703  rm -f conftest.er1
8704  cat conftest.err >&5
8705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706  (exit $ac_status); } >/dev/null; then
8707  if test -s conftest.err; then
8708    ac_cpp_err=$ac_cxx_preproc_warn_flag
8709    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8710  else
8711    ac_cpp_err=
8712  fi
8713else
8714  ac_cpp_err=yes
8715fi
8716if test -z "$ac_cpp_err"; then
8717  :
8718else
8719  echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722  # Broken: fails on valid input.
8723continue
8724fi
8725rm -f conftest.err conftest.$ac_ext
8726
8727  # OK, works on sane cases.  Now check whether non-existent headers
8728  # can be detected and how.
8729  cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h.  */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h.  */
8735#include <ac_nonexistent.h>
8736_ACEOF
8737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8738  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8739  ac_status=$?
8740  grep -v '^ *+' conftest.er1 >conftest.err
8741  rm -f conftest.er1
8742  cat conftest.err >&5
8743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744  (exit $ac_status); } >/dev/null; then
8745  if test -s conftest.err; then
8746    ac_cpp_err=$ac_cxx_preproc_warn_flag
8747    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8748  else
8749    ac_cpp_err=
8750  fi
8751else
8752  ac_cpp_err=yes
8753fi
8754if test -z "$ac_cpp_err"; then
8755  # Broken: success on invalid input.
8756continue
8757else
8758  echo "$as_me: failed program was:" >&5
8759sed 's/^/| /' conftest.$ac_ext >&5
8760
8761  # Passes both tests.
8762ac_preproc_ok=:
8763break
8764fi
8765rm -f conftest.err conftest.$ac_ext
8766
8767done
8768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8769rm -f conftest.err conftest.$ac_ext
8770if $ac_preproc_ok; then
8771  break
8772fi
8773
8774    done
8775    ac_cv_prog_CXXCPP=$CXXCPP
8776
8777fi
8778  CXXCPP=$ac_cv_prog_CXXCPP
8779else
8780  ac_cv_prog_CXXCPP=$CXXCPP
8781fi
8782echo "$as_me:$LINENO: result: $CXXCPP" >&5
8783echo "${ECHO_T}$CXXCPP" >&6
8784ac_preproc_ok=false
8785for ac_cxx_preproc_warn_flag in '' yes
8786do
8787  # Use a header file that comes with gcc, so configuring glibc
8788  # with a fresh cross-compiler works.
8789  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8790  # <limits.h> exists even on freestanding compilers.
8791  # On the NeXT, cc -E runs the code through the compiler's parser,
8792  # not just through cpp. "Syntax error" is here to catch this case.
8793  cat >conftest.$ac_ext <<_ACEOF
8794/* confdefs.h.  */
8795_ACEOF
8796cat confdefs.h >>conftest.$ac_ext
8797cat >>conftest.$ac_ext <<_ACEOF
8798/* end confdefs.h.  */
8799#ifdef __STDC__
8800# include <limits.h>
8801#else
8802# include <assert.h>
8803#endif
8804                     Syntax error
8805_ACEOF
8806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8807  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8808  ac_status=$?
8809  grep -v '^ *+' conftest.er1 >conftest.err
8810  rm -f conftest.er1
8811  cat conftest.err >&5
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); } >/dev/null; then
8814  if test -s conftest.err; then
8815    ac_cpp_err=$ac_cxx_preproc_warn_flag
8816    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8817  else
8818    ac_cpp_err=
8819  fi
8820else
8821  ac_cpp_err=yes
8822fi
8823if test -z "$ac_cpp_err"; then
8824  :
8825else
8826  echo "$as_me: failed program was:" >&5
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
8829  # Broken: fails on valid input.
8830continue
8831fi
8832rm -f conftest.err conftest.$ac_ext
8833
8834  # OK, works on sane cases.  Now check whether non-existent headers
8835  # can be detected and how.
8836  cat >conftest.$ac_ext <<_ACEOF
8837/* confdefs.h.  */
8838_ACEOF
8839cat confdefs.h >>conftest.$ac_ext
8840cat >>conftest.$ac_ext <<_ACEOF
8841/* end confdefs.h.  */
8842#include <ac_nonexistent.h>
8843_ACEOF
8844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8845  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8846  ac_status=$?
8847  grep -v '^ *+' conftest.er1 >conftest.err
8848  rm -f conftest.er1
8849  cat conftest.err >&5
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); } >/dev/null; then
8852  if test -s conftest.err; then
8853    ac_cpp_err=$ac_cxx_preproc_warn_flag
8854    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8855  else
8856    ac_cpp_err=
8857  fi
8858else
8859  ac_cpp_err=yes
8860fi
8861if test -z "$ac_cpp_err"; then
8862  # Broken: success on invalid input.
8863continue
8864else
8865  echo "$as_me: failed program was:" >&5
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
8868  # Passes both tests.
8869ac_preproc_ok=:
8870break
8871fi
8872rm -f conftest.err conftest.$ac_ext
8873
8874done
8875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8876rm -f conftest.err conftest.$ac_ext
8877if $ac_preproc_ok; then
8878  :
8879else
8880  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8881See \`config.log' for more details." >&5
8882echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8883See \`config.log' for more details." >&2;}
8884   { (exit 1); exit 1; }; }
8885fi
8886
8887ac_ext=cc
8888ac_cpp='$CXXCPP $CPPFLAGS'
8889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8892
8893fi
8894
8895
8896
8897# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8898
8899# find the maximum length of command line arguments
8900echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8901echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8902if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905    i=0
8906  teststring="ABCD"
8907
8908  case $build_os in
8909  msdosdjgpp*)
8910    # On DJGPP, this test can blow up pretty badly due to problems in libc
8911    # (any single argument exceeding 2000 bytes causes a buffer overrun
8912    # during glob expansion).  Even if it were fixed, the result of this
8913    # check would be larger than it should be.
8914    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8915    ;;
8916
8917  gnu*)
8918    # Under GNU Hurd, this test is not required because there is
8919    # no limit to the length of command line arguments.
8920    # Libtool will interpret -1 as no limit whatsoever
8921    lt_cv_sys_max_cmd_len=-1;
8922    ;;
8923
8924  cygwin* | mingw*)
8925    # On Win9x/ME, this test blows up -- it succeeds, but takes
8926    # about 5 minutes as the teststring grows exponentially.
8927    # Worse, since 9x/ME are not pre-emptively multitasking,
8928    # you end up with a "frozen" computer, even though with patience
8929    # the test eventually succeeds (with a max line length of 256k).
8930    # Instead, let's just punt: use the minimum linelength reported by
8931    # all of the supported platforms: 8192 (on NT/2K/XP).
8932    lt_cv_sys_max_cmd_len=8192;
8933    ;;
8934
8935  amigaos*)
8936    # On AmigaOS with pdksh, this test takes hours, literally.
8937    # So we just punt and use a minimum line length of 8192.
8938    lt_cv_sys_max_cmd_len=8192;
8939    ;;
8940
8941  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8942    # This has been around since 386BSD, at least.  Likely further.
8943    if test -x /sbin/sysctl; then
8944      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8945    elif test -x /usr/sbin/sysctl; then
8946      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8947    else
8948      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8949    fi
8950    # And add a safety zone
8951    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8952    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8953    ;;
8954
8955  interix*)
8956    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8957    lt_cv_sys_max_cmd_len=196608
8958    ;;
8959
8960  osf*)
8961    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8962    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8963    # nice to cause kernel panics so lets avoid the loop below.
8964    # First set a reasonable default.
8965    lt_cv_sys_max_cmd_len=16384
8966    #
8967    if test -x /sbin/sysconfig; then
8968      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8969        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8970      esac
8971    fi
8972    ;;
8973  sco3.2v5*)
8974    lt_cv_sys_max_cmd_len=102400
8975    ;;
8976  sysv5* | sco5v6* | sysv4.2uw2*)
8977    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8978    if test -n "$kargmax"; then
8979      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8980    else
8981      lt_cv_sys_max_cmd_len=32768
8982    fi
8983    ;;
8984  *)
8985    # If test is not a shell built-in, we'll probably end up computing a
8986    # maximum length that is only half of the actual maximum length, but
8987    # we can't tell.
8988    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8989    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8990               = "XX$teststring") >/dev/null 2>&1 &&
8991            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8992            lt_cv_sys_max_cmd_len=$new_result &&
8993            test $i != 17 # 1/2 MB should be enough
8994    do
8995      i=`expr $i + 1`
8996      teststring=$teststring$teststring
8997    done
8998    teststring=
8999    # Add a significant safety factor because C++ compilers can tack on massive
9000    # amounts of additional arguments before passing them to the linker.
9001    # It appears as though 1/2 is a usable value.
9002    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9003    ;;
9004  esac
9005
9006fi
9007
9008if test -n $lt_cv_sys_max_cmd_len ; then
9009  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9010echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9011else
9012  echo "$as_me:$LINENO: result: none" >&5
9013echo "${ECHO_T}none" >&6
9014fi
9015
9016
9017
9018
9019# Check for command to grab the raw symbol name followed by C symbol from nm.
9020echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9021echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9022if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9023  echo $ECHO_N "(cached) $ECHO_C" >&6
9024else
9025
9026# These are sane defaults that work on at least a few old systems.
9027# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9028
9029# Character class describing NM global symbol codes.
9030symcode='[BCDEGRST]'
9031
9032# Regexp to match symbols that can be accessed directly from C.
9033sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9034
9035# Transform an extracted symbol line into a proper C declaration
9036lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9037
9038# Transform an extracted symbol line into symbol name and symbol address
9039lt_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'"
9040
9041# Define system-specific variables.
9042case $host_os in
9043aix*)
9044  symcode='[BCDT]'
9045  ;;
9046cygwin* | mingw* | pw32*)
9047  symcode='[ABCDGISTW]'
9048  ;;
9049hpux*) # Its linker distinguishes data from code symbols
9050  if test "$host_cpu" = ia64; then
9051    symcode='[ABCDEGRST]'
9052  fi
9053  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9054  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'"
9055  ;;
9056linux*)
9057  if test "$host_cpu" = ia64; then
9058    symcode='[ABCDGIRSTW]'
9059    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9060    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'"
9061  fi
9062  ;;
9063irix* | nonstopux*)
9064  symcode='[BCDEGRST]'
9065  ;;
9066osf*)
9067  symcode='[BCDEGQRST]'
9068  ;;
9069solaris*)
9070  symcode='[BDRT]'
9071  ;;
9072sco3.2v5*)
9073  symcode='[DT]'
9074  ;;
9075sysv4.2uw2*)
9076  symcode='[DT]'
9077  ;;
9078sysv5* | sco5v6* | unixware* | OpenUNIX*)
9079  symcode='[ABDT]'
9080  ;;
9081sysv4)
9082  symcode='[DFNSTU]'
9083  ;;
9084esac
9085
9086# Handle CRLF in mingw tool chain
9087opt_cr=
9088case $build_os in
9089mingw*)
9090  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9091  ;;
9092esac
9093
9094# If we're using GNU nm, then use its standard symbol codes.
9095case `$NM -V 2>&1` in
9096*GNU* | *'with BFD'*)
9097  symcode='[ABCDGIRSTW]' ;;
9098esac
9099
9100# Try without a prefix undercore, then with it.
9101for ac_symprfx in "" "_"; do
9102
9103  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9104  symxfrm="\\1 $ac_symprfx\\2 \\2"
9105
9106  # Write the raw and C identifiers.
9107  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9108
9109  # Check to see that the pipe works correctly.
9110  pipe_works=no
9111
9112  rm -f conftest*
9113  cat > conftest.$ac_ext <<EOF
9114#ifdef __cplusplus
9115extern "C" {
9116#endif
9117char nm_test_var;
9118void nm_test_func(){}
9119#ifdef __cplusplus
9120}
9121#endif
9122int main(){nm_test_var='a';nm_test_func();return(0);}
9123EOF
9124
9125  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126  (eval $ac_compile) 2>&5
9127  ac_status=$?
9128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129  (exit $ac_status); }; then
9130    # Now try to grab the symbols.
9131    nlist=conftest.nm
9132    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9133  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); } && test -s "$nlist"; then
9137      # Try sorting and uniquifying the output.
9138      if sort "$nlist" | uniq > "$nlist"T; then
9139        mv -f "$nlist"T "$nlist"
9140      else
9141        rm -f "$nlist"T
9142      fi
9143
9144      # Make sure that we snagged all the symbols we need.
9145      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9146        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9147          cat <<EOF > conftest.$ac_ext
9148#ifdef __cplusplus
9149extern "C" {
9150#endif
9151
9152EOF
9153          # Now generate the symbol file.
9154          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9155
9156          cat <<EOF >> conftest.$ac_ext
9157#if defined (__STDC__) && __STDC__
9158# define lt_ptr_t void *
9159#else
9160# define lt_ptr_t char *
9161# define const
9162#endif
9163
9164/* The mapping between symbol names and symbols. */
9165const struct {
9166  const char *name;
9167  lt_ptr_t address;
9168}
9169lt_preloaded_symbols[] =
9170{
9171EOF
9172          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9173          cat <<\EOF >> conftest.$ac_ext
9174  {0, (lt_ptr_t) 0}
9175};
9176
9177#ifdef __cplusplus
9178}
9179#endif
9180EOF
9181          # Now try linking the two files.
9182          mv conftest.$ac_objext conftstm.$ac_objext
9183          lt_save_LIBS="$LIBS"
9184          lt_save_CFLAGS="$CFLAGS"
9185          LIBS="conftstm.$ac_objext"
9186          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9187          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188  (eval $ac_link) 2>&5
9189  ac_status=$?
9190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9192            pipe_works=yes
9193          fi
9194          LIBS="$lt_save_LIBS"
9195          CFLAGS="$lt_save_CFLAGS"
9196        else
9197          echo "cannot find nm_test_func in $nlist" >&5
9198        fi
9199      else
9200        echo "cannot find nm_test_var in $nlist" >&5
9201      fi
9202    else
9203      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9204    fi
9205  else
9206    echo "$progname: failed program was:" >&5
9207    cat conftest.$ac_ext >&5
9208  fi
9209  rm -f conftest* conftst*
9210
9211  # Do not use the global_symbol_pipe unless it works.
9212  if test "$pipe_works" = yes; then
9213    break
9214  else
9215    lt_cv_sys_global_symbol_pipe=
9216  fi
9217done
9218
9219fi
9220
9221if test -z "$lt_cv_sys_global_symbol_pipe"; then
9222  lt_cv_sys_global_symbol_to_cdecl=
9223fi
9224if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9225  echo "$as_me:$LINENO: result: failed" >&5
9226echo "${ECHO_T}failed" >&6
9227else
9228  echo "$as_me:$LINENO: result: ok" >&5
9229echo "${ECHO_T}ok" >&6
9230fi
9231
9232echo "$as_me:$LINENO: checking for objdir" >&5
9233echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9234if test "${lt_cv_objdir+set}" = set; then
9235  echo $ECHO_N "(cached) $ECHO_C" >&6
9236else
9237  rm -f .libs 2>/dev/null
9238mkdir .libs 2>/dev/null
9239if test -d .libs; then
9240  lt_cv_objdir=.libs
9241else
9242  # MS-DOS does not allow filenames that begin with a dot.
9243  lt_cv_objdir=_libs
9244fi
9245rmdir .libs 2>/dev/null
9246fi
9247echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9248echo "${ECHO_T}$lt_cv_objdir" >&6
9249objdir=$lt_cv_objdir
9250
9251
9252
9253
9254
9255case $host_os in
9256aix3*)
9257  # AIX sometimes has problems with the GCC collect2 program.  For some
9258  # reason, if we set the COLLECT_NAMES environment variable, the problems
9259  # vanish in a puff of smoke.
9260  if test "X${COLLECT_NAMES+set}" != Xset; then
9261    COLLECT_NAMES=
9262    export COLLECT_NAMES
9263  fi
9264  ;;
9265esac
9266
9267# Sed substitution that helps us do robust quoting.  It backslashifies
9268# metacharacters that are still active within double-quoted strings.
9269Xsed='sed -e 1s/^X//'
9270sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9271
9272# Same as above, but do not quote variable references.
9273double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9274
9275# Sed substitution to delay expansion of an escaped shell variable in a
9276# double_quote_subst'ed string.
9277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9278
9279# Sed substitution to avoid accidental globbing in evaled expressions
9280no_glob_subst='s/\*/\\\*/g'
9281
9282# Constants:
9283rm="rm -f"
9284
9285# Global variables:
9286default_ofile=libtool
9287can_build_shared=yes
9288
9289# All known linkers require a `.a' archive for static linking (except MSVC,
9290# which needs '.lib').
9291libext=a
9292ltmain="$ac_aux_dir/ltmain.sh"
9293ofile="$default_ofile"
9294with_gnu_ld="$lt_cv_prog_gnu_ld"
9295
9296if test -n "$ac_tool_prefix"; then
9297  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9298set dummy ${ac_tool_prefix}ar; ac_word=$2
9299echo "$as_me:$LINENO: checking for $ac_word" >&5
9300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9301if test "${ac_cv_prog_AR+set}" = set; then
9302  echo $ECHO_N "(cached) $ECHO_C" >&6
9303else
9304  if test -n "$AR"; then
9305  ac_cv_prog_AR="$AR" # Let the user override the test.
9306else
9307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308for as_dir in $PATH
9309do
9310  IFS=$as_save_IFS
9311  test -z "$as_dir" && as_dir=.
9312  for ac_exec_ext in '' $ac_executable_extensions; do
9313  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9314    ac_cv_prog_AR="${ac_tool_prefix}ar"
9315    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9316    break 2
9317  fi
9318done
9319done
9320
9321fi
9322fi
9323AR=$ac_cv_prog_AR
9324if test -n "$AR"; then
9325  echo "$as_me:$LINENO: result: $AR" >&5
9326echo "${ECHO_T}$AR" >&6
9327else
9328  echo "$as_me:$LINENO: result: no" >&5
9329echo "${ECHO_T}no" >&6
9330fi
9331
9332fi
9333if test -z "$ac_cv_prog_AR"; then
9334  ac_ct_AR=$AR
9335  # Extract the first word of "ar", so it can be a program name with args.
9336set dummy ar; ac_word=$2
9337echo "$as_me:$LINENO: checking for $ac_word" >&5
9338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9339if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9340  echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342  if test -n "$ac_ct_AR"; then
9343  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9344else
9345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346for as_dir in $PATH
9347do
9348  IFS=$as_save_IFS
9349  test -z "$as_dir" && as_dir=.
9350  for ac_exec_ext in '' $ac_executable_extensions; do
9351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9352    ac_cv_prog_ac_ct_AR="ar"
9353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9354    break 2
9355  fi
9356done
9357done
9358
9359  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9360fi
9361fi
9362ac_ct_AR=$ac_cv_prog_ac_ct_AR
9363if test -n "$ac_ct_AR"; then
9364  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9365echo "${ECHO_T}$ac_ct_AR" >&6
9366else
9367  echo "$as_me:$LINENO: result: no" >&5
9368echo "${ECHO_T}no" >&6
9369fi
9370
9371  AR=$ac_ct_AR
9372else
9373  AR="$ac_cv_prog_AR"
9374fi
9375
9376if test -n "$ac_tool_prefix"; then
9377  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9378set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9379echo "$as_me:$LINENO: checking for $ac_word" >&5
9380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9381if test "${ac_cv_prog_RANLIB+set}" = set; then
9382  echo $ECHO_N "(cached) $ECHO_C" >&6
9383else
9384  if test -n "$RANLIB"; then
9385  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9386else
9387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388for as_dir in $PATH
9389do
9390  IFS=$as_save_IFS
9391  test -z "$as_dir" && as_dir=.
9392  for ac_exec_ext in '' $ac_executable_extensions; do
9393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9394    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9396    break 2
9397  fi
9398done
9399done
9400
9401fi
9402fi
9403RANLIB=$ac_cv_prog_RANLIB
9404if test -n "$RANLIB"; then
9405  echo "$as_me:$LINENO: result: $RANLIB" >&5
9406echo "${ECHO_T}$RANLIB" >&6
9407else
9408  echo "$as_me:$LINENO: result: no" >&5
9409echo "${ECHO_T}no" >&6
9410fi
9411
9412fi
9413if test -z "$ac_cv_prog_RANLIB"; then
9414  ac_ct_RANLIB=$RANLIB
9415  # Extract the first word of "ranlib", so it can be a program name with args.
9416set dummy ranlib; ac_word=$2
9417echo "$as_me:$LINENO: checking for $ac_word" >&5
9418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9419if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9420  echo $ECHO_N "(cached) $ECHO_C" >&6
9421else
9422  if test -n "$ac_ct_RANLIB"; then
9423  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9424else
9425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428  IFS=$as_save_IFS
9429  test -z "$as_dir" && as_dir=.
9430  for ac_exec_ext in '' $ac_executable_extensions; do
9431  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9432    ac_cv_prog_ac_ct_RANLIB="ranlib"
9433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9434    break 2
9435  fi
9436done
9437done
9438
9439  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9440fi
9441fi
9442ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9443if test -n "$ac_ct_RANLIB"; then
9444  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9445echo "${ECHO_T}$ac_ct_RANLIB" >&6
9446else
9447  echo "$as_me:$LINENO: result: no" >&5
9448echo "${ECHO_T}no" >&6
9449fi
9450
9451  RANLIB=$ac_ct_RANLIB
9452else
9453  RANLIB="$ac_cv_prog_RANLIB"
9454fi
9455
9456if test -n "$ac_tool_prefix"; then
9457  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9458set dummy ${ac_tool_prefix}strip; ac_word=$2
9459echo "$as_me:$LINENO: checking for $ac_word" >&5
9460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9461if test "${ac_cv_prog_STRIP+set}" = set; then
9462  echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464  if test -n "$STRIP"; then
9465  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9466else
9467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468for as_dir in $PATH
9469do
9470  IFS=$as_save_IFS
9471  test -z "$as_dir" && as_dir=.
9472  for ac_exec_ext in '' $ac_executable_extensions; do
9473  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9474    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9475    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9476    break 2
9477  fi
9478done
9479done
9480
9481fi
9482fi
9483STRIP=$ac_cv_prog_STRIP
9484if test -n "$STRIP"; then
9485  echo "$as_me:$LINENO: result: $STRIP" >&5
9486echo "${ECHO_T}$STRIP" >&6
9487else
9488  echo "$as_me:$LINENO: result: no" >&5
9489echo "${ECHO_T}no" >&6
9490fi
9491
9492fi
9493if test -z "$ac_cv_prog_STRIP"; then
9494  ac_ct_STRIP=$STRIP
9495  # Extract the first word of "strip", so it can be a program name with args.
9496set dummy strip; ac_word=$2
9497echo "$as_me:$LINENO: checking for $ac_word" >&5
9498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9499if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9500  echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502  if test -n "$ac_ct_STRIP"; then
9503  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9504else
9505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506for as_dir in $PATH
9507do
9508  IFS=$as_save_IFS
9509  test -z "$as_dir" && as_dir=.
9510  for ac_exec_ext in '' $ac_executable_extensions; do
9511  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512    ac_cv_prog_ac_ct_STRIP="strip"
9513    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9514    break 2
9515  fi
9516done
9517done
9518
9519  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9520fi
9521fi
9522ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9523if test -n "$ac_ct_STRIP"; then
9524  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9525echo "${ECHO_T}$ac_ct_STRIP" >&6
9526else
9527  echo "$as_me:$LINENO: result: no" >&5
9528echo "${ECHO_T}no" >&6
9529fi
9530
9531  STRIP=$ac_ct_STRIP
9532else
9533  STRIP="$ac_cv_prog_STRIP"
9534fi
9535
9536
9537old_CC="$CC"
9538old_CFLAGS="$CFLAGS"
9539
9540# Set sane defaults for various variables
9541test -z "$AR" && AR=ar
9542test -z "$AR_FLAGS" && AR_FLAGS=cru
9543test -z "$AS" && AS=as
9544test -z "$CC" && CC=cc
9545test -z "$LTCC" && LTCC=$CC
9546test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9547test -z "$DLLTOOL" && DLLTOOL=dlltool
9548test -z "$LD" && LD=ld
9549test -z "$LN_S" && LN_S="ln -s"
9550test -z "$MAGIC_CMD" && MAGIC_CMD=file
9551test -z "$NM" && NM=nm
9552test -z "$SED" && SED=sed
9553test -z "$OBJDUMP" && OBJDUMP=objdump
9554test -z "$RANLIB" && RANLIB=:
9555test -z "$STRIP" && STRIP=:
9556test -z "$ac_objext" && ac_objext=o
9557
9558# Determine commands to create old-style static archives.
9559old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9560old_postinstall_cmds='chmod 644 $oldlib'
9561old_postuninstall_cmds=
9562
9563if test -n "$RANLIB"; then
9564  case $host_os in
9565  openbsd*)
9566    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9567    ;;
9568  *)
9569    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9570    ;;
9571  esac
9572  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9573fi
9574
9575for cc_temp in $compiler""; do
9576  case $cc_temp in
9577    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9578    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9579    \-*) ;;
9580    *) break;;
9581  esac
9582done
9583cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9584
9585
9586# Only perform the check for file, if the check method requires it
9587case $deplibs_check_method in
9588file_magic*)
9589  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9590    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9591echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9592if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9593  echo $ECHO_N "(cached) $ECHO_C" >&6
9594else
9595  case $MAGIC_CMD in
9596[\\/*] |  ?:[\\/]*)
9597  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9598  ;;
9599*)
9600  lt_save_MAGIC_CMD="$MAGIC_CMD"
9601  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9602  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9603  for ac_dir in $ac_dummy; do
9604    IFS="$lt_save_ifs"
9605    test -z "$ac_dir" && ac_dir=.
9606    if test -f $ac_dir/${ac_tool_prefix}file; then
9607      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9608      if test -n "$file_magic_test_file"; then
9609        case $deplibs_check_method in
9610        "file_magic "*)
9611          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9612          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9613          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9614            $EGREP "$file_magic_regex" > /dev/null; then
9615            :
9616          else
9617            cat <<EOF 1>&2
9618
9619*** Warning: the command libtool uses to detect shared libraries,
9620*** $file_magic_cmd, produces output that libtool cannot recognize.
9621*** The result is that libtool may fail to recognize shared libraries
9622*** as such.  This will affect the creation of libtool libraries that
9623*** depend on shared libraries, but programs linked with such libtool
9624*** libraries will work regardless of this problem.  Nevertheless, you
9625*** may want to report the problem to your system manager and/or to
9626*** bug-libtool@gnu.org
9627
9628EOF
9629          fi ;;
9630        esac
9631      fi
9632      break
9633    fi
9634  done
9635  IFS="$lt_save_ifs"
9636  MAGIC_CMD="$lt_save_MAGIC_CMD"
9637  ;;
9638esac
9639fi
9640
9641MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9642if test -n "$MAGIC_CMD"; then
9643  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9644echo "${ECHO_T}$MAGIC_CMD" >&6
9645else
9646  echo "$as_me:$LINENO: result: no" >&5
9647echo "${ECHO_T}no" >&6
9648fi
9649
9650if test -z "$lt_cv_path_MAGIC_CMD"; then
9651  if test -n "$ac_tool_prefix"; then
9652    echo "$as_me:$LINENO: checking for file" >&5
9653echo $ECHO_N "checking for file... $ECHO_C" >&6
9654if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9655  echo $ECHO_N "(cached) $ECHO_C" >&6
9656else
9657  case $MAGIC_CMD in
9658[\\/*] |  ?:[\\/]*)
9659  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9660  ;;
9661*)
9662  lt_save_MAGIC_CMD="$MAGIC_CMD"
9663  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9664  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9665  for ac_dir in $ac_dummy; do
9666    IFS="$lt_save_ifs"
9667    test -z "$ac_dir" && ac_dir=.
9668    if test -f $ac_dir/file; then
9669      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9670      if test -n "$file_magic_test_file"; then
9671        case $deplibs_check_method in
9672        "file_magic "*)
9673          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9674          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9675          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9676            $EGREP "$file_magic_regex" > /dev/null; then
9677            :
9678          else
9679            cat <<EOF 1>&2
9680
9681*** Warning: the command libtool uses to detect shared libraries,
9682*** $file_magic_cmd, produces output that libtool cannot recognize.
9683*** The result is that libtool may fail to recognize shared libraries
9684*** as such.  This will affect the creation of libtool libraries that
9685*** depend on shared libraries, but programs linked with such libtool
9686*** libraries will work regardless of this problem.  Nevertheless, you
9687*** may want to report the problem to your system manager and/or to
9688*** bug-libtool@gnu.org
9689
9690EOF
9691          fi ;;
9692        esac
9693      fi
9694      break
9695    fi
9696  done
9697  IFS="$lt_save_ifs"
9698  MAGIC_CMD="$lt_save_MAGIC_CMD"
9699  ;;
9700esac
9701fi
9702
9703MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9704if test -n "$MAGIC_CMD"; then
9705  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9706echo "${ECHO_T}$MAGIC_CMD" >&6
9707else
9708  echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
9710fi
9711
9712  else
9713    MAGIC_CMD=:
9714  fi
9715fi
9716
9717  fi
9718  ;;
9719esac
9720
9721enable_dlopen=no
9722enable_win32_dll=no
9723
9724# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9725if test "${enable_libtool_lock+set}" = set; then
9726  enableval="$enable_libtool_lock"
9727
9728fi;
9729test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9730
9731
9732# Check whether --with-pic or --without-pic was given.
9733if test "${with_pic+set}" = set; then
9734  withval="$with_pic"
9735  pic_mode="$withval"
9736else
9737  pic_mode=default
9738fi;
9739test -z "$pic_mode" && pic_mode=default
9740
9741# Use C for the default configuration in the libtool script
9742tagname=
9743lt_save_CC="$CC"
9744ac_ext=c
9745ac_cpp='$CPP $CPPFLAGS'
9746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748ac_compiler_gnu=$ac_cv_c_compiler_gnu
9749
9750
9751# Source file extension for C test sources.
9752ac_ext=c
9753
9754# Object file extension for compiled C test sources.
9755objext=o
9756objext=$objext
9757
9758# Code to be used in simple compile tests
9759lt_simple_compile_test_code="int some_variable = 0;\n"
9760
9761# Code to be used in simple link tests
9762lt_simple_link_test_code='int main(){return(0);}\n'
9763
9764
9765# If no C compiler was specified, use CC.
9766LTCC=${LTCC-"$CC"}
9767
9768# If no C compiler flags were specified, use CFLAGS.
9769LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9770
9771# Allow CC to be a program name with arguments.
9772compiler=$CC
9773
9774
9775# save warnings/boilerplate of simple test code
9776ac_outfile=conftest.$ac_objext
9777printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9778eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9779_lt_compiler_boilerplate=`cat conftest.err`
9780$rm conftest*
9781
9782ac_outfile=conftest.$ac_objext
9783printf "$lt_simple_link_test_code" >conftest.$ac_ext
9784eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9785_lt_linker_boilerplate=`cat conftest.err`
9786$rm conftest*
9787
9788
9789## CAVEAT EMPTOR:
9790## There is no encapsulation within the following macros, do not change
9791## the running order or otherwise move them around unless you know exactly
9792## what you are doing...
9793
9794lt_prog_compiler_no_builtin_flag=
9795
9796if test "$GCC" = yes; then
9797  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9798
9799
9800echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9801echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9802if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9803  echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805  lt_cv_prog_compiler_rtti_exceptions=no
9806  ac_outfile=conftest.$ac_objext
9807   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9808   lt_compiler_flag="-fno-rtti -fno-exceptions"
9809   # Insert the option either (1) after the last *FLAGS variable, or
9810   # (2) before a word containing "conftest.", or (3) at the end.
9811   # Note that $ac_compile itself does not contain backslashes and begins
9812   # with a dollar sign (not a hyphen), so the echo should work correctly.
9813   # The option is referenced via a variable to avoid confusing sed.
9814   lt_compile=`echo "$ac_compile" | $SED \
9815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9817   -e 's:$: $lt_compiler_flag:'`
9818   (eval echo "\"\$as_me:9818: $lt_compile\"" >&5)
9819   (eval "$lt_compile" 2>conftest.err)
9820   ac_status=$?
9821   cat conftest.err >&5
9822   echo "$as_me:9822: \$? = $ac_status" >&5
9823   if (exit $ac_status) && test -s "$ac_outfile"; then
9824     # The compiler can only warn and ignore the option if not recognized
9825     # So say no if there are warnings other than the usual output.
9826     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9827     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9828     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9829       lt_cv_prog_compiler_rtti_exceptions=yes
9830     fi
9831   fi
9832   $rm conftest*
9833
9834fi
9835echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9836echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9837
9838if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9839    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9840else
9841    :
9842fi
9843
9844fi
9845
9846lt_prog_compiler_wl=
9847lt_prog_compiler_pic=
9848lt_prog_compiler_static=
9849
9850echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9851echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9852
9853  if test "$GCC" = yes; then
9854    lt_prog_compiler_wl='-Wl,'
9855    lt_prog_compiler_static='-static'
9856
9857    case $host_os in
9858      aix*)
9859      # All AIX code is PIC.
9860      if test "$host_cpu" = ia64; then
9861        # AIX 5 now supports IA64 processor
9862        lt_prog_compiler_static='-Bstatic'
9863      fi
9864      ;;
9865
9866    amigaos*)
9867      # FIXME: we need at least 68020 code to build shared libraries, but
9868      # adding the `-m68020' flag to GCC prevents building anything better,
9869      # like `-m68040'.
9870      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9871      ;;
9872
9873    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9874      # PIC is the default for these OSes.
9875      ;;
9876
9877    mingw* | pw32* | os2*)
9878      # This hack is so that the source file can tell whether it is being
9879      # built for inclusion in a dll (and should export symbols for example).
9880      lt_prog_compiler_pic='-DDLL_EXPORT'
9881      ;;
9882
9883    darwin* | rhapsody*)
9884      # PIC is the default on this platform
9885      # Common symbols not allowed in MH_DYLIB files
9886      lt_prog_compiler_pic='-fno-common'
9887      ;;
9888
9889    interix3*)
9890      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9891      # Instead, we relocate shared libraries at runtime.
9892      ;;
9893
9894    msdosdjgpp*)
9895      # Just because we use GCC doesn't mean we suddenly get shared libraries
9896      # on systems that don't support them.
9897      lt_prog_compiler_can_build_shared=no
9898      enable_shared=no
9899      ;;
9900
9901    sysv4*MP*)
9902      if test -d /usr/nec; then
9903        lt_prog_compiler_pic=-Kconform_pic
9904      fi
9905      ;;
9906
9907    hpux*)
9908      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9909      # not for PA HP-UX.
9910      case $host_cpu in
9911      hppa*64*|ia64*)
9912        # +Z the default
9913        ;;
9914      *)
9915        lt_prog_compiler_pic='-fPIC'
9916        ;;
9917      esac
9918      ;;
9919
9920    *)
9921      lt_prog_compiler_pic='-fPIC'
9922      ;;
9923    esac
9924  else
9925    # PORTME Check for flag to pass linker flags through the system compiler.
9926    case $host_os in
9927    aix*)
9928      lt_prog_compiler_wl='-Wl,'
9929      if test "$host_cpu" = ia64; then
9930        # AIX 5 now supports IA64 processor
9931        lt_prog_compiler_static='-Bstatic'
9932      else
9933        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9934      fi
9935      ;;
9936      darwin*)
9937        # PIC is the default on this platform
9938        # Common symbols not allowed in MH_DYLIB files
9939       case $cc_basename in
9940         xlc*)
9941         lt_prog_compiler_pic='-qnocommon'
9942         lt_prog_compiler_wl='-Wl,'
9943         ;;
9944       esac
9945       ;;
9946
9947    mingw* | pw32* | os2*)
9948      # This hack is so that the source file can tell whether it is being
9949      # built for inclusion in a dll (and should export symbols for example).
9950      lt_prog_compiler_pic='-DDLL_EXPORT'
9951      ;;
9952
9953    hpux9* | hpux10* | hpux11*)
9954      lt_prog_compiler_wl='-Wl,'
9955      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9956      # not for PA HP-UX.
9957      case $host_cpu in
9958      hppa*64*|ia64*)
9959        # +Z the default
9960        ;;
9961      *)
9962        lt_prog_compiler_pic='+Z'
9963        ;;
9964      esac
9965      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9966      lt_prog_compiler_static='${wl}-a ${wl}archive'
9967      ;;
9968
9969    irix5* | irix6* | nonstopux*)
9970      lt_prog_compiler_wl='-Wl,'
9971      # PIC (with -KPIC) is the default.
9972      lt_prog_compiler_static='-non_shared'
9973      ;;
9974
9975    newsos6)
9976      lt_prog_compiler_pic='-KPIC'
9977      lt_prog_compiler_static='-Bstatic'
9978      ;;
9979
9980    linux*)
9981      case $cc_basename in
9982      icc* | ecc*)
9983        lt_prog_compiler_wl='-Wl,'
9984        lt_prog_compiler_pic='-KPIC'
9985        lt_prog_compiler_static='-static'
9986        ;;
9987      pgcc* | pgf77* | pgf90* | pgf95*)
9988        # Portland Group compilers (*not* the Pentium gcc compiler,
9989        # which looks to be a dead project)
9990        lt_prog_compiler_wl='-Wl,'
9991        lt_prog_compiler_pic='-fpic'
9992        lt_prog_compiler_static='-Bstatic'
9993        ;;
9994      ccc*)
9995        lt_prog_compiler_wl='-Wl,'
9996        # All Alpha code is PIC.
9997        lt_prog_compiler_static='-non_shared'
9998        ;;
9999      esac
10000      ;;
10001
10002    osf3* | osf4* | osf5*)
10003      lt_prog_compiler_wl='-Wl,'
10004      # All OSF/1 code is PIC.
10005      lt_prog_compiler_static='-non_shared'
10006      ;;
10007
10008    solaris*)
10009      lt_prog_compiler_pic='-KPIC'
10010      lt_prog_compiler_static='-Bstatic'
10011      case $cc_basename in
10012      f77* | f90* | f95*)
10013        lt_prog_compiler_wl='-Qoption ld ';;
10014      *)
10015        lt_prog_compiler_wl='-Wl,';;
10016      esac
10017      ;;
10018
10019    sunos4*)
10020      lt_prog_compiler_wl='-Qoption ld '
10021      lt_prog_compiler_pic='-PIC'
10022      lt_prog_compiler_static='-Bstatic'
10023      ;;
10024
10025    sysv4 | sysv4.2uw2* | sysv4.3*)
10026      lt_prog_compiler_wl='-Wl,'
10027      lt_prog_compiler_pic='-KPIC'
10028      lt_prog_compiler_static='-Bstatic'
10029      ;;
10030
10031    sysv4*MP*)
10032      if test -d /usr/nec ;then
10033        lt_prog_compiler_pic='-Kconform_pic'
10034        lt_prog_compiler_static='-Bstatic'
10035      fi
10036      ;;
10037
10038    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10039      lt_prog_compiler_wl='-Wl,'
10040      lt_prog_compiler_pic='-KPIC'
10041      lt_prog_compiler_static='-Bstatic'
10042      ;;
10043
10044    unicos*)
10045      lt_prog_compiler_wl='-Wl,'
10046      lt_prog_compiler_can_build_shared=no
10047      ;;
10048
10049    uts4*)
10050      lt_prog_compiler_pic='-pic'
10051      lt_prog_compiler_static='-Bstatic'
10052      ;;
10053
10054    *)
10055      lt_prog_compiler_can_build_shared=no
10056      ;;
10057    esac
10058  fi
10059
10060echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10061echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10062
10063#
10064# Check to make sure the PIC flag actually works.
10065#
10066if test -n "$lt_prog_compiler_pic"; then
10067
10068echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10069echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10070if test "${lt_prog_compiler_pic_works+set}" = set; then
10071  echo $ECHO_N "(cached) $ECHO_C" >&6
10072else
10073  lt_prog_compiler_pic_works=no
10074  ac_outfile=conftest.$ac_objext
10075   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10076   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10077   # Insert the option either (1) after the last *FLAGS variable, or
10078   # (2) before a word containing "conftest.", or (3) at the end.
10079   # Note that $ac_compile itself does not contain backslashes and begins
10080   # with a dollar sign (not a hyphen), so the echo should work correctly.
10081   # The option is referenced via a variable to avoid confusing sed.
10082   lt_compile=`echo "$ac_compile" | $SED \
10083   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10084   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10085   -e 's:$: $lt_compiler_flag:'`
10086   (eval echo "\"\$as_me:10086: $lt_compile\"" >&5)
10087   (eval "$lt_compile" 2>conftest.err)
10088   ac_status=$?
10089   cat conftest.err >&5
10090   echo "$as_me:10090: \$? = $ac_status" >&5
10091   if (exit $ac_status) && test -s "$ac_outfile"; then
10092     # The compiler can only warn and ignore the option if not recognized
10093     # So say no if there are warnings other than the usual output.
10094     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10095     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10096     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10097       lt_prog_compiler_pic_works=yes
10098     fi
10099   fi
10100   $rm conftest*
10101
10102fi
10103echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10104echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10105
10106if test x"$lt_prog_compiler_pic_works" = xyes; then
10107    case $lt_prog_compiler_pic in
10108     "" | " "*) ;;
10109     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10110     esac
10111else
10112    lt_prog_compiler_pic=
10113     lt_prog_compiler_can_build_shared=no
10114fi
10115
10116fi
10117case $host_os in
10118  # For platforms which do not support PIC, -DPIC is meaningless:
10119  *djgpp*)
10120    lt_prog_compiler_pic=
10121    ;;
10122  *)
10123    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10124    ;;
10125esac
10126
10127#
10128# Check to make sure the static flag actually works.
10129#
10130wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10131echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10132echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10133if test "${lt_prog_compiler_static_works+set}" = set; then
10134  echo $ECHO_N "(cached) $ECHO_C" >&6
10135else
10136  lt_prog_compiler_static_works=no
10137   save_LDFLAGS="$LDFLAGS"
10138   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10139   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10140   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10141     # The linker can only warn and ignore the option if not recognized
10142     # So say no if there are warnings
10143     if test -s conftest.err; then
10144       # Append any errors to the config.log.
10145       cat conftest.err 1>&5
10146       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10147       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10148       if diff conftest.exp conftest.er2 >/dev/null; then
10149         lt_prog_compiler_static_works=yes
10150       fi
10151     else
10152       lt_prog_compiler_static_works=yes
10153     fi
10154   fi
10155   $rm conftest*
10156   LDFLAGS="$save_LDFLAGS"
10157
10158fi
10159echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10160echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10161
10162if test x"$lt_prog_compiler_static_works" = xyes; then
10163    :
10164else
10165    lt_prog_compiler_static=
10166fi
10167
10168
10169echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10170echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10171if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10172  echo $ECHO_N "(cached) $ECHO_C" >&6
10173else
10174  lt_cv_prog_compiler_c_o=no
10175   $rm -r conftest 2>/dev/null
10176   mkdir conftest
10177   cd conftest
10178   mkdir out
10179   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10180
10181   lt_compiler_flag="-o out/conftest2.$ac_objext"
10182   # Insert the option either (1) after the last *FLAGS variable, or
10183   # (2) before a word containing "conftest.", or (3) at the end.
10184   # Note that $ac_compile itself does not contain backslashes and begins
10185   # with a dollar sign (not a hyphen), so the echo should work correctly.
10186   lt_compile=`echo "$ac_compile" | $SED \
10187   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10188   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10189   -e 's:$: $lt_compiler_flag:'`
10190   (eval echo "\"\$as_me:10190: $lt_compile\"" >&5)
10191   (eval "$lt_compile" 2>out/conftest.err)
10192   ac_status=$?
10193   cat out/conftest.err >&5
10194   echo "$as_me:10194: \$? = $ac_status" >&5
10195   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10196   then
10197     # The compiler can only warn and ignore the option if not recognized
10198     # So say no if there are warnings
10199     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10200     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10201     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10202       lt_cv_prog_compiler_c_o=yes
10203     fi
10204   fi
10205   chmod u+w . 2>&5
10206   $rm conftest*
10207   # SGI C++ compiler will create directory out/ii_files/ for
10208   # template instantiation
10209   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10210   $rm out/* && rmdir out
10211   cd ..
10212   rmdir conftest
10213   $rm conftest*
10214
10215fi
10216echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10217echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10218
10219
10220hard_links="nottested"
10221if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10222  # do not overwrite the value of need_locks provided by the user
10223  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10224echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10225  hard_links=yes
10226  $rm conftest*
10227  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10228  touch conftest.a
10229  ln conftest.a conftest.b 2>&5 || hard_links=no
10230  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10231  echo "$as_me:$LINENO: result: $hard_links" >&5
10232echo "${ECHO_T}$hard_links" >&6
10233  if test "$hard_links" = no; then
10234    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10235echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10236    need_locks=warn
10237  fi
10238else
10239  need_locks=no
10240fi
10241
10242echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10244
10245  runpath_var=
10246  allow_undefined_flag=
10247  enable_shared_with_static_runtimes=no
10248  archive_cmds=
10249  archive_expsym_cmds=
10250  old_archive_From_new_cmds=
10251  old_archive_from_expsyms_cmds=
10252  export_dynamic_flag_spec=
10253  whole_archive_flag_spec=
10254  thread_safe_flag_spec=
10255  hardcode_libdir_flag_spec=
10256  hardcode_libdir_flag_spec_ld=
10257  hardcode_libdir_separator=
10258  hardcode_direct=no
10259  hardcode_minus_L=no
10260  hardcode_shlibpath_var=unsupported
10261  link_all_deplibs=unknown
10262  hardcode_automatic=no
10263  module_cmds=
10264  module_expsym_cmds=
10265  always_export_symbols=no
10266  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10267  # include_expsyms should be a list of space-separated symbols to be *always*
10268  # included in the symbol list
10269  include_expsyms=
10270  # exclude_expsyms can be an extended regexp of symbols to exclude
10271  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10272  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10273  # as well as any symbol that contains `d'.
10274  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10275  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10276  # platforms (ab)use it in PIC code, but their linkers get confused if
10277  # the symbol is explicitly referenced.  Since portable code cannot
10278  # rely on this symbol name, it's probably fine to never include it in
10279  # preloaded symbol tables.
10280  extract_expsyms_cmds=
10281  # Just being paranoid about ensuring that cc_basename is set.
10282  for cc_temp in $compiler""; do
10283  case $cc_temp in
10284    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10285    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10286    \-*) ;;
10287    *) break;;
10288  esac
10289done
10290cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10291
10292  case $host_os in
10293  cygwin* | mingw* | pw32*)
10294    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10295    # When not using gcc, we currently assume that we are using
10296    # Microsoft Visual C++.
10297    if test "$GCC" != yes; then
10298      with_gnu_ld=no
10299    fi
10300    ;;
10301  interix*)
10302    # we just hope/assume this is gcc and not c89 (= MSVC++)
10303    with_gnu_ld=yes
10304    ;;
10305  openbsd*)
10306    with_gnu_ld=no
10307    ;;
10308  esac
10309
10310  ld_shlibs=yes
10311  if test "$with_gnu_ld" = yes; then
10312    # If archive_cmds runs LD, not CC, wlarc should be empty
10313    wlarc='${wl}'
10314
10315    # Set some defaults for GNU ld with shared library support. These
10316    # are reset later if shared libraries are not supported. Putting them
10317    # here allows them to be overridden if necessary.
10318    runpath_var=LD_RUN_PATH
10319    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10320    export_dynamic_flag_spec='${wl}--export-dynamic'
10321    # ancient GNU ld didn't support --whole-archive et. al.
10322    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10323        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10324      else
10325        whole_archive_flag_spec=
10326    fi
10327    supports_anon_versioning=no
10328    case `$LD -v 2>/dev/null` in
10329      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10330      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10331      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10332      *\ 2.11.*) ;; # other 2.11 versions
10333      *) supports_anon_versioning=yes ;;
10334    esac
10335
10336    # See if GNU ld supports shared libraries.
10337    case $host_os in
10338    aix3* | aix4* | aix5*)
10339      # On AIX/PPC, the GNU linker is very broken
10340      if test "$host_cpu" != ia64; then
10341        ld_shlibs=no
10342        cat <<EOF 1>&2
10343
10344*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10345*** to be unable to reliably create shared libraries on AIX.
10346*** Therefore, libtool is disabling shared libraries support.  If you
10347*** really care for shared libraries, you may want to modify your PATH
10348*** so that a non-GNU linker is found, and then restart.
10349
10350EOF
10351      fi
10352      ;;
10353
10354    amigaos*)
10355      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)'
10356      hardcode_libdir_flag_spec='-L$libdir'
10357      hardcode_minus_L=yes
10358
10359      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10360      # that the semantics of dynamic libraries on AmigaOS, at least up
10361      # to version 4, is to share data among multiple programs linked
10362      # with the same dynamic library.  Since this doesn't match the
10363      # behavior of shared libraries on other platforms, we can't use
10364      # them.
10365      ld_shlibs=no
10366      ;;
10367
10368    beos*)
10369      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10370        allow_undefined_flag=unsupported
10371        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10372        # support --undefined.  This deserves some investigation.  FIXME
10373        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374      else
10375        ld_shlibs=no
10376      fi
10377      ;;
10378
10379    cygwin* | mingw* | pw32*)
10380      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10381      # as there is no search path for DLLs.
10382      hardcode_libdir_flag_spec='-L$libdir'
10383      allow_undefined_flag=unsupported
10384      always_export_symbols=no
10385      enable_shared_with_static_runtimes=yes
10386      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10387
10388      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10389        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10390        # If the export-symbols file already is a .def file (1st line
10391        # is EXPORTS), use it as is; otherwise, prepend...
10392        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10393          cp $export_symbols $output_objdir/$soname.def;
10394        else
10395          echo EXPORTS > $output_objdir/$soname.def;
10396          cat $export_symbols >> $output_objdir/$soname.def;
10397        fi~
10398        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10399      else
10400        ld_shlibs=no
10401      fi
10402      ;;
10403
10404    interix3*)
10405      hardcode_direct=no
10406      hardcode_shlibpath_var=no
10407      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10408      export_dynamic_flag_spec='${wl}-E'
10409      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10410      # Instead, shared libraries are loaded at an image base (0x10000000 by
10411      # default) and relocated if they conflict, which is a slow very memory
10412      # consuming and fragmenting process.  To avoid this, we pick a random,
10413      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10414      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10415      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10416      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'
10417      ;;
10418
10419    linux*)
10420      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10421        tmp_addflag=
10422        case $cc_basename,$host_cpu in
10423        pgcc*)                          # Portland Group C compiler
10424          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'
10425          tmp_addflag=' $pic_flag'
10426          ;;
10427        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10428          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'
10429          tmp_addflag=' $pic_flag -Mnomain' ;;
10430        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10431          tmp_addflag=' -i_dynamic' ;;
10432        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10433          tmp_addflag=' -i_dynamic -nofor_main' ;;
10434        ifc* | ifort*)                  # Intel Fortran compiler
10435          tmp_addflag=' -nofor_main' ;;
10436        esac
10437        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10438
10439        if test $supports_anon_versioning = yes; then
10440          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10441  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10442  $echo "local: *; };" >> $output_objdir/$libname.ver~
10443          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10444        fi
10445      else
10446        ld_shlibs=no
10447      fi
10448      ;;
10449
10450    netbsd*)
10451      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10452        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10453        wlarc=
10454      else
10455        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10456        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10457      fi
10458      ;;
10459
10460    solaris*)
10461      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10462        ld_shlibs=no
10463        cat <<EOF 1>&2
10464
10465*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10466*** create shared libraries on Solaris systems.  Therefore, libtool
10467*** is disabling shared libraries support.  We urge you to upgrade GNU
10468*** binutils to release 2.9.1 or newer.  Another option is to modify
10469*** your PATH or compiler configuration so that the native linker is
10470*** used, and then restart.
10471
10472EOF
10473      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10474        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10475        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10476      else
10477        ld_shlibs=no
10478      fi
10479      ;;
10480
10481    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10482      case `$LD -v 2>&1` in
10483        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10484        ld_shlibs=no
10485        cat <<_LT_EOF 1>&2
10486
10487*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10488*** reliably create shared libraries on SCO systems.  Therefore, libtool
10489*** is disabling shared libraries support.  We urge you to upgrade GNU
10490*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10491*** your PATH or compiler configuration so that the native linker is
10492*** used, and then restart.
10493
10494_LT_EOF
10495        ;;
10496        *)
10497          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10498            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10499            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10500            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10501          else
10502            ld_shlibs=no
10503          fi
10504        ;;
10505      esac
10506      ;;
10507
10508    sunos4*)
10509      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10510      wlarc=
10511      hardcode_direct=yes
10512      hardcode_shlibpath_var=no
10513      ;;
10514
10515    *)
10516      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10517        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10518        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10519      else
10520        ld_shlibs=no
10521      fi
10522      ;;
10523    esac
10524
10525    if test "$ld_shlibs" = no; then
10526      runpath_var=
10527      hardcode_libdir_flag_spec=
10528      export_dynamic_flag_spec=
10529      whole_archive_flag_spec=
10530    fi
10531  else
10532    # PORTME fill in a description of your system's linker (not GNU ld)
10533    case $host_os in
10534    aix3*)
10535      allow_undefined_flag=unsupported
10536      always_export_symbols=yes
10537      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'
10538      # Note: this linker hardcodes the directories in LIBPATH if there
10539      # are no directories specified by -L.
10540      hardcode_minus_L=yes
10541      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10542        # Neither direct hardcoding nor static linking is supported with a
10543        # broken collect2.
10544        hardcode_direct=unsupported
10545      fi
10546      ;;
10547
10548    aix4* | aix5*)
10549      if test "$host_cpu" = ia64; then
10550        # On IA64, the linker does run time linking by default, so we don't
10551        # have to do anything special.
10552        aix_use_runtimelinking=no
10553        exp_sym_flag='-Bexport'
10554        no_entry_flag=""
10555      else
10556        # If we're using GNU nm, then we don't want the "-C" option.
10557        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10558        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10559          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'
10560        else
10561          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'
10562        fi
10563        aix_use_runtimelinking=no
10564
10565        # Test if we are trying to use run time linking or normal
10566        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10567        # need to do runtime linking.
10568        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10569          for ld_flag in $LDFLAGS; do
10570          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10571            aix_use_runtimelinking=yes
10572            break
10573          fi
10574          done
10575          ;;
10576        esac
10577
10578        exp_sym_flag='-bexport'
10579        no_entry_flag='-bnoentry'
10580      fi
10581
10582      # When large executables or shared objects are built, AIX ld can
10583      # have problems creating the table of contents.  If linking a library
10584      # or program results in "error TOC overflow" add -mminimal-toc to
10585      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10586      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10587
10588      archive_cmds=''
10589      hardcode_direct=yes
10590      hardcode_libdir_separator=':'
10591      link_all_deplibs=yes
10592
10593      if test "$GCC" = yes; then
10594        case $host_os in aix4.[012]|aix4.[012].*)
10595        # We only want to do this on AIX 4.2 and lower, the check
10596        # below for broken collect2 doesn't work under 4.3+
10597          collect2name=`${CC} -print-prog-name=collect2`
10598          if test -f "$collect2name" && \
10599           strings "$collect2name" | grep resolve_lib_name >/dev/null
10600          then
10601          # We have reworked collect2
10602          hardcode_direct=yes
10603          else
10604          # We have old collect2
10605          hardcode_direct=unsupported
10606          # It fails to find uninstalled libraries when the uninstalled
10607          # path is not listed in the libpath.  Setting hardcode_minus_L
10608          # to unsupported forces relinking
10609          hardcode_minus_L=yes
10610          hardcode_libdir_flag_spec='-L$libdir'
10611          hardcode_libdir_separator=
10612          fi
10613          ;;
10614        esac
10615        shared_flag='-shared'
10616        if test "$aix_use_runtimelinking" = yes; then
10617          shared_flag="$shared_flag "'${wl}-G'
10618        fi
10619      else
10620        # not using gcc
10621        if test "$host_cpu" = ia64; then
10622        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10623        # chokes on -Wl,-G. The following line is correct:
10624          shared_flag='-G'
10625        else
10626          if test "$aix_use_runtimelinking" = yes; then
10627            shared_flag='${wl}-G'
10628          else
10629            shared_flag='${wl}-bM:SRE'
10630          fi
10631        fi
10632      fi
10633
10634      # It seems that -bexpall does not export symbols beginning with
10635      # underscore (_), so it is better to generate a list of symbols to export.
10636      always_export_symbols=yes
10637      if test "$aix_use_runtimelinking" = yes; then
10638        # Warning - without using the other runtime loading flags (-brtl),
10639        # -berok will link without error, but may produce a broken library.
10640        allow_undefined_flag='-berok'
10641       # Determine the default libpath from the value encoded in an empty executable.
10642       cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h.  */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h.  */
10648
10649#ifdef F77_DUMMY_MAIN
10650
10651#  ifdef __cplusplus
10652     extern "C"
10653#  endif
10654   int F77_DUMMY_MAIN() { return 1; }
10655
10656#endif
10657int
10658main ()
10659{
10660
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665rm -f conftest.$ac_objext conftest$ac_exeext
10666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667  (eval $ac_link) 2>conftest.er1
10668  ac_status=$?
10669  grep -v '^ *+' conftest.er1 >conftest.err
10670  rm -f conftest.er1
10671  cat conftest.err >&5
10672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673  (exit $ac_status); } &&
10674         { ac_try='test -z "$ac_c_werror_flag"
10675                         || test ! -s conftest.err'
10676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677  (eval $ac_try) 2>&5
10678  ac_status=$?
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); }; } &&
10681         { ac_try='test -s conftest$ac_exeext'
10682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683  (eval $ac_try) 2>&5
10684  ac_status=$?
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); }; }; then
10687
10688aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10689}'`
10690# Check for a 64-bit object if we didn't find anything.
10691if 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; }
10692}'`; fi
10693else
10694  echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697fi
10698rm -f conftest.err conftest.$ac_objext \
10699      conftest$ac_exeext conftest.$ac_ext
10700if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10701
10702       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10703        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"
10704       else
10705        if test "$host_cpu" = ia64; then
10706          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10707          allow_undefined_flag="-z nodefs"
10708          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"
10709        else
10710         # Determine the default libpath from the value encoded in an empty executable.
10711         cat >conftest.$ac_ext <<_ACEOF
10712/* confdefs.h.  */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h.  */
10717
10718#ifdef F77_DUMMY_MAIN
10719
10720#  ifdef __cplusplus
10721     extern "C"
10722#  endif
10723   int F77_DUMMY_MAIN() { return 1; }
10724
10725#endif
10726int
10727main ()
10728{
10729
10730  ;
10731  return 0;
10732}
10733_ACEOF
10734rm -f conftest.$ac_objext conftest$ac_exeext
10735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736  (eval $ac_link) 2>conftest.er1
10737  ac_status=$?
10738  grep -v '^ *+' conftest.er1 >conftest.err
10739  rm -f conftest.er1
10740  cat conftest.err >&5
10741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742  (exit $ac_status); } &&
10743         { ac_try='test -z "$ac_c_werror_flag"
10744                         || test ! -s conftest.err'
10745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746  (eval $ac_try) 2>&5
10747  ac_status=$?
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); }; } &&
10750         { ac_try='test -s conftest$ac_exeext'
10751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752  (eval $ac_try) 2>&5
10753  ac_status=$?
10754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755  (exit $ac_status); }; }; then
10756
10757aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10758}'`
10759# Check for a 64-bit object if we didn't find anything.
10760if 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; }
10761}'`; fi
10762else
10763  echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766fi
10767rm -f conftest.err conftest.$ac_objext \
10768      conftest$ac_exeext conftest.$ac_ext
10769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10770
10771         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10772          # Warning - without using the other run time loading flags,
10773          # -berok will link without error, but may produce a broken library.
10774          no_undefined_flag=' ${wl}-bernotok'
10775          allow_undefined_flag=' ${wl}-berok'
10776          # Exported symbols can be pulled into shared objects from archives
10777          whole_archive_flag_spec='$convenience'
10778          archive_cmds_need_lc=yes
10779          # This is similar to how AIX traditionally builds its shared libraries.
10780          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'
10781        fi
10782      fi
10783      ;;
10784
10785    amigaos*)
10786      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)'
10787      hardcode_libdir_flag_spec='-L$libdir'
10788      hardcode_minus_L=yes
10789      # see comment about different semantics on the GNU ld section
10790      ld_shlibs=no
10791      ;;
10792
10793    bsdi[45]*)
10794      export_dynamic_flag_spec=-rdynamic
10795      ;;
10796
10797    cygwin* | mingw* | pw32*)
10798      # When not using gcc, we currently assume that we are using
10799      # Microsoft Visual C++.
10800      # hardcode_libdir_flag_spec is actually meaningless, as there is
10801      # no search path for DLLs.
10802      hardcode_libdir_flag_spec=' '
10803      allow_undefined_flag=unsupported
10804      # Tell ltmain to make .lib files, not .a files.
10805      libext=lib
10806      # Tell ltmain to make .dll files, not .so files.
10807      shrext_cmds=".dll"
10808      # FIXME: Setting linknames here is a bad hack.
10809      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10810      # The linker will automatically build a .lib file if we build a DLL.
10811      old_archive_From_new_cmds='true'
10812      # FIXME: Should let the user specify the lib program.
10813      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10814      fix_srcfile_path='`cygpath -w "$srcfile"`'
10815      enable_shared_with_static_runtimes=yes
10816      ;;
10817
10818    darwin* | rhapsody*)
10819      case $host_os in
10820        rhapsody* | darwin1.[012])
10821         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10822         ;;
10823       *) # Darwin 1.3 on
10824         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10825           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10826         else
10827           case ${MACOSX_DEPLOYMENT_TARGET} in
10828             10.[012])
10829               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10830               ;;
10831             10.*)
10832               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10833               ;;
10834           esac
10835         fi
10836         ;;
10837      esac
10838      archive_cmds_need_lc=no
10839      hardcode_direct=no
10840      hardcode_automatic=yes
10841      hardcode_shlibpath_var=unsupported
10842      whole_archive_flag_spec=''
10843      link_all_deplibs=yes
10844    if test "$GCC" = yes ; then
10845        output_verbose_link_cmd='echo'
10846        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10847      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10848      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10849      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}'
10850      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}'
10851    else
10852      case $cc_basename in
10853        xlc*)
10854         output_verbose_link_cmd='echo'
10855         archive_cmds='$CC -qmkshrobj $allow_undefined_