source: ThirdParty/FilterSQP/stable/1.2/configure @ 2990

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

Re-running the autotools

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