source: ThirdParty/FilterSQP/stable/1.3/configure @ 3893

Last change on this file since 3893 was 3893, checked in by stefan, 11 months ago

temporarily committing release candidate

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