source: ThirdParty/FilterSQP/releases/1.2.4/configure @ 2977

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

Re-running the autotools

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