source: ThirdParty/FilterSQP/trunk/configure @ 1548

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

copy over pkg-config setup and making thirdparty projects installable projects from split branch

File size: 765.1 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     *-cygwin* | *-mingw*)
4718       case "$F77" in
4719         ifort* | */ifort* | IFORT* | */IFORT*)
4720           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4721#           if "$coin_debug_compile" = true ; then
4722#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4723#           else
4724#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4725#           fi
4726           ;;
4727         compile_f2c*)
4728           FLIBS=`$F77 -FLIBS` ;;
4729       esac;;
4730     *-hp-*)
4731         FLIBS="$FLIBS -lm";;
4732     *-ibm-*)
4733         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4734     *-linux-*)
4735       case "$F77" in
4736         pgf77* | */pgf77* | pgf90* | */pgf90*)
4737# ask linker to go through the archives multiple times
4738# (the Fortran compiler seems to do that automatically...
4739           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4740       esac
4741  esac
4742  ac_cv_f77_libs="$FLIBS"
4743fi
4744
4745ac_ext=c
4746ac_cpp='$CPP $CPPFLAGS'
4747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4749ac_compiler_gnu=$ac_cv_c_compiler_gnu
4750
4751
4752
4753
4754# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
4755coin_need_flibs=yes
4756
4757# Check if pkg-config is available (to setup addlibs file)
4758
4759
4760# Check whether --enable-pkg-config or --disable-pkg-config was given.
4761if test "${enable_pkg_config+set}" = set; then
4762  enableval="$enable_pkg_config"
4763  use_pkgconfig="$enableval"
4764else
4765  use_pkgconfig=yes
4766fi;
4767
4768if test $use_pkgconfig = yes ; then
4769  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4770    if test -n "$ac_tool_prefix"; then
4771  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4773echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4776  echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778  case $PKG_CONFIG in
4779  [\\/]* | ?:[\\/]*)
4780  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4781  ;;
4782  *)
4783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788  for ac_exec_ext in '' $ac_executable_extensions; do
4789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4790    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795done
4796
4797  ;;
4798esac
4799fi
4800PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4801
4802if test -n "$PKG_CONFIG"; then
4803  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4804echo "${ECHO_T}$PKG_CONFIG" >&6
4805else
4806  echo "$as_me:$LINENO: result: no" >&5
4807echo "${ECHO_T}no" >&6
4808fi
4809
4810fi
4811if test -z "$ac_cv_path_PKG_CONFIG"; then
4812  ac_pt_PKG_CONFIG=$PKG_CONFIG
4813  # Extract the first word of "pkg-config", so it can be a program name with args.
4814set dummy pkg-config; ac_word=$2
4815echo "$as_me:$LINENO: checking for $ac_word" >&5
4816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4818  echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820  case $ac_pt_PKG_CONFIG in
4821  [\\/]* | ?:[\\/]*)
4822  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4823  ;;
4824  *)
4825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830  for ac_exec_ext in '' $ac_executable_extensions; do
4831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834    break 2
4835  fi
4836done
4837done
4838
4839  ;;
4840esac
4841fi
4842ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4843
4844if test -n "$ac_pt_PKG_CONFIG"; then
4845  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4846echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4847else
4848  echo "$as_me:$LINENO: result: no" >&5
4849echo "${ECHO_T}no" >&6
4850fi
4851
4852  PKG_CONFIG=$ac_pt_PKG_CONFIG
4853else
4854  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4855fi
4856
4857  fi
4858  if test -n "$PKG_CONFIG"; then
4859    _pkg_min_version=0.9.0
4860    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4861echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4862    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4863      echo "$as_me:$LINENO: result: yes" >&5
4864echo "${ECHO_T}yes" >&6
4865    else
4866      echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868      PKG_CONFIG=""
4869    fi
4870  fi
4871
4872  # check if pkg-config supports the short-errors flag
4873  if test -n "$PKG_CONFIG" && \
4874    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4875    pkg_short_errors=" --short-errors "
4876  else
4877    pkg_short_errors=""
4878  fi
4879fi
4880
4881
4882
4883if test -n "$PKG_CONFIG"; then
4884  COIN_HAS_PKGCONFIG_TRUE=
4885  COIN_HAS_PKGCONFIG_FALSE='#'
4886else
4887  COIN_HAS_PKGCONFIG_TRUE='#'
4888  COIN_HAS_PKGCONFIG_FALSE=
4889fi
4890
4891
4892
4893# assemble search path for pkg-config, if we are in a project setup
4894if test x$coin_projectdir = xyes ; then
4895  COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4896
4897  # 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
4898  # best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4899  # unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4900  if test -d "${prefix}"; then
4901    COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4902  fi
4903
4904
4905# Check whether --with-coin-instdir or --without-coin-instdir was given.
4906if test "${with_coin_instdir+set}" = set; then
4907  withval="$with_coin_instdir"
4908  if test -d "$withval"; then : ; else
4909       { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4910echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4911   { (exit 1); exit 1; }; }
4912     fi
4913     COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4914
4915fi;
4916
4917  # in a classic setup, we want to find uninstalled projects
4918  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4919  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4920  # 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)
4921  if test -e ../coin_subdirs.txt ; then
4922    for i in `cat ../coin_subdirs.txt` ; do
4923      if test -d ../$i ; then
4924        COIN_PKG_CONFIG_PATH="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4925      fi
4926    done
4927  fi
4928
4929  if test -e ../../coin_subdirs.txt ; then
4930    for i in `cat ../../coin_subdirs.txt` ; do
4931      if test -d ../../$i ; then
4932        COIN_PKG_CONFIG_PATH="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH}"
4933      fi
4934    done
4935  fi
4936
4937
4938fi
4939
4940
4941
4942# Initialize automake
4943echo "$as_me:$LINENO: checking for egrep" >&5
4944echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4945if test "${ac_cv_prog_egrep+set}" = set; then
4946  echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4949    then ac_cv_prog_egrep='grep -E'
4950    else ac_cv_prog_egrep='egrep'
4951    fi
4952fi
4953echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4954echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4955 EGREP=$ac_cv_prog_egrep
4956
4957
4958am__api_version="1.9"
4959# Find a good install program.  We prefer a C program (faster),
4960# so one script is as good as another.  But avoid the broken or
4961# incompatible versions:
4962# SysV /etc/install, /usr/sbin/install
4963# SunOS /usr/etc/install
4964# IRIX /sbin/install
4965# AIX /bin/install
4966# AmigaOS /C/install, which installs bootblocks on floppy discs
4967# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4968# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4969# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4970# OS/2's system install, which has a completely different semantic
4971# ./install, which can be erroneously created by make from ./install.sh.
4972echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4973echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4974if test -z "$INSTALL"; then
4975if test "${ac_cv_path_install+set}" = set; then
4976  echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979for as_dir in $PATH
4980do
4981  IFS=$as_save_IFS
4982  test -z "$as_dir" && as_dir=.
4983  # Account for people who put trailing slashes in PATH elements.
4984case $as_dir/ in
4985  ./ | .// | /cC/* | \
4986  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4987  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4988  /usr/ucb/* ) ;;
4989  *)
4990    # OSF1 and SCO ODT 3.0 have their own names for install.
4991    # Don't use installbsd from OSF since it installs stuff as root
4992    # by default.
4993    for ac_prog in ginstall scoinst install; do
4994      for ac_exec_ext in '' $ac_executable_extensions; do
4995        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4996          if test $ac_prog = install &&
4997            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4998            # AIX install.  It has an incompatible calling convention.
4999            :
5000          elif test $ac_prog = install &&
5001            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5002            # program-specific install script used by HP pwplus--don't use.
5003            :
5004          else
5005            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5006            break 3
5007          fi
5008        fi
5009      done
5010    done
5011    ;;
5012esac
5013done
5014
5015
5016fi
5017  if test "${ac_cv_path_install+set}" = set; then
5018    INSTALL=$ac_cv_path_install
5019  else
5020    # As a last resort, use the slow shell script.  We don't cache a
5021    # path for INSTALL within a source directory, because that will
5022    # break other packages using the cache if that directory is
5023    # removed, or if the path is relative.
5024    INSTALL=$ac_install_sh
5025  fi
5026fi
5027echo "$as_me:$LINENO: result: $INSTALL" >&5
5028echo "${ECHO_T}$INSTALL" >&6
5029
5030# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5031# It thinks the first close brace ends the variable substitution.
5032test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5033
5034test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5035
5036test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5037
5038echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5039echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5040# Just in case
5041sleep 1
5042echo timestamp > conftest.file
5043# Do `set' in a subshell so we don't clobber the current shell's
5044# arguments.  Must try -L first in case configure is actually a
5045# symlink; some systems play weird games with the mod time of symlinks
5046# (eg FreeBSD returns the mod time of the symlink's containing
5047# directory).
5048if (
5049   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5050   if test "$*" = "X"; then
5051      # -L didn't work.
5052      set X `ls -t $srcdir/configure conftest.file`
5053   fi
5054   rm -f conftest.file
5055   if test "$*" != "X $srcdir/configure conftest.file" \
5056      && test "$*" != "X conftest.file $srcdir/configure"; then
5057
5058      # If neither matched, then we have a broken ls.  This can happen
5059      # if, for instance, CONFIG_SHELL is bash and it inherits a
5060      # broken ls alias from the environment.  This has actually
5061      # happened.  Such a system could not be considered "sane".
5062      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5063alias in your environment" >&5
5064echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5065alias in your environment" >&2;}
5066   { (exit 1); exit 1; }; }
5067   fi
5068
5069   test "$2" = conftest.file
5070   )
5071then
5072   # Ok.
5073   :
5074else
5075   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5076Check your system clock" >&5
5077echo "$as_me: error: newly created file is older than distributed files!
5078Check your system clock" >&2;}
5079   { (exit 1); exit 1; }; }
5080fi
5081echo "$as_me:$LINENO: result: yes" >&5
5082echo "${ECHO_T}yes" >&6
5083test "$program_prefix" != NONE &&
5084  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5085# Use a double $ so make ignores it.
5086test "$program_suffix" != NONE &&
5087  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5088# Double any \ or $.  echo might interpret backslashes.
5089# By default was `s,x,x', remove it if useless.
5090cat <<\_ACEOF >conftest.sed
5091s/[\\$]/&&/g;s/;s,x,x,$//
5092_ACEOF
5093program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5094rm conftest.sed
5095
5096# expand $ac_aux_dir to an absolute path
5097am_aux_dir=`cd $ac_aux_dir && pwd`
5098
5099test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5100# Use eval to expand $SHELL
5101if eval "$MISSING --run true"; then
5102  am_missing_run="$MISSING --run "
5103else
5104  am_missing_run=
5105  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5106echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5107fi
5108
5109if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5110  # We used to keeping the `.' as first argument, in order to
5111  # allow $(mkdir_p) to be used without argument.  As in
5112  #   $(mkdir_p) $(somedir)
5113  # where $(somedir) is conditionally defined.  However this is wrong
5114  # for two reasons:
5115  #  1. if the package is installed by a user who cannot write `.'
5116  #     make install will fail,
5117  #  2. the above comment should most certainly read
5118  #     $(mkdir_p) $(DESTDIR)$(somedir)
5119  #     so it does not work when $(somedir) is undefined and
5120  #     $(DESTDIR) is not.
5121  #  To support the latter case, we have to write
5122  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5123  #  so the `.' trick is pointless.
5124  mkdir_p='mkdir -p --'
5125else
5126  # On NextStep and OpenStep, the `mkdir' command does not
5127  # recognize any option.  It will interpret all options as
5128  # directories to create, and then abort because `.' already
5129  # exists.
5130  for d in ./-p ./--version;
5131  do
5132    test -d $d && rmdir $d
5133  done
5134  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5135  if test -f "$ac_aux_dir/mkinstalldirs"; then
5136    mkdir_p='$(mkinstalldirs)'
5137  else
5138    mkdir_p='$(install_sh) -d'
5139  fi
5140fi
5141
5142for ac_prog in gawk mawk nawk awk
5143do
5144  # Extract the first word of "$ac_prog", so it can be a program name with args.
5145set dummy $ac_prog; ac_word=$2
5146echo "$as_me:$LINENO: checking for $ac_word" >&5
5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148if test "${ac_cv_prog_AWK+set}" = set; then
5149  echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151  if test -n "$AWK"; then
5152  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157  IFS=$as_save_IFS
5158  test -z "$as_dir" && as_dir=.
5159  for ac_exec_ext in '' $ac_executable_extensions; do
5160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161    ac_cv_prog_AWK="$ac_prog"
5162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163    break 2
5164  fi
5165done
5166done
5167
5168fi
5169fi
5170AWK=$ac_cv_prog_AWK
5171if test -n "$AWK"; then
5172  echo "$as_me:$LINENO: result: $AWK" >&5
5173echo "${ECHO_T}$AWK" >&6
5174else
5175  echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179  test -n "$AWK" && break
5180done
5181
5182echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5183echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5184set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5185if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5186  echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188  cat >conftest.make <<\_ACEOF
5189all:
5190        @echo 'ac_maketemp="$(MAKE)"'
5191_ACEOF
5192# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5193eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5194if test -n "$ac_maketemp"; then
5195  eval ac_cv_prog_make_${ac_make}_set=yes
5196else
5197  eval ac_cv_prog_make_${ac_make}_set=no
5198fi
5199rm -f conftest.make
5200fi
5201if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5202  echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204  SET_MAKE=
5205else
5206  echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208  SET_MAKE="MAKE=${MAKE-make}"
5209fi
5210
5211rm -rf .tst 2>/dev/null
5212mkdir .tst 2>/dev/null
5213if test -d .tst; then
5214  am__leading_dot=.
5215else
5216  am__leading_dot=_
5217fi
5218rmdir .tst 2>/dev/null
5219
5220DEPDIR="${am__leading_dot}deps"
5221
5222          ac_config_commands="$ac_config_commands depfiles"
5223
5224
5225am_make=${MAKE-make}
5226cat > confinc << 'END'
5227am__doit:
5228        @echo done
5229.PHONY: am__doit
5230END
5231# If we don't find an include directive, just comment out the code.
5232echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5233echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5234am__include="#"
5235am__quote=
5236_am_result=none
5237# First try GNU make style include.
5238echo "include confinc" > confmf
5239# We grep out `Entering directory' and `Leaving directory'
5240# messages which can occur if `w' ends up in MAKEFLAGS.
5241# In particular we don't look at `^make:' because GNU make might
5242# be invoked under some other name (usually "gmake"), in which
5243# case it prints its new name instead of `make'.
5244if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5245   am__include=include
5246   am__quote=
5247   _am_result=GNU
5248fi
5249# Now try BSD make style include.
5250if test "$am__include" = "#"; then
5251   echo '.include "confinc"' > confmf
5252   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5253      am__include=.include
5254      am__quote="\""
5255      _am_result=BSD
5256   fi
5257fi
5258
5259
5260echo "$as_me:$LINENO: result: $_am_result" >&5
5261echo "${ECHO_T}$_am_result" >&6
5262rm -f confinc confmf
5263
5264# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5265if test "${enable_dependency_tracking+set}" = set; then
5266  enableval="$enable_dependency_tracking"
5267
5268fi;
5269if test "x$enable_dependency_tracking" != xno; then
5270  am_depcomp="$ac_aux_dir/depcomp"
5271  AMDEPBACKSLASH='\'
5272fi
5273
5274
5275if test "x$enable_dependency_tracking" != xno; then
5276  AMDEP_TRUE=
5277  AMDEP_FALSE='#'
5278else
5279  AMDEP_TRUE='#'
5280  AMDEP_FALSE=
5281fi
5282
5283
5284
5285
5286
5287# AC_MSG_NOTICE([Beginning automake initialisation.])
5288# Stuff for automake
5289# test to see if srcdir already configured
5290if test "`cd $srcdir && pwd`" != "`pwd`" &&
5291   test -f $srcdir/config.status; then
5292  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5293echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5294   { (exit 1); exit 1; }; }
5295fi
5296
5297# test whether we have cygpath
5298if test -z "$CYGPATH_W"; then
5299  if (cygpath --version) >/dev/null 2>/dev/null; then
5300    CYGPATH_W='cygpath -w'
5301  else
5302    CYGPATH_W=echo
5303  fi
5304fi
5305
5306
5307# Define the identity of the package.
5308 PACKAGE='thirdpartyfiltersqp'
5309 VERSION='0.0'
5310
5311
5312cat >>confdefs.h <<_ACEOF
5313#define PACKAGE "$PACKAGE"
5314_ACEOF
5315
5316
5317cat >>confdefs.h <<_ACEOF
5318#define VERSION "$VERSION"
5319_ACEOF
5320
5321# Some tools Automake needs.
5322
5323ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5324
5325
5326AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5327
5328
5329AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5330
5331
5332AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5333
5334
5335MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5336
5337install_sh=${install_sh-"$am_aux_dir/install-sh"}
5338
5339# Installed binaries are usually stripped using `strip' when the user
5340# run `make install-strip'.  However `strip' might not be the right
5341# tool to use in cross-compilation environments, therefore Automake
5342# will honor the `STRIP' environment variable to overrule this program.
5343if test "$cross_compiling" != no; then
5344  if test -n "$ac_tool_prefix"; then
5345  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5346set dummy ${ac_tool_prefix}strip; ac_word=$2
5347echo "$as_me:$LINENO: checking for $ac_word" >&5
5348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5349if test "${ac_cv_prog_STRIP+set}" = set; then
5350  echo $ECHO_N "(cached) $ECHO_C" >&6
5351else
5352  if test -n "$STRIP"; then
5353  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358  IFS=$as_save_IFS
5359  test -z "$as_dir" && as_dir=.
5360  for ac_exec_ext in '' $ac_executable_extensions; do
5361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364    break 2
5365  fi
5366done
5367done
5368
5369fi
5370fi
5371STRIP=$ac_cv_prog_STRIP
5372if test -n "$STRIP"; then
5373  echo "$as_me:$LINENO: result: $STRIP" >&5
5374echo "${ECHO_T}$STRIP" >&6
5375else
5376  echo "$as_me:$LINENO: result: no" >&5
5377echo "${ECHO_T}no" >&6
5378fi
5379
5380fi
5381if test -z "$ac_cv_prog_STRIP"; then
5382  ac_ct_STRIP=$STRIP
5383  # Extract the first word of "strip", so it can be a program name with args.
5384set dummy strip; ac_word=$2
5385echo "$as_me:$LINENO: checking for $ac_word" >&5
5386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5387if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390  if test -n "$ac_ct_STRIP"; then
5391  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5392else
5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396  IFS=$as_save_IFS
5397  test -z "$as_dir" && as_dir=.
5398  for ac_exec_ext in '' $ac_executable_extensions; do
5399  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400    ac_cv_prog_ac_ct_STRIP="strip"
5401    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402    break 2
5403  fi
5404done
5405done
5406
5407  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5408fi
5409fi
5410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5411if test -n "$ac_ct_STRIP"; then
5412  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5413echo "${ECHO_T}$ac_ct_STRIP" >&6
5414else
5415  echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417fi
5418
5419  STRIP=$ac_ct_STRIP
5420else
5421  STRIP="$ac_cv_prog_STRIP"
5422fi
5423
5424fi
5425INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5426
5427# We need awk for the "check" target.  The system "awk" is bad on
5428# some platforms.
5429# Always define AMTAR for backward compatibility.
5430
5431AMTAR=${AMTAR-"${am_missing_run}tar"}
5432
5433am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5434
5435
5436
5437
5438depcc="$CC"   am_compiler_list=
5439
5440echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5442if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5446  # We make a subdir and do the tests there.  Otherwise we can end up
5447  # making bogus files that we don't know about and never remove.  For
5448  # instance it was reported that on HP-UX the gcc test will end up
5449  # making a dummy file named `D' -- because `-MD' means `put the output
5450  # in D'.
5451  mkdir conftest.dir
5452  # Copy depcomp to subdir because otherwise we won't find it if we're
5453  # using a relative directory.
5454  cp "$am_depcomp" conftest.dir
5455  cd conftest.dir
5456  # We will build objects and dependencies in a subdirectory because
5457  # it helps to detect inapplicable dependency modes.  For instance
5458  # both Tru64's cc and ICC support -MD to output dependencies as a
5459  # side effect of compilation, but ICC will put the dependencies in
5460  # the current directory while Tru64 will put them in the object
5461  # directory.
5462  mkdir sub
5463
5464  am_cv_CC_dependencies_compiler_type=none
5465  if test "$am_compiler_list" = ""; then
5466     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5467  fi
5468  for depmode in $am_compiler_list; do
5469    # Setup a source with many dependencies, because some compilers
5470    # like to wrap large dependency lists on column 80 (with \), and
5471    # we should not choose a depcomp mode which is confused by this.
5472    #
5473    # We need to recreate these files for each test, as the compiler may
5474    # overwrite some of them when testing with obscure command lines.
5475    # This happens at least with the AIX C compiler.
5476    : > sub/conftest.c
5477    for i in 1 2 3 4 5 6; do
5478      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5479      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5480      # Solaris 8's {/usr,}/bin/sh.
5481      touch sub/conftst$i.h
5482    done
5483    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5484
5485    case $depmode in
5486    nosideeffect)
5487      # after this tag, mechanisms are not by side-effect, so they'll
5488      # only be used when explicitly requested
5489      if test "x$enable_dependency_tracking" = xyes; then
5490        continue
5491      else
5492        break
5493      fi
5494      ;;
5495    none) break ;;
5496    esac
5497    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5498    # mode.  It turns out that the SunPro C++ compiler does not properly
5499    # handle `-M -o', and we need to detect this.
5500    if depmode=$depmode \
5501       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5502       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5503       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5504         >/dev/null 2>conftest.err &&
5505       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5506       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5507       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5508      # icc doesn't choke on unknown options, it will just issue warnings
5509      # or remarks (even with -Werror).  So we grep stderr for any message
5510      # that says an option was ignored or not supported.
5511      # When given -MP, icc 7.0 and 7.1 complain thusly:
5512      #   icc: Command line warning: ignoring option '-M'; no argument required
5513      # The diagnosis changed in icc 8.0:
5514      #   icc: Command line remark: option '-MP' not supported
5515      if (grep 'ignoring option' conftest.err ||
5516          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5517        am_cv_CC_dependencies_compiler_type=$depmode
5518        break
5519      fi
5520    fi
5521  done
5522
5523  cd ..
5524  rm -rf conftest.dir
5525else
5526  am_cv_CC_dependencies_compiler_type=none
5527fi
5528
5529fi
5530echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5531echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5532CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5533
5534
5535
5536if
5537  test "x$enable_dependency_tracking" != xno \
5538  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5539  am__fastdepCC_TRUE=
5540  am__fastdepCC_FALSE='#'
5541else
5542  am__fastdepCC_TRUE='#'
5543  am__fastdepCC_FALSE=
5544fi
5545
5546
5547
5548echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5549echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5550    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5551if test "${enable_maintainer_mode+set}" = set; then
5552  enableval="$enable_maintainer_mode"
5553  USE_MAINTAINER_MODE=$enableval
5554else
5555  USE_MAINTAINER_MODE=no
5556fi;
5557  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5558echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5559
5560
5561if test $USE_MAINTAINER_MODE = yes; then
5562  MAINTAINER_MODE_TRUE=
5563  MAINTAINER_MODE_FALSE='#'
5564else
5565  MAINTAINER_MODE_TRUE='#'
5566  MAINTAINER_MODE_FALSE=
5567fi
5568
5569  MAINT=$MAINTAINER_MODE_TRUE
5570
5571
5572
5573coin_have_externals=no
5574if test "$enable_maintainer_mode" = yes; then
5575
5576  # If maintainer mode is chosen, we make sure that the correct versions
5577  # of the tools are used, and that we know where libtool.m4 is (to
5578  # recreate acinclude.m4)
5579
5580
5581  LIBTOOLM4=
5582  # Normally, $HOME
5583  AUTOTOOLS_DFLT=$HOME
5584
5585  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5586echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5587if test "${ac_cv_use_correct_autotools+set}" = set; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  ac_cv_use_correct_autotools=check
5591fi
5592echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5593echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5594
5595  if test $ac_cv_use_correct_autotools = check; then
5596    ac_cv_use_correct_autotools=yes
5597    # Check if we have autoconf
5598    # Extract the first word of "autoconf", so it can be a program name with args.
5599set dummy autoconf; ac_word=$2
5600echo "$as_me:$LINENO: checking for $ac_word" >&5
5601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602if test "${ac_cv_prog_have_autoconf+set}" = set; then
5603  echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605  if test -n "$have_autoconf"; then
5606  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613  for ac_exec_ext in '' $ac_executable_extensions; do
5614  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615    ac_cv_prog_have_autoconf="yes"
5616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617    break 2
5618  fi
5619done
5620done
5621
5622  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5623fi
5624fi
5625have_autoconf=$ac_cv_prog_have_autoconf
5626if test -n "$have_autoconf"; then
5627  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5628echo "${ECHO_T}$have_autoconf" >&6
5629else
5630  echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
5632fi
5633
5634    if test $have_autoconf = no; then
5635      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5636echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5637   { (exit 1); exit 1; }; }
5638    fi
5639
5640    # Check whether autoconf is the correct version
5641    correct_version='2.59'
5642    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5643    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5644echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5645    autoconf --version > confauto.out 2>&1
5646    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5647      echo "$as_me:$LINENO: result: yes" >&5
5648echo "${ECHO_T}yes" >&6
5649    else
5650      rm -f confauto.out
5651      echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5654echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5655   { (exit 1); exit 1; }; }
5656    fi
5657    rm -f confauto.out
5658
5659    # Check if the executable autoconf is picked up from the correct location
5660    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5661echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5662    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5663    autoconf_dir=`cd $autoconf_dir; pwd`
5664    if test x$AUTOTOOLS_DIR = x; then
5665      want_dir=$AUTOTOOLS_DFLT/bin
5666    else
5667      want_dir=$AUTOTOOLS_DIR/bin
5668    fi
5669    if test $autoconf_dir = `cd $want_dir; pwd`; then
5670      echo "$as_me:$LINENO: result: yes" >&5
5671echo "${ECHO_T}yes" >&6
5672    else
5673      rm -f confauto.out
5674      echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5677echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5678   { (exit 1); exit 1; }; }
5679    fi
5680
5681    # Check if we have automake
5682    # Extract the first word of "automake", so it can be a program name with args.
5683set dummy automake; ac_word=$2
5684echo "$as_me:$LINENO: checking for $ac_word" >&5
5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686if test "${ac_cv_prog_have_automake+set}" = set; then
5687  echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689  if test -n "$have_automake"; then
5690  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697  for ac_exec_ext in '' $ac_executable_extensions; do
5698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_have_automake="yes"
5700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704done
5705
5706  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5707fi
5708fi
5709have_automake=$ac_cv_prog_have_automake
5710if test -n "$have_automake"; then
5711  echo "$as_me:$LINENO: result: $have_automake" >&5
5712echo "${ECHO_T}$have_automake" >&6
5713else
5714  echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718    if test $have_automake = no; then
5719      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5720echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5721   { (exit 1); exit 1; }; }
5722    fi
5723
5724    # Check whether automake is the correct version
5725    correct_version='1.9.6'
5726    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5727    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5728echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5729    automake --version > confauto.out 2>&1
5730    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5731      echo "$as_me:$LINENO: result: yes" >&5
5732echo "${ECHO_T}yes" >&6
5733    else
5734      rm -f confauto.out
5735      echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5738echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5739   { (exit 1); exit 1; }; }
5740    fi
5741    rm -f confauto.out
5742
5743    # Check if the executable automake is picked up from the correct location
5744    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5745echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5746    automake_dir=`which automake | sed -e 's=/automake=='`
5747    automake_dir=`cd $automake_dir; pwd`
5748    if test x$AUTOTOOLS_DIR = x; then
5749      want_dir=$AUTOTOOLS_DFLT/bin
5750    else
5751      want_dir=$AUTOTOOLS_DIR/bin
5752    fi
5753    if test $automake_dir = `cd $want_dir; pwd`; then
5754      echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756    else
5757      rm -f confauto.out
5758      echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5761echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5762   { (exit 1); exit 1; }; }
5763    fi
5764
5765    # Check if this is the correct version of libtool (with escaped dots)
5766    if test x$AUTOTOOLS_DIR = x; then
5767      want_dir=$AUTOTOOLS_DFLT/share
5768    else
5769      want_dir=$AUTOTOOLS_DIR/share
5770    fi
5771    correct_version='1.5.22'
5772    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5773    if test -r $want_dir/libtool/ltmain.sh; then
5774  have_ltmain=yes
5775  :
5776else
5777  have_ltmain=no
5778  :
5779fi
5780
5781    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5782echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5783    if test $have_ltmain = yes; then
5784    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5785        echo "$as_me:$LINENO: result: yes" >&5
5786echo "${ECHO_T}yes" >&6
5787      else
5788        echo "$as_me:$LINENO: result: no" >&5
5789echo "${ECHO_T}no" >&6
5790        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5791echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5792   { (exit 1); exit 1; }; }
5793      fi
5794    else
5795      echo "$as_me:$LINENO: result: no" >&5
5796echo "${ECHO_T}no" >&6
5797      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5798echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5799   { (exit 1); exit 1; }; }
5800    fi
5801  fi
5802
5803  # Check if we can find the libtool file
5804  if test x$AUTOTOOLS_DIR = x; then
5805    want_dir=$AUTOTOOLS_DFLT/share
5806  else
5807    want_dir=$AUTOTOOLS_DIR/share
5808  fi
5809  if test -r $want_dir/aclocal/libtool.m4; then
5810  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5811  :
5812else
5813  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5814echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5815   { (exit 1); exit 1; }; }
5816  :
5817fi
5818
5819
5820  # Check if we have an Externals file
5821  if test -r $srcdir/Externals; then
5822    coin_have_externals=yes
5823  fi
5824  # Check if subversion is installed and understands https
5825  # Extract the first word of "svn", so it can be a program name with args.
5826set dummy svn; ac_word=$2
5827echo "$as_me:$LINENO: checking for $ac_word" >&5
5828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5829if test "${ac_cv_prog_have_svn+set}" = set; then
5830  echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832  if test -n "$have_svn"; then
5833  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5834else
5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836for as_dir in $PATH
5837do
5838  IFS=$as_save_IFS
5839  test -z "$as_dir" && as_dir=.
5840  for ac_exec_ext in '' $ac_executable_extensions; do
5841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842    ac_cv_prog_have_svn="yes"
5843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844    break 2
5845  fi
5846done
5847done
5848
5849  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5850fi
5851fi
5852have_svn=$ac_cv_prog_have_svn
5853if test -n "$have_svn"; then
5854  echo "$as_me:$LINENO: result: $have_svn" >&5
5855echo "${ECHO_T}$have_svn" >&6
5856else
5857  echo "$as_me:$LINENO: result: no" >&5
5858echo "${ECHO_T}no" >&6
5859fi
5860
5861  if test x$have_svn = xyes; then
5862    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5863echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5864if test "${ac_cv_svn_understands_https+set}" = set; then
5865  echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867  svn --version > confauto.out 2>&1
5868                    if $EGREP https confauto.out >/dev/null 2>&1; then
5869                      ac_cv_svn_understands_https=yes
5870                    else
5871                      ac_cv_svn_understands_https=no
5872                      have_svn=no
5873                      ac_cv_prog_have_svn=no
5874                    fi
5875                    rm -f confauto.out
5876fi
5877echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5878echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5879  fi
5880
5881  # Find the location of the BuildTools directory
5882  BUILDTOOLSDIR=
5883  if test -r $srcdir/BuildTools/coin.m4; then
5884    BUILDTOOLSDIR=$srcdir/BuildTools
5885  else
5886    if test -r $srcdir/../BuildTools/coin.m4; then
5887      BUILDTOOLSDIR=$srcdir/../BuildTools
5888    else
5889      if test -r $srcdir/../../BuildTools/coin.m4; then
5890        BUILDTOOLSDIR=$srcdir/../../BuildTools
5891      else
5892        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5893echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5894   { (exit 1); exit 1; }; }
5895      fi
5896    fi
5897  fi
5898
5899
5900  # The following variable is set to the name of the directory where
5901  # the autotool scripts are located
5902
5903  AUX_DIR=$ac_aux_dir
5904fi
5905
5906# helpful variable for the base directory of this package
5907abs_source_dir=`cd $srcdir; pwd`
5908
5909
5910# Stuff for example Makefiles
5911if test x$prefix = xNONE; then
5912  full_prefix=$ac_default_prefix
5913else
5914  full_prefix=$prefix
5915fi
5916full_prefix=`cd $full_prefix ; pwd`
5917
5918abs_lib_dir=$full_prefix/lib
5919
5920abs_include_dir=$full_prefix/include
5921
5922abs_bin_dir=$full_prefix/bin
5923
5924
5925
5926if test $coin_have_externals = yes && test x$have_svn = xyes; then
5927  HAVE_EXTERNALS_TRUE=
5928  HAVE_EXTERNALS_FALSE='#'
5929else
5930  HAVE_EXTERNALS_TRUE='#'
5931  HAVE_EXTERNALS_FALSE=
5932fi
5933
5934
5935# AC_MSG_NOTICE([End automake initialisation.])
5936
5937
5938
5939# Initialize automake
5940{
5941
5942
5943
5944# START
5945
5946# Test if force_shared has been set
5947if test "x" = xforce_shared; then
5948  if test x$enable_shared = xno; then
5949    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5950echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5951   { (exit 1); exit 1; }; }
5952  fi
5953  enable_shared=yes;
5954else
5955  # On Cygwin and AIX, building DLLs doesn't work
5956  case $build in
5957    *-cygwin*)
5958      coin_disable_shared=yes
5959      platform=Cygwin
5960    ;;
5961    *-aix*)
5962      coin_disable_shared=yes
5963      platform=AIX
5964    ;;
5965    *-mingw*)
5966      coin_disable_shared=yes
5967      platform="Msys"
5968#      case "$CXX" in
5969#        cl*)
5970#          coin_disable_shared=yes
5971#          platform="Msys with cl"
5972#      ;;
5973#      esac
5974    ;;
5975  esac
5976fi
5977if test x"$coin_disable_shared" = xyes; then
5978  if test x"$enable_shared" = xyes; then
5979    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5980echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5981  fi
5982  enable_shared=no
5983fi
5984# By default, we only want the shared objects to be compiled
5985# Check whether --enable-static or --disable-static was given.
5986if test "${enable_static+set}" = set; then
5987  enableval="$enable_static"
5988  p=${PACKAGE-default}
5989    case $enableval in
5990    yes) enable_static=yes ;;
5991    no) enable_static=no ;;
5992    *)
5993     enable_static=no
5994      # Look at the argument we got.  We use all the common list separators.
5995      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5996      for pkg in $enableval; do
5997        IFS="$lt_save_ifs"
5998        if test "X$pkg" = "X$p"; then
5999          enable_static=yes
6000        fi
6001      done
6002      IFS="$lt_save_ifs"
6003      ;;
6004    esac
6005else
6006  enable_static=no
6007fi;
6008
6009
6010
6011
6012# Initialize automake
6013
6014
6015# AC_MSG_NOTICE([Beginning automake initialisation.])
6016# Stuff for automake
6017# test to see if srcdir already configured
6018if test "`cd $srcdir && pwd`" != "`pwd`" &&
6019   test -f $srcdir/config.status; then
6020  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6021echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6022   { (exit 1); exit 1; }; }
6023fi
6024
6025# test whether we have cygpath
6026if test -z "$CYGPATH_W"; then
6027  if (cygpath --version) >/dev/null 2>/dev/null; then
6028    CYGPATH_W='cygpath -w'
6029  else
6030    CYGPATH_W=echo
6031  fi
6032fi
6033
6034
6035# Define the identity of the package.
6036 PACKAGE='thirdpartyfiltersqp'
6037 VERSION='0.0'
6038
6039
6040cat >>confdefs.h <<_ACEOF
6041#define PACKAGE "$PACKAGE"
6042_ACEOF
6043
6044
6045cat >>confdefs.h <<_ACEOF
6046#define VERSION "$VERSION"
6047_ACEOF
6048
6049# Some tools Automake needs.
6050
6051ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6052
6053
6054AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6055
6056
6057AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6058
6059
6060AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6061
6062
6063MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6064
6065install_sh=${install_sh-"$am_aux_dir/install-sh"}
6066
6067# Installed binaries are usually stripped using `strip' when the user
6068# run `make install-strip'.  However `strip' might not be the right
6069# tool to use in cross-compilation environments, therefore Automake
6070# will honor the `STRIP' environment variable to overrule this program.
6071if test "$cross_compiling" != no; then
6072  if test -n "$ac_tool_prefix"; then
6073  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6074set dummy ${ac_tool_prefix}strip; ac_word=$2
6075echo "$as_me:$LINENO: checking for $ac_word" >&5
6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6077if test "${ac_cv_prog_STRIP+set}" = set; then
6078  echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080  if test -n "$STRIP"; then
6081  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6082else
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH
6085do
6086  IFS=$as_save_IFS
6087  test -z "$as_dir" && as_dir=.
6088  for ac_exec_ext in '' $ac_executable_extensions; do
6089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092    break 2
6093  fi
6094done
6095done
6096
6097fi
6098fi
6099STRIP=$ac_cv_prog_STRIP
6100if test -n "$STRIP"; then
6101  echo "$as_me:$LINENO: result: $STRIP" >&5
6102echo "${ECHO_T}$STRIP" >&6
6103else
6104  echo "$as_me:$LINENO: result: no" >&5
6105echo "${ECHO_T}no" >&6
6106fi
6107
6108fi
6109if test -z "$ac_cv_prog_STRIP"; then
6110  ac_ct_STRIP=$STRIP
6111  # Extract the first word of "strip", so it can be a program name with args.
6112set dummy strip; ac_word=$2
6113echo "$as_me:$LINENO: checking for $ac_word" >&5
6114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6116  echo $ECHO_N "(cached) $ECHO_C" >&6
6117else
6118  if test -n "$ac_ct_STRIP"; then
6119  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126  for ac_exec_ext in '' $ac_executable_extensions; do
6127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128    ac_cv_prog_ac_ct_STRIP="strip"
6129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133done
6134
6135  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6136fi
6137fi
6138ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6139if test -n "$ac_ct_STRIP"; then
6140  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6141echo "${ECHO_T}$ac_ct_STRIP" >&6
6142else
6143  echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145fi
6146
6147  STRIP=$ac_ct_STRIP
6148else
6149  STRIP="$ac_cv_prog_STRIP"
6150fi
6151
6152fi
6153INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6154
6155# We need awk for the "check" target.  The system "awk" is bad on
6156# some platforms.
6157# Always define AMTAR for backward compatibility.
6158
6159AMTAR=${AMTAR-"${am_missing_run}tar"}
6160
6161am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6162
6163
6164
6165
6166depcc="$CC"   am_compiler_list=
6167
6168echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6169echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6170if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6171  echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6174  # We make a subdir and do the tests there.  Otherwise we can end up
6175  # making bogus files that we don't know about and never remove.  For
6176  # instance it was reported that on HP-UX the gcc test will end up
6177  # making a dummy file named `D' -- because `-MD' means `put the output
6178  # in D'.
6179  mkdir conftest.dir
6180  # Copy depcomp to subdir because otherwise we won't find it if we're
6181  # using a relative directory.
6182  cp "$am_depcomp" conftest.dir
6183  cd conftest.dir
6184  # We will build objects and dependencies in a subdirectory because
6185  # it helps to detect inapplicable dependency modes.  For instance
6186  # both Tru64's cc and ICC support -MD to output dependencies as a
6187  # side effect of compilation, but ICC will put the dependencies in
6188  # the current directory while Tru64 will put them in the object
6189  # directory.
6190  mkdir sub
6191
6192  am_cv_CC_dependencies_compiler_type=none
6193  if test "$am_compiler_list" = ""; then
6194     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6195  fi
6196  for depmode in $am_compiler_list; do
6197    # Setup a source with many dependencies, because some compilers
6198    # like to wrap large dependency lists on column 80 (with \), and
6199    # we should not choose a depcomp mode which is confused by this.
6200    #
6201    # We need to recreate these files for each test, as the compiler may
6202    # overwrite some of them when testing with obscure command lines.
6203    # This happens at least with the AIX C compiler.
6204    : > sub/conftest.c
6205    for i in 1 2 3 4 5 6; do
6206      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6207      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6208      # Solaris 8's {/usr,}/bin/sh.
6209      touch sub/conftst$i.h
6210    done
6211    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6212
6213    case $depmode in
6214    nosideeffect)
6215      # after this tag, mechanisms are not by side-effect, so they'll
6216      # only be used when explicitly requested
6217      if test "x$enable_dependency_tracking" = xyes; then
6218        continue
6219      else
6220        break
6221      fi
6222      ;;
6223    none) break ;;
6224    esac
6225    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6226    # mode.  It turns out that the SunPro C++ compiler does not properly
6227    # handle `-M -o', and we need to detect this.
6228    if depmode=$depmode \
6229       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6230       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6231       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6232         >/dev/null 2>conftest.err &&
6233       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6234       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6235       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6236      # icc doesn't choke on unknown options, it will just issue warnings
6237      # or remarks (even with -Werror).  So we grep stderr for any message
6238      # that says an option was ignored or not supported.
6239      # When given -MP, icc 7.0 and 7.1 complain thusly:
6240      #   icc: Command line warning: ignoring option '-M'; no argument required
6241      # The diagnosis changed in icc 8.0:
6242      #   icc: Command line remark: option '-MP' not supported
6243      if (grep 'ignoring option' conftest.err ||
6244          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6245        am_cv_CC_dependencies_compiler_type=$depmode
6246        break
6247      fi
6248    fi
6249  done
6250
6251  cd ..
6252  rm -rf conftest.dir
6253else
6254  am_cv_CC_dependencies_compiler_type=none
6255fi
6256
6257fi
6258echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6259echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6260CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6261
6262
6263
6264if
6265  test "x$enable_dependency_tracking" != xno \
6266  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6267  am__fastdepCC_TRUE=
6268  am__fastdepCC_FALSE='#'
6269else
6270  am__fastdepCC_TRUE='#'
6271  am__fastdepCC_FALSE=
6272fi
6273
6274
6275
6276echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6277echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6278    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6279if test "${enable_maintainer_mode+set}" = set; then
6280  enableval="$enable_maintainer_mode"
6281  USE_MAINTAINER_MODE=$enableval
6282else
6283  USE_MAINTAINER_MODE=no
6284fi;
6285  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6286echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6287
6288
6289if test $USE_MAINTAINER_MODE = yes; then
6290  MAINTAINER_MODE_TRUE=
6291  MAINTAINER_MODE_FALSE='#'
6292else
6293  MAINTAINER_MODE_TRUE='#'
6294  MAINTAINER_MODE_FALSE=
6295fi
6296
6297  MAINT=$MAINTAINER_MODE_TRUE
6298
6299
6300
6301coin_have_externals=no
6302if test "$enable_maintainer_mode" = yes; then
6303
6304  # If maintainer mode is chosen, we make sure that the correct versions
6305  # of the tools are used, and that we know where libtool.m4 is (to
6306  # recreate acinclude.m4)
6307
6308
6309  LIBTOOLM4=
6310  # Normally, $HOME
6311  AUTOTOOLS_DFLT=$HOME
6312
6313  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6314echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6315if test "${ac_cv_use_correct_autotools+set}" = set; then
6316  echo $ECHO_N "(cached) $ECHO_C" >&6
6317else
6318  ac_cv_use_correct_autotools=check
6319fi
6320echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6321echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6322
6323  if test $ac_cv_use_correct_autotools = check; then
6324    ac_cv_use_correct_autotools=yes
6325    # Check if we have autoconf
6326    # Extract the first word of "autoconf", so it can be a program name with args.
6327set dummy autoconf; ac_word=$2
6328echo "$as_me:$LINENO: checking for $ac_word" >&5
6329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6330if test "${ac_cv_prog_have_autoconf+set}" = set; then
6331  echo $ECHO_N "(cached) $ECHO_C" >&6
6332else
6333  if test -n "$have_autoconf"; then
6334  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6335else
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339  IFS=$as_save_IFS
6340  test -z "$as_dir" && as_dir=.
6341  for ac_exec_ext in '' $ac_executable_extensions; do
6342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343    ac_cv_prog_have_autoconf="yes"
6344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6345    break 2
6346  fi
6347done
6348done
6349
6350  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6351fi
6352fi
6353have_autoconf=$ac_cv_prog_have_autoconf
6354if test -n "$have_autoconf"; then
6355  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6356echo "${ECHO_T}$have_autoconf" >&6
6357else
6358  echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
6360fi
6361
6362    if test $have_autoconf = no; then
6363      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6364echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6365   { (exit 1); exit 1; }; }
6366    fi
6367
6368    # Check whether autoconf is the correct version
6369    correct_version='2.59'
6370    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6371    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6372echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6373    autoconf --version > confauto.out 2>&1
6374    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6375      echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377    else
6378      rm -f confauto.out
6379      echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6382echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6383   { (exit 1); exit 1; }; }
6384    fi
6385    rm -f confauto.out
6386
6387    # Check if the executable autoconf is picked up from the correct location
6388    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6389echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6390    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6391    autoconf_dir=`cd $autoconf_dir; pwd`
6392    if test x$AUTOTOOLS_DIR = x; then
6393      want_dir=$AUTOTOOLS_DFLT/bin
6394    else
6395      want_dir=$AUTOTOOLS_DIR/bin
6396    fi
6397    if test $autoconf_dir = `cd $want_dir; pwd`; then
6398      echo "$as_me:$LINENO: result: yes" >&5
6399echo "${ECHO_T}yes" >&6
6400    else
6401      rm -f confauto.out
6402      echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6405echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6406   { (exit 1); exit 1; }; }
6407    fi
6408
6409    # Check if we have automake
6410    # Extract the first word of "automake", so it can be a program name with args.
6411set dummy automake; ac_word=$2
6412echo "$as_me:$LINENO: checking for $ac_word" >&5
6413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6414if test "${ac_cv_prog_have_automake+set}" = set; then
6415  echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417  if test -n "$have_automake"; then
6418  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423  IFS=$as_save_IFS
6424  test -z "$as_dir" && as_dir=.
6425  for ac_exec_ext in '' $ac_executable_extensions; do
6426  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6427    ac_cv_prog_have_automake="yes"
6428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429    break 2
6430  fi
6431done
6432done
6433
6434  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6435fi
6436fi
6437have_automake=$ac_cv_prog_have_automake
6438if test -n "$have_automake"; then
6439  echo "$as_me:$LINENO: result: $have_automake" >&5
6440echo "${ECHO_T}$have_automake" >&6
6441else
6442  echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
6444fi
6445
6446    if test $have_automake = no; then
6447      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6448echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6449   { (exit 1); exit 1; }; }
6450    fi
6451
6452    # Check whether automake is the correct version
6453    correct_version='1.9.6'
6454    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6455    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6456echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6457    automake --version > confauto.out 2>&1
6458    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6459      echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461    else
6462      rm -f confauto.out
6463      echo "$as_me:$LINENO: result: no" >&5
6464echo "${ECHO_T}no" >&6
6465      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6466echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6467   { (exit 1); exit 1; }; }
6468    fi
6469    rm -f confauto.out
6470
6471    # Check if the executable automake is picked up from the correct location
6472    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6473echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6474    automake_dir=`which automake | sed -e 's=/automake=='`
6475    automake_dir=`cd $automake_dir; pwd`
6476    if test x$AUTOTOOLS_DIR = x; then
6477      want_dir=$AUTOTOOLS_DFLT/bin
6478    else
6479      want_dir=$AUTOTOOLS_DIR/bin
6480    fi
6481    if test $automake_dir = `cd $want_dir; pwd`; then
6482      echo "$as_me:$LINENO: result: yes" >&5
6483echo "${ECHO_T}yes" >&6
6484    else
6485      rm -f confauto.out
6486      echo "$as_me:$LINENO: result: no" >&5
6487echo "${ECHO_T}no" >&6
6488      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6489echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6490   { (exit 1); exit 1; }; }
6491    fi
6492
6493    # Check if this is the correct version of libtool (with escaped dots)
6494    if test x$AUTOTOOLS_DIR = x; then
6495      want_dir=$AUTOTOOLS_DFLT/share
6496    else
6497      want_dir=$AUTOTOOLS_DIR/share
6498    fi
6499    correct_version='1.5.22'
6500    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6501    if test -r $want_dir/libtool/ltmain.sh; then
6502  have_ltmain=yes
6503  :
6504else
6505  have_ltmain=no
6506  :
6507fi
6508
6509    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6510echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6511    if test $have_ltmain = yes; then
6512    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6513        echo "$as_me:$LINENO: result: yes" >&5
6514echo "${ECHO_T}yes" >&6
6515      else
6516        echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6519echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6520   { (exit 1); exit 1; }; }
6521      fi
6522    else
6523      echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
6525      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6526echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6527   { (exit 1); exit 1; }; }
6528    fi
6529  fi
6530
6531  # Check if we can find the libtool file
6532  if test x$AUTOTOOLS_DIR = x; then
6533    want_dir=$AUTOTOOLS_DFLT/share
6534  else
6535    want_dir=$AUTOTOOLS_DIR/share
6536  fi
6537  if test -r $want_dir/aclocal/libtool.m4; then
6538  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6539  :
6540else
6541  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6542echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6543   { (exit 1); exit 1; }; }
6544  :
6545fi
6546
6547
6548  # Check if we have an Externals file
6549  if test -r $srcdir/Externals; then
6550    coin_have_externals=yes
6551  fi
6552  # Check if subversion is installed and understands https
6553  # Extract the first word of "svn", so it can be a program name with args.
6554set dummy svn; ac_word=$2
6555echo "$as_me:$LINENO: checking for $ac_word" >&5
6556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6557if test "${ac_cv_prog_have_svn+set}" = set; then
6558  echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560  if test -n "$have_svn"; then
6561  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566  IFS=$as_save_IFS
6567  test -z "$as_dir" && as_dir=.
6568  for ac_exec_ext in '' $ac_executable_extensions; do
6569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570    ac_cv_prog_have_svn="yes"
6571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572    break 2
6573  fi
6574done
6575done
6576
6577  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6578fi
6579fi
6580have_svn=$ac_cv_prog_have_svn
6581if test -n "$have_svn"; then
6582  echo "$as_me:$LINENO: result: $have_svn" >&5
6583echo "${ECHO_T}$have_svn" >&6
6584else
6585  echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587fi
6588
6589  if test x$have_svn = xyes; then
6590    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6591echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6592if test "${ac_cv_svn_understands_https+set}" = set; then
6593  echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595  svn --version > confauto.out 2>&1
6596                    if $EGREP https confauto.out >/dev/null 2>&1; then
6597                      ac_cv_svn_understands_https=yes
6598                    else
6599                      ac_cv_svn_understands_https=no
6600                      have_svn=no
6601                      ac_cv_prog_have_svn=no
6602                    fi
6603                    rm -f confauto.out
6604fi
6605echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6606echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6607  fi
6608
6609  # Find the location of the BuildTools directory
6610  BUILDTOOLSDIR=
6611  if test -r $srcdir/BuildTools/coin.m4; then
6612    BUILDTOOLSDIR=$srcdir/BuildTools
6613  else
6614    if test -r $srcdir/../BuildTools/coin.m4; then
6615      BUILDTOOLSDIR=$srcdir/../BuildTools
6616    else
6617      if test -r $srcdir/../../BuildTools/coin.m4; then
6618        BUILDTOOLSDIR=$srcdir/../../BuildTools
6619      else
6620        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6621echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6622   { (exit 1); exit 1; }; }
6623      fi
6624    fi
6625  fi
6626
6627
6628  # The following variable is set to the name of the directory where
6629  # the autotool scripts are located
6630
6631  AUX_DIR=$ac_aux_dir
6632fi
6633
6634# helpful variable for the base directory of this package
6635abs_source_dir=`cd $srcdir; pwd`
6636
6637
6638# Stuff for example Makefiles
6639if test x$prefix = xNONE; then
6640  full_prefix=$ac_default_prefix
6641else
6642  full_prefix=$prefix
6643fi
6644full_prefix=`cd $full_prefix ; pwd`
6645
6646abs_lib_dir=$full_prefix/lib
6647
6648abs_include_dir=$full_prefix/include
6649
6650abs_bin_dir=$full_prefix/bin
6651
6652
6653
6654if test $coin_have_externals = yes && test x$have_svn = xyes; then
6655  HAVE_EXTERNALS_TRUE=
6656  HAVE_EXTERNALS_FALSE='#'
6657else
6658  HAVE_EXTERNALS_TRUE='#'
6659  HAVE_EXTERNALS_FALSE=
6660fi
6661
6662
6663# AC_MSG_NOTICE([End automake initialisation.])
6664
6665
6666
6667LIBTOOL=
6668if test -r ../libtool; then
6669  coin_config_dir=..
6670  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6671fi
6672if test "x$LIBTOOL" = x; then
6673  if test -r ../../libtool; then
6674    coin_config_dir=../..
6675    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6676  fi
6677fi
6678
6679if test "x$LIBTOOL" = x; then
6680# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6681  # Stuff for libtool
6682  # Check whether --enable-shared or --disable-shared was given.
6683if test "${enable_shared+set}" = set; then
6684  enableval="$enable_shared"
6685  p=${PACKAGE-default}
6686    case $enableval in
6687    yes) enable_shared=yes ;;
6688    no) enable_shared=no ;;
6689    *)
6690      enable_shared=no
6691      # Look at the argument we got.  We use all the common list separators.
6692      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6693      for pkg in $enableval; do
6694        IFS="$lt_save_ifs"
6695        if test "X$pkg" = "X$p"; then
6696          enable_shared=yes
6697        fi
6698      done
6699      IFS="$lt_save_ifs"
6700      ;;
6701    esac
6702else
6703  enable_shared=yes
6704fi;
6705
6706# Check whether --enable-fast-install or --disable-fast-install was given.
6707if test "${enable_fast_install+set}" = set; then
6708  enableval="$enable_fast_install"
6709  p=${PACKAGE-default}
6710    case $enableval in
6711    yes) enable_fast_install=yes ;;
6712    no) enable_fast_install=no ;;
6713    *)
6714      enable_fast_install=no
6715      # Look at the argument we got.  We use all the common list separators.
6716      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6717      for pkg in $enableval; do
6718        IFS="$lt_save_ifs"
6719        if test "X$pkg" = "X$p"; then
6720          enable_fast_install=yes
6721        fi
6722      done
6723      IFS="$lt_save_ifs"
6724      ;;
6725    esac
6726else
6727  enable_fast_install=yes
6728fi;
6729
6730echo "$as_me:$LINENO: checking host system type" >&5
6731echo $ECHO_N "checking host system type... $ECHO_C" >&6
6732if test "${ac_cv_host+set}" = set; then
6733  echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735  ac_cv_host_alias=$host_alias
6736test -z "$ac_cv_host_alias" &&
6737  ac_cv_host_alias=$ac_cv_build_alias
6738ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6739  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6740echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6741   { (exit 1); exit 1; }; }
6742
6743fi
6744echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6745echo "${ECHO_T}$ac_cv_host" >&6
6746host=$ac_cv_host
6747host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6748host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6749host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6750
6751
6752echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6753echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6754if test "${lt_cv_path_SED+set}" = set; then
6755  echo $ECHO_N "(cached) $ECHO_C" >&6
6756else
6757  # Loop through the user's path and test for sed and gsed.
6758# Then use that list of sed's as ones to test for truncation.
6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760for as_dir in $PATH
6761do
6762  IFS=$as_save_IFS
6763  test -z "$as_dir" && as_dir=.
6764  for lt_ac_prog in sed gsed; do
6765    for ac_exec_ext in '' $ac_executable_extensions; do
6766      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6767        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6768      fi
6769    done
6770  done
6771done
6772lt_ac_max=0
6773lt_ac_count=0
6774# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6775# along with /bin/sed that truncates output.
6776for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6777  test ! -f $lt_ac_sed && continue
6778  cat /dev/null > conftest.in
6779  lt_ac_count=0
6780  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6781  # Check for GNU sed and select it if it is found.
6782  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6783    lt_cv_path_SED=$lt_ac_sed
6784    break
6785  fi
6786  while true; do
6787    cat conftest.in conftest.in >conftest.tmp
6788    mv conftest.tmp conftest.in
6789    cp conftest.in conftest.nl
6790    echo >>conftest.nl
6791    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6792    cmp -s conftest.out conftest.nl || break
6793    # 10000 chars as input seems more than enough
6794    test $lt_ac_count -gt 10 && break
6795    lt_ac_count=`expr $lt_ac_count + 1`
6796    if test $lt_ac_count -gt $lt_ac_max; then
6797      lt_ac_max=$lt_ac_count
6798      lt_cv_path_SED=$lt_ac_sed
6799    fi
6800  done
6801done
6802
6803fi
6804
6805SED=$lt_cv_path_SED
6806echo "$as_me:$LINENO: result: $SED" >&5
6807echo "${ECHO_T}$SED" >&6
6808
6809
6810# Check whether --with-gnu-ld or --without-gnu-ld was given.
6811if test "${with_gnu_ld+set}" = set; then
6812  withval="$with_gnu_ld"
6813  test "$withval" = no || with_gnu_ld=yes
6814else
6815  with_gnu_ld=no
6816fi;
6817ac_prog=ld
6818if test "$GCC" = yes; then
6819  # Check if gcc -print-prog-name=ld gives a path.
6820  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6821echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6822  case $host in
6823  *-*-mingw*)
6824    # gcc leaves a trailing carriage return which upsets mingw
6825    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6826  *)
6827    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6828  esac
6829  case $ac_prog in
6830    # Accept absolute paths.
6831    [\\/]* | ?:[\\/]*)
6832      re_direlt='/[^/][^/]*/\.\./'
6833      # Canonicalize the pathname of ld
6834      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6835      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6836        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6837      done
6838      test -z "$LD" && LD="$ac_prog"
6839      ;;
6840  "")
6841    # If it fails, then pretend we aren't using GCC.
6842    ac_prog=ld
6843    ;;
6844  *)
6845    # If it is relative, then search for the first ld in PATH.
6846    with_gnu_ld=unknown
6847    ;;
6848  esac
6849elif test "$with_gnu_ld" = yes; then
6850  echo "$as_me:$LINENO: checking for GNU ld" >&5
6851echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6852else
6853  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6854echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6855fi
6856if test "${lt_cv_path_LD+set}" = set; then
6857  echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859  if test -z "$LD"; then
6860  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6861  for ac_dir in $PATH; do
6862    IFS="$lt_save_ifs"
6863    test -z "$ac_dir" && ac_dir=.
6864    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6865      lt_cv_path_LD="$ac_dir/$ac_prog"
6866      # Check to see if the program is GNU ld.  I'd rather use --version,
6867      # but apparently some variants of GNU ld only accept -v.
6868      # Break only if it was the GNU/non-GNU ld that we prefer.
6869      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6870      *GNU* | *'with BFD'*)
6871        test "$with_gnu_ld" != no && break
6872        ;;
6873      *)
6874        test "$with_gnu_ld" != yes && break
6875        ;;
6876      esac
6877    fi
6878  done
6879  IFS="$lt_save_ifs"
6880else
6881  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6882fi
6883fi
6884
6885LD="$lt_cv_path_LD"
6886if test -n "$LD"; then
6887  echo "$as_me:$LINENO: result: $LD" >&5
6888echo "${ECHO_T}$LD" >&6
6889else
6890  echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
6892fi
6893test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6894echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6895   { (exit 1); exit 1; }; }
6896echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6897echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6898if test "${lt_cv_prog_gnu_ld+set}" = set; then
6899  echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6902case `$LD -v 2>&1 </dev/null` in
6903*GNU* | *'with BFD'*)
6904  lt_cv_prog_gnu_ld=yes
6905  ;;
6906*)
6907  lt_cv_prog_gnu_ld=no
6908  ;;
6909esac
6910fi
6911echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6912echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6913with_gnu_ld=$lt_cv_prog_gnu_ld
6914
6915
6916echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6917echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6918if test "${lt_cv_ld_reload_flag+set}" = set; then
6919  echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921  lt_cv_ld_reload_flag='-r'
6922fi
6923echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6924echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6925reload_flag=$lt_cv_ld_reload_flag
6926case $reload_flag in
6927"" | " "*) ;;
6928*) reload_flag=" $reload_flag" ;;
6929esac
6930reload_cmds='$LD$reload_flag -o $output$reload_objs'
6931case $host_os in
6932  darwin*)
6933    if test "$GCC" = yes; then
6934      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6935    else
6936      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6937    fi
6938    ;;
6939esac
6940
6941echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6942echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6943if test "${lt_cv_path_NM+set}" = set; then
6944  echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946  if test -n "$NM"; then
6947  # Let the user override the test.
6948  lt_cv_path_NM="$NM"
6949else
6950  lt_nm_to_check="${ac_tool_prefix}nm"
6951  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6952    lt_nm_to_check="$lt_nm_to_check nm"
6953  fi
6954  for lt_tmp_nm in $lt_nm_to_check; do
6955    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6956    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6957      IFS="$lt_save_ifs"
6958      test -z "$ac_dir" && ac_dir=.
6959      tmp_nm="$ac_dir/$lt_tmp_nm"
6960      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6961        # Check to see if the nm accepts a BSD-compat flag.
6962        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6963        #   nm: unknown option "B" ignored
6964        # Tru64's nm complains that /dev/null is an invalid object file
6965        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6966        */dev/null* | *'Invalid file or object type'*)
6967          lt_cv_path_NM="$tmp_nm -B"
6968          break
6969          ;;
6970        *)
6971          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6972          */dev/null*)
6973            lt_cv_path_NM="$tmp_nm -p"
6974            break
6975            ;;
6976          *)
6977            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6978            continue # so that we can try to find one that supports BSD flags
6979            ;;
6980          esac
6981          ;;
6982        esac
6983      fi
6984    done
6985    IFS="$lt_save_ifs"
6986  done
6987  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6988fi
6989fi
6990echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6991echo "${ECHO_T}$lt_cv_path_NM" >&6
6992NM="$lt_cv_path_NM"
6993
6994echo "$as_me:$LINENO: checking whether ln -s works" >&5
6995echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6996LN_S=$as_ln_s
6997if test "$LN_S" = "ln -s"; then
6998  echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000else
7001  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7002echo "${ECHO_T}no, using $LN_S" >&6
7003fi
7004
7005echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7006echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7007if test "${lt_cv_deplibs_check_method+set}" = set; then
7008  echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010  lt_cv_file_magic_cmd='$MAGIC_CMD'
7011lt_cv_file_magic_test_file=
7012lt_cv_deplibs_check_method='unknown'
7013# Need to set the preceding variable on all platforms that support
7014# interlibrary dependencies.
7015# 'none' -- dependencies not supported.
7016# `unknown' -- same as none, but documents that we really don't know.
7017# 'pass_all' -- all dependencies passed with no checks.
7018# 'test_compile' -- check by making test program.
7019# 'file_magic [[regex]]' -- check by looking for files in library path
7020# which responds to the $file_magic_cmd with a given extended regex.
7021# If you have `file' or equivalent on your system and you're not sure
7022# whether `pass_all' will *always* work, you probably want this one.
7023
7024case $host_os in
7025aix4* | aix5*)
7026  lt_cv_deplibs_check_method=pass_all
7027  ;;
7028
7029beos*)
7030  lt_cv_deplibs_check_method=pass_all
7031  ;;
7032
7033bsdi[45]*)
7034  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7035  lt_cv_file_magic_cmd='/usr/bin/file -L'
7036  lt_cv_file_magic_test_file=/shlib/libc.so
7037  ;;
7038
7039cygwin*)
7040  # func_win32_libid is a shell function defined in ltmain.sh
7041  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7042  lt_cv_file_magic_cmd='func_win32_libid'
7043  ;;
7044
7045mingw* | pw32*)
7046  # Base MSYS/MinGW do not provide the 'file' command needed by
7047  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7048  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7049  lt_cv_file_magic_cmd='$OBJDUMP -f'
7050  ;;
7051
7052darwin* | rhapsody*)
7053  lt_cv_deplibs_check_method=pass_all
7054  ;;
7055
7056freebsd* | kfreebsd*-gnu | dragonfly*)
7057  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7058    case $host_cpu in
7059    i*86 )
7060      # Not sure whether the presence of OpenBSD here was a mistake.
7061      # Let's accept both of them until this is cleared up.
7062      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7063      lt_cv_file_magic_cmd=/usr/bin/file
7064      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7065      ;;
7066    esac
7067  else
7068    lt_cv_deplibs_check_method=pass_all
7069  fi
7070  ;;
7071
7072gnu*)
7073  lt_cv_deplibs_check_method=pass_all
7074  ;;
7075
7076hpux10.20* | hpux11*)
7077  lt_cv_file_magic_cmd=/usr/bin/file
7078  case $host_cpu in
7079  ia64*)
7080    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7081    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7082    ;;
7083  hppa*64*)
7084    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]'
7085    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7086    ;;
7087  *)
7088    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7089    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7090    ;;
7091  esac
7092  ;;
7093
7094interix3*)
7095  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7096  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7097  ;;
7098
7099irix5* | irix6* | nonstopux*)
7100  case $LD in
7101  *-32|*"-32 ") libmagic=32-bit;;
7102  *-n32|*"-n32 ") libmagic=N32;;
7103  *-64|*"-64 ") libmagic=64-bit;;
7104  *) libmagic=never-match;;
7105  esac
7106  lt_cv_deplibs_check_method=pass_all
7107  ;;
7108
7109# This must be Linux ELF.
7110linux*)
7111  lt_cv_deplibs_check_method=pass_all
7112  ;;
7113
7114netbsd*)
7115  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7116    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7117  else
7118    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7119  fi
7120  ;;
7121
7122newos6*)
7123  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7124  lt_cv_file_magic_cmd=/usr/bin/file
7125  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7126  ;;
7127
7128nto-qnx*)
7129  lt_cv_deplibs_check_method=unknown
7130  ;;
7131
7132openbsd*)
7133  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7134    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7135  else
7136    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7137  fi
7138  ;;
7139
7140osf3* | osf4* | osf5*)
7141  lt_cv_deplibs_check_method=pass_all
7142  ;;
7143
7144solaris*)
7145  lt_cv_deplibs_check_method=pass_all
7146  ;;
7147
7148sysv4 | sysv4.3*)
7149  case $host_vendor in
7150  motorola)
7151    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]'
7152    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7153    ;;
7154  ncr)
7155    lt_cv_deplibs_check_method=pass_all
7156    ;;
7157  sequent)
7158    lt_cv_file_magic_cmd='/bin/file'
7159    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7160    ;;
7161  sni)
7162    lt_cv_file_magic_cmd='/bin/file'
7163    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7164    lt_cv_file_magic_test_file=/lib/libc.so
7165    ;;
7166  siemens)
7167    lt_cv_deplibs_check_method=pass_all
7168    ;;
7169  pc)
7170    lt_cv_deplibs_check_method=pass_all
7171    ;;
7172  esac
7173  ;;
7174
7175sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7176  lt_cv_deplibs_check_method=pass_all
7177  ;;
7178esac
7179
7180fi
7181echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7182echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7183file_magic_cmd=$lt_cv_file_magic_cmd
7184deplibs_check_method=$lt_cv_deplibs_check_method
7185test -z "$deplibs_check_method" && deplibs_check_method=unknown
7186
7187
7188
7189
7190# If no C compiler was specified, use CC.
7191LTCC=${LTCC-"$CC"}
7192
7193# If no C compiler flags were specified, use CFLAGS.
7194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7195
7196# Allow CC to be a program name with arguments.
7197compiler=$CC
7198
7199# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7200if test "${enable_libtool_lock+set}" = set; then
7201  enableval="$enable_libtool_lock"
7202
7203fi;
7204test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7205
7206# Some flags need to be propagated to the compiler or linker for good
7207# libtool support.
7208case $host in
7209ia64-*-hpux*)
7210  # Find out which ABI we are using.
7211  echo 'int i;' > conftest.$ac_ext
7212  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213  (eval $ac_compile) 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); }; then
7217    case `/usr/bin/file conftest.$ac_objext` in
7218    *ELF-32*)
7219      HPUX_IA64_MODE="32"
7220      ;;
7221    *ELF-64*)
7222      HPUX_IA64_MODE="64"
7223      ;;
7224    esac
7225  fi
7226  rm -rf conftest*
7227  ;;
7228*-*-irix6*)
7229  # Find out which ABI we are using.
7230  echo '#line 7230 "configure"' > conftest.$ac_ext
7231  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232  (eval $ac_compile) 2>&5
7233  ac_status=$?
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); }; then
7236   if test "$lt_cv_prog_gnu_ld" = yes; then
7237    case `/usr/bin/file conftest.$ac_objext` in
7238    *32-bit*)
7239      LD="${LD-ld} -melf32bsmip"
7240      ;;
7241    *N32*)
7242      LD="${LD-ld} -melf32bmipn32"
7243      ;;
7244    *64-bit*)
7245      LD="${LD-ld} -melf64bmip"
7246      ;;
7247    esac
7248   else
7249    case `/usr/bin/file conftest.$ac_objext` in
7250    *32-bit*)
7251      LD="${LD-ld} -32"
7252      ;;
7253    *N32*)
7254      LD="${LD-ld} -n32"
7255      ;;
7256    *64-bit*)
7257      LD="${LD-ld} -64"
7258      ;;
7259    esac
7260   fi
7261  fi
7262  rm -rf conftest*
7263  ;;
7264
7265x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7266  # Find out which ABI we are using.
7267  echo 'int i;' > conftest.$ac_ext
7268  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269  (eval $ac_compile) 2>&5
7270  ac_status=$?
7271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272  (exit $ac_status); }; then
7273    case `/usr/bin/file conftest.o` in
7274    *32-bit*)
7275      case $host in
7276        x86_64-*linux*)
7277          LD="${LD-ld} -m elf_i386"
7278          ;;
7279        ppc64-*linux*|powerpc64-*linux*)
7280          LD="${LD-ld} -m elf32ppclinux"
7281          ;;
7282        s390x-*linux*)
7283          LD="${LD-ld} -m elf_s390"
7284          ;;
7285        sparc64-*linux*)
7286          LD="${LD-ld} -m elf32_sparc"
7287          ;;
7288      esac
7289      ;;
7290    *64-bit*)
7291      case $host in
7292        x86_64-*linux*)
7293          LD="${LD-ld} -m elf_x86_64"
7294          ;;
7295        ppc*-*linux*|powerpc*-*linux*)
7296          LD="${LD-ld} -m elf64ppc"
7297          ;;
7298        s390*-*linux*)
7299          LD="${LD-ld} -m elf64_s390"
7300          ;;
7301        sparc*-*linux*)
7302          LD="${LD-ld} -m elf64_sparc"
7303          ;;
7304      esac
7305      ;;
7306    esac
7307  fi
7308  rm -rf conftest*
7309  ;;
7310
7311*-*-sco3.2v5*)
7312  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7313  SAVE_CFLAGS="$CFLAGS"
7314  CFLAGS="$CFLAGS -belf"
7315  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7316echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7317if test "${lt_cv_cc_needs_belf+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320  ac_ext=c
7321ac_cpp='$CPP $CPPFLAGS'
7322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324ac_compiler_gnu=$ac_cv_c_compiler_gnu
7325
7326     cat >conftest.$ac_ext <<_ACEOF
7327/* confdefs.h.  */
7328_ACEOF
7329cat confdefs.h >>conftest.$ac_ext
7330cat >>conftest.$ac_ext <<_ACEOF
7331/* end confdefs.h.  */
7332
7333#ifdef F77_DUMMY_MAIN
7334
7335#  ifdef __cplusplus
7336     extern "C"
7337#  endif
7338   int F77_DUMMY_MAIN() { return 1; }
7339
7340#endif
7341int
7342main ()
7343{
7344
7345  ;
7346  return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext conftest$ac_exeext
7350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351  (eval $ac_link) 2>conftest.er1
7352  ac_status=$?
7353  grep -v '^ *+' conftest.er1 >conftest.err
7354  rm -f conftest.er1
7355  cat conftest.err >&5
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } &&
7358         { ac_try='test -z "$ac_c_werror_flag"
7359                         || test ! -s conftest.err'
7360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361  (eval $ac_try) 2>&5
7362  ac_status=$?
7363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364  (exit $ac_status); }; } &&
7365         { ac_try='test -s conftest$ac_exeext'
7366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367  (eval $ac_try) 2>&5
7368  ac_status=$?
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); }; }; then
7371  lt_cv_cc_needs_belf=yes
7372else
7373  echo "$as_me: failed program was:" >&5
7374sed 's/^/| /' conftest.$ac_ext >&5
7375
7376lt_cv_cc_needs_belf=no
7377fi
7378rm -f conftest.err conftest.$ac_objext \
7379      conftest$ac_exeext conftest.$ac_ext
7380     ac_ext=c
7381ac_cpp='$CPP $CPPFLAGS'
7382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384ac_compiler_gnu=$ac_cv_c_compiler_gnu
7385
7386fi
7387echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7388echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7389  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7390    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7391    CFLAGS="$SAVE_CFLAGS"
7392  fi
7393  ;;
7394sparc*-*solaris*)
7395  # Find out which ABI we are using.
7396  echo 'int i;' > conftest.$ac_ext
7397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7398  (eval $ac_compile) 2>&5
7399  ac_status=$?
7400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401  (exit $ac_status); }; then
7402    case `/usr/bin/file conftest.o` in
7403    *64-bit*)
7404      case $lt_cv_prog_gnu_ld in
7405      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7406      *)    LD="${LD-ld} -64" ;;
7407      esac
7408      ;;
7409    esac
7410  fi
7411  rm -rf conftest*
7412  ;;
7413
7414
7415esac
7416
7417need_locks="$enable_libtool_lock"
7418
7419
7420ac_ext=c
7421ac_cpp='$CPP $CPPFLAGS'
7422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7424ac_compiler_gnu=$ac_cv_c_compiler_gnu
7425echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7426echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7427# On Suns, sometimes $CPP names a directory.
7428if test -n "$CPP" && test -d "$CPP"; then
7429  CPP=
7430fi
7431if test -z "$CPP"; then
7432  if test "${ac_cv_prog_CPP+set}" = set; then
7433  echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435      # Double quotes because CPP needs to be expanded
7436    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7437    do
7438      ac_preproc_ok=false
7439for ac_c_preproc_warn_flag in '' yes
7440do
7441  # Use a header file that comes with gcc, so configuring glibc
7442  # with a fresh cross-compiler works.
7443  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7444  # <limits.h> exists even on freestanding compilers.
7445  # On the NeXT, cc -E runs the code through the compiler's parser,
7446  # not just through cpp. "Syntax error" is here to catch this case.
7447  cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h.  */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h.  */
7453#ifdef __STDC__
7454# include <limits.h>
7455#else
7456# include <assert.h>
7457#endif
7458                     Syntax error
7459_ACEOF
7460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462  ac_status=$?
7463  grep -v '^ *+' conftest.er1 >conftest.err
7464  rm -f conftest.er1
7465  cat conftest.err >&5
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); } >/dev/null; then
7468  if test -s conftest.err; then
7469    ac_cpp_err=$ac_c_preproc_warn_flag
7470    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7471  else
7472    ac_cpp_err=
7473  fi
7474else
7475  ac_cpp_err=yes
7476fi
7477if test -z "$ac_cpp_err"; then
7478  :
7479else
7480  echo "$as_me: failed program was:" >&5
7481sed 's/^/| /' conftest.$ac_ext >&5
7482
7483  # Broken: fails on valid input.
7484continue
7485fi
7486rm -f conftest.err conftest.$ac_ext
7487
7488  # OK, works on sane cases.  Now check whether non-existent headers
7489  # can be detected and how.
7490  cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h.  */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h.  */
7496#include <ac_nonexistent.h>
7497_ACEOF
7498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500  ac_status=$?
7501  grep -v '^ *+' conftest.er1 >conftest.err
7502  rm -f conftest.er1
7503  cat conftest.err >&5
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); } >/dev/null; then
7506  if test -s conftest.err; then
7507    ac_cpp_err=$ac_c_preproc_warn_flag
7508    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7509  else
7510    ac_cpp_err=
7511  fi
7512else
7513  ac_cpp_err=yes
7514fi
7515if test -z "$ac_cpp_err"; then
7516  # Broken: success on invalid input.
7517continue
7518else
7519  echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
7522  # Passes both tests.
7523ac_preproc_ok=:
7524break
7525fi
7526rm -f conftest.err conftest.$ac_ext
7527
7528done
7529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7530rm -f conftest.err conftest.$ac_ext
7531if $ac_preproc_ok; then
7532  break
7533fi
7534
7535    done
7536    ac_cv_prog_CPP=$CPP
7537
7538fi
7539  CPP=$ac_cv_prog_CPP
7540else
7541  ac_cv_prog_CPP=$CPP
7542fi
7543echo "$as_me:$LINENO: result: $CPP" >&5
7544echo "${ECHO_T}$CPP" >&6
7545ac_preproc_ok=false
7546for ac_c_preproc_warn_flag in '' yes
7547do
7548  # Use a header file that comes with gcc, so configuring glibc
7549  # with a fresh cross-compiler works.
7550  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7551  # <limits.h> exists even on freestanding compilers.
7552  # On the NeXT, cc -E runs the code through the compiler's parser,
7553  # not just through cpp. "Syntax error" is here to catch this case.
7554  cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h.  */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h.  */
7560#ifdef __STDC__
7561# include <limits.h>
7562#else
7563# include <assert.h>
7564#endif
7565                     Syntax error
7566_ACEOF
7567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7568  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7569  ac_status=$?
7570  grep -v '^ *+' conftest.er1 >conftest.err
7571  rm -f conftest.er1
7572  cat conftest.err >&5
7573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574  (exit $ac_status); } >/dev/null; then
7575  if test -s conftest.err; then
7576    ac_cpp_err=$ac_c_preproc_warn_flag
7577    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7578  else
7579    ac_cpp_err=
7580  fi
7581else
7582  ac_cpp_err=yes
7583fi
7584if test -z "$ac_cpp_err"; then
7585  :
7586else
7587  echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590  # Broken: fails on valid input.
7591continue
7592fi
7593rm -f conftest.err conftest.$ac_ext
7594
7595  # OK, works on sane cases.  Now check whether non-existent headers
7596  # can be detected and how.
7597  cat >conftest.$ac_ext <<_ACEOF
7598/* confdefs.h.  */
7599_ACEOF
7600cat confdefs.h >>conftest.$ac_ext
7601cat >>conftest.$ac_ext <<_ACEOF
7602/* end confdefs.h.  */
7603#include <ac_nonexistent.h>
7604_ACEOF
7605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7606  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7607  ac_status=$?
7608  grep -v '^ *+' conftest.er1 >conftest.err
7609  rm -f conftest.er1
7610  cat conftest.err >&5
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } >/dev/null; then
7613  if test -s conftest.err; then
7614    ac_cpp_err=$ac_c_preproc_warn_flag
7615    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7616  else
7617    ac_cpp_err=
7618  fi
7619else
7620  ac_cpp_err=yes
7621fi
7622if test -z "$ac_cpp_err"; then
7623  # Broken: success on invalid input.
7624continue
7625else
7626  echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629  # Passes both tests.
7630ac_preproc_ok=:
7631break
7632fi
7633rm -f conftest.err conftest.$ac_ext
7634
7635done
7636# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637rm -f conftest.err conftest.$ac_ext
7638if $ac_preproc_ok; then
7639  :
7640else
7641  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7642See \`config.log' for more details." >&5
7643echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7644See \`config.log' for more details." >&2;}
7645   { (exit 1); exit 1; }; }
7646fi
7647
7648ac_ext=c
7649ac_cpp='$CPP $CPPFLAGS'
7650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652ac_compiler_gnu=$ac_cv_c_compiler_gnu
7653
7654
7655echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7656echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7657if test "${ac_cv_header_stdc+set}" = set; then
7658  echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660  cat >conftest.$ac_ext <<_ACEOF
7661/* confdefs.h.  */
7662_ACEOF
7663cat confdefs.h >>conftest.$ac_ext
7664cat >>conftest.$ac_ext <<_ACEOF
7665/* end confdefs.h.  */
7666#include <stdlib.h>
7667#include <stdarg.h>
7668#include <string.h>
7669#include <float.h>
7670
7671#ifdef F77_DUMMY_MAIN
7672
7673#  ifdef __cplusplus
7674     extern "C"
7675#  endif
7676   int F77_DUMMY_MAIN() { return 1; }
7677
7678#endif
7679int
7680main ()
7681{
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext
7688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689  (eval $ac_compile) 2>conftest.er1
7690  ac_status=$?
7691  grep -v '^ *+' conftest.er1 >conftest.err
7692  rm -f conftest.er1
7693  cat conftest.err >&5
7694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695  (exit $ac_status); } &&
7696         { ac_try='test -z "$ac_c_werror_flag"
7697                         || test ! -s conftest.err'
7698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699  (eval $ac_try) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); }; } &&
7703         { ac_try='test -s conftest.$ac_objext'
7704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705  (eval $ac_try) 2>&5
7706  ac_status=$?
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); }; }; then
7709  ac_cv_header_stdc=yes
7710else
7711  echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714ac_cv_header_stdc=no
7715fi
7716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7717
7718if test $ac_cv_header_stdc = yes; then
7719  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7720  cat >conftest.$ac_ext <<_ACEOF
7721/* confdefs.h.  */
7722_ACEOF
7723cat confdefs.h >>conftest.$ac_ext
7724cat >>conftest.$ac_ext <<_ACEOF
7725/* end confdefs.h.  */
7726#include <string.h>
7727
7728_ACEOF
7729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7730  $EGREP "memchr" >/dev/null 2>&1; then
7731  :
7732else
7733  ac_cv_header_stdc=no
7734fi
7735rm -f conftest*
7736
7737fi
7738
7739if test $ac_cv_header_stdc = yes; then
7740  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7741  cat >conftest.$ac_ext <<_ACEOF
7742/* confdefs.h.  */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h.  */
7747#include <stdlib.h>
7748
7749_ACEOF
7750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751  $EGREP "free" >/dev/null 2>&1; then
7752  :
7753else
7754  ac_cv_header_stdc=no
7755fi
7756rm -f conftest*
7757
7758fi
7759
7760if test $ac_cv_header_stdc = yes; then
7761  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7762  if test "$cross_compiling" = yes; then
7763  :
7764else
7765  cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h.  */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h.  */
7771#include <ctype.h>
7772#if ((' ' & 0x0FF) == 0x020)
7773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7775#else
7776# define ISLOWER(c) \
7777                   (('a' <= (c) && (c) <= 'i') \
7778                     || ('j' <= (c) && (c) <= 'r') \
7779                     || ('s' <= (c) && (c) <= 'z'))
7780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7781#endif
7782
7783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7784int
7785main ()
7786{
7787  int i;
7788  for (i = 0; i < 256; i++)
7789    if (XOR (islower (i), ISLOWER (i))
7790        || toupper (i) != TOUPPER (i))
7791      exit(2);
7792  exit (0);
7793}
7794_ACEOF
7795rm -f conftest$ac_exeext
7796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797  (eval $ac_link) 2>&5
7798  ac_status=$?
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802  (eval $ac_try) 2>&5
7803  ac_status=$?
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); }; }; then
7806  :
7807else
7808  echo "$as_me: program exited with status $ac_status" >&5
7809echo "$as_me: failed program was:" >&5
7810sed 's/^/| /' conftest.$ac_ext >&5
7811
7812( exit $ac_status )
7813ac_cv_header_stdc=no
7814fi
7815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7816fi
7817fi
7818fi
7819echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7820echo "${ECHO_T}$ac_cv_header_stdc" >&6
7821if test $ac_cv_header_stdc = yes; then
7822
7823cat >>confdefs.h <<\_ACEOF
7824#define STDC_HEADERS 1
7825_ACEOF
7826
7827fi
7828
7829# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7840                  inttypes.h stdint.h unistd.h
7841do
7842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7843echo "$as_me:$LINENO: checking for $ac_header" >&5
7844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7845if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846  echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848  cat >conftest.$ac_ext <<_ACEOF
7849/* confdefs.h.  */
7850_ACEOF
7851cat confdefs.h >>conftest.$ac_ext
7852cat >>conftest.$ac_ext <<_ACEOF
7853/* end confdefs.h.  */
7854$ac_includes_default
7855
7856#include <$ac_header>
7857_ACEOF
7858rm -f conftest.$ac_objext
7859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7860  (eval $ac_compile) 2>conftest.er1
7861  ac_status=$?
7862  grep -v '^ *+' conftest.er1 >conftest.err
7863  rm -f conftest.er1
7864  cat conftest.err >&5
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); } &&
7867         { ac_try='test -z "$ac_c_werror_flag"
7868                         || test ! -s conftest.err'
7869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870  (eval $ac_try) 2>&5
7871  ac_status=$?
7872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873  (exit $ac_status); }; } &&
7874         { ac_try='test -s conftest.$ac_objext'
7875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876  (eval $ac_try) 2>&5
7877  ac_status=$?
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); }; }; then
7880  eval "$as_ac_Header=yes"
7881else
7882  echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885eval "$as_ac_Header=no"
7886fi
7887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7888fi
7889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891if test `eval echo '${'$as_ac_Header'}'` = yes; then
7892  cat >>confdefs.h <<_ACEOF
7893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7894_ACEOF
7895
7896fi
7897
7898done
7899
7900
7901
7902for ac_header in dlfcn.h
7903do
7904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7905if eval "test \"\${$as_ac_Header+set}\" = set"; then
7906  echo "$as_me:$LINENO: checking for $ac_header" >&5
7907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7908if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909  echo $ECHO_N "(cached) $ECHO_C" >&6
7910fi
7911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7913else
7914  # Is the header compilable?
7915echo "$as_me:$LINENO: checking $ac_header usability" >&5
7916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7917cat >conftest.$ac_ext <<_ACEOF
7918/* confdefs.h.  */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h.  */
7923$ac_includes_default
7924#include <$ac_header>
7925_ACEOF
7926rm -f conftest.$ac_objext
7927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928  (eval $ac_compile) 2>conftest.er1
7929  ac_status=$?
7930  grep -v '^ *+' conftest.er1 >conftest.err
7931  rm -f conftest.er1
7932  cat conftest.err >&5
7933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934  (exit $ac_status); } &&
7935         { ac_try='test -z "$ac_c_werror_flag"
7936                         || test ! -s conftest.err'
7937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938  (eval $ac_try) 2>&5
7939  ac_status=$?
7940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941  (exit $ac_status); }; } &&
7942         { ac_try='test -s conftest.$ac_objext'
7943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944  (eval $ac_try) 2>&5
7945  ac_status=$?
7946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947  (exit $ac_status); }; }; then
7948  ac_header_compiler=yes
7949else
7950  echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953ac_header_compiler=no
7954fi
7955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7957echo "${ECHO_T}$ac_header_compiler" >&6
7958
7959# Is the header present?
7960echo "$as_me:$LINENO: checking $ac_header presence" >&5
7961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7962cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h.  */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h.  */
7968#include <$ac_header>
7969_ACEOF
7970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972  ac_status=$?
7973  grep -v '^ *+' conftest.er1 >conftest.err
7974  rm -f conftest.er1
7975  cat conftest.err >&5
7976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977  (exit $ac_status); } >/dev/null; then
7978  if test -s conftest.err; then
7979    ac_cpp_err=$ac_c_preproc_warn_flag
7980    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7981  else
7982    ac_cpp_err=
7983  fi
7984else
7985  ac_cpp_err=yes
7986fi
7987if test -z "$ac_cpp_err"; then
7988  ac_header_preproc=yes
7989else
7990  echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993  ac_header_preproc=no
7994fi
7995rm -f conftest.err conftest.$ac_ext
7996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7997echo "${ECHO_T}$ac_header_preproc" >&6
7998
7999# So?  What about this header?
8000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8001  yes:no: )
8002    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8004    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8006    ac_header_preproc=yes
8007    ;;
8008  no:yes:* )
8009    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8011    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8012echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8013    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8015    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8016echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8019    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8021    (
8022      cat <<\_ASBOX
8023## --------------------------------------------------------------- ##
8024## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8025## --------------------------------------------------------------- ##
8026_ASBOX
8027    ) |
8028      sed "s/^/$as_me: WARNING:     /" >&2
8029    ;;
8030esac
8031echo "$as_me:$LINENO: checking for $ac_header" >&5
8032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8033if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034  echo $ECHO_N "(cached) $ECHO_C" >&6
8035else
8036  eval "$as_ac_Header=\$ac_header_preproc"
8037fi
8038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8040
8041fi
8042if test `eval echo '${'$as_ac_Header'}'` = yes; then
8043  cat >>confdefs.h <<_ACEOF
8044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045_ACEOF
8046
8047fi
8048
8049done
8050
8051ac_ext=cc
8052ac_cpp='$CXXCPP $CPPFLAGS'
8053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8056if test -n "$ac_tool_prefix"; then
8057  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8058  do
8059    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8061echo "$as_me:$LINENO: checking for $ac_word" >&5
8062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8063if test "${ac_cv_prog_CXX+set}" = set; then
8064  echo $ECHO_N "(cached) $ECHO_C" >&6
8065else
8066  if test -n "$CXX"; then
8067  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072  IFS=$as_save_IFS
8073  test -z "$as_dir" && as_dir=.
8074  for ac_exec_ext in '' $ac_executable_extensions; do
8075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8078    break 2
8079  fi
8080done
8081done
8082
8083fi
8084fi
8085CXX=$ac_cv_prog_CXX
8086if test -n "$CXX"; then
8087  echo "$as_me:$LINENO: result: $CXX" >&5
8088echo "${ECHO_T}$CXX" >&6
8089else
8090  echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
8092fi
8093
8094    test -n "$CXX" && break
8095  done
8096fi
8097if test -z "$CXX"; then
8098  ac_ct_CXX=$CXX
8099  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8100do
8101  # Extract the first word of "$ac_prog", so it can be a program name with args.
8102set dummy $ac_prog; ac_word=$2
8103echo "$as_me:$LINENO: checking for $ac_word" >&5
8104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8105if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108  if test -n "$ac_ct_CXX"; then
8109  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8110else
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114  IFS=$as_save_IFS
8115  test -z "$as_dir" && as_dir=.
8116  for ac_exec_ext in '' $ac_executable_extensions; do
8117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8118    ac_cv_prog_ac_ct_CXX="$ac_prog"
8119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8120    break 2
8121  fi
8122done
8123done
8124
8125fi
8126fi
8127ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8128if test -n "$ac_ct_CXX"; then
8129  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8130echo "${ECHO_T}$ac_ct_CXX" >&6
8131else
8132  echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134fi
8135
8136  test -n "$ac_ct_CXX" && break
8137done
8138test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8139
8140  CXX=$ac_ct_CXX
8141fi
8142
8143
8144# Provide some information about the compiler.
8145echo "$as_me:$LINENO:" \
8146     "checking for C++ compiler version" >&5
8147ac_compiler=`set X $ac_compile; echo $2`
8148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8149  (eval $ac_compiler --version </dev/null >&5) 2>&5
8150  ac_status=$?
8151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152  (exit $ac_status); }
8153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8154  (eval $ac_compiler -v </dev/null >&5) 2>&5
8155  ac_status=$?
8156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157  (exit $ac_status); }
8158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8159  (eval $ac_compiler -V </dev/null >&5) 2>&5
8160  ac_status=$?
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); }
8163
8164echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8165echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8166if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8167  echo $ECHO_N "(cached) $ECHO_C" >&6
8168else
8169  cat >conftest.$ac_ext <<_ACEOF
8170/* confdefs.h.  */
8171_ACEOF
8172cat confdefs.h >>conftest.$ac_ext
8173cat >>conftest.$ac_ext <<_ACEOF
8174/* end confdefs.h.  */
8175
8176#ifdef F77_DUMMY_MAIN
8177
8178#  ifdef __cplusplus
8179     extern "C"
8180#  endif
8181   int F77_DUMMY_MAIN() { return 1; }
8182
8183#endif
8184int
8185main ()
8186{
8187#ifndef __GNUC__
8188       choke me
8189#endif
8190
8191  ;
8192  return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext
8196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8197  (eval $ac_compile) 2>conftest.er1
8198  ac_status=$?
8199  grep -v '^ *+' conftest.er1 >conftest.err
8200  rm -f conftest.er1
8201  cat conftest.err >&5
8202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203  (exit $ac_status); } &&
8204         { ac_try='test -z "$ac_cxx_werror_flag"
8205                         || test ! -s conftest.err'
8206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207  (eval $ac_try) 2>&5
8208  ac_status=$?
8209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210  (exit $ac_status); }; } &&
8211         { ac_try='test -s conftest.$ac_objext'
8212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213  (eval $ac_try) 2>&5
8214  ac_status=$?
8215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216  (exit $ac_status); }; }; then
8217  ac_compiler_gnu=yes
8218else
8219  echo "$as_me: failed program was:" >&5
8220sed 's/^/| /' conftest.$ac_ext >&5
8221
8222ac_compiler_gnu=no
8223fi
8224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8225ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8226
8227fi
8228echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8229echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8230GXX=`test $ac_compiler_gnu = yes && echo yes`
8231ac_test_CXXFLAGS=${CXXFLAGS+set}
8232ac_save_CXXFLAGS=$CXXFLAGS
8233CXXFLAGS="-g"
8234echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8235echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8236if test "${ac_cv_prog_cxx_g+set}" = set; then
8237  echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239  cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h.  */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h.  */
8245
8246#ifdef F77_DUMMY_MAIN
8247
8248#  ifdef __cplusplus
8249     extern "C"
8250#  endif
8251   int F77_DUMMY_MAIN() { return 1; }
8252
8253#endif
8254int
8255main ()
8256{
8257
8258  ;
8259  return 0;
8260}
8261_ACEOF
8262rm -f conftest.$ac_objext
8263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264  (eval $ac_compile) 2>conftest.er1
8265  ac_status=$?
8266  grep -v '^ *+' conftest.er1 >conftest.err
8267  rm -f conftest.er1
8268  cat conftest.err >&5
8269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270  (exit $ac_status); } &&
8271         { ac_try='test -z "$ac_cxx_werror_flag"
8272                         || test ! -s conftest.err'
8273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274  (eval $ac_try) 2>&5
8275  ac_status=$?
8276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277  (exit $ac_status); }; } &&
8278         { ac_try='test -s conftest.$ac_objext'
8279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280  (eval $ac_try) 2>&5
8281  ac_status=$?
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); }; }; then
8284  ac_cv_prog_cxx_g=yes
8285else
8286  echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289ac_cv_prog_cxx_g=no
8290fi
8291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8294echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8295if test "$ac_test_CXXFLAGS" = set; then
8296  CXXFLAGS=$ac_save_CXXFLAGS
8297elif test $ac_cv_prog_cxx_g = yes; then
8298  if test "$GXX" = yes; then
8299    CXXFLAGS="-g -O2"
8300  else
8301    CXXFLAGS="-g"
8302  fi
8303else
8304  if test "$GXX" = yes; then
8305    CXXFLAGS="-O2"
8306  else
8307    CXXFLAGS=
8308  fi
8309fi
8310for ac_declaration in \
8311   '' \
8312   'extern "C" void std::exit (int) throw (); using std::exit;' \
8313   'extern "C" void std::exit (int); using std::exit;' \
8314   'extern "C" void exit (int) throw ();' \
8315   'extern "C" void exit (int);' \
8316   'void exit (int);'
8317do
8318  cat >conftest.$ac_ext <<_ACEOF
8319/* confdefs.h.  */
8320_ACEOF
8321cat confdefs.h >>conftest.$ac_ext
8322cat >>conftest.$ac_ext <<_ACEOF
8323/* end confdefs.h.  */
8324$ac_declaration
8325#include <stdlib.h>
8326#ifdef F77_DUMMY_MAIN
8327
8328#  ifdef __cplusplus
8329     extern "C"
8330#  endif
8331   int F77_DUMMY_MAIN() { return 1; }
8332
8333#endif
8334int
8335main ()
8336{
8337exit (42);
8338  ;
8339  return 0;
8340}
8341_ACEOF
8342rm -f conftest.$ac_objext
8343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8344  (eval $ac_compile) 2>conftest.er1
8345  ac_status=$?
8346  grep -v '^ *+' conftest.er1 >conftest.err
8347  rm -f conftest.er1
8348  cat conftest.err >&5
8349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350  (exit $ac_status); } &&
8351         { ac_try='test -z "$ac_cxx_werror_flag"
8352                         || test ! -s conftest.err'
8353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354  (eval $ac_try) 2>&5
8355  ac_status=$?
8356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); }; } &&
8358         { ac_try='test -s conftest.$ac_objext'
8359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8360  (eval $ac_try) 2>&5
8361  ac_status=$?
8362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363  (exit $ac_status); }; }; then
8364  :
8365else
8366  echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369continue
8370fi
8371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8372  cat >conftest.$ac_ext <<_ACEOF
8373/* confdefs.h.  */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h.  */
8378$ac_declaration
8379#ifdef F77_DUMMY_MAIN
8380
8381#  ifdef __cplusplus
8382     extern "C"
8383#  endif
8384   int F77_DUMMY_MAIN() { return 1; }
8385
8386#endif
8387int
8388main ()
8389{
8390exit (42);
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext
8396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397  (eval $ac_compile) 2>conftest.er1
8398  ac_status=$?
8399  grep -v '^ *+' conftest.er1 >conftest.err
8400  rm -f conftest.er1
8401  cat conftest.err >&5
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); } &&
8404         { ac_try='test -z "$ac_cxx_werror_flag"
8405                         || test ! -s conftest.err'
8406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407  (eval $ac_try) 2>&5
8408  ac_status=$?
8409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); }; } &&
8411         { ac_try='test -s conftest.$ac_objext'
8412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413  (eval $ac_try) 2>&5
8414  ac_status=$?
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); }; }; then
8417  break
8418else
8419  echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422fi
8423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8424done
8425rm -f conftest*
8426if test -n "$ac_declaration"; then
8427  echo '#ifdef __cplusplus' >>confdefs.h
8428  echo $ac_declaration      >>confdefs.h
8429  echo '#endif'             >>confdefs.h
8430fi
8431
8432ac_ext=cc
8433ac_cpp='$CXXCPP $CPPFLAGS'
8434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8437
8438depcc="$CXX"  am_compiler_list=
8439
8440echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8442if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8443  echo $ECHO_N "(cached) $ECHO_C" >&6
8444else
8445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8446  # We make a subdir and do the tests there.  Otherwise we can end up
8447  # making bogus files that we don't know about and never remove.  For
8448  # instance it was reported that on HP-UX the gcc test will end up
8449  # making a dummy file named `D' -- because `-MD' means `put the output
8450  # in D'.
8451  mkdir conftest.dir
8452  # Copy depcomp to subdir because otherwise we won't find it if we're
8453  # using a relative directory.
8454  cp "$am_depcomp" conftest.dir
8455  cd conftest.dir
8456  # We will build objects and dependencies in a subdirectory because
8457  # it helps to detect inapplicable dependency modes.  For instance
8458  # both Tru64's cc and ICC support -MD to output dependencies as a
8459  # side effect of compilation, but ICC will put the dependencies in
8460  # the current directory while Tru64 will put them in the object
8461  # directory.
8462  mkdir sub
8463
8464  am_cv_CXX_dependencies_compiler_type=none
8465  if test "$am_compiler_list" = ""; then
8466     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8467  fi
8468  for depmode in $am_compiler_list; do
8469    # Setup a source with many dependencies, because some compilers
8470    # like to wrap large dependency lists on column 80 (with \), and
8471    # we should not choose a depcomp mode which is confused by this.
8472    #
8473    # We need to recreate these files for each test, as the compiler may
8474    # overwrite some of them when testing with obscure command lines.
8475    # This happens at least with the AIX C compiler.
8476    : > sub/conftest.c
8477    for i in 1 2 3 4 5 6; do
8478      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8479      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8480      # Solaris 8's {/usr,}/bin/sh.
8481      touch sub/conftst$i.h
8482    done
8483    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8484
8485    case $depmode in
8486    nosideeffect)
8487      # after this tag, mechanisms are not by side-effect, so they'll
8488      # only be used when explicitly requested
8489      if test "x$enable_dependency_tracking" = xyes; then
8490        continue
8491      else
8492        break
8493      fi
8494      ;;
8495    none) break ;;
8496    esac
8497    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8498    # mode.  It turns out that the SunPro C++ compiler does not properly
8499    # handle `-M -o', and we need to detect this.
8500    if depmode=$depmode \
8501       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8502       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8503       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8504         >/dev/null 2>conftest.err &&
8505       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8506       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8507       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8508      # icc doesn't choke on unknown options, it will just issue warnings
8509      # or remarks (even with -Werror).  So we grep stderr for any message
8510      # that says an option was ignored or not supported.
8511      # When given -MP, icc 7.0 and 7.1 complain thusly:
8512      #   icc: Command line warning: ignoring option '-M'; no argument required
8513      # The diagnosis changed in icc 8.0:
8514      #   icc: Command line remark: option '-MP' not supported
8515      if (grep 'ignoring option' conftest.err ||
8516          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8517        am_cv_CXX_dependencies_compiler_type=$depmode
8518        break
8519      fi
8520    fi
8521  done
8522
8523  cd ..
8524  rm -rf conftest.dir
8525else
8526  am_cv_CXX_dependencies_compiler_type=none
8527fi
8528
8529fi
8530echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8531echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8532CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8533
8534
8535
8536if
8537  test "x$enable_dependency_tracking" != xno \
8538  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8539  am__fastdepCXX_TRUE=
8540  am__fastdepCXX_FALSE='#'
8541else
8542  am__fastdepCXX_TRUE='#'
8543  am__fastdepCXX_FALSE=
8544fi
8545
8546
8547depcc="$CXX"  am_compiler_list=
8548
8549echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8550echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8551if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8552  echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8555  # We make a subdir and do the tests there.  Otherwise we can end up
8556  # making bogus files that we don't know about and never remove.  For
8557  # instance it was reported that on HP-UX the gcc test will end up
8558  # making a dummy file named `D' -- because `-MD' means `put the output
8559  # in D'.
8560  mkdir conftest.dir
8561  # Copy depcomp to subdir because otherwise we won't find it if we're
8562  # using a relative directory.
8563  cp "$am_depcomp" conftest.dir
8564  cd conftest.dir
8565  # We will build objects and dependencies in a subdirectory because
8566  # it helps to detect inapplicable dependency modes.  For instance
8567  # both Tru64's cc and ICC support -MD to output dependencies as a
8568  # side effect of compilation, but ICC will put the dependencies in
8569  # the current directory while Tru64 will put them in the object
8570  # directory.
8571  mkdir sub
8572
8573  am_cv_CXX_dependencies_compiler_type=none
8574  if test "$am_compiler_list" = ""; then
8575     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8576  fi
8577  for depmode in $am_compiler_list; do
8578    # Setup a source with many dependencies, because some compilers
8579    # like to wrap large dependency lists on column 80 (with \), and
8580    # we should not choose a depcomp mode which is confused by this.
8581    #
8582    # We need to recreate these files for each test, as the compiler may
8583    # overwrite some of them when testing with obscure command lines.
8584    # This happens at least with the AIX C compiler.
8585    : > sub/conftest.c
8586    for i in 1 2 3 4 5 6; do
8587      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8588      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8589      # Solaris 8's {/usr,}/bin/sh.
8590      touch sub/conftst$i.h
8591    done
8592    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8593
8594    case $depmode in
8595    nosideeffect)
8596      # after this tag, mechanisms are not by side-effect, so they'll
8597      # only be used when explicitly requested
8598      if test "x$enable_dependency_tracking" = xyes; then
8599        continue
8600      else
8601        break
8602      fi
8603      ;;
8604    none) break ;;
8605    esac
8606    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8607    # mode.  It turns out that the SunPro C++ compiler does not properly
8608    # handle `-M -o', and we need to detect this.
8609    if depmode=$depmode \
8610       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8611       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8612       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8613         >/dev/null 2>conftest.err &&
8614       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8615       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8616       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8617      # icc doesn't choke on unknown options, it will just issue warnings
8618      # or remarks (even with -Werror).  So we grep stderr for any message
8619      # that says an option was ignored or not supported.
8620      # When given -MP, icc 7.0 and 7.1 complain thusly:
8621      #   icc: Command line warning: ignoring option '-M'; no argument required
8622      # The diagnosis changed in icc 8.0:
8623      #   icc: Command line remark: option '-MP' not supported
8624      if (grep 'ignoring option' conftest.err ||
8625          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8626        am_cv_CXX_dependencies_compiler_type=$depmode
8627        break
8628      fi
8629    fi
8630  done
8631
8632  cd ..
8633  rm -rf conftest.dir
8634else
8635  am_cv_CXX_dependencies_compiler_type=none
8636fi
8637
8638fi
8639echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8640echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8641CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8642
8643
8644
8645if
8646  test "x$enable_dependency_tracking" != xno \
8647  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8648  am__fastdepCXX_TRUE=
8649  am__fastdepCXX_FALSE='#'
8650else
8651  am__fastdepCXX_TRUE='#'
8652  am__fastdepCXX_FALSE=
8653fi
8654
8655
8656
8657
8658if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8659    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8660    (test "X$CXX" != "Xg++"))) ; then
8661  ac_ext=cc
8662ac_cpp='$CXXCPP $CPPFLAGS'
8663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8666echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8667echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8668if test -z "$CXXCPP"; then
8669  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8670  echo $ECHO_N "(cached) $ECHO_C" >&6
8671else
8672      # Double quotes because CXXCPP needs to be expanded
8673    for CXXCPP in "$CXX -E" "/lib/cpp"
8674    do
8675      ac_preproc_ok=false
8676for ac_cxx_preproc_warn_flag in '' yes
8677do
8678  # Use a header file that comes with gcc, so configuring glibc
8679  # with a fresh cross-compiler works.
8680  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681  # <limits.h> exists even on freestanding compilers.
8682  # On the NeXT, cc -E runs the code through the compiler's parser,
8683  # not just through cpp. "Syntax error" is here to catch this case.
8684  cat >conftest.$ac_ext <<_ACEOF
8685/* confdefs.h.  */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h.  */
8690#ifdef __STDC__
8691# include <limits.h>
8692#else
8693# include <assert.h>
8694#endif
8695                     Syntax error
8696_ACEOF
8697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8699  ac_status=$?
8700  grep -v '^ *+' conftest.er1 >conftest.err
8701  rm -f conftest.er1
8702  cat conftest.err >&5
8703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704  (exit $ac_status); } >/dev/null; then
8705  if test -s conftest.err; then
8706    ac_cpp_err=$ac_cxx_preproc_warn_flag
8707    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8708  else
8709    ac_cpp_err=
8710  fi
8711else
8712  ac_cpp_err=yes
8713fi
8714if test -z "$ac_cpp_err"; then
8715  :
8716else
8717  echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
8720  # Broken: fails on valid input.
8721continue
8722fi
8723rm -f conftest.err conftest.$ac_ext
8724
8725  # OK, works on sane cases.  Now check whether non-existent headers
8726  # can be detected and how.
8727  cat >conftest.$ac_ext <<_ACEOF
8728/* confdefs.h.  */
8729_ACEOF
8730cat confdefs.h >>conftest.$ac_ext
8731cat >>conftest.$ac_ext <<_ACEOF
8732/* end confdefs.h.  */
8733#include <ac_nonexistent.h>
8734_ACEOF
8735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8737  ac_status=$?
8738  grep -v '^ *+' conftest.er1 >conftest.err
8739  rm -f conftest.er1
8740  cat conftest.err >&5
8741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742  (exit $ac_status); } >/dev/null; then
8743  if test -s conftest.err; then
8744    ac_cpp_err=$ac_cxx_preproc_warn_flag
8745    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8746  else
8747    ac_cpp_err=
8748  fi
8749else
8750  ac_cpp_err=yes
8751fi
8752if test -z "$ac_cpp_err"; then
8753  # Broken: success on invalid input.
8754continue
8755else
8756  echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759  # Passes both tests.
8760ac_preproc_ok=:
8761break
8762fi
8763rm -f conftest.err conftest.$ac_ext
8764
8765done
8766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8767rm -f conftest.err conftest.$ac_ext
8768if $ac_preproc_ok; then
8769  break
8770fi
8771
8772    done
8773    ac_cv_prog_CXXCPP=$CXXCPP
8774
8775fi
8776  CXXCPP=$ac_cv_prog_CXXCPP
8777else
8778  ac_cv_prog_CXXCPP=$CXXCPP
8779fi
8780echo "$as_me:$LINENO: result: $CXXCPP" >&5
8781echo "${ECHO_T}$CXXCPP" >&6
8782ac_preproc_ok=false
8783for ac_cxx_preproc_warn_flag in '' yes
8784do
8785  # Use a header file that comes with gcc, so configuring glibc
8786  # with a fresh cross-compiler works.
8787  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8788  # <limits.h> exists even on freestanding compilers.
8789  # On the NeXT, cc -E runs the code through the compiler's parser,
8790  # not just through cpp. "Syntax error" is here to catch this case.
8791  cat >conftest.$ac_ext <<_ACEOF
8792/* confdefs.h.  */
8793_ACEOF
8794cat confdefs.h >>conftest.$ac_ext
8795cat >>conftest.$ac_ext <<_ACEOF
8796/* end confdefs.h.  */
8797#ifdef __STDC__
8798# include <limits.h>
8799#else
8800# include <assert.h>
8801#endif
8802                     Syntax error
8803_ACEOF
8804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8805  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8806  ac_status=$?
8807  grep -v '^ *+' conftest.er1 >conftest.err
8808  rm -f conftest.er1
8809  cat conftest.err >&5
8810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811  (exit $ac_status); } >/dev/null; then
8812  if test -s conftest.err; then
8813    ac_cpp_err=$ac_cxx_preproc_warn_flag
8814    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8815  else
8816    ac_cpp_err=
8817  fi
8818else
8819  ac_cpp_err=yes
8820fi
8821if test -z "$ac_cpp_err"; then
8822  :
8823else
8824  echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827  # Broken: fails on valid input.
8828continue
8829fi
8830rm -f conftest.err conftest.$ac_ext
8831
8832  # OK, works on sane cases.  Now check whether non-existent headers
8833  # can be detected and how.
8834  cat >conftest.$ac_ext <<_ACEOF
8835/* confdefs.h.  */
8836_ACEOF
8837cat confdefs.h >>conftest.$ac_ext
8838cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h.  */
8840#include <ac_nonexistent.h>
8841_ACEOF
8842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8844  ac_status=$?
8845  grep -v '^ *+' conftest.er1 >conftest.err
8846  rm -f conftest.er1
8847  cat conftest.err >&5
8848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849  (exit $ac_status); } >/dev/null; then
8850  if test -s conftest.err; then
8851    ac_cpp_err=$ac_cxx_preproc_warn_flag
8852    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8853  else
8854    ac_cpp_err=
8855  fi
8856else
8857  ac_cpp_err=yes
8858fi
8859if test -z "$ac_cpp_err"; then
8860  # Broken: success on invalid input.
8861continue
8862else
8863  echo "$as_me: failed program was:" >&5
8864sed 's/^/| /' conftest.$ac_ext >&5
8865
8866  # Passes both tests.
8867ac_preproc_ok=:
8868break
8869fi
8870rm -f conftest.err conftest.$ac_ext
8871
8872done
8873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8874rm -f conftest.err conftest.$ac_ext
8875if $ac_preproc_ok; then
8876  :
8877else
8878  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8879See \`config.log' for more details." >&5
8880echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8881See \`config.log' for more details." >&2;}
8882   { (exit 1); exit 1; }; }
8883fi
8884
8885ac_ext=cc
8886ac_cpp='$CXXCPP $CPPFLAGS'
8887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8890
8891fi
8892
8893
8894
8895# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8896
8897# find the maximum length of command line arguments
8898echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8899echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8900if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8901  echo $ECHO_N "(cached) $ECHO_C" >&6
8902else
8903    i=0
8904  teststring="ABCD"
8905
8906  case $build_os in
8907  msdosdjgpp*)
8908    # On DJGPP, this test can blow up pretty badly due to problems in libc
8909    # (any single argument exceeding 2000 bytes causes a buffer overrun
8910    # during glob expansion).  Even if it were fixed, the result of this
8911    # check would be larger than it should be.
8912    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8913    ;;
8914
8915  gnu*)
8916    # Under GNU Hurd, this test is not required because there is
8917    # no limit to the length of command line arguments.
8918    # Libtool will interpret -1 as no limit whatsoever
8919    lt_cv_sys_max_cmd_len=-1;
8920    ;;
8921
8922  cygwin* | mingw*)
8923    # On Win9x/ME, this test blows up -- it succeeds, but takes
8924    # about 5 minutes as the teststring grows exponentially.
8925    # Worse, since 9x/ME are not pre-emptively multitasking,
8926    # you end up with a "frozen" computer, even though with patience
8927    # the test eventually succeeds (with a max line length of 256k).
8928    # Instead, let's just punt: use the minimum linelength reported by
8929    # all of the supported platforms: 8192 (on NT/2K/XP).
8930    lt_cv_sys_max_cmd_len=8192;
8931    ;;
8932
8933  amigaos*)
8934    # On AmigaOS with pdksh, this test takes hours, literally.
8935    # So we just punt and use a minimum line length of 8192.
8936    lt_cv_sys_max_cmd_len=8192;
8937    ;;
8938
8939  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8940    # This has been around since 386BSD, at least.  Likely further.
8941    if test -x /sbin/sysctl; then
8942      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8943    elif test -x /usr/sbin/sysctl; then
8944      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8945    else
8946      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8947    fi
8948    # And add a safety zone
8949    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8950    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8951    ;;
8952
8953  interix*)
8954    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8955    lt_cv_sys_max_cmd_len=196608
8956    ;;
8957
8958  osf*)
8959    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8960    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8961    # nice to cause kernel panics so lets avoid the loop below.
8962    # First set a reasonable default.
8963    lt_cv_sys_max_cmd_len=16384
8964    #
8965    if test -x /sbin/sysconfig; then
8966      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8967        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8968      esac
8969    fi
8970    ;;
8971  sco3.2v5*)
8972    lt_cv_sys_max_cmd_len=102400
8973    ;;
8974  sysv5* | sco5v6* | sysv4.2uw2*)
8975    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8976    if test -n "$kargmax"; then
8977      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8978    else
8979      lt_cv_sys_max_cmd_len=32768
8980    fi
8981    ;;
8982  *)
8983    # If test is not a shell built-in, we'll probably end up computing a
8984    # maximum length that is only half of the actual maximum length, but
8985    # we can't tell.
8986    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8987    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8988               = "XX$teststring") >/dev/null 2>&1 &&
8989            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8990            lt_cv_sys_max_cmd_len=$new_result &&
8991            test $i != 17 # 1/2 MB should be enough
8992    do
8993      i=`expr $i + 1`
8994      teststring=$teststring$teststring
8995    done
8996    teststring=
8997    # Add a significant safety factor because C++ compilers can tack on massive
8998    # amounts of additional arguments before passing them to the linker.
8999    # It appears as though 1/2 is a usable value.
9000    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9001    ;;
9002  esac
9003
9004fi
9005
9006if test -n $lt_cv_sys_max_cmd_len ; then
9007  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9008echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9009else
9010  echo "$as_me:$LINENO: result: none" >&5
9011echo "${ECHO_T}none" >&6
9012fi
9013
9014
9015
9016
9017# Check for command to grab the raw symbol name followed by C symbol from nm.
9018echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9019echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9020if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9021  echo $ECHO_N "(cached) $ECHO_C" >&6
9022else
9023
9024# These are sane defaults that work on at least a few old systems.
9025# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9026
9027# Character class describing NM global symbol codes.
9028symcode='[BCDEGRST]'
9029
9030# Regexp to match symbols that can be accessed directly from C.
9031sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9032
9033# Transform an extracted symbol line into a proper C declaration
9034lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9035
9036# Transform an extracted symbol line into symbol name and symbol address
9037lt_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'"
9038
9039# Define system-specific variables.
9040case $host_os in
9041aix*)
9042  symcode='[BCDT]'
9043  ;;
9044cygwin* | mingw* | pw32*)
9045  symcode='[ABCDGISTW]'
9046  ;;
9047hpux*) # Its linker distinguishes data from code symbols
9048  if test "$host_cpu" = ia64; then
9049    symcode='[ABCDEGRST]'
9050  fi
9051  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9052  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'"
9053  ;;
9054linux*)
9055  if test "$host_cpu" = ia64; then
9056    symcode='[ABCDGIRSTW]'
9057    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9058    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'"
9059  fi
9060  ;;
9061irix* | nonstopux*)
9062  symcode='[BCDEGRST]'
9063  ;;
9064osf*)
9065  symcode='[BCDEGQRST]'
9066  ;;
9067solaris*)
9068  symcode='[BDRT]'
9069  ;;
9070sco3.2v5*)
9071  symcode='[DT]'
9072  ;;
9073sysv4.2uw2*)
9074  symcode='[DT]'
9075  ;;
9076sysv5* | sco5v6* | unixware* | OpenUNIX*)
9077  symcode='[ABDT]'
9078  ;;
9079sysv4)
9080  symcode='[DFNSTU]'
9081  ;;
9082esac
9083
9084# Handle CRLF in mingw tool chain
9085opt_cr=
9086case $build_os in
9087mingw*)
9088  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9089  ;;
9090esac
9091
9092# If we're using GNU nm, then use its standard symbol codes.
9093case `$NM -V 2>&1` in
9094*GNU* | *'with BFD'*)
9095  symcode='[ABCDGIRSTW]' ;;
9096esac
9097
9098# Try without a prefix undercore, then with it.
9099for ac_symprfx in "" "_"; do
9100
9101  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9102  symxfrm="\\1 $ac_symprfx\\2 \\2"
9103
9104  # Write the raw and C identifiers.
9105  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9106
9107  # Check to see that the pipe works correctly.
9108  pipe_works=no
9109
9110  rm -f conftest*
9111  cat > conftest.$ac_ext <<EOF
9112#ifdef __cplusplus
9113extern "C" {
9114#endif
9115char nm_test_var;
9116void nm_test_func(){}
9117#ifdef __cplusplus
9118}
9119#endif
9120int main(){nm_test_var='a';nm_test_func();return(0);}
9121EOF
9122
9123  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9124  (eval $ac_compile) 2>&5
9125  ac_status=$?
9126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127  (exit $ac_status); }; then
9128    # Now try to grab the symbols.
9129    nlist=conftest.nm
9130    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9131  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9132  ac_status=$?
9133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134  (exit $ac_status); } && test -s "$nlist"; then
9135      # Try sorting and uniquifying the output.
9136      if sort "$nlist" | uniq > "$nlist"T; then
9137        mv -f "$nlist"T "$nlist"
9138      else
9139        rm -f "$nlist"T
9140      fi
9141
9142      # Make sure that we snagged all the symbols we need.
9143      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9144        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9145          cat <<EOF > conftest.$ac_ext
9146#ifdef __cplusplus
9147extern "C" {
9148#endif
9149
9150EOF
9151          # Now generate the symbol file.
9152          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9153
9154          cat <<EOF >> conftest.$ac_ext
9155#if defined (__STDC__) && __STDC__
9156# define lt_ptr_t void *
9157#else
9158# define lt_ptr_t char *
9159# define const
9160#endif
9161
9162/* The mapping between symbol names and symbols. */
9163const struct {
9164  const char *name;
9165  lt_ptr_t address;
9166}
9167lt_preloaded_symbols[] =
9168{
9169EOF
9170          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9171          cat <<\EOF >> conftest.$ac_ext
9172  {0, (lt_ptr_t) 0}
9173};
9174
9175#ifdef __cplusplus
9176}
9177#endif
9178EOF
9179          # Now try linking the two files.
9180          mv conftest.$ac_objext conftstm.$ac_objext
9181          lt_save_LIBS="$LIBS"
9182          lt_save_CFLAGS="$CFLAGS"
9183          LIBS="conftstm.$ac_objext"
9184          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9185          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186  (eval $ac_link) 2>&5
9187  ac_status=$?
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9190            pipe_works=yes
9191          fi
9192          LIBS="$lt_save_LIBS"
9193          CFLAGS="$lt_save_CFLAGS"
9194        else
9195          echo "cannot find nm_test_func in $nlist" >&5
9196        fi
9197      else
9198        echo "cannot find nm_test_var in $nlist" >&5
9199      fi
9200    else
9201      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9202    fi
9203  else
9204    echo "$progname: failed program was:" >&5
9205    cat conftest.$ac_ext >&5
9206  fi
9207  rm -f conftest* conftst*
9208
9209  # Do not use the global_symbol_pipe unless it works.
9210  if test "$pipe_works" = yes; then
9211    break
9212  else
9213    lt_cv_sys_global_symbol_pipe=
9214  fi
9215done
9216
9217fi
9218
9219if test -z "$lt_cv_sys_global_symbol_pipe"; then
9220  lt_cv_sys_global_symbol_to_cdecl=
9221fi
9222if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9223  echo "$as_me:$LINENO: result: failed" >&5
9224echo "${ECHO_T}failed" >&6
9225else
9226  echo "$as_me:$LINENO: result: ok" >&5
9227echo "${ECHO_T}ok" >&6
9228fi
9229
9230echo "$as_me:$LINENO: checking for objdir" >&5
9231echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9232if test "${lt_cv_objdir+set}" = set; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235  rm -f .libs 2>/dev/null
9236mkdir .libs 2>/dev/null
9237if test -d .libs; then
9238  lt_cv_objdir=.libs
9239else
9240  # MS-DOS does not allow filenames that begin with a dot.
9241  lt_cv_objdir=_libs
9242fi
9243rmdir .libs 2>/dev/null
9244fi
9245echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9246echo "${ECHO_T}$lt_cv_objdir" >&6
9247objdir=$lt_cv_objdir
9248
9249
9250
9251
9252
9253case $host_os in
9254aix3*)
9255  # AIX sometimes has problems with the GCC collect2 program.  For some
9256  # reason, if we set the COLLECT_NAMES environment variable, the problems
9257  # vanish in a puff of smoke.
9258  if test "X${COLLECT_NAMES+set}" != Xset; then
9259    COLLECT_NAMES=
9260    export COLLECT_NAMES
9261  fi
9262  ;;
9263esac
9264
9265# Sed substitution that helps us do robust quoting.  It backslashifies
9266# metacharacters that are still active within double-quoted strings.
9267Xsed='sed -e 1s/^X//'
9268sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9269
9270# Same as above, but do not quote variable references.
9271double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9272
9273# Sed substitution to delay expansion of an escaped shell variable in a
9274# double_quote_subst'ed string.
9275delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9276
9277# Sed substitution to avoid accidental globbing in evaled expressions
9278no_glob_subst='s/\*/\\\*/g'
9279
9280# Constants:
9281rm="rm -f"
9282
9283# Global variables:
9284default_ofile=libtool
9285can_build_shared=yes
9286
9287# All known linkers require a `.a' archive for static linking (except MSVC,
9288# which needs '.lib').
9289libext=a
9290ltmain="$ac_aux_dir/ltmain.sh"
9291ofile="$default_ofile"
9292with_gnu_ld="$lt_cv_prog_gnu_ld"
9293
9294if test -n "$ac_tool_prefix"; then
9295  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9296set dummy ${ac_tool_prefix}ar; ac_word=$2
9297echo "$as_me:$LINENO: checking for $ac_word" >&5
9298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9299if test "${ac_cv_prog_AR+set}" = set; then
9300  echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302  if test -n "$AR"; then
9303  ac_cv_prog_AR="$AR" # Let the user override the test.
9304else
9305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9306for as_dir in $PATH
9307do
9308  IFS=$as_save_IFS
9309  test -z "$as_dir" && as_dir=.
9310  for ac_exec_ext in '' $ac_executable_extensions; do
9311  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312    ac_cv_prog_AR="${ac_tool_prefix}ar"
9313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9314    break 2
9315  fi
9316done
9317done
9318
9319fi
9320fi
9321AR=$ac_cv_prog_AR
9322if test -n "$AR"; then
9323  echo "$as_me:$LINENO: result: $AR" >&5
9324echo "${ECHO_T}$AR" >&6
9325else
9326  echo "$as_me:$LINENO: result: no" >&5
9327echo "${ECHO_T}no" >&6
9328fi
9329
9330fi
9331if test -z "$ac_cv_prog_AR"; then
9332  ac_ct_AR=$AR
9333  # Extract the first word of "ar", so it can be a program name with args.
9334set dummy ar; ac_word=$2
9335echo "$as_me:$LINENO: checking for $ac_word" >&5
9336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9337if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9338  echo $ECHO_N "(cached) $ECHO_C" >&6
9339else
9340  if test -n "$ac_ct_AR"; then
9341  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346  IFS=$as_save_IFS
9347  test -z "$as_dir" && as_dir=.
9348  for ac_exec_ext in '' $ac_executable_extensions; do
9349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350    ac_cv_prog_ac_ct_AR="ar"
9351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9352    break 2
9353  fi
9354done
9355done
9356
9357  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9358fi
9359fi
9360ac_ct_AR=$ac_cv_prog_ac_ct_AR
9361if test -n "$ac_ct_AR"; then
9362  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9363echo "${ECHO_T}$ac_ct_AR" >&6
9364else
9365  echo "$as_me:$LINENO: result: no" >&5
9366echo "${ECHO_T}no" >&6
9367fi
9368
9369  AR=$ac_ct_AR
9370else
9371  AR="$ac_cv_prog_AR"
9372fi
9373
9374if test -n "$ac_tool_prefix"; then
9375  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9376set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9377echo "$as_me:$LINENO: checking for $ac_word" >&5
9378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9379if test "${ac_cv_prog_RANLIB+set}" = set; then
9380  echo $ECHO_N "(cached) $ECHO_C" >&6
9381else
9382  if test -n "$RANLIB"; then
9383  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9384else
9385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386for as_dir in $PATH
9387do
9388  IFS=$as_save_IFS
9389  test -z "$as_dir" && as_dir=.
9390  for ac_exec_ext in '' $ac_executable_extensions; do
9391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9392    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9394    break 2
9395  fi
9396done
9397done
9398
9399fi
9400fi
9401RANLIB=$ac_cv_prog_RANLIB
9402if test -n "$RANLIB"; then
9403  echo "$as_me:$LINENO: result: $RANLIB" >&5
9404echo "${ECHO_T}$RANLIB" >&6
9405else
9406  echo "$as_me:$LINENO: result: no" >&5
9407echo "${ECHO_T}no" >&6
9408fi
9409
9410fi
9411if test -z "$ac_cv_prog_RANLIB"; then
9412  ac_ct_RANLIB=$RANLIB
9413  # Extract the first word of "ranlib", so it can be a program name with args.
9414set dummy ranlib; ac_word=$2
9415echo "$as_me:$LINENO: checking for $ac_word" >&5
9416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9417if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9418  echo $ECHO_N "(cached) $ECHO_C" >&6
9419else
9420  if test -n "$ac_ct_RANLIB"; then
9421  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9422else
9423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9424for as_dir in $PATH
9425do
9426  IFS=$as_save_IFS
9427  test -z "$as_dir" && as_dir=.
9428  for ac_exec_ext in '' $ac_executable_extensions; do
9429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9430    ac_cv_prog_ac_ct_RANLIB="ranlib"
9431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9432    break 2
9433  fi
9434done
9435done
9436
9437  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9438fi
9439fi
9440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9441if test -n "$ac_ct_RANLIB"; then
9442  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9443echo "${ECHO_T}$ac_ct_RANLIB" >&6
9444else
9445  echo "$as_me:$LINENO: result: no" >&5
9446echo "${ECHO_T}no" >&6
9447fi
9448
9449  RANLIB=$ac_ct_RANLIB
9450else
9451  RANLIB="$ac_cv_prog_RANLIB"
9452fi
9453
9454if test -n "$ac_tool_prefix"; then
9455  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9456set dummy ${ac_tool_prefix}strip; ac_word=$2
9457echo "$as_me:$LINENO: checking for $ac_word" >&5
9458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9459if test "${ac_cv_prog_STRIP+set}" = set; then
9460  echo $ECHO_N "(cached) $ECHO_C" >&6
9461else
9462  if test -n "$STRIP"; then
9463  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9464else
9465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466for as_dir in $PATH
9467do
9468  IFS=$as_save_IFS
9469  test -z "$as_dir" && as_dir=.
9470  for ac_exec_ext in '' $ac_executable_extensions; do
9471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9472    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9474    break 2
9475  fi
9476done
9477done
9478
9479fi
9480fi
9481STRIP=$ac_cv_prog_STRIP
9482if test -n "$STRIP"; then
9483  echo "$as_me:$LINENO: result: $STRIP" >&5
9484echo "${ECHO_T}$STRIP" >&6
9485else
9486  echo "$as_me:$LINENO: result: no" >&5
9487echo "${ECHO_T}no" >&6
9488fi
9489
9490fi
9491if test -z "$ac_cv_prog_STRIP"; then
9492  ac_ct_STRIP=$STRIP
9493  # Extract the first word of "strip", so it can be a program name with args.
9494set dummy strip; ac_word=$2
9495echo "$as_me:$LINENO: checking for $ac_word" >&5
9496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9497if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9498  echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500  if test -n "$ac_ct_STRIP"; then
9501  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9502else
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506  IFS=$as_save_IFS
9507  test -z "$as_dir" && as_dir=.
9508  for ac_exec_ext in '' $ac_executable_extensions; do
9509  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510    ac_cv_prog_ac_ct_STRIP="strip"
9511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9512    break 2
9513  fi
9514done
9515done
9516
9517  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9518fi
9519fi
9520ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9521if test -n "$ac_ct_STRIP"; then
9522  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9523echo "${ECHO_T}$ac_ct_STRIP" >&6
9524else
9525  echo "$as_me:$LINENO: result: no" >&5
9526echo "${ECHO_T}no" >&6
9527fi
9528
9529  STRIP=$ac_ct_STRIP
9530else
9531  STRIP="$ac_cv_prog_STRIP"
9532fi
9533
9534
9535old_CC="$CC"
9536old_CFLAGS="$CFLAGS"
9537
9538# Set sane defaults for various variables
9539test -z "$AR" && AR=ar
9540test -z "$AR_FLAGS" && AR_FLAGS=cru
9541test -z "$AS" && AS=as
9542test -z "$CC" && CC=cc
9543test -z "$LTCC" && LTCC=$CC
9544test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9545test -z "$DLLTOOL" && DLLTOOL=dlltool
9546test -z "$LD" && LD=ld
9547test -z "$LN_S" && LN_S="ln -s"
9548test -z "$MAGIC_CMD" && MAGIC_CMD=file
9549test -z "$NM" && NM=nm
9550test -z "$SED" && SED=sed
9551test -z "$OBJDUMP" && OBJDUMP=objdump
9552test -z "$RANLIB" && RANLIB=:
9553test -z "$STRIP" && STRIP=:
9554test -z "$ac_objext" && ac_objext=o
9555
9556# Determine commands to create old-style static archives.
9557old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9558old_postinstall_cmds='chmod 644 $oldlib'
9559old_postuninstall_cmds=
9560
9561if test -n "$RANLIB"; then
9562  case $host_os in
9563  openbsd*)
9564    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9565    ;;
9566  *)
9567    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9568    ;;
9569  esac
9570  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9571fi
9572
9573for cc_temp in $compiler""; do
9574  case $cc_temp in
9575    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9576    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9577    \-*) ;;
9578    *) break;;
9579  esac
9580done
9581cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9582
9583
9584# Only perform the check for file, if the check method requires it
9585case $deplibs_check_method in
9586file_magic*)
9587  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9588    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9589echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9590if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9591  echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593  case $MAGIC_CMD in
9594[\\/*] |  ?:[\\/]*)
9595  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9596  ;;
9597*)
9598  lt_save_MAGIC_CMD="$MAGIC_CMD"
9599  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9600  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9601  for ac_dir in $ac_dummy; do
9602    IFS="$lt_save_ifs"
9603    test -z "$ac_dir" && ac_dir=.
9604    if test -f $ac_dir/${ac_tool_prefix}file; then
9605      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9606      if test -n "$file_magic_test_file"; then
9607        case $deplibs_check_method in
9608        "file_magic "*)
9609          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9610          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9611          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9612            $EGREP "$file_magic_regex" > /dev/null; then
9613            :
9614          else
9615            cat <<EOF 1>&2
9616
9617*** Warning: the command libtool uses to detect shared libraries,
9618*** $file_magic_cmd, produces output that libtool cannot recognize.
9619*** The result is that libtool may fail to recognize shared libraries
9620*** as such.  This will affect the creation of libtool libraries that
9621*** depend on shared libraries, but programs linked with such libtool
9622*** libraries will work regardless of this problem.  Nevertheless, you
9623*** may want to report the problem to your system manager and/or to
9624*** bug-libtool@gnu.org
9625
9626EOF
9627          fi ;;
9628        esac
9629      fi
9630      break
9631    fi
9632  done
9633  IFS="$lt_save_ifs"
9634  MAGIC_CMD="$lt_save_MAGIC_CMD"
9635  ;;
9636esac
9637fi
9638
9639MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9640if test -n "$MAGIC_CMD"; then
9641  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9642echo "${ECHO_T}$MAGIC_CMD" >&6
9643else
9644  echo "$as_me:$LINENO: result: no" >&5
9645echo "${ECHO_T}no" >&6
9646fi
9647
9648if test -z "$lt_cv_path_MAGIC_CMD"; then
9649  if test -n "$ac_tool_prefix"; then
9650    echo "$as_me:$LINENO: checking for file" >&5
9651echo $ECHO_N "checking for file... $ECHO_C" >&6
9652if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9653  echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
9655  case $MAGIC_CMD in
9656[\\/*] |  ?:[\\/]*)
9657  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9658  ;;
9659*)
9660  lt_save_MAGIC_CMD="$MAGIC_CMD"
9661  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9662  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9663  for ac_dir in $ac_dummy; do
9664    IFS="$lt_save_ifs"
9665    test -z "$ac_dir" && ac_dir=.
9666    if test -f $ac_dir/file; then
9667      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9668      if test -n "$file_magic_test_file"; then
9669        case $deplibs_check_method in
9670        "file_magic "*)
9671          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9672          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9673          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9674            $EGREP "$file_magic_regex" > /dev/null; then
9675            :
9676          else
9677            cat <<EOF 1>&2
9678
9679*** Warning: the command libtool uses to detect shared libraries,
9680*** $file_magic_cmd, produces output that libtool cannot recognize.
9681*** The result is that libtool may fail to recognize shared libraries
9682*** as such.  This will affect the creation of libtool libraries that
9683*** depend on shared libraries, but programs linked with such libtool
9684*** libraries will work regardless of this problem.  Nevertheless, you
9685*** may want to report the problem to your system manager and/or to
9686*** bug-libtool@gnu.org
9687
9688EOF
9689          fi ;;
9690        esac
9691      fi
9692      break
9693    fi
9694  done
9695  IFS="$lt_save_ifs"
9696  MAGIC_CMD="$lt_save_MAGIC_CMD"
9697  ;;
9698esac
9699fi
9700
9701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9702if test -n "$MAGIC_CMD"; then
9703  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9704echo "${ECHO_T}$MAGIC_CMD" >&6
9705else
9706  echo "$as_me:$LINENO: result: no" >&5
9707echo "${ECHO_T}no" >&6
9708fi
9709
9710  else
9711    MAGIC_CMD=:
9712  fi
9713fi
9714
9715  fi
9716  ;;
9717esac
9718
9719enable_dlopen=no
9720enable_win32_dll=no
9721
9722# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9723if test "${enable_libtool_lock+set}" = set; then
9724  enableval="$enable_libtool_lock"
9725
9726fi;
9727test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9728
9729
9730# Check whether --with-pic or --without-pic was given.
9731if test "${with_pic+set}" = set; then
9732  withval="$with_pic"
9733  pic_mode="$withval"
9734else
9735  pic_mode=default
9736fi;
9737test -z "$pic_mode" && pic_mode=default
9738
9739# Use C for the default configuration in the libtool script
9740tagname=
9741lt_save_CC="$CC"
9742ac_ext=c
9743ac_cpp='$CPP $CPPFLAGS'
9744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9746ac_compiler_gnu=$ac_cv_c_compiler_gnu
9747
9748
9749# Source file extension for C test sources.
9750ac_ext=c
9751
9752# Object file extension for compiled C test sources.
9753objext=o
9754objext=$objext
9755
9756# Code to be used in simple compile tests
9757lt_simple_compile_test_code="int some_variable = 0;\n"
9758
9759# Code to be used in simple link tests
9760lt_simple_link_test_code='int main(){return(0);}\n'
9761
9762
9763# If no C compiler was specified, use CC.
9764LTCC=${LTCC-"$CC"}
9765
9766# If no C compiler flags were specified, use CFLAGS.
9767LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9768
9769# Allow CC to be a program name with arguments.
9770compiler=$CC
9771
9772
9773# save warnings/boilerplate of simple test code
9774ac_outfile=conftest.$ac_objext
9775printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9777_lt_compiler_boilerplate=`cat conftest.err`
9778$rm conftest*
9779
9780ac_outfile=conftest.$ac_objext
9781printf "$lt_simple_link_test_code" >conftest.$ac_ext
9782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9783_lt_linker_boilerplate=`cat conftest.err`
9784$rm conftest*
9785
9786
9787## CAVEAT EMPTOR:
9788## There is no encapsulation within the following macros, do not change
9789## the running order or otherwise move them around unless you know exactly
9790## what you are doing...
9791
9792lt_prog_compiler_no_builtin_flag=
9793
9794if test "$GCC" = yes; then
9795  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9796
9797
9798echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9799echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9800if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9801  echo $ECHO_N "(cached) $ECHO_C" >&6
9802else
9803  lt_cv_prog_compiler_rtti_exceptions=no
9804  ac_outfile=conftest.$ac_objext
9805   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9806   lt_compiler_flag="-fno-rtti -fno-exceptions"
9807   # Insert the option either (1) after the last *FLAGS variable, or
9808   # (2) before a word containing "conftest.", or (3) at the end.
9809   # Note that $ac_compile itself does not contain backslashes and begins
9810   # with a dollar sign (not a hyphen), so the echo should work correctly.
9811   # The option is referenced via a variable to avoid confusing sed.
9812   lt_compile=`echo "$ac_compile" | $SED \
9813   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9814   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9815   -e 's:$: $lt_compiler_flag:'`
9816   (eval echo "\"\$as_me:9816: $lt_compile\"" >&5)
9817   (eval "$lt_compile" 2>conftest.err)
9818   ac_status=$?
9819   cat conftest.err >&5
9820   echo "$as_me:9820: \$? = $ac_status" >&5
9821   if (exit $ac_status) && test -s "$ac_outfile"; then
9822     # The compiler can only warn and ignore the option if not recognized
9823     # So say no if there are warnings other than the usual output.
9824     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9825     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9826     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9827       lt_cv_prog_compiler_rtti_exceptions=yes
9828     fi
9829   fi
9830   $rm conftest*
9831
9832fi
9833echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9834echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9835
9836if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9837    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9838else
9839    :
9840fi
9841
9842fi
9843
9844lt_prog_compiler_wl=
9845lt_prog_compiler_pic=
9846lt_prog_compiler_static=
9847
9848echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9849echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9850
9851  if test "$GCC" = yes; then
9852    lt_prog_compiler_wl='-Wl,'
9853    lt_prog_compiler_static='-static'
9854
9855    case $host_os in
9856      aix*)
9857      # All AIX code is PIC.
9858      if test "$host_cpu" = ia64; then
9859        # AIX 5 now supports IA64 processor
9860        lt_prog_compiler_static='-Bstatic'
9861      fi
9862      ;;
9863
9864    amigaos*)
9865      # FIXME: we need at least 68020 code to build shared libraries, but
9866      # adding the `-m68020' flag to GCC prevents building anything better,
9867      # like `-m68040'.
9868      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9869      ;;
9870
9871    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9872      # PIC is the default for these OSes.
9873      ;;
9874
9875    mingw* | pw32* | os2*)
9876      # This hack is so that the source file can tell whether it is being
9877      # built for inclusion in a dll (and should export symbols for example).
9878      lt_prog_compiler_pic='-DDLL_EXPORT'
9879      ;;
9880
9881    darwin* | rhapsody*)
9882      # PIC is the default on this platform
9883      # Common symbols not allowed in MH_DYLIB files
9884      lt_prog_compiler_pic='-fno-common'
9885      ;;
9886
9887    interix3*)
9888      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9889      # Instead, we relocate shared libraries at runtime.
9890      ;;
9891
9892    msdosdjgpp*)
9893      # Just because we use GCC doesn't mean we suddenly get shared libraries
9894      # on systems that don't support them.
9895      lt_prog_compiler_can_build_shared=no
9896      enable_shared=no
9897      ;;
9898
9899    sysv4*MP*)
9900      if test -d /usr/nec; then
9901        lt_prog_compiler_pic=-Kconform_pic
9902      fi
9903      ;;
9904
9905    hpux*)
9906      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9907      # not for PA HP-UX.
9908      case $host_cpu in
9909      hppa*64*|ia64*)
9910        # +Z the default
9911        ;;
9912      *)
9913        lt_prog_compiler_pic='-fPIC'
9914        ;;
9915      esac
9916      ;;
9917
9918    *)
9919      lt_prog_compiler_pic='-fPIC'
9920      ;;
9921    esac
9922  else
9923    # PORTME Check for flag to pass linker flags through the system compiler.
9924    case $host_os in
9925    aix*)
9926      lt_prog_compiler_wl='-Wl,'
9927      if test "$host_cpu" = ia64; then
9928        # AIX 5 now supports IA64 processor
9929        lt_prog_compiler_static='-Bstatic'
9930      else
9931        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9932      fi
9933      ;;
9934      darwin*)
9935        # PIC is the default on this platform
9936        # Common symbols not allowed in MH_DYLIB files
9937       case $cc_basename in
9938         xlc*)
9939         lt_prog_compiler_pic='-qnocommon'
9940         lt_prog_compiler_wl='-Wl,'
9941         ;;
9942       esac
9943       ;;
9944
9945    mingw* | pw32* | os2*)
9946      # This hack is so that the source file can tell whether it is being
9947      # built for inclusion in a dll (and should export symbols for example).
9948      lt_prog_compiler_pic='-DDLL_EXPORT'
9949      ;;
9950
9951    hpux9* | hpux10* | hpux11*)
9952      lt_prog_compiler_wl='-Wl,'
9953      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9954      # not for PA HP-UX.
9955      case $host_cpu in
9956      hppa*64*|ia64*)
9957        # +Z the default
9958        ;;
9959      *)
9960        lt_prog_compiler_pic='+Z'
9961        ;;
9962      esac
9963      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9964      lt_prog_compiler_static='${wl}-a ${wl}archive'
9965      ;;
9966
9967    irix5* | irix6* | nonstopux*)
9968      lt_prog_compiler_wl='-Wl,'
9969      # PIC (with -KPIC) is the default.
9970      lt_prog_compiler_static='-non_shared'
9971      ;;
9972
9973    newsos6)
9974      lt_prog_compiler_pic='-KPIC'
9975      lt_prog_compiler_static='-Bstatic'
9976      ;;
9977
9978    linux*)
9979      case $cc_basename in
9980      icc* | ecc*)
9981        lt_prog_compiler_wl='-Wl,'
9982        lt_prog_compiler_pic='-KPIC'
9983        lt_prog_compiler_static='-static'
9984        ;;
9985      pgcc* | pgf77* | pgf90* | pgf95*)
9986        # Portland Group compilers (*not* the Pentium gcc compiler,
9987        # which looks to be a dead project)
9988        lt_prog_compiler_wl='-Wl,'
9989        lt_prog_compiler_pic='-fpic'
9990        lt_prog_compiler_static='-Bstatic'
9991        ;;
9992      ccc*)
9993        lt_prog_compiler_wl='-Wl,'
9994        # All Alpha code is PIC.
9995        lt_prog_compiler_static='-non_shared'
9996        ;;
9997      esac
9998      ;;
9999
10000    osf3* | osf4* | osf5*)
10001      lt_prog_compiler_wl='-Wl,'
10002      # All OSF/1 code is PIC.
10003      lt_prog_compiler_static='-non_shared'
10004      ;;
10005
10006    solaris*)
10007      lt_prog_compiler_pic='-KPIC'
10008      lt_prog_compiler_static='-Bstatic'
10009      case $cc_basename in
10010      f77* | f90* | f95*)
10011        lt_prog_compiler_wl='-Qoption ld ';;
10012      *)
10013        lt_prog_compiler_wl='-Wl,';;
10014      esac
10015      ;;
10016
10017    sunos4*)
10018      lt_prog_compiler_wl='-Qoption ld '
10019      lt_prog_compiler_pic='-PIC'
10020      lt_prog_compiler_static='-Bstatic'
10021      ;;
10022
10023    sysv4 | sysv4.2uw2* | sysv4.3*)
10024      lt_prog_compiler_wl='-Wl,'
10025      lt_prog_compiler_pic='-KPIC'
10026      lt_prog_compiler_static='-Bstatic'
10027      ;;
10028
10029    sysv4*MP*)
10030      if test -d /usr/nec ;then
10031        lt_prog_compiler_pic='-Kconform_pic'
10032        lt_prog_compiler_static='-Bstatic'
10033      fi
10034      ;;
10035
10036    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10037      lt_prog_compiler_wl='-Wl,'
10038      lt_prog_compiler_pic='-KPIC'
10039      lt_prog_compiler_static='-Bstatic'
10040      ;;
10041
10042    unicos*)
10043      lt_prog_compiler_wl='-Wl,'
10044      lt_prog_compiler_can_build_shared=no
10045      ;;
10046
10047    uts4*)
10048      lt_prog_compiler_pic='-pic'
10049      lt_prog_compiler_static='-Bstatic'
10050      ;;
10051
10052    *)
10053      lt_prog_compiler_can_build_shared=no
10054      ;;
10055    esac
10056  fi
10057
10058echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10059echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10060
10061#
10062# Check to make sure the PIC flag actually works.
10063#
10064if test -n "$lt_prog_compiler_pic"; then
10065
10066echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10067echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10068if test "${lt_prog_compiler_pic_works+set}" = set; then
10069  echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071  lt_prog_compiler_pic_works=no
10072  ac_outfile=conftest.$ac_objext
10073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10074   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10075   # Insert the option either (1) after the last *FLAGS variable, or
10076   # (2) before a word containing "conftest.", or (3) at the end.
10077   # Note that $ac_compile itself does not contain backslashes and begins
10078   # with a dollar sign (not a hyphen), so the echo should work correctly.
10079   # The option is referenced via a variable to avoid confusing sed.
10080   lt_compile=`echo "$ac_compile" | $SED \
10081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10083   -e 's:$: $lt_compiler_flag:'`
10084   (eval echo "\"\$as_me:10084: $lt_compile\"" >&5)
10085   (eval "$lt_compile" 2>conftest.err)
10086   ac_status=$?
10087   cat conftest.err >&5
10088   echo "$as_me:10088: \$? = $ac_status" >&5
10089   if (exit $ac_status) && test -s "$ac_outfile"; then
10090     # The compiler can only warn and ignore the option if not recognized
10091     # So say no if there are warnings other than the usual output.
10092     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10093     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10094     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10095       lt_prog_compiler_pic_works=yes
10096     fi
10097   fi
10098   $rm conftest*
10099
10100fi
10101echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10102echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10103
10104if test x"$lt_prog_compiler_pic_works" = xyes; then
10105    case $lt_prog_compiler_pic in
10106     "" | " "*) ;;
10107     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10108     esac
10109else
10110    lt_prog_compiler_pic=
10111     lt_prog_compiler_can_build_shared=no
10112fi
10113
10114fi
10115case $host_os in
10116  # For platforms which do not support PIC, -DPIC is meaningless:
10117  *djgpp*)
10118    lt_prog_compiler_pic=
10119    ;;
10120  *)
10121    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10122    ;;
10123esac
10124
10125#
10126# Check to make sure the static flag actually works.
10127#
10128wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10129echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10130echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10131if test "${lt_prog_compiler_static_works+set}" = set; then
10132  echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134  lt_prog_compiler_static_works=no
10135   save_LDFLAGS="$LDFLAGS"
10136   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10137   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10138   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10139     # The linker can only warn and ignore the option if not recognized
10140     # So say no if there are warnings
10141     if test -s conftest.err; then
10142       # Append any errors to the config.log.
10143       cat conftest.err 1>&5
10144       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10145       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10146       if diff conftest.exp conftest.er2 >/dev/null; then
10147         lt_prog_compiler_static_works=yes
10148       fi
10149     else
10150       lt_prog_compiler_static_works=yes
10151     fi
10152   fi
10153   $rm conftest*
10154   LDFLAGS="$save_LDFLAGS"
10155
10156fi
10157echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10158echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10159
10160if test x"$lt_prog_compiler_static_works" = xyes; then
10161    :
10162else
10163    lt_prog_compiler_static=
10164fi
10165
10166
10167echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10168echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10169if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10170  echo $ECHO_N "(cached) $ECHO_C" >&6
10171else
10172  lt_cv_prog_compiler_c_o=no
10173   $rm -r conftest 2>/dev/null
10174   mkdir conftest
10175   cd conftest
10176   mkdir out
10177   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10178
10179   lt_compiler_flag="-o out/conftest2.$ac_objext"
10180   # Insert the option either (1) after the last *FLAGS variable, or
10181   # (2) before a word containing "conftest.", or (3) at the end.
10182   # Note that $ac_compile itself does not contain backslashes and begins
10183   # with a dollar sign (not a hyphen), so the echo should work correctly.
10184   lt_compile=`echo "$ac_compile" | $SED \
10185   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10186   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10187   -e 's:$: $lt_compiler_flag:'`
10188   (eval echo "\"\$as_me:10188: $lt_compile\"" >&5)
10189   (eval "$lt_compile" 2>out/conftest.err)
10190   ac_status=$?
10191   cat out/conftest.err >&5
10192   echo "$as_me:10192: \$? = $ac_status" >&5
10193   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10194   then
10195     # The compiler can only warn and ignore the option if not recognized
10196     # So say no if there are warnings
10197     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10198     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10199     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10200       lt_cv_prog_compiler_c_o=yes
10201     fi
10202   fi
10203   chmod u+w . 2>&5
10204   $rm conftest*
10205   # SGI C++ compiler will create directory out/ii_files/ for
10206   # template instantiation
10207   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10208   $rm out/* && rmdir out
10209   cd ..
10210   rmdir conftest
10211   $rm conftest*
10212
10213fi
10214echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10215echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10216
10217
10218hard_links="nottested"
10219if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10220  # do not overwrite the value of need_locks provided by the user
10221  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10222echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10223  hard_links=yes
10224  $rm conftest*
10225  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10226  touch conftest.a
10227  ln conftest.a conftest.b 2>&5 || hard_links=no
10228  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10229  echo "$as_me:$LINENO: result: $hard_links" >&5
10230echo "${ECHO_T}$hard_links" >&6
10231  if test "$hard_links" = no; then
10232    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10233echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10234    need_locks=warn
10235  fi
10236else
10237  need_locks=no
10238fi
10239
10240echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10241echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10242
10243  runpath_var=
10244  allow_undefined_flag=
10245  enable_shared_with_static_runtimes=no
10246  archive_cmds=
10247  archive_expsym_cmds=
10248  old_archive_From_new_cmds=
10249  old_archive_from_expsyms_cmds=
10250  export_dynamic_flag_spec=
10251  whole_archive_flag_spec=
10252  thread_safe_flag_spec=
10253  hardcode_libdir_flag_spec=
10254  hardcode_libdir_flag_spec_ld=
10255  hardcode_libdir_separator=
10256  hardcode_direct=no
10257  hardcode_minus_L=no
10258  hardcode_shlibpath_var=unsupported
10259  link_all_deplibs=unknown
10260  hardcode_automatic=no
10261  module_cmds=
10262  module_expsym_cmds=
10263  always_export_symbols=no
10264  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10265  # include_expsyms should be a list of space-separated symbols to be *always*
10266  # included in the symbol list
10267  include_expsyms=
10268  # exclude_expsyms can be an extended regexp of symbols to exclude
10269  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10270  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10271  # as well as any symbol that contains `d'.
10272  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10273  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10274  # platforms (ab)use it in PIC code, but their linkers get confused if
10275  # the symbol is explicitly referenced.  Since portable code cannot
10276  # rely on this symbol name, it's probably fine to never include it in
10277  # preloaded symbol tables.
10278  extract_expsyms_cmds=
10279  # Just being paranoid about ensuring that cc_basename is set.
10280  for cc_temp in $compiler""; do
10281  case $cc_temp in
10282    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10283    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10284    \-*) ;;
10285    *) break;;
10286  esac
10287done
10288cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10289
10290  case $host_os in
10291  cygwin* | mingw* | pw32*)
10292    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10293    # When not using gcc, we currently assume that we are using
10294    # Microsoft Visual C++.
10295    if test "$GCC" != yes; then
10296      with_gnu_ld=no
10297    fi
10298    ;;
10299  interix*)
10300    # we just hope/assume this is gcc and not c89 (= MSVC++)
10301    with_gnu_ld=yes
10302    ;;
10303  openbsd*)
10304    with_gnu_ld=no
10305    ;;
10306  esac
10307
10308  ld_shlibs=yes
10309  if test "$with_gnu_ld" = yes; then
10310    # If archive_cmds runs LD, not CC, wlarc should be empty
10311    wlarc='${wl}'
10312
10313    # Set some defaults for GNU ld with shared library support. These
10314    # are reset later if shared libraries are not supported. Putting them
10315    # here allows them to be overridden if necessary.
10316    runpath_var=LD_RUN_PATH
10317    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10318    export_dynamic_flag_spec='${wl}--export-dynamic'
10319    # ancient GNU ld didn't support --whole-archive et. al.
10320    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10321        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10322      else
10323        whole_archive_flag_spec=
10324    fi
10325    supports_anon_versioning=no
10326    case `$LD -v 2>/dev/null` in
10327      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10328      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10329      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10330      *\ 2.11.*) ;; # other 2.11 versions
10331      *) supports_anon_versioning=yes ;;
10332    esac
10333
10334    # See if GNU ld supports shared libraries.
10335    case $host_os in
10336    aix3* | aix4* | aix5*)
10337      # On AIX/PPC, the GNU linker is very broken
10338      if test "$host_cpu" != ia64; then
10339        ld_shlibs=no
10340        cat <<EOF 1>&2
10341
10342*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10343*** to be unable to reliably create shared libraries on AIX.
10344*** Therefore, libtool is disabling shared libraries support.  If you
10345*** really care for shared libraries, you may want to modify your PATH
10346*** so that a non-GNU linker is found, and then restart.
10347
10348EOF
10349      fi
10350      ;;
10351
10352    amigaos*)
10353      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)'
10354      hardcode_libdir_flag_spec='-L$libdir'
10355      hardcode_minus_L=yes
10356
10357      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10358      # that the semantics of dynamic libraries on AmigaOS, at least up
10359      # to version 4, is to share data among multiple programs linked
10360      # with the same dynamic library.  Since this doesn't match the
10361      # behavior of shared libraries on other platforms, we can't use
10362      # them.
10363      ld_shlibs=no
10364      ;;
10365
10366    beos*)
10367      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10368        allow_undefined_flag=unsupported
10369        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10370        # support --undefined.  This deserves some investigation.  FIXME
10371        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10372      else
10373        ld_shlibs=no
10374      fi
10375      ;;
10376
10377    cygwin* | mingw* | pw32*)
10378      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10379      # as there is no search path for DLLs.
10380      hardcode_libdir_flag_spec='-L$libdir'
10381      allow_undefined_flag=unsupported
10382      always_export_symbols=no
10383      enable_shared_with_static_runtimes=yes
10384      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10385
10386      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10387        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10388        # If the export-symbols file already is a .def file (1st line
10389        # is EXPORTS), use it as is; otherwise, prepend...
10390        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10391          cp $export_symbols $output_objdir/$soname.def;
10392        else
10393          echo EXPORTS > $output_objdir/$soname.def;
10394          cat $export_symbols >> $output_objdir/$soname.def;
10395        fi~
10396        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10397      else
10398        ld_shlibs=no
10399      fi
10400      ;;
10401
10402    interix3*)
10403      hardcode_direct=no
10404      hardcode_shlibpath_var=no
10405      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10406      export_dynamic_flag_spec='${wl}-E'
10407      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10408      # Instead, shared libraries are loaded at an image base (0x10000000 by
10409      # default) and relocated if they conflict, which is a slow very memory
10410      # consuming and fragmenting process.  To avoid this, we pick a random,
10411      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10412      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10413      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10414      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'
10415      ;;
10416
10417    linux*)
10418      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10419        tmp_addflag=
10420        case $cc_basename,$host_cpu in
10421        pgcc*)                          # Portland Group C compiler
10422          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'
10423          tmp_addflag=' $pic_flag'
10424          ;;
10425        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10426          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'
10427          tmp_addflag=' $pic_flag -Mnomain' ;;
10428        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10429          tmp_addflag=' -i_dynamic' ;;
10430        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10431          tmp_addflag=' -i_dynamic -nofor_main' ;;
10432        ifc* | ifort*)                  # Intel Fortran compiler
10433          tmp_addflag=' -nofor_main' ;;
10434        esac
10435        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436
10437        if test $supports_anon_versioning = yes; then
10438          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10439  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10440  $echo "local: *; };" >> $output_objdir/$libname.ver~
10441          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10442        fi
10443      else
10444        ld_shlibs=no
10445      fi
10446      ;;
10447
10448    netbsd*)
10449      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10450        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10451        wlarc=
10452      else
10453        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10455      fi
10456      ;;
10457
10458    solaris*)
10459      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10460        ld_shlibs=no
10461        cat <<EOF 1>&2
10462
10463*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10464*** create shared libraries on Solaris systems.  Therefore, libtool
10465*** is disabling shared libraries support.  We urge you to upgrade GNU
10466*** binutils to release 2.9.1 or newer.  Another option is to modify
10467*** your PATH or compiler configuration so that the native linker is
10468*** used, and then restart.
10469
10470EOF
10471      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10472        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10473        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10474      else
10475        ld_shlibs=no
10476      fi
10477      ;;
10478
10479    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10480      case `$LD -v 2>&1` in
10481        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10482        ld_shlibs=no
10483        cat <<_LT_EOF 1>&2
10484
10485*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10486*** reliably create shared libraries on SCO systems.  Therefore, libtool
10487*** is disabling shared libraries support.  We urge you to upgrade GNU
10488*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10489*** your PATH or compiler configuration so that the native linker is
10490*** used, and then restart.
10491
10492_LT_EOF
10493        ;;
10494        *)
10495          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10496            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10497            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10498            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10499          else
10500            ld_shlibs=no
10501          fi
10502        ;;
10503      esac
10504      ;;
10505
10506    sunos4*)
10507      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10508      wlarc=
10509      hardcode_direct=yes
10510      hardcode_shlibpath_var=no
10511      ;;
10512
10513    *)
10514      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10515        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10516        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10517      else
10518        ld_shlibs=no
10519      fi
10520      ;;
10521    esac
10522
10523    if test "$ld_shlibs" = no; then
10524      runpath_var=
10525      hardcode_libdir_flag_spec=
10526      export_dynamic_flag_spec=
10527      whole_archive_flag_spec=
10528    fi
10529  else
10530    # PORTME fill in a description of your system's linker (not GNU ld)
10531    case $host_os in
10532    aix3*)
10533      allow_undefined_flag=unsupported
10534      always_export_symbols=yes
10535      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'
10536      # Note: this linker hardcodes the directories in LIBPATH if there
10537      # are no directories specified by -L.
10538      hardcode_minus_L=yes
10539      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10540        # Neither direct hardcoding nor static linking is supported with a
10541        # broken collect2.
10542        hardcode_direct=unsupported
10543      fi
10544      ;;
10545
10546    aix4* | aix5*)
10547      if test "$host_cpu" = ia64; then
10548        # On IA64, the linker does run time linking by default, so we don't
10549        # have to do anything special.
10550        aix_use_runtimelinking=no
10551        exp_sym_flag='-Bexport'
10552        no_entry_flag=""
10553      else
10554        # If we're using GNU nm, then we don't want the "-C" option.
10555        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10556        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10557          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'
10558        else
10559          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'
10560        fi
10561        aix_use_runtimelinking=no
10562
10563        # Test if we are trying to use run time linking or normal
10564        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10565        # need to do runtime linking.
10566        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10567          for ld_flag in $LDFLAGS; do
10568          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10569            aix_use_runtimelinking=yes
10570            break
10571          fi
10572          done
10573          ;;
10574        esac
10575
10576        exp_sym_flag='-bexport'
10577        no_entry_flag='-bnoentry'
10578      fi
10579
10580      # When large executables or shared objects are built, AIX ld can
10581      # have problems creating the table of contents.  If linking a library
10582      # or program results in "error TOC overflow" add -mminimal-toc to
10583      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10584      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10585
10586      archive_cmds=''
10587      hardcode_direct=yes
10588      hardcode_libdir_separator=':'
10589      link_all_deplibs=yes
10590
10591      if test "$GCC" = yes; then
10592        case $host_os in aix4.[012]|aix4.[012].*)
10593        # We only want to do this on AIX 4.2 and lower, the check
10594        # below for broken collect2 doesn't work under 4.3+
10595          collect2name=`${CC} -print-prog-name=collect2`
10596          if test -f "$collect2name" && \
10597           strings "$collect2name" | grep resolve_lib_name >/dev/null
10598          then
10599          # We have reworked collect2
10600          hardcode_direct=yes
10601          else
10602          # We have old collect2
10603          hardcode_direct=unsupported
10604          # It fails to find uninstalled libraries when the uninstalled
10605          # path is not listed in the libpath.  Setting hardcode_minus_L
10606          # to unsupported forces relinking
10607          hardcode_minus_L=yes
10608          hardcode_libdir_flag_spec='-L$libdir'
10609          hardcode_libdir_separator=
10610          fi
10611          ;;
10612        esac
10613        shared_flag='-shared'
10614        if test "$aix_use_runtimelinking" = yes; then
10615          shared_flag="$shared_flag "'${wl}-G'
10616        fi
10617      else
10618        # not using gcc
10619        if test "$host_cpu" = ia64; then
10620        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10621        # chokes on -Wl,-G. The following line is correct:
10622          shared_flag='-G'
10623        else
10624          if test "$aix_use_runtimelinking" = yes; then
10625            shared_flag='${wl}-G'
10626          else
10627            shared_flag='${wl}-bM:SRE'
10628          fi
10629        fi
10630      fi
10631
10632      # It seems that -bexpall does not export symbols beginning with
10633      # underscore (_), so it is better to generate a list of symbols to export.
10634      always_export_symbols=yes
10635      if test "$aix_use_runtimelinking" = yes; then
10636        # Warning - without using the other runtime loading flags (-brtl),
10637        # -berok will link without error, but may produce a broken library.
10638        allow_undefined_flag='-berok'
10639       # Determine the default libpath from the value encoded in an empty executable.
10640       cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h.  */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h.  */
10646
10647#ifdef F77_DUMMY_MAIN
10648
10649#  ifdef __cplusplus
10650     extern "C"
10651#  endif
10652   int F77_DUMMY_MAIN() { return 1; }
10653
10654#endif
10655int
10656main ()
10657{
10658
10659  ;
10660  return 0;
10661}
10662_ACEOF
10663rm -f conftest.$ac_objext conftest$ac_exeext
10664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10665  (eval $ac_link) 2>conftest.er1
10666  ac_status=$?
10667  grep -v '^ *+' conftest.er1 >conftest.err
10668  rm -f conftest.er1
10669  cat conftest.err >&5
10670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671  (exit $ac_status); } &&
10672         { ac_try='test -z "$ac_c_werror_flag"
10673                         || test ! -s conftest.err'
10674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675  (eval $ac_try) 2>&5
10676  ac_status=$?
10677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678  (exit $ac_status); }; } &&
10679         { ac_try='test -s conftest$ac_exeext'
10680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681  (eval $ac_try) 2>&5
10682  ac_status=$?
10683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684  (exit $ac_status); }; }; then
10685
10686aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10687}'`
10688# Check for a 64-bit object if we didn't find anything.
10689if 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; }
10690}'`; fi
10691else
10692  echo "$as_me: failed program was:" >&5
10693sed 's/^/| /' conftest.$ac_ext >&5
10694
10695fi
10696rm -f conftest.err conftest.$ac_objext \
10697      conftest$ac_exeext conftest.$ac_ext
10698if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10699
10700       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10701        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"
10702       else
10703        if test "$host_cpu" = ia64; then
10704          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10705          allow_undefined_flag="-z nodefs"
10706          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"
10707        else
10708         # Determine the default libpath from the value encoded in an empty executable.
10709         cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h.  */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h.  */
10715
10716#ifdef F77_DUMMY_MAIN
10717
10718#  ifdef __cplusplus
10719     extern "C"
10720#  endif
10721   int F77_DUMMY_MAIN() { return 1; }
10722
10723#endif
10724int
10725main ()
10726{
10727
10728  ;
10729  return 0;
10730}
10731_ACEOF
10732rm -f conftest.$ac_objext conftest$ac_exeext
10733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734  (eval $ac_link) 2>conftest.er1
10735  ac_status=$?
10736  grep -v '^ *+' conftest.er1 >conftest.err
10737  rm -f conftest.er1
10738  cat conftest.err >&5
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); } &&
10741         { ac_try='test -z "$ac_c_werror_flag"
10742                         || test ! -s conftest.err'
10743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744  (eval $ac_try) 2>&5
10745  ac_status=$?
10746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747  (exit $ac_status); }; } &&
10748         { ac_try='test -s conftest$ac_exeext'
10749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750  (eval $ac_try) 2>&5
10751  ac_status=$?
10752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753  (exit $ac_status); }; }; then
10754
10755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10756}'`
10757# Check for a 64-bit object if we didn't find anything.
10758if 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; }
10759}'`; fi
10760else
10761  echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764fi
10765rm -f conftest.err conftest.$ac_objext \
10766      conftest$ac_exeext conftest.$ac_ext
10767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10768
10769         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10770          # Warning - without using the other run time loading flags,
10771          # -berok will link without error, but may produce a broken library.
10772          no_undefined_flag=' ${wl}-bernotok'
10773          allow_undefined_flag=' ${wl}-berok'
10774          # Exported symbols can be pulled into shared objects from archives
10775          whole_archive_flag_spec='$convenience'
10776          archive_cmds_need_lc=yes
10777          # This is similar to how AIX traditionally builds its shared libraries.
10778          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'
10779        fi
10780      fi
10781      ;;
10782
10783    amigaos*)
10784      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)'
10785      hardcode_libdir_flag_spec='-L$libdir'
10786      hardcode_minus_L=yes
10787      # see comment about different semantics on the GNU ld section
10788      ld_shlibs=no
10789      ;;
10790
10791    bsdi[45]*)
10792      export_dynamic_flag_spec=-rdynamic
10793      ;;
10794
10795    cygwin* | mingw* | pw32*)
10796      # When not using gcc, we currently assume that we are using
10797      # Microsoft Visual C++.
10798      # hardcode_libdir_flag_spec is actually meaningless, as there is
10799      # no search path for DLLs.
10800      hardcode_libdir_flag_spec=' '
10801      allow_undefined_flag=unsupported
10802      # Tell ltmain to make .lib files, not .a files.
10803      libext=lib
10804      # Tell ltmain to make .dll files, not .so files.
10805      shrext_cmds=".dll"
10806      # FIXME: Setting linknames here is a bad hack.
10807      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10808      # The linker will automatically build a .lib file if we build a DLL.
10809      old_archive_From_new_cmds='true'
10810      # FIXME: Should let the user specify the lib program.
10811      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10812      fix_srcfile_path='`cygpath -w "$srcfile"`'
10813      enable_shared_with_static_runtimes=yes
10814      ;;
10815
10816    darwin* | rhapsody*)
10817      case $host_os in
10818        rhapsody* | darwin1.[012])
10819         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10820         ;;
10821       *) # Darwin 1.3 on
10822         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10823           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10824         else
10825           case ${MACOSX_DEPLOYMENT_TARGET} in
10826             10.[012])
10827               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10828               ;;
10829             10.*)
10830               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10831               ;;
10832           esac
10833         fi
10834         ;;
10835      esac
10836      archive_cmds_need_lc=no
10837      hardcode_direct=no
10838      hardcode_automatic=yes
10839      hardcode_shlibpath_var=unsupported
10840      whole_archive_flag_spec=''
10841      link_all_deplibs=yes
10842    if test "$GCC" = yes ; then
10843        output_verbose_link_cmd='echo'
10844        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10845      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10846      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10847      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}'
10848      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}'
10849    else
10850      case $cc_basename in
10851        xlc*)
10852         output_verbose_link_cmd='echo'
10853         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10854         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flag