source: ThirdParty/FilterSQP/releases/1.2.2/configure @ 3294

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

temporarily committing release candidate

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