source: ThirdParty/FilterSQP/trunk/configure @ 2966

Last change on this file since 2966 was 2966, checked in by tkr, 7 years ago

Re-running the autotools

File size: 775.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 trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyFilterSQP trunk'
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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP trunk 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 trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-filtersqp
1080                          compile project FilterSQP with debug compiler flags
1081
1082  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1083  --disable-pkg-config    disable use of pkg-config (if available)
1084  --disable-dependency-tracking  speeds up one-time build
1085  --enable-dependency-tracking   do not reject slow dependency extractors
1086  --enable-maintainer-mode  enable make rules and dependencies not useful
1087                          (and sometimes confusing) to the casual installer
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095
1096Optional Packages:
1097  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1098  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1099  --with-filtersqp-verbosity
1100                          specify the debug verbosity level for project
1101                          FilterSQP
1102  --with-filtersqp-checklevel
1103                          specify the sanity check level for project FilterSQP
1104  --with-coin-instdir     prefix of installation directory for precompiled
1105                          COIN packages
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111
1112Some influential environment variables:
1113  CDEFS       Additional -D flags to be used when compiling C code.
1114  ADD_CFLAGS  Additional C compiler options
1115  DBG_CFLAGS  Debug C compiler options
1116  OPT_CFLAGS  Optimize C compiler options
1117  CC          C compiler command
1118  CFLAGS      C compiler flags
1119  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1120              nonstandard directory <lib dir>
1121  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1122              headers in a nonstandard directory <include dir>
1123  MPICC       C MPI Compiler
1124  ADD_FFLAGS  Additional Fortran compiler options
1125  DBG_FFLAGS  Debug Fortran compiler options
1126  OPT_FFLAGS  Optimize Fortran compiler options
1127  F77         Fortran 77 compiler command
1128  FFLAGS      Fortran 77 compiler flags
1129  MPIF77      Fortran MPI Compiler
1130  PKG_CONFIG  path to pkg-config utility
1131  CPP         C preprocessor
1132  CXX         C++ compiler command
1133  CXXFLAGS    C++ compiler flags
1134  CXXCPP      C++ preprocessor
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235ThirdPartyFilterSQP configure trunk
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Eclipse Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by ThirdPartyFilterSQP $as_me trunk, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604
1605# As backup, we make sure we don't loose an FLIBS if it has been set
1606# by the user
1607save_FLIBS="$FLIBS"
1608
1609# A useful makefile conditional that is always false
1610
1611
1612if false; then
1613  ALWAYS_FALSE_TRUE=
1614  ALWAYS_FALSE_FALSE='#'
1615else
1616  ALWAYS_FALSE_TRUE='#'
1617  ALWAYS_FALSE_FALSE=
1618fi
1619
1620
1621# We set the following variable so that we know later in AC_COIN_FINALIZE
1622# that we are in a project main directory
1623coin_projectdir=yes
1624
1625# Set the project's version numbers
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1630_ACEOF
1631
1632
1633  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1634  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1636  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1637  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1638  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1639
1640cat >>confdefs.h <<_ACEOF
1641#define FILTERSQP_VERSION_MAJOR $coin_majorver
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define FILTERSQP_VERSION_MINOR $coin_minorver
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define FILTERSQP_VERSION_RELEASE $coin_releasever
1652_ACEOF
1653
1654
1655  # We use the following variable to have a string with the upper case
1656  # version of the project name
1657  COIN_PRJCT=FILTERSQP
1658
1659  # Set the project's SVN revision number. The complicated sed expression
1660  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1661  # as a single number.
1662  # Extract the first word of "svnversion", so it can be a program name with args.
1663set dummy svnversion; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_have_svnversion+set}" = set; then
1667  echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669  if test -n "$have_svnversion"; then
1670  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675  IFS=$as_save_IFS
1676  test -z "$as_dir" && as_dir=.
1677  for ac_exec_ext in '' $ac_executable_extensions; do
1678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679    ac_cv_prog_have_svnversion="yes"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1687fi
1688fi
1689have_svnversion=$ac_cv_prog_have_svnversion
1690if test -n "$have_svnversion"; then
1691  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1692echo "${ECHO_T}$have_svnversion" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698  if test "x$have_svnversion" = xyes; then
1699
1700    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1701    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1702      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1703
1704cat >>confdefs.h <<_ACEOF
1705#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1706_ACEOF
1707
1708    fi
1709  fi
1710
1711
1712
1713# Capture libtool library version, if given.
1714
1715
1716
1717
1718#############################################################################
1719#                         Standard build tool stuff                         #
1720#############################################################################
1721
1722# Get the system type
1723ac_aux_dir=
1724for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1725  if test -f $ac_dir/install-sh; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install-sh -c"
1728    break
1729  elif test -f $ac_dir/install.sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install.sh -c"
1732    break
1733  elif test -f $ac_dir/shtool; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/shtool install -c"
1736    break
1737  fi
1738done
1739if test -z "$ac_aux_dir"; then
1740  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1741echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1745ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1746ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1747
1748# Make sure we can run config.sub.
1749$ac_config_sub sun4 >/dev/null 2>&1 ||
1750  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1751echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754echo "$as_me:$LINENO: checking build system type" >&5
1755echo $ECHO_N "checking build system type... $ECHO_C" >&6
1756if test "${ac_cv_build+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  ac_cv_build_alias=$build_alias
1760test -z "$ac_cv_build_alias" &&
1761  ac_cv_build_alias=`$ac_config_guess`
1762test -z "$ac_cv_build_alias" &&
1763  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1764echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1765   { (exit 1); exit 1; }; }
1766ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1767  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1768echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1769   { (exit 1); exit 1; }; }
1770
1771fi
1772echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1773echo "${ECHO_T}$ac_cv_build" >&6
1774build=$ac_cv_build
1775build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1776build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1777build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1778
1779
1780
1781# Check if user wants to produce debugging code
1782
1783echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1784echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1785
1786# Check whether --enable-debug or --disable-debug was given.
1787if test "${enable_debug+set}" = set; then
1788  enableval="$enable_debug"
1789  case "${enableval}" in
1790   yes) coin_debug_compile=true
1791        if test "${enable_shared+set}" = set; then :; else
1792          enable_shared=no
1793        fi
1794        ;;
1795   no)  coin_debug_compile=false
1796        ;;
1797   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1798echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1799   { (exit 1); exit 1; }; }
1800        ;;
1801esac
1802else
1803  coin_debug_compile=false
1804fi;
1805
1806# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1807if test "${enable_debug_filtersqp+set}" = set; then
1808  enableval="$enable_debug_filtersqp"
1809  case "${enableval}" in
1810    yes) coin_debug_compile=true
1811         ;;
1812    no)  coin_debug_compile=false
1813         ;;
1814    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1815echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1816   { (exit 1); exit 1; }; }
1817         ;;
1818 esac
1819else
1820  :
1821fi;
1822
1823 # m4_ifvaln([FilterSQP],
1824
1825if test $coin_debug_compile = true; then
1826  echo "$as_me:$LINENO: result: yes" >&5
1827echo "${ECHO_T}yes" >&6
1828else
1829  echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833
1834# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1835if test "${with_filtersqp_verbosity+set}" = set; then
1836  withval="$with_filtersqp_verbosity"
1837  if test "$withval" = yes; then
1838                withval=1
1839              fi
1840              coin_filtersqp_verbosity=$withval
1841else
1842  coin_filtersqp_verbosity=0
1843fi;
1844
1845cat >>confdefs.h <<_ACEOF
1846#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1847_ACEOF
1848
1849
1850
1851# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1852if test "${with_filtersqp_checklevel+set}" = set; then
1853  withval="$with_filtersqp_checklevel"
1854  if test "$withval" = yes; then
1855                withval=1
1856              fi
1857              coin_filtersqp_checklevel=$withval
1858else
1859  coin_filtersqp_checklevel=0
1860fi;
1861
1862cat >>confdefs.h <<_ACEOF
1863#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1864_ACEOF
1865
1866
1867 # m4_ifvaln([FilterSQP],
1868
1869
1870
1871# Get the name of the Fortran compiler and appropriate compiler options
1872
1873
1874  # for backward compatibility
1875  # Check whether --enable-doscompile or --disable-doscompile was given.
1876if test "${enable_doscompile+set}" = set; then
1877  enableval="$enable_doscompile"
1878  enable_doscompile=$enableval
1879else
1880  enable_doscompile=no
1881fi;
1882
1883  # Check whether --enable-msvc or --disable-msvc was given.
1884if test "${enable_msvc+set}" = set; then
1885  enableval="$enable_msvc"
1886  enable_msvc=$enableval
1887else
1888  enable_msvc=no
1889     if test "$enable_doscompile" = msvc ; then
1890       enable_msvc=yes
1891     elif test "$enable_doscompile" != no ; then
1892       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1893echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1894   { (exit 1); exit 1; }; }
1895     fi
1896
1897fi;
1898
1899  if test "$enable_msvc" = yes; then
1900    case $build in
1901      *-cygwin* | *-mingw*) ;;
1902      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1903echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1904   { (exit 1); exit 1; }; } ;;
1905    esac
1906  fi
1907
1908
1909 case $build in
1910  *-mingw*)
1911    if test "${LD+set}" = set; then :; else
1912      LD=link
1913    fi
1914    ;;
1915 esac
1916 if test $enable_msvc = yes ; then
1917   if test "x${LD+set}" = xset; then :; else
1918     LD=link
1919   fi
1920 fi
1921
1922
1923# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1924if test "${enable_static_standardlibs+set}" = set; then
1925  enableval="$enable_static_standardlibs"
1926  case "$enableval" in
1927     no | yes | auto ) ;;
1928     *)
1929       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1930echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1931   { (exit 1); exit 1; }; } ;;
1932   esac
1933   use_static_standardlibs=$enableval
1934else
1935  use_static_standardlibs=no
1936fi;
1937
1938
1939
1940
1941
1942ac_ext=c
1943ac_cpp='$CPP $CPPFLAGS'
1944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949# For consistency, we set the C compiler to the same value of the C++
1950# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1951if test x"$CXX" != x; then
1952  case "$CXX" in
1953    clang* ) ;;
1954    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1955      if test x"$CC" = x; then
1956        CC="$CXX"
1957        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1958echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1959      fi
1960      ;;
1961  esac
1962fi
1963
1964
1965
1966
1967
1968
1969coin_has_cc=yes
1970
1971save_cflags="$CFLAGS"
1972
1973# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1974# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1975# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1976# compiler. In this case, put cc after gcc.
1977
1978case $build in
1979  *-cygwin* | *-mingw*)
1980             if test "$enable_msvc" = yes ; then
1981               comps="icl cl gcc"
1982             else
1983               comps="gcc icl cl"
1984             fi ;;
1985  *-*-solaris*)
1986             # Extract the first word of "cc", so it can be a program name with args.
1987set dummy cc; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1991  echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993  if test -n "$sol_cc_compiler"; then
1994  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1995else
1996  ac_prog_rejected=no
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002  for ac_exec_ext in '' $ac_executable_extensions; do
2003  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005       ac_prog_rejected=yes
2006       continue
2007     fi
2008    ac_cv_prog_sol_cc_compiler="cc"
2009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010    break 2
2011  fi
2012done
2013done
2014
2015if test $ac_prog_rejected = yes; then
2016  # We found a bogon in the path, so make sure we never use it.
2017  set dummy $ac_cv_prog_sol_cc_compiler
2018  shift
2019  if test $# != 0; then
2020    # We chose a different compiler from the bogus one.
2021    # However, it has the same basename, so the bogon will be chosen
2022    # first if we set sol_cc_compiler to just the basename; use the full file name.
2023    shift
2024    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2025  fi
2026fi
2027fi
2028fi
2029sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2030if test -n "$sol_cc_compiler"; then
2031  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2032echo "${ECHO_T}$sol_cc_compiler" >&6
2033else
2034  echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038             if test "$sol_cc_compiler" = "cc" ; then
2039               comps="cc xlc gcc pgcc icc"
2040             else
2041               comps="xlc gcc pgcc icc cc"
2042             fi
2043             ;;
2044  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2045  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2046  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2047esac
2048
2049# We delete the cached value, since the test might not have been
2050# performed with our choice of compilers earlier
2051$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2052# AC_MSG_NOTICE([C compiler candidates: $comps])
2053ac_ext=c
2054ac_cpp='$CPP $CPPFLAGS'
2055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058if test -n "$ac_tool_prefix"; then
2059  for ac_prog in $comps
2060  do
2061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2063echo "$as_me:$LINENO: checking for $ac_word" >&5
2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065if test "${ac_cv_prog_CC+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  if test -n "$CC"; then
2069  ac_cv_prog_CC="$CC" # Let the user override the test.
2070else
2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072for as_dir in $PATH
2073do
2074  IFS=$as_save_IFS
2075  test -z "$as_dir" && as_dir=.
2076  for ac_exec_ext in '' $ac_executable_extensions; do
2077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080    break 2
2081  fi
2082done
2083done
2084
2085fi
2086fi
2087CC=$ac_cv_prog_CC
2088if test -n "$CC"; then
2089  echo "$as_me:$LINENO: result: $CC" >&5
2090echo "${ECHO_T}$CC" >&6
2091else
2092  echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6
2094fi
2095
2096    test -n "$CC" && break
2097  done
2098fi
2099if test -z "$CC"; then
2100  ac_ct_CC=$CC
2101  for ac_prog in $comps
2102do
2103  # Extract the first word of "$ac_prog", so it can be a program name with args.
2104set dummy $ac_prog; ac_word=$2
2105echo "$as_me:$LINENO: checking for $ac_word" >&5
2106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2108  echo $ECHO_N "(cached) $ECHO_C" >&6
2109else
2110  if test -n "$ac_ct_CC"; then
2111  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2112else
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116  IFS=$as_save_IFS
2117  test -z "$as_dir" && as_dir=.
2118  for ac_exec_ext in '' $ac_executable_extensions; do
2119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120    ac_cv_prog_ac_ct_CC="$ac_prog"
2121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122    break 2
2123  fi
2124done
2125done
2126
2127fi
2128fi
2129ac_ct_CC=$ac_cv_prog_ac_ct_CC
2130if test -n "$ac_ct_CC"; then
2131  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2132echo "${ECHO_T}$ac_ct_CC" >&6
2133else
2134  echo "$as_me:$LINENO: result: no" >&5
2135echo "${ECHO_T}no" >&6
2136fi
2137
2138  test -n "$ac_ct_CC" && break
2139done
2140
2141  CC=$ac_ct_CC
2142fi
2143
2144
2145test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: no acceptable C compiler found in \$PATH
2148See \`config.log' for more details." >&2;}
2149   { (exit 1); exit 1; }; }
2150
2151# Provide some information about the compiler.
2152echo "$as_me:$LINENO:" \
2153     "checking for C compiler version" >&5
2154ac_compiler=`set X $ac_compile; echo $2`
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2156  (eval $ac_compiler --version </dev/null >&5) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2161  (eval $ac_compiler -v </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2166  (eval $ac_compiler -V </dev/null >&5) 2>&5
2167  ac_status=$?
2168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169  (exit $ac_status); }
2170
2171cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177
2178int
2179main ()
2180{
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186ac_clean_files_save=$ac_clean_files
2187ac_clean_files="$ac_clean_files a.out a.exe b.out"
2188# Try to create an executable without -o first, disregard a.out.
2189# It will help us diagnose broken compilers, and finding out an intuition
2190# of exeext.
2191echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2192echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2193ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2194if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2195  (eval $ac_link_default) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; then
2199  # Find the output, starting from the most likely.  This scheme is
2200# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2201# resort.
2202
2203# Be careful to initialize this variable, since it used to be cached.
2204# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2205ac_cv_exeext=
2206# b.out is created by i960 compilers.
2207for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2208do
2209  test -f "$ac_file" || continue
2210  case $ac_file in
2211    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2212        ;;
2213    conftest.$ac_ext )
2214        # This is the source file.
2215        ;;
2216    [ab].out )
2217        # We found the default executable, but exeext='' is most
2218        # certainly right.
2219        break;;
2220    *.* )
2221        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2222        # FIXME: I believe we export ac_cv_exeext for Libtool,
2223        # but it would be cool to find out if it's true.  Does anybody
2224        # maintain Libtool? --akim.
2225        export ac_cv_exeext
2226        break;;
2227    * )
2228        break;;
2229  esac
2230done
2231else
2232  echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: C compiler cannot create executables
2238See \`config.log' for more details." >&2;}
2239   { (exit 77); exit 77; }; }
2240fi
2241
2242ac_exeext=$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_file" >&5
2244echo "${ECHO_T}$ac_file" >&6
2245
2246# Check the compiler produces executables we can run.  If not, either
2247# the compiler is broken, or we cross compile.
2248echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2249echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2250# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2251# If not cross compiling, check that we can run a simple program.
2252if test "$cross_compiling" != yes; then
2253  if { ac_try='./$ac_file'
2254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255  (eval $ac_try) 2>&5
2256  ac_status=$?
2257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258  (exit $ac_status); }; }; then
2259    cross_compiling=no
2260  else
2261    if test "$cross_compiling" = maybe; then
2262        cross_compiling=yes
2263    else
2264        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2265If you meant to cross compile, use \`--host'.
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: cannot run C compiled programs.
2268If you meant to cross compile, use \`--host'.
2269See \`config.log' for more details." >&2;}
2270   { (exit 1); exit 1; }; }
2271    fi
2272  fi
2273fi
2274echo "$as_me:$LINENO: result: yes" >&5
2275echo "${ECHO_T}yes" >&6
2276
2277rm -f a.out a.exe conftest$ac_cv_exeext b.out
2278ac_clean_files=$ac_clean_files_save
2279# Check the compiler produces executables we can run.  If not, either
2280# the compiler is broken, or we cross compile.
2281echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2283echo "$as_me:$LINENO: result: $cross_compiling" >&5
2284echo "${ECHO_T}$cross_compiling" >&6
2285
2286echo "$as_me:$LINENO: checking for suffix of executables" >&5
2287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2289  (eval $ac_link) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; then
2293  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2294# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2295# work properly (i.e., refer to `conftest.exe'), while it won't with
2296# `rm'.
2297for ac_file in conftest.exe conftest conftest.*; do
2298  test -f "$ac_file" || continue
2299  case $ac_file in
2300    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2301    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302          export ac_cv_exeext
2303          break;;
2304    * ) break;;
2305  esac
2306done
2307else
2308  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2311See \`config.log' for more details." >&2;}
2312   { (exit 1); exit 1; }; }
2313fi
2314
2315rm -f conftest$ac_cv_exeext
2316echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2317echo "${ECHO_T}$ac_cv_exeext" >&6
2318
2319rm -f conftest.$ac_ext
2320EXEEXT=$ac_cv_exeext
2321ac_exeext=$EXEEXT
2322echo "$as_me:$LINENO: checking for suffix of object files" >&5
2323echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2324if test "${ac_cv_objext+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333
2334int
2335main ()
2336{
2337
2338  ;
2339  return 0;
2340}
2341_ACEOF
2342rm -f conftest.o conftest.obj
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344  (eval $ac_compile) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; then
2348  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2349  case $ac_file in
2350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2351    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352       break;;
2353  esac
2354done
2355else
2356  echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&2;}
2363   { (exit 1); exit 1; }; }
2364fi
2365
2366rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367fi
2368echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6
2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
2372echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2374if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375  echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377  cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h.  */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h.  */
2383
2384int
2385main ()
2386{
2387#ifndef __GNUC__
2388       choke me
2389#endif
2390
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397  (eval $ac_compile) 2>conftest.er1
2398  ac_status=$?
2399  grep -v '^ *+' conftest.er1 >conftest.err
2400  rm -f conftest.er1
2401  cat conftest.err >&5
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); } &&
2404         { ac_try='test -z "$ac_c_werror_flag"
2405                         || test ! -s conftest.err'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; } &&
2411         { ac_try='test -s conftest.$ac_objext'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; }; then
2417  ac_compiler_gnu=yes
2418else
2419  echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422ac_compiler_gnu=no
2423fi
2424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425ac_cv_c_compiler_gnu=$ac_compiler_gnu
2426
2427fi
2428echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2430GCC=`test $ac_compiler_gnu = yes && echo yes`
2431ac_test_CFLAGS=${CFLAGS+set}
2432ac_save_CFLAGS=$CFLAGS
2433CFLAGS="-g"
2434echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2436if test "${ac_cv_prog_cc_g+set}" = set; then
2437  echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439  cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h.  */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h.  */
2445
2446int
2447main ()
2448{
2449
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  ac_cv_prog_cc_g=yes
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481ac_cv_prog_cc_g=no
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484fi
2485echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2486echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2487if test "$ac_test_CFLAGS" = set; then
2488  CFLAGS=$ac_save_CFLAGS
2489elif test $ac_cv_prog_cc_g = yes; then
2490  if test "$GCC" = yes; then
2491    CFLAGS="-g -O2"
2492  else
2493    CFLAGS="-g"
2494  fi
2495else
2496  if test "$GCC" = yes; then
2497    CFLAGS="-O2"
2498  else
2499    CFLAGS=
2500  fi
2501fi
2502echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2503echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2504if test "${ac_cv_prog_cc_stdc+set}" = set; then
2505  echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507  ac_cv_prog_cc_stdc=no
2508ac_save_CC=$CC
2509cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h.  */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h.  */
2515#include <stdarg.h>
2516#include <stdio.h>
2517#include <sys/types.h>
2518#include <sys/stat.h>
2519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2520struct buf { int x; };
2521FILE * (*rcsopen) (struct buf *, struct stat *, int);
2522static char *e (p, i)
2523     char **p;
2524     int i;
2525{
2526  return p[i];
2527}
2528static char *f (char * (*g) (char **, int), char **p, ...)
2529{
2530  char *s;
2531  va_list v;
2532  va_start (v,p);
2533  s = g (p, va_arg (v,int));
2534  va_end (v);
2535  return s;
2536}
2537
2538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2539   function prototypes and stuff, but not '\xHH' hex character constants.
2540   These don't provoke an error unfortunately, instead are silently treated
2541   as 'x'.  The following induces an error, until -std1 is added to get
2542   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2543   array size at least.  It's necessary to write '\x00'==0 to get something
2544   that's true only with -std1.  */
2545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2546
2547int test (int i, double x);
2548struct s1 {int (*f) (int a);};
2549struct s2 {int (*f) (double a);};
2550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2551int argc;
2552char **argv;
2553int
2554main ()
2555{
2556return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561# Don't try gcc -ansi; that turns off useful extensions and
2562# breaks some systems' header files.
2563# AIX                   -qlanglvl=ansi
2564# Ultrix and OSF/1      -std1
2565# HP-UX 10.20 and later -Ae
2566# HP-UX older versions  -Aa -D_HPUX_SOURCE
2567# SVR4                  -Xc -D__EXTENSIONS__
2568for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2569do
2570  CC="$ac_save_CC $ac_arg"
2571  rm -f conftest.$ac_objext
2572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573  (eval $ac_compile) 2>conftest.er1
2574  ac_status=$?
2575  grep -v '^ *+' conftest.er1 >conftest.err
2576  rm -f conftest.er1
2577  cat conftest.err >&5
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); } &&
2580         { ac_try='test -z "$ac_c_werror_flag"
2581                         || test ! -s conftest.err'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; } &&
2587         { ac_try='test -s conftest.$ac_objext'
2588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589  (eval $ac_try) 2>&5
2590  ac_status=$?
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); }; }; then
2593  ac_cv_prog_cc_stdc=$ac_arg
2594break
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599fi
2600rm -f conftest.err conftest.$ac_objext
2601done
2602rm -f conftest.$ac_ext conftest.$ac_objext
2603CC=$ac_save_CC
2604
2605fi
2606
2607case "x$ac_cv_prog_cc_stdc" in
2608  x|xno)
2609    echo "$as_me:$LINENO: result: none needed" >&5
2610echo "${ECHO_T}none needed" >&6 ;;
2611  *)
2612    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2613echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2614    CC="$CC $ac_cv_prog_cc_stdc" ;;
2615esac
2616
2617# Some people use a C++ compiler to compile C.  Since we use `exit',
2618# in C++ we need to declare it.  In case someone uses the same compiler
2619# for both compiling C and C++ we need to have the C++ compiler decide
2620# the declaration of exit, since it's the most demanding environment.
2621cat >conftest.$ac_ext <<_ACEOF
2622#ifndef __cplusplus
2623  choke me
2624#endif
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>conftest.er1
2629  ac_status=$?
2630  grep -v '^ *+' conftest.er1 >conftest.err
2631  rm -f conftest.er1
2632  cat conftest.err >&5
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); } &&
2635         { ac_try='test -z "$ac_c_werror_flag"
2636                         || test ! -s conftest.err'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; } &&
2642         { ac_try='test -s conftest.$ac_objext'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; }; then
2648  for ac_declaration in \
2649   '' \
2650   'extern "C" void std::exit (int) throw (); using std::exit;' \
2651   'extern "C" void std::exit (int); using std::exit;' \
2652   'extern "C" void exit (int) throw ();' \
2653   'extern "C" void exit (int);' \
2654   'void exit (int);'
2655do
2656  cat >conftest.$ac_ext <<_ACEOF
2657/* confdefs.h.  */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h.  */
2662$ac_declaration
2663#include <stdlib.h>
2664int
2665main ()
2666{
2667exit (42);
2668  ;
2669  return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674  (eval $ac_compile) 2>conftest.er1
2675  ac_status=$?
2676  grep -v '^ *+' conftest.er1 >conftest.err
2677  rm -f conftest.er1
2678  cat conftest.err >&5
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); } &&
2681         { ac_try='test -z "$ac_c_werror_flag"
2682                         || test ! -s conftest.err'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; } &&
2688         { ac_try='test -s conftest.$ac_objext'
2689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690  (eval $ac_try) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); }; }; then
2694  :
2695else
2696  echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699continue
2700fi
2701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2702  cat >conftest.$ac_ext <<_ACEOF
2703/* confdefs.h.  */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h.  */
2708$ac_declaration
2709int
2710main ()
2711{
2712exit (42);
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719  (eval $ac_compile) 2>conftest.er1
2720  ac_status=$?
2721  grep -v '^ *+' conftest.er1 >conftest.err
2722  rm -f conftest.er1
2723  cat conftest.err >&5
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); } &&
2726         { ac_try='test -z "$ac_c_werror_flag"
2727                         || test ! -s conftest.err'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; } &&
2733         { ac_try='test -s conftest.$ac_objext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  break
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744fi
2745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746done
2747rm -f conftest*
2748if test -n "$ac_declaration"; then
2749  echo '#ifdef __cplusplus' >>confdefs.h
2750  echo $ac_declaration      >>confdefs.h
2751  echo '#endif'             >>confdefs.h
2752fi
2753
2754else
2755  echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758fi
2759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760ac_ext=c
2761ac_cpp='$CPP $CPPFLAGS'
2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765
2766if test -z "$CC" ; then
2767  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2768echo "$as_me: error: Failed to find a C compiler!" >&2;}
2769   { (exit 1); exit 1; }; }
2770fi
2771# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2772case "$CC" in
2773  clang* ) ;;
2774  cl* | */cl* | CL* | */CL* )
2775    if test "$ac_cv_prog_cc_g" = yes ; then
2776      ac_cv_prog_cc_g=no
2777      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2778echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2779    fi ;;
2780  * )
2781    CYGPATH_W=echo
2782    ;;
2783esac
2784CFLAGS="$save_cflags"
2785
2786# add automake conditional so we can recognize cl compiler in makefile
2787coin_cc_is_cl=false
2788case "$CC" in
2789  clang* ) ;;
2790  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2791    coin_cc_is_cl=true
2792    ;;
2793esac
2794
2795
2796if test $coin_cc_is_cl = true; then
2797  COIN_CC_IS_CL_TRUE=
2798  COIN_CC_IS_CL_FALSE='#'
2799else
2800  COIN_CC_IS_CL_TRUE='#'
2801  COIN_CC_IS_CL_FALSE=
2802fi
2803
2804
2805# Check if a project specific CFLAGS variable has been set
2806if test x$COIN_PRJCT != x; then
2807  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2808  if test x$coin_tmp = xset; then
2809    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2810  fi
2811fi
2812
2813if test x"$CFLAGS" = x; then
2814
2815  coin_add_cflags=
2816  coin_opt_cflags=
2817  coin_dbg_cflags=
2818  coin_warn_cflags=
2819
2820  if test "$GCC" = "yes"; then
2821    case "$CC" in
2822      icc* | */icc*)
2823        ;;
2824      *)
2825        coin_opt_cflags="-O3"
2826        coin_add_cflags="-pipe"
2827        coin_dbg_cflags="-g -O0"
2828        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2829        case $build in
2830          *-darwin*)
2831            ;;
2832          *)
2833            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2834            ;;
2835        esac
2836    esac
2837  fi
2838  if test -z "$coin_opt_cflags"; then
2839    case $build in
2840      *-cygwin* | *-mingw*)
2841        case "$CC" in
2842          clang* ) ;;
2843          cl* | */cl* | CL* | */CL*)
2844            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2845              coin_opt_cflags='-MD -O2'
2846              coin_dbg_cflags='-MDd'
2847            else
2848              coin_opt_cflags='-MT -O2'
2849              coin_dbg_cflags='-MTd'
2850            fi
2851            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2852            ;;
2853          icl* | */icl* | ICL* | */ICL*)
2854            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2855              coin_opt_cflags='-MD -Ox'
2856              coin_dbg_cflags='-MDd -debug'
2857            else
2858              coin_opt_cflags='-MT -Ox'
2859              coin_dbg_cflags='-MTd -debug'
2860            fi
2861            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2862            ;;
2863        esac
2864        ;;
2865      *-linux-*)
2866        case "$CC" in
2867          icc* | */icc*)
2868            coin_opt_cflags="-O3 -ip -mp1"
2869            coin_add_cflags=""
2870            coin_dbg_cflags="-g"
2871            # Check if -i_dynamic is necessary (for new glibc library)
2872            CFLAGS=
2873            cat >conftest.$ac_ext <<_ACEOF
2874/* confdefs.h.  */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h.  */
2879
2880int
2881main ()
2882{
2883int i=0; i++;
2884  ;
2885  return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext conftest$ac_exeext
2889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2890  (eval $ac_link) 2>conftest.er1
2891  ac_status=$?
2892  grep -v '^ *+' conftest.er1 >conftest.err
2893  rm -f conftest.er1
2894  cat conftest.err >&5
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); } &&
2897         { ac_try='test -z "$ac_c_werror_flag"
2898                         || test ! -s conftest.err'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; } &&
2904         { ac_try='test -s conftest$ac_exeext'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; }; then
2910  :
2911else
2912  echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915coin_add_cflags="-i_dynamic $coin_add_cflags"
2916fi
2917rm -f conftest.err conftest.$ac_objext \
2918      conftest$ac_exeext conftest.$ac_ext
2919            ;;
2920          pgcc* | */pgcc*)
2921            coin_opt_cflags="-fast"
2922            coin_add_cflags="-Kieee -pc 64"
2923            coin_dbg_cflags="-g"
2924            ;;
2925        esac
2926        ;;
2927      *-ibm-*)
2928        case "$CC" in
2929          xlc* | */xlc* | mpxlc* | */mpxlc*)
2930            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2931            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2932            coin_dbg_cflags="-g"
2933          ;;
2934        esac
2935        ;;
2936      *-hp-*)
2937        coin_opt_cflags="-O"
2938        coin_add_cflags="-Ae"
2939        coin_dbg_cflags="-g"
2940        ;;
2941      *-*-solaris*)
2942        coin_opt_cflags="-xO4"
2943        coin_dbg_cflags="-g"
2944        ;;
2945      *-sgi-*)
2946        coin_opt_cflags="-O -OPT:Olimit=0"
2947        coin_dbg_cflags="-g"
2948        ;;
2949    esac
2950  fi
2951
2952  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2953    coin_dbg_cflags="-g"
2954  fi
2955
2956  if test -z "$coin_opt_cflags"; then
2957    # Try if -O option works if nothing else is set
2958    CFLAGS="-O"
2959    cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h.  */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h.  */
2965
2966int
2967main ()
2968{
2969int i=0; i++;
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext conftest$ac_exeext
2975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976  (eval $ac_link) 2>conftest.er1
2977  ac_status=$?
2978  grep -v '^ *+' conftest.er1 >conftest.err
2979  rm -f conftest.er1
2980  cat conftest.err >&5
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); } &&
2983         { ac_try='test -z "$ac_c_werror_flag"
2984                         || test ! -s conftest.err'
2985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986  (eval $ac_try) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }; } &&
2990         { ac_try='test -s conftest$ac_exeext'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; }; then
2996  coin_opt_cflags="-O"
2997else
2998  echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001fi
3002rm -f conftest.err conftest.$ac_objext \
3003      conftest$ac_exeext conftest.$ac_ext
3004  fi
3005
3006  # if PM doesn't want the warning messages, take them out
3007  if test x"$coin_skip_warn_cflags" = xyes; then
3008    coin_warn_cflags=
3009  fi
3010
3011  if test x${DBG_CFLAGS+set} != xset; then
3012    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3013  fi
3014  if test x${OPT_CFLAGS+set} != xset; then
3015    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3016  fi
3017
3018  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3019  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3020
3021  if test "$coin_debug_compile" = "true"; then
3022    CFLAGS="$DBG_CFLAGS"
3023  else
3024    CFLAGS="$OPT_CFLAGS"
3025  fi
3026
3027else
3028  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3029  if test x${DBG_CFLAGS+set} != xset; then
3030    DBG_CFLAGS="$CFLAGS"
3031  fi
3032  if test x${OPT_CFLAGS+set} != xset; then
3033    OPT_CFLAGS="$CFLAGS"
3034  fi
3035fi
3036
3037# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3038
3039case "$CFLAGS" in
3040  *-mno-cygwin*)
3041    if test x${CPPFLAGS+set} != xset ; then
3042      CPPFLAGS="-mno-cygwin"
3043    else
3044      case "$CPPFLAGS" in
3045        *-mno-cygwin*)
3046          ;;
3047        *)
3048          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3049          ;;
3050      esac
3051    fi ;;
3052esac
3053
3054# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3055if test x$COIN_PRJCT != x; then
3056  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3057fi
3058
3059# Try if CFLAGS works
3060save_CFLAGS="$CFLAGS"
3061cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h.  */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h.  */
3067
3068int
3069main ()
3070{
3071int i=0; i++;
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076rm -f conftest.$ac_objext conftest$ac_exeext
3077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3078  (eval $ac_link) 2>conftest.er1
3079  ac_status=$?
3080  grep -v '^ *+' conftest.er1 >conftest.err
3081  rm -f conftest.er1
3082  cat conftest.err >&5
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); } &&
3085         { ac_try='test -z "$ac_c_werror_flag"
3086                         || test ! -s conftest.err'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; } &&
3092         { ac_try='test -s conftest$ac_exeext'
3093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094  (eval $ac_try) 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }; }; then
3098  :
3099else
3100  echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103CFLAGS=
3104fi
3105rm -f conftest.err conftest.$ac_objext \
3106      conftest$ac_exeext conftest.$ac_ext
3107if test -z "$CFLAGS"; then
3108  { 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
3109echo "$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;}
3110  CFLAGS='-O'
3111  cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h.  */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h.  */
3117
3118int
3119main ()
3120{
3121int i=0; i++;
3122  ;
3123  return 0;
3124}
3125_ACEOF
3126rm -f conftest.$ac_objext conftest$ac_exeext
3127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3128  (eval $ac_link) 2>conftest.er1
3129  ac_status=$?
3130  grep -v '^ *+' conftest.er1 >conftest.err
3131  rm -f conftest.er1
3132  cat conftest.err >&5
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } &&
3135         { ac_try='test -z "$ac_c_werror_flag"
3136                         || test ! -s conftest.err'
3137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138  (eval $ac_try) 2>&5
3139  ac_status=$?
3140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }; } &&
3142         { ac_try='test -s conftest$ac_exeext'
3143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144  (eval $ac_try) 2>&5
3145  ac_status=$?
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); }; }; then
3148  :
3149else
3150  echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153CFLAGS=
3154fi
3155rm -f conftest.err conftest.$ac_objext \
3156      conftest$ac_exeext conftest.$ac_ext
3157  if test -z "$CFLAGS"; then
3158    { 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
3159echo "$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;}
3160  fi
3161fi
3162
3163{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3164echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3165
3166
3167if test x"$MPICC" = x; then :; else
3168  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3169echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3170  CC="$MPICC"
3171fi
3172
3173# Correct the LD variable if we are using the MS or Intel-windows compiler
3174case "$CC" in
3175  clang* ) ;;
3176  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3177
3178 case $build in
3179  *-mingw*)
3180    if test "${LD+set}" = set; then :; else
3181      LD=link
3182    fi
3183    ;;
3184 esac
3185 if test $enable_msvc = yes ; then
3186   if test "x${LD+set}" = xset; then :; else
3187     LD=link
3188   fi
3189 fi
3190
3191    ;;
3192esac
3193
3194# check whether to add flags for static linking against standard libraries to LDFLAGS
3195if test x$use_static_standardlibs != xno ; then
3196  case $build in
3197    *-mingw*)
3198      static_standardlib_flag=-static
3199      ;;
3200    *)
3201      static_standardlib_flag=-static-libgcc
3202      ;;
3203  esac
3204  case " $LDFLAGS " in
3205    *" $static_standardlib_flag "* ) ;;
3206    *)
3207    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3208echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3209    coin_save_LDFLAGS="$LDFLAGS"
3210    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3211    cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h.  */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h.  */
3217
3218int
3219main ()
3220{
3221int i=0;
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext conftest$ac_exeext
3227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228  (eval $ac_link) 2>conftest.er1
3229  ac_status=$?
3230  grep -v '^ *+' conftest.er1 >conftest.err
3231  rm -f conftest.er1
3232  cat conftest.err >&5
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } &&
3235         { ac_try='test -z "$ac_c_werror_flag"
3236                         || test ! -s conftest.err'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; } &&
3242         { ac_try='test -s conftest$ac_exeext'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; }; then
3248  echo "$as_me:$LINENO: result: yes" >&5
3249echo "${ECHO_T}yes" >&6
3250else
3251  echo "$as_me: failed program was:" >&5
3252sed 's/^/| /' conftest.$ac_ext >&5
3253
3254echo "$as_me:$LINENO: result: no" >&5
3255echo "${ECHO_T}no" >&6
3256       LDFLAGS="$coin_save_LDFLAGS"
3257       if test $use_static_standardlibs = yes ; then
3258         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3259echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3260   { (exit 1); exit 1; }; }
3261       fi
3262
3263fi
3264rm -f conftest.err conftest.$ac_objext \
3265      conftest$ac_exeext conftest.$ac_ext
3266    ;;
3267  esac
3268fi
3269
3270ac_ext=c
3271ac_cpp='$CPP $CPPFLAGS'
3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276
3277case $build in
3278  *-cygwin* | *-mingw*)
3279     if test "$enable_msvc" = yes ; then
3280       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3281     else
3282       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3283     fi ;;
3284  *-*-solaris*)
3285     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3286  *-linux-gnu*)
3287     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3288  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3289 esac
3290
3291
3292
3293
3294
3295
3296
3297ac_ext=f
3298ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3299ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3301
3302
3303
3304
3305
3306
3307coin_has_f77=yes
3308
3309save_fflags="$FFLAGS"
3310
3311# We delete the cached value, since the test might not have been
3312# performed with our choice of compilers earlier
3313$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3314
3315# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3316# coin_f77_comps to see if there's a program that matches one of the names.
3317# If there's no such program, F77 = unavailable. If we match the name,
3318# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3319# compiler.
3320# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3321
3322
3323{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3324echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3325if test -n "$ac_tool_prefix"; then
3326  for ac_prog in $coin_f77_comps
3327  do
3328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330echo "$as_me:$LINENO: checking for $ac_word" >&5
3331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332if test "${ac_cv_prog_F77+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  if test -n "$F77"; then
3336  ac_cv_prog_F77="$F77" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343  for ac_exec_ext in '' $ac_executable_extensions; do
3344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350done
3351
3352fi
3353fi
3354F77=$ac_cv_prog_F77
3355if test -n "$F77"; then
3356  echo "$as_me:$LINENO: result: $F77" >&5
3357echo "${ECHO_T}$F77" >&6
3358else
3359  echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6
3361fi
3362
3363    test -n "$F77" && break
3364  done
3365fi
3366if test -z "$F77"; then
3367  ac_ct_F77=$F77
3368  for ac_prog in $coin_f77_comps
3369do
3370  # Extract the first word of "$ac_prog", so it can be a program name with args.
3371set dummy $ac_prog; ac_word=$2
3372echo "$as_me:$LINENO: checking for $ac_word" >&5
3373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3374if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377  if test -n "$ac_ct_F77"; then
3378  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385  for ac_exec_ext in '' $ac_executable_extensions; do
3386  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_ac_ct_F77="$ac_prog"
3388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392done
3393
3394fi
3395fi
3396ac_ct_F77=$ac_cv_prog_ac_ct_F77
3397if test -n "$ac_ct_F77"; then
3398  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3399echo "${ECHO_T}$ac_ct_F77" >&6
3400else
3401  echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
3404
3405  test -n "$ac_ct_F77" && break
3406done
3407test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3408
3409  F77=$ac_ct_F77
3410fi
3411
3412
3413if test "$F77" != "unavailable" ; then
3414  ac_ext=f
3415ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3416ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3418if test -n "$ac_tool_prefix"; then
3419  for ac_prog in $coin_f77_comps
3420  do
3421    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3423echo "$as_me:$LINENO: checking for $ac_word" >&5
3424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3425if test "${ac_cv_prog_F77+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  if test -n "$F77"; then
3429  ac_cv_prog_F77="$F77" # Let the user override the test.
3430else
3431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432for as_dir in $PATH
3433do
3434  IFS=$as_save_IFS
3435  test -z "$as_dir" && as_dir=.
3436  for ac_exec_ext in '' $ac_executable_extensions; do
3437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440    break 2
3441  fi
3442done
3443done
3444
3445fi
3446fi
3447F77=$ac_cv_prog_F77
3448if test -n "$F77"; then
3449  echo "$as_me:$LINENO: result: $F77" >&5
3450echo "${ECHO_T}$F77" >&6
3451else
3452  echo "$as_me:$LINENO: result: no" >&5
3453echo "${ECHO_T}no" >&6
3454fi
3455
3456    test -n "$F77" && break
3457  done
3458fi
3459if test -z "$F77"; then
3460  ac_ct_F77=$F77
3461  for ac_prog in $coin_f77_comps
3462do
3463  # Extract the first word of "$ac_prog", so it can be a program name with args.
3464set dummy $ac_prog; ac_word=$2
3465echo "$as_me:$LINENO: checking for $ac_word" >&5
3466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  if test -n "$ac_ct_F77"; then
3471  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476  IFS=$as_save_IFS
3477  test -z "$as_dir" && as_dir=.
3478  for ac_exec_ext in '' $ac_executable_extensions; do
3479  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480    ac_cv_prog_ac_ct_F77="$ac_prog"
3481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482    break 2
3483  fi
3484done
3485done
3486
3487fi
3488fi
3489ac_ct_F77=$ac_cv_prog_ac_ct_F77
3490if test -n "$ac_ct_F77"; then
3491  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3492echo "${ECHO_T}$ac_ct_F77" >&6
3493else
3494  echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
3496fi
3497
3498  test -n "$ac_ct_F77" && break
3499done
3500
3501  F77=$ac_ct_F77
3502fi
3503
3504
3505# Provide some information about the compiler.
3506echo "$as_me:3506:" \
3507     "checking for Fortran 77 compiler version" >&5
3508ac_compiler=`set X $ac_compile; echo $2`
3509{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3510  (eval $ac_compiler --version </dev/null >&5) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }
3514{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3515  (eval $ac_compiler -v </dev/null >&5) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }
3519{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3520  (eval $ac_compiler -V </dev/null >&5) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }
3524rm -f a.out
3525
3526# If we don't use `.F' as extension, the preprocessor is not run on the
3527# input file.  (Note that this only needs to work for GNU compilers.)
3528ac_save_ext=$ac_ext
3529ac_ext=F
3530echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3531echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3532if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3533  echo $ECHO_N "(cached) $ECHO_C" >&6
3534else
3535  cat >conftest.$ac_ext <<_ACEOF
3536      program main
3537#ifndef __GNUC__
3538       choke me
3539#endif
3540
3541      end
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545  (eval $ac_compile) 2>conftest.er1
3546  ac_status=$?
3547  grep -v '^ *+' conftest.er1 >conftest.err
3548  rm -f conftest.er1
3549  cat conftest.err >&5
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); } &&
3552         { ac_try='test -z "$ac_f77_werror_flag"
3553                         || test ! -s conftest.err'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; } &&
3559         { ac_try='test -s conftest.$ac_objext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  ac_compiler_gnu=yes
3566else
3567  echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570ac_compiler_gnu=no
3571fi
3572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3574
3575fi
3576echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3577echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3578ac_ext=$ac_save_ext
3579ac_test_FFLAGS=${FFLAGS+set}
3580ac_save_FFLAGS=$FFLAGS
3581FFLAGS=
3582echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3583echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3584if test "${ac_cv_prog_f77_g+set}" = set; then
3585  echo $ECHO_N "(cached) $ECHO_C" >&6
3586else
3587  FFLAGS=-g
3588cat >conftest.$ac_ext <<_ACEOF
3589      program main
3590
3591      end
3592_ACEOF
3593rm -f conftest.$ac_objext
3594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595  (eval $ac_compile) 2>conftest.er1
3596  ac_status=$?
3597  grep -v '^ *+' conftest.er1 >conftest.err
3598  rm -f conftest.er1
3599  cat conftest.err >&5
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); } &&
3602         { ac_try='test -z "$ac_f77_werror_flag"
3603                         || test ! -s conftest.err'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; } &&
3609         { ac_try='test -s conftest.$ac_objext'
3610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611  (eval $ac_try) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; }; then
3615  ac_cv_prog_f77_g=yes
3616else
3617  echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620ac_cv_prog_f77_g=no
3621fi
3622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623
3624fi
3625echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3626echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3627if test "$ac_test_FFLAGS" = set; then
3628  FFLAGS=$ac_save_FFLAGS
3629elif test $ac_cv_prog_f77_g = yes; then
3630  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3631    FFLAGS="-g -O2"
3632  else
3633    FFLAGS="-g"
3634  fi
3635else
3636  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3637    FFLAGS="-O2"
3638  else
3639    FFLAGS=
3640  fi
3641fi
3642
3643G77=`test $ac_compiler_gnu = yes && echo yes`
3644ac_ext=f
3645ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3646ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3648
3649else
3650  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3651echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3652fi
3653
3654FFLAGS="$save_fflags"
3655
3656# Check if a project specific FFLAGS variable has been set
3657if test x$COIN_PRJCT != x; then
3658  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3659  if test x$coin_tmp = xset; then
3660    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3661  fi
3662fi
3663
3664if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3665
3666  coin_add_fflags=
3667  coin_opt_fflags=
3668  coin_dbg_fflags=
3669  coin_warn_fflags=
3670
3671  if test "$G77" = "yes"; then
3672    coin_opt_fflags="-O3"
3673    coin_add_fflags="-pipe"
3674    coin_dbg_fflags="-g -O0"
3675  else
3676    case $build in
3677      *-cygwin* | *-mingw*)
3678        case $F77 in
3679          ifort* | */ifort* | IFORT* | */IFORT* )
3680            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3681              coin_opt_fflags='-MD -O3'
3682              coin_dbg_fflags='-MDd -debug'
3683            else
3684              coin_opt_fflags='-MT -O3'
3685              coin_dbg_fflags='-MTd -debug'
3686            fi
3687            coin_add_fflags='-fpp -nologo'
3688          ;;
3689          compile_f2c*)
3690            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3691              coin_opt_fflags='-MD -O2'
3692              coin_dbg_fflags='-MDd'
3693            else
3694              coin_opt_fflags='-MT -O2'
3695              coin_dbg_fflags='-MTd'
3696            fi
3697            coin_add_fflags='-nologo -wd4996'
3698          ;;
3699        esac
3700        ;;
3701      *-linux-*)
3702        case $F77 in
3703          ifc* | */ifc* | ifort* | */ifort*)
3704            coin_opt_fflags="-O3 -ip"
3705            coin_add_fflags="-cm -w90 -w95"
3706            coin_dbg_fflags="-g -CA -CB -CS"
3707            # Check if -i_dynamic is necessary (for new glibc library)
3708            FFLAGS=
3709            cat >conftest.$ac_ext <<_ACEOF
3710      program main
3711      write(*,*) 'Hello world'
3712      end
3713_ACEOF
3714rm -f conftest.$ac_objext conftest$ac_exeext
3715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3716  (eval $ac_link) 2>conftest.er1
3717  ac_status=$?
3718  grep -v '^ *+' conftest.er1 >conftest.err
3719  rm -f conftest.er1
3720  cat conftest.err >&5
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); } &&
3723         { ac_try='test -z "$ac_f77_werror_flag"
3724                         || test ! -s conftest.err'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; } &&
3730         { ac_try='test -s conftest$ac_exeext'
3731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732  (eval $ac_try) 2>&5
3733  ac_status=$?
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); }; }; then
3736  :
3737else
3738  echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741coin_add_fflags="-i_dynamic $coin_add_fflags"
3742fi
3743rm -f conftest.err conftest.$ac_objext \
3744      conftest$ac_exeext conftest.$ac_ext
3745            ;;
3746          pgf77* | */pgf77* | pgf90* | */pgf90*)
3747            coin_opt_fflags="-fast"
3748            coin_add_fflags="-Kieee -pc 64"
3749            coin_dbg_fflags="-g"
3750          ;;
3751        esac
3752        ;;
3753      *-ibm-*)
3754        case "$F77" in
3755          xlf* | */xlf* | mpxlf* | */mpxlf* )
3756            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3757            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3758            coin_dbg_fflags="-g -C"
3759            ;;
3760        esac
3761        ;;
3762      *-hp-*)
3763        coin_opt_fflags="+O3"
3764        coin_add_fflags="+U77"
3765        coin_dbg_fflags="-C -g"
3766        ;;
3767      *-*-solaris*)
3768        coin_opt_fflags="-O4"
3769        coin_dbg_fflags="-g"
3770        ;;
3771      *-sgi-*)
3772        coin_opt_fflags="-O5 -OPT:Olimit=0"
3773        coin_dbg_fflags="-g"
3774        ;;
3775    esac
3776  fi
3777
3778  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3779    coin_dbg_fflags="-g"
3780  fi
3781
3782  if test -z "$coin_opt_fflags"; then
3783    # Try if -O option works if nothing else is set
3784    FFLAGS=-O
3785    cat >conftest.$ac_ext <<_ACEOF
3786      program main
3787      integer i
3788      end
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
3791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792  (eval $ac_link) 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } &&
3799         { ac_try='test -z "$ac_f77_werror_flag"
3800                         || test ! -s conftest.err'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; } &&
3806         { ac_try='test -s conftest$ac_exeext'
3807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808  (eval $ac_try) 2>&5
3809  ac_status=$?
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); }; }; then
3812  coin_opt_fflags="-O"
3813else
3814  echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817fi
3818rm -f conftest.err conftest.$ac_objext \
3819      conftest$ac_exeext conftest.$ac_ext
3820  fi
3821
3822  # if PM doesn't want the warning messages, take them out
3823  if test x"$coin_skip_warn_fflags" = xyes; then
3824    coin_warn_fflags=
3825  fi
3826
3827  if test x${DBG_FFLAGS+set} != xset; then
3828    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3829  fi
3830  if test x${OPT_FFLAGS+set} != xset; then
3831    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3832  fi
3833
3834  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3835  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3836
3837  if test "$coin_debug_compile" = "true"; then
3838    FFLAGS="$DBG_FFLAGS"
3839  else
3840    FFLAGS="$OPT_FFLAGS"
3841  fi
3842
3843else
3844  FFLAGS="$FFLAGS $ADD_FFLAGS"
3845  if test x${DBG_FFLAGS+set} != xset; then
3846    DBG_FFLAGS="$FFLAGS"
3847  fi
3848  if test x${OPT_FFLAGS+set} != xset; then
3849    OPT_FFLAGS="$FFLAGS"
3850  fi
3851fi
3852
3853# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3854case "$FFLAGS" in
3855  *-mno-cygwin*)
3856    if test x${CPPFLAGS+set} != xset ; then
3857      CPPFLAGS="-mno-cygwin"
3858    else
3859      case "$CPPFLAGS" in
3860        *-mno-cygwin*)
3861          ;;
3862        *)
3863          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3864          ;;
3865      esac
3866    fi ;;
3867esac
3868
3869# Try if FFLAGS works
3870if test "$F77" != "unavailable" ; then
3871  cat >conftest.$ac_ext <<_ACEOF
3872      program main
3873      integer i
3874      end
3875_ACEOF
3876rm -f conftest.$ac_objext conftest$ac_exeext
3877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3878  (eval $ac_link) 2>conftest.er1
3879  ac_status=$?
3880  grep -v '^ *+' conftest.er1 >conftest.err
3881  rm -f conftest.er1
3882  cat conftest.err >&5
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); } &&
3885         { ac_try='test -z "$ac_f77_werror_flag"
3886                         || test ! -s conftest.err'
3887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888  (eval $ac_try) 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; } &&
3892         { ac_try='test -s conftest$ac_exeext'
3893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894  (eval $ac_try) 2>&5
3895  ac_status=$?
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); }; }; then
3898  :
3899else
3900  echo "$as_me: failed program was:" >&5
3901sed 's/^/| /' conftest.$ac_ext >&5
3902
3903FFLAGS=
3904fi
3905rm -f conftest.err conftest.$ac_objext \
3906      conftest$ac_exeext conftest.$ac_ext
3907  if test -z "$FFLAGS"; then
3908    { 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
3909echo "$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;}
3910    FFLAGS='-O'
3911    cat >conftest.$ac_ext <<_ACEOF
3912      program main
3913      integer i
3914      end
3915_ACEOF
3916rm -f conftest.$ac_objext conftest$ac_exeext
3917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918  (eval $ac_link) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } &&
3925         { ac_try='test -z "$ac_f77_werror_flag"
3926                         || test ! -s conftest.err'
3927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928  (eval $ac_try) 2>&5
3929  ac_status=$?
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); }; } &&
3932         { ac_try='test -s conftest$ac_exeext'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; }; then
3938  :
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943FFLAGS=
3944fi
3945rm -f conftest.err conftest.$ac_objext \
3946      conftest$ac_exeext conftest.$ac_ext
3947    if test -z "$FFLAGS"; then
3948      { 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
3949echo "$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;}
3950    fi
3951  fi
3952fi
3953
3954{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3955echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3956
3957
3958if test x"$MPIF77" = x; then :; else
3959  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3960echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3961  F77="$MPIF77"
3962fi
3963
3964# correct the LD variable if we use the intel fortran compiler in windows
3965case "$F77" in
3966  ifort* | */ifort* | IFORT* | */IFORT*)
3967
3968 case $build in
3969  *-mingw*)
3970    if test "${LD+set}" = set; then :; else
3971      LD=link
3972    fi
3973    ;;
3974 esac
3975 if test $enable_msvc = yes ; then
3976   if test "x${LD+set}" = xset; then :; else
3977     LD=link
3978   fi
3979 fi
3980
3981    ;;
3982esac
3983
3984# check whether to add flag for static linking against standard libraries to LDFLAGS
3985if test x$use_static_standardlibs != xno ; then
3986  case $build in
3987    *-mingw*)
3988      static_standardlib_flag=-static
3989      ;;
3990    *)
3991      static_standardlib_flag=-static-libgfortran
3992      ;;
3993  esac
3994  case " $LDFLAGS " in
3995    *" $static_standardlib_flag "* ) ;;
3996    *)
3997    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3998echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3999    coin_save_LDFLAGS="$LDFLAGS"
4000    LDFLAGS="$LDFLAGS $static_standardlib_flag"
4001    cat >conftest.$ac_ext <<_ACEOF
4002      program main
4003      integer i
4004      end
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_f77_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  echo "$as_me:$LINENO: result: yes" >&5
4029echo "${ECHO_T}yes" >&6
4030else
4031  echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034echo "$as_me:$LINENO: result: no" >&5
4035echo "${ECHO_T}no" >&6
4036       LDFLAGS="$coin_save_LDFLAGS"
4037       if test $use_static_standardlibs = yes ; then
4038         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
4039echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
4040   { (exit 1); exit 1; }; }
4041       fi
4042
4043fi
4044rm -f conftest.err conftest.$ac_objext \
4045      conftest$ac_exeext conftest.$ac_ext
4046    ;;
4047  esac
4048fi
4049
4050ac_ext=c
4051ac_cpp='$CPP $CPPFLAGS'
4052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055
4056
4057
4058# Get the linker flags (FLIBS) that are required for linking against this blas library
4059
4060# get FLIBS
4061ac_ext=f
4062ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4063ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4065echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4066echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4067if test "${ac_cv_prog_f77_v+set}" = set; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  cat >conftest.$ac_ext <<_ACEOF
4071      program main
4072
4073      end
4074_ACEOF
4075rm -f conftest.$ac_objext
4076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077  (eval $ac_compile) 2>conftest.er1
4078  ac_status=$?
4079  grep -v '^ *+' conftest.er1 >conftest.err
4080  rm -f conftest.er1
4081  cat conftest.err >&5
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); } &&
4084         { ac_try='test -z "$ac_f77_werror_flag"
4085                         || test ! -s conftest.err'
4086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087  (eval $ac_try) 2>&5
4088  ac_status=$?
4089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090  (exit $ac_status); }; } &&
4091         { ac_try='test -s conftest.$ac_objext'
4092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093  (eval $ac_try) 2>&5
4094  ac_status=$?
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); }; }; then
4097  ac_cv_prog_f77_v=
4098# Try some options frequently used verbose output
4099for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4100  cat >conftest.$ac_ext <<_ACEOF
4101      program main
4102
4103      end
4104_ACEOF
4105
4106# Compile and link our simple test program by passing a flag (argument
4107# 1 to this macro) to the Fortran compiler in order to get
4108# "verbose" output that we can then parse for the Fortran linker
4109# flags.
4110ac_save_FFLAGS=$FFLAGS
4111FFLAGS="$FFLAGS $ac_verb"
4112(eval echo $as_me:4112: \"$ac_link\") >&5
4113ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4114echo "$ac_f77_v_output" >&5
4115FFLAGS=$ac_save_FFLAGS
4116
4117rm -f conftest*
4118
4119# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4120# /foo, /bar, and /baz are search directories for the Fortran linker.
4121# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4122ac_f77_v_output="`echo $ac_f77_v_output |
4123        grep 'LPATH is:' |
4124        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4125
4126case $ac_f77_v_output in
4127  # If we are using xlf then replace all the commas with spaces.
4128  *xlfentry*)
4129    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4130
4131  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4132  # $LIBS confuse us, and the libraries appear later in the output anyway).
4133  *mGLOB_options_string*)
4134    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4135
4136  # If we are using Cray Fortran then delete quotes.
4137  # Use "\"" instead of '"' for font-lock-mode.
4138  # FIXME: a more general fix for quoted arguments with spaces?
4139  *cft90*)
4140    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4141esac
4142
4143
4144  # look for -l* and *.a constructs in the output
4145  for ac_arg in $ac_f77_v_output; do
4146     case $ac_arg in
4147        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4148          ac_cv_prog_f77_v=$ac_verb
4149          break 2 ;;
4150     esac
4151  done
4152done
4153if test -z "$ac_cv_prog_f77_v"; then
4154   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4155echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4156fi
4157else
4158  echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
4161{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4162echo "$as_me: WARNING: compilation failed" >&2;}
4163fi
4164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4165
4166fi
4167echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4168echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4169echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4170echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4171if test "${ac_cv_f77_libs+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  if test "x$FLIBS" != "x"; then
4175  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4176else
4177
4178cat >conftest.$ac_ext <<_ACEOF
4179      program main
4180
4181      end
4182_ACEOF
4183
4184# Compile and link our simple test program by passing a flag (argument
4185# 1 to this macro) to the Fortran compiler in order to get
4186# "verbose" output that we can then parse for the Fortran linker
4187# flags.
4188ac_save_FFLAGS=$FFLAGS
4189FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4190(eval echo $as_me:4190: \"$ac_link\") >&5
4191ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4192echo "$ac_f77_v_output" >&5
4193FFLAGS=$ac_save_FFLAGS
4194
4195rm -f conftest*
4196
4197# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4198# /foo, /bar, and /baz are search directories for the Fortran linker.
4199# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4200ac_f77_v_output="`echo $ac_f77_v_output |
4201        grep 'LPATH is:' |
4202        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4203
4204case $ac_f77_v_output in
4205  # If we are using xlf then replace all the commas with spaces.
4206  *xlfentry*)
4207    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4208
4209  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4210  # $LIBS confuse us, and the libraries appear later in the output anyway).
4211  *mGLOB_options_string*)
4212    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4213
4214  # If we are using Cray Fortran then delete quotes.
4215  # Use "\"" instead of '"' for font-lock-mode.
4216  # FIXME: a more general fix for quoted arguments with spaces?
4217  *cft90*)
4218    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4219esac
4220
4221
4222
4223ac_cv_f77_libs=
4224
4225# Save positional arguments (if any)
4226ac_save_positional="$@"
4227
4228set X $ac_f77_v_output
4229while test $# != 1; do
4230  shift
4231  ac_arg=$1
4232  case $ac_arg in
4233        [\\/]*.a | ?:[\\/]*.a)
4234            ac_exists=false
4235  for ac_i in $ac_cv_f77_libs; do
4236    if test x"$ac_arg" = x"$ac_i"; then
4237      ac_exists=true
4238      break
4239    fi
4240  done
4241
4242  if test x"$ac_exists" = xtrue; then
4243  :
4244else
4245  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4246fi
4247
4248          ;;
4249        -bI:*)
4250            ac_exists=false
4251  for ac_i in $ac_cv_f77_libs; do
4252    if test x"$ac_arg" = x"$ac_i"; then
4253      ac_exists=true
4254      break
4255    fi
4256  done
4257
4258  if test x"$ac_exists" = xtrue; then
4259  :
4260else
4261  if test "$ac_compiler_gnu" = yes; then
4262  for ac_link_opt in $ac_arg; do
4263    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4264  done
4265else
4266  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4267fi
4268fi
4269
4270          ;;
4271          # Ignore these flags.
4272        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4273          ;;
4274        -lkernel32)
4275          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4276          ;;
4277        -[LRuY])
4278          # These flags, when seen by themselves, take an argument.
4279          # We remove the space between option and argument and re-iterate
4280          # unless we find an empty arg or a new option (starting with -)
4281          case $2 in
4282             "" | -*);;
4283             *)
4284                ac_arg="$ac_arg$2"
4285                shift; shift
4286                set X $ac_arg "$@"
4287                ;;
4288          esac
4289          ;;
4290        -YP,*)
4291          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4292              ac_exists=false
4293  for ac_i in $ac_cv_f77_libs; do
4294    if test x"$ac_j" = x"$ac_i"; then
4295      ac_exists=true
4296      break
4297    fi
4298  done
4299
4300  if test x"$ac_exists" = xtrue; then
4301  :
4302else
4303  ac_arg="$ac_arg $ac_j"
4304                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4305fi
4306
4307          done
4308          ;;
4309        -[lLR]*)
4310            ac_exists=false
4311  for ac_i in $ac_cv_f77_libs; do
4312    if test x"$ac_arg" = x"$ac_i"; then
4313      ac_exists=true
4314      break
4315    fi
4316  done
4317
4318  if test x"$ac_exists" = xtrue; then
4319  :
4320else
4321  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4322fi
4323
4324          ;;
4325          # Ignore everything else.
4326  esac
4327done
4328# restore positional arguments
4329set X $ac_save_positional; shift
4330
4331# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4332# then we insist that the "run path" must be an absolute path (i.e. it
4333# must begin with a "/").
4334case `(uname -sr) 2>/dev/null` in
4335   "SunOS 5"*)
4336      ac_ld_run_path=`echo $ac_f77_v_output |
4337                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4338      test "x$ac_ld_run_path" != x &&
4339        if test "$ac_compiler_gnu" = yes; then
4340  for ac_link_opt in $ac_ld_run_path; do
4341    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4342  done
4343else
4344  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4345fi
4346      ;;
4347esac
4348fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4349
4350fi
4351echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4352echo "${ECHO_T}$ac_cv_f77_libs" >&6
4353FLIBS="$ac_cv_f77_libs"
4354
4355
4356ac_ext=c
4357ac_cpp='$CPP $CPPFLAGS'
4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362orig_FLIBS="$FLIBS"
4363
4364# If FLIBS has been set by the user, we just restore its value here
4365if test x"$save_FLIBS" != x; then
4366  FLIBS="$save_FLIBS"
4367else
4368  # This is to correct a missing exclusion in autoconf 2.59
4369  if test x"$FLIBS" != x; then
4370    my_flibs=
4371    for flag in $FLIBS; do
4372      case $flag in
4373        -lcrt*.o) ;;
4374        -lcygwin) ;;
4375               *) my_flibs="$my_flibs $flag" ;;
4376      esac
4377    done
4378    FLIBS="$my_flibs"
4379  fi
4380
4381  case $build in
4382  # The following is a fix to define FLIBS for ifort on Windows
4383  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4384  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4385  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4386  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4387  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4388     *-cygwin* | *-mingw*)
4389       case "$F77" in
4390#         ifort* | */ifort* | IFORT* | */IFORT*)
4391#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4392#           if "$coin_debug_compile" = true ; then
4393#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4394#           else
4395#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4396#           fi
4397#           ;;
4398         compile_f2c*)
4399           FLIBS=`$F77 -FLIBS` ;;
4400       esac;;
4401     *-hp-*)
4402         FLIBS="$FLIBS -lm";;
4403     *-ibm-*)
4404         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4405     *-linux-*)
4406       case "$F77" in
4407         pgf77* | */pgf77* | pgf90* | */pgf90*)
4408# ask linker to go through the archives multiple times
4409# (the Fortran compiler seems to do that automatically...)
4410           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4411       esac
4412  esac
4413  ac_cv_f77_libs="$FLIBS"
4414fi
4415
4416if test "x$orig_FLIBS" != "x$FLIBS" ; then
4417  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4418echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4419fi
4420
4421ac_ext=f
4422ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4423ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4425
4426echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4427echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4428if test "${ac_cv_f77_dummy_main+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431  ac_f77_dm_save_LIBS=$LIBS
4432 LIBS="$LIBS $FLIBS"
4433 ac_fortran_dm_var=F77_DUMMY_MAIN
4434 ac_ext=c
4435ac_cpp='$CPP $CPPFLAGS'
4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439
4440 # First, try linking without a dummy main:
4441 cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h.  */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h.  */
4447
4448#ifdef F77_DUMMY_MAIN
4449
4450#  ifdef __cplusplus
4451     extern "C"
4452#  endif
4453   int F77_DUMMY_MAIN() { return 1; }
4454
4455#endif
4456int
4457main ()
4458{
4459
4460  ;
4461  return 0;
4462}
4463_ACEOF
4464rm -f conftest.$ac_objext conftest$ac_exeext
4465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4466  (eval $ac_link) 2>conftest.er1
4467  ac_status=$?
4468  grep -v '^ *+' conftest.er1 >conftest.err
4469  rm -f conftest.er1
4470  cat conftest.err >&5
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); } &&
4473         { ac_try='test -z "$ac_c_werror_flag"
4474                         || test ! -s conftest.err'
4475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476  (eval $ac_try) 2>&5
4477  ac_status=$?
4478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479  (exit $ac_status); }; } &&
4480         { ac_try='test -s conftest$ac_exeext'
4481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482  (eval $ac_try) 2>&5
4483  ac_status=$?
4484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485  (exit $ac_status); }; }; then
4486  ac_cv_fortran_dummy_main=none
4487else
4488  echo "$as_me: failed program was:" >&5
4489sed 's/^/| /' conftest.$ac_ext >&5
4490
4491ac_cv_fortran_dummy_main=unknown
4492fi
4493rm -f conftest.err conftest.$ac_objext \
4494      conftest$ac_exeext conftest.$ac_ext
4495
4496 if test $ac_cv_fortran_dummy_main = unknown; then
4497   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4498     cat >conftest.$ac_ext <<_ACEOF
4499/* confdefs.h.  */
4500_ACEOF
4501cat confdefs.h >>conftest.$ac_ext
4502cat >>conftest.$ac_ext <<_ACEOF
4503/* end confdefs.h.  */
4504#define $ac_fortran_dm_var $ac_func
4505#ifdef F77_DUMMY_MAIN
4506
4507#  ifdef __cplusplus
4508     extern "C"
4509#  endif
4510   int F77_DUMMY_MAIN() { return 1; }
4511
4512#endif
4513int
4514main ()
4515{
4516
4517  ;
4518  return 0;
4519}
4520_ACEOF
4521rm -f conftest.$ac_objext conftest$ac_exeext
4522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4523  (eval $ac_link) 2>conftest.er1
4524  ac_status=$?
4525  grep -v '^ *+' conftest.er1 >conftest.err
4526  rm -f conftest.er1
4527  cat conftest.err >&5
4528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529  (exit $ac_status); } &&
4530         { ac_try='test -z "$ac_c_werror_flag"
4531                         || test ! -s conftest.err'
4532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533  (eval $ac_try) 2>&5
4534  ac_status=$?
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); }; } &&
4537         { ac_try='test -s conftest$ac_exeext'
4538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539  (eval $ac_try) 2>&5
4540  ac_status=$?
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); }; }; then
4543  ac_cv_fortran_dummy_main=$ac_func; break
4544else
4545  echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
4548fi
4549rm -f conftest.err conftest.$ac_objext \
4550      conftest$ac_exeext conftest.$ac_ext
4551   done
4552 fi
4553 ac_ext=f
4554ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4555ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4557 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4558 rm -f conftest*
4559 LIBS=$ac_f77_dm_save_LIBS
4560
4561fi
4562echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4563echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4564F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4565if test "$F77_DUMMY_MAIN" != unknown; then
4566  if test $F77_DUMMY_MAIN != none; then
4567
4568cat >>confdefs.h <<_ACEOF
4569#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4570_ACEOF
4571
4572  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4573
4574cat >>confdefs.h <<\_ACEOF
4575#define FC_DUMMY_MAIN_EQ_F77 1
4576_ACEOF
4577
4578  fi
4579fi
4580else
4581  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4582See \`config.log' for more details." >&5
4583echo "$as_me: error: linking to Fortran libraries from C fails
4584See \`config.log' for more details." >&2;}
4585   { (exit 1); exit 1; }; }
4586fi
4587
4588
4589ac_ext=f
4590ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4591ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4593
4594ac_ext=f
4595ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4596ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4598echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4599echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4600if test "${ac_cv_f77_mangling+set}" = set; then
4601  echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603  cat >conftest.$ac_ext <<_ACEOF
4604      subroutine foobar()
4605      return
4606      end
4607      subroutine foo_bar()
4608      return
4609      end
4610_ACEOF
4611rm -f conftest.$ac_objext
4612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4613  (eval $ac_compile) 2>conftest.er1
4614  ac_status=$?
4615  grep -v '^ *+' conftest.er1 >conftest.err
4616  rm -f conftest.er1
4617  cat conftest.err >&5
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); } &&
4620         { ac_try='test -z "$ac_f77_werror_flag"
4621                         || test ! -s conftest.err'
4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623  (eval $ac_try) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }; } &&
4627         { ac_try='test -s conftest.$ac_objext'
4628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629  (eval $ac_try) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }; }; then
4633  mv conftest.$ac_objext cfortran_test.$ac_objext
4634
4635  ac_save_LIBS=$LIBS
4636  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4637
4638  ac_ext=c
4639ac_cpp='$CPP $CPPFLAGS'
4640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643  ac_success=no
4644  for ac_foobar in foobar FOOBAR; do
4645    for ac_underscore in "" "_"; do
4646      ac_func="$ac_foobar$ac_underscore"
4647      cat >conftest.$ac_ext <<_ACEOF
4648/* confdefs.h.  */
4649_ACEOF
4650cat confdefs.h >>conftest.$ac_ext
4651cat >>conftest.$ac_ext <<_ACEOF
4652/* end confdefs.h.  */
4653
4654/* Override any gcc2 internal prototype to avoid an error.  */
4655#ifdef __cplusplus
4656extern "C"
4657#endif
4658/* We use char because int might match the return type of a gcc2
4659   builtin and then its argument prototype would still apply.  */
4660char $ac_func ();
4661#ifdef F77_DUMMY_MAIN
4662
4663#  ifdef __cplusplus
4664     extern "C"
4665#  endif
4666   int F77_DUMMY_MAIN() { return 1; }
4667
4668#endif
4669int
4670main ()
4671{
4672$ac_func ();
4673  ;
4674  return 0;
4675}
4676_ACEOF
4677rm -f conftest.$ac_objext conftest$ac_exeext
4678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4679  (eval $ac_link) 2>conftest.er1
4680  ac_status=$?
4681  grep -v '^ *+' conftest.er1 >conftest.err
4682  rm -f conftest.er1
4683  cat conftest.err >&5
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); } &&
4686         { ac_try='test -z "$ac_c_werror_flag"
4687                         || test ! -s conftest.err'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; } &&
4693         { ac_try='test -s conftest$ac_exeext'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; }; then
4699  ac_success=yes; break 2
4700else
4701  echo "$as_me: failed program was:" >&5
4702sed 's/^/| /' conftest.$ac_ext >&5
4703
4704fi
4705rm -f conftest.err conftest.$ac_objext \
4706      conftest$ac_exeext conftest.$ac_ext
4707    done
4708  done
4709  ac_ext=f
4710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4713
4714  if test "$ac_success" = "yes"; then
4715     case $ac_foobar in
4716        foobar)
4717           ac_case=lower
4718           ac_foo_bar=foo_bar
4719           ;;
4720        FOOBAR)
4721           ac_case=upper
4722           ac_foo_bar=FOO_BAR
4723           ;;
4724     esac
4725
4726     ac_ext=c
4727ac_cpp='$CPP $CPPFLAGS'
4728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731     ac_success_extra=no
4732     for ac_extra in "" "_"; do
4733        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4734        cat >conftest.$ac_ext <<_ACEOF
4735/* confdefs.h.  */
4736_ACEOF
4737cat confdefs.h >>conftest.$ac_ext
4738cat >>conftest.$ac_ext <<_ACEOF
4739/* end confdefs.h.  */
4740
4741/* Override any gcc2 internal prototype to avoid an error.  */
4742#ifdef __cplusplus
4743extern "C"
4744#endif
4745/* We use char because int might match the return type of a gcc2
4746   builtin and then its argument prototype would still apply.  */
4747char $ac_func ();
4748#ifdef F77_DUMMY_MAIN
4749
4750#  ifdef __cplusplus
4751     extern "C"
4752#  endif
4753   int F77_DUMMY_MAIN() { return 1; }
4754
4755#endif
4756int
4757main ()
4758{
4759$ac_func ();
4760  ;
4761  return 0;
4762}
4763_ACEOF
4764rm -f conftest.$ac_objext conftest$ac_exeext
4765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766  (eval $ac_link) 2>conftest.er1
4767  ac_status=$?
4768  grep -v '^ *+' conftest.er1 >conftest.err
4769  rm -f conftest.er1
4770  cat conftest.err >&5
4771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); } &&
4773         { ac_try='test -z "$ac_c_werror_flag"
4774                         || test ! -s conftest.err'
4775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776  (eval $ac_try) 2>&5
4777  ac_status=$?
4778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779  (exit $ac_status); }; } &&
4780         { ac_try='test -s conftest$ac_exeext'
4781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782  (eval $ac_try) 2>&5
4783  ac_status=$?
4784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785  (exit $ac_status); }; }; then
4786  ac_success_extra=yes; break
4787else
4788  echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791fi
4792rm -f conftest.err conftest.$ac_objext \
4793      conftest$ac_exeext conftest.$ac_ext
4794     done
4795     ac_ext=f
4796ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4797ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4799
4800     if test "$ac_success_extra" = "yes"; then
4801        ac_cv_f77_mangling="$ac_case case"
4802        if test -z "$ac_underscore"; then
4803           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4804        else
4805           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4806        fi
4807        if test -z "$ac_extra"; then
4808           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4809        else
4810           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4811        fi
4812      else
4813        ac_cv_f77_mangling="unknown"
4814      fi
4815  else
4816     ac_cv_f77_mangling="unknown"
4817  fi
4818
4819  LIBS=$ac_save_LIBS
4820  rm -f cfortran_test* conftest*
4821else
4822  echo "$as_me: failed program was:" >&5
4823sed 's/^/| /' conftest.$ac_ext >&5
4824
4825{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4826See \`config.log' for more details." >&5
4827echo "$as_me: error: cannot compile a simple Fortran program
4828See \`config.log' for more details." >&2;}
4829   { (exit 1); exit 1; }; }
4830fi
4831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832
4833fi
4834echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4835echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4836
4837ac_ext=f
4838ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4839ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4841
4842
4843ac_ext=f
4844ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4845ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4847
4848ac_ext=f
4849ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4850ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4852
4853
4854case $ac_cv_f77_mangling in
4855  "lower case, no underscore, no extra underscore")
4856          cat >>confdefs.h <<\_ACEOF
4857#define F77_FUNC(name,NAME) name
4858_ACEOF
4859
4860          cat >>confdefs.h <<\_ACEOF
4861#define F77_FUNC_(name,NAME) name
4862_ACEOF
4863 ;;
4864  "lower case, no underscore, extra underscore")
4865          cat >>confdefs.h <<\_ACEOF
4866#define F77_FUNC(name,NAME) name
4867_ACEOF
4868
4869          cat >>confdefs.h <<\_ACEOF
4870#define F77_FUNC_(name,NAME) name ## _
4871_ACEOF
4872 ;;
4873  "lower case, underscore, no extra underscore")
4874          cat >>confdefs.h <<\_ACEOF
4875#define F77_FUNC(name,NAME) name ## _
4876_ACEOF
4877
4878          cat >>confdefs.h <<\_ACEOF
4879#define F77_FUNC_(name,NAME) name ## _
4880_ACEOF
4881 ;;
4882  "lower case, underscore, extra underscore")
4883          cat >>confdefs.h <<\_ACEOF
4884#define F77_FUNC(name,NAME) name ## _
4885_ACEOF
4886
4887          cat >>confdefs.h <<\_ACEOF
4888#define F77_FUNC_(name,NAME) name ## __
4889_ACEOF
4890 ;;
4891  "upper case, no underscore, no extra underscore")
4892          cat >>confdefs.h <<\_ACEOF
4893#define F77_FUNC(name,NAME) NAME
4894_ACEOF
4895
4896          cat >>confdefs.h <<\_ACEOF
4897#define F77_FUNC_(name,NAME) NAME
4898_ACEOF
4899 ;;
4900  "upper case, no underscore, extra underscore")
4901          cat >>confdefs.h <<\_ACEOF
4902#define F77_FUNC(name,NAME) NAME
4903_ACEOF
4904
4905          cat >>confdefs.h <<\_ACEOF
4906#define F77_FUNC_(name,NAME) NAME ## _
4907_ACEOF
4908 ;;
4909  "upper case, underscore, no extra underscore")
4910          cat >>confdefs.h <<\_ACEOF
4911#define F77_FUNC(name,NAME) NAME ## _
4912_ACEOF
4913
4914          cat >>confdefs.h <<\_ACEOF
4915#define F77_FUNC_(name,NAME) NAME ## _
4916_ACEOF
4917 ;;
4918  "upper case, underscore, extra underscore")
4919          cat >>confdefs.h <<\_ACEOF
4920#define F77_FUNC(name,NAME) NAME ## _
4921_ACEOF
4922
4923          cat >>confdefs.h <<\_ACEOF
4924#define F77_FUNC_(name,NAME) NAME ## __
4925_ACEOF
4926 ;;
4927  *)
4928          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4929echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4930          ;;
4931esac
4932
4933ac_ext=f
4934ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4935ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4937
4938ac_ext=c
4939ac_cpp='$CPP $CPPFLAGS'
4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944
4945
4946
4947# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4948FILTERSQP_PCLIBS="$FLIBS"
4949
4950
4951# Check if pkg-config is available (to setup addlibs file)
4952
4953
4954# Check whether --enable-pkg-config or --disable-pkg-config was given.
4955if test "${enable_pkg_config+set}" = set; then
4956  enableval="$enable_pkg_config"
4957  use_pkgconfig="$enableval"
4958else
4959  if test x$coin_cc_is_cl = xtrue; then
4960     use_pkgconfig=no
4961   else
4962     use_pkgconfig=yes
4963   fi
4964fi;
4965
4966if test $use_pkgconfig = yes ; then
4967  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4968    if test -n "$ac_tool_prefix"; then
4969  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4970set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4971echo "$as_me:$LINENO: checking for $ac_word" >&5
4972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4973if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4974  echo $ECHO_N "(cached) $ECHO_C" >&6
4975else
4976  if test -n "$PKG_CONFIG"; then
4977  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982  IFS=$as_save_IFS
4983  test -z "$as_dir" && as_dir=.
4984  for ac_exec_ext in '' $ac_executable_extensions; do
4985  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4987    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988    break 2
4989  fi
4990done
4991done
4992
4993fi
4994fi
4995PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4996if test -n "$PKG_CONFIG"; then
4997  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4998echo "${ECHO_T}$PKG_CONFIG" >&6
4999else
5000  echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002fi
5003
5004fi
5005if test -z "$ac_cv_prog_PKG_CONFIG"; then
5006  ac_ct_PKG_CONFIG=$PKG_CONFIG
5007  # Extract the first word of "pkg-config", so it can be a program name with args.
5008set dummy pkg-config; ac_word=$2
5009echo "$as_me:$LINENO: checking for $ac_word" >&5
5010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5011if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
5012  echo $ECHO_N "(cached) $ECHO_C" >&6
5013else
5014  if test -n "$ac_ct_PKG_CONFIG"; then
5015  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022  for ac_exec_ext in '' $ac_executable_extensions; do
5023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
5025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026    break 2
5027  fi
5028done
5029done
5030
5031fi
5032fi
5033ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
5034if test -n "$ac_ct_PKG_CONFIG"; then
5035  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
5036echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
5037else
5038  echo "$as_me:$LINENO: result: no" >&5
5039echo "${ECHO_T}no" >&6
5040fi
5041
5042  PKG_CONFIG=$ac_ct_PKG_CONFIG
5043else
5044  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5045fi
5046
5047  fi
5048  if test -n "$PKG_CONFIG"; then
5049    _pkg_min_version=0.16.0
5050    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5051echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
5052    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5053      echo "$as_me:$LINENO: result: yes" >&5
5054echo "${ECHO_T}yes" >&6
5055    else
5056      echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058      PKG_CONFIG=""
5059    fi
5060  fi
5061
5062  # check if pkg-config supports the short-errors flag
5063  if test -n "$PKG_CONFIG" && \
5064    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5065    pkg_short_errors=" --short-errors "
5066  else
5067    pkg_short_errors=""
5068  fi
5069fi
5070
5071
5072
5073if test -n "$PKG_CONFIG"; then
5074  COIN_HAS_PKGCONFIG_TRUE=
5075  COIN_HAS_PKGCONFIG_FALSE='#'
5076else
5077  COIN_HAS_PKGCONFIG_TRUE='#'
5078  COIN_HAS_PKGCONFIG_FALSE=
5079fi
5080
5081
5082
5083# assemble pkg-config search path for installed projects
5084COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
5085
5086# 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
5087# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
5088# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
5089if test "x${prefix}" = xNONE ; then
5090  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5091else
5092  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5093fi
5094
5095
5096# Check whether --with-coin-instdir or --without-coin-instdir was given.
5097if test "${with_coin_instdir+set}" = set; then
5098  withval="$with_coin_instdir"
5099  if test -d "$withval"; then : ; else
5100     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
5101echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
5102   { (exit 1); exit 1; }; }
5103   fi
5104   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5105
5106fi;
5107
5108
5109
5110# assemble additional pkg-config search paths for uninstalled projects
5111if test x$coin_projectdir = xyes ; then
5112  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
5113  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
5114  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
5115  # 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)
5116  COIN_PKG_CONFIG_PATH_UNINSTALLED=
5117  if test -e ../coin_subdirs.txt ; then
5118    for i in `cat ../coin_subdirs.txt` ; do
5119      if test -d ../$i ; then
5120        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5121      fi
5122      if test -d ../$i/pkgconfig ; then
5123        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5124      fi
5125    done
5126  fi
5127
5128  if test -e ../../coin_subdirs.txt ; then
5129    for i in `cat ../../coin_subdirs.txt` ; do
5130      if test -d ../../$i ; then
5131        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5132      fi
5133      if test -d ../../$i/pkgconfig ; then
5134        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5135      fi
5136    done
5137  fi
5138
5139
5140fi
5141
5142if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5143  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
5144echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
5145fi
5146
5147
5148
5149# Initialize automake
5150echo "$as_me:$LINENO: checking for egrep" >&5
5151echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5152if test "${ac_cv_prog_egrep+set}" = set; then
5153  echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5156    then ac_cv_prog_egrep='grep -E'
5157    else ac_cv_prog_egrep='egrep'
5158    fi
5159fi
5160echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5161echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5162 EGREP=$ac_cv_prog_egrep
5163
5164
5165echo "$as_me:$LINENO: checking whether ln -s works" >&5
5166echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5167LN_S=$as_ln_s
5168if test "$LN_S" = "ln -s"; then
5169  echo "$as_me:$LINENO: result: yes" >&5
5170echo "${ECHO_T}yes" >&6
5171else
5172  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5173echo "${ECHO_T}no, using $LN_S" >&6
5174fi
5175
5176am__api_version="1.9"
5177# Find a good install program.  We prefer a C program (faster),
5178# so one script is as good as another.  But avoid the broken or
5179# incompatible versions:
5180# SysV /etc/install, /usr/sbin/install
5181# SunOS /usr/etc/install
5182# IRIX /sbin/install
5183# AIX /bin/install
5184# AmigaOS /C/install, which installs bootblocks on floppy discs
5185# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5186# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5187# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5188# OS/2's system install, which has a completely different semantic
5189# ./install, which can be erroneously created by make from ./install.sh.
5190echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5191echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5192if test -z "$INSTALL"; then
5193if test "${ac_cv_path_install+set}" = set; then
5194  echo $ECHO_N "(cached) $ECHO_C" >&6
5195else
5196  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199  IFS=$as_save_IFS
5200  test -z "$as_dir" && as_dir=.
5201  # Account for people who put trailing slashes in PATH elements.
5202case $as_dir/ in
5203  ./ | .// | /cC/* | \
5204  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5205  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5206  /usr/ucb/* ) ;;
5207  *)
5208    # OSF1 and SCO ODT 3.0 have their own names for install.
5209    # Don't use installbsd from OSF since it installs stuff as root
5210    # by default.
5211    for ac_prog in ginstall scoinst install; do
5212      for ac_exec_ext in '' $ac_executable_extensions; do
5213        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5214          if test $ac_prog = install &&
5215            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5216            # AIX install.  It has an incompatible calling convention.
5217            :
5218          elif test $ac_prog = install &&
5219            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5220            # program-specific install script used by HP pwplus--don't use.
5221            :
5222          else
5223            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5224            break 3
5225          fi
5226        fi
5227      done
5228    done
5229    ;;
5230esac
5231done
5232
5233
5234fi
5235  if test "${ac_cv_path_install+set}" = set; then
5236    INSTALL=$ac_cv_path_install
5237  else
5238    # As a last resort, use the slow shell script.  We don't cache a
5239    # path for INSTALL within a source directory, because that will
5240    # break other packages using the cache if that directory is
5241    # removed, or if the path is relative.
5242    INSTALL=$ac_install_sh
5243  fi
5244fi
5245echo "$as_me:$LINENO: result: $INSTALL" >&5
5246echo "${ECHO_T}$INSTALL" >&6
5247
5248# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5249# It thinks the first close brace ends the variable substitution.
5250test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5251
5252test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5253
5254test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5255
5256echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5257echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5258# Just in case
5259sleep 1
5260echo timestamp > conftest.file
5261# Do `set' in a subshell so we don't clobber the current shell's
5262# arguments.  Must try -L first in case configure is actually a
5263# symlink; some systems play weird games with the mod time of symlinks
5264# (eg FreeBSD returns the mod time of the symlink's containing
5265# directory).
5266if (
5267   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5268   if test "$*" = "X"; then
5269      # -L didn't work.
5270      set X `ls -t $srcdir/configure conftest.file`
5271   fi
5272   rm -f conftest.file
5273   if test "$*" != "X $srcdir/configure conftest.file" \
5274      && test "$*" != "X conftest.file $srcdir/configure"; then
5275
5276      # If neither matched, then we have a broken ls.  This can happen
5277      # if, for instance, CONFIG_SHELL is bash and it inherits a
5278      # broken ls alias from the environment.  This has actually
5279      # happened.  Such a system could not be considered "sane".
5280      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5281alias in your environment" >&5
5282echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5283alias in your environment" >&2;}
5284   { (exit 1); exit 1; }; }
5285   fi
5286
5287   test "$2" = conftest.file
5288   )
5289then
5290   # Ok.
5291   :
5292else
5293   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5294Check your system clock" >&5
5295echo "$as_me: error: newly created file is older than distributed files!
5296Check your system clock" >&2;}
5297   { (exit 1); exit 1; }; }
5298fi
5299echo "$as_me:$LINENO: result: yes" >&5
5300echo "${ECHO_T}yes" >&6
5301test "$program_prefix" != NONE &&
5302  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5303# Use a double $ so make ignores it.
5304test "$program_suffix" != NONE &&
5305  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5306# Double any \ or $.  echo might interpret backslashes.
5307# By default was `s,x,x', remove it if useless.
5308cat <<\_ACEOF >conftest.sed
5309s/[\\$]/&&/g;s/;s,x,x,$//
5310_ACEOF
5311program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5312rm conftest.sed
5313
5314# expand $ac_aux_dir to an absolute path
5315am_aux_dir=`cd $ac_aux_dir && pwd`
5316
5317test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5318# Use eval to expand $SHELL
5319if eval "$MISSING --run true"; then
5320  am_missing_run="$MISSING --run "
5321else
5322  am_missing_run=
5323  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5324echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5325fi
5326
5327if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5328  # We used to keeping the `.' as first argument, in order to
5329  # allow $(mkdir_p) to be used without argument.  As in
5330  #   $(mkdir_p) $(somedir)
5331  # where $(somedir) is conditionally defined.  However this is wrong
5332  # for two reasons:
5333  #  1. if the package is installed by a user who cannot write `.'
5334  #     make install will fail,
5335  #  2. the above comment should most certainly read
5336  #     $(mkdir_p) $(DESTDIR)$(somedir)
5337  #     so it does not work when $(somedir) is undefined and
5338  #     $(DESTDIR) is not.
5339  #  To support the latter case, we have to write
5340  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5341  #  so the `.' trick is pointless.
5342  mkdir_p='mkdir -p --'
5343else
5344  # On NextStep and OpenStep, the `mkdir' command does not
5345  # recognize any option.  It will interpret all options as
5346  # directories to create, and then abort because `.' already
5347  # exists.
5348  for d in ./-p ./--version;
5349  do
5350    test -d $d && rmdir $d
5351  done
5352  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5353  if test -f "$ac_aux_dir/mkinstalldirs"; then
5354    mkdir_p='$(mkinstalldirs)'
5355  else
5356    mkdir_p='$(install_sh) -d'
5357  fi
5358fi
5359
5360for ac_prog in gawk mawk nawk awk
5361do
5362  # Extract the first word of "$ac_prog", so it can be a program name with args.
5363set dummy $ac_prog; ac_word=$2
5364echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366if test "${ac_cv_prog_AWK+set}" = set; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  if test -n "$AWK"; then
5370  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5379    ac_cv_prog_AWK="$ac_prog"
5380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384done
5385
5386fi
5387fi
5388AWK=$ac_cv_prog_AWK
5389if test -n "$AWK"; then
5390  echo "$as_me:$LINENO: result: $AWK" >&5
5391echo "${ECHO_T}$AWK" >&6
5392else
5393  echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395fi
5396
5397  test -n "$AWK" && break
5398done
5399
5400echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5401echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5402set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5403if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5404  echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406  cat >conftest.make <<\_ACEOF
5407all:
5408        @echo 'ac_maketemp="$(MAKE)"'
5409_ACEOF
5410# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5411eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5412if test -n "$ac_maketemp"; then
5413  eval ac_cv_prog_make_${ac_make}_set=yes
5414else
5415  eval ac_cv_prog_make_${ac_make}_set=no
5416fi
5417rm -f conftest.make
5418fi
5419if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5420  echo "$as_me:$LINENO: result: yes" >&5
5421echo "${ECHO_T}yes" >&6
5422  SET_MAKE=
5423else
5424  echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426  SET_MAKE="MAKE=${MAKE-make}"
5427fi
5428
5429rm -rf .tst 2>/dev/null
5430mkdir .tst 2>/dev/null
5431if test -d .tst; then
5432  am__leading_dot=.
5433else
5434  am__leading_dot=_
5435fi
5436rmdir .tst 2>/dev/null
5437
5438DEPDIR="${am__leading_dot}deps"
5439
5440          ac_config_commands="$ac_config_commands depfiles"
5441
5442
5443am_make=${MAKE-make}
5444cat > confinc << 'END'
5445am__doit:
5446        @echo done
5447.PHONY: am__doit
5448END
5449# If we don't find an include directive, just comment out the code.
5450echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5451echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5452am__include="#"
5453am__quote=
5454_am_result=none
5455# First try GNU make style include.
5456echo "include confinc" > confmf
5457# We grep out `Entering directory' and `Leaving directory'
5458# messages which can occur if `w' ends up in MAKEFLAGS.
5459# In particular we don't look at `^make:' because GNU make might
5460# be invoked under some other name (usually "gmake"), in which
5461# case it prints its new name instead of `make'.
5462if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5463   am__include=include
5464   am__quote=
5465   _am_result=GNU
5466fi
5467# Now try BSD make style include.
5468if test "$am__include" = "#"; then
5469   echo '.include "confinc"' > confmf
5470   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5471      am__include=.include
5472      am__quote="\""
5473      _am_result=BSD
5474   fi
5475fi
5476
5477
5478echo "$as_me:$LINENO: result: $_am_result" >&5
5479echo "${ECHO_T}$_am_result" >&6
5480rm -f confinc confmf
5481
5482# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5483if test "${enable_dependency_tracking+set}" = set; then
5484  enableval="$enable_dependency_tracking"
5485
5486fi;
5487if test "x$enable_dependency_tracking" != xno; then
5488  am_depcomp="$ac_aux_dir/depcomp"
5489  AMDEPBACKSLASH='\'
5490fi
5491
5492
5493if test "x$enable_dependency_tracking" != xno; then
5494  AMDEP_TRUE=
5495  AMDEP_FALSE='#'
5496else
5497  AMDEP_TRUE='#'
5498  AMDEP_FALSE=
5499fi
5500
5501
5502
5503
5504
5505
5506# AC_MSG_NOTICE([Beginning automake initialisation.])
5507# Stuff for automake
5508# test to see if srcdir already configured
5509if test "`cd $srcdir && pwd`" != "`pwd`" &&
5510   test -f $srcdir/config.status; then
5511  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5512echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5513   { (exit 1); exit 1; }; }
5514fi
5515
5516# test whether we have cygpath
5517if test -z "$CYGPATH_W"; then
5518  if (cygpath --version) >/dev/null 2>/dev/null; then
5519    CYGPATH_W='cygpath -w'
5520  else
5521    CYGPATH_W=echo
5522  fi
5523fi
5524
5525
5526# Define the identity of the package.
5527 PACKAGE='thirdpartyfiltersqp'
5528 VERSION='trunk'
5529
5530
5531cat >>confdefs.h <<_ACEOF
5532#define PACKAGE "$PACKAGE"
5533_ACEOF
5534
5535
5536cat >>confdefs.h <<_ACEOF
5537#define VERSION "$VERSION"
5538_ACEOF
5539
5540# Some tools Automake needs.
5541
5542ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5543
5544
5545AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5546
5547
5548AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5549
5550
5551AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5552
5553
5554MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5555
5556install_sh=${install_sh-"$am_aux_dir/install-sh"}
5557
5558# Installed binaries are usually stripped using `strip' when the user
5559# run `make install-strip'.  However `strip' might not be the right
5560# tool to use in cross-compilation environments, therefore Automake
5561# will honor the `STRIP' environment variable to overrule this program.
5562if test "$cross_compiling" != no; then
5563  if test -n "$ac_tool_prefix"; then
5564  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5565set dummy ${ac_tool_prefix}strip; ac_word=$2
5566echo "$as_me:$LINENO: checking for $ac_word" >&5
5567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5568if test "${ac_cv_prog_STRIP+set}" = set; then
5569  echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571  if test -n "$STRIP"; then
5572  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579  for ac_exec_ext in '' $ac_executable_extensions; do
5580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583    break 2
5584  fi
5585done
5586done
5587
5588fi
5589fi
5590STRIP=$ac_cv_prog_STRIP
5591if test -n "$STRIP"; then
5592  echo "$as_me:$LINENO: result: $STRIP" >&5
5593echo "${ECHO_T}$STRIP" >&6
5594else
5595  echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597fi
5598
5599fi
5600if test -z "$ac_cv_prog_STRIP"; then
5601  ac_ct_STRIP=$STRIP
5602  # Extract the first word of "strip", so it can be a program name with args.
5603set dummy strip; ac_word=$2
5604echo "$as_me:$LINENO: checking for $ac_word" >&5
5605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5607  echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609  if test -n "$ac_ct_STRIP"; then
5610  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5611else
5612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613for as_dir in $PATH
5614do
5615  IFS=$as_save_IFS
5616  test -z "$as_dir" && as_dir=.
5617  for ac_exec_ext in '' $ac_executable_extensions; do
5618  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619    ac_cv_prog_ac_ct_STRIP="strip"
5620    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621    break 2
5622  fi
5623done
5624done
5625
5626  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5627fi
5628fi
5629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5630if test -n "$ac_ct_STRIP"; then
5631  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5632echo "${ECHO_T}$ac_ct_STRIP" >&6
5633else
5634  echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636fi
5637
5638  STRIP=$ac_ct_STRIP
5639else
5640  STRIP="$ac_cv_prog_STRIP"
5641fi
5642
5643fi
5644INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5645
5646# We need awk for the "check" target.  The system "awk" is bad on
5647# some platforms.
5648# Always define AMTAR for backward compatibility.
5649
5650AMTAR=${AMTAR-"${am_missing_run}tar"}
5651
5652am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5653
5654
5655
5656
5657depcc="$CC"   am_compiler_list=
5658
5659echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5660echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5661if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5665  # We make a subdir and do the tests there.  Otherwise we can end up
5666  # making bogus files that we don't know about and never remove.  For
5667  # instance it was reported that on HP-UX the gcc test will end up
5668  # making a dummy file named `D' -- because `-MD' means `put the output
5669  # in D'.
5670  mkdir conftest.dir
5671  # Copy depcomp to subdir because otherwise we won't find it if we're
5672  # using a relative directory.
5673  cp "$am_depcomp" conftest.dir
5674  cd conftest.dir
5675  # We will build objects and dependencies in a subdirectory because
5676  # it helps to detect inapplicable dependency modes.  For instance
5677  # both Tru64's cc and ICC support -MD to output dependencies as a
5678  # side effect of compilation, but ICC will put the dependencies in
5679  # the current directory while Tru64 will put them in the object
5680  # directory.
5681  mkdir sub
5682
5683  am_cv_CC_dependencies_compiler_type=none
5684  if test "$am_compiler_list" = ""; then
5685     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5686  fi
5687  for depmode in $am_compiler_list; do
5688    # Setup a source with many dependencies, because some compilers
5689    # like to wrap large dependency lists on column 80 (with \), and
5690    # we should not choose a depcomp mode which is confused by this.
5691    #
5692    # We need to recreate these files for each test, as the compiler may
5693    # overwrite some of them when testing with obscure command lines.
5694    # This happens at least with the AIX C compiler.
5695    : > sub/conftest.c
5696    for i in 1 2 3 4 5 6; do
5697      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5698      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5699      # Solaris 8's {/usr,}/bin/sh.
5700      touch sub/conftst$i.h
5701    done
5702    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5703
5704    case $depmode in
5705    nosideeffect)
5706      # after this tag, mechanisms are not by side-effect, so they'll
5707      # only be used when explicitly requested
5708      if test "x$enable_dependency_tracking" = xyes; then
5709        continue
5710      else
5711        break
5712      fi
5713      ;;
5714    none) break ;;
5715    esac
5716    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5717    # mode.  It turns out that the SunPro C++ compiler does not properly
5718    # handle `-M -o', and we need to detect this.
5719    if depmode=$depmode \
5720       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5721       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5722       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5723         >/dev/null 2>conftest.err &&
5724       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5725       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5726       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5727      # icc doesn't choke on unknown options, it will just issue warnings
5728      # or remarks (even with -Werror).  So we grep stderr for any message
5729      # that says an option was ignored or not supported.
5730      # When given -MP, icc 7.0 and 7.1 complain thusly:
5731      #   icc: Command line warning: ignoring option '-M'; no argument required
5732      # The diagnosis changed in icc 8.0:
5733      #   icc: Command line remark: option '-MP' not supported
5734      if (grep 'ignoring option' conftest.err ||
5735          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5736        am_cv_CC_dependencies_compiler_type=$depmode
5737        break
5738      fi
5739    fi
5740  done
5741
5742  cd ..
5743  rm -rf conftest.dir
5744else
5745  am_cv_CC_dependencies_compiler_type=none
5746fi
5747
5748fi
5749echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5750echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5751CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5752
5753
5754
5755if
5756  test "x$enable_dependency_tracking" != xno \
5757  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5758  am__fastdepCC_TRUE=
5759  am__fastdepCC_FALSE='#'
5760else
5761  am__fastdepCC_TRUE='#'
5762  am__fastdepCC_FALSE=
5763fi
5764
5765
5766
5767echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5768echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5769    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5770if test "${enable_maintainer_mode+set}" = set; then
5771  enableval="$enable_maintainer_mode"
5772  USE_MAINTAINER_MODE=$enableval
5773else
5774  USE_MAINTAINER_MODE=no
5775fi;
5776  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5777echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5778
5779
5780if test $USE_MAINTAINER_MODE = yes; then
5781  MAINTAINER_MODE_TRUE=
5782  MAINTAINER_MODE_FALSE='#'
5783else
5784  MAINTAINER_MODE_TRUE='#'
5785  MAINTAINER_MODE_FALSE=
5786fi
5787
5788  MAINT=$MAINTAINER_MODE_TRUE
5789
5790
5791
5792coin_have_externals=no
5793if test "$enable_maintainer_mode" = yes; then
5794
5795  # If maintainer mode is chosen, we make sure that the correct versions
5796  # of the tools are used, and that we know where libtool.m4 is (to
5797  # recreate acinclude.m4)
5798
5799
5800  LIBTOOLM4=
5801  # Normally, $HOME
5802  AUTOTOOLS_DFLT=$HOME
5803
5804  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5805echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5806if test "${ac_cv_use_correct_autotools+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  ac_cv_use_correct_autotools=check
5810fi
5811echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5812echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5813
5814  if test $ac_cv_use_correct_autotools = check; then
5815    ac_cv_use_correct_autotools=yes
5816    # Check if we have autoconf
5817    # Extract the first word of "autoconf", so it can be a program name with args.
5818set dummy autoconf; ac_word=$2
5819echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5821if test "${ac_cv_prog_have_autoconf+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  if test -n "$have_autoconf"; then
5825  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832  for ac_exec_ext in '' $ac_executable_extensions; do
5833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_have_autoconf="yes"
5835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839done
5840
5841  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5842fi
5843fi
5844have_autoconf=$ac_cv_prog_have_autoconf
5845if test -n "$have_autoconf"; then
5846  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5847echo "${ECHO_T}$have_autoconf" >&6
5848else
5849  echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
5851fi
5852
5853    if test $have_autoconf = no; then
5854      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5855echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5856   { (exit 1); exit 1; }; }
5857    fi
5858
5859    # Check whether autoconf is the correct version
5860    correct_version='2.59'
5861    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5862    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5863echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5864    autoconf --version > confauto.out 2>&1
5865    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5866      echo "$as_me:$LINENO: result: yes" >&5
5867echo "${ECHO_T}yes" >&6
5868    else
5869      rm -f confauto.out
5870      echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6
5872      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5873echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5874   { (exit 1); exit 1; }; }
5875    fi
5876    rm -f confauto.out
5877
5878    # Check if the executable autoconf is picked up from the correct location
5879    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5880echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5881    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5882    autoconf_dir=`cd $autoconf_dir; pwd`
5883    if test x$AUTOTOOLS_DIR = x; then
5884      want_dir=$AUTOTOOLS_DFLT/bin
5885    else
5886      want_dir=$AUTOTOOLS_DIR/bin
5887    fi
5888    if test $autoconf_dir = `cd $want_dir; pwd`; then
5889      echo "$as_me:$LINENO: result: yes" >&5
5890echo "${ECHO_T}yes" >&6
5891    else
5892      rm -f confauto.out
5893      echo "$as_me:$LINENO: result: no" >&5
5894echo "${ECHO_T}no" >&6
5895      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5896echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5897   { (exit 1); exit 1; }; }
5898    fi
5899
5900    # Check if we have automake
5901    # Extract the first word of "automake", so it can be a program name with args.
5902set dummy automake; ac_word=$2
5903echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5905if test "${ac_cv_prog_have_automake+set}" = set; then
5906  echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908  if test -n "$have_automake"; then
5909  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914  IFS=$as_save_IFS
5915  test -z "$as_dir" && as_dir=.
5916  for ac_exec_ext in '' $ac_executable_extensions; do
5917  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5918    ac_cv_prog_have_automake="yes"
5919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920    break 2
5921  fi
5922done
5923done
5924
5925  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5926fi
5927fi
5928have_automake=$ac_cv_prog_have_automake
5929if test -n "$have_automake"; then
5930  echo "$as_me:$LINENO: result: $have_automake" >&5
5931echo "${ECHO_T}$have_automake" >&6
5932else
5933  echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6
5935fi
5936
5937    if test $have_automake = no; then
5938      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5939echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5940   { (exit 1); exit 1; }; }
5941    fi
5942
5943    # Check whether automake is the correct version
5944    correct_version='1.9.6'
5945    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5946    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5947echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5948    automake --version > confauto.out 2>&1
5949    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5950      echo "$as_me:$LINENO: result: yes" >&5
5951echo "${ECHO_T}yes" >&6
5952    else
5953      rm -f confauto.out
5954      echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
5956      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5957echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5958   { (exit 1); exit 1; }; }
5959    fi
5960    rm -f confauto.out
5961
5962    # Check if the executable automake is picked up from the correct location
5963    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5964echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5965    automake_dir=`which automake | sed -e 's=/automake=='`
5966    automake_dir=`cd $automake_dir; pwd`
5967    if test x$AUTOTOOLS_DIR = x; then
5968      want_dir=$AUTOTOOLS_DFLT/bin
5969    else
5970      want_dir=$AUTOTOOLS_DIR/bin
5971    fi
5972    if test $automake_dir = `cd $want_dir; pwd`; then
5973      echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975    else
5976      rm -f confauto.out
5977      echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6
5979      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5980echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5981   { (exit 1); exit 1; }; }
5982    fi
5983
5984    # Check if this is the correct version of libtool (with escaped dots)
5985    if test x$AUTOTOOLS_DIR = x; then
5986      want_dir=$AUTOTOOLS_DFLT/share
5987    else
5988      want_dir=$AUTOTOOLS_DIR/share
5989    fi
5990    correct_version='1.5.22'
5991    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5992    if test -r $want_dir/libtool/ltmain.sh; then
5993  have_ltmain=yes
5994  :
5995else
5996  have_ltmain=no
5997  :
5998fi
5999
6000    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6001echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6002    if test $have_ltmain = yes; then
6003    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6004        echo "$as_me:$LINENO: result: yes" >&5
6005echo "${ECHO_T}yes" >&6
6006      else
6007        echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6010echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6011   { (exit 1); exit 1; }; }
6012      fi
6013    else
6014      echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
6016      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6017echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6018   { (exit 1); exit 1; }; }
6019    fi
6020  fi
6021
6022  # Check if we can find the libtool file
6023  if test x$AUTOTOOLS_DIR = x; then
6024    want_dir=$AUTOTOOLS_DFLT/share
6025  else
6026    want_dir=$AUTOTOOLS_DIR/share
6027  fi
6028  if test -r $want_dir/aclocal/libtool.m4; then
6029  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6030  :
6031else
6032  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6033echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6034   { (exit 1); exit 1; }; }
6035  :
6036fi
6037
6038
6039  # Check if we have an Dependencies file
6040  if test -r $srcdir/Dependencies; then
6041    coin_have_externals=yes
6042  fi
6043  # Check if subversion is installed and understands https
6044  # Extract the first word of "svn", so it can be a program name with args.
6045set dummy svn; ac_word=$2
6046echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6048if test "${ac_cv_prog_have_svn+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  if test -n "$have_svn"; then
6052  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059  for ac_exec_ext in '' $ac_executable_extensions; do
6060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_have_svn="yes"
6062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066done
6067
6068  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6069fi
6070fi
6071have_svn=$ac_cv_prog_have_svn
6072if test -n "$have_svn"; then
6073  echo "$as_me:$LINENO: result: $have_svn" >&5
6074echo "${ECHO_T}$have_svn" >&6
6075else
6076  echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
6078fi
6079
6080  if test x$have_svn = xyes; then
6081    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6082echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6083if test "${ac_cv_svn_understands_https+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  svn --version > confauto.out 2>&1
6087                    if $EGREP https confauto.out >/dev/null 2>&1; then
6088                      ac_cv_svn_understands_https=yes
6089                    else
6090                      ac_cv_svn_understands_https=no
6091                      have_svn=no
6092                      ac_cv_prog_have_svn=no
6093                    fi
6094                    rm -f confauto.out
6095fi
6096echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6097echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6098  fi
6099
6100  # Find the location of the BuildTools directory
6101  BUILDTOOLSDIR=
6102  if test -r $srcdir/BuildTools/coin.m4; then
6103    BUILDTOOLSDIR=$srcdir/BuildTools
6104  else
6105    if test -r $srcdir/../BuildTools/coin.m4; then
6106      BUILDTOOLSDIR=$srcdir/../BuildTools
6107    else
6108      if test -r $srcdir/../../BuildTools/coin.m4; then
6109        BUILDTOOLSDIR=$srcdir/../../BuildTools
6110      else
6111        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6112echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6113   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6114      fi
6115    fi
6116  fi
6117
6118
6119  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6120  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6121    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6122  fi
6123
6124  # The following variable is set to the name of the directory where
6125  # the autotool scripts are located
6126
6127  AUX_DIR=$ac_aux_dir
6128fi
6129
6130# helpful variable for the base directory of this package
6131abs_source_dir=`cd $srcdir; pwd`
6132
6133
6134# Stuff for example Makefiles
6135if test x$prefix = xNONE; then
6136  full_prefix=$ac_default_prefix
6137else
6138  full_prefix=$prefix
6139fi
6140full_prefix=`cd $full_prefix ; pwd`
6141
6142abs_lib_dir=$full_prefix/lib
6143
6144abs_include_dir=$full_prefix/include
6145
6146abs_bin_dir=$full_prefix/bin
6147
6148
6149
6150if test $coin_have_externals = yes && test x$have_svn = xyes; then
6151  HAVE_EXTERNALS_TRUE=
6152  HAVE_EXTERNALS_FALSE='#'
6153else
6154  HAVE_EXTERNALS_TRUE='#'
6155  HAVE_EXTERNALS_FALSE=
6156fi
6157
6158
6159# AC_MSG_NOTICE([End automake initialisation.])
6160
6161
6162
6163# Initialize automake
6164{
6165
6166
6167
6168# START
6169
6170coin_disable_shared=no
6171# Test if force_shared has been set
6172if test "x" = xforce_shared; then
6173  if test x$enable_shared = xno; then
6174    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
6175echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
6176   { (exit 1); exit 1; }; }
6177  fi
6178  enable_shared=yes;
6179else
6180  # On Cygwin and AIX, building DLLs doesn't work
6181  case $build in
6182    *-cygwin* | *-mingw*)
6183      coin_disable_shared=yes
6184      if test x"$enable_shared" = xyes; then
6185        case "$CXX" in
6186          clang* )
6187            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
6188echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
6189            ;;
6190          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
6191            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
6192echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
6193            ;;
6194          *)
6195            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
6196echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
6197            ;;
6198        esac
6199      fi
6200    ;;
6201    *-aix*)
6202      coin_disable_shared=yes
6203      platform=AIX
6204      if test x"$enable_shared" = xyes; then
6205        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
6206echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
6207      fi
6208    ;;
6209  esac
6210fi
6211if test x"$coin_disable_shared" = xyes; then
6212  if test x"$enable_shared" = xyes; then
6213    :
6214  else
6215    # we don't disable shared, because it was not selected anyway
6216    coin_disable_shared=no
6217  fi
6218  enable_shared=no
6219fi
6220# By default, we only want the shared objects to be compiled
6221# Check whether --enable-static or --disable-static was given.
6222if test "${enable_static+set}" = set; then
6223  enableval="$enable_static"
6224  p=${PACKAGE-default}
6225    case $enableval in
6226    yes) enable_static=yes ;;
6227    no) enable_static=no ;;
6228    *)
6229     enable_static=no
6230      # Look at the argument we got.  We use all the common list separators.
6231      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6232      for pkg in $enableval; do
6233        IFS="$lt_save_ifs"
6234        if test "X$pkg" = "X$p"; then
6235          enable_static=yes
6236        fi
6237      done
6238      IFS="$lt_save_ifs"
6239      ;;
6240    esac
6241else
6242  enable_static=no
6243fi;
6244
6245
6246
6247
6248# Initialize automake
6249
6250
6251
6252# AC_MSG_NOTICE([Beginning automake initialisation.])
6253# Stuff for automake
6254# test to see if srcdir already configured
6255if test "`cd $srcdir && pwd`" != "`pwd`" &&
6256   test -f $srcdir/config.status; then
6257  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6258echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6259   { (exit 1); exit 1; }; }
6260fi
6261
6262# test whether we have cygpath
6263if test -z "$CYGPATH_W"; then
6264  if (cygpath --version) >/dev/null 2>/dev/null; then
6265    CYGPATH_W='cygpath -w'
6266  else
6267    CYGPATH_W=echo
6268  fi
6269fi
6270
6271
6272# Define the identity of the package.
6273 PACKAGE='thirdpartyfiltersqp'
6274 VERSION='trunk'
6275
6276
6277cat >>confdefs.h <<_ACEOF
6278#define PACKAGE "$PACKAGE"
6279_ACEOF
6280
6281
6282cat >>confdefs.h <<_ACEOF
6283#define VERSION "$VERSION"
6284_ACEOF
6285
6286# Some tools Automake needs.
6287
6288ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6289
6290
6291AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6292
6293
6294AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6295
6296
6297AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6298
6299
6300MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6301
6302install_sh=${install_sh-"$am_aux_dir/install-sh"}
6303
6304# Installed binaries are usually stripped using `strip' when the user
6305# run `make install-strip'.  However `strip' might not be the right
6306# tool to use in cross-compilation environments, therefore Automake
6307# will honor the `STRIP' environment variable to overrule this program.
6308if test "$cross_compiling" != no; then
6309  if test -n "$ac_tool_prefix"; then
6310  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6311set dummy ${ac_tool_prefix}strip; ac_word=$2
6312echo "$as_me:$LINENO: checking for $ac_word" >&5
6313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6314if test "${ac_cv_prog_STRIP+set}" = set; then
6315  echo $ECHO_N "(cached) $ECHO_C" >&6
6316else
6317  if test -n "$STRIP"; then
6318  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6319else
6320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321for as_dir in $PATH
6322do
6323  IFS=$as_save_IFS
6324  test -z "$as_dir" && as_dir=.
6325  for ac_exec_ext in '' $ac_executable_extensions; do
6326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329    break 2
6330  fi
6331done
6332done
6333
6334fi
6335fi
6336STRIP=$ac_cv_prog_STRIP
6337if test -n "$STRIP"; then
6338  echo "$as_me:$LINENO: result: $STRIP" >&5
6339echo "${ECHO_T}$STRIP" >&6
6340else
6341  echo "$as_me:$LINENO: result: no" >&5
6342echo "${ECHO_T}no" >&6
6343fi
6344
6345fi
6346if test -z "$ac_cv_prog_STRIP"; then
6347  ac_ct_STRIP=$STRIP
6348  # Extract the first word of "strip", so it can be a program name with args.
6349set dummy strip; ac_word=$2
6350echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  if test -n "$ac_ct_STRIP"; then
6356  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361  IFS=$as_save_IFS
6362  test -z "$as_dir" && as_dir=.
6363  for ac_exec_ext in '' $ac_executable_extensions; do
6364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365    ac_cv_prog_ac_ct_STRIP="strip"
6366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367    break 2
6368  fi
6369done
6370done
6371
6372  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6373fi
6374fi
6375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6376if test -n "$ac_ct_STRIP"; then
6377  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6378echo "${ECHO_T}$ac_ct_STRIP" >&6
6379else
6380  echo "$as_me:$LINENO: result: no" >&5
6381echo "${ECHO_T}no" >&6
6382fi
6383
6384  STRIP=$ac_ct_STRIP
6385else
6386  STRIP="$ac_cv_prog_STRIP"
6387fi
6388
6389fi
6390INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6391
6392# We need awk for the "check" target.  The system "awk" is bad on
6393# some platforms.
6394# Always define AMTAR for backward compatibility.
6395
6396AMTAR=${AMTAR-"${am_missing_run}tar"}
6397
6398am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6399
6400
6401
6402
6403depcc="$CC"   am_compiler_list=
6404
6405echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6406echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6407if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6408  echo $ECHO_N "(cached) $ECHO_C" >&6
6409else
6410  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6411  # We make a subdir and do the tests there.  Otherwise we can end up
6412  # making bogus files that we don't know about and never remove.  For
6413  # instance it was reported that on HP-UX the gcc test will end up
6414  # making a dummy file named `D' -- because `-MD' means `put the output
6415  # in D'.
6416  mkdir conftest.dir
6417  # Copy depcomp to subdir because otherwise we won't find it if we're
6418  # using a relative directory.
6419  cp "$am_depcomp" conftest.dir
6420  cd conftest.dir
6421  # We will build objects and dependencies in a subdirectory because
6422  # it helps to detect inapplicable dependency modes.  For instance
6423  # both Tru64's cc and ICC support -MD to output dependencies as a
6424  # side effect of compilation, but ICC will put the dependencies in
6425  # the current directory while Tru64 will put them in the object
6426  # directory.
6427  mkdir sub
6428
6429  am_cv_CC_dependencies_compiler_type=none
6430  if test "$am_compiler_list" = ""; then
6431     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6432  fi
6433  for depmode in $am_compiler_list; do
6434    # Setup a source with many dependencies, because some compilers
6435    # like to wrap large dependency lists on column 80 (with \), and
6436    # we should not choose a depcomp mode which is confused by this.
6437    #
6438    # We need to recreate these files for each test, as the compiler may
6439    # overwrite some of them when testing with obscure command lines.
6440    # This happens at least with the AIX C compiler.
6441    : > sub/conftest.c
6442    for i in 1 2 3 4 5 6; do
6443      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6444      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6445      # Solaris 8's {/usr,}/bin/sh.
6446      touch sub/conftst$i.h
6447    done
6448    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6449
6450    case $depmode in
6451    nosideeffect)
6452      # after this tag, mechanisms are not by side-effect, so they'll
6453      # only be used when explicitly requested
6454      if test "x$enable_dependency_tracking" = xyes; then
6455        continue
6456      else
6457        break
6458      fi
6459      ;;
6460    none) break ;;
6461    esac
6462    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6463    # mode.  It turns out that the SunPro C++ compiler does not properly
6464    # handle `-M -o', and we need to detect this.
6465    if depmode=$depmode \
6466       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6467       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6468       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6469         >/dev/null 2>conftest.err &&
6470       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6471       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6472       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6473      # icc doesn't choke on unknown options, it will just issue warnings
6474      # or remarks (even with -Werror).  So we grep stderr for any message
6475      # that says an option was ignored or not supported.
6476      # When given -MP, icc 7.0 and 7.1 complain thusly:
6477      #   icc: Command line warning: ignoring option '-M'; no argument required
6478      # The diagnosis changed in icc 8.0:
6479      #   icc: Command line remark: option '-MP' not supported
6480      if (grep 'ignoring option' conftest.err ||
6481          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6482        am_cv_CC_dependencies_compiler_type=$depmode
6483        break
6484      fi
6485    fi
6486  done
6487
6488  cd ..
6489  rm -rf conftest.dir
6490else
6491  am_cv_CC_dependencies_compiler_type=none
6492fi
6493
6494fi
6495echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6496echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6497CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6498
6499
6500
6501if
6502  test "x$enable_dependency_tracking" != xno \
6503  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6504  am__fastdepCC_TRUE=
6505  am__fastdepCC_FALSE='#'
6506else
6507  am__fastdepCC_TRUE='#'
6508  am__fastdepCC_FALSE=
6509fi
6510
6511
6512
6513echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6514echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6515    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6516if test "${enable_maintainer_mode+set}" = set; then
6517  enableval="$enable_maintainer_mode"
6518  USE_MAINTAINER_MODE=$enableval
6519else
6520  USE_MAINTAINER_MODE=no
6521fi;
6522  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6523echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6524
6525
6526if test $USE_MAINTAINER_MODE = yes; then
6527  MAINTAINER_MODE_TRUE=
6528  MAINTAINER_MODE_FALSE='#'
6529else
6530  MAINTAINER_MODE_TRUE='#'
6531  MAINTAINER_MODE_FALSE=
6532fi
6533
6534  MAINT=$MAINTAINER_MODE_TRUE
6535
6536
6537
6538coin_have_externals=no
6539if test "$enable_maintainer_mode" = yes; then
6540
6541  # If maintainer mode is chosen, we make sure that the correct versions
6542  # of the tools are used, and that we know where libtool.m4 is (to
6543  # recreate acinclude.m4)
6544
6545
6546  LIBTOOLM4=
6547  # Normally, $HOME
6548  AUTOTOOLS_DFLT=$HOME
6549
6550  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6551echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6552if test "${ac_cv_use_correct_autotools+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  ac_cv_use_correct_autotools=check
6556fi
6557echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6558echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6559
6560  if test $ac_cv_use_correct_autotools = check; then
6561    ac_cv_use_correct_autotools=yes
6562    # Check if we have autoconf
6563    # Extract the first word of "autoconf", so it can be a program name with args.
6564set dummy autoconf; ac_word=$2
6565echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6567if test "${ac_cv_prog_have_autoconf+set}" = set; then
6568  echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570  if test -n "$have_autoconf"; then
6571  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576  IFS=$as_save_IFS
6577  test -z "$as_dir" && as_dir=.
6578  for ac_exec_ext in '' $ac_executable_extensions; do
6579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6580    ac_cv_prog_have_autoconf="yes"
6581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582    break 2
6583  fi
6584done
6585done
6586
6587  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6588fi
6589fi
6590have_autoconf=$ac_cv_prog_have_autoconf
6591if test -n "$have_autoconf"; then
6592  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6593echo "${ECHO_T}$have_autoconf" >&6
6594else
6595  echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6
6597fi
6598
6599    if test $have_autoconf = no; then
6600      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6601echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6602   { (exit 1); exit 1; }; }
6603    fi
6604
6605    # Check whether autoconf is the correct version
6606    correct_version='2.59'
6607    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6608    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6609echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6610    autoconf --version > confauto.out 2>&1
6611    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6612      echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6
6614    else
6615      rm -f confauto.out
6616      echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6
6618      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6619echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6620   { (exit 1); exit 1; }; }
6621    fi
6622    rm -f confauto.out
6623
6624    # Check if the executable autoconf is picked up from the correct location
6625    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6626echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6627    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6628    autoconf_dir=`cd $autoconf_dir; pwd`
6629    if test x$AUTOTOOLS_DIR = x; then
6630      want_dir=$AUTOTOOLS_DFLT/bin
6631    else
6632      want_dir=$AUTOTOOLS_DIR/bin
6633    fi
6634    if test $autoconf_dir = `cd $want_dir; pwd`; then
6635      echo "$as_me:$LINENO: result: yes" >&5
6636echo "${ECHO_T}yes" >&6
6637    else
6638      rm -f confauto.out
6639      echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6642echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6643   { (exit 1); exit 1; }; }
6644    fi
6645
6646    # Check if we have automake
6647    # Extract the first word of "automake", so it can be a program name with args.
6648set dummy automake; ac_word=$2
6649echo "$as_me:$LINENO: checking for $ac_word" >&5
6650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6651if test "${ac_cv_prog_have_automake+set}" = set; then
6652  echo $ECHO_N "(cached) $ECHO_C" >&6
6653else
6654  if test -n "$have_automake"; then
6655  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660  IFS=$as_save_IFS
6661  test -z "$as_dir" && as_dir=.
6662  for ac_exec_ext in '' $ac_executable_extensions; do
6663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664    ac_cv_prog_have_automake="yes"
6665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666    break 2
6667  fi
6668done
6669done
6670
6671  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6672fi
6673fi
6674have_automake=$ac_cv_prog_have_automake
6675if test -n "$have_automake"; then
6676  echo "$as_me:$LINENO: result: $have_automake" >&5
6677echo "${ECHO_T}$have_automake" >&6
6678else
6679  echo "$as_me:$LINENO: result: no" >&5
6680echo "${ECHO_T}no" >&6
6681fi
6682
6683    if test $have_automake = no; then
6684      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6685echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6686   { (exit 1); exit 1; }; }
6687    fi
6688
6689    # Check whether automake is the correct version
6690    correct_version='1.9.6'
6691    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6692    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6693echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6694    automake --version > confauto.out 2>&1
6695    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6696      echo "$as_me:$LINENO: result: yes" >&5
6697echo "${ECHO_T}yes" >&6
6698    else
6699      rm -f confauto.out
6700      echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6
6702      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6703echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6704   { (exit 1); exit 1; }; }
6705    fi
6706    rm -f confauto.out
6707
6708    # Check if the executable automake is picked up from the correct location
6709    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6710echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6711    automake_dir=`which automake | sed -e 's=/automake=='`
6712    automake_dir=`cd $automake_dir; pwd`
6713    if test x$AUTOTOOLS_DIR = x; then
6714      want_dir=$AUTOTOOLS_DFLT/bin
6715    else
6716      want_dir=$AUTOTOOLS_DIR/bin
6717    fi
6718    if test $automake_dir = `cd $want_dir; pwd`; then
6719      echo "$as_me:$LINENO: result: yes" >&5
6720echo "${ECHO_T}yes" >&6
6721    else
6722      rm -f confauto.out
6723      echo "$as_me:$LINENO: result: no" >&5
6724echo "${ECHO_T}no" >&6
6725      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6726echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6727   { (exit 1); exit 1; }; }
6728    fi
6729
6730    # Check if this is the correct version of libtool (with escaped dots)
6731    if test x$AUTOTOOLS_DIR = x; then
6732      want_dir=$AUTOTOOLS_DFLT/share
6733    else
6734      want_dir=$AUTOTOOLS_DIR/share
6735    fi
6736    correct_version='1.5.22'
6737    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6738    if test -r $want_dir/libtool/ltmain.sh; then
6739  have_ltmain=yes
6740  :
6741else
6742  have_ltmain=no
6743  :
6744fi
6745
6746    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6747echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6748    if test $have_ltmain = yes; then
6749    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6750        echo "$as_me:$LINENO: result: yes" >&5
6751echo "${ECHO_T}yes" >&6
6752      else
6753        echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
6755        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6756echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6757   { (exit 1); exit 1; }; }
6758      fi
6759    else
6760      echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6
6762      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6763echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6764   { (exit 1); exit 1; }; }
6765    fi
6766  fi
6767
6768  # Check if we can find the libtool file
6769  if test x$AUTOTOOLS_DIR = x; then
6770    want_dir=$AUTOTOOLS_DFLT/share
6771  else
6772    want_dir=$AUTOTOOLS_DIR/share
6773  fi
6774  if test -r $want_dir/aclocal/libtool.m4; then
6775  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6776  :
6777else
6778  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6779echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6780   { (exit 1); exit 1; }; }
6781  :
6782fi
6783
6784
6785  # Check if we have an Dependencies file
6786  if test -r $srcdir/Dependencies; then
6787    coin_have_externals=yes
6788  fi
6789  # Check if subversion is installed and understands https
6790  # Extract the first word of "svn", so it can be a program name with args.
6791set dummy svn; ac_word=$2
6792echo "$as_me:$LINENO: checking for $ac_word" >&5
6793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794if test "${ac_cv_prog_have_svn+set}" = set; then
6795  echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
6797  if test -n "$have_svn"; then
6798  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803  IFS=$as_save_IFS
6804  test -z "$as_dir" && as_dir=.
6805  for ac_exec_ext in '' $ac_executable_extensions; do
6806  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807    ac_cv_prog_have_svn="yes"
6808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6809    break 2
6810  fi
6811done
6812done
6813
6814  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6815fi
6816fi
6817have_svn=$ac_cv_prog_have_svn
6818if test -n "$have_svn"; then
6819  echo "$as_me:$LINENO: result: $have_svn" >&5
6820echo "${ECHO_T}$have_svn" >&6
6821else
6822  echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
6824fi
6825
6826  if test x$have_svn = xyes; then
6827    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6828echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6829if test "${ac_cv_svn_understands_https+set}" = set; then
6830  echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832  svn --version > confauto.out 2>&1
6833                    if $EGREP https confauto.out >/dev/null 2>&1; then
6834                      ac_cv_svn_understands_https=yes
6835                    else
6836                      ac_cv_svn_understands_https=no
6837                      have_svn=no
6838                      ac_cv_prog_have_svn=no
6839                    fi
6840                    rm -f confauto.out
6841fi
6842echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6843echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6844  fi
6845
6846  # Find the location of the BuildTools directory
6847  BUILDTOOLSDIR=
6848  if test -r $srcdir/BuildTools/coin.m4; then
6849    BUILDTOOLSDIR=$srcdir/BuildTools
6850  else
6851    if test -r $srcdir/../BuildTools/coin.m4; then
6852      BUILDTOOLSDIR=$srcdir/../BuildTools
6853    else
6854      if test -r $srcdir/../../BuildTools/coin.m4; then
6855        BUILDTOOLSDIR=$srcdir/../../BuildTools
6856      else
6857        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6858echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6859   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6860      fi
6861    fi
6862  fi
6863
6864
6865  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6866  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6867    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6868  fi
6869
6870  # The following variable is set to the name of the directory where
6871  # the autotool scripts are located
6872
6873  AUX_DIR=$ac_aux_dir
6874fi
6875
6876# helpful variable for the base directory of this package
6877abs_source_dir=`cd $srcdir; pwd`
6878
6879
6880# Stuff for example Makefiles
6881if test x$prefix = xNONE; then
6882  full_prefix=$ac_default_prefix
6883else
6884  full_prefix=$prefix
6885fi
6886full_prefix=`cd $full_prefix ; pwd`
6887
6888abs_lib_dir=$full_prefix/lib
6889
6890abs_include_dir=$full_prefix/include
6891
6892abs_bin_dir=$full_prefix/bin
6893
6894
6895
6896if test $coin_have_externals = yes && test x$have_svn = xyes; then
6897  HAVE_EXTERNALS_TRUE=
6898  HAVE_EXTERNALS_FALSE='#'
6899else
6900  HAVE_EXTERNALS_TRUE='#'
6901  HAVE_EXTERNALS_FALSE=
6902fi
6903
6904
6905# AC_MSG_NOTICE([End automake initialisation.])
6906
6907
6908
6909LIBTOOL=
6910if test -r ../libtool; then
6911  coin_config_dir=..
6912  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6913fi
6914if test "x$LIBTOOL" = x; then
6915  if test -r ../../libtool; then
6916    coin_config_dir=../..
6917    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6918  fi
6919fi
6920
6921if test "x$LIBTOOL" = x; then
6922# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6923  # Stuff for libtool
6924  # Check whether --enable-shared or --disable-shared was given.
6925if test "${enable_shared+set}" = set; then
6926  enableval="$enable_shared"
6927  p=${PACKAGE-default}
6928    case $enableval in
6929    yes) enable_shared=yes ;;
6930    no) enable_shared=no ;;
6931    *)
6932      enable_shared=no
6933      # Look at the argument we got.  We use all the common list separators.
6934      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6935      for pkg in $enableval; do
6936        IFS="$lt_save_ifs"
6937        if test "X$pkg" = "X$p"; then
6938          enable_shared=yes
6939        fi
6940      done
6941      IFS="$lt_save_ifs"
6942      ;;
6943    esac
6944else
6945  enable_shared=yes
6946fi;
6947
6948# Check whether --enable-fast-install or --disable-fast-install was given.
6949if test "${enable_fast_install+set}" = set; then
6950  enableval="$enable_fast_install"
6951  p=${PACKAGE-default}
6952    case $enableval in
6953    yes) enable_fast_install=yes ;;
6954    no) enable_fast_install=no ;;
6955    *)
6956      enable_fast_install=no
6957      # Look at the argument we got.  We use all the common list separators.
6958      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6959      for pkg in $enableval; do
6960        IFS="$lt_save_ifs"
6961        if test "X$pkg" = "X$p"; then
6962          enable_fast_install=yes
6963        fi
6964      done
6965      IFS="$lt_save_ifs"
6966      ;;
6967    esac
6968else
6969  enable_fast_install=yes
6970fi;
6971
6972echo "$as_me:$LINENO: checking host system type" >&5
6973echo $ECHO_N "checking host system type... $ECHO_C" >&6
6974if test "${ac_cv_host+set}" = set; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  ac_cv_host_alias=$host_alias
6978test -z "$ac_cv_host_alias" &&
6979  ac_cv_host_alias=$ac_cv_build_alias
6980ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6981  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6982echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6983   { (exit 1); exit 1; }; }
6984
6985fi
6986echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6987echo "${ECHO_T}$ac_cv_host" >&6
6988host=$ac_cv_host
6989host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6990host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6991host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6992
6993
6994echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6995echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6996if test "${lt_cv_path_SED+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999  # Loop through the user's path and test for sed and gsed.
7000# Then use that list of sed's as ones to test for truncation.
7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002for as_dir in $PATH
7003do
7004  IFS=$as_save_IFS
7005  test -z "$as_dir" && as_dir=.
7006  for lt_ac_prog in sed gsed; do
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7009        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7010      fi
7011    done
7012  done
7013done
7014lt_ac_max=0
7015lt_ac_count=0
7016# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7017# along with /bin/sed that truncates output.
7018for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7019  test ! -f $lt_ac_sed && continue
7020  cat /dev/null > conftest.in
7021  lt_ac_count=0
7022  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7023  # Check for GNU sed and select it if it is found.
7024  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7025    lt_cv_path_SED=$lt_ac_sed
7026    break
7027  fi
7028  while true; do
7029    cat conftest.in conftest.in >conftest.tmp
7030    mv conftest.tmp conftest.in
7031    cp conftest.in conftest.nl
7032    echo >>conftest.nl
7033    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7034    cmp -s conftest.out conftest.nl || break
7035    # 10000 chars as input seems more than enough
7036    test $lt_ac_count -gt 10 && break
7037    lt_ac_count=`expr $lt_ac_count + 1`
7038    if test $lt_ac_count -gt $lt_ac_max; then
7039      lt_ac_max=$lt_ac_count
7040      lt_cv_path_SED=$lt_ac_sed
7041    fi
7042  done
7043done
7044
7045fi
7046
7047SED=$lt_cv_path_SED
7048echo "$as_me:$LINENO: result: $SED" >&5
7049echo "${ECHO_T}$SED" >&6
7050
7051
7052# Check whether --with-gnu-ld or --without-gnu-ld was given.
7053if test "${with_gnu_ld+set}" = set; then
7054  withval="$with_gnu_ld"
7055  test "$withval" = no || with_gnu_ld=yes
7056else
7057  with_gnu_ld=no
7058fi;
7059ac_prog=ld
7060if test "$GCC" = yes; then
7061  # Check if gcc -print-prog-name=ld gives a path.
7062  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7063echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7064  case $host in
7065  *-*-mingw*)
7066    # gcc leaves a trailing carriage return which upsets mingw
7067    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7068  *)
7069    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7070  esac
7071  case $ac_prog in
7072    # Accept absolute paths.
7073    [\\/]* | ?:[\\/]*)
7074      re_direlt='/[^/][^/]*/\.\./'
7075      # Canonicalize the pathname of ld
7076      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7077      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7078        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7079      done
7080      test -z "$LD" && LD="$ac_prog"
7081      ;;
7082  "")
7083    # If it fails, then pretend we aren't using GCC.
7084    ac_prog=ld
7085    ;;
7086  *)
7087    # If it is relative, then search for the first ld in PATH.
7088    with_gnu_ld=unknown
7089    ;;
7090  esac
7091elif test "$with_gnu_ld" = yes; then
7092  echo "$as_me:$LINENO: checking for GNU ld" >&5
7093echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7094else
7095  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7096echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7097fi
7098if test "${lt_cv_path_LD+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101  if test -z "$LD"; then
7102  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7103  for ac_dir in $PATH; do
7104    IFS="$lt_save_ifs"
7105    test -z "$ac_dir" && ac_dir=.
7106    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7107      lt_cv_path_LD="$ac_dir/$ac_prog"
7108      # Check to see if the program is GNU ld.  I'd rather use --version,
7109      # but apparently some variants of GNU ld only accept -v.
7110      # Break only if it was the GNU/non-GNU ld that we prefer.
7111      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7112      *GNU* | *'with BFD'*)
7113        test "$with_gnu_ld" != no && break
7114        ;;
7115      *)
7116        test "$with_gnu_ld" != yes && break
7117        ;;
7118      esac
7119    fi
7120  done
7121  IFS="$lt_save_ifs"
7122else
7123  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7124fi
7125fi
7126
7127LD="$lt_cv_path_LD"
7128if test -n "$LD"; then
7129  echo "$as_me:$LINENO: result: $LD" >&5
7130echo "${ECHO_T}$LD" >&6
7131else
7132  echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6
7134fi
7135test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7136echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7137   { (exit 1); exit 1; }; }
7138echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7139echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7140if test "${lt_cv_prog_gnu_ld+set}" = set; then
7141  echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7144case `$LD -v 2>&1 </dev/null` in
7145*GNU* | *'with BFD'*)
7146  lt_cv_prog_gnu_ld=yes
7147  ;;
7148*)
7149  lt_cv_prog_gnu_ld=no
7150  ;;
7151esac
7152fi
7153echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7154echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7155with_gnu_ld=$lt_cv_prog_gnu_ld
7156
7157
7158echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7159echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7160if test "${lt_cv_ld_reload_flag+set}" = set; then
7161  echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163  lt_cv_ld_reload_flag='-r'
7164fi
7165echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7166echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7167reload_flag=$lt_cv_ld_reload_flag
7168case $reload_flag in
7169"" | " "*) ;;
7170*) reload_flag=" $reload_flag" ;;
7171esac
7172reload_cmds='$LD$reload_flag -o $output$reload_objs'
7173case $host_os in
7174  darwin*)
7175    if test "$GCC" = yes; then
7176      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7177    else
7178      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7179    fi
7180    ;;
7181esac
7182
7183echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7184echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7185if test "${lt_cv_path_NM+set}" = set; then
7186  echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188  if test -n "$NM"; then
7189  # Let the user override the test.
7190  lt_cv_path_NM="$NM"
7191else
7192  lt_nm_to_check="${ac_tool_prefix}nm"
7193  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7194    lt_nm_to_check="$lt_nm_to_check nm"
7195  fi
7196  for lt_tmp_nm in $lt_nm_to_check; do
7197    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7198    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7199      IFS="$lt_save_ifs"
7200      test -z "$ac_dir" && ac_dir=.
7201      tmp_nm="$ac_dir/$lt_tmp_nm"
7202      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7203        # Check to see if the nm accepts a BSD-compat flag.
7204        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7205        #   nm: unknown option "B" ignored
7206        # Tru64's nm complains that /dev/null is an invalid object file
7207        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7208        */dev/null* | *'Invalid file or object type'*)
7209          lt_cv_path_NM="$tmp_nm -B"
7210          break
7211          ;;
7212        *)
7213          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7214          */dev/null*)
7215            lt_cv_path_NM="$tmp_nm -p"
7216            break
7217            ;;
7218          *)
7219            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7220            continue # so that we can try to find one that supports BSD flags
7221            ;;
7222          esac
7223          ;;
7224        esac
7225      fi
7226    done
7227    IFS="$lt_save_ifs"
7228  done
7229  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7230fi
7231fi
7232echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7233echo "${ECHO_T}$lt_cv_path_NM" >&6
7234NM="$lt_cv_path_NM"
7235
7236echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7237echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7238if test "${lt_cv_deplibs_check_method+set}" = set; then
7239  echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241  lt_cv_file_magic_cmd='$MAGIC_CMD'
7242lt_cv_file_magic_test_file=
7243lt_cv_deplibs_check_method='unknown'
7244# Need to set the preceding variable on all platforms that support
7245# interlibrary dependencies.
7246# 'none' -- dependencies not supported.
7247# `unknown' -- same as none, but documents that we really don't know.
7248# 'pass_all' -- all dependencies passed with no checks.
7249# 'test_compile' -- check by making test program.
7250# 'file_magic [[regex]]' -- check by looking for files in library path
7251# which responds to the $file_magic_cmd with a given extended regex.
7252# If you have `file' or equivalent on your system and you're not sure
7253# whether `pass_all' will *always* work, you probably want this one.
7254
7255case $host_os in
7256aix4* | aix5*)
7257  lt_cv_deplibs_check_method=pass_all
7258  ;;
7259
7260beos*)
7261  lt_cv_deplibs_check_method=pass_all
7262  ;;
7263
7264bsdi[45]*)
7265  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7266  lt_cv_file_magic_cmd='/usr/bin/file -L'
7267  lt_cv_file_magic_test_file=/shlib/libc.so
7268  ;;
7269
7270cygwin*)
7271  # func_win32_libid is a shell function defined in ltmain.sh
7272  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7273  lt_cv_file_magic_cmd='func_win32_libid'
7274  ;;
7275
7276mingw* | pw32*)
7277  # Base MSYS/MinGW do not provide the 'file' command needed by
7278  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7279  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7280  lt_cv_file_magic_cmd='$OBJDUMP -f'
7281  ;;
7282
7283darwin* | rhapsody*)
7284  lt_cv_deplibs_check_method=pass_all
7285  ;;
7286
7287freebsd* | kfreebsd*-gnu | dragonfly*)
7288  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7289    case $host_cpu in
7290    i*86 )
7291      # Not sure whether the presence of OpenBSD here was a mistake.
7292      # Let's accept both of them until this is cleared up.
7293      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7294      lt_cv_file_magic_cmd=/usr/bin/file
7295      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7296      ;;
7297    esac
7298  else
7299    lt_cv_deplibs_check_method=pass_all
7300  fi
7301  ;;
7302
7303gnu*)
7304  lt_cv_deplibs_check_method=pass_all
7305  ;;
7306
7307hpux10.20* | hpux11*)
7308  lt_cv_file_magic_cmd=/usr/bin/file
7309  case $host_cpu in
7310  ia64*)
7311    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7312    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7313    ;;
7314  hppa*64*)
7315    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]'
7316    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7317    ;;
7318  *)
7319    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7320    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7321    ;;
7322  esac
7323  ;;
7324
7325interix3*)
7326  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7327  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7328  ;;
7329
7330irix5* | irix6* | nonstopux*)
7331  case $LD in
7332  *-32|*"-32 ") libmagic=32-bit;;
7333  *-n32|*"-n32 ") libmagic=N32;;
7334  *-64|*"-64 ") libmagic=64-bit;;
7335  *) libmagic=never-match;;
7336  esac
7337  lt_cv_deplibs_check_method=pass_all
7338  ;;
7339
7340# This must be Linux ELF.
7341linux*)
7342  lt_cv_deplibs_check_method=pass_all
7343  ;;
7344
7345netbsd*)
7346  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7348  else
7349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7350  fi
7351  ;;
7352
7353newos6*)
7354  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7355  lt_cv_file_magic_cmd=/usr/bin/file
7356  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7357  ;;
7358
7359nto-qnx*)
7360  lt_cv_deplibs_check_method=unknown
7361  ;;
7362
7363openbsd*)
7364  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7365    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7366  else
7367    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7368  fi
7369  ;;
7370
7371osf3* | osf4* | osf5*)
7372  lt_cv_deplibs_check_method=pass_all
7373  ;;
7374
7375solaris*)
7376  lt_cv_deplibs_check_method=pass_all
7377  ;;
7378
7379sysv4 | sysv4.3*)
7380  case $host_vendor in
7381  motorola)
7382    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]'
7383    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7384    ;;
7385  ncr)
7386    lt_cv_deplibs_check_method=pass_all
7387    ;;
7388  sequent)
7389    lt_cv_file_magic_cmd='/bin/file'
7390    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7391    ;;
7392  sni)
7393    lt_cv_file_magic_cmd='/bin/file'
7394    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7395    lt_cv_file_magic_test_file=/lib/libc.so
7396    ;;
7397  siemens)
7398    lt_cv_deplibs_check_method=pass_all
7399    ;;
7400  pc)
7401    lt_cv_deplibs_check_method=pass_all
7402    ;;
7403  esac
7404  ;;
7405
7406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7407  lt_cv_deplibs_check_method=pass_all
7408  ;;
7409esac
7410
7411fi
7412echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7413echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7414file_magic_cmd=$lt_cv_file_magic_cmd
7415deplibs_check_method=$lt_cv_deplibs_check_method
7416test -z "$deplibs_check_method" && deplibs_check_method=unknown
7417
7418
7419
7420
7421# If no C compiler was specified, use CC.
7422LTCC=${LTCC-"$CC"}
7423
7424# If no C compiler flags were specified, use CFLAGS.
7425LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7426
7427# Allow CC to be a program name with arguments.
7428compiler=$CC
7429
7430# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7431if test "${enable_libtool_lock+set}" = set; then
7432  enableval="$enable_libtool_lock"
7433
7434fi;
7435test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7436
7437# Some flags need to be propagated to the compiler or linker for good
7438# libtool support.
7439case $host in
7440ia64-*-hpux*)
7441  # Find out which ABI we are using.
7442  echo 'int i;' > conftest.$ac_ext
7443  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7444  (eval $ac_compile) 2>&5
7445  ac_status=$?
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); }; then
7448    case `/usr/bin/file conftest.$ac_objext` in
7449    *ELF-32*)
7450      HPUX_IA64_MODE="32"
7451      ;;
7452    *ELF-64*)
7453      HPUX_IA64_MODE="64"
7454      ;;
7455    esac
7456  fi
7457  rm -rf conftest*
7458  ;;
7459*-*-irix6*)
7460  # Find out which ABI we are using.
7461  echo '#line 7461 "configure"' > conftest.$ac_ext
7462  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463  (eval $ac_compile) 2>&5
7464  ac_status=$?
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; then
7467   if test "$lt_cv_prog_gnu_ld" = yes; then
7468    case `/usr/bin/file conftest.$ac_objext` in
7469    *32-bit*)
7470      LD="${LD-ld} -melf32bsmip"
7471      ;;
7472    *N32*)
7473      LD="${LD-ld} -melf32bmipn32"
7474      ;;
7475    *64-bit*)
7476      LD="${LD-ld} -melf64bmip"
7477      ;;
7478    esac
7479   else
7480    case `/usr/bin/file conftest.$ac_objext` in
7481    *32-bit*)
7482      LD="${LD-ld} -32"
7483      ;;
7484    *N32*)
7485      LD="${LD-ld} -n32"
7486      ;;
7487    *64-bit*)
7488      LD="${LD-ld} -64"
7489      ;;
7490    esac
7491   fi
7492  fi
7493  rm -rf conftest*
7494  ;;
7495
7496x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7497  # Find out which ABI we are using.
7498  echo 'int i;' > conftest.$ac_ext
7499  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7500  (eval $ac_compile) 2>&5
7501  ac_status=$?
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); }; then
7504    case `/usr/bin/file conftest.o` in
7505    *32-bit*)
7506      case $host in
7507        x86_64-*linux*)
7508          LD="${LD-ld} -m elf_i386"
7509          ;;
7510        ppc64-*linux*|powerpc64-*linux*)
7511          LD="${LD-ld} -m elf32ppclinux"
7512          ;;
7513        s390x-*linux*)
7514          LD="${LD-ld} -m elf_s390"
7515          ;;
7516        sparc64-*linux*)
7517          LD="${LD-ld} -m elf32_sparc"
7518          ;;
7519      esac
7520      ;;
7521    *64-bit*)
7522      case $host in
7523        x86_64-*linux*)
7524          LD="${LD-ld} -m elf_x86_64"
7525          ;;
7526        ppc*-*linux*|powerpc*-*linux*)
7527          LD="${LD-ld} -m elf64ppc"
7528          ;;
7529        s390*-*linux*)
7530          LD="${LD-ld} -m elf64_s390"
7531          ;;
7532        sparc*-*linux*)
7533          LD="${LD-ld} -m elf64_sparc"
7534          ;;
7535      esac
7536      ;;
7537    esac
7538  fi
7539  rm -rf conftest*
7540  ;;
7541
7542*-*-sco3.2v5*)
7543  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7544  SAVE_CFLAGS="$CFLAGS"
7545  CFLAGS="$CFLAGS -belf"
7546  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7547echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7548if test "${lt_cv_cc_needs_belf+set}" = set; then
7549  echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551  ac_ext=c
7552ac_cpp='$CPP $CPPFLAGS'
7553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
7557     cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h.  */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h.  */
7563
7564#ifdef F77_DUMMY_MAIN
7565
7566#  ifdef __cplusplus
7567     extern "C"
7568#  endif
7569   int F77_DUMMY_MAIN() { return 1; }
7570
7571#endif
7572int
7573main ()
7574{
7575
7576  ;
7577  return 0;
7578}
7579_ACEOF
7580rm -f conftest.$ac_objext conftest$ac_exeext
7581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582  (eval $ac_link) 2>conftest.er1
7583  ac_status=$?
7584  grep -v '^ *+' conftest.er1 >conftest.err
7585  rm -f conftest.er1
7586  cat conftest.err >&5
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); } &&
7589         { ac_try='test -z "$ac_c_werror_flag"
7590                         || test ! -s conftest.err'
7591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592  (eval $ac_try) 2>&5
7593  ac_status=$?
7594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595  (exit $ac_status); }; } &&
7596         { ac_try='test -s conftest$ac_exeext'
7597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598  (eval $ac_try) 2>&5
7599  ac_status=$?
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); }; }; then
7602  lt_cv_cc_needs_belf=yes
7603else
7604  echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607lt_cv_cc_needs_belf=no
7608fi
7609rm -f conftest.err conftest.$ac_objext \
7610      conftest$ac_exeext conftest.$ac_ext
7611     ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617fi
7618echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7619echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7620  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7621    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7622    CFLAGS="$SAVE_CFLAGS"
7623  fi
7624  ;;
7625sparc*-*solaris*)
7626  # Find out which ABI we are using.
7627  echo 'int i;' > conftest.$ac_ext
7628  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629  (eval $ac_compile) 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); }; then
7633    case `/usr/bin/file conftest.o` in
7634    *64-bit*)
7635      case $lt_cv_prog_gnu_ld in
7636      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7637      *)    LD="${LD-ld} -64" ;;
7638      esac
7639      ;;
7640    esac
7641  fi
7642  rm -rf conftest*
7643  ;;
7644
7645
7646esac
7647
7648need_locks="$enable_libtool_lock"
7649
7650
7651ac_ext=c
7652ac_cpp='$CPP $CPPFLAGS'
7653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7657echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7658# On Suns, sometimes $CPP names a directory.
7659if test -n "$CPP" && test -d "$CPP"; then
7660  CPP=
7661fi
7662if test -z "$CPP"; then
7663  if test "${ac_cv_prog_CPP+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666      # Double quotes because CPP needs to be expanded
7667    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7668    do
7669      ac_preproc_ok=false
7670for ac_c_preproc_warn_flag in '' yes
7671do
7672  # Use a header file that comes with gcc, so configuring glibc
7673  # with a fresh cross-compiler works.
7674  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7675  # <limits.h> exists even on freestanding compilers.
7676  # On the NeXT, cc -E runs the code through the compiler's parser,
7677  # not just through cpp. "Syntax error" is here to catch this case.
7678  cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h.  */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h.  */
7684#ifdef __STDC__
7685# include <limits.h>
7686#else
7687# include <assert.h>
7688#endif
7689                     Syntax error
7690_ACEOF
7691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7692  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7693  ac_status=$?
7694  grep -v '^ *+' conftest.er1 >conftest.err
7695  rm -f conftest.er1
7696  cat conftest.err >&5
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); } >/dev/null; then
7699  if test -s conftest.err; then
7700    ac_cpp_err=$ac_c_preproc_warn_flag
7701    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7702  else
7703    ac_cpp_err=
7704  fi
7705else
7706  ac_cpp_err=yes
7707fi
7708if test -z "$ac_cpp_err"; then
7709  :
7710else
7711  echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714  # Broken: fails on valid input.
7715continue
7716fi
7717rm -f conftest.err conftest.$ac_ext
7718
7719  # OK, works on sane cases.  Now check whether non-existent headers
7720  # can be detected and how.
7721  cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h.  */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h.  */
7727#include <ac_nonexistent.h>
7728_ACEOF
7729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7730  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7731  ac_status=$?
7732  grep -v '^ *+' conftest.er1 >conftest.err
7733  rm -f conftest.er1
7734  cat conftest.err >&5
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); } >/dev/null; then
7737  if test -s conftest.err; then
7738    ac_cpp_err=$ac_c_preproc_warn_flag
7739    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7740  else
7741    ac_cpp_err=
7742  fi
7743else
7744  ac_cpp_err=yes
7745fi
7746if test -z "$ac_cpp_err"; then
7747  # Broken: success on invalid input.
7748continue
7749else
7750  echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753  # Passes both tests.
7754ac_preproc_ok=:
7755break
7756fi
7757rm -f conftest.err conftest.$ac_ext
7758
7759done
7760# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7761rm -f conftest.err conftest.$ac_ext
7762if $ac_preproc_ok; then
7763  break
7764fi
7765
7766    done
7767    ac_cv_prog_CPP=$CPP
7768
7769fi
7770  CPP=$ac_cv_prog_CPP
7771else
7772  ac_cv_prog_CPP=$CPP
7773fi
7774echo "$as_me:$LINENO: result: $CPP" >&5
7775echo "${ECHO_T}$CPP" >&6
7776ac_preproc_ok=false
7777for ac_c_preproc_warn_flag in '' yes
7778do
7779  # Use a header file that comes with gcc, so configuring glibc
7780  # with a fresh cross-compiler works.
7781  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7782  # <limits.h> exists even on freestanding compilers.
7783  # On the NeXT, cc -E runs the code through the compiler's parser,
7784  # not just through cpp. "Syntax error" is here to catch this case.
7785  cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h.  */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h.  */
7791#ifdef __STDC__
7792# include <limits.h>
7793#else
7794# include <assert.h>
7795#endif
7796                     Syntax error
7797_ACEOF
7798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7799  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7800  ac_status=$?
7801  grep -v '^ *+' conftest.er1 >conftest.err
7802  rm -f conftest.er1
7803  cat conftest.err >&5
7804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805  (exit $ac_status); } >/dev/null; then
7806  if test -s conftest.err; then
7807    ac_cpp_err=$ac_c_preproc_warn_flag
7808    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7809  else
7810    ac_cpp_err=
7811  fi
7812else
7813  ac_cpp_err=yes
7814fi
7815if test -z "$ac_cpp_err"; then
7816  :
7817else
7818  echo "$as_me: failed program was:" >&5
7819sed 's/^/| /' conftest.$ac_ext >&5
7820
7821  # Broken: fails on valid input.
7822continue
7823fi
7824rm -f conftest.err conftest.$ac_ext
7825
7826  # OK, works on sane cases.  Now check whether non-existent headers
7827  # can be detected and how.
7828  cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h.  */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h.  */
7834#include <ac_nonexistent.h>
7835_ACEOF
7836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7837  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7838  ac_status=$?
7839  grep -v '^ *+' conftest.er1 >conftest.err
7840  rm -f conftest.er1
7841  cat conftest.err >&5
7842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843  (exit $ac_status); } >/dev/null; then
7844  if test -s conftest.err; then
7845    ac_cpp_err=$ac_c_preproc_warn_flag
7846    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7847  else
7848    ac_cpp_err=
7849  fi
7850else
7851  ac_cpp_err=yes
7852fi
7853if test -z "$ac_cpp_err"; then
7854  # Broken: success on invalid input.
7855continue
7856else
7857  echo "$as_me: failed program was:" >&5
7858sed 's/^/| /' conftest.$ac_ext >&5
7859
7860  # Passes both tests.
7861ac_preproc_ok=:
7862break
7863fi
7864rm -f conftest.err conftest.$ac_ext
7865
7866done
7867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7868rm -f conftest.err conftest.$ac_ext
7869if $ac_preproc_ok; then
7870  :
7871else
7872  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7873See \`config.log' for more details." >&5
7874echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7875See \`config.log' for more details." >&2;}
7876   { (exit 1); exit 1; }; }
7877fi
7878
7879ac_ext=c
7880ac_cpp='$CPP $CPPFLAGS'
7881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883ac_compiler_gnu=$ac_cv_c_compiler_gnu
7884
7885
7886echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7887echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7888if test "${ac_cv_header_stdc+set}" = set; then
7889  echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891  cat >conftest.$ac_ext <<_ACEOF
7892/* confdefs.h.  */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h.  */
7897#include <stdlib.h>
7898#include <stdarg.h>
7899#include <string.h>
7900#include <float.h>
7901
7902#ifdef F77_DUMMY_MAIN
7903
7904#  ifdef __cplusplus
7905     extern "C"
7906#  endif
7907   int F77_DUMMY_MAIN() { return 1; }
7908
7909#endif
7910int
7911main ()
7912{
7913
7914  ;
7915  return 0;
7916}
7917_ACEOF
7918rm -f conftest.$ac_objext
7919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920  (eval $ac_compile) 2>conftest.er1
7921  ac_status=$?
7922  grep -v '^ *+' conftest.er1 >conftest.err
7923  rm -f conftest.er1
7924  cat conftest.err >&5
7925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926  (exit $ac_status); } &&
7927         { ac_try='test -z "$ac_c_werror_flag"
7928                         || test ! -s conftest.err'
7929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930  (eval $ac_try) 2>&5
7931  ac_status=$?
7932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933  (exit $ac_status); }; } &&
7934         { ac_try='test -s conftest.$ac_objext'
7935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936  (eval $ac_try) 2>&5
7937  ac_status=$?
7938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939  (exit $ac_status); }; }; then
7940  ac_cv_header_stdc=yes
7941else
7942  echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945ac_cv_header_stdc=no
7946fi
7947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948
7949if test $ac_cv_header_stdc = yes; then
7950  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7951  cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h.  */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h.  */
7957#include <string.h>
7958
7959_ACEOF
7960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7961  $EGREP "memchr" >/dev/null 2>&1; then
7962  :
7963else
7964  ac_cv_header_stdc=no
7965fi
7966rm -f conftest*
7967
7968fi
7969
7970if test $ac_cv_header_stdc = yes; then
7971  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7972  cat >conftest.$ac_ext <<_ACEOF
7973/* confdefs.h.  */
7974_ACEOF
7975cat confdefs.h >>conftest.$ac_ext
7976cat >>conftest.$ac_ext <<_ACEOF
7977/* end confdefs.h.  */
7978#include <stdlib.h>
7979
7980_ACEOF
7981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7982  $EGREP "free" >/dev/null 2>&1; then
7983  :
7984else
7985  ac_cv_header_stdc=no
7986fi
7987rm -f conftest*
7988
7989fi
7990
7991if test $ac_cv_header_stdc = yes; then
7992  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7993  if test "$cross_compiling" = yes; then
7994  :
7995else
7996  cat >conftest.$ac_ext <<_ACEOF
7997/* confdefs.h.  */
7998_ACEOF
7999cat confdefs.h >>conftest.$ac_ext
8000cat >>conftest.$ac_ext <<_ACEOF
8001/* end confdefs.h.  */
8002#include <ctype.h>
8003#if ((' ' & 0x0FF) == 0x020)
8004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8006#else
8007# define ISLOWER(c) \
8008                   (('a' <= (c) && (c) <= 'i') \
8009                     || ('j' <= (c) && (c) <= 'r') \
8010                     || ('s' <= (c) && (c) <= 'z'))
8011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8012#endif
8013
8014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8015int
8016main ()
8017{
8018  int i;
8019  for (i = 0; i < 256; i++)
8020    if (XOR (islower (i), ISLOWER (i))
8021        || toupper (i) != TOUPPER (i))
8022      exit(2);
8023  exit (0);
8024}
8025_ACEOF
8026rm -f conftest$ac_exeext
8027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028  (eval $ac_link) 2>&5
8029  ac_status=$?
8030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033  (eval $ac_try) 2>&5
8034  ac_status=$?
8035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036  (exit $ac_status); }; }; then
8037  :
8038else
8039  echo "$as_me: program exited with status $ac_status" >&5
8040echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043( exit $ac_status )
8044ac_cv_header_stdc=no
8045fi
8046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8047fi
8048fi
8049fi
8050echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8051echo "${ECHO_T}$ac_cv_header_stdc" >&6
8052if test $ac_cv_header_stdc = yes; then
8053
8054cat >>confdefs.h <<\_ACEOF
8055#define STDC_HEADERS 1
8056_ACEOF
8057
8058fi
8059
8060# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8071                  inttypes.h stdint.h unistd.h
8072do
8073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8074echo "$as_me:$LINENO: checking for $ac_header" >&5
8075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8076if eval "test \"\${$as_ac_Header+set}\" = set"; then
8077  echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079  cat >conftest.$ac_ext <<_ACEOF
8080/* confdefs.h.  */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h.  */
8085$ac_includes_default
8086
8087#include <$ac_header>
8088_ACEOF
8089rm -f conftest.$ac_objext
8090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091  (eval $ac_compile) 2>conftest.er1
8092  ac_status=$?
8093  grep -v '^ *+' conftest.er1 >conftest.err
8094  rm -f conftest.er1
8095  cat conftest.err >&5
8096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097  (exit $ac_status); } &&
8098         { ac_try='test -z "$ac_c_werror_flag"
8099                         || test ! -s conftest.err'
8100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101  (eval $ac_try) 2>&5
8102  ac_status=$?
8103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104  (exit $ac_status); }; } &&
8105         { ac_try='test -s conftest.$ac_objext'
8106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107  (eval $ac_try) 2>&5
8108  ac_status=$?
8109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110  (exit $ac_status); }; }; then
8111  eval "$as_ac_Header=yes"
8112else
8113  echo "$as_me: failed program was:" >&5
8114sed 's/^/| /' conftest.$ac_ext >&5
8115
8116eval "$as_ac_Header=no"
8117fi
8118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8119fi
8120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8122if test `eval echo '${'$as_ac_Header'}'` = yes; then
8123  cat >>confdefs.h <<_ACEOF
8124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8125_ACEOF
8126
8127fi
8128
8129done
8130
8131
8132
8133for ac_header in dlfcn.h
8134do
8135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8136if eval "test \"\${$as_ac_Header+set}\" = set"; then
8137  echo "$as_me:$LINENO: checking for $ac_header" >&5
8138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8139if eval "test \"\${$as_ac_Header+set}\" = set"; then
8140  echo $ECHO_N "(cached) $ECHO_C" >&6
8141fi
8142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8144else
8145  # Is the header compilable?
8146echo "$as_me:$LINENO: checking $ac_header usability" >&5
8147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8148cat >conftest.$ac_ext <<_ACEOF
8149/* confdefs.h.  */
8150_ACEOF
8151cat confdefs.h >>conftest.$ac_ext
8152cat >>conftest.$ac_ext <<_ACEOF
8153/* end confdefs.h.  */
8154$ac_includes_default
8155#include <$ac_header>
8156_ACEOF
8157rm -f conftest.$ac_objext
8158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8159  (eval $ac_compile) 2>conftest.er1
8160  ac_status=$?
8161  grep -v '^ *+' conftest.er1 >conftest.err
8162  rm -f conftest.er1
8163  cat conftest.err >&5
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); } &&
8166         { ac_try='test -z "$ac_c_werror_flag"
8167                         || test ! -s conftest.err'
8168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169  (eval $ac_try) 2>&5
8170  ac_status=$?
8171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172  (exit $ac_status); }; } &&
8173         { ac_try='test -s conftest.$ac_objext'
8174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175  (eval $ac_try) 2>&5
8176  ac_status=$?
8177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178  (exit $ac_status); }; }; then
8179  ac_header_compiler=yes
8180else
8181  echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184ac_header_compiler=no
8185fi
8186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8188echo "${ECHO_T}$ac_header_compiler" >&6
8189
8190# Is the header present?
8191echo "$as_me:$LINENO: checking $ac_header presence" >&5
8192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8193cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h.  */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h.  */
8199#include <$ac_header>
8200_ACEOF
8201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8202  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8203  ac_status=$?
8204  grep -v '^ *+' conftest.er1 >conftest.err
8205  rm -f conftest.er1
8206  cat conftest.err >&5
8207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208  (exit $ac_status); } >/dev/null; then
8209  if test -s conftest.err; then
8210    ac_cpp_err=$ac_c_preproc_warn_flag
8211    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8212  else
8213    ac_cpp_err=
8214  fi
8215else
8216  ac_cpp_err=yes
8217fi
8218if test -z "$ac_cpp_err"; then
8219  ac_header_preproc=yes
8220else
8221  echo "$as_me: failed program was:" >&5
8222sed 's/^/| /' conftest.$ac_ext >&5
8223
8224  ac_header_preproc=no
8225fi
8226rm -f conftest.err conftest.$ac_ext
8227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8228echo "${ECHO_T}$ac_header_preproc" >&6
8229
8230# So?  What about this header?
8231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8232  yes:no: )
8233    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8237    ac_header_preproc=yes
8238    ;;
8239  no:yes:* )
8240    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8242    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8243echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8244    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8246    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8247echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8250    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8252    (
8253      cat <<\_ASBOX
8254## --------------------------------------------------------------- ##
8255## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8256## --------------------------------------------------------------- ##
8257_ASBOX
8258    ) |
8259      sed "s/^/$as_me: WARNING:     /" >&2
8260    ;;
8261esac
8262echo "$as_me:$LINENO: checking for $ac_header" >&5
8263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8264if eval "test \"\${$as_ac_Header+set}\" = set"; then
8265  echo $ECHO_N "(cached) $ECHO_C" >&6
8266else
8267  eval "$as_ac_Header=\$ac_header_preproc"
8268fi
8269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8271
8272fi
8273if test `eval echo '${'$as_ac_Header'}'` = yes; then
8274  cat >>confdefs.h <<_ACEOF
8275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8276_ACEOF
8277
8278fi
8279
8280done
8281
8282ac_ext=cc
8283ac_cpp='$CXXCPP $CPPFLAGS'
8284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8287if test -n "$ac_tool_prefix"; then
8288  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8289  do
8290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8292echo "$as_me:$LINENO: checking for $ac_word" >&5
8293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8294if test "${ac_cv_prog_CXX+set}" = set; then
8295  echo $ECHO_N "(cached) $ECHO_C" >&6
8296else
8297  if test -n "$CXX"; then
8298  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303  IFS=$as_save_IFS
8304  test -z "$as_dir" && as_dir=.
8305  for ac_exec_ext in '' $ac_executable_extensions; do
8306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309    break 2
8310  fi
8311done
8312done
8313
8314fi
8315fi
8316CXX=$ac_cv_prog_CXX
8317if test -n "$CXX"; then
8318  echo "$as_me:$LINENO: result: $CXX" >&5
8319echo "${ECHO_T}$CXX" >&6
8320else
8321  echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323fi
8324
8325    test -n "$CXX" && break
8326  done
8327fi
8328if test -z "$CXX"; then
8329  ac_ct_CXX=$CXX
8330  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8331do
8332  # Extract the first word of "$ac_prog", so it can be a program name with args.
8333set dummy $ac_prog; ac_word=$2
8334echo "$as_me:$LINENO: checking for $ac_word" >&5
8335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8336if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8337  echo $ECHO_N "(cached) $ECHO_C" >&6
8338else
8339  if test -n "$ac_ct_CXX"; then
8340  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8341else
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345  IFS=$as_save_IFS
8346  test -z "$as_dir" && as_dir=.
8347  for ac_exec_ext in '' $ac_executable_extensions; do
8348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349    ac_cv_prog_ac_ct_CXX="$ac_prog"
8350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351    break 2
8352  fi
8353done
8354done
8355
8356fi
8357fi
8358ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8359if test -n "$ac_ct_CXX"; then
8360  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8361echo "${ECHO_T}$ac_ct_CXX" >&6
8362else
8363  echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365fi
8366
8367  test -n "$ac_ct_CXX" && break
8368done
8369test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8370
8371  CXX=$ac_ct_CXX
8372fi
8373
8374
8375# Provide some information about the compiler.
8376echo "$as_me:$LINENO:" \
8377     "checking for C++ compiler version" >&5
8378ac_compiler=`set X $ac_compile; echo $2`
8379{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8380  (eval $ac_compiler --version </dev/null >&5) 2>&5
8381  ac_status=$?
8382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383  (exit $ac_status); }
8384{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8385  (eval $ac_compiler -v </dev/null >&5) 2>&5
8386  ac_status=$?
8387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388  (exit $ac_status); }
8389{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8390  (eval $ac_compiler -V </dev/null >&5) 2>&5
8391  ac_status=$?
8392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393  (exit $ac_status); }
8394
8395echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8396echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8397if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8398  echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400  cat >conftest.$ac_ext <<_ACEOF
8401/* confdefs.h.  */
8402_ACEOF
8403cat confdefs.h >>conftest.$ac_ext
8404cat >>conftest.$ac_ext <<_ACEOF
8405/* end confdefs.h.  */
8406
8407#ifdef F77_DUMMY_MAIN
8408
8409#  ifdef __cplusplus
8410     extern "C"
8411#  endif
8412   int F77_DUMMY_MAIN() { return 1; }
8413
8414#endif
8415int
8416main ()
8417{
8418#ifndef __GNUC__
8419       choke me
8420#endif
8421
8422  ;
8423  return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
8427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428  (eval $ac_compile) 2>conftest.er1
8429  ac_status=$?
8430  grep -v '^ *+' conftest.er1 >conftest.err
8431  rm -f conftest.er1
8432  cat conftest.err >&5
8433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434  (exit $ac_status); } &&
8435         { ac_try='test -z "$ac_cxx_werror_flag"
8436                         || test ! -s conftest.err'
8437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438  (eval $ac_try) 2>&5
8439  ac_status=$?
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); }; } &&
8442         { ac_try='test -s conftest.$ac_objext'
8443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444  (eval $ac_try) 2>&5
8445  ac_status=$?
8446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447  (exit $ac_status); }; }; then
8448  ac_compiler_gnu=yes
8449else
8450  echo "$as_me: failed program was:" >&5
8451sed 's/^/| /' conftest.$ac_ext >&5
8452
8453ac_compiler_gnu=no
8454fi
8455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8456ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8457
8458fi
8459echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8460echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8461GXX=`test $ac_compiler_gnu = yes && echo yes`
8462ac_test_CXXFLAGS=${CXXFLAGS+set}
8463ac_save_CXXFLAGS=$CXXFLAGS
8464CXXFLAGS="-g"
8465echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8466echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8467if test "${ac_cv_prog_cxx_g+set}" = set; then
8468  echo $ECHO_N "(cached) $ECHO_C" >&6
8469else
8470  cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h.  */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h.  */
8476
8477#ifdef F77_DUMMY_MAIN
8478
8479#  ifdef __cplusplus
8480     extern "C"
8481#  endif
8482   int F77_DUMMY_MAIN() { return 1; }
8483
8484#endif
8485int
8486main ()
8487{
8488
8489  ;
8490  return 0;
8491}
8492_ACEOF
8493rm -f conftest.$ac_objext
8494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495  (eval $ac_compile) 2>conftest.er1
8496  ac_status=$?
8497  grep -v '^ *+' conftest.er1 >conftest.err
8498  rm -f conftest.er1
8499  cat conftest.err >&5
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } &&
8502         { ac_try='test -z "$ac_cxx_werror_flag"
8503                         || test ! -s conftest.err'
8504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505  (eval $ac_try) 2>&5
8506  ac_status=$?
8507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508  (exit $ac_status); }; } &&
8509         { ac_try='test -s conftest.$ac_objext'
8510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511  (eval $ac_try) 2>&5
8512  ac_status=$?
8513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514  (exit $ac_status); }; }; then
8515  ac_cv_prog_cxx_g=yes
8516else
8517  echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520ac_cv_prog_cxx_g=no
8521fi
8522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8523fi
8524echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8525echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8526if test "$ac_test_CXXFLAGS" = set; then
8527  CXXFLAGS=$ac_save_CXXFLAGS
8528elif test $ac_cv_prog_cxx_g = yes; then
8529  if test "$GXX" = yes; then
8530    CXXFLAGS="-g -O2"
8531  else
8532    CXXFLAGS="-g"
8533  fi
8534else
8535  if test "$GXX" = yes; then
8536    CXXFLAGS="-O2"
8537  else
8538    CXXFLAGS=
8539  fi
8540fi
8541for ac_declaration in \
8542   '' \
8543   'extern "C" void std::exit (int) throw (); using std::exit;' \
8544   'extern "C" void std::exit (int); using std::exit;' \
8545   'extern "C" void exit (int) throw ();' \
8546   'extern "C" void exit (int);' \
8547   'void exit (int);'
8548do
8549  cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h.  */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h.  */
8555$ac_declaration
8556#include <stdlib.h>
8557#ifdef F77_DUMMY_MAIN
8558
8559#  ifdef __cplusplus
8560     extern "C"
8561#  endif
8562   int F77_DUMMY_MAIN() { return 1; }
8563
8564#endif
8565int
8566main ()
8567{
8568exit (42);
8569  ;
8570  return 0;
8571}
8572_ACEOF
8573rm -f conftest.$ac_objext
8574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575  (eval $ac_compile) 2>conftest.er1
8576  ac_status=$?
8577  grep -v '^ *+' conftest.er1 >conftest.err
8578  rm -f conftest.er1
8579  cat conftest.err >&5
8580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581  (exit $ac_status); } &&
8582         { ac_try='test -z "$ac_cxx_werror_flag"
8583                         || test ! -s conftest.err'
8584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585  (eval $ac_try) 2>&5
8586  ac_status=$?
8587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588  (exit $ac_status); }; } &&
8589         { ac_try='test -s conftest.$ac_objext'
8590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591  (eval $ac_try) 2>&5
8592  ac_status=$?
8593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594  (exit $ac_status); }; }; then
8595  :
8596else
8597  echo "$as_me: failed program was:" >&5
8598sed 's/^/| /' conftest.$ac_ext >&5
8599
8600continue
8601fi
8602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8603  cat >conftest.$ac_ext <<_ACEOF
8604/* confdefs.h.  */
8605_ACEOF
8606cat confdefs.h >>conftest.$ac_ext
8607cat >>conftest.$ac_ext <<_ACEOF
8608/* end confdefs.h.  */
8609$ac_declaration
8610#ifdef F77_DUMMY_MAIN
8611
8612#  ifdef __cplusplus
8613     extern "C"
8614#  endif
8615   int F77_DUMMY_MAIN() { return 1; }
8616
8617#endif
8618int
8619main ()
8620{
8621exit (42);
8622  ;
8623  return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext
8627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8628  (eval $ac_compile) 2>conftest.er1
8629  ac_status=$?
8630  grep -v '^ *+' conftest.er1 >conftest.err
8631  rm -f conftest.er1
8632  cat conftest.err >&5
8633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634  (exit $ac_status); } &&
8635         { ac_try='test -z "$ac_cxx_werror_flag"
8636                         || test ! -s conftest.err'
8637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638  (eval $ac_try) 2>&5
8639  ac_status=$?
8640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641  (exit $ac_status); }; } &&
8642         { ac_try='test -s conftest.$ac_objext'
8643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8644  (eval $ac_try) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); }; }; then
8648  break
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653fi
8654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8655done
8656rm -f conftest*
8657if test -n "$ac_declaration"; then
8658  echo '#ifdef __cplusplus' >>confdefs.h
8659  echo $ac_declaration      >>confdefs.h
8660  echo '#endif'             >>confdefs.h
8661fi
8662
8663ac_ext=cc
8664ac_cpp='$CXXCPP $CPPFLAGS'
8665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8668
8669depcc="$CXX"  am_compiler_list=
8670
8671echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8672echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8673if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8677  # We make a subdir and do the tests there.  Otherwise we can end up
8678  # making bogus files that we don't know about and never remove.  For
8679  # instance it was reported that on HP-UX the gcc test will end up
8680  # making a dummy file named `D' -- because `-MD' means `put the output
8681  # in D'.
8682  mkdir conftest.dir
8683  # Copy depcomp to subdir because otherwise we won't find it if we're
8684  # using a relative directory.
8685  cp "$am_depcomp" conftest.dir
8686  cd conftest.dir
8687  # We will build objects and dependencies in a subdirectory because
8688  # it helps to detect inapplicable dependency modes.  For instance
8689  # both Tru64's cc and ICC support -MD to output dependencies as a
8690  # side effect of compilation, but ICC will put the dependencies in
8691  # the current directory while Tru64 will put them in the object
8692  # directory.
8693  mkdir sub
8694
8695  am_cv_CXX_dependencies_compiler_type=none
8696  if test "$am_compiler_list" = ""; then
8697     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8698  fi
8699  for depmode in $am_compiler_list; do
8700    # Setup a source with many dependencies, because some compilers
8701    # like to wrap large dependency lists on column 80 (with \), and
8702    # we should not choose a depcomp mode which is confused by this.
8703    #
8704    # We need to recreate these files for each test, as the compiler may
8705    # overwrite some of them when testing with obscure command lines.
8706    # This happens at least with the AIX C compiler.
8707    : > sub/conftest.c
8708    for i in 1 2 3 4 5 6; do
8709      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8710      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8711      # Solaris 8's {/usr,}/bin/sh.
8712      touch sub/conftst$i.h
8713    done
8714    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8715
8716    case $depmode in
8717    nosideeffect)
8718      # after this tag, mechanisms are not by side-effect, so they'll
8719      # only be used when explicitly requested
8720      if test "x$enable_dependency_tracking" = xyes; then
8721        continue
8722      else
8723        break
8724      fi
8725      ;;
8726    none) break ;;
8727    esac
8728    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8729    # mode.  It turns out that the SunPro C++ compiler does not properly
8730    # handle `-M -o', and we need to detect this.
8731    if depmode=$depmode \
8732       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8733       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8734       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8735         >/dev/null 2>conftest.err &&
8736       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8737       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8738       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8739      # icc doesn't choke on unknown options, it will just issue warnings
8740      # or remarks (even with -Werror).  So we grep stderr for any message
8741      # that says an option was ignored or not supported.
8742      # When given -MP, icc 7.0 and 7.1 complain thusly:
8743      #   icc: Command line warning: ignoring option '-M'; no argument required
8744      # The diagnosis changed in icc 8.0:
8745      #   icc: Command line remark: option '-MP' not supported
8746      if (grep 'ignoring option' conftest.err ||
8747          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8748        am_cv_CXX_dependencies_compiler_type=$depmode
8749        break
8750      fi
8751    fi
8752  done
8753
8754  cd ..
8755  rm -rf conftest.dir
8756else
8757  am_cv_CXX_dependencies_compiler_type=none
8758fi
8759
8760fi
8761echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8762echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8763CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8764
8765
8766
8767if
8768  test "x$enable_dependency_tracking" != xno \
8769  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8770  am__fastdepCXX_TRUE=
8771  am__fastdepCXX_FALSE='#'
8772else
8773  am__fastdepCXX_TRUE='#'
8774  am__fastdepCXX_FALSE=
8775fi
8776
8777
8778depcc="$CXX"  am_compiler_list=
8779
8780echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8781echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8782if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8783  echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8786  # We make a subdir and do the tests there.  Otherwise we can end up
8787  # making bogus files that we don't know about and never remove.  For
8788  # instance it was reported that on HP-UX the gcc test will end up
8789  # making a dummy file named `D' -- because `-MD' means `put the output
8790  # in D'.
8791  mkdir conftest.dir
8792  # Copy depcomp to subdir because otherwise we won't find it if we're
8793  # using a relative directory.
8794  cp "$am_depcomp" conftest.dir
8795  cd conftest.dir
8796  # We will build objects and dependencies in a subdirectory because
8797  # it helps to detect inapplicable dependency modes.  For instance
8798  # both Tru64's cc and ICC support -MD to output dependencies as a
8799  # side effect of compilation, but ICC will put the dependencies in
8800  # the current directory while Tru64 will put them in the object
8801  # directory.
8802  mkdir sub
8803
8804  am_cv_CXX_dependencies_compiler_type=none
8805  if test "$am_compiler_list" = ""; then
8806     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8807  fi
8808  for depmode in $am_compiler_list; do
8809    # Setup a source with many dependencies, because some compilers
8810    # like to wrap large dependency lists on column 80 (with \), and
8811    # we should not choose a depcomp mode which is confused by this.
8812    #
8813    # We need to recreate these files for each test, as the compiler may
8814    # overwrite some of them when testing with obscure command lines.
8815    # This happens at least with the AIX C compiler.
8816    : > sub/conftest.c
8817    for i in 1 2 3 4 5 6; do
8818      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8819      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8820      # Solaris 8's {/usr,}/bin/sh.
8821      touch sub/conftst$i.h
8822    done
8823    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8824
8825    case $depmode in
8826    nosideeffect)
8827      # after this tag, mechanisms are not by side-effect, so they'll
8828      # only be used when explicitly requested
8829      if test "x$enable_dependency_tracking" = xyes; then
8830        continue
8831      else
8832        break
8833      fi
8834      ;;
8835    none) break ;;
8836    esac
8837    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8838    # mode.  It turns out that the SunPro C++ compiler does not properly
8839    # handle `-M -o', and we need to detect this.
8840    if depmode=$depmode \
8841       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8842       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8843       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8844         >/dev/null 2>conftest.err &&
8845       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8846       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8847       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8848      # icc doesn't choke on unknown options, it will just issue warnings
8849      # or remarks (even with -Werror).  So we grep stderr for any message
8850      # that says an option was ignored or not supported.
8851      # When given -MP, icc 7.0 and 7.1 complain thusly:
8852      #   icc: Command line warning: ignoring option '-M'; no argument required
8853      # The diagnosis changed in icc 8.0:
8854      #   icc: Command line remark: option '-MP' not supported
8855      if (grep 'ignoring option' conftest.err ||
8856          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8857        am_cv_CXX_dependencies_compiler_type=$depmode
8858        break
8859      fi
8860    fi
8861  done
8862
8863  cd ..
8864  rm -rf conftest.dir
8865else
8866  am_cv_CXX_dependencies_compiler_type=none
8867fi
8868
8869fi
8870echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8871echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8872CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8873
8874
8875
8876if
8877  test "x$enable_dependency_tracking" != xno \
8878  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8879  am__fastdepCXX_TRUE=
8880  am__fastdepCXX_FALSE='#'
8881else
8882  am__fastdepCXX_TRUE='#'
8883  am__fastdepCXX_FALSE=
8884fi
8885
8886
8887
8888
8889if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8890    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8891    (test "X$CXX" != "Xg++"))) ; then
8892  ac_ext=cc
8893ac_cpp='$CXXCPP $CPPFLAGS'
8894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8897echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8898echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8899if test -z "$CXXCPP"; then
8900  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8901  echo $ECHO_N "(cached) $ECHO_C" >&6
8902else
8903      # Double quotes because CXXCPP needs to be expanded
8904    for CXXCPP in "$CXX -E" "/lib/cpp"
8905    do
8906      ac_preproc_ok=false
8907for ac_cxx_preproc_warn_flag in '' yes
8908do
8909  # Use a header file that comes with gcc, so configuring glibc
8910  # with a fresh cross-compiler works.
8911  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912  # <limits.h> exists even on freestanding compilers.
8913  # On the NeXT, cc -E runs the code through the compiler's parser,
8914  # not just through cpp. "Syntax error" is here to catch this case.
8915  cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h.  */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h.  */
8921#ifdef __STDC__
8922# include <limits.h>
8923#else
8924# include <assert.h>
8925#endif
8926                     Syntax error
8927_ACEOF
8928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8930  ac_status=$?
8931  grep -v '^ *+' conftest.er1 >conftest.err
8932  rm -f conftest.er1
8933  cat conftest.err >&5
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); } >/dev/null; then
8936  if test -s conftest.err; then
8937    ac_cpp_err=$ac_cxx_preproc_warn_flag
8938    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8939  else
8940    ac_cpp_err=
8941  fi
8942else
8943  ac_cpp_err=yes
8944fi
8945if test -z "$ac_cpp_err"; then
8946  :
8947else
8948  echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
8951  # Broken: fails on valid input.
8952continue
8953fi
8954rm -f conftest.err conftest.$ac_ext
8955
8956  # OK, works on sane cases.  Now check whether non-existent headers
8957  # can be detected and how.
8958  cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h.  */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h.  */
8964#include <ac_nonexistent.h>
8965_ACEOF
8966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8967  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8968  ac_status=$?
8969  grep -v '^ *+' conftest.er1 >conftest.err
8970  rm -f conftest.er1
8971  cat conftest.err >&5
8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973  (exit $ac_status); } >/dev/null; then
8974  if test -s conftest.err; then
8975    ac_cpp_err=$ac_cxx_preproc_warn_flag
8976    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8977  else
8978    ac_cpp_err=
8979  fi
8980else
8981  ac_cpp_err=yes
8982fi
8983if test -z "$ac_cpp_err"; then
8984  # Broken: success on invalid input.
8985continue
8986else
8987  echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990  # Passes both tests.
8991ac_preproc_ok=:
8992break
8993fi
8994rm -f conftest.err conftest.$ac_ext
8995
8996done
8997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8998rm -f conftest.err conftest.$ac_ext
8999if $ac_preproc_ok; then
9000  break
9001fi
9002
9003    done
9004    ac_cv_prog_CXXCPP=$CXXCPP
9005
9006fi
9007  CXXCPP=$ac_cv_prog_CXXCPP
9008else
9009  ac_cv_prog_CXXCPP=$CXXCPP
9010fi
9011echo "$as_me:$LINENO: result: $CXXCPP" >&5
9012echo "${ECHO_T}$CXXCPP" >&6
9013ac_preproc_ok=false
9014for ac_cxx_preproc_warn_flag in '' yes
9015do
9016  # Use a header file that comes with gcc, so configuring glibc
9017  # with a fresh cross-compiler works.
9018  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9019  # <limits.h> exists even on freestanding compilers.
9020  # On the NeXT, cc -E runs the code through the compiler's parser,
9021  # not just through cpp. "Syntax error" is here to catch this case.
9022  cat >conftest.$ac_ext <<_ACEOF
9023/* confdefs.h.  */
9024_ACEOF
9025cat confdefs.h >>conftest.$ac_ext
9026cat >>conftest.$ac_ext <<_ACEOF
9027/* end confdefs.h.  */
9028#ifdef __STDC__
9029# include <limits.h>
9030#else
9031# include <assert.h>
9032#endif
9033                     Syntax error
9034_ACEOF
9035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9036  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9037  ac_status=$?
9038  grep -v '^ *+' conftest.er1 >conftest.err
9039  rm -f conftest.er1
9040  cat conftest.err >&5
9041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042  (exit $ac_status); } >/dev/null; then
9043  if test -s conftest.err; then
9044    ac_cpp_err=$ac_cxx_preproc_warn_flag
9045    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9046  else
9047    ac_cpp_err=
9048  fi
9049else
9050  ac_cpp_err=yes
9051fi
9052if test -z "$ac_cpp_err"; then
9053  :
9054else
9055  echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058  # Broken: fails on valid input.
9059continue
9060fi
9061rm -f conftest.err conftest.$ac_ext
9062
9063  # OK, works on sane cases.  Now check whether non-existent headers
9064  # can be detected and how.
9065  cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h.  */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h.  */
9071#include <ac_nonexistent.h>
9072_ACEOF
9073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9075  ac_status=$?
9076  grep -v '^ *+' conftest.er1 >conftest.err
9077  rm -f conftest.er1
9078  cat conftest.err >&5
9079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080  (exit $ac_status); } >/dev/null; then
9081  if test -s conftest.err; then
9082    ac_cpp_err=$ac_cxx_preproc_warn_flag
9083    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9084  else
9085    ac_cpp_err=
9086  fi
9087else
9088  ac_cpp_err=yes
9089fi
9090if test -z "$ac_cpp_err"; then
9091  # Broken: success on invalid input.
9092continue
9093else
9094  echo "$as_me: failed program was:" >&5
9095sed 's/^/| /' conftest.$ac_ext >&5
9096
9097  # Passes both tests.
9098ac_preproc_ok=:
9099break
9100fi
9101rm -f conftest.err conftest.$ac_ext
9102
9103done
9104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9105rm -f conftest.err conftest.$ac_ext
9106if $ac_preproc_ok; then
9107  :
9108else
9109  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9110See \`config.log' for more details." >&5
9111echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9112See \`config.log' for more details." >&2;}
9113   { (exit 1); exit 1; }; }
9114fi
9115
9116ac_ext=cc
9117ac_cpp='$CXXCPP $CPPFLAGS'
9118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9121
9122fi
9123
9124
9125
9126# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9127
9128# find the maximum length of command line arguments
9129echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9130echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9131if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9132  echo $ECHO_N "(cached) $ECHO_C" >&6
9133else
9134    i=0
9135  teststring="ABCD"
9136
9137  case $build_os in
9138  msdosdjgpp*)
9139    # On DJGPP, this test can blow up pretty badly due to problems in libc
9140    # (any single argument exceeding 2000 bytes causes a buffer overrun
9141    # during glob expansion).  Even if it were fixed, the result of this
9142    # check would be larger than it should be.
9143    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9144    ;;
9145
9146  gnu*)
9147    # Under GNU Hurd, this test is not required because there is
9148    # no limit to the length of command line arguments.
9149    # Libtool will interpret -1 as no limit whatsoever
9150    lt_cv_sys_max_cmd_len=-1;
9151    ;;
9152
9153  cygwin* | mingw*)
9154    # On Win9x/ME, this test blows up -- it succeeds, but takes
9155    # about 5 minutes as the teststring grows exponentially.
9156    # Worse, since 9x/ME are not pre-emptively multitasking,
9157    # you end up with a "frozen" computer, even though with patience
9158    # the test eventually succeeds (with a max line length of 256k).
9159    # Instead, let's just punt: use the minimum linelength reported by
9160    # all of the supported platforms: 8192 (on NT/2K/XP).
9161    lt_cv_sys_max_cmd_len=8192;
9162    ;;
9163
9164  amigaos*)
9165    # On AmigaOS with pdksh, this test takes hours, literally.
9166    # So we just punt and use a minimum line length of 8192.
9167    lt_cv_sys_max_cmd_len=8192;
9168    ;;
9169
9170  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9171    # This has been around since 386BSD, at least.  Likely further.
9172    if test -x /sbin/sysctl; then
9173      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9174    elif test -x /usr/sbin/sysctl; then
9175      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9176    else
9177      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9178    fi
9179    # And add a safety zone
9180    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9181    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9182    ;;
9183
9184  interix*)
9185    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9186    lt_cv_sys_max_cmd_len=196608
9187    ;;
9188
9189  osf*)
9190    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9191    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9192    # nice to cause kernel panics so lets avoid the loop below.
9193    # First set a reasonable default.
9194    lt_cv_sys_max_cmd_len=16384
9195    #
9196    if test -x /sbin/sysconfig; then
9197      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9198        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9199      esac
9200    fi
9201    ;;
9202  sco3.2v5*)
9203    lt_cv_sys_max_cmd_len=102400
9204    ;;
9205  sysv5* | sco5v6* | sysv4.2uw2*)
9206    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9207    if test -n "$kargmax"; then
9208      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9209    else
9210      lt_cv_sys_max_cmd_len=32768
9211    fi
9212    ;;
9213  *)
9214    # If test is not a shell built-in, we'll probably end up computing a
9215    # maximum length that is only half of the actual maximum length, but
9216    # we can't tell.
9217    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9218    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9219               = "XX$teststring") >/dev/null 2>&1 &&
9220            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9221            lt_cv_sys_max_cmd_len=$new_result &&
9222            test $i != 17 # 1/2 MB should be enough
9223    do
9224      i=`expr $i + 1`
9225      teststring=$teststring$teststring
9226    done
9227    teststring=
9228    # Add a significant safety factor because C++ compilers can tack on massive
9229    # amounts of additional arguments before passing them to the linker.
9230    # It appears as though 1/2 is a usable value.
9231    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9232    ;;
9233  esac
9234
9235fi
9236
9237if test -n $lt_cv_sys_max_cmd_len ; then
9238  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9239echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9240else
9241  echo "$as_me:$LINENO: result: none" >&5
9242echo "${ECHO_T}none" >&6
9243fi
9244
9245
9246
9247
9248# Check for command to grab the raw symbol name followed by C symbol from nm.
9249echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9250echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9251if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9252  echo $ECHO_N "(cached) $ECHO_C" >&6
9253else
9254
9255# These are sane defaults that work on at least a few old systems.
9256# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9257
9258# Character class describing NM global symbol codes.
9259symcode='[BCDEGRST]'
9260
9261# Regexp to match symbols that can be accessed directly from C.
9262sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9263
9264# Transform an extracted symbol line into a proper C declaration
9265lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9266
9267# Transform an extracted symbol line into symbol name and symbol address
9268lt_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'"
9269
9270# Define system-specific variables.
9271case $host_os in
9272aix*)
9273  symcode='[BCDT]'
9274  ;;
9275cygwin* | mingw* | pw32*)
9276  symcode='[ABCDGISTW]'
9277  ;;
9278hpux*) # Its linker distinguishes data from code symbols
9279  if test "$host_cpu" = ia64; then
9280    symcode='[ABCDEGRST]'
9281  fi
9282  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9283  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'"
9284  ;;
9285linux*)
9286  if test "$host_cpu" = ia64; then
9287    symcode='[ABCDGIRSTW]'
9288    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9289    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'"
9290  fi
9291  ;;
9292irix* | nonstopux*)
9293  symcode='[BCDEGRST]'
9294  ;;
9295osf*)
9296  symcode='[BCDEGQRST]'
9297  ;;
9298solaris*)
9299  symcode='[BDRT]'
9300  ;;
9301sco3.2v5*)
9302  symcode='[DT]'
9303  ;;
9304sysv4.2uw2*)
9305  symcode='[DT]'
9306  ;;
9307sysv5* | sco5v6* | unixware* | OpenUNIX*)
9308  symcode='[ABDT]'
9309  ;;
9310sysv4)
9311  symcode='[DFNSTU]'
9312  ;;
9313esac
9314
9315# Handle CRLF in mingw tool chain
9316opt_cr=
9317case $build_os in
9318mingw*)
9319  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9320  ;;
9321esac
9322
9323# If we're using GNU nm, then use its standard symbol codes.
9324case `$NM -V 2>&1` in
9325*GNU* | *'with BFD'*)
9326  symcode='[ABCDGIRSTW]' ;;
9327esac
9328
9329# Try without a prefix undercore, then with it.
9330for ac_symprfx in "" "_"; do
9331
9332  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9333  symxfrm="\\1 $ac_symprfx\\2 \\2"
9334
9335  # Write the raw and C identifiers.
9336  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9337
9338  # Check to see that the pipe works correctly.
9339  pipe_works=no
9340
9341  rm -f conftest*
9342  cat > conftest.$ac_ext <<EOF
9343#ifdef __cplusplus
9344extern "C" {
9345#endif
9346char nm_test_var;
9347void nm_test_func(){}
9348#ifdef __cplusplus
9349}
9350#endif
9351int main(){nm_test_var='a';nm_test_func();return(0);}
9352EOF
9353
9354  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9355  (eval $ac_compile) 2>&5
9356  ac_status=$?
9357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358  (exit $ac_status); }; then
9359    # Now try to grab the symbols.
9360    nlist=conftest.nm
9361    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9362  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9363  ac_status=$?
9364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365  (exit $ac_status); } && test -s "$nlist"; then
9366      # Try sorting and uniquifying the output.
9367      if sort "$nlist" | uniq > "$nlist"T; then
9368        mv -f "$nlist"T "$nlist"
9369      else
9370        rm -f "$nlist"T
9371      fi
9372
9373      # Make sure that we snagged all the symbols we need.
9374      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9375        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9376          cat <<EOF > conftest.$ac_ext
9377#ifdef __cplusplus
9378extern "C" {
9379#endif
9380
9381EOF
9382          # Now generate the symbol file.
9383          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9384
9385          cat <<EOF >> conftest.$ac_ext
9386#if defined (__STDC__) && __STDC__
9387# define lt_ptr_t void *
9388#else
9389# define lt_ptr_t char *
9390# define const
9391#endif
9392
9393/* The mapping between symbol names and symbols. */
9394const struct {
9395  const char *name;
9396  lt_ptr_t address;
9397}
9398lt_preloaded_symbols[] =
9399{
9400EOF
9401          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9402          cat <<\EOF >> conftest.$ac_ext
9403  {0, (lt_ptr_t) 0}
9404};
9405
9406#ifdef __cplusplus
9407}
9408#endif
9409EOF
9410          # Now try linking the two files.
9411          mv conftest.$ac_objext conftstm.$ac_objext
9412          lt_save_LIBS="$LIBS"
9413          lt_save_CFLAGS="$CFLAGS"
9414          LIBS="conftstm.$ac_objext"
9415          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9416          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9417  (eval $ac_link) 2>&5
9418  ac_status=$?
9419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9421            pipe_works=yes
9422          fi
9423          LIBS="$lt_save_LIBS"
9424          CFLAGS="$lt_save_CFLAGS"
9425        else
9426          echo "cannot find nm_test_func in $nlist" >&5
9427        fi
9428      else
9429        echo "cannot find nm_test_var in $nlist" >&5
9430      fi
9431    else
9432      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9433    fi
9434  else
9435    echo "$progname: failed program was:" >&5
9436    cat conftest.$ac_ext >&5
9437  fi
9438  rm -f conftest* conftst*
9439
9440  # Do not use the global_symbol_pipe unless it works.
9441  if test "$pipe_works" = yes; then
9442    break
9443  else
9444    lt_cv_sys_global_symbol_pipe=
9445  fi
9446done
9447
9448fi
9449
9450if test -z "$lt_cv_sys_global_symbol_pipe"; then
9451  lt_cv_sys_global_symbol_to_cdecl=
9452fi
9453if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9454  echo "$as_me:$LINENO: result: failed" >&5
9455echo "${ECHO_T}failed" >&6
9456else
9457  echo "$as_me:$LINENO: result: ok" >&5
9458echo "${ECHO_T}ok" >&6
9459fi
9460
9461echo "$as_me:$LINENO: checking for objdir" >&5
9462echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9463if test "${lt_cv_objdir+set}" = set; then
9464  echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466  rm -f .libs 2>/dev/null
9467mkdir .libs 2>/dev/null
9468if test -d .libs; then
9469  lt_cv_objdir=.libs
9470else
9471  # MS-DOS does not allow filenames that begin with a dot.
9472  lt_cv_objdir=_libs
9473fi
9474rmdir .libs 2>/dev/null
9475fi
9476echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9477echo "${ECHO_T}$lt_cv_objdir" >&6
9478objdir=$lt_cv_objdir
9479
9480
9481
9482
9483
9484case $host_os in
9485aix3*)
9486  # AIX sometimes has problems with the GCC collect2 program.  For some
9487  # reason, if we set the COLLECT_NAMES environment variable, the problems
9488  # vanish in a puff of smoke.
9489  if test "X${COLLECT_NAMES+set}" != Xset; then
9490    COLLECT_NAMES=
9491    export COLLECT_NAMES
9492  fi
9493  ;;
9494esac
9495
9496# Sed substitution that helps us do robust quoting.  It backslashifies
9497# metacharacters that are still active within double-quoted strings.
9498Xsed='sed -e 1s/^X//'
9499sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9500
9501# Same as above, but do not quote variable references.
9502double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9503
9504# Sed substitution to delay expansion of an escaped shell variable in a
9505# double_quote_subst'ed string.
9506delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9507
9508# Sed substitution to avoid accidental globbing in evaled expressions
9509no_glob_subst='s/\*/\\\*/g'
9510
9511# Constants:
9512rm="rm -f"
9513
9514# Global variables:
9515default_ofile=libtool
9516can_build_shared=yes
9517
9518# All known linkers require a `.a' archive for static linking (except MSVC,
9519# which needs '.lib').
9520libext=a
9521ltmain="$ac_aux_dir/ltmain.sh"
9522ofile="$default_ofile"
9523with_gnu_ld="$lt_cv_prog_gnu_ld"
9524
9525if test -n "$ac_tool_prefix"; then
9526  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9527set dummy ${ac_tool_prefix}ar; ac_word=$2
9528echo "$as_me:$LINENO: checking for $ac_word" >&5
9529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9530if test "${ac_cv_prog_AR+set}" = set; then
9531  echo $ECHO_N "(cached) $ECHO_C" >&6
9532else
9533  if test -n "$AR"; then
9534  ac_cv_prog_AR="$AR" # Let the user override the test.
9535else
9536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537for as_dir in $PATH
9538do
9539  IFS=$as_save_IFS
9540  test -z "$as_dir" && as_dir=.
9541  for ac_exec_ext in '' $ac_executable_extensions; do
9542  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543    ac_cv_prog_AR="${ac_tool_prefix}ar"
9544    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9545    break 2
9546  fi
9547done
9548done
9549
9550fi
9551fi
9552AR=$ac_cv_prog_AR
9553if test -n "$AR"; then
9554  echo "$as_me:$LINENO: result: $AR" >&5
9555echo "${ECHO_T}$AR" >&6
9556else
9557  echo "$as_me:$LINENO: result: no" >&5
9558echo "${ECHO_T}no" >&6
9559fi
9560
9561fi
9562if test -z "$ac_cv_prog_AR"; then
9563  ac_ct_AR=$AR
9564  # Extract the first word of "ar", so it can be a program name with args.
9565set dummy ar; ac_word=$2
9566echo "$as_me:$LINENO: checking for $ac_word" >&5
9567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9568if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9569  echo $ECHO_N "(cached) $ECHO_C" >&6
9570else
9571  if test -n "$ac_ct_AR"; then
9572  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9573else
9574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575for as_dir in $PATH
9576do
9577  IFS=$as_save_IFS
9578  test -z "$as_dir" && as_dir=.
9579  for ac_exec_ext in '' $ac_executable_extensions; do
9580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581    ac_cv_prog_ac_ct_AR="ar"
9582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9583    break 2
9584  fi
9585done
9586done
9587
9588  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9589fi
9590fi
9591ac_ct_AR=$ac_cv_prog_ac_ct_AR
9592if test -n "$ac_ct_AR"; then
9593  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9594echo "${ECHO_T}$ac_ct_AR" >&6
9595else
9596  echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
9598fi
9599
9600  AR=$ac_ct_AR
9601else
9602  AR="$ac_cv_prog_AR"
9603fi
9604
9605if test -n "$ac_tool_prefix"; then
9606  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9607set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9608echo "$as_me:$LINENO: checking for $ac_word" >&5
9609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9610if test "${ac_cv_prog_RANLIB+set}" = set; then
9611  echo $ECHO_N "(cached) $ECHO_C" >&6
9612else
9613  if test -n "$RANLIB"; then
9614  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9615else
9616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617for as_dir in $PATH
9618do
9619  IFS=$as_save_IFS
9620  test -z "$as_dir" && as_dir=.
9621  for ac_exec_ext in '' $ac_executable_extensions; do
9622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9623    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9625    break 2
9626  fi
9627done
9628done
9629
9630fi
9631fi
9632RANLIB=$ac_cv_prog_RANLIB
9633if test -n "$RANLIB"; then
9634  echo "$as_me:$LINENO: result: $RANLIB" >&5
9635echo "${ECHO_T}$RANLIB" >&6
9636else
9637  echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
9639fi
9640
9641fi
9642if test -z "$ac_cv_prog_RANLIB"; then
9643  ac_ct_RANLIB=$RANLIB
9644  # Extract the first word of "ranlib", so it can be a program name with args.
9645set dummy ranlib; ac_word=$2
9646echo "$as_me:$LINENO: checking for $ac_word" >&5
9647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9648if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9649  echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651  if test -n "$ac_ct_RANLIB"; then
9652  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9653else
9654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655for as_dir in $PATH
9656do
9657  IFS=$as_save_IFS
9658  test -z "$as_dir" && as_dir=.
9659  for ac_exec_ext in '' $ac_executable_extensions; do
9660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661    ac_cv_prog_ac_ct_RANLIB="ranlib"
9662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9663    break 2
9664  fi
9665done
9666done
9667
9668  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9669fi
9670fi
9671ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9672if test -n "$ac_ct_RANLIB"; then
9673  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9674echo "${ECHO_T}$ac_ct_RANLIB" >&6
9675else
9676  echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678fi
9679
9680  RANLIB=$ac_ct_RANLIB
9681else
9682  RANLIB="$ac_cv_prog_RANLIB"
9683fi
9684
9685if test -n "$ac_tool_prefix"; then
9686  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9687set dummy ${ac_tool_prefix}strip; ac_word=$2
9688echo "$as_me:$LINENO: checking for $ac_word" >&5
9689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9690if test "${ac_cv_prog_STRIP+set}" = set; then
9691  echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693  if test -n "$STRIP"; then
9694  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9695else
9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697for as_dir in $PATH
9698do
9699  IFS=$as_save_IFS
9700  test -z "$as_dir" && as_dir=.
9701  for ac_exec_ext in '' $ac_executable_extensions; do
9702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9703    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9705    break 2
9706  fi
9707done
9708done
9709
9710fi
9711fi
9712STRIP=$ac_cv_prog_STRIP
9713if test -n "$STRIP"; then
9714  echo "$as_me:$LINENO: result: $STRIP" >&5
9715echo "${ECHO_T}$STRIP" >&6
9716else
9717  echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719fi
9720
9721fi
9722if test -z "$ac_cv_prog_STRIP"; then
9723  ac_ct_STRIP=$STRIP
9724  # Extract the first word of "strip", so it can be a program name with args.
9725set dummy strip; ac_word=$2
9726echo "$as_me:$LINENO: checking for $ac_word" >&5
9727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9728if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9729  echo $ECHO_N "(cached) $ECHO_C" >&6
9730else
9731  if test -n "$ac_ct_STRIP"; then
9732  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9733else
9734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735for as_dir in $PATH
9736do
9737  IFS=$as_save_IFS
9738  test -z "$as_dir" && as_dir=.
9739  for ac_exec_ext in '' $ac_executable_extensions; do
9740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9741    ac_cv_prog_ac_ct_STRIP="strip"
9742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743    break 2
9744  fi
9745done
9746done
9747
9748  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9749fi
9750fi
9751ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9752if test -n "$ac_ct_STRIP"; then
9753  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9754echo "${ECHO_T}$ac_ct_STRIP" >&6
9755else
9756  echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758fi
9759
9760  STRIP=$ac_ct_STRIP
9761else
9762  STRIP="$ac_cv_prog_STRIP"
9763fi
9764
9765
9766old_CC="$CC"
9767old_CFLAGS="$CFLAGS"
9768
9769# Set sane defaults for various variables
9770test -z "$AR" && AR=ar
9771test -z "$AR_FLAGS" && AR_FLAGS=cru
9772test -z "$AS" && AS=as
9773test -z "$CC" && CC=cc
9774test -z "$LTCC" && LTCC=$CC
9775test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9776test -z "$DLLTOOL" && DLLTOOL=dlltool
9777test -z "$LD" && LD=ld
9778test -z "$LN_S" && LN_S="ln -s"
9779test -z "$MAGIC_CMD" && MAGIC_CMD=file
9780test -z "$NM" && NM=nm
9781test -z "$SED" && SED=sed
9782test -z "$OBJDUMP" && OBJDUMP=objdump
9783test -z "$RANLIB" && RANLIB=:
9784test -z "$STRIP" && STRIP=:
9785test -z "$ac_objext" && ac_objext=o
9786
9787# Determine commands to create old-style static archives.
9788old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9789old_postinstall_cmds='chmod 644 $oldlib'
9790old_postuninstall_cmds=
9791
9792if test -n "$RANLIB"; then
9793  case $host_os in
9794  openbsd*)
9795    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9796    ;;
9797  *)
9798    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9799    ;;
9800  esac
9801  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9802fi
9803
9804for cc_temp in $compiler""; do
9805  case $cc_temp in
9806    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9807    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9808    \-*) ;;
9809    *) break;;
9810  esac
9811done
9812cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9813
9814
9815# Only perform the check for file, if the check method requires it
9816case $deplibs_check_method in
9817file_magic*)
9818  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9819    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9820echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9821if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9822  echo $ECHO_N "(cached) $ECHO_C" >&6
9823else
9824  case $MAGIC_CMD in
9825[\\/*] |  ?:[\\/]*)
9826  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9827  ;;
9828*)
9829  lt_save_MAGIC_CMD="$MAGIC_CMD"
9830  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9831  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9832  for ac_dir in $ac_dummy; do
9833    IFS="$lt_save_ifs"
9834    test -z "$ac_dir" && ac_dir=.
9835    if test -f $ac_dir/${ac_tool_prefix}file; then
9836      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9837      if test -n "$file_magic_test_file"; then
9838        case $deplibs_check_method in
9839        "file_magic "*)
9840          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9841          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9842          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9843            $EGREP "$file_magic_regex" > /dev/null; then
9844            :
9845          else
9846            cat <<EOF 1>&2
9847
9848*** Warning: the command libtool uses to detect shared libraries,
9849*** $file_magic_cmd, produces output that libtool cannot recognize.
9850*** The result is that libtool may fail to recognize shared libraries
9851*** as such.  This will affect the creation of libtool libraries that
9852*** depend on shared libraries, but programs linked with such libtool
9853*** libraries will work regardless of this problem.  Nevertheless, you
9854*** may want to report the problem to your system manager and/or to
9855*** bug-libtool@gnu.org
9856
9857EOF
9858          fi ;;
9859        esac
9860      fi
9861      break
9862    fi
9863  done
9864  IFS="$lt_save_ifs"
9865  MAGIC_CMD="$lt_save_MAGIC_CMD"
9866  ;;
9867esac
9868fi
9869
9870MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9871if test -n "$MAGIC_CMD"; then
9872  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9873echo "${ECHO_T}$MAGIC_CMD" >&6
9874else
9875  echo "$as_me:$LINENO: result: no" >&5
9876echo "${ECHO_T}no" >&6
9877fi
9878
9879if test -z "$lt_cv_path_MAGIC_CMD"; then
9880  if test -n "$ac_tool_prefix"; then
9881    echo "$as_me:$LINENO: checking for file" >&5
9882echo $ECHO_N "checking for file... $ECHO_C" >&6
9883if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9884  echo $ECHO_N "(cached) $ECHO_C" >&6
9885else
9886  case $MAGIC_CMD in
9887[\\/*] |  ?:[\\/]*)
9888  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9889  ;;
9890*)
9891  lt_save_MAGIC_CMD="$MAGIC_CMD"
9892  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9893  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9894  for ac_dir in $ac_dummy; do
9895    IFS="$lt_save_ifs"
9896    test -z "$ac_dir" && ac_dir=.
9897    if test -f $ac_dir/file; then
9898      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9899      if test -n "$file_magic_test_file"; then
9900        case $deplibs_check_method in
9901        "file_magic "*)
9902          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9903          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9904          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9905            $EGREP "$file_magic_regex" > /dev/null; then
9906            :
9907          else
9908            cat <<EOF 1>&2
9909
9910*** Warning: the command libtool uses to detect shared libraries,
9911*** $file_magic_cmd, produces output that libtool cannot recognize.
9912*** The result is that libtool may fail to recognize shared libraries
9913*** as such.  This will affect the creation of libtool libraries that
9914*** depend on shared libraries, but programs linked with such libtool
9915*** libraries will work regardless of this problem.  Nevertheless, you
9916*** may want to report the problem to your system manager and/or to
9917*** bug-libtool@gnu.org
9918
9919EOF
9920          fi ;;
9921        esac
9922      fi
9923      break
9924    fi
9925  done
9926  IFS="$lt_save_ifs"
9927  MAGIC_CMD="$lt_save_MAGIC_CMD"
9928  ;;
9929esac
9930fi
9931
9932MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9933if test -n "$MAGIC_CMD"; then
9934  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9935echo "${ECHO_T}$MAGIC_CMD" >&6
9936else
9937  echo "$as_me:$LINENO: result: no" >&5
9938echo "${ECHO_T}no" >&6
9939fi
9940
9941  else
9942    MAGIC_CMD=:
9943  fi
9944fi
9945
9946  fi
9947  ;;
9948esac
9949
9950enable_dlopen=no
9951enable_win32_dll=no
9952
9953# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9954if test "${enable_libtool_lock+set}" = set; then
9955  enableval="$enable_libtool_lock"
9956
9957fi;
9958test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9959
9960
9961# Check whether --with-pic or --without-pic was given.
9962if test "${with_pic+set}" = set; then
9963  withval="$with_pic"
9964  pic_mode="$withval"
9965else
9966  pic_mode=default
9967fi;
9968test -z "$pic_mode" && pic_mode=default
9969
9970# Use C for the default configuration in the libtool script
9971tagname=
9972lt_save_CC="$CC"
9973ac_ext=c
9974ac_cpp='$CPP $CPPFLAGS'
9975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9977ac_compiler_gnu=$ac_cv_c_compiler_gnu
9978
9979
9980# Source file extension for C test sources.
9981ac_ext=c
9982
9983# Object file extension for compiled C test sources.
9984objext=o
9985objext=$objext
9986
9987# Code to be used in simple compile tests
9988lt_simple_compile_test_code="int some_variable = 0;\n"
9989
9990# Code to be used in simple link tests
9991lt_simple_link_test_code='int main(){return(0);}\n'
9992
9993
9994# If no C compiler was specified, use CC.
9995LTCC=${LTCC-"$CC"}
9996
9997# If no C compiler flags were specified, use CFLAGS.
9998LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9999
10000# Allow CC to be a program name with arguments.
10001compiler=$CC
10002
10003
10004# save warnings/boilerplate of simple test code
10005ac_outfile=conftest.$ac_objext
10006printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10007eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10008_lt_compiler_boilerplate=`cat conftest.err`
10009$rm conftest*
10010
10011ac_outfile=conftest.$ac_objext
10012printf "$lt_simple_link_test_code" >conftest.$ac_ext
10013eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10014_lt_linker_boilerplate=`cat conftest.err`
10015$rm conftest*
10016
10017
10018## CAVEAT EMPTOR:
10019## There is no encapsulation within the following macros, do not change
10020## the running order or otherwise move them around unless you know exactly
10021## what you are doing...
10022
10023lt_prog_compiler_no_builtin_flag=
10024
10025if test "$GCC" = yes; then
10026  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10027
10028
10029echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10030echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
10031if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10032  echo $ECHO_N "(cached) $ECHO_C" >&6
10033else
10034  lt_cv_prog_compiler_rtti_exceptions=no
10035  ac_outfile=conftest.$ac_objext
10036   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10037   lt_compiler_flag="-fno-rtti -fno-exceptions"
10038   # Insert the option either (1) after the last *FLAGS variable, or
10039   # (2) before a word containing "conftest.", or (3) at the end.
10040   # Note that $ac_compile itself does not contain backslashes and begins
10041   # with a dollar sign (not a hyphen), so the echo should work correctly.
10042   # The option is referenced via a variable to avoid confusing sed.
10043   lt_compile=`echo "$ac_compile" | $SED \
10044   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10045   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10046   -e 's:$: $lt_compiler_flag:'`
10047   (eval echo "\"\$as_me:10047: $lt_compile\"" >&5)
10048   (eval "$lt_compile" 2>conftest.err)
10049   ac_status=$?
10050   cat conftest.err >&5
10051   echo "$as_me:10051: \$? = $ac_status" >&5
10052   if (exit $ac_status) && test -s "$ac_outfile"; then
10053     # The compiler can only warn and ignore the option if not recognized
10054     # So say no if there are warnings other than the usual output.
10055     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10056     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10057     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10058       lt_cv_prog_compiler_rtti_exceptions=yes
10059     fi
10060   fi
10061   $rm conftest*
10062
10063fi
10064echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10065echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
10066
10067if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10068    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10069else
10070    :
10071fi
10072
10073fi
10074
10075lt_prog_compiler_wl=
10076lt_prog_compiler_pic=
10077lt_prog_compiler_static=
10078
10079echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10080echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10081
10082  if test "$GCC" = yes; then
10083    lt_prog_compiler_wl='-Wl,'
10084    lt_prog_compiler_static='-static'
10085
10086    case $host_os in
10087      aix*)
10088      # All AIX code is PIC.
10089      if test "$host_cpu" = ia64; then
10090        # AIX 5 now supports IA64 processor
10091        lt_prog_compiler_static='-Bstatic'
10092      fi
10093      ;;
10094
10095    amigaos*)
10096      # FIXME: we need at least 68020 code to build shared libraries, but
10097      # adding the `-m68020' flag to GCC prevents building anything better,
10098      # like `-m68040'.
10099      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10100      ;;
10101
10102    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10103      # PIC is the default for these OSes.
10104      ;;
10105
10106    mingw* | pw32* | os2*)
10107      # This hack is so that the source file can tell whether it is being
10108      # built for inclusion in a dll (and should export symbols for example).
10109      lt_prog_compiler_pic='-DDLL_EXPORT'
10110      ;;
10111
10112    darwin* | rhapsody*)
10113      # PIC is the default on this platform
10114      # Common symbols not allowed in MH_DYLIB files
10115      lt_prog_compiler_pic='-fno-common'
10116      ;;
10117
10118    interix3*)
10119      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10120      # Instead, we relocate shared libraries at runtime.
10121      ;;
10122
10123    msdosdjgpp*)
10124      # Just because we use GCC doesn't mean we suddenly get shared libraries
10125      # on systems that don't support them.
10126      lt_prog_compiler_can_build_shared=no
10127      enable_shared=no
10128      ;;
10129
10130    sysv4*MP*)
10131      if test -d /usr/nec; then
10132        lt_prog_compiler_pic=-Kconform_pic
10133      fi
10134      ;;
10135
10136    hpux*)
10137      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10138      # not for PA HP-UX.
10139      case $host_cpu in
10140      hppa*64*|ia64*)
10141        # +Z the default
10142        ;;
10143      *)
10144        lt_prog_compiler_pic='-fPIC'
10145        ;;
10146      esac
10147      ;;
10148
10149    *)
10150      lt_prog_compiler_pic='-fPIC'
10151      ;;
10152    esac
10153  else
10154    # PORTME Check for flag to pass linker flags through the system compiler.
10155    case $host_os in
10156    aix*)
10157      lt_prog_compiler_wl='-Wl,'
10158      if test "$host_cpu" = ia64; then
10159        # AIX 5 now supports IA64 processor
10160        lt_prog_compiler_static='-Bstatic'
10161      else
10162        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10163      fi
10164      ;;
10165      darwin*)
10166        # PIC is the default on this platform
10167        # Common symbols not allowed in MH_DYLIB files
10168       case $cc_basename in
10169         xlc*)
10170         lt_prog_compiler_pic='-qnocommon'
10171         lt_prog_compiler_wl='-Wl,'
10172         ;;
10173       esac
10174       ;;
10175
10176    mingw* | pw32* | os2*)
10177      # This hack is so that the source file can tell whether it is being
10178      # built for inclusion in a dll (and should export symbols for example).
10179      lt_prog_compiler_pic='-DDLL_EXPORT'
10180      ;;
10181
10182    hpux9* | hpux10* | hpux11*)
10183      lt_prog_compiler_wl='-Wl,'
10184      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10185      # not for PA HP-UX.
10186      case $host_cpu in
10187      hppa*64*|ia64*)
10188        # +Z the default
10189        ;;
10190      *)
10191        lt_prog_compiler_pic='+Z'
10192        ;;
10193      esac
10194      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10195      lt_prog_compiler_static='${wl}-a ${wl}archive'
10196      ;;
10197
10198    irix5* | irix6* | nonstopux*)
10199      lt_prog_compiler_wl='-Wl,'
10200      # PIC (with -KPIC) is the default.
10201      lt_prog_compiler_static='-non_shared'
10202      ;;
10203
10204    newsos6)
10205      lt_prog_compiler_pic='-KPIC'
10206      lt_prog_compiler_static='-Bstatic'
10207      ;;
10208
10209    linux*)
10210      case $cc_basename in
10211      icc* | ecc*)
10212        lt_prog_compiler_wl='-Wl,'
10213        lt_prog_compiler_pic='-KPIC'
10214        lt_prog_compiler_static='-static'
10215        ;;
10216      pgcc* | pgf77* | pgf90* | pgf95*)
10217        # Portland Group compilers (*not* the Pentium gcc compiler,
10218        # which looks to be a dead project)
10219        lt_prog_compiler_wl='-Wl,'
10220        lt_prog_compiler_pic='-fpic'
10221        lt_prog_compiler_static='-Bstatic'
10222        ;;
10223      ccc*)
10224        lt_prog_compiler_wl='-Wl,'
10225        # All Alpha code is PIC.
10226        lt_prog_compiler_static='-non_shared'
10227        ;;
10228      esac
10229      ;;
10230
10231    osf3* | osf4* | osf5*)
10232      lt_prog_compiler_wl='-Wl,'
10233      # All OSF/1 code is PIC.
10234      lt_prog_compiler_static='-non_shared'
10235      ;;
10236
10237    solaris*)
10238      lt_prog_compiler_pic='-KPIC'
10239      lt_prog_compiler_static='-Bstatic'
10240      case $cc_basename in
10241      f77* | f90* | f95*)
10242        lt_prog_compiler_wl='-Qoption ld ';;
10243      *)
10244        lt_prog_compiler_wl='-Wl,';;
10245      esac
10246      ;;
10247
10248    sunos4*)
10249      lt_prog_compiler_wl='-Qoption ld '
10250      lt_prog_compiler_pic='-PIC'
10251      lt_prog_compiler_static='-Bstatic'
10252      ;;
10253
10254    sysv4 | sysv4.2uw2* | sysv4.3*)
10255      lt_prog_compiler_wl='-Wl,'
10256      lt_prog_compiler_pic='-KPIC'
10257      lt_prog_compiler_static='-Bstatic'
10258      ;;
10259
10260    sysv4*MP*)
10261      if test -d /usr/nec ;then
10262        lt_prog_compiler_pic='-Kconform_pic'
10263        lt_prog_compiler_static='-Bstatic'
10264      fi
10265      ;;
10266
10267    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10268      lt_prog_compiler_wl='-Wl,'
10269      lt_prog_compiler_pic='-KPIC'
10270      lt_prog_compiler_static='-Bstatic'
10271      ;;
10272
10273    unicos*)
10274      lt_prog_compiler_wl='-Wl,'
10275      lt_prog_compiler_can_build_shared=no
10276      ;;
10277
10278    uts4*)
10279      lt_prog_compiler_pic='-pic'
10280      lt_prog_compiler_static='-Bstatic'
10281      ;;
10282
10283    *)
10284      lt_prog_compiler_can_build_shared=no
10285      ;;
10286    esac
10287  fi
10288
10289echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10290echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10291
10292#
10293# Check to make sure the PIC flag actually works.
10294#
10295if test -n "$lt_prog_compiler_pic"; then
10296
10297echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10299if test "${lt_prog_compiler_pic_works+set}" = set; then
10300  echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302  lt_prog_compiler_pic_works=no
10303  ac_outfile=conftest.$ac_objext
10304   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10305   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10306   # Insert the option either (1) after the last *FLAGS variable, or
10307   # (2) before a word containing "conftest.", or (3) at the end.
10308   # Note that $ac_compile itself does not contain backslashes and begins
10309   # with a dollar sign (not a hyphen), so the echo should work correctly.
10310   # The option is referenced via a variable to avoid confusing sed.
10311   lt_compile=`echo "$ac_compile" | $SED \
10312   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314   -e 's:$: $lt_compiler_flag:'`
10315   (eval echo "\"\$as_me:10315: $lt_compile\"" >&5)
10316   (eval "$lt_compile" 2>conftest.err)
10317   ac_status=$?
10318   cat conftest.err >&5
10319   echo "$as_me:10319: \$? = $ac_status" >&5
10320   if (exit $ac_status) && test -s "$ac_outfile"; then
10321     # The compiler can only warn and ignore the option if not recognized
10322     # So say no if there are warnings other than the usual output.
10323     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10324     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10325     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10326       lt_prog_compiler_pic_works=yes
10327     fi
10328   fi
10329   $rm conftest*
10330
10331fi
10332echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10333echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10334
10335if test x"$lt_prog_compiler_pic_works" = xyes; then
10336    case $lt_prog_compiler_pic in
10337     "" | " "*) ;;
10338     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10339     esac
10340else
10341    lt_prog_compiler_pic=
10342     lt_prog_compiler_can_build_shared=no
10343fi
10344
10345fi
10346case $host_os in
10347  # For platforms which do not support PIC, -DPIC is meaningless:
10348  *djgpp*)
10349    lt_prog_compiler_pic=
10350    ;;
10351  *)
10352    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10353    ;;
10354esac
10355
10356#
10357# Check to make sure the static flag actually works.
10358#
10359wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10360echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10361echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10362if test "${lt_prog_compiler_static_works+set}" = set; then
10363  echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365  lt_prog_compiler_static_works=no
10366   save_LDFLAGS="$LDFLAGS"
10367   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10368   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10369   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10370     # The linker can only warn and ignore the option if not recognized
10371     # So say no if there are warnings
10372     if test -s conftest.err; then
10373       # Append any errors to the config.log.
10374       cat conftest.err 1>&5
10375       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10376       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10377       if diff conftest.exp conftest.er2 >/dev/null; then
10378         lt_prog_compiler_static_works=yes
10379       fi
10380     else
10381       lt_prog_compiler_static_works=yes
10382     fi
10383   fi
10384   $rm conftest*
10385   LDFLAGS="$save_LDFLAGS"
10386
10387fi
10388echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10389echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10390
10391if test x"$lt_prog_compiler_static_works" = xyes; then
10392    :
10393else
10394    lt_prog_compiler_static=
10395fi
10396
10397
10398echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10399echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10400if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10401  echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403  lt_cv_prog_compiler_c_o=no
10404   $rm -r conftest 2>/dev/null
10405   mkdir conftest
10406   cd conftest
10407   mkdir out
10408   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10409
10410   lt_compiler_flag="-o out/conftest2.$ac_objext"
10411   # Insert the option either (1) after the last *FLAGS variable, or
10412   # (2) before a word containing "conftest.", or (3) at the end.
10413   # Note that $ac_compile itself does not contain backslashes and begins
10414   # with a dollar sign (not a hyphen), so the echo should work correctly.
10415   lt_compile=`echo "$ac_compile" | $SED \
10416   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10417   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10418   -e 's:$: $lt_compiler_flag:'`
10419   (eval echo "\"\$as_me:10419: $lt_compile\"" >&5)
10420   (eval "$lt_compile" 2>out/conftest.err)
10421   ac_status=$?
10422   cat out/conftest.err >&5
10423   echo "$as_me:10423: \$? = $ac_status" >&5
10424   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10425   then
10426     # The compiler can only warn and ignore the option if not recognized
10427     # So say no if there are warnings
10428     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10429     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10430     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10431       lt_cv_prog_compiler_c_o=yes
10432     fi
10433   fi
10434   chmod u+w . 2>&5
10435   $rm conftest*
10436   # SGI C++ compiler will create directory out/ii_files/ for
10437   # template instantiation
10438   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10439   $rm out/* && rmdir out
10440   cd ..
10441   rmdir conftest
10442   $rm conftest*
10443
10444fi
10445echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10446echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10447
10448
10449hard_links="nottested"
10450if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10451  # do not overwrite the value of need_locks provided by the user
10452  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10453echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10454  hard_links=yes
10455  $rm conftest*
10456  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10457  touch conftest.a
10458  ln conftest.a conftest.b 2>&5 || hard_links=no
10459  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10460  echo "$as_me:$LINENO: result: $hard_links" >&5
10461echo "${ECHO_T}$hard_links" >&6
10462  if test "$hard_links" = no; then
10463    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10464echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10465    need_locks=warn
10466  fi
10467else
10468  need_locks=no
10469fi
10470
10471echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10472echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10473
10474  runpath_var=
10475  allow_undefined_flag=
10476  enable_shared_with_static_runtimes=no
10477  archive_cmds=
10478  archive_expsym_cmds=
10479  old_archive_From_new_cmds=
10480  old_archive_from_expsyms_cmds=
10481  export_dynamic_flag_spec=
10482  whole_archive_flag_spec=
10483  thread_safe_flag_spec=
10484  hardcode_libdir_flag_spec=
10485  hardcode_libdir_flag_spec_ld=
10486  hardcode_libdir_separator=
10487  hardcode_direct=no
10488  hardcode_minus_L=no
10489  hardcode_shlibpath_var=unsupported
10490  link_all_deplibs=unknown
10491  hardcode_automatic=no
10492  module_cmds=
10493  module_expsym_cmds=
10494  always_export_symbols=no
10495  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10496  # include_expsyms should be a list of space-separated symbols to be *always*
10497  # included in the symbol list
10498  include_expsyms=
10499  # exclude_expsyms can be an extended regexp of symbols to exclude
10500  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10501  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10502  # as well as any symbol that contains `d'.
10503  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10504  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10505  # platforms (ab)use it in PIC code, but their linkers get confused if
10506  # the symbol is explicitly referenced.  Since portable code cannot
10507  # rely on this symbol name, it's probably fine to never include it in
10508  # preloaded symbol tables.
10509  extract_expsyms_cmds=
10510  # Just being paranoid about ensuring that cc_basename is set.
10511  for cc_temp in $compiler""; do
10512  case $cc_temp in
10513    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10514    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10515    \-*) ;;
10516    *) break;;
10517  esac
10518done
10519cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10520
10521  case $host_os in
10522  cygwin* | mingw* | pw32*)
10523    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10524    # When not using gcc, we currently assume that we are using
10525    # Microsoft Visual C++.
10526    if test "$GCC" != yes; then
10527      with_gnu_ld=no
10528    fi
10529    ;;
10530  interix*)
10531    # we just hope/assume this is gcc and not c89 (= MSVC++)
10532    with_gnu_ld=yes
10533    ;;
10534  openbsd*)
10535    with_gnu_ld=no
10536    ;;
10537  esac
10538
10539  ld_shlibs=yes
10540  if test "$with_gnu_ld" = yes; then
10541    # If archive_cmds runs LD, not CC, wlarc should be empty
10542    wlarc='${wl}'
10543
10544    # Set some defaults for GNU ld with shared library support. These
10545    # are reset later if shared libraries are not supported. Putting them
10546    # here allows them to be overridden if necessary.
10547    runpath_var=LD_RUN_PATH
10548    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10549    export_dynamic_flag_spec='${wl}--export-dynamic'
10550    # ancient GNU ld didn't support --whole-archive et. al.
10551    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10552        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10553      else
10554        whole_archive_flag_spec=
10555    fi
10556    supports_anon_versioning=no
10557    case `$LD -v 2>/dev/null` in
10558      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10559      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10560      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10561      *\ 2.11.*) ;; # other 2.11 versions
10562      *) supports_anon_versioning=yes ;;
10563    esac
10564
10565    # See if GNU ld supports shared libraries.
10566    case $host_os in
10567    aix3* | aix4* | aix5*)
10568      # On AIX/PPC, the GNU linker is very broken
10569      if test "$host_cpu" != ia64; then
10570        ld_shlibs=no
10571        cat <<EOF 1>&2
10572
10573*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10574*** to be unable to reliably create shared libraries on AIX.
10575*** Therefore, libtool is disabling shared libraries support.  If you
10576*** really care for shared libraries, you may want to modify your PATH
10577*** so that a non-GNU linker is found, and then restart.
10578
10579EOF
10580      fi
10581      ;;
10582
10583    amigaos*)
10584      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)'
10585      hardcode_libdir_flag_spec='-L$libdir'
10586      hardcode_minus_L=yes
10587
10588      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10589      # that the semantics of dynamic libraries on AmigaOS, at least up
10590      # to version 4, is to share data among multiple programs linked
10591      # with the same dynamic library.  Since this doesn't match the
10592      # behavior of shared libraries on other platforms, we can't use
10593      # them.
10594      ld_shlibs=no
10595      ;;
10596
10597    beos*)
10598      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10599        allow_undefined_flag=unsupported
10600        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10601        # support --undefined.  This deserves some investigation.  FIXME
10602        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603      else
10604        ld_shlibs=no
10605      fi
10606      ;;
10607
10608    cygwin* | mingw* | pw32*)
10609      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10610      # as there is no search path for DLLs.
10611      hardcode_libdir_flag_spec='-L$libdir'
10612      allow_undefined_flag=unsupported
10613      always_export_symbols=no
10614      enable_shared_with_static_runtimes=yes
10615      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10616
10617      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10618        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10619        # If the export-symbols file already is a .def file (1st line
10620        # is EXPORTS), use it as is; otherwise, prepend...
10621        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10622          cp $export_symbols $output_objdir/$soname.def;
10623        else
10624          echo EXPORTS > $output_objdir/$soname.def;
10625          cat $export_symbols >> $output_objdir/$soname.def;
10626        fi~
10627        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10628      else
10629        ld_shlibs=no
10630      fi
10631      ;;
10632
10633    interix3*)
10634      hardcode_direct=no
10635      hardcode_shlibpath_var=no
10636      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10637      export_dynamic_flag_spec='${wl}-E'
10638      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10639      # Instead, shared libraries are loaded at an image base (0x10000000 by
10640      # default) and relocated if they conflict, which is a slow very memory
10641      # consuming and fragmenting process.  To avoid this, we pick a random,
10642      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10643      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10644      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10645      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'
10646      ;;
10647
10648    linux*)
10649      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10650        tmp_addflag=
10651        case $cc_basename,$host_cpu in
10652        pgcc*)                          # Portland Group C compiler
10653          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'
10654          tmp_addflag=' $pic_flag'
10655          ;;
10656        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10657          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'
10658          tmp_addflag=' $pic_flag -Mnomain' ;;
10659        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10660          tmp_addflag=' -i_dynamic' ;;
10661        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10662          tmp_addflag=' -i_dynamic -nofor_main' ;;
10663        ifc* | ifort*)                  # Intel Fortran compiler
10664          tmp_addflag=' -nofor_main' ;;
10665        esac
10666        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10667
10668        if test $supports_anon_versioning = yes; then
10669          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10670  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10671  $echo "local: *; };" >> $output_objdir/$libname.ver~
10672          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10673        fi
10674      else
10675        ld_shlibs=no
10676      fi
10677      ;;
10678
10679    netbsd*)
10680      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10681        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10682        wlarc=
10683      else
10684        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10685        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10686      fi
10687      ;;
10688
10689    solaris*)
10690      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10691        ld_shlibs=no
10692        cat <<EOF 1>&2
10693
10694*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10695*** create shared libraries on Solaris systems.  Therefore, libtool
10696*** is disabling shared libraries support.  We urge you to upgrade GNU
10697*** binutils to release 2.9.1 or newer.  Another option is to modify
10698*** your PATH or compiler configuration so that the native linker is
10699*** used, and then restart.
10700
10701EOF
10702      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10703        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10705      else
10706        ld_shlibs=no
10707      fi
10708      ;;
10709
10710    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10711      case `$LD -v 2>&1` in
10712        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10713        ld_shlibs=no
10714        cat <<_LT_EOF 1>&2
10715
10716*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10717*** reliably create shared libraries on SCO systems.  Therefore, libtool
10718*** is disabling shared libraries support.  We urge you to upgrade GNU
10719*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10720*** your PATH or compiler configuration so that the native linker is
10721*** used, and then restart.
10722
10723_LT_EOF
10724        ;;
10725        *)
10726          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10727            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10728            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10729            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10730          else
10731            ld_shlibs=no
10732          fi
10733        ;;
10734      esac
10735      ;;
10736
10737    sunos4*)
10738      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10739      wlarc=
10740      hardcode_direct=yes
10741      hardcode_shlibpath_var=no
10742      ;;
10743
10744    *)
10745      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10746        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10748      else
10749        ld_shlibs=no
10750      fi
10751      ;;
10752    esac
10753
10754    if test "$ld_shlibs" = no; then
10755      runpath_var=
10756      hardcode_libdir_flag_spec=
10757      export_dynamic_flag_spec=
10758      whole_archive_flag_spec=
10759    fi
10760  else
10761    # PORTME fill in a description of your system's linker (not GNU ld)
10762    case $host_os in
10763    aix3*)
10764      allow_undefined_flag=unsupported
10765      always_export_symbols=yes
10766      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'
10767      # Note: this linker hardcodes the directories in LIBPATH if there
10768      # are no directories specified by -L.
10769      hardcode_minus_L=yes
10770      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10771        # Neither direct hardcoding nor static linking is supported with a
10772        # broken collect2.
10773        hardcode_direct=unsupported
10774      fi
10775      ;;
10776
10777    aix4* | aix5*)
10778      if test "$host_cpu" = ia64; then
10779        # On IA64, the linker does run time linking by default, so we don't
10780        # have to do anything special.
10781        aix_use_runtimelinking=no
10782        exp_sym_flag='-Bexport'
10783        no_entry_flag=""
10784      else
10785        # If we're using GNU nm, then we don't want the "-C" option.
10786        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10787        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10788          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'
10789        else
10790          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'
10791        fi
10792        aix_use_runtimelinking=no
10793
10794        # Test if we are trying to use run time linking or normal
10795        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10796        # need to do runtime linking.
10797        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10798          for ld_flag in $LDFLAGS; do
10799          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10800            aix_use_runtimelinking=yes
10801            break
10802          fi
10803          done
10804          ;;
10805        esac
10806
10807        exp_sym_flag='-bexport'
10808        no_entry_flag='-bnoentry'
10809      fi
10810
10811      # When large executables or shared objects are built, AIX ld can
10812      # have problems creating the table of contents.  If linking a library
10813      # or program results in "error TOC overflow" add -mminimal-toc to
10814      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10815      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10816
10817      archive_cmds=''
10818      hardcode_direct=yes
10819      hardcode_libdir_separator=':'
10820      link_all_deplibs=yes
10821
10822      if test "$GCC" = yes; then
10823        case $host_os in aix4.[012]|aix4.[012].*)
10824        # We only want to do this on AIX 4.2 and lower, the check
10825        # below for broken collect2 doesn't work under 4.3+
10826          collect2name=`${CC} -print-prog-name=collect2`
10827          if test -f "$collect2name" && \
10828           strings "$collect2name" | grep resolve_lib_name >/dev/null
10829          then
10830          # We have reworked collect2
10831          hardcode_direct=yes
10832          else
10833          # We have old collect2
10834          hardcode_direct=unsupported
10835          # It fails to find uninstalled libraries when the uninstalled
10836          # path is not listed in the libpath.  Setting hardcode_minus_L
10837          # to unsupported forces relinking
10838          hardcode_minus_L=yes
10839          hardcode_libdir_flag_spec='-L$libdir'
10840          hardcode_libdir_separator=
10841          fi
10842          ;;
10843        esac
10844        shared_flag='-shared'
10845        if test "$aix_use_runtimelinking" = yes; then
10846          shared_flag="$shared_flag "'${wl}-G'
10847        fi
10848      else
10849        # not using gcc
10850        if test "$host_cpu" = ia64; then
10851        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10852        # chokes on -Wl,-G. The following line is correct:
10853          shared_flag='-G'
10854        else
10855          if test "$aix_use_runtimelinking" = yes; then
10856            shared_flag='${wl}-G'
10857          else
10858            shared_flag='${wl}-bM:SRE'
10859          fi
10860        fi
10861      fi
10862
10863      # It seems that -bexpall does not export symbols beginning with
10864      # underscore (_), so it is better to generate a list of symbols to export.
10865      always_export_symbols=yes
10866      if test "$aix_use_r