source: ThirdParty/FilterSQP/trunk/configure @ 2219

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

rerun autotools

File size: 769.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyFilterSQP trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-filtersqp
1080                          compile this project (FilterSQP) with debug compiler
1081                          flags
1082  --enable-doscompile     Under Cygwin, compile so that executables run under
1083                          DOS. Set to mingw to use gcc/g++/ld with
1084                          -mno-cygwin. Set to msvc to use cl/link (or
1085                          icl/link). Default when mentioned: mingw. Default
1086                          when not mentioned: disabled.
1087  --enable-pkg-config     use pkg-config if available (default is yes)
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-static[=PKGS]
1093                          build static libraries [default=no]
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099
1100Optional Packages:
1101  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1102  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1103  --with-filtersqp-verbosity
1104                          specify the debug verbosity level for project
1105                          FilterSQP
1106  --with-filtersqp-checklevel
1107                          specify the sanity check level for project FilterSQP
1108  --with-coin-instdir     prefix of installation directory for precompiled
1109                          COIN packages
1110  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1111  --with-pic              try to use only PIC/non-PIC objects [default=use
1112                          both]
1113  --with-tags[=TAGS]
1114                          include additional configurations [automatic]
1115
1116Some influential environment variables:
1117  CDEFS       Additional -D flags to be used when compiling C code.
1118  ADD_CFLAGS  Additional C compiler options
1119  DBG_CFLAGS  Debug C compiler options
1120  OPT_CFLAGS  Optimize C compiler options
1121  CC          C compiler command
1122  CFLAGS      C compiler flags
1123  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1124              nonstandard directory <lib dir>
1125  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1126              headers in a nonstandard directory <include dir>
1127  MPICC       C MPI Compiler
1128  ADD_FFLAGS  Additional Fortran compiler options
1129  DBG_FFLAGS  Debug Fortran compiler options
1130  OPT_FFLAGS  Optimize Fortran compiler options
1131  F77         Fortran 77 compiler command
1132  FFLAGS      Fortran 77 compiler flags
1133  MPIF77      Fortran MPI Compiler
1134  PKG_CONFIG  path to pkg-config utility
1135  CPP         C preprocessor
1136  CXX         C++ compiler command
1137  CXXFLAGS    C++ compiler flags
1138  CXXCPP      C++ preprocessor
1139
1140Use these variables to override the choices made by `configure' or to help
1141it to find libraries and programs with nonstandard names/locations.
1142
1143Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1144_ACEOF
1145fi
1146
1147if test "$ac_init_help" = "recursive"; then
1148  # If there are subdirs, report their specific --help.
1149  ac_popdir=`pwd`
1150  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1151    test -d $ac_dir || continue
1152    ac_builddir=.
1153
1154if test "$ac_dir" != .; then
1155  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1156  # A "../" for each directory in $ac_dir_suffix.
1157  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1158else
1159  ac_dir_suffix= ac_top_builddir=
1160fi
1161
1162case $srcdir in
1163  .)  # No --srcdir option.  We are building in place.
1164    ac_srcdir=.
1165    if test -z "$ac_top_builddir"; then
1166       ac_top_srcdir=.
1167    else
1168       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1169    fi ;;
1170  [\\/]* | ?:[\\/]* )  # Absolute path.
1171    ac_srcdir=$srcdir$ac_dir_suffix;
1172    ac_top_srcdir=$srcdir ;;
1173  *) # Relative path.
1174    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1175    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1176esac
1177
1178# Do not use `cd foo && pwd` to compute absolute paths, because
1179# the directories may not exist.
1180case `pwd` in
1181.) ac_abs_builddir="$ac_dir";;
1182*)
1183  case "$ac_dir" in
1184  .) ac_abs_builddir=`pwd`;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1186  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_builddir=${ac_top_builddir}.;;
1191*)
1192  case ${ac_top_builddir}. in
1193  .) ac_abs_top_builddir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1195  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1196  esac;;
1197esac
1198case $ac_abs_builddir in
1199.) ac_abs_srcdir=$ac_srcdir;;
1200*)
1201  case $ac_srcdir in
1202  .) ac_abs_srcdir=$ac_abs_builddir;;
1203  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1204  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1205  esac;;
1206esac
1207case $ac_abs_builddir in
1208.) ac_abs_top_srcdir=$ac_top_srcdir;;
1209*)
1210  case $ac_top_srcdir in
1211  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1212  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1213  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1214  esac;;
1215esac
1216
1217    cd $ac_dir
1218    # Check for guested configure; otherwise get Cygnus style configure.
1219    if test -f $ac_srcdir/configure.gnu; then
1220      echo
1221      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1222    elif test -f $ac_srcdir/configure; then
1223      echo
1224      $SHELL $ac_srcdir/configure  --help=recursive
1225    elif test -f $ac_srcdir/configure.ac ||
1226           test -f $ac_srcdir/configure.in; then
1227      echo
1228      $ac_configure --help
1229    else
1230      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1231    fi
1232    cd $ac_popdir
1233  done
1234fi
1235
1236test -n "$ac_init_help" && exit 0
1237if $ac_init_version; then
1238  cat <<\_ACEOF
1239ThirdPartyFilterSQP configure trunk
1240generated by GNU Autoconf 2.59
1241
1242Copyright (C) 2003 Free Software Foundation, Inc.
1243This configure script is free software; the Free Software Foundation
1244gives unlimited permission to copy, distribute and modify it.
1245
1246
1247Copyright 2006 International Business Machines and others.
1248All Rights Reserved.
1249This file is part of the open source package Coin which is distributed
1250under the Eclipse Public License.
1251_ACEOF
1252  exit 0
1253fi
1254exec 5>config.log
1255cat >&5 <<_ACEOF
1256This file contains any messages produced by compilers while
1257running configure, to aid debugging if configure makes a mistake.
1258
1259It was created by ThirdPartyFilterSQP $as_me trunk, which was
1260generated by GNU Autoconf 2.59.  Invocation command line was
1261
1262  $ $0 $@
1263
1264_ACEOF
1265{
1266cat <<_ASUNAME
1267## --------- ##
1268## Platform. ##
1269## --------- ##
1270
1271hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1272uname -m = `(uname -m) 2>/dev/null || echo unknown`
1273uname -r = `(uname -r) 2>/dev/null || echo unknown`
1274uname -s = `(uname -s) 2>/dev/null || echo unknown`
1275uname -v = `(uname -v) 2>/dev/null || echo unknown`
1276
1277/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1278/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1279
1280/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1281/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1282/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1283hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1284/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1285/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1286/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1287
1288_ASUNAME
1289
1290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1291for as_dir in $PATH
1292do
1293  IFS=$as_save_IFS
1294  test -z "$as_dir" && as_dir=.
1295  echo "PATH: $as_dir"
1296done
1297
1298} >&5
1299
1300cat >&5 <<_ACEOF
1301
1302
1303## ----------- ##
1304## Core tests. ##
1305## ----------- ##
1306
1307_ACEOF
1308
1309
1310# Keep a trace of the command line.
1311# Strip out --no-create and --no-recursion so they do not pile up.
1312# Strip out --silent because we don't want to record it for future runs.
1313# Also quote any args containing shell meta-characters.
1314# Make two passes to allow for proper duplicate-argument suppression.
1315ac_configure_args=
1316ac_configure_args0=
1317ac_configure_args1=
1318ac_sep=
1319ac_must_keep_next=false
1320for ac_pass in 1 2
1321do
1322  for ac_arg
1323  do
1324    case $ac_arg in
1325    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1326    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327    | -silent | --silent | --silen | --sile | --sil)
1328      continue ;;
1329    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1330      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1331    esac
1332    case $ac_pass in
1333    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1334    2)
1335      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1336      if test $ac_must_keep_next = true; then
1337        ac_must_keep_next=false # Got value, back to normal.
1338      else
1339        case $ac_arg in
1340          *=* | --config-cache | -C | -disable-* | --disable-* \
1341          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1342          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1343          | -with-* | --with-* | -without-* | --without-* | --x)
1344            case "$ac_configure_args0 " in
1345              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1346            esac
1347            ;;
1348          -* ) ac_must_keep_next=true ;;
1349        esac
1350      fi
1351      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1352      # Get rid of the leading space.
1353      ac_sep=" "
1354      ;;
1355    esac
1356  done
1357done
1358$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1359$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1360
1361# When interrupted or exit'd, cleanup temporary files, and complete
1362# config.log.  We remove comments because anyway the quotes in there
1363# would cause problems or look ugly.
1364# WARNING: Be sure not to use single quotes in there, as some shells,
1365# such as our DU 5.0 friend, will then `close' the trap.
1366trap 'exit_status=$?
1367  # Save into config.log some information that might help in debugging.
1368  {
1369    echo
1370
1371    cat <<\_ASBOX
1372## ---------------- ##
1373## Cache variables. ##
1374## ---------------- ##
1375_ASBOX
1376    echo
1377    # The following way of writing the cache mishandles newlines in values,
1378{
1379  (set) 2>&1 |
1380    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1381    *ac_space=\ *)
1382      sed -n \
1383        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1384          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1385      ;;
1386    *)
1387      sed -n \
1388        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1389      ;;
1390    esac;
1391}
1392    echo
1393
1394    cat <<\_ASBOX
1395## ----------------- ##
1396## Output variables. ##
1397## ----------------- ##
1398_ASBOX
1399    echo
1400    for ac_var in $ac_subst_vars
1401    do
1402      eval ac_val=$`echo $ac_var`
1403      echo "$ac_var='"'"'$ac_val'"'"'"
1404    done | sort
1405    echo
1406
1407    if test -n "$ac_subst_files"; then
1408      cat <<\_ASBOX
1409## ------------- ##
1410## Output files. ##
1411## ------------- ##
1412_ASBOX
1413      echo
1414      for ac_var in $ac_subst_files
1415      do
1416        eval ac_val=$`echo $ac_var`
1417        echo "$ac_var='"'"'$ac_val'"'"'"
1418      done | sort
1419      echo
1420    fi
1421
1422    if test -s confdefs.h; then
1423      cat <<\_ASBOX
1424## ----------- ##
1425## confdefs.h. ##
1426## ----------- ##
1427_ASBOX
1428      echo
1429      sed "/^$/d" confdefs.h | sort
1430      echo
1431    fi
1432    test "$ac_signal" != 0 &&
1433      echo "$as_me: caught signal $ac_signal"
1434    echo "$as_me: exit $exit_status"
1435  } >&5
1436  rm -f core *.core &&
1437  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1438    exit $exit_status
1439     ' 0
1440for ac_signal in 1 2 13 15; do
1441  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1442done
1443ac_signal=0
1444
1445# confdefs.h avoids OS command line length limits that DEFS can exceed.
1446rm -rf conftest* confdefs.h
1447# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1448echo >confdefs.h
1449
1450# Predefined preprocessor variables.
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_NAME "$PACKAGE_NAME"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_VERSION "$PACKAGE_VERSION"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_STRING "$PACKAGE_STRING"
1469_ACEOF
1470
1471
1472cat >>confdefs.h <<_ACEOF
1473#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1474_ACEOF
1475
1476
1477# Let the site file select an alternate cache file if it wants to.
1478# Prefer explicitly selected file to automatically selected ones.
1479if test -z "$CONFIG_SITE"; then
1480  if test "x$prefix" != xNONE; then
1481    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1482  else
1483    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1484  fi
1485fi
1486for ac_site_file in $CONFIG_SITE; do
1487  if test -r "$ac_site_file"; then
1488    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1489echo "$as_me: loading site script $ac_site_file" >&6;}
1490    sed 's/^/| /' "$ac_site_file" >&5
1491    . "$ac_site_file"
1492  fi
1493done
1494
1495if test -r "$cache_file"; then
1496  # Some versions of bash will fail to source /dev/null (special
1497  # files actually), so we avoid doing that.
1498  if test -f "$cache_file"; then
1499    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1500echo "$as_me: loading cache $cache_file" >&6;}
1501    case $cache_file in
1502      [\\/]* | ?:[\\/]* ) . $cache_file;;
1503      *)                      . ./$cache_file;;
1504    esac
1505  fi
1506else
1507  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1508echo "$as_me: creating cache $cache_file" >&6;}
1509  >$cache_file
1510fi
1511
1512# Check that the precious variables saved in the cache have kept the same
1513# value.
1514ac_cache_corrupted=false
1515for ac_var in `(set) 2>&1 |
1516               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1517  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1518  eval ac_new_set=\$ac_env_${ac_var}_set
1519  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1520  eval ac_new_val="\$ac_env_${ac_var}_value"
1521  case $ac_old_set,$ac_new_set in
1522    set,)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,set)
1527      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1528echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1529      ac_cache_corrupted=: ;;
1530    ,);;
1531    *)
1532      if test "x$ac_old_val" != "x$ac_new_val"; then
1533        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1534echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1535        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1536echo "$as_me:   former value:  $ac_old_val" >&2;}
1537        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1538echo "$as_me:   current value: $ac_new_val" >&2;}
1539        ac_cache_corrupted=:
1540      fi;;
1541  esac
1542  # Pass precious variables to config.status.
1543  if test "$ac_new_set" = set; then
1544    case $ac_new_val in
1545    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1546      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1547    *) ac_arg=$ac_var=$ac_new_val ;;
1548    esac
1549    case " $ac_configure_args " in
1550      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1551      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1552    esac
1553  fi
1554done
1555if $ac_cache_corrupted; then
1556  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1557echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1558  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1559echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1560   { (exit 1); exit 1; }; }
1561fi
1562
1563ac_ext=c
1564ac_cpp='$CPP $CPPFLAGS'
1565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1598# List one file in the package so that the configure script can test
1599# whether the package is actually there
1600
1601
1602# Where should everything be installed by default?  Here, we want it
1603# to be installed directly in 'bin', 'lib', 'include' subdirectories
1604# of the directory where configure is run.  The default would be
1605# /usr/local.
1606
1607
1608
1609# As backup, we make sure we don't loose an FLIBS if it has been set
1610# by the user
1611save_FLIBS="$FLIBS"
1612
1613# A useful makefile conditional that is always false
1614
1615
1616if false; then
1617  ALWAYS_FALSE_TRUE=
1618  ALWAYS_FALSE_FALSE='#'
1619else
1620  ALWAYS_FALSE_TRUE='#'
1621  ALWAYS_FALSE_FALSE=
1622fi
1623
1624
1625# We set the following variable so that we know later in AC_COIN_FINALIZE
1626# that we are in a project main directory
1627coin_projectdir=yes
1628
1629# Set the project's version numbers
1630
1631
1632cat >>confdefs.h <<_ACEOF
1633#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1634_ACEOF
1635
1636
1637  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1638  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1639  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1640  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1641  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1642  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1643
1644cat >>confdefs.h <<_ACEOF
1645#define FILTERSQP_VERSION_MAJOR $coin_majorver
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define FILTERSQP_VERSION_MINOR $coin_minorver
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define FILTERSQP_VERSION_RELEASE $coin_releasever
1656_ACEOF
1657
1658
1659  # We use the following variable to have a string with the upper case
1660  # version of the project name
1661  COIN_PRJCT=FILTERSQP
1662
1663  # Set the project's SVN revision number. The complicated sed expression
1664  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1665  # as a single number.
1666  # Extract the first word of "svnversion", so it can be a program name with args.
1667set dummy svnversion; ac_word=$2
1668echo "$as_me:$LINENO: checking for $ac_word" >&5
1669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670if test "${ac_cv_prog_have_svnversion+set}" = set; then
1671  echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673  if test -n "$have_svnversion"; then
1674  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1675else
1676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677for as_dir in $PATH
1678do
1679  IFS=$as_save_IFS
1680  test -z "$as_dir" && as_dir=.
1681  for ac_exec_ext in '' $ac_executable_extensions; do
1682  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683    ac_cv_prog_have_svnversion="yes"
1684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685    break 2
1686  fi
1687done
1688done
1689
1690  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1691fi
1692fi
1693have_svnversion=$ac_cv_prog_have_svnversion
1694if test -n "$have_svnversion"; then
1695  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1696echo "${ECHO_T}$have_svnversion" >&6
1697else
1698  echo "$as_me:$LINENO: result: no" >&5
1699echo "${ECHO_T}no" >&6
1700fi
1701
1702  if test "x$have_svnversion" = xyes; then
1703
1704    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1705    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1706      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1707
1708cat >>confdefs.h <<_ACEOF
1709#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1710_ACEOF
1711
1712    fi
1713  fi
1714
1715
1716
1717# Capture libtool library version, if given.
1718
1719
1720
1721
1722#############################################################################
1723#                         Standard build tool stuff                         #
1724#############################################################################
1725
1726# Get the system type
1727ac_aux_dir=
1728for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1729  if test -f $ac_dir/install-sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install-sh -c"
1732    break
1733  elif test -f $ac_dir/install.sh; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/install.sh -c"
1736    break
1737  elif test -f $ac_dir/shtool; then
1738    ac_aux_dir=$ac_dir
1739    ac_install_sh="$ac_aux_dir/shtool install -c"
1740    break
1741  fi
1742done
1743if test -z "$ac_aux_dir"; then
1744  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1745echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1746   { (exit 1); exit 1; }; }
1747fi
1748ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1749ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1750ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1751
1752# Make sure we can run config.sub.
1753$ac_config_sub sun4 >/dev/null 2>&1 ||
1754  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1755echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1756   { (exit 1); exit 1; }; }
1757
1758echo "$as_me:$LINENO: checking build system type" >&5
1759echo $ECHO_N "checking build system type... $ECHO_C" >&6
1760if test "${ac_cv_build+set}" = set; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  ac_cv_build_alias=$build_alias
1764test -z "$ac_cv_build_alias" &&
1765  ac_cv_build_alias=`$ac_config_guess`
1766test -z "$ac_cv_build_alias" &&
1767  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1768echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1769   { (exit 1); exit 1; }; }
1770ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1771  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1772echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1773   { (exit 1); exit 1; }; }
1774
1775fi
1776echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1777echo "${ECHO_T}$ac_cv_build" >&6
1778build=$ac_cv_build
1779build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1782
1783
1784
1785# Check if user wants to produce debugging code
1786
1787echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1788echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1789
1790# Check whether --enable-debug or --disable-debug was given.
1791if test "${enable_debug+set}" = set; then
1792  enableval="$enable_debug"
1793  case "${enableval}" in
1794   yes) coin_debug_compile=true
1795        if test "${enable_shared+set}" = set; then :; else
1796          enable_shared=no
1797        fi
1798        ;;
1799   no)  coin_debug_compile=false
1800        ;;
1801   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1803   { (exit 1); exit 1; }; }
1804        ;;
1805esac
1806else
1807  coin_debug_compile=false
1808fi;
1809
1810# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1811if test "${enable_debug_filtersqp+set}" = set; then
1812  enableval="$enable_debug_filtersqp"
1813  case "${enableval}" in
1814    yes) coin_debug_compile=true
1815         ;;
1816    no)  coin_debug_compile=false
1817         ;;
1818    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1819echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1820   { (exit 1); exit 1; }; }
1821         ;;
1822 esac
1823else
1824  :
1825fi;
1826
1827 # m4_ifvaln([FilterSQP],
1828
1829if test $coin_debug_compile = true; then
1830  echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837
1838# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1839if test "${with_filtersqp_verbosity+set}" = set; then
1840  withval="$with_filtersqp_verbosity"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_filtersqp_verbosity=$withval
1845else
1846  coin_filtersqp_verbosity=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1851_ACEOF
1852
1853
1854
1855# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1856if test "${with_filtersqp_checklevel+set}" = set; then
1857  withval="$with_filtersqp_checklevel"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_filtersqp_checklevel=$withval
1862else
1863  coin_filtersqp_checklevel=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1868_ACEOF
1869
1870
1871 # m4_ifvaln([FilterSQP],
1872
1873
1874
1875# Get the name of the Fortran compiler and appropriate compiler options
1876case $build in
1877  *-mingw*)
1878    if test "${LD+set}" = set; then :; else
1879      LD=link
1880    fi
1881    ;;
1882 esac
1883 case $enable_doscompile in
1884   msvc)
1885     if test "x${LD+set}" = xset; then :; else
1886       LD=link
1887     fi
1888     ;;
1889 esac
1890
1891
1892 # Check whether --enable-doscompile or --disable-doscompile was given.
1893if test "${enable_doscompile+set}" = set; then
1894  enableval="$enable_doscompile"
1895  if test "$enable_doscompile" != no; then
1896     case $build in
1897       *-cygwin* | *-mingw*) ;;
1898       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1899echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1900   { (exit 1); exit 1; }; } ;;
1901     esac
1902   fi
1903else
1904  enable_doscompile=no
1905fi;
1906 case "$enable_doscompile" in
1907   mingw)
1908     case $build in
1909       *-mingw*) enable_doscompile=no ;;
1910     esac
1911     ;;
1912   msvc|no) ;;
1913   yes) enable_doscompile=mingw ;;
1914   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1915                    Try configure --help=recursive." >&5
1916echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1917                    Try configure --help=recursive." >&2;}
1918   { (exit 1); exit 1; }; }
1919      ;;
1920  esac
1921  if test "$enable_doscompile" != no ; then
1922    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1923echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1924  fi
1925
1926
1927
1928
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936# For consistency, we set the C compiler to the same value of the C++
1937# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1938if test x"$CXX" != x; then
1939  case "$CXX" in
1940    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1941      if test x"$CC" = x; then
1942        CC="$CXX"
1943        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1944echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1945      fi
1946      ;;
1947  esac
1948fi
1949
1950
1951
1952
1953
1954
1955coin_has_cc=yes
1956
1957save_cflags="$CFLAGS"
1958
1959# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1960# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1961# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1962# compiler. In this case, put cc after gcc.
1963
1964case $build in
1965  *-cygwin* | *-mingw*)
1966             if test "$enable_doscompile" = msvc ; then
1967               comps="icl cl"
1968             else
1969               comps="gcc cl"
1970             fi ;;
1971  *-*-solaris*)
1972             # Extract the first word of "cc", so it can be a program name with args.
1973set dummy cc; ac_word=$2
1974echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  if test -n "$sol_cc_compiler"; then
1980  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1981else
1982  ac_prog_rejected=no
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988  for ac_exec_ext in '' $ac_executable_extensions; do
1989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991       ac_prog_rejected=yes
1992       continue
1993     fi
1994    ac_cv_prog_sol_cc_compiler="cc"
1995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999done
2000
2001if test $ac_prog_rejected = yes; then
2002  # We found a bogon in the path, so make sure we never use it.
2003  set dummy $ac_cv_prog_sol_cc_compiler
2004  shift
2005  if test $# != 0; then
2006    # We chose a different compiler from the bogus one.
2007    # However, it has the same basename, so the bogon will be chosen
2008    # first if we set sol_cc_compiler to just the basename; use the full file name.
2009    shift
2010    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2011  fi
2012fi
2013fi
2014fi
2015sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2016if test -n "$sol_cc_compiler"; then
2017  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2018echo "${ECHO_T}$sol_cc_compiler" >&6
2019else
2020  echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024             if test "$sol_cc_compiler" = "cc" ; then
2025               comps="cc xlc gcc pgcc icc"
2026             else
2027               comps="xlc gcc pgcc icc cc"
2028             fi
2029             ;;
2030  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2031  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2032  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2033esac
2034
2035# We delete the cached value, since the test might not have been
2036# performed with our choice of compilers earlier
2037$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2038# AC_MSG_NOTICE([C compiler candidates: $comps])
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044if test -n "$ac_tool_prefix"; then
2045  for ac_prog in $comps
2046  do
2047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049echo "$as_me:$LINENO: checking for $ac_word" >&5
2050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051if test "${ac_cv_prog_CC+set}" = set; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  if test -n "$CC"; then
2055  ac_cv_prog_CC="$CC" # Let the user override the test.
2056else
2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058for as_dir in $PATH
2059do
2060  IFS=$as_save_IFS
2061  test -z "$as_dir" && as_dir=.
2062  for ac_exec_ext in '' $ac_executable_extensions; do
2063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066    break 2
2067  fi
2068done
2069done
2070
2071fi
2072fi
2073CC=$ac_cv_prog_CC
2074if test -n "$CC"; then
2075  echo "$as_me:$LINENO: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6
2077else
2078  echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6
2080fi
2081
2082    test -n "$CC" && break
2083  done
2084fi
2085if test -z "$CC"; then
2086  ac_ct_CC=$CC
2087  for ac_prog in $comps
2088do
2089  # Extract the first word of "$ac_prog", so it can be a program name with args.
2090set dummy $ac_prog; ac_word=$2
2091echo "$as_me:$LINENO: checking for $ac_word" >&5
2092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094  echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096  if test -n "$ac_ct_CC"; then
2097  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098else
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104  for ac_exec_ext in '' $ac_executable_extensions; do
2105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106    ac_cv_prog_ac_ct_CC="$ac_prog"
2107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108    break 2
2109  fi
2110done
2111done
2112
2113fi
2114fi
2115ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116if test -n "$ac_ct_CC"; then
2117  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118echo "${ECHO_T}$ac_ct_CC" >&6
2119else
2120  echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6
2122fi
2123
2124  test -n "$ac_ct_CC" && break
2125done
2126
2127  CC=$ac_ct_CC
2128fi
2129
2130
2131test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: no acceptable C compiler found in \$PATH
2134See \`config.log' for more details." >&2;}
2135   { (exit 1); exit 1; }; }
2136
2137# Provide some information about the compiler.
2138echo "$as_me:$LINENO:" \
2139     "checking for C compiler version" >&5
2140ac_compiler=`set X $ac_compile; echo $2`
2141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142  (eval $ac_compiler --version </dev/null >&5) 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }
2146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147  (eval $ac_compiler -v </dev/null >&5) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }
2151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152  (eval $ac_compiler -V </dev/null >&5) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }
2156
2157cat >conftest.$ac_ext <<_ACEOF
2158/* confdefs.h.  */
2159_ACEOF
2160cat confdefs.h >>conftest.$ac_ext
2161cat >>conftest.$ac_ext <<_ACEOF
2162/* end confdefs.h.  */
2163
2164int
2165main ()
2166{
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172ac_clean_files_save=$ac_clean_files
2173ac_clean_files="$ac_clean_files a.out a.exe b.out"
2174# Try to create an executable without -o first, disregard a.out.
2175# It will help us diagnose broken compilers, and finding out an intuition
2176# of exeext.
2177echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181  (eval $ac_link_default) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; then
2185  # Find the output, starting from the most likely.  This scheme is
2186# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187# resort.
2188
2189# Be careful to initialize this variable, since it used to be cached.
2190# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191ac_cv_exeext=
2192# b.out is created by i960 compilers.
2193for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2194do
2195  test -f "$ac_file" || continue
2196  case $ac_file in
2197    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2198        ;;
2199    conftest.$ac_ext )
2200        # This is the source file.
2201        ;;
2202    [ab].out )
2203        # We found the default executable, but exeext='' is most
2204        # certainly right.
2205        break;;
2206    *.* )
2207        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208        # FIXME: I believe we export ac_cv_exeext for Libtool,
2209        # but it would be cool to find out if it's true.  Does anybody
2210        # maintain Libtool? --akim.
2211        export ac_cv_exeext
2212        break;;
2213    * )
2214        break;;
2215  esac
2216done
2217else
2218  echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: C compiler cannot create executables
2224See \`config.log' for more details." >&2;}
2225   { (exit 77); exit 77; }; }
2226fi
2227
2228ac_exeext=$ac_cv_exeext
2229echo "$as_me:$LINENO: result: $ac_file" >&5
2230echo "${ECHO_T}$ac_file" >&6
2231
2232# Check the compiler produces executables we can run.  If not, either
2233# the compiler is broken, or we cross compile.
2234echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237# If not cross compiling, check that we can run a simple program.
2238if test "$cross_compiling" != yes; then
2239  if { ac_try='./$ac_file'
2240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241  (eval $ac_try) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }; }; then
2245    cross_compiling=no
2246  else
2247    if test "$cross_compiling" = maybe; then
2248        cross_compiling=yes
2249    else
2250        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: cannot run C compiled programs.
2254If you meant to cross compile, use \`--host'.
2255See \`config.log' for more details." >&2;}
2256   { (exit 1); exit 1; }; }
2257    fi
2258  fi
2259fi
2260echo "$as_me:$LINENO: result: yes" >&5
2261echo "${ECHO_T}yes" >&6
2262
2263rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264ac_clean_files=$ac_clean_files_save
2265# Check the compiler produces executables we can run.  If not, either
2266# the compiler is broken, or we cross compile.
2267echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270echo "${ECHO_T}$cross_compiling" >&6
2271
2272echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275  (eval $ac_link) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; then
2279  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
2283for ac_file in conftest.exe conftest conftest.*; do
2284  test -f "$ac_file" || continue
2285  case $ac_file in
2286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2287    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288          export ac_cv_exeext
2289          break;;
2290    * ) break;;
2291  esac
2292done
2293else
2294  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&5
2296echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297See \`config.log' for more details." >&2;}
2298   { (exit 1); exit 1; }; }
2299fi
2300
2301rm -f conftest$ac_cv_exeext
2302echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303echo "${ECHO_T}$ac_cv_exeext" >&6
2304
2305rm -f conftest.$ac_ext
2306EXEEXT=$ac_cv_exeext
2307ac_exeext=$EXEEXT
2308echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310if test "${ac_cv_objext+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319
2320int
2321main ()
2322{
2323
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328rm -f conftest.o conftest.obj
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330  (eval $ac_compile) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; then
2334  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335  case $ac_file in
2336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2337    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338       break;;
2339  esac
2340done
2341else
2342  echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&2;}
2349   { (exit 1); exit 1; }; }
2350fi
2351
2352rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353fi
2354echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355echo "${ECHO_T}$ac_cv_objext" >&6
2356OBJEXT=$ac_cv_objext
2357ac_objext=$OBJEXT
2358echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h.  */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h.  */
2369
2370int
2371main ()
2372{
2373#ifndef __GNUC__
2374       choke me
2375#endif
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383  (eval $ac_compile) 2>conftest.er1
2384  ac_status=$?
2385  grep -v '^ *+' conftest.er1 >conftest.err
2386  rm -f conftest.er1
2387  cat conftest.err >&5
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); } &&
2390         { ac_try='test -z "$ac_c_werror_flag"
2391                         || test ! -s conftest.err'
2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393  (eval $ac_try) 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; } &&
2397         { ac_try='test -s conftest.$ac_objext'
2398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399  (eval $ac_try) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; }; then
2403  ac_compiler_gnu=yes
2404else
2405  echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408ac_compiler_gnu=no
2409fi
2410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412
2413fi
2414echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416GCC=`test $ac_compiler_gnu = yes && echo yes`
2417ac_test_CFLAGS=${CFLAGS+set}
2418ac_save_CFLAGS=$CFLAGS
2419CFLAGS="-g"
2420echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422if test "${ac_cv_prog_cc_g+set}" = set; then
2423  echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425  cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h.  */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h.  */
2431
2432int
2433main ()
2434{
2435
2436  ;
2437  return 0;
2438}
2439_ACEOF
2440rm -f conftest.$ac_objext
2441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442  (eval $ac_compile) 2>conftest.er1
2443  ac_status=$?
2444  grep -v '^ *+' conftest.er1 >conftest.err
2445  rm -f conftest.er1
2446  cat conftest.err >&5
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); } &&
2449         { ac_try='test -z "$ac_c_werror_flag"
2450                         || test ! -s conftest.err'
2451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452  (eval $ac_try) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }; } &&
2456         { ac_try='test -s conftest.$ac_objext'
2457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458  (eval $ac_try) 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; }; then
2462  ac_cv_prog_cc_g=yes
2463else
2464  echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467ac_cv_prog_cc_g=no
2468fi
2469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2470fi
2471echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2472echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2473if test "$ac_test_CFLAGS" = set; then
2474  CFLAGS=$ac_save_CFLAGS
2475elif test $ac_cv_prog_cc_g = yes; then
2476  if test "$GCC" = yes; then
2477    CFLAGS="-g -O2"
2478  else
2479    CFLAGS="-g"
2480  fi
2481else
2482  if test "$GCC" = yes; then
2483    CFLAGS="-O2"
2484  else
2485    CFLAGS=
2486  fi
2487fi
2488echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2489echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2490if test "${ac_cv_prog_cc_stdc+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  ac_cv_prog_cc_stdc=no
2494ac_save_CC=$CC
2495cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h.  */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h.  */
2501#include <stdarg.h>
2502#include <stdio.h>
2503#include <sys/types.h>
2504#include <sys/stat.h>
2505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2506struct buf { int x; };
2507FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508static char *e (p, i)
2509     char **p;
2510     int i;
2511{
2512  return p[i];
2513}
2514static char *f (char * (*g) (char **, int), char **p, ...)
2515{
2516  char *s;
2517  va_list v;
2518  va_start (v,p);
2519  s = g (p, va_arg (v,int));
2520  va_end (v);
2521  return s;
2522}
2523
2524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2525   function prototypes and stuff, but not '\xHH' hex character constants.
2526   These don't provoke an error unfortunately, instead are silently treated
2527   as 'x'.  The following induces an error, until -std1 is added to get
2528   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2529   array size at least.  It's necessary to write '\x00'==0 to get something
2530   that's true only with -std1.  */
2531int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2532
2533int test (int i, double x);
2534struct s1 {int (*f) (int a);};
2535struct s2 {int (*f) (double a);};
2536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537int argc;
2538char **argv;
2539int
2540main ()
2541{
2542return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2543  ;
2544  return 0;
2545}
2546_ACEOF
2547# Don't try gcc -ansi; that turns off useful extensions and
2548# breaks some systems' header files.
2549# AIX                   -qlanglvl=ansi
2550# Ultrix and OSF/1      -std1
2551# HP-UX 10.20 and later -Ae
2552# HP-UX older versions  -Aa -D_HPUX_SOURCE
2553# SVR4                  -Xc -D__EXTENSIONS__
2554for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2555do
2556  CC="$ac_save_CC $ac_arg"
2557  rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559  (eval $ac_compile) 2>conftest.er1
2560  ac_status=$?
2561  grep -v '^ *+' conftest.er1 >conftest.err
2562  rm -f conftest.er1
2563  cat conftest.err >&5
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); } &&
2566         { ac_try='test -z "$ac_c_werror_flag"
2567                         || test ! -s conftest.err'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; } &&
2573         { ac_try='test -s conftest.$ac_objext'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; }; then
2579  ac_cv_prog_cc_stdc=$ac_arg
2580break
2581else
2582  echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585fi
2586rm -f conftest.err conftest.$ac_objext
2587done
2588rm -f conftest.$ac_ext conftest.$ac_objext
2589CC=$ac_save_CC
2590
2591fi
2592
2593case "x$ac_cv_prog_cc_stdc" in
2594  x|xno)
2595    echo "$as_me:$LINENO: result: none needed" >&5
2596echo "${ECHO_T}none needed" >&6 ;;
2597  *)
2598    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600    CC="$CC $ac_cv_prog_cc_stdc" ;;
2601esac
2602
2603# Some people use a C++ compiler to compile C.  Since we use `exit',
2604# in C++ we need to declare it.  In case someone uses the same compiler
2605# for both compiling C and C++ we need to have the C++ compiler decide
2606# the declaration of exit, since it's the most demanding environment.
2607cat >conftest.$ac_ext <<_ACEOF
2608#ifndef __cplusplus
2609  choke me
2610#endif
2611_ACEOF
2612rm -f conftest.$ac_objext
2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614  (eval $ac_compile) 2>conftest.er1
2615  ac_status=$?
2616  grep -v '^ *+' conftest.er1 >conftest.err
2617  rm -f conftest.er1
2618  cat conftest.err >&5
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); } &&
2621         { ac_try='test -z "$ac_c_werror_flag"
2622                         || test ! -s conftest.err'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; } &&
2628         { ac_try='test -s conftest.$ac_objext'
2629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630  (eval $ac_try) 2>&5
2631  ac_status=$?
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); }; }; then
2634  for ac_declaration in \
2635   '' \
2636   'extern "C" void std::exit (int) throw (); using std::exit;' \
2637   'extern "C" void std::exit (int); using std::exit;' \
2638   'extern "C" void exit (int) throw ();' \
2639   'extern "C" void exit (int);' \
2640   'void exit (int);'
2641do
2642  cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h.  */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h.  */
2648$ac_declaration
2649#include <stdlib.h>
2650int
2651main ()
2652{
2653exit (42);
2654  ;
2655  return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext
2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660  (eval $ac_compile) 2>conftest.er1
2661  ac_status=$?
2662  grep -v '^ *+' conftest.er1 >conftest.err
2663  rm -f conftest.er1
2664  cat conftest.err >&5
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); } &&
2667         { ac_try='test -z "$ac_c_werror_flag"
2668                         || test ! -s conftest.err'
2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670  (eval $ac_try) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); }; } &&
2674         { ac_try='test -s conftest.$ac_objext'
2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676  (eval $ac_try) 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; }; then
2680  :
2681else
2682  echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685continue
2686fi
2687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688  cat >conftest.$ac_ext <<_ACEOF
2689/* confdefs.h.  */
2690_ACEOF
2691cat confdefs.h >>conftest.$ac_ext
2692cat >>conftest.$ac_ext <<_ACEOF
2693/* end confdefs.h.  */
2694$ac_declaration
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  break
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732done
2733rm -f conftest*
2734if test -n "$ac_declaration"; then
2735  echo '#ifdef __cplusplus' >>confdefs.h
2736  echo $ac_declaration      >>confdefs.h
2737  echo '#endif'             >>confdefs.h
2738fi
2739
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744fi
2745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746ac_ext=c
2747ac_cpp='$CPP $CPPFLAGS'
2748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
2752if test -z "$CC" ; then
2753  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2754echo "$as_me: error: Failed to find a C compiler!" >&2;}
2755   { (exit 1); exit 1; }; }
2756fi
2757# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2758case "$CC" in
2759  cl* | */cl* | CL* | */CL* )
2760    if test "$ac_cv_prog_cc_g" = yes ; then
2761      ac_cv_prog_cc_g=no
2762      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2763echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2764    fi ;;
2765esac
2766CFLAGS="$save_cflags"
2767
2768# add automake conditional so we can recognize cl compiler in makefile
2769coin_cc_is_cl=false
2770case "$CC" in
2771  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2772    coin_cc_is_cl=true
2773    ;;
2774esac
2775
2776
2777if test $coin_cc_is_cl = true; then
2778  COIN_CC_IS_CL_TRUE=
2779  COIN_CC_IS_CL_FALSE='#'
2780else
2781  COIN_CC_IS_CL_TRUE='#'
2782  COIN_CC_IS_CL_FALSE=
2783fi
2784
2785
2786# Check if a project specific CFLAGS variable has been set
2787if test x$COIN_PRJCT != x; then
2788  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2789  if test x$coin_tmp = xset; then
2790    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2791  fi
2792fi
2793
2794if test x"$CFLAGS" = x; then
2795
2796  coin_add_cflags=
2797  coin_opt_cflags=
2798  coin_dbg_cflags=
2799  coin_warn_cflags=
2800
2801  if test "$GCC" = "yes"; then
2802    case "$CC" in
2803      icc* | */icc*)
2804        ;;
2805      *)
2806        coin_opt_cflags="-O3"
2807        coin_add_cflags="-pipe"
2808        coin_dbg_cflags="-g"
2809        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2810        case $build in
2811          *-darwin*)
2812            ;;
2813          *)
2814            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2815            ;;
2816        esac
2817        case $enable_doscompile in
2818          mingw)
2819            CFLAGS="-mno-cygwin"
2820            cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830int i=0; i++;
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext conftest$ac_exeext
2836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2837  (eval $ac_link) 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } &&
2844         { ac_try='test -z "$ac_c_werror_flag"
2845                         || test ! -s conftest.err'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; } &&
2851         { ac_try='test -s conftest$ac_exeext'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; }; then
2857  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864      conftest$ac_exeext conftest.$ac_ext
2865            CFLAGS=
2866          ;;
2867        esac
2868    esac
2869  fi
2870  if test -z "$coin_opt_cflags"; then
2871    case $build in
2872      *-cygwin* | *-mingw*)
2873        case "$CC" in
2874          cl* | */cl* | CL* | */CL*)
2875            coin_opt_cflags='-MT -O2'
2876            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2877            coin_dbg_cflags='-MTd'
2878            ;;
2879          icl* | */icl* | ICL* | */ICL*)
2880            coin_opt_cflags='-MT -Ox'
2881            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2882            coin_dbg_cflags='-MTd -debug'
2883            ;;
2884        esac
2885        ;;
2886      *-linux-*)
2887        case "$CC" in
2888          icc* | */icc*)
2889            coin_opt_cflags="-O3 -ip -mp1"
2890            coin_add_cflags=""
2891            coin_dbg_cflags="-g"
2892            # Check if -i_dynamic is necessary (for new glibc library)
2893            CFLAGS=
2894            cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  :
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936coin_add_cflags="-i_dynamic $coin_add_cflags"
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939      conftest$ac_exeext conftest.$ac_ext
2940            ;;
2941          pgcc* | */pgcc*)
2942            coin_opt_cflags="-fast"
2943            coin_add_cflags="-Kieee -pc 64"
2944            coin_dbg_cflags="-g"
2945            ;;
2946        esac
2947        ;;
2948      *-ibm-*)
2949        case "$CC" in
2950          xlc* | */xlc* | mpxlc* | */mpxlc*)
2951            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2952            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2953            coin_dbg_cflags="-g"
2954          ;;
2955        esac
2956        ;;
2957      *-hp-*)
2958        coin_opt_cflags="-O"
2959        coin_add_cflags="-Ae"
2960        coin_dbg_cflags="-g"
2961        ;;
2962      *-*-solaris*)
2963        coin_opt_cflags="-xO4"
2964        coin_dbg_cflags="-g"
2965        ;;
2966      *-sgi-*)
2967        coin_opt_cflags="-O -OPT:Olimit=0"
2968        coin_dbg_cflags="-g"
2969        ;;
2970    esac
2971  fi
2972
2973  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2974    coin_dbg_cflags="-g"
2975  fi
2976
2977  if test -z "$coin_opt_cflags"; then
2978    # Try if -O option works if nothing else is set
2979    CFLAGS="-O"
2980    cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h.  */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h.  */
2986
2987int
2988main ()
2989{
2990int i=0; i++;
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext conftest$ac_exeext
2996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997  (eval $ac_link) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004         { ac_try='test -z "$ac_c_werror_flag"
3005                         || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011         { ac_try='test -s conftest$ac_exeext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  coin_opt_cflags="-O"
3018else
3019  echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022fi
3023rm -f conftest.err conftest.$ac_objext \
3024      conftest$ac_exeext conftest.$ac_ext
3025  fi
3026
3027  # if PM doesn't want the warning messages, take them out
3028  if test x"$coin_skip_warn_cflags" = xyes; then
3029    coin_warn_cflags=
3030  fi
3031
3032  if test x${DBG_CFLAGS+set} != xset; then
3033    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3034  fi
3035  if test x${OPT_CFLAGS+set} != xset; then
3036    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3037  fi
3038
3039  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3040  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3041
3042  if test "$coin_debug_compile" = "true"; then
3043    CFLAGS="$DBG_CFLAGS"
3044  else
3045    CFLAGS="$OPT_CFLAGS"
3046  fi
3047else
3048  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3049  if test x${DBG_CFLAGS+set} != xset; then
3050    DBG_CFLAGS="$CFLAGS"
3051  fi
3052  if test x${OPT_CFLAGS+set} != xset; then
3053    OPT_CFLAGS="$CFLAGS"
3054  fi
3055fi
3056
3057# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3058
3059case "$CFLAGS" in
3060  *-mno-cygwin*)
3061    if test x${CPPFLAGS+set} != xset ; then
3062      CPPFLAGS="-mno-cygwin"
3063    else
3064      case "$CPPFLAGS" in
3065        *-mno-cygwin*)
3066          ;;
3067        *)
3068          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3069          ;;
3070      esac
3071    fi ;;
3072esac
3073
3074# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3075if test x$COIN_PRJCT != x; then
3076  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3077fi
3078
3079# Try if CFLAGS works
3080save_CFLAGS="$CFLAGS"
3081cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h.  */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091int i=0; i++;
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext conftest$ac_exeext
3097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098  (eval $ac_link) 2>conftest.er1
3099  ac_status=$?
3100  grep -v '^ *+' conftest.er1 >conftest.err
3101  rm -f conftest.er1
3102  cat conftest.err >&5
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); } &&
3105         { ac_try='test -z "$ac_c_werror_flag"
3106                         || test ! -s conftest.err'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; } &&
3112         { ac_try='test -s conftest$ac_exeext'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; }; then
3118  :
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123CFLAGS=
3124fi
3125rm -f conftest.err conftest.$ac_objext \
3126      conftest$ac_exeext conftest.$ac_ext
3127if test -z "$CFLAGS"; then
3128  { 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
3129echo "$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;}
3130  CFLAGS='-O'
3131  cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h.  */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h.  */
3137
3138int
3139main ()
3140{
3141int i=0; i++;
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148  (eval $ac_link) 2>conftest.er1
3149  ac_status=$?
3150  grep -v '^ *+' conftest.er1 >conftest.err
3151  rm -f conftest.er1
3152  cat conftest.err >&5
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } &&
3155         { ac_try='test -z "$ac_c_werror_flag"
3156                         || test ! -s conftest.err'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; } &&
3162         { ac_try='test -s conftest$ac_exeext'
3163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164  (eval $ac_try) 2>&5
3165  ac_status=$?
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }; }; then
3168  :
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173CFLAGS=
3174fi
3175rm -f conftest.err conftest.$ac_objext \
3176      conftest$ac_exeext conftest.$ac_ext
3177  if test -z "$CFLAGS"; then
3178    { 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
3179echo "$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;}
3180  fi
3181fi
3182
3183{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3184echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3185
3186
3187if test x"$MPICC" = x; then :; else
3188  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3189echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3190  CC="$MPICC"
3191fi
3192
3193# Correct the LD variable if we are using the MS or Intel-windows compiler
3194case "$CC" in
3195  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3196    case $build in
3197  *-mingw*)
3198    if test "${LD+set}" = set; then :; else
3199      LD=link
3200    fi
3201    ;;
3202 esac
3203 case $enable_doscompile in
3204   msvc)
3205     if test "x${LD+set}" = xset; then :; else
3206       LD=link
3207     fi
3208     ;;
3209 esac
3210
3211    ;;
3212esac
3213
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219
3220
3221case $build in
3222  *-cygwin* | *-mingw*)
3223     if test "$enable_doscompile" = msvc ; then
3224       coin_f77_comps="ifort fl32 compile_f2c"
3225     else
3226       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3227     fi ;;
3228  *-*-solaris*)
3229     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3230  *-linux-gnu*)
3231     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3232  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3233 esac
3234
3235
3236
3237
3238
3239
3240ac_ext=f
3241ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3242ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3244
3245
3246
3247
3248
3249
3250coin_has_f77=yes
3251
3252save_fflags="$FFLAGS"
3253
3254# We delete the cached value, since the test might not have been
3255# performed with our choice of compilers earlier
3256$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3257
3258# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3259# coin_f77_comps to see if there's a program that matches one of the names.
3260# If there's no such program, F77 = unavailable. If we match the name,
3261# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3262# compiler.
3263# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3264
3265
3266{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3267echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3268for ac_prog in $coin_f77_comps
3269do
3270  # Extract the first word of "$ac_prog", so it can be a program name with args.
3271set dummy $ac_prog; ac_word=$2
3272echo "$as_me:$LINENO: checking for $ac_word" >&5
3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274if test "${ac_cv_prog_F77+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  if test -n "$F77"; then
3278  ac_cv_prog_F77="$F77" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285  for ac_exec_ext in '' $ac_executable_extensions; do
3286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_F77="$ac_prog"
3288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292done
3293
3294fi
3295fi
3296F77=$ac_cv_prog_F77
3297if test -n "$F77"; then
3298  echo "$as_me:$LINENO: result: $F77" >&5
3299echo "${ECHO_T}$F77" >&6
3300else
3301  echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303fi
3304
3305  test -n "$F77" && break
3306done
3307test -n "$F77" || F77="unavailable"
3308
3309
3310if test "$F77" != "unavailable" ; then
3311  ac_ext=f
3312ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3313ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3314ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3315if test -n "$ac_tool_prefix"; then
3316  for ac_prog in $coin_f77_comps
3317  do
3318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3320echo "$as_me:$LINENO: checking for $ac_word" >&5
3321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3322if test "${ac_cv_prog_F77+set}" = set; then
3323  echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325  if test -n "$F77"; then
3326  ac_cv_prog_F77="$F77" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331  IFS=$as_save_IFS
3332  test -z "$as_dir" && as_dir=.
3333  for ac_exec_ext in '' $ac_executable_extensions; do
3334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337    break 2
3338  fi
3339done
3340done
3341
3342fi
3343fi
3344F77=$ac_cv_prog_F77
3345if test -n "$F77"; then
3346  echo "$as_me:$LINENO: result: $F77" >&5
3347echo "${ECHO_T}$F77" >&6
3348else
3349  echo "$as_me:$LINENO: result: no" >&5
3350echo "${ECHO_T}no" >&6
3351fi
3352
3353    test -n "$F77" && break
3354  done
3355fi
3356if test -z "$F77"; then
3357  ac_ct_F77=$F77
3358  for ac_prog in $coin_f77_comps
3359do
3360  # Extract the first word of "$ac_prog", so it can be a program name with args.
3361set dummy $ac_prog; ac_word=$2
3362echo "$as_me:$LINENO: checking for $ac_word" >&5
3363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3364if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3365  echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367  if test -n "$ac_ct_F77"; then
3368  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3369else
3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371for as_dir in $PATH
3372do
3373  IFS=$as_save_IFS
3374  test -z "$as_dir" && as_dir=.
3375  for ac_exec_ext in '' $ac_executable_extensions; do
3376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377    ac_cv_prog_ac_ct_F77="$ac_prog"
3378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379    break 2
3380  fi
3381done
3382done
3383
3384fi
3385fi
3386ac_ct_F77=$ac_cv_prog_ac_ct_F77
3387if test -n "$ac_ct_F77"; then
3388  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3389echo "${ECHO_T}$ac_ct_F77" >&6
3390else
3391  echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393fi
3394
3395  test -n "$ac_ct_F77" && break
3396done
3397
3398  F77=$ac_ct_F77
3399fi
3400
3401
3402# Provide some information about the compiler.
3403echo "$as_me:3403:" \
3404     "checking for Fortran 77 compiler version" >&5
3405ac_compiler=`set X $ac_compile; echo $2`
3406{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3407  (eval $ac_compiler --version </dev/null >&5) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }
3411{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3412  (eval $ac_compiler -v </dev/null >&5) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }
3416{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3417  (eval $ac_compiler -V </dev/null >&5) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }
3421rm -f a.out
3422
3423# If we don't use `.F' as extension, the preprocessor is not run on the
3424# input file.  (Note that this only needs to work for GNU compilers.)
3425ac_save_ext=$ac_ext
3426ac_ext=F
3427echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3428echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3429if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3430  echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432  cat >conftest.$ac_ext <<_ACEOF
3433      program main
3434#ifndef __GNUC__
3435       choke me
3436#endif
3437
3438      end
3439_ACEOF
3440rm -f conftest.$ac_objext
3441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442  (eval $ac_compile) 2>conftest.er1
3443  ac_status=$?
3444  grep -v '^ *+' conftest.er1 >conftest.err
3445  rm -f conftest.er1
3446  cat conftest.err >&5
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); } &&
3449         { ac_try='test -z "$ac_f77_werror_flag"
3450                         || test ! -s conftest.err'
3451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452  (eval $ac_try) 2>&5
3453  ac_status=$?
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); }; } &&
3456         { ac_try='test -s conftest.$ac_objext'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; }; then
3462  ac_compiler_gnu=yes
3463else
3464  echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467ac_compiler_gnu=no
3468fi
3469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3470ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3471
3472fi
3473echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3474echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3475ac_ext=$ac_save_ext
3476ac_test_FFLAGS=${FFLAGS+set}
3477ac_save_FFLAGS=$FFLAGS
3478FFLAGS=
3479echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3480echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3481if test "${ac_cv_prog_f77_g+set}" = set; then
3482  echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484  FFLAGS=-g
3485cat >conftest.$ac_ext <<_ACEOF
3486      program main
3487
3488      end
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_f77_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest.$ac_objext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  ac_cv_prog_f77_g=yes
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517ac_cv_prog_f77_g=no
3518fi
3519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520
3521fi
3522echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3523echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3524if test "$ac_test_FFLAGS" = set; then
3525  FFLAGS=$ac_save_FFLAGS
3526elif test $ac_cv_prog_f77_g = yes; then
3527  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3528    FFLAGS="-g -O2"
3529  else
3530    FFLAGS="-g"
3531  fi
3532else
3533  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3534    FFLAGS="-O2"
3535  else
3536    FFLAGS=
3537  fi
3538fi
3539
3540G77=`test $ac_compiler_gnu = yes && echo yes`
3541ac_ext=f
3542ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3543ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3545
3546else
3547  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3548echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3549fi
3550
3551FFLAGS="$save_fflags"
3552
3553# Check if a project specific FFLAGS variable has been set
3554if test x$COIN_PRJCT != x; then
3555  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3556  if test x$coin_tmp = xset; then
3557    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3558  fi
3559fi
3560
3561if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3562
3563  coin_add_fflags=
3564  coin_opt_fflags=
3565  coin_dbg_fflags=
3566  coin_warn_fflags=
3567
3568  if test "$G77" = "yes"; then
3569    coin_opt_fflags="-O3"
3570    coin_add_fflags="-pipe"
3571    coin_dbg_fflags="-g"
3572    case $enable_doscompile in
3573      mingw)
3574        FFLAGS="-mno-cygwin"
3575        cat >conftest.$ac_ext <<_ACEOF
3576      program main
3577      write(*,*) 'Hello world'
3578      end
3579_ACEOF
3580rm -f conftest.$ac_objext conftest$ac_exeext
3581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3582  (eval $ac_link) 2>conftest.er1
3583  ac_status=$?
3584  grep -v '^ *+' conftest.er1 >conftest.err
3585  rm -f conftest.er1
3586  cat conftest.err >&5
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); } &&
3589         { ac_try='test -z "$ac_f77_werror_flag"
3590                         || test ! -s conftest.err'
3591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592  (eval $ac_try) 2>&5
3593  ac_status=$?
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); }; } &&
3596         { ac_try='test -s conftest$ac_exeext'
3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598  (eval $ac_try) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }; }; then
3602  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3603else
3604  echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607fi
3608rm -f conftest.err conftest.$ac_objext \
3609      conftest$ac_exeext conftest.$ac_ext
3610        FFLAGS=
3611      ;;
3612    esac
3613  else
3614    case $build in
3615      *-cygwin* | *-mingw*)
3616        case $F77 in
3617          ifort* | */ifort* | IFORT* | */IFORT* )
3618            coin_opt_fflags='-MT -O3'
3619            coin_add_fflags='-fpp -nologo'
3620            coin_dbg_fflags='-MTd -debug'
3621          ;;
3622          compile_f2c*)
3623            coin_opt_fflags='-MT -O2'
3624            coin_add_fflags='-nologo -wd4996'
3625            coin_dbg_fflags='-MTd'
3626          ;;
3627        esac
3628        ;;
3629      *-linux-*)
3630        case $F77 in
3631          ifc* | */ifc* | ifort* | */ifort*)
3632            coin_opt_fflags="-O3 -ip"
3633            coin_add_fflags="-cm -w90 -w95"
3634            coin_dbg_fflags="-g -CA -CB -CS"
3635            # Check if -i_dynamic is necessary (for new glibc library)
3636            FFLAGS=
3637            cat >conftest.$ac_ext <<_ACEOF
3638      program main
3639      write(*,*) 'Hello world'
3640      end
3641_ACEOF
3642rm -f conftest.$ac_objext conftest$ac_exeext
3643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3644  (eval $ac_link) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } &&
3651         { ac_try='test -z "$ac_f77_werror_flag"
3652                         || test ! -s conftest.err'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; } &&
3658         { ac_try='test -s conftest$ac_exeext'
3659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660  (eval $ac_try) 2>&5
3661  ac_status=$?
3662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663  (exit $ac_status); }; }; then
3664  :
3665else
3666  echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669coin_add_fflags="-i_dynamic $coin_add_fflags"
3670fi
3671rm -f conftest.err conftest.$ac_objext \
3672      conftest$ac_exeext conftest.$ac_ext
3673            ;;
3674          pgf77* | */pgf77* | pgf90* | */pgf90*)
3675            coin_opt_fflags="-fast"
3676            coin_add_fflags="-Kieee -pc 64"
3677            coin_dbg_fflags="-g"
3678          ;;
3679        esac
3680        ;;
3681      *-ibm-*)
3682        case "$F77" in
3683          xlf* | */xlf* | mpxlf* | */mpxlf* )
3684            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3685            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3686            coin_dbg_fflags="-g -C"
3687            ;;
3688        esac
3689        ;;
3690      *-hp-*)
3691        coin_opt_fflags="+O3"
3692        coin_add_fflags="+U77"
3693        coin_dbg_fflags="-C -g"
3694        ;;
3695      *-*-solaris*)
3696        coin_opt_fflags="-O4"
3697        coin_dbg_fflags="-g"
3698        ;;
3699      *-sgi-*)
3700        coin_opt_fflags="-O5 -OPT:Olimit=0"
3701        coin_dbg_fflags="-g"
3702        ;;
3703    esac
3704  fi
3705
3706  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3707    coin_dbg_fflags="-g"
3708  fi
3709
3710  if test -z "$coin_opt_fflags"; then
3711    # Try if -O option works if nothing else is set
3712    FFLAGS=-O
3713    cat >conftest.$ac_ext <<_ACEOF
3714      program main
3715      integer i
3716      end
3717_ACEOF
3718rm -f conftest.$ac_objext conftest$ac_exeext
3719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3720  (eval $ac_link) 2>conftest.er1
3721  ac_status=$?
3722  grep -v '^ *+' conftest.er1 >conftest.err
3723  rm -f conftest.er1
3724  cat conftest.err >&5
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); } &&
3727         { ac_try='test -z "$ac_f77_werror_flag"
3728                         || test ! -s conftest.err'
3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730  (eval $ac_try) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; } &&
3734         { ac_try='test -s conftest$ac_exeext'
3735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736  (eval $ac_try) 2>&5
3737  ac_status=$?
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); }; }; then
3740  coin_opt_fflags="-O"
3741else
3742  echo "$as_me: failed program was:" >&5
3743sed 's/^/| /' conftest.$ac_ext >&5
3744
3745fi
3746rm -f conftest.err conftest.$ac_objext \
3747      conftest$ac_exeext conftest.$ac_ext
3748  fi
3749
3750  # if PM doesn't want the warning messages, take them out
3751  if test x"$coin_skip_warn_fflags" = xyes; then
3752    coin_warn_fflags=
3753  fi
3754
3755  if test x${DBG_FFLAGS+set} != xset; then
3756    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3757  fi
3758  if test x${OPT_FFLAGS+set} != xset; then
3759    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3760  fi
3761
3762  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3763  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3764
3765  if test "$coin_debug_compile" = "true"; then
3766    FFLAGS="$DBG_FFLAGS"
3767  else
3768    FFLAGS="$OPT_FFLAGS"
3769  fi
3770else
3771  FFLAGS="$FFLAGS $ADD_FFLAGS"
3772  if test x${DBG_FFLAGS+set} != xset; then
3773    DBG_FFLAGS="$FFLAGS"
3774  fi
3775  if test x${OPT_FFLAGS+set} != xset; then
3776    OPT_FFLAGS="$FFLAGS"
3777  fi
3778fi
3779
3780# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3781case "$FFLAGS" in
3782  *-mno-cygwin*)
3783    if test x${CPPFLAGS+set} != xset ; then
3784      CPPFLAGS="-mno-cygwin"
3785    else
3786      case "$CPPFLAGS" in
3787        *-mno-cygwin*)
3788          ;;
3789        *)
3790          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3791          ;;
3792      esac
3793    fi ;;
3794esac
3795
3796# Try if FFLAGS works
3797if test "$F77" != "unavailable" ; then
3798  cat >conftest.$ac_ext <<_ACEOF
3799      program main
3800      integer i
3801      end
3802_ACEOF
3803rm -f conftest.$ac_objext conftest$ac_exeext
3804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3805  (eval $ac_link) 2>conftest.er1
3806  ac_status=$?
3807  grep -v '^ *+' conftest.er1 >conftest.err
3808  rm -f conftest.er1
3809  cat conftest.err >&5
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); } &&
3812         { ac_try='test -z "$ac_f77_werror_flag"
3813                         || test ! -s conftest.err'
3814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815  (eval $ac_try) 2>&5
3816  ac_status=$?
3817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818  (exit $ac_status); }; } &&
3819         { ac_try='test -s conftest$ac_exeext'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; }; then
3825  :
3826else
3827  echo "$as_me: failed program was:" >&5
3828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830FFLAGS=
3831fi
3832rm -f conftest.err conftest.$ac_objext \
3833      conftest$ac_exeext conftest.$ac_ext
3834  if test -z "$FFLAGS"; then
3835    { 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
3836echo "$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;}
3837    FFLAGS='-O'
3838    cat >conftest.$ac_ext <<_ACEOF
3839      program main
3840      integer i
3841      end
3842_ACEOF
3843rm -f conftest.$ac_objext conftest$ac_exeext
3844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845  (eval $ac_link) 2>conftest.er1
3846  ac_status=$?
3847  grep -v '^ *+' conftest.er1 >conftest.err
3848  rm -f conftest.er1
3849  cat conftest.err >&5
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); } &&
3852         { ac_try='test -z "$ac_f77_werror_flag"
3853                         || test ! -s conftest.err'
3854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855  (eval $ac_try) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; } &&
3859         { ac_try='test -s conftest$ac_exeext'
3860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861  (eval $ac_try) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; }; then
3865  :
3866else
3867  echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870FFLAGS=
3871fi
3872rm -f conftest.err conftest.$ac_objext \
3873      conftest$ac_exeext conftest.$ac_ext
3874    if test -z "$FFLAGS"; then
3875      { 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
3876echo "$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;}
3877    fi
3878  fi
3879fi
3880
3881{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3882echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3883
3884
3885if test x"$MPIF77" = x; then :; else
3886  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3887echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3888  F77="$MPIF77"
3889fi
3890
3891# correct the LD variable if we use the intel fortran compiler in windows
3892case "$F77" in
3893  ifort* | */ifort* | IFORT* | */IFORT*)
3894    case $build in
3895  *-mingw*)
3896    if test "${LD+set}" = set; then :; else
3897      LD=link
3898    fi
3899    ;;
3900 esac
3901 case $enable_doscompile in
3902   msvc)
3903     if test "x${LD+set}" = xset; then :; else
3904       LD=link
3905     fi
3906     ;;
3907 esac
3908
3909    ;;
3910esac
3911
3912ac_ext=c
3913ac_cpp='$CPP $CPPFLAGS'
3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917
3918
3919
3920# Get the linker flags (FLIBS) that are required for linking against this blas library
3921
3922# get FLIBS
3923ac_ext=f
3924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3927echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3928echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3929if test "${ac_cv_prog_f77_v+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  cat >conftest.$ac_ext <<_ACEOF
3933      program main
3934
3935      end
3936_ACEOF
3937rm -f conftest.$ac_objext
3938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939  (eval $ac_compile) 2>conftest.er1
3940  ac_status=$?
3941  grep -v '^ *+' conftest.er1 >conftest.err
3942  rm -f conftest.er1
3943  cat conftest.err >&5
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); } &&
3946         { ac_try='test -z "$ac_f77_werror_flag"
3947                         || test ! -s conftest.err'
3948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949  (eval $ac_try) 2>&5
3950  ac_status=$?
3951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952  (exit $ac_status); }; } &&
3953         { ac_try='test -s conftest.$ac_objext'
3954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955  (eval $ac_try) 2>&5
3956  ac_status=$?
3957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958  (exit $ac_status); }; }; then
3959  ac_cv_prog_f77_v=
3960# Try some options frequently used verbose output
3961for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3962  cat >conftest.$ac_ext <<_ACEOF
3963      program main
3964
3965      end
3966_ACEOF
3967
3968# Compile and link our simple test program by passing a flag (argument
3969# 1 to this macro) to the Fortran compiler in order to get
3970# "verbose" output that we can then parse for the Fortran linker
3971# flags.
3972ac_save_FFLAGS=$FFLAGS
3973FFLAGS="$FFLAGS $ac_verb"
3974(eval echo $as_me:3974: \"$ac_link\") >&5
3975ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3976echo "$ac_f77_v_output" >&5
3977FFLAGS=$ac_save_FFLAGS
3978
3979rm -f conftest*
3980
3981# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3982# /foo, /bar, and /baz are search directories for the Fortran linker.
3983# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3984ac_f77_v_output="`echo $ac_f77_v_output |
3985        grep 'LPATH is:' |
3986        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3987
3988case $ac_f77_v_output in
3989  # If we are using xlf then replace all the commas with spaces.
3990  *xlfentry*)
3991    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3992
3993  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3994  # $LIBS confuse us, and the libraries appear later in the output anyway).
3995  *mGLOB_options_string*)
3996    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3997
3998  # If we are using Cray Fortran then delete quotes.
3999  # Use "\"" instead of '"' for font-lock-mode.
4000  # FIXME: a more general fix for quoted arguments with spaces?
4001  *cft90*)
4002    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4003esac
4004
4005
4006  # look for -l* and *.a constructs in the output
4007  for ac_arg in $ac_f77_v_output; do
4008     case $ac_arg in
4009        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4010          ac_cv_prog_f77_v=$ac_verb
4011          break 2 ;;
4012     esac
4013  done
4014done
4015if test -z "$ac_cv_prog_f77_v"; then
4016   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4017echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4018fi
4019else
4020  echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4024echo "$as_me: WARNING: compilation failed" >&2;}
4025fi
4026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4027
4028fi
4029echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4030echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4031echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4032echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4033if test "${ac_cv_f77_libs+set}" = set; then
4034  echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036  if test "x$FLIBS" != "x"; then
4037  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4038else
4039
4040cat >conftest.$ac_ext <<_ACEOF
4041      program main
4042
4043      end
4044_ACEOF
4045
4046# Compile and link our simple test program by passing a flag (argument
4047# 1 to this macro) to the Fortran compiler in order to get
4048# "verbose" output that we can then parse for the Fortran linker
4049# flags.
4050ac_save_FFLAGS=$FFLAGS
4051FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4052(eval echo $as_me:4052: \"$ac_link\") >&5
4053ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4054echo "$ac_f77_v_output" >&5
4055FFLAGS=$ac_save_FFLAGS
4056
4057rm -f conftest*
4058
4059# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4060# /foo, /bar, and /baz are search directories for the Fortran linker.
4061# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4062ac_f77_v_output="`echo $ac_f77_v_output |
4063        grep 'LPATH is:' |
4064        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4065
4066case $ac_f77_v_output in
4067  # If we are using xlf then replace all the commas with spaces.
4068  *xlfentry*)
4069    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4070
4071  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4072  # $LIBS confuse us, and the libraries appear later in the output anyway).
4073  *mGLOB_options_string*)
4074    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4075
4076  # If we are using Cray Fortran then delete quotes.
4077  # Use "\"" instead of '"' for font-lock-mode.
4078  # FIXME: a more general fix for quoted arguments with spaces?
4079  *cft90*)
4080    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4081esac
4082
4083
4084
4085ac_cv_f77_libs=
4086
4087# Save positional arguments (if any)
4088ac_save_positional="$@"
4089
4090set X $ac_f77_v_output
4091while test $# != 1; do
4092  shift
4093  ac_arg=$1
4094  case $ac_arg in
4095        [\\/]*.a | ?:[\\/]*.a)
4096            ac_exists=false
4097  for ac_i in $ac_cv_f77_libs; do
4098    if test x"$ac_arg" = x"$ac_i"; then
4099      ac_exists=true
4100      break
4101    fi
4102  done
4103
4104  if test x"$ac_exists" = xtrue; then
4105  :
4106else
4107  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4108fi
4109
4110          ;;
4111        -bI:*)
4112            ac_exists=false
4113  for ac_i in $ac_cv_f77_libs; do
4114    if test x"$ac_arg" = x"$ac_i"; then
4115      ac_exists=true
4116      break
4117    fi
4118  done
4119
4120  if test x"$ac_exists" = xtrue; then
4121  :
4122else
4123  if test "$ac_compiler_gnu" = yes; then
4124  for ac_link_opt in $ac_arg; do
4125    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4126  done
4127else
4128  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4129fi
4130fi
4131
4132          ;;
4133          # Ignore these flags.
4134        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4135          ;;
4136        -lkernel32)
4137          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4138          ;;
4139        -[LRuY])
4140          # These flags, when seen by themselves, take an argument.
4141          # We remove the space between option and argument and re-iterate
4142          # unless we find an empty arg or a new option (starting with -)
4143          case $2 in
4144             "" | -*);;
4145             *)
4146                ac_arg="$ac_arg$2"
4147                shift; shift
4148                set X $ac_arg "$@"
4149                ;;
4150          esac
4151          ;;
4152        -YP,*)
4153          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4154              ac_exists=false
4155  for ac_i in $ac_cv_f77_libs; do
4156    if test x"$ac_j" = x"$ac_i"; then
4157      ac_exists=true
4158      break
4159    fi
4160  done
4161
4162  if test x"$ac_exists" = xtrue; then
4163  :
4164else
4165  ac_arg="$ac_arg $ac_j"
4166                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4167fi
4168
4169          done
4170          ;;
4171        -[lLR]*)
4172            ac_exists=false
4173  for ac_i in $ac_cv_f77_libs; do
4174    if test x"$ac_arg" = x"$ac_i"; then
4175      ac_exists=true
4176      break
4177    fi
4178  done
4179
4180  if test x"$ac_exists" = xtrue; then
4181  :
4182else
4183  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4184fi
4185
4186          ;;
4187          # Ignore everything else.
4188  esac
4189done
4190# restore positional arguments
4191set X $ac_save_positional; shift
4192
4193# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4194# then we insist that the "run path" must be an absolute path (i.e. it
4195# must begin with a "/").
4196case `(uname -sr) 2>/dev/null` in
4197   "SunOS 5"*)
4198      ac_ld_run_path=`echo $ac_f77_v_output |
4199                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4200      test "x$ac_ld_run_path" != x &&
4201        if test "$ac_compiler_gnu" = yes; then
4202  for ac_link_opt in $ac_ld_run_path; do
4203    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4204  done
4205else
4206  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4207fi
4208      ;;
4209esac
4210fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4211
4212fi
4213echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4214echo "${ECHO_T}$ac_cv_f77_libs" >&6
4215FLIBS="$ac_cv_f77_libs"
4216
4217
4218ac_ext=c
4219ac_cpp='$CPP $CPPFLAGS'
4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224orig_FLIBS="$FLIBS"
4225
4226# If FLIBS has been set by the user, we just restore its value here
4227if test x"$save_FLIBS" != x; then
4228  FLIBS="$save_FLIBS"
4229else
4230  # This is to correct a missing exclusion in autoconf 2.59
4231  if test x"$FLIBS" != x; then
4232    my_flibs=
4233    for flag in $FLIBS; do
4234      case $flag in
4235        -lcrt*.o) ;;
4236        -lcygwin) ;;
4237               *) my_flibs="$my_flibs $flag" ;;
4238      esac
4239    done
4240    FLIBS="$my_flibs"
4241  fi
4242
4243  case $build in
4244  # The following is a fix to define FLIBS for ifort on Windows
4245  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4246  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4247  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4248  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4249  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4250     *-cygwin* | *-mingw*)
4251       case "$F77" in
4252#         ifort* | */ifort* | IFORT* | */IFORT*)
4253#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4254#           if "$coin_debug_compile" = true ; then
4255#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4256#           else
4257#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4258#           fi
4259#           ;;
4260         compile_f2c*)
4261           FLIBS=`$F77 -FLIBS` ;;
4262       esac;;
4263     *-hp-*)
4264         FLIBS="$FLIBS -lm";;
4265     *-ibm-*)
4266         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4267     *-linux-*)
4268       case "$F77" in
4269         pgf77* | */pgf77* | pgf90* | */pgf90*)
4270# ask linker to go through the archives multiple times
4271# (the Fortran compiler seems to do that automatically...)
4272           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4273       esac
4274  esac
4275  ac_cv_f77_libs="$FLIBS"
4276fi
4277
4278if test "x$orig_FLIBS" != "x$FLIBS" ; then
4279  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4280echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4281fi
4282
4283ac_ext=f
4284ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4285ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4287
4288echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4289echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4290if test "${ac_cv_f77_dummy_main+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293  ac_f77_dm_save_LIBS=$LIBS
4294 LIBS="$LIBS $FLIBS"
4295 ac_fortran_dm_var=F77_DUMMY_MAIN
4296 ac_ext=c
4297ac_cpp='$CPP $CPPFLAGS'
4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302 # First, try linking without a dummy main:
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309
4310#ifdef F77_DUMMY_MAIN
4311
4312#  ifdef __cplusplus
4313     extern "C"
4314#  endif
4315   int F77_DUMMY_MAIN() { return 1; }
4316
4317#endif
4318int
4319main ()
4320{
4321
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext conftest$ac_exeext
4327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328  (eval $ac_link) 2>conftest.er1
4329  ac_status=$?
4330  grep -v '^ *+' conftest.er1 >conftest.err
4331  rm -f conftest.er1
4332  cat conftest.err >&5
4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); } &&
4335         { ac_try='test -z "$ac_c_werror_flag"
4336                         || test ! -s conftest.err'
4337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338  (eval $ac_try) 2>&5
4339  ac_status=$?
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); }; } &&
4342         { ac_try='test -s conftest$ac_exeext'
4343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344  (eval $ac_try) 2>&5
4345  ac_status=$?
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); }; }; then
4348  ac_cv_fortran_dummy_main=none
4349else
4350  echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353ac_cv_fortran_dummy_main=unknown
4354fi
4355rm -f conftest.err conftest.$ac_objext \
4356      conftest$ac_exeext conftest.$ac_ext
4357
4358 if test $ac_cv_fortran_dummy_main = unknown; then
4359   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4360     cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h.  */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h.  */
4366#define $ac_fortran_dm_var $ac_func
4367#ifdef F77_DUMMY_MAIN
4368
4369#  ifdef __cplusplus
4370     extern "C"
4371#  endif
4372   int F77_DUMMY_MAIN() { return 1; }
4373
4374#endif
4375int
4376main ()
4377{
4378
4379  ;
4380  return 0;
4381}
4382_ACEOF
4383rm -f conftest.$ac_objext conftest$ac_exeext
4384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4385  (eval $ac_link) 2>conftest.er1
4386  ac_status=$?
4387  grep -v '^ *+' conftest.er1 >conftest.err
4388  rm -f conftest.er1
4389  cat conftest.err >&5
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); } &&
4392         { ac_try='test -z "$ac_c_werror_flag"
4393                         || test ! -s conftest.err'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399         { ac_try='test -s conftest$ac_exeext'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; }; then
4405  ac_cv_fortran_dummy_main=$ac_func; break
4406else
4407  echo "$as_me: failed program was:" >&5
4408sed 's/^/| /' conftest.$ac_ext >&5
4409
4410fi
4411rm -f conftest.err conftest.$ac_objext \
4412      conftest$ac_exeext conftest.$ac_ext
4413   done
4414 fi
4415 ac_ext=f
4416ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4417ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4419 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4420 rm -f conftest*
4421 LIBS=$ac_f77_dm_save_LIBS
4422
4423fi
4424echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4425echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4426F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4427if test "$F77_DUMMY_MAIN" != unknown; then
4428  if test $F77_DUMMY_MAIN != none; then
4429
4430cat >>confdefs.h <<_ACEOF
4431#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4432_ACEOF
4433
4434  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4435
4436cat >>confdefs.h <<\_ACEOF
4437#define FC_DUMMY_MAIN_EQ_F77 1
4438_ACEOF
4439
4440  fi
4441fi
4442else
4443  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4444See \`config.log' for more details." >&5
4445echo "$as_me: error: linking to Fortran libraries from C fails
4446See \`config.log' for more details." >&2;}
4447   { (exit 1); exit 1; }; }
4448fi
4449
4450
4451ac_ext=f
4452ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4453ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4455
4456ac_ext=f
4457ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4458ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4460echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4461echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4462if test "${ac_cv_f77_mangling+set}" = set; then
4463  echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
4465  cat >conftest.$ac_ext <<_ACEOF
4466      subroutine foobar()
4467      return
4468      end
4469      subroutine foo_bar()
4470      return
4471      end
4472_ACEOF
4473rm -f conftest.$ac_objext
4474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475  (eval $ac_compile) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482         { ac_try='test -z "$ac_f77_werror_flag"
4483                         || test ! -s conftest.err'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; } &&
4489         { ac_try='test -s conftest.$ac_objext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  mv conftest.$ac_objext cfortran_test.$ac_objext
4496
4497  ac_save_LIBS=$LIBS
4498  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4499
4500  ac_ext=c
4501ac_cpp='$CPP $CPPFLAGS'
4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505  ac_success=no
4506  for ac_foobar in foobar FOOBAR; do
4507    for ac_underscore in "" "_"; do
4508      ac_func="$ac_foobar$ac_underscore"
4509      cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h.  */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h.  */
4515
4516/* Override any gcc2 internal prototype to avoid an error.  */
4517#ifdef __cplusplus
4518extern "C"
4519#endif
4520/* We use char because int might match the return type of a gcc2
4521   builtin and then its argument prototype would still apply.  */
4522char $ac_func ();
4523#ifdef F77_DUMMY_MAIN
4524
4525#  ifdef __cplusplus
4526     extern "C"
4527#  endif
4528   int F77_DUMMY_MAIN() { return 1; }
4529
4530#endif
4531int
4532main ()
4533{
4534$ac_func ();
4535  ;
4536  return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541  (eval $ac_link) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548         { ac_try='test -z "$ac_c_werror_flag"
4549                         || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555         { ac_try='test -s conftest$ac_exeext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  ac_success=yes; break 2
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566fi
4567rm -f conftest.err conftest.$ac_objext \
4568      conftest$ac_exeext conftest.$ac_ext
4569    done
4570  done
4571  ac_ext=f
4572ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4573ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4575
4576  if test "$ac_success" = "yes"; then
4577     case $ac_foobar in
4578        foobar)
4579           ac_case=lower
4580           ac_foo_bar=foo_bar
4581           ;;
4582        FOOBAR)
4583           ac_case=upper
4584           ac_foo_bar=FOO_BAR
4585           ;;
4586     esac
4587
4588     ac_ext=c
4589ac_cpp='$CPP $CPPFLAGS'
4590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593     ac_success_extra=no
4594     for ac_extra in "" "_"; do
4595        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4596        cat >conftest.$ac_ext <<_ACEOF
4597/* confdefs.h.  */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h.  */
4602
4603/* Override any gcc2 internal prototype to avoid an error.  */
4604#ifdef __cplusplus
4605extern "C"
4606#endif
4607/* We use char because int might match the return type of a gcc2
4608   builtin and then its argument prototype would still apply.  */
4609char $ac_func ();
4610#ifdef F77_DUMMY_MAIN
4611
4612#  ifdef __cplusplus
4613     extern "C"
4614#  endif
4615   int F77_DUMMY_MAIN() { return 1; }
4616
4617#endif
4618int
4619main ()
4620{
4621$ac_func ();
4622  ;
4623  return 0;
4624}
4625_ACEOF
4626rm -f conftest.$ac_objext conftest$ac_exeext
4627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4628  (eval $ac_link) 2>conftest.er1
4629  ac_status=$?
4630  grep -v '^ *+' conftest.er1 >conftest.err
4631  rm -f conftest.er1
4632  cat conftest.err >&5
4633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634  (exit $ac_status); } &&
4635         { ac_try='test -z "$ac_c_werror_flag"
4636                         || test ! -s conftest.err'
4637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638  (eval $ac_try) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }; } &&
4642         { ac_try='test -s conftest$ac_exeext'
4643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644  (eval $ac_try) 2>&5
4645  ac_status=$?
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); }; }; then
4648  ac_success_extra=yes; break
4649else
4650  echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653fi
4654rm -f conftest.err conftest.$ac_objext \
4655      conftest$ac_exeext conftest.$ac_ext
4656     done
4657     ac_ext=f
4658ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4659ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4661
4662     if test "$ac_success_extra" = "yes"; then
4663        ac_cv_f77_mangling="$ac_case case"
4664        if test -z "$ac_underscore"; then
4665           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4666        else
4667           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4668        fi
4669        if test -z "$ac_extra"; then
4670           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4671        else
4672           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4673        fi
4674      else
4675        ac_cv_f77_mangling="unknown"
4676      fi
4677  else
4678     ac_cv_f77_mangling="unknown"
4679  fi
4680
4681  LIBS=$ac_save_LIBS
4682  rm -f cfortran_test* conftest*
4683else
4684  echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4688See \`config.log' for more details." >&5
4689echo "$as_me: error: cannot compile a simple Fortran program
4690See \`config.log' for more details." >&2;}
4691   { (exit 1); exit 1; }; }
4692fi
4693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4694
4695fi
4696echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4697echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4698
4699ac_ext=f
4700ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4701ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4703
4704
4705ac_ext=f
4706ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4707ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4709
4710ac_ext=f
4711ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4712ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4714
4715
4716case $ac_cv_f77_mangling in
4717  "lower case, no underscore, no extra underscore")
4718          cat >>confdefs.h <<\_ACEOF
4719#define F77_FUNC(name,NAME) name
4720_ACEOF
4721
4722          cat >>confdefs.h <<\_ACEOF
4723#define F77_FUNC_(name,NAME) name
4724_ACEOF
4725 ;;
4726  "lower case, no underscore, extra underscore")
4727          cat >>confdefs.h <<\_ACEOF
4728#define F77_FUNC(name,NAME) name
4729_ACEOF
4730
4731          cat >>confdefs.h <<\_ACEOF
4732#define F77_FUNC_(name,NAME) name ## _
4733_ACEOF
4734 ;;
4735  "lower case, underscore, no extra underscore")
4736          cat >>confdefs.h <<\_ACEOF
4737#define F77_FUNC(name,NAME) name ## _
4738_ACEOF
4739
4740          cat >>confdefs.h <<\_ACEOF
4741#define F77_FUNC_(name,NAME) name ## _
4742_ACEOF
4743 ;;
4744  "lower case, underscore, extra underscore")
4745          cat >>confdefs.h <<\_ACEOF
4746#define F77_FUNC(name,NAME) name ## _
4747_ACEOF
4748
4749          cat >>confdefs.h <<\_ACEOF
4750#define F77_FUNC_(name,NAME) name ## __
4751_ACEOF
4752 ;;
4753  "upper case, no underscore, no extra underscore")
4754          cat >>confdefs.h <<\_ACEOF
4755#define F77_FUNC(name,NAME) NAME
4756_ACEOF
4757
4758          cat >>confdefs.h <<\_ACEOF
4759#define F77_FUNC_(name,NAME) NAME
4760_ACEOF
4761 ;;
4762  "upper case, no underscore, extra underscore")
4763          cat >>confdefs.h <<\_ACEOF
4764#define F77_FUNC(name,NAME) NAME
4765_ACEOF
4766
4767          cat >>confdefs.h <<\_ACEOF
4768#define F77_FUNC_(name,NAME) NAME ## _
4769_ACEOF
4770 ;;
4771  "upper case, underscore, no extra underscore")
4772          cat >>confdefs.h <<\_ACEOF
4773#define F77_FUNC(name,NAME) NAME ## _
4774_ACEOF
4775
4776          cat >>confdefs.h <<\_ACEOF
4777#define F77_FUNC_(name,NAME) NAME ## _
4778_ACEOF
4779 ;;
4780  "upper case, underscore, extra underscore")
4781          cat >>confdefs.h <<\_ACEOF
4782#define F77_FUNC(name,NAME) NAME ## _
4783_ACEOF
4784
4785          cat >>confdefs.h <<\_ACEOF
4786#define F77_FUNC_(name,NAME) NAME ## __
4787_ACEOF
4788 ;;
4789  *)
4790          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4791echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4792          ;;
4793esac
4794
4795ac_ext=f
4796ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4797ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4799
4800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805
4806
4807
4808
4809# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4810FILTERSQP_PCLIBS="$FLIBS"
4811
4812
4813# Check if pkg-config is available (to setup addlibs file)
4814
4815
4816# Check whether --enable-pkg-config or --disable-pkg-config was given.
4817if test "${enable_pkg_config+set}" = set; then
4818  enableval="$enable_pkg_config"
4819  use_pkgconfig="$enableval"
4820else
4821  use_pkgconfig=yes
4822fi;
4823
4824if test $use_pkgconfig = yes ; then
4825  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4826    if test -n "$ac_tool_prefix"; then
4827  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4828set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4829echo "$as_me:$LINENO: checking for $ac_word" >&5
4830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4831if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4832  echo $ECHO_N "(cached) $ECHO_C" >&6
4833else
4834  case $PKG_CONFIG in
4835  [\\/]* | ?:[\\/]*)
4836  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4837  ;;
4838  *)
4839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842  IFS=$as_save_IFS
4843  test -z "$as_dir" && as_dir=.
4844  for ac_exec_ext in '' $ac_executable_extensions; do
4845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848    break 2
4849  fi
4850done
4851done
4852
4853  ;;
4854esac
4855fi
4856PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4857
4858if test -n "$PKG_CONFIG"; then
4859  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4860echo "${ECHO_T}$PKG_CONFIG" >&6
4861else
4862  echo "$as_me:$LINENO: result: no" >&5
4863echo "${ECHO_T}no" >&6
4864fi
4865
4866fi
4867if test -z "$ac_cv_path_PKG_CONFIG"; then
4868  ac_pt_PKG_CONFIG=$PKG_CONFIG
4869  # Extract the first word of "pkg-config", so it can be a program name with args.
4870set dummy pkg-config; ac_word=$2
4871echo "$as_me:$LINENO: checking for $ac_word" >&5
4872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4873if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4874  echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876  case $ac_pt_PKG_CONFIG in
4877  [\\/]* | ?:[\\/]*)
4878  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4879  ;;
4880  *)
4881  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882for as_dir in $PATH
4883do
4884  IFS=$as_save_IFS
4885  test -z "$as_dir" && as_dir=.
4886  for ac_exec_ext in '' $ac_executable_extensions; do
4887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890    break 2
4891  fi
4892done
4893done
4894
4895  ;;
4896esac
4897fi
4898ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4899
4900if test -n "$ac_pt_PKG_CONFIG"; then
4901  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4902echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4903else
4904  echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6
4906fi
4907
4908  PKG_CONFIG=$ac_pt_PKG_CONFIG
4909else
4910  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4911fi
4912
4913  fi
4914  if test -n "$PKG_CONFIG"; then
4915    _pkg_min_version=0.16.0
4916    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4917echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4918    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4919      echo "$as_me:$LINENO: result: yes" >&5
4920echo "${ECHO_T}yes" >&6
4921    else
4922      echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924      PKG_CONFIG=""
4925    fi
4926  fi
4927
4928  # check if pkg-config supports the short-errors flag
4929  if test -n "$PKG_CONFIG" && \
4930    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4931    pkg_short_errors=" --short-errors "
4932  else
4933    pkg_short_errors=""
4934  fi
4935fi
4936
4937
4938
4939if test -n "$PKG_CONFIG"; then
4940  COIN_HAS_PKGCONFIG_TRUE=
4941  COIN_HAS_PKGCONFIG_FALSE='#'
4942else
4943  COIN_HAS_PKGCONFIG_TRUE='#'
4944  COIN_HAS_PKGCONFIG_FALSE=
4945fi
4946
4947
4948
4949# assemble pkg-config search path for installed projects
4950COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4951
4952# 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
4953# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4954# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4955if test "x${prefix}" = xNONE ; then
4956  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4957else
4958  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4959fi
4960
4961
4962# Check whether --with-coin-instdir or --without-coin-instdir was given.
4963if test "${with_coin_instdir+set}" = set; then
4964  withval="$with_coin_instdir"
4965  if test -d "$withval"; then : ; else
4966     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4967echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4968   { (exit 1); exit 1; }; }
4969   fi
4970   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4971
4972fi;
4973
4974
4975
4976# assemble additional pkg-config search paths for uninstalled projects
4977if test x$coin_projectdir = xyes ; then
4978  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4979  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4980  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4981  # 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)
4982  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4983  if test -e ../coin_subdirs.txt ; then
4984    for i in `cat ../coin_subdirs.txt` ; do
4985      if test -d ../$i ; then
4986        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4987      fi
4988      if test -d ../$i/pkgconfig ; then
4989        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4990      fi
4991    done
4992  fi
4993
4994  if test -e ../../coin_subdirs.txt ; then
4995    for i in `cat ../../coin_subdirs.txt` ; do
4996      if test -d ../../$i ; then
4997        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4998      fi
4999      if test -d ../../$i/pkgconfig ; then
5000        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5001      fi
5002    done
5003  fi
5004
5005
5006fi
5007
5008if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5009  { 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
5010echo "$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;}
5011fi
5012
5013
5014
5015# Initialize automake
5016echo "$as_me:$LINENO: checking for egrep" >&5
5017echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5018if test "${ac_cv_prog_egrep+set}" = set; then
5019  echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5022    then ac_cv_prog_egrep='grep -E'
5023    else ac_cv_prog_egrep='egrep'
5024    fi
5025fi
5026echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5027echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5028 EGREP=$ac_cv_prog_egrep
5029
5030
5031echo "$as_me:$LINENO: checking whether ln -s works" >&5
5032echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5033LN_S=$as_ln_s
5034if test "$LN_S" = "ln -s"; then
5035  echo "$as_me:$LINENO: result: yes" >&5
5036echo "${ECHO_T}yes" >&6
5037else
5038  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5039echo "${ECHO_T}no, using $LN_S" >&6
5040fi
5041
5042am__api_version="1.9"
5043# Find a good install program.  We prefer a C program (faster),
5044# so one script is as good as another.  But avoid the broken or
5045# incompatible versions:
5046# SysV /etc/install, /usr/sbin/install
5047# SunOS /usr/etc/install
5048# IRIX /sbin/install
5049# AIX /bin/install
5050# AmigaOS /C/install, which installs bootblocks on floppy discs
5051# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5054# OS/2's system install, which has a completely different semantic
5055# ./install, which can be erroneously created by make from ./install.sh.
5056echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5057echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5058if test -z "$INSTALL"; then
5059if test "${ac_cv_path_install+set}" = set; then
5060  echo $ECHO_N "(cached) $ECHO_C" >&6
5061else
5062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065  IFS=$as_save_IFS
5066  test -z "$as_dir" && as_dir=.
5067  # Account for people who put trailing slashes in PATH elements.
5068case $as_dir/ in
5069  ./ | .// | /cC/* | \
5070  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5071  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5072  /usr/ucb/* ) ;;
5073  *)
5074    # OSF1 and SCO ODT 3.0 have their own names for install.
5075    # Don't use installbsd from OSF since it installs stuff as root
5076    # by default.
5077    for ac_prog in ginstall scoinst install; do
5078      for ac_exec_ext in '' $ac_executable_extensions; do
5079        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5080          if test $ac_prog = install &&
5081            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5082            # AIX install.  It has an incompatible calling convention.
5083            :
5084          elif test $ac_prog = install &&
5085            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5086            # program-specific install script used by HP pwplus--don't use.
5087            :
5088          else
5089            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5090            break 3
5091          fi
5092        fi
5093      done
5094    done
5095    ;;
5096esac
5097done
5098
5099
5100fi
5101  if test "${ac_cv_path_install+set}" = set; then
5102    INSTALL=$ac_cv_path_install
5103  else
5104    # As a last resort, use the slow shell script.  We don't cache a
5105    # path for INSTALL within a source directory, because that will
5106    # break other packages using the cache if that directory is
5107    # removed, or if the path is relative.
5108    INSTALL=$ac_install_sh
5109  fi
5110fi
5111echo "$as_me:$LINENO: result: $INSTALL" >&5
5112echo "${ECHO_T}$INSTALL" >&6
5113
5114# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5115# It thinks the first close brace ends the variable substitution.
5116test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5117
5118test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5119
5120test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5121
5122echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5123echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5124# Just in case
5125sleep 1
5126echo timestamp > conftest.file
5127# Do `set' in a subshell so we don't clobber the current shell's
5128# arguments.  Must try -L first in case configure is actually a
5129# symlink; some systems play weird games with the mod time of symlinks
5130# (eg FreeBSD returns the mod time of the symlink's containing
5131# directory).
5132if (
5133   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5134   if test "$*" = "X"; then
5135      # -L didn't work.
5136      set X `ls -t $srcdir/configure conftest.file`
5137   fi
5138   rm -f conftest.file
5139   if test "$*" != "X $srcdir/configure conftest.file" \
5140      && test "$*" != "X conftest.file $srcdir/configure"; then
5141
5142      # If neither matched, then we have a broken ls.  This can happen
5143      # if, for instance, CONFIG_SHELL is bash and it inherits a
5144      # broken ls alias from the environment.  This has actually
5145      # happened.  Such a system could not be considered "sane".
5146      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5147alias in your environment" >&5
5148echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5149alias in your environment" >&2;}
5150   { (exit 1); exit 1; }; }
5151   fi
5152
5153   test "$2" = conftest.file
5154   )
5155then
5156   # Ok.
5157   :
5158else
5159   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5160Check your system clock" >&5
5161echo "$as_me: error: newly created file is older than distributed files!
5162Check your system clock" >&2;}
5163   { (exit 1); exit 1; }; }
5164fi
5165echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
5167test "$program_prefix" != NONE &&
5168  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5169# Use a double $ so make ignores it.
5170test "$program_suffix" != NONE &&
5171  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5172# Double any \ or $.  echo might interpret backslashes.
5173# By default was `s,x,x', remove it if useless.
5174cat <<\_ACEOF >conftest.sed
5175s/[\\$]/&&/g;s/;s,x,x,$//
5176_ACEOF
5177program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5178rm conftest.sed
5179
5180# expand $ac_aux_dir to an absolute path
5181am_aux_dir=`cd $ac_aux_dir && pwd`
5182
5183test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5184# Use eval to expand $SHELL
5185if eval "$MISSING --run true"; then
5186  am_missing_run="$MISSING --run "
5187else
5188  am_missing_run=
5189  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5190echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5191fi
5192
5193if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5194  # We used to keeping the `.' as first argument, in order to
5195  # allow $(mkdir_p) to be used without argument.  As in
5196  #   $(mkdir_p) $(somedir)
5197  # where $(somedir) is conditionally defined.  However this is wrong
5198  # for two reasons:
5199  #  1. if the package is installed by a user who cannot write `.'
5200  #     make install will fail,
5201  #  2. the above comment should most certainly read
5202  #     $(mkdir_p) $(DESTDIR)$(somedir)
5203  #     so it does not work when $(somedir) is undefined and
5204  #     $(DESTDIR) is not.
5205  #  To support the latter case, we have to write
5206  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5207  #  so the `.' trick is pointless.
5208  mkdir_p='mkdir -p --'
5209else
5210  # On NextStep and OpenStep, the `mkdir' command does not
5211  # recognize any option.  It will interpret all options as
5212  # directories to create, and then abort because `.' already
5213  # exists.
5214  for d in ./-p ./--version;
5215  do
5216    test -d $d && rmdir $d
5217  done
5218  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5219  if test -f "$ac_aux_dir/mkinstalldirs"; then
5220    mkdir_p='$(mkinstalldirs)'
5221  else
5222    mkdir_p='$(install_sh) -d'
5223  fi
5224fi
5225
5226for ac_prog in gawk mawk nawk awk
5227do
5228  # Extract the first word of "$ac_prog", so it can be a program name with args.
5229set dummy $ac_prog; ac_word=$2
5230echo "$as_me:$LINENO: checking for $ac_word" >&5
5231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5232if test "${ac_cv_prog_AWK+set}" = set; then
5233  echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235  if test -n "$AWK"; then
5236  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241  IFS=$as_save_IFS
5242  test -z "$as_dir" && as_dir=.
5243  for ac_exec_ext in '' $ac_executable_extensions; do
5244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245    ac_cv_prog_AWK="$ac_prog"
5246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247    break 2
5248  fi
5249done
5250done
5251
5252fi
5253fi
5254AWK=$ac_cv_prog_AWK
5255if test -n "$AWK"; then
5256  echo "$as_me:$LINENO: result: $AWK" >&5
5257echo "${ECHO_T}$AWK" >&6
5258else
5259  echo "$as_me:$LINENO: result: no" >&5
5260echo "${ECHO_T}no" >&6
5261fi
5262
5263  test -n "$AWK" && break
5264done
5265
5266echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5267echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5268set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5269if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  cat >conftest.make <<\_ACEOF
5273all:
5274        @echo 'ac_maketemp="$(MAKE)"'
5275_ACEOF
5276# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5277eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5278if test -n "$ac_maketemp"; then
5279  eval ac_cv_prog_make_${ac_make}_set=yes
5280else
5281  eval ac_cv_prog_make_${ac_make}_set=no
5282fi
5283rm -f conftest.make
5284fi
5285if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5286  echo "$as_me:$LINENO: result: yes" >&5
5287echo "${ECHO_T}yes" >&6
5288  SET_MAKE=
5289else
5290  echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292  SET_MAKE="MAKE=${MAKE-make}"
5293fi
5294
5295rm -rf .tst 2>/dev/null
5296mkdir .tst 2>/dev/null
5297if test -d .tst; then
5298  am__leading_dot=.
5299else
5300  am__leading_dot=_
5301fi
5302rmdir .tst 2>/dev/null
5303
5304DEPDIR="${am__leading_dot}deps"
5305
5306          ac_config_commands="$ac_config_commands depfiles"
5307
5308
5309am_make=${MAKE-make}
5310cat > confinc << 'END'
5311am__doit:
5312        @echo done
5313.PHONY: am__doit
5314END
5315# If we don't find an include directive, just comment out the code.
5316echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5317echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5318am__include="#"
5319am__quote=
5320_am_result=none
5321# First try GNU make style include.
5322echo "include confinc" > confmf
5323# We grep out `Entering directory' and `Leaving directory'
5324# messages which can occur if `w' ends up in MAKEFLAGS.
5325# In particular we don't look at `^make:' because GNU make might
5326# be invoked under some other name (usually "gmake"), in which
5327# case it prints its new name instead of `make'.
5328if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5329   am__include=include
5330   am__quote=
5331   _am_result=GNU
5332fi
5333# Now try BSD make style include.
5334if test "$am__include" = "#"; then
5335   echo '.include "confinc"' > confmf
5336   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5337      am__include=.include
5338      am__quote="\""
5339      _am_result=BSD
5340   fi
5341fi
5342
5343
5344echo "$as_me:$LINENO: result: $_am_result" >&5
5345echo "${ECHO_T}$_am_result" >&6
5346rm -f confinc confmf
5347
5348# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5349if test "${enable_dependency_tracking+set}" = set; then
5350  enableval="$enable_dependency_tracking"
5351
5352fi;
5353if test "x$enable_dependency_tracking" != xno; then
5354  am_depcomp="$ac_aux_dir/depcomp"
5355  AMDEPBACKSLASH='\'
5356fi
5357
5358
5359if test "x$enable_dependency_tracking" != xno; then
5360  AMDEP_TRUE=
5361  AMDEP_FALSE='#'
5362else
5363  AMDEP_TRUE='#'
5364  AMDEP_FALSE=
5365fi
5366
5367
5368
5369
5370
5371
5372# AC_MSG_NOTICE([Beginning automake initialisation.])
5373# Stuff for automake
5374# test to see if srcdir already configured
5375if test "`cd $srcdir && pwd`" != "`pwd`" &&
5376   test -f $srcdir/config.status; then
5377  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5378echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5379   { (exit 1); exit 1; }; }
5380fi
5381
5382# test whether we have cygpath
5383if test -z "$CYGPATH_W"; then
5384  if (cygpath --version) >/dev/null 2>/dev/null; then
5385    CYGPATH_W='cygpath -w'
5386  else
5387    CYGPATH_W=echo
5388  fi
5389fi
5390
5391
5392# Define the identity of the package.
5393 PACKAGE='thirdpartyfiltersqp'
5394 VERSION='trunk'
5395
5396
5397cat >>confdefs.h <<_ACEOF
5398#define PACKAGE "$PACKAGE"
5399_ACEOF
5400
5401
5402cat >>confdefs.h <<_ACEOF
5403#define VERSION "$VERSION"
5404_ACEOF
5405
5406# Some tools Automake needs.
5407
5408ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5409
5410
5411AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5412
5413
5414AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5415
5416
5417AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5418
5419
5420MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5421
5422install_sh=${install_sh-"$am_aux_dir/install-sh"}
5423
5424# Installed binaries are usually stripped using `strip' when the user
5425# run `make install-strip'.  However `strip' might not be the right
5426# tool to use in cross-compilation environments, therefore Automake
5427# will honor the `STRIP' environment variable to overrule this program.
5428if test "$cross_compiling" != no; then
5429  if test -n "$ac_tool_prefix"; then
5430  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5431set dummy ${ac_tool_prefix}strip; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_prog_STRIP+set}" = set; then
5435  echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437  if test -n "$STRIP"; then
5438  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443  IFS=$as_save_IFS
5444  test -z "$as_dir" && as_dir=.
5445  for ac_exec_ext in '' $ac_executable_extensions; do
5446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449    break 2
5450  fi
5451done
5452done
5453
5454fi
5455fi
5456STRIP=$ac_cv_prog_STRIP
5457if test -n "$STRIP"; then
5458  echo "$as_me:$LINENO: result: $STRIP" >&5
5459echo "${ECHO_T}$STRIP" >&6
5460else
5461  echo "$as_me:$LINENO: result: no" >&5
5462echo "${ECHO_T}no" >&6
5463fi
5464
5465fi
5466if test -z "$ac_cv_prog_STRIP"; then
5467  ac_ct_STRIP=$STRIP
5468  # Extract the first word of "strip", so it can be a program name with args.
5469set dummy strip; ac_word=$2
5470echo "$as_me:$LINENO: checking for $ac_word" >&5
5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5473  echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475  if test -n "$ac_ct_STRIP"; then
5476  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5477else
5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479for as_dir in $PATH
5480do
5481  IFS=$as_save_IFS
5482  test -z "$as_dir" && as_dir=.
5483  for ac_exec_ext in '' $ac_executable_extensions; do
5484  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485    ac_cv_prog_ac_ct_STRIP="strip"
5486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487    break 2
5488  fi
5489done
5490done
5491
5492  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5493fi
5494fi
5495ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5496if test -n "$ac_ct_STRIP"; then
5497  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5498echo "${ECHO_T}$ac_ct_STRIP" >&6
5499else
5500  echo "$as_me:$LINENO: result: no" >&5
5501echo "${ECHO_T}no" >&6
5502fi
5503
5504  STRIP=$ac_ct_STRIP
5505else
5506  STRIP="$ac_cv_prog_STRIP"
5507fi
5508
5509fi
5510INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5511
5512# We need awk for the "check" target.  The system "awk" is bad on
5513# some platforms.
5514# Always define AMTAR for backward compatibility.
5515
5516AMTAR=${AMTAR-"${am_missing_run}tar"}
5517
5518am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5519
5520
5521
5522
5523depcc="$CC"   am_compiler_list=
5524
5525echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5526echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5527if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5528  echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531  # We make a subdir and do the tests there.  Otherwise we can end up
5532  # making bogus files that we don't know about and never remove.  For
5533  # instance it was reported that on HP-UX the gcc test will end up
5534  # making a dummy file named `D' -- because `-MD' means `put the output
5535  # in D'.
5536  mkdir conftest.dir
5537  # Copy depcomp to subdir because otherwise we won't find it if we're
5538  # using a relative directory.
5539  cp "$am_depcomp" conftest.dir
5540  cd conftest.dir
5541  # We will build objects and dependencies in a subdirectory because
5542  # it helps to detect inapplicable dependency modes.  For instance
5543  # both Tru64's cc and ICC support -MD to output dependencies as a
5544  # side effect of compilation, but ICC will put the dependencies in
5545  # the current directory while Tru64 will put them in the object
5546  # directory.
5547  mkdir sub
5548
5549  am_cv_CC_dependencies_compiler_type=none
5550  if test "$am_compiler_list" = ""; then
5551     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552  fi
5553  for depmode in $am_compiler_list; do
5554    # Setup a source with many dependencies, because some compilers
5555    # like to wrap large dependency lists on column 80 (with \), and
5556    # we should not choose a depcomp mode which is confused by this.
5557    #
5558    # We need to recreate these files for each test, as the compiler may
5559    # overwrite some of them when testing with obscure command lines.
5560    # This happens at least with the AIX C compiler.
5561    : > sub/conftest.c
5562    for i in 1 2 3 4 5 6; do
5563      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5564      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5565      # Solaris 8's {/usr,}/bin/sh.
5566      touch sub/conftst$i.h
5567    done
5568    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5569
5570    case $depmode in
5571    nosideeffect)
5572      # after this tag, mechanisms are not by side-effect, so they'll
5573      # only be used when explicitly requested
5574      if test "x$enable_dependency_tracking" = xyes; then
5575        continue
5576      else
5577        break
5578      fi
5579      ;;
5580    none) break ;;
5581    esac
5582    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5583    # mode.  It turns out that the SunPro C++ compiler does not properly
5584    # handle `-M -o', and we need to detect this.
5585    if depmode=$depmode \
5586       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5587       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5588       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5589         >/dev/null 2>conftest.err &&
5590       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5592       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593      # icc doesn't choke on unknown options, it will just issue warnings
5594      # or remarks (even with -Werror).  So we grep stderr for any message
5595      # that says an option was ignored or not supported.
5596      # When given -MP, icc 7.0 and 7.1 complain thusly:
5597      #   icc: Command line warning: ignoring option '-M'; no argument required
5598      # The diagnosis changed in icc 8.0:
5599      #   icc: Command line remark: option '-MP' not supported
5600      if (grep 'ignoring option' conftest.err ||
5601          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602        am_cv_CC_dependencies_compiler_type=$depmode
5603        break
5604      fi
5605    fi
5606  done
5607
5608  cd ..
5609  rm -rf conftest.dir
5610else
5611  am_cv_CC_dependencies_compiler_type=none
5612fi
5613
5614fi
5615echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5616echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5617CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5618
5619
5620
5621if
5622  test "x$enable_dependency_tracking" != xno \
5623  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5624  am__fastdepCC_TRUE=
5625  am__fastdepCC_FALSE='#'
5626else
5627  am__fastdepCC_TRUE='#'
5628  am__fastdepCC_FALSE=
5629fi
5630
5631
5632
5633echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5634echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5635    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5636if test "${enable_maintainer_mode+set}" = set; then
5637  enableval="$enable_maintainer_mode"
5638  USE_MAINTAINER_MODE=$enableval
5639else
5640  USE_MAINTAINER_MODE=no
5641fi;
5642  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5643echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5644
5645
5646if test $USE_MAINTAINER_MODE = yes; then
5647  MAINTAINER_MODE_TRUE=
5648  MAINTAINER_MODE_FALSE='#'
5649else
5650  MAINTAINER_MODE_TRUE='#'
5651  MAINTAINER_MODE_FALSE=
5652fi
5653
5654  MAINT=$MAINTAINER_MODE_TRUE
5655
5656
5657
5658coin_have_externals=no
5659if test "$enable_maintainer_mode" = yes; then
5660
5661  # If maintainer mode is chosen, we make sure that the correct versions
5662  # of the tools are used, and that we know where libtool.m4 is (to
5663  # recreate acinclude.m4)
5664
5665
5666  LIBTOOLM4=
5667  # Normally, $HOME
5668  AUTOTOOLS_DFLT=$HOME
5669
5670  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5671echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5672if test "${ac_cv_use_correct_autotools+set}" = set; then
5673  echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675  ac_cv_use_correct_autotools=check
5676fi
5677echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5678echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5679
5680  if test $ac_cv_use_correct_autotools = check; then
5681    ac_cv_use_correct_autotools=yes
5682    # Check if we have autoconf
5683    # Extract the first word of "autoconf", so it can be a program name with args.
5684set dummy autoconf; ac_word=$2
5685echo "$as_me:$LINENO: checking for $ac_word" >&5
5686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5687if test "${ac_cv_prog_have_autoconf+set}" = set; then
5688  echo $ECHO_N "(cached) $ECHO_C" >&6
5689else
5690  if test -n "$have_autoconf"; then
5691  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696  IFS=$as_save_IFS
5697  test -z "$as_dir" && as_dir=.
5698  for ac_exec_ext in '' $ac_executable_extensions; do
5699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700    ac_cv_prog_have_autoconf="yes"
5701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5702    break 2
5703  fi
5704done
5705done
5706
5707  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5708fi
5709fi
5710have_autoconf=$ac_cv_prog_have_autoconf
5711if test -n "$have_autoconf"; then
5712  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5713echo "${ECHO_T}$have_autoconf" >&6
5714else
5715  echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717fi
5718
5719    if test $have_autoconf = no; then
5720      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5721echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5722   { (exit 1); exit 1; }; }
5723    fi
5724
5725    # Check whether autoconf is the correct version
5726    correct_version='2.59'
5727    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5728    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5729echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5730    autoconf --version > confauto.out 2>&1
5731    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5732      echo "$as_me:$LINENO: result: yes" >&5
5733echo "${ECHO_T}yes" >&6
5734    else
5735      rm -f confauto.out
5736      echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5739echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5740   { (exit 1); exit 1; }; }
5741    fi
5742    rm -f confauto.out
5743
5744    # Check if the executable autoconf is picked up from the correct location
5745    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5746echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5747    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5748    autoconf_dir=`cd $autoconf_dir; pwd`
5749    if test x$AUTOTOOLS_DIR = x; then
5750      want_dir=$AUTOTOOLS_DFLT/bin
5751    else
5752      want_dir=$AUTOTOOLS_DIR/bin
5753    fi
5754    if test $autoconf_dir = `cd $want_dir; pwd`; then
5755      echo "$as_me:$LINENO: result: yes" >&5
5756echo "${ECHO_T}yes" >&6
5757    else
5758      rm -f confauto.out
5759      echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5762echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5763   { (exit 1); exit 1; }; }
5764    fi
5765
5766    # Check if we have automake
5767    # Extract the first word of "automake", so it can be a program name with args.
5768set dummy automake; ac_word=$2
5769echo "$as_me:$LINENO: checking for $ac_word" >&5
5770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771if test "${ac_cv_prog_have_automake+set}" = set; then
5772  echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774  if test -n "$have_automake"; then
5775  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5776else
5777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778for as_dir in $PATH
5779do
5780  IFS=$as_save_IFS
5781  test -z "$as_dir" && as_dir=.
5782  for ac_exec_ext in '' $ac_executable_extensions; do
5783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784    ac_cv_prog_have_automake="yes"
5785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786    break 2
5787  fi
5788done
5789done
5790
5791  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5792fi
5793fi
5794have_automake=$ac_cv_prog_have_automake
5795if test -n "$have_automake"; then
5796  echo "$as_me:$LINENO: result: $have_automake" >&5
5797echo "${ECHO_T}$have_automake" >&6
5798else
5799  echo "$as_me:$LINENO: result: no" >&5
5800echo "${ECHO_T}no" >&6
5801fi
5802
5803    if test $have_automake = no; then
5804      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5805echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5806   { (exit 1); exit 1; }; }
5807    fi
5808
5809    # Check whether automake is the correct version
5810    correct_version='1.9.6'
5811    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5812    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5813echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5814    automake --version > confauto.out 2>&1
5815    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5816      echo "$as_me:$LINENO: result: yes" >&5
5817echo "${ECHO_T}yes" >&6
5818    else
5819      rm -f confauto.out
5820      echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5823echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5824   { (exit 1); exit 1; }; }
5825    fi
5826    rm -f confauto.out
5827
5828    # Check if the executable automake is picked up from the correct location
5829    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5830echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5831    automake_dir=`which automake | sed -e 's=/automake=='`
5832    automake_dir=`cd $automake_dir; pwd`
5833    if test x$AUTOTOOLS_DIR = x; then
5834      want_dir=$AUTOTOOLS_DFLT/bin
5835    else
5836      want_dir=$AUTOTOOLS_DIR/bin
5837    fi
5838    if test $automake_dir = `cd $want_dir; pwd`; then
5839      echo "$as_me:$LINENO: result: yes" >&5
5840echo "${ECHO_T}yes" >&6
5841    else
5842      rm -f confauto.out
5843      echo "$as_me:$LINENO: result: no" >&5
5844echo "${ECHO_T}no" >&6
5845      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5846echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5847   { (exit 1); exit 1; }; }
5848    fi
5849
5850    # Check if this is the correct version of libtool (with escaped dots)
5851    if test x$AUTOTOOLS_DIR = x; then
5852      want_dir=$AUTOTOOLS_DFLT/share
5853    else
5854      want_dir=$AUTOTOOLS_DIR/share
5855    fi
5856    correct_version='1.5.22'
5857    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5858    if test -r $want_dir/libtool/ltmain.sh; then
5859  have_ltmain=yes
5860  :
5861else
5862  have_ltmain=no
5863  :
5864fi
5865
5866    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5867echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5868    if test $have_ltmain = yes; then
5869    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5870        echo "$as_me:$LINENO: result: yes" >&5
5871echo "${ECHO_T}yes" >&6
5872      else
5873        echo "$as_me:$LINENO: result: no" >&5
5874echo "${ECHO_T}no" >&6
5875        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5876echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5877   { (exit 1); exit 1; }; }
5878      fi
5879    else
5880      echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5883echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5884   { (exit 1); exit 1; }; }
5885    fi
5886  fi
5887
5888  # Check if we can find the libtool file
5889  if test x$AUTOTOOLS_DIR = x; then
5890    want_dir=$AUTOTOOLS_DFLT/share
5891  else
5892    want_dir=$AUTOTOOLS_DIR/share
5893  fi
5894  if test -r $want_dir/aclocal/libtool.m4; then
5895  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5896  :
5897else
5898  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5899echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5900   { (exit 1); exit 1; }; }
5901  :
5902fi
5903
5904
5905  # Check if we have an Dependencies file
5906  if test -r $srcdir/Dependencies; then
5907    coin_have_externals=yes
5908  fi
5909  # Check if subversion is installed and understands https
5910  # Extract the first word of "svn", so it can be a program name with args.
5911set dummy svn; ac_word=$2
5912echo "$as_me:$LINENO: checking for $ac_word" >&5
5913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914if test "${ac_cv_prog_have_svn+set}" = set; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  if test -n "$have_svn"; then
5918  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  test -z "$as_dir" && as_dir=.
5925  for ac_exec_ext in '' $ac_executable_extensions; do
5926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927    ac_cv_prog_have_svn="yes"
5928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929    break 2
5930  fi
5931done
5932done
5933
5934  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5935fi
5936fi
5937have_svn=$ac_cv_prog_have_svn
5938if test -n "$have_svn"; then
5939  echo "$as_me:$LINENO: result: $have_svn" >&5
5940echo "${ECHO_T}$have_svn" >&6
5941else
5942  echo "$as_me:$LINENO: result: no" >&5
5943echo "${ECHO_T}no" >&6
5944fi
5945
5946  if test x$have_svn = xyes; then
5947    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5948echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5949if test "${ac_cv_svn_understands_https+set}" = set; then
5950  echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952  svn --version > confauto.out 2>&1
5953                    if $EGREP https confauto.out >/dev/null 2>&1; then
5954                      ac_cv_svn_understands_https=yes
5955                    else
5956                      ac_cv_svn_understands_https=no
5957                      have_svn=no
5958                      ac_cv_prog_have_svn=no
5959                    fi
5960                    rm -f confauto.out
5961fi
5962echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5963echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5964  fi
5965
5966  # Find the location of the BuildTools directory
5967  BUILDTOOLSDIR=
5968  if test -r $srcdir/BuildTools/coin.m4; then
5969    BUILDTOOLSDIR=$srcdir/BuildTools
5970  else
5971    if test -r $srcdir/../BuildTools/coin.m4; then
5972      BUILDTOOLSDIR=$srcdir/../BuildTools
5973    else
5974      if test -r $srcdir/../../BuildTools/coin.m4; then
5975        BUILDTOOLSDIR=$srcdir/../../BuildTools
5976      else
5977        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5978echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5979   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5980      fi
5981    fi
5982  fi
5983
5984
5985  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5986  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5987    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5988  fi
5989
5990  # The following variable is set to the name of the directory where
5991  # the autotool scripts are located
5992
5993  AUX_DIR=$ac_aux_dir
5994fi
5995
5996# helpful variable for the base directory of this package
5997abs_source_dir=`cd $srcdir; pwd`
5998
5999
6000# Stuff for example Makefiles
6001if test x$prefix = xNONE; then
6002  full_prefix=$ac_default_prefix
6003else
6004  full_prefix=$prefix
6005fi
6006full_prefix=`cd $full_prefix ; pwd`
6007
6008abs_lib_dir=$full_prefix/lib
6009
6010abs_include_dir=$full_prefix/include
6011
6012abs_bin_dir=$full_prefix/bin
6013
6014
6015
6016if test $coin_have_externals = yes && test x$have_svn = xyes; then
6017  HAVE_EXTERNALS_TRUE=
6018  HAVE_EXTERNALS_FALSE='#'
6019else
6020  HAVE_EXTERNALS_TRUE='#'
6021  HAVE_EXTERNALS_FALSE=
6022fi
6023
6024
6025# AC_MSG_NOTICE([End automake initialisation.])
6026
6027
6028
6029# Initialize automake
6030{
6031
6032
6033
6034# START
6035
6036# Test if force_shared has been set
6037if test "x" = xforce_shared; then
6038  if test x$enable_shared = xno; then
6039    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
6040echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
6041   { (exit 1); exit 1; }; }
6042  fi
6043  enable_shared=yes;
6044else
6045  # On Cygwin and AIX, building DLLs doesn't work
6046  case $build in
6047    *-cygwin*)
6048      coin_disable_shared=yes
6049      platform=Cygwin
6050    ;;
6051    *-aix*)
6052      coin_disable_shared=yes
6053      platform=AIX
6054    ;;
6055    *-mingw*)
6056      coin_disable_shared=yes
6057      platform="Msys"
6058#      case "$CXX" in
6059#        cl*)
6060#          coin_disable_shared=yes
6061#          platform="Msys with cl"
6062#      ;;
6063#      esac
6064    ;;
6065  esac
6066fi
6067if test x"$coin_disable_shared" = xyes; then
6068  if test x"$enable_shared" = xyes; then
6069    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
6070echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
6071  fi
6072  enable_shared=no
6073fi
6074# By default, we only want the shared objects to be compiled
6075# Check whether --enable-static or --disable-static was given.
6076if test "${enable_static+set}" = set; then
6077  enableval="$enable_static"
6078  p=${PACKAGE-default}
6079    case $enableval in
6080    yes) enable_static=yes ;;
6081    no) enable_static=no ;;
6082    *)
6083     enable_static=no
6084      # Look at the argument we got.  We use all the common list separators.
6085      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6086      for pkg in $enableval; do
6087        IFS="$lt_save_ifs"
6088        if test "X$pkg" = "X$p"; then
6089          enable_static=yes
6090        fi
6091      done
6092      IFS="$lt_save_ifs"
6093      ;;
6094    esac
6095else
6096  enable_static=no
6097fi;
6098
6099
6100
6101
6102# Initialize automake
6103
6104
6105
6106# AC_MSG_NOTICE([Beginning automake initialisation.])
6107# Stuff for automake
6108# test to see if srcdir already configured
6109if test "`cd $srcdir && pwd`" != "`pwd`" &&
6110   test -f $srcdir/config.status; then
6111  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6112echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6113   { (exit 1); exit 1; }; }
6114fi
6115
6116# test whether we have cygpath
6117if test -z "$CYGPATH_W"; then
6118  if (cygpath --version) >/dev/null 2>/dev/null; then
6119    CYGPATH_W='cygpath -w'
6120  else
6121    CYGPATH_W=echo
6122  fi
6123fi
6124
6125
6126# Define the identity of the package.
6127 PACKAGE='thirdpartyfiltersqp'
6128 VERSION='trunk'
6129
6130
6131cat >>confdefs.h <<_ACEOF
6132#define PACKAGE "$PACKAGE"
6133_ACEOF
6134
6135
6136cat >>confdefs.h <<_ACEOF
6137#define VERSION "$VERSION"
6138_ACEOF
6139
6140# Some tools Automake needs.
6141
6142ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6143
6144
6145AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6146
6147
6148AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6149
6150
6151AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6152
6153
6154MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6155
6156install_sh=${install_sh-"$am_aux_dir/install-sh"}
6157
6158# Installed binaries are usually stripped using `strip' when the user
6159# run `make install-strip'.  However `strip' might not be the right
6160# tool to use in cross-compilation environments, therefore Automake
6161# will honor the `STRIP' environment variable to overrule this program.
6162if test "$cross_compiling" != no; then
6163  if test -n "$ac_tool_prefix"; then
6164  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6165set dummy ${ac_tool_prefix}strip; ac_word=$2
6166echo "$as_me:$LINENO: checking for $ac_word" >&5
6167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6168if test "${ac_cv_prog_STRIP+set}" = set; then
6169  echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
6171  if test -n "$STRIP"; then
6172  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177  IFS=$as_save_IFS
6178  test -z "$as_dir" && as_dir=.
6179  for ac_exec_ext in '' $ac_executable_extensions; do
6180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183    break 2
6184  fi
6185done
6186done
6187
6188fi
6189fi
6190STRIP=$ac_cv_prog_STRIP
6191if test -n "$STRIP"; then
6192  echo "$as_me:$LINENO: result: $STRIP" >&5
6193echo "${ECHO_T}$STRIP" >&6
6194else
6195  echo "$as_me:$LINENO: result: no" >&5
6196echo "${ECHO_T}no" >&6
6197fi
6198
6199fi
6200if test -z "$ac_cv_prog_STRIP"; then
6201  ac_ct_STRIP=$STRIP
6202  # Extract the first word of "strip", so it can be a program name with args.
6203set dummy strip; ac_word=$2
6204echo "$as_me:$LINENO: checking for $ac_word" >&5
6205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6206if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6207  echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209  if test -n "$ac_ct_STRIP"; then
6210  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6211else
6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215  IFS=$as_save_IFS
6216  test -z "$as_dir" && as_dir=.
6217  for ac_exec_ext in '' $ac_executable_extensions; do
6218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219    ac_cv_prog_ac_ct_STRIP="strip"
6220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221    break 2
6222  fi
6223done
6224done
6225
6226  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6227fi
6228fi
6229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6230if test -n "$ac_ct_STRIP"; then
6231  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6232echo "${ECHO_T}$ac_ct_STRIP" >&6
6233else
6234  echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
6236fi
6237
6238  STRIP=$ac_ct_STRIP
6239else
6240  STRIP="$ac_cv_prog_STRIP"
6241fi
6242
6243fi
6244INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6245
6246# We need awk for the "check" target.  The system "awk" is bad on
6247# some platforms.
6248# Always define AMTAR for backward compatibility.
6249
6250AMTAR=${AMTAR-"${am_missing_run}tar"}
6251
6252am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6253
6254
6255
6256
6257depcc="$CC"   am_compiler_list=
6258
6259echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6260echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6261if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6262  echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6265  # We make a subdir and do the tests there.  Otherwise we can end up
6266  # making bogus files that we don't know about and never remove.  For
6267  # instance it was reported that on HP-UX the gcc test will end up
6268  # making a dummy file named `D' -- because `-MD' means `put the output
6269  # in D'.
6270  mkdir conftest.dir
6271  # Copy depcomp to subdir because otherwise we won't find it if we're
6272  # using a relative directory.
6273  cp "$am_depcomp" conftest.dir
6274  cd conftest.dir
6275  # We will build objects and dependencies in a subdirectory because
6276  # it helps to detect inapplicable dependency modes.  For instance
6277  # both Tru64's cc and ICC support -MD to output dependencies as a
6278  # side effect of compilation, but ICC will put the dependencies in
6279  # the current directory while Tru64 will put them in the object
6280  # directory.
6281  mkdir sub
6282
6283  am_cv_CC_dependencies_compiler_type=none
6284  if test "$am_compiler_list" = ""; then
6285     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6286  fi
6287  for depmode in $am_compiler_list; do
6288    # Setup a source with many dependencies, because some compilers
6289    # like to wrap large dependency lists on column 80 (with \), and
6290    # we should not choose a depcomp mode which is confused by this.
6291    #
6292    # We need to recreate these files for each test, as the compiler may
6293    # overwrite some of them when testing with obscure command lines.
6294    # This happens at least with the AIX C compiler.
6295    : > sub/conftest.c
6296    for i in 1 2 3 4 5 6; do
6297      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6298      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6299      # Solaris 8's {/usr,}/bin/sh.
6300      touch sub/conftst$i.h
6301    done
6302    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6303
6304    case $depmode in
6305    nosideeffect)
6306      # after this tag, mechanisms are not by side-effect, so they'll
6307      # only be used when explicitly requested
6308      if test "x$enable_dependency_tracking" = xyes; then
6309        continue
6310      else
6311        break
6312      fi
6313      ;;
6314    none) break ;;
6315    esac
6316    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6317    # mode.  It turns out that the SunPro C++ compiler does not properly
6318    # handle `-M -o', and we need to detect this.
6319    if depmode=$depmode \
6320       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6321       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6322       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6323         >/dev/null 2>conftest.err &&
6324       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6325       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6326       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6327      # icc doesn't choke on unknown options, it will just issue warnings
6328      # or remarks (even with -Werror).  So we grep stderr for any message
6329      # that says an option was ignored or not supported.
6330      # When given -MP, icc 7.0 and 7.1 complain thusly:
6331      #   icc: Command line warning: ignoring option '-M'; no argument required
6332      # The diagnosis changed in icc 8.0:
6333      #   icc: Command line remark: option '-MP' not supported
6334      if (grep 'ignoring option' conftest.err ||
6335          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6336        am_cv_CC_dependencies_compiler_type=$depmode
6337        break
6338      fi
6339    fi
6340  done
6341
6342  cd ..
6343  rm -rf conftest.dir
6344else
6345  am_cv_CC_dependencies_compiler_type=none
6346fi
6347
6348fi
6349echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6350echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6351CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6352
6353
6354
6355if
6356  test "x$enable_dependency_tracking" != xno \
6357  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6358  am__fastdepCC_TRUE=
6359  am__fastdepCC_FALSE='#'
6360else
6361  am__fastdepCC_TRUE='#'
6362  am__fastdepCC_FALSE=
6363fi
6364
6365
6366
6367echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6368echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6369    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6370if test "${enable_maintainer_mode+set}" = set; then
6371  enableval="$enable_maintainer_mode"
6372  USE_MAINTAINER_MODE=$enableval
6373else
6374  USE_MAINTAINER_MODE=no
6375fi;
6376  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6377echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6378
6379
6380if test $USE_MAINTAINER_MODE = yes; then
6381  MAINTAINER_MODE_TRUE=
6382  MAINTAINER_MODE_FALSE='#'
6383else
6384  MAINTAINER_MODE_TRUE='#'
6385  MAINTAINER_MODE_FALSE=
6386fi
6387
6388  MAINT=$MAINTAINER_MODE_TRUE
6389
6390
6391
6392coin_have_externals=no
6393if test "$enable_maintainer_mode" = yes; then
6394
6395  # If maintainer mode is chosen, we make sure that the correct versions
6396  # of the tools are used, and that we know where libtool.m4 is (to
6397  # recreate acinclude.m4)
6398
6399
6400  LIBTOOLM4=
6401  # Normally, $HOME
6402  AUTOTOOLS_DFLT=$HOME
6403
6404  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6405echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6406if test "${ac_cv_use_correct_autotools+set}" = set; then
6407  echo $ECHO_N "(cached) $ECHO_C" >&6
6408else
6409  ac_cv_use_correct_autotools=check
6410fi
6411echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6412echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6413
6414  if test $ac_cv_use_correct_autotools = check; then
6415    ac_cv_use_correct_autotools=yes
6416    # Check if we have autoconf
6417    # Extract the first word of "autoconf", so it can be a program name with args.
6418set dummy autoconf; ac_word=$2
6419echo "$as_me:$LINENO: checking for $ac_word" >&5
6420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6421if test "${ac_cv_prog_have_autoconf+set}" = set; then
6422  echo $ECHO_N "(cached) $ECHO_C" >&6
6423else
6424  if test -n "$have_autoconf"; then
6425  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430  IFS=$as_save_IFS
6431  test -z "$as_dir" && as_dir=.
6432  for ac_exec_ext in '' $ac_executable_extensions; do
6433  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434    ac_cv_prog_have_autoconf="yes"
6435    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436    break 2
6437  fi
6438done
6439done
6440
6441  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6442fi
6443fi
6444have_autoconf=$ac_cv_prog_have_autoconf
6445if test -n "$have_autoconf"; then
6446  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6447echo "${ECHO_T}$have_autoconf" >&6
6448else
6449  echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6
6451fi
6452
6453    if test $have_autoconf = no; then
6454      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6455echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6456   { (exit 1); exit 1; }; }
6457    fi
6458
6459    # Check whether autoconf is the correct version
6460    correct_version='2.59'
6461    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6462    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6463echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6464    autoconf --version > confauto.out 2>&1
6465    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6466      echo "$as_me:$LINENO: result: yes" >&5
6467echo "${ECHO_T}yes" >&6
6468    else
6469      rm -f confauto.out
6470      echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
6472      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6473echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6474   { (exit 1); exit 1; }; }
6475    fi
6476    rm -f confauto.out
6477
6478    # Check if the executable autoconf is picked up from the correct location
6479    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6480echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6481    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6482    autoconf_dir=`cd $autoconf_dir; pwd`
6483    if test x$AUTOTOOLS_DIR = x; then
6484      want_dir=$AUTOTOOLS_DFLT/bin
6485    else
6486      want_dir=$AUTOTOOLS_DIR/bin
6487    fi
6488    if test $autoconf_dir = `cd $want_dir; pwd`; then
6489      echo "$as_me:$LINENO: result: yes" >&5
6490echo "${ECHO_T}yes" >&6
6491    else
6492      rm -f confauto.out
6493      echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
6495      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6496echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6497   { (exit 1); exit 1; }; }
6498    fi
6499
6500    # Check if we have automake
6501    # Extract the first word of "automake", so it can be a program name with args.
6502set dummy automake; ac_word=$2
6503echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505if test "${ac_cv_prog_have_automake+set}" = set; then
6506  echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508  if test -n "$have_automake"; then
6509  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514  IFS=$as_save_IFS
6515  test -z "$as_dir" && as_dir=.
6516  for ac_exec_ext in '' $ac_executable_extensions; do
6517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518    ac_cv_prog_have_automake="yes"
6519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520    break 2
6521  fi
6522done
6523done
6524
6525  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6526fi
6527fi
6528have_automake=$ac_cv_prog_have_automake
6529if test -n "$have_automake"; then
6530  echo "$as_me:$LINENO: result: $have_automake" >&5
6531echo "${ECHO_T}$have_automake" >&6
6532else
6533  echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6
6535fi
6536
6537    if test $have_automake = no; then
6538      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6539echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6540   { (exit 1); exit 1; }; }
6541    fi
6542
6543    # Check whether automake is the correct version
6544    correct_version='1.9.6'
6545    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6546    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6547echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6548    automake --version > confauto.out 2>&1
6549    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6550      echo "$as_me:$LINENO: result: yes" >&5
6551echo "${ECHO_T}yes" >&6
6552    else
6553      rm -f confauto.out
6554      echo "$as_me:$LINENO: result: no" >&5
6555echo "${ECHO_T}no" >&6
6556      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6557echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6558   { (exit 1); exit 1; }; }
6559    fi
6560    rm -f confauto.out
6561
6562    # Check if the executable automake is picked up from the correct location
6563    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6564echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6565    automake_dir=`which automake | sed -e 's=/automake=='`
6566    automake_dir=`cd $automake_dir; pwd`
6567    if test x$AUTOTOOLS_DIR = x; then
6568      want_dir=$AUTOTOOLS_DFLT/bin
6569    else
6570      want_dir=$AUTOTOOLS_DIR/bin
6571    fi
6572    if test $automake_dir = `cd $want_dir; pwd`; then
6573      echo "$as_me:$LINENO: result: yes" >&5
6574echo "${ECHO_T}yes" >&6
6575    else
6576      rm -f confauto.out
6577      echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
6579      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6580echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6581   { (exit 1); exit 1; }; }
6582    fi
6583
6584    # Check if this is the correct version of libtool (with escaped dots)
6585    if test x$AUTOTOOLS_DIR = x; then
6586      want_dir=$AUTOTOOLS_DFLT/share
6587    else
6588      want_dir=$AUTOTOOLS_DIR/share
6589    fi
6590    correct_version='1.5.22'
6591    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6592    if test -r $want_dir/libtool/ltmain.sh; then
6593  have_ltmain=yes
6594  :
6595else
6596  have_ltmain=no
6597  :
6598fi
6599
6600    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6601echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6602    if test $have_ltmain = yes; then
6603    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6604        echo "$as_me:$LINENO: result: yes" >&5
6605echo "${ECHO_T}yes" >&6
6606      else
6607        echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6610echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6611   { (exit 1); exit 1; }; }
6612      fi
6613    else
6614      echo "$as_me:$LINENO: result: no" >&5
6615echo "${ECHO_T}no" >&6
6616      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6617echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6618   { (exit 1); exit 1; }; }
6619    fi
6620  fi
6621
6622  # Check if we can find the libtool file
6623  if test x$AUTOTOOLS_DIR = x; then
6624    want_dir=$AUTOTOOLS_DFLT/share
6625  else
6626    want_dir=$AUTOTOOLS_DIR/share
6627  fi
6628  if test -r $want_dir/aclocal/libtool.m4; then
6629  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6630  :
6631else
6632  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6633echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6634   { (exit 1); exit 1; }; }
6635  :
6636fi
6637
6638
6639  # Check if we have an Dependencies file
6640  if test -r $srcdir/Dependencies; then
6641    coin_have_externals=yes
6642  fi
6643  # Check if subversion is installed and understands https
6644  # Extract the first word of "svn", so it can be a program name with args.
6645set dummy svn; ac_word=$2
6646echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6648if test "${ac_cv_prog_have_svn+set}" = set; then
6649  echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651  if test -n "$have_svn"; then
6652  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657  IFS=$as_save_IFS
6658  test -z "$as_dir" && as_dir=.
6659  for ac_exec_ext in '' $ac_executable_extensions; do
6660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661    ac_cv_prog_have_svn="yes"
6662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663    break 2
6664  fi
6665done
6666done
6667
6668  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6669fi
6670fi
6671have_svn=$ac_cv_prog_have_svn
6672if test -n "$have_svn"; then
6673  echo "$as_me:$LINENO: result: $have_svn" >&5
6674echo "${ECHO_T}$have_svn" >&6
6675else
6676  echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6
6678fi
6679
6680  if test x$have_svn = xyes; then
6681    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6682echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6683if test "${ac_cv_svn_understands_https+set}" = set; then
6684  echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686  svn --version > confauto.out 2>&1
6687                    if $EGREP https confauto.out >/dev/null 2>&1; then
6688                      ac_cv_svn_understands_https=yes
6689                    else
6690                      ac_cv_svn_understands_https=no
6691                      have_svn=no
6692                      ac_cv_prog_have_svn=no
6693                    fi
6694                    rm -f confauto.out
6695fi
6696echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6697echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6698  fi
6699
6700  # Find the location of the BuildTools directory
6701  BUILDTOOLSDIR=
6702  if test -r $srcdir/BuildTools/coin.m4; then
6703    BUILDTOOLSDIR=$srcdir/BuildTools
6704  else
6705    if test -r $srcdir/../BuildTools/coin.m4; then
6706      BUILDTOOLSDIR=$srcdir/../BuildTools
6707    else
6708      if test -r $srcdir/../../BuildTools/coin.m4; then
6709        BUILDTOOLSDIR=$srcdir/../../BuildTools
6710      else
6711        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6712echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6713   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6714      fi
6715    fi
6716  fi
6717
6718
6719  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6720  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6721    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6722  fi
6723
6724  # The following variable is set to the name of the directory where
6725  # the autotool scripts are located
6726
6727  AUX_DIR=$ac_aux_dir
6728fi
6729
6730# helpful variable for the base directory of this package
6731abs_source_dir=`cd $srcdir; pwd`
6732
6733
6734# Stuff for example Makefiles
6735if test x$prefix = xNONE; then
6736  full_prefix=$ac_default_prefix
6737else
6738  full_prefix=$prefix
6739fi
6740full_prefix=`cd $full_prefix ; pwd`
6741
6742abs_lib_dir=$full_prefix/lib
6743
6744abs_include_dir=$full_prefix/include
6745
6746abs_bin_dir=$full_prefix/bin
6747
6748
6749
6750if test $coin_have_externals = yes && test x$have_svn = xyes; then
6751  HAVE_EXTERNALS_TRUE=
6752  HAVE_EXTERNALS_FALSE='#'
6753else
6754  HAVE_EXTERNALS_TRUE='#'
6755  HAVE_EXTERNALS_FALSE=
6756fi
6757
6758
6759# AC_MSG_NOTICE([End automake initialisation.])
6760
6761
6762
6763LIBTOOL=
6764if test -r ../libtool; then
6765  coin_config_dir=..
6766  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6767fi
6768if test "x$LIBTOOL" = x; then
6769  if test -r ../../libtool; then
6770    coin_config_dir=../..
6771    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6772  fi
6773fi
6774
6775if test "x$LIBTOOL" = x; then
6776# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6777  # Stuff for libtool
6778  # Check whether --enable-shared or --disable-shared was given.
6779if test "${enable_shared+set}" = set; then
6780  enableval="$enable_shared"
6781  p=${PACKAGE-default}
6782    case $enableval in
6783    yes) enable_shared=yes ;;
6784    no) enable_shared=no ;;
6785    *)
6786      enable_shared=no
6787      # Look at the argument we got.  We use all the common list separators.
6788      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6789      for pkg in $enableval; do
6790        IFS="$lt_save_ifs"
6791        if test "X$pkg" = "X$p"; then
6792          enable_shared=yes
6793        fi
6794      done
6795      IFS="$lt_save_ifs"
6796      ;;
6797    esac
6798else
6799  enable_shared=yes
6800fi;
6801
6802# Check whether --enable-fast-install or --disable-fast-install was given.
6803if test "${enable_fast_install+set}" = set; then
6804  enableval="$enable_fast_install"
6805  p=${PACKAGE-default}
6806    case $enableval in
6807    yes) enable_fast_install=yes ;;
6808    no) enable_fast_install=no ;;
6809    *)
6810      enable_fast_install=no
6811      # Look at the argument we got.  We use all the common list separators.
6812      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6813      for pkg in $enableval; do
6814        IFS="$lt_save_ifs"
6815        if test "X$pkg" = "X$p"; then
6816          enable_fast_install=yes
6817        fi
6818      done
6819      IFS="$lt_save_ifs"
6820      ;;
6821    esac
6822else
6823  enable_fast_install=yes
6824fi;
6825
6826echo "$as_me:$LINENO: checking host system type" >&5
6827echo $ECHO_N "checking host system type... $ECHO_C" >&6
6828if test "${ac_cv_host+set}" = set; then
6829  echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
6831  ac_cv_host_alias=$host_alias
6832test -z "$ac_cv_host_alias" &&
6833  ac_cv_host_alias=$ac_cv_build_alias
6834ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6835  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6836echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6837   { (exit 1); exit 1; }; }
6838
6839fi
6840echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6841echo "${ECHO_T}$ac_cv_host" >&6
6842host=$ac_cv_host
6843host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6844host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6845host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6846
6847
6848echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6849echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6850if test "${lt_cv_path_SED+set}" = set; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853  # Loop through the user's path and test for sed and gsed.
6854# Then use that list of sed's as ones to test for truncation.
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858  IFS=$as_save_IFS
6859  test -z "$as_dir" && as_dir=.
6860  for lt_ac_prog in sed gsed; do
6861    for ac_exec_ext in '' $ac_executable_extensions; do
6862      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6863        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6864      fi
6865    done
6866  done
6867done
6868lt_ac_max=0
6869lt_ac_count=0
6870# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6871# along with /bin/sed that truncates output.
6872for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6873  test ! -f $lt_ac_sed && continue
6874  cat /dev/null > conftest.in
6875  lt_ac_count=0
6876  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6877  # Check for GNU sed and select it if it is found.
6878  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6879    lt_cv_path_SED=$lt_ac_sed
6880    break
6881  fi
6882  while true; do
6883    cat conftest.in conftest.in >conftest.tmp
6884    mv conftest.tmp conftest.in
6885    cp conftest.in conftest.nl
6886    echo >>conftest.nl
6887    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6888    cmp -s conftest.out conftest.nl || break
6889    # 10000 chars as input seems more than enough
6890    test $lt_ac_count -gt 10 && break
6891    lt_ac_count=`expr $lt_ac_count + 1`
6892    if test $lt_ac_count -gt $lt_ac_max; then
6893      lt_ac_max=$lt_ac_count
6894      lt_cv_path_SED=$lt_ac_sed
6895    fi
6896  done
6897done
6898
6899fi
6900
6901SED=$lt_cv_path_SED
6902echo "$as_me:$LINENO: result: $SED" >&5
6903echo "${ECHO_T}$SED" >&6
6904
6905
6906# Check whether --with-gnu-ld or --without-gnu-ld was given.
6907if test "${with_gnu_ld+set}" = set; then
6908  withval="$with_gnu_ld"
6909  test "$withval" = no || with_gnu_ld=yes
6910else
6911  with_gnu_ld=no
6912fi;
6913ac_prog=ld
6914if test "$GCC" = yes; then
6915  # Check if gcc -print-prog-name=ld gives a path.
6916  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6917echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6918  case $host in
6919  *-*-mingw*)
6920    # gcc leaves a trailing carriage return which upsets mingw
6921    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6922  *)
6923    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6924  esac
6925  case $ac_prog in
6926    # Accept absolute paths.
6927    [\\/]* | ?:[\\/]*)
6928      re_direlt='/[^/][^/]*/\.\./'
6929      # Canonicalize the pathname of ld
6930      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6931      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6932        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6933      done
6934      test -z "$LD" && LD="$ac_prog"
6935      ;;
6936  "")
6937    # If it fails, then pretend we aren't using GCC.
6938    ac_prog=ld
6939    ;;
6940  *)
6941    # If it is relative, then search for the first ld in PATH.
6942    with_gnu_ld=unknown
6943    ;;
6944  esac
6945elif test "$with_gnu_ld" = yes; then
6946  echo "$as_me:$LINENO: checking for GNU ld" >&5
6947echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6948else
6949  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6950echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6951fi
6952if test "${lt_cv_path_LD+set}" = set; then
6953  echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955  if test -z "$LD"; then
6956  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6957  for ac_dir in $PATH; do
6958    IFS="$lt_save_ifs"
6959    test -z "$ac_dir" && ac_dir=.
6960    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6961      lt_cv_path_LD="$ac_dir/$ac_prog"
6962      # Check to see if the program is GNU ld.  I'd rather use --version,
6963      # but apparently some variants of GNU ld only accept -v.
6964      # Break only if it was the GNU/non-GNU ld that we prefer.
6965      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6966      *GNU* | *'with BFD'*)
6967        test "$with_gnu_ld" != no && break
6968        ;;
6969      *)
6970        test "$with_gnu_ld" != yes && break
6971        ;;
6972      esac
6973    fi
6974  done
6975  IFS="$lt_save_ifs"
6976else
6977  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6978fi
6979fi
6980
6981LD="$lt_cv_path_LD"
6982if test -n "$LD"; then
6983  echo "$as_me:$LINENO: result: $LD" >&5
6984echo "${ECHO_T}$LD" >&6
6985else
6986  echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6
6988fi
6989test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6990echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6991   { (exit 1); exit 1; }; }
6992echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6993echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6994if test "${lt_cv_prog_gnu_ld+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6998case `$LD -v 2>&1 </dev/null` in
6999*GNU* | *'with BFD'*)
7000  lt_cv_prog_gnu_ld=yes
7001  ;;
7002*)
7003  lt_cv_prog_gnu_ld=no
7004  ;;
7005esac
7006fi
7007echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7008echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7009with_gnu_ld=$lt_cv_prog_gnu_ld
7010
7011
7012echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7013echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7014if test "${lt_cv_ld_reload_flag+set}" = set; then
7015  echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017  lt_cv_ld_reload_flag='-r'
7018fi
7019echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7020echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7021reload_flag=$lt_cv_ld_reload_flag
7022case $reload_flag in
7023"" | " "*) ;;
7024*) reload_flag=" $reload_flag" ;;
7025esac
7026reload_cmds='$LD$reload_flag -o $output$reload_objs'
7027case $host_os in
7028  darwin*)
7029    if test "$GCC" = yes; then
7030      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7031    else
7032      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7033    fi
7034    ;;
7035esac
7036
7037echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7038echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7039if test "${lt_cv_path_NM+set}" = set; then
7040  echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042  if test -n "$NM"; then
7043  # Let the user override the test.
7044  lt_cv_path_NM="$NM"
7045else
7046  lt_nm_to_check="${ac_tool_prefix}nm"
7047  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7048    lt_nm_to_check="$lt_nm_to_check nm"
7049  fi
7050  for lt_tmp_nm in $lt_nm_to_check; do
7051    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7052    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7053      IFS="$lt_save_ifs"
7054      test -z "$ac_dir" && ac_dir=.
7055      tmp_nm="$ac_dir/$lt_tmp_nm"
7056      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7057        # Check to see if the nm accepts a BSD-compat flag.
7058        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7059        #   nm: unknown option "B" ignored
7060        # Tru64's nm complains that /dev/null is an invalid object file
7061        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7062        */dev/null* | *'Invalid file or object type'*)
7063          lt_cv_path_NM="$tmp_nm -B"
7064          break
7065          ;;
7066        *)
7067          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7068          */dev/null*)
7069            lt_cv_path_NM="$tmp_nm -p"
7070            break
7071            ;;
7072          *)
7073            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7074            continue # so that we can try to find one that supports BSD flags
7075            ;;
7076          esac
7077          ;;
7078        esac
7079      fi
7080    done
7081    IFS="$lt_save_ifs"
7082  done
7083  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7084fi
7085fi
7086echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7087echo "${ECHO_T}$lt_cv_path_NM" >&6
7088NM="$lt_cv_path_NM"
7089
7090echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7091echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7092if test "${lt_cv_deplibs_check_method+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  lt_cv_file_magic_cmd='$MAGIC_CMD'
7096lt_cv_file_magic_test_file=
7097lt_cv_deplibs_check_method='unknown'
7098# Need to set the preceding variable on all platforms that support
7099# interlibrary dependencies.
7100# 'none' -- dependencies not supported.
7101# `unknown' -- same as none, but documents that we really don't know.
7102# 'pass_all' -- all dependencies passed with no checks.
7103# 'test_compile' -- check by making test program.
7104# 'file_magic [[regex]]' -- check by looking for files in library path
7105# which responds to the $file_magic_cmd with a given extended regex.
7106# If you have `file' or equivalent on your system and you're not sure
7107# whether `pass_all' will *always* work, you probably want this one.
7108
7109case $host_os in
7110aix4* | aix5*)
7111  lt_cv_deplibs_check_method=pass_all
7112  ;;
7113
7114beos*)
7115  lt_cv_deplibs_check_method=pass_all
7116  ;;
7117
7118bsdi[45]*)
7119  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7120  lt_cv_file_magic_cmd='/usr/bin/file -L'
7121  lt_cv_file_magic_test_file=/shlib/libc.so
7122  ;;
7123
7124cygwin*)
7125  # func_win32_libid is a shell function defined in ltmain.sh
7126  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7127  lt_cv_file_magic_cmd='func_win32_libid'
7128  ;;
7129
7130mingw* | pw32*)
7131  # Base MSYS/MinGW do not provide the 'file' command needed by
7132  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7133  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7134  lt_cv_file_magic_cmd='$OBJDUMP -f'
7135  ;;
7136
7137darwin* | rhapsody*)
7138  lt_cv_deplibs_check_method=pass_all
7139  ;;
7140
7141freebsd* | kfreebsd*-gnu | dragonfly*)
7142  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7143    case $host_cpu in
7144    i*86 )
7145      # Not sure whether the presence of OpenBSD here was a mistake.
7146      # Let's accept both of them until this is cleared up.
7147      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7148      lt_cv_file_magic_cmd=/usr/bin/file
7149      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7150      ;;
7151    esac
7152  else
7153    lt_cv_deplibs_check_method=pass_all
7154  fi
7155  ;;
7156
7157gnu*)
7158  lt_cv_deplibs_check_method=pass_all
7159  ;;
7160
7161hpux10.20* | hpux11*)
7162  lt_cv_file_magic_cmd=/usr/bin/file
7163  case $host_cpu in
7164  ia64*)
7165    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7166    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7167    ;;
7168  hppa*64*)
7169    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]'
7170    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7171    ;;
7172  *)
7173    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7174    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7175    ;;
7176  esac
7177  ;;
7178
7179interix3*)
7180  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7181  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7182  ;;
7183
7184irix5* | irix6* | nonstopux*)
7185  case $LD in
7186  *-32|*"-32 ") libmagic=32-bit;;
7187  *-n32|*"-n32 ") libmagic=N32;;
7188  *-64|*"-64 ") libmagic=64-bit;;
7189  *) libmagic=never-match;;
7190  esac
7191  lt_cv_deplibs_check_method=pass_all
7192  ;;
7193
7194# This must be Linux ELF.
7195linux*)
7196  lt_cv_deplibs_check_method=pass_all
7197  ;;
7198
7199netbsd*)
7200  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7201    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7202  else
7203    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7204  fi
7205  ;;
7206
7207newos6*)
7208  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7209  lt_cv_file_magic_cmd=/usr/bin/file
7210  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7211  ;;
7212
7213nto-qnx*)
7214  lt_cv_deplibs_check_method=unknown
7215  ;;
7216
7217openbsd*)
7218  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7219    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7220  else
7221    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7222  fi
7223  ;;
7224
7225osf3* | osf4* | osf5*)
7226  lt_cv_deplibs_check_method=pass_all
7227  ;;
7228
7229solaris*)
7230  lt_cv_deplibs_check_method=pass_all
7231  ;;
7232
7233sysv4 | sysv4.3*)
7234  case $host_vendor in
7235  motorola)
7236    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]'
7237    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7238    ;;
7239  ncr)
7240    lt_cv_deplibs_check_method=pass_all
7241    ;;
7242  sequent)
7243    lt_cv_file_magic_cmd='/bin/file'
7244    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7245    ;;
7246  sni)
7247    lt_cv_file_magic_cmd='/bin/file'
7248    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7249    lt_cv_file_magic_test_file=/lib/libc.so
7250    ;;
7251  siemens)
7252    lt_cv_deplibs_check_method=pass_all
7253    ;;
7254  pc)
7255    lt_cv_deplibs_check_method=pass_all
7256    ;;
7257  esac
7258  ;;
7259
7260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7261  lt_cv_deplibs_check_method=pass_all
7262  ;;
7263esac
7264
7265fi
7266echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7267echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7268file_magic_cmd=$lt_cv_file_magic_cmd
7269deplibs_check_method=$lt_cv_deplibs_check_method
7270test -z "$deplibs_check_method" && deplibs_check_method=unknown
7271
7272
7273
7274
7275# If no C compiler was specified, use CC.
7276LTCC=${LTCC-"$CC"}
7277
7278# If no C compiler flags were specified, use CFLAGS.
7279LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7280
7281# Allow CC to be a program name with arguments.
7282compiler=$CC
7283
7284# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7285if test "${enable_libtool_lock+set}" = set; then
7286  enableval="$enable_libtool_lock"
7287
7288fi;
7289test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7290
7291# Some flags need to be propagated to the compiler or linker for good
7292# libtool support.
7293case $host in
7294ia64-*-hpux*)
7295  # Find out which ABI we are using.
7296  echo 'int i;' > conftest.$ac_ext
7297  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7298  (eval $ac_compile) 2>&5
7299  ac_status=$?
7300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301  (exit $ac_status); }; then
7302    case `/usr/bin/file conftest.$ac_objext` in
7303    *ELF-32*)
7304      HPUX_IA64_MODE="32"
7305      ;;
7306    *ELF-64*)
7307      HPUX_IA64_MODE="64"
7308      ;;
7309    esac
7310  fi
7311  rm -rf conftest*
7312  ;;
7313*-*-irix6*)
7314  # Find out which ABI we are using.
7315  echo '#line 7315 "configure"' > conftest.$ac_ext
7316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317  (eval $ac_compile) 2>&5
7318  ac_status=$?
7319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320  (exit $ac_status); }; then
7321   if test "$lt_cv_prog_gnu_ld" = yes; then
7322    case `/usr/bin/file conftest.$ac_objext` in
7323    *32-bit*)
7324      LD="${LD-ld} -melf32bsmip"
7325      ;;
7326    *N32*)
7327      LD="${LD-ld} -melf32bmipn32"
7328      ;;
7329    *64-bit*)
7330      LD="${LD-ld} -melf64bmip"
7331      ;;
7332    esac
7333   else
7334    case `/usr/bin/file conftest.$ac_objext` in
7335    *32-bit*)
7336      LD="${LD-ld} -32"
7337      ;;
7338    *N32*)
7339      LD="${LD-ld} -n32"
7340      ;;
7341    *64-bit*)
7342      LD="${LD-ld} -64"
7343      ;;
7344    esac
7345   fi
7346  fi
7347  rm -rf conftest*
7348  ;;
7349
7350x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7351  # Find out which ABI we are using.
7352  echo 'int i;' > conftest.$ac_ext
7353  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354  (eval $ac_compile) 2>&5
7355  ac_status=$?
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); }; then
7358    case `/usr/bin/file conftest.o` in
7359    *32-bit*)
7360      case $host in
7361        x86_64-*linux*)
7362          LD="${LD-ld} -m elf_i386"
7363          ;;
7364        ppc64-*linux*|powerpc64-*linux*)
7365          LD="${LD-ld} -m elf32ppclinux"
7366          ;;
7367        s390x-*linux*)
7368          LD="${LD-ld} -m elf_s390"
7369          ;;
7370        sparc64-*linux*)
7371          LD="${LD-ld} -m elf32_sparc"
7372          ;;
7373      esac
7374      ;;
7375    *64-bit*)
7376      case $host in
7377        x86_64-*linux*)
7378          LD="${LD-ld} -m elf_x86_64"
7379          ;;
7380        ppc*-*linux*|powerpc*-*linux*)
7381          LD="${LD-ld} -m elf64ppc"
7382          ;;
7383        s390*-*linux*)
7384          LD="${LD-ld} -m elf64_s390"
7385          ;;
7386        sparc*-*linux*)
7387          LD="${LD-ld} -m elf64_sparc"
7388          ;;
7389      esac
7390      ;;
7391    esac
7392  fi
7393  rm -rf conftest*
7394  ;;
7395
7396*-*-sco3.2v5*)
7397  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7398  SAVE_CFLAGS="$CFLAGS"
7399  CFLAGS="$CFLAGS -belf"
7400  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7401echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7402if test "${lt_cv_cc_needs_belf+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  ac_ext=c
7406ac_cpp='$CPP $CPPFLAGS'
7407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410
7411     cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h.  */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h.  */
7417
7418#ifdef F77_DUMMY_MAIN
7419
7420#  ifdef __cplusplus
7421     extern "C"
7422#  endif
7423   int F77_DUMMY_MAIN() { return 1; }
7424
7425#endif
7426int
7427main ()
7428{
7429
7430  ;
7431  return 0;
7432}
7433_ACEOF
7434rm -f conftest.$ac_objext conftest$ac_exeext
7435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7436  (eval $ac_link) 2>conftest.er1
7437  ac_status=$?
7438  grep -v '^ *+' conftest.er1 >conftest.err
7439  rm -f conftest.er1
7440  cat conftest.err >&5
7441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442  (exit $ac_status); } &&
7443         { ac_try='test -z "$ac_c_werror_flag"
7444                         || test ! -s conftest.err'
7445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446  (eval $ac_try) 2>&5
7447  ac_status=$?
7448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449  (exit $ac_status); }; } &&
7450         { ac_try='test -s conftest$ac_exeext'
7451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452  (eval $ac_try) 2>&5
7453  ac_status=$?
7454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455  (exit $ac_status); }; }; then
7456  lt_cv_cc_needs_belf=yes
7457else
7458  echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
7461lt_cv_cc_needs_belf=no
7462fi
7463rm -f conftest.err conftest.$ac_objext \
7464      conftest$ac_exeext conftest.$ac_ext
7465     ac_ext=c
7466ac_cpp='$CPP $CPPFLAGS'
7467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
7471fi
7472echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7473echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7474  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7475    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7476    CFLAGS="$SAVE_CFLAGS"
7477  fi
7478  ;;
7479sparc*-*solaris*)
7480  # Find out which ABI we are using.
7481  echo 'int i;' > conftest.$ac_ext
7482  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483  (eval $ac_compile) 2>&5
7484  ac_status=$?
7485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486  (exit $ac_status); }; then
7487    case `/usr/bin/file conftest.o` in
7488    *64-bit*)
7489      case $lt_cv_prog_gnu_ld in
7490      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7491      *)    LD="${LD-ld} -64" ;;
7492      esac
7493      ;;
7494    esac
7495  fi
7496  rm -rf conftest*
7497  ;;
7498
7499
7500esac
7501
7502need_locks="$enable_libtool_lock"
7503
7504
7505ac_ext=c
7506ac_cpp='$CPP $CPPFLAGS'
7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7511echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7512# On Suns, sometimes $CPP names a directory.
7513if test -n "$CPP" && test -d "$CPP"; then
7514  CPP=
7515fi
7516if test -z "$CPP"; then
7517  if test "${ac_cv_prog_CPP+set}" = set; then
7518  echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520      # Double quotes because CPP needs to be expanded
7521    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7522    do
7523      ac_preproc_ok=false
7524for ac_c_preproc_warn_flag in '' yes
7525do
7526  # Use a header file that comes with gcc, so configuring glibc
7527  # with a fresh cross-compiler works.
7528  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7529  # <limits.h> exists even on freestanding compilers.
7530  # On the NeXT, cc -E runs the code through the compiler's parser,
7531  # not just through cpp. "Syntax error" is here to catch this case.
7532  cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h.  */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h.  */
7538#ifdef __STDC__
7539# include <limits.h>
7540#else
7541# include <assert.h>
7542#endif
7543                     Syntax error
7544_ACEOF
7545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7546  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7547  ac_status=$?
7548  grep -v '^ *+' conftest.er1 >conftest.err
7549  rm -f conftest.er1
7550  cat conftest.err >&5
7551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552  (exit $ac_status); } >/dev/null; then
7553  if test -s conftest.err; then
7554    ac_cpp_err=$ac_c_preproc_warn_flag
7555    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7556  else
7557    ac_cpp_err=
7558  fi
7559else
7560  ac_cpp_err=yes
7561fi
7562if test -z "$ac_cpp_err"; then
7563  :
7564else
7565  echo "$as_me: failed program was:" >&5
7566sed 's/^/| /' conftest.$ac_ext >&5
7567
7568  # Broken: fails on valid input.
7569continue
7570fi
7571rm -f conftest.err conftest.$ac_ext
7572
7573  # OK, works on sane cases.  Now check whether non-existent headers
7574  # can be detected and how.
7575  cat >conftest.$ac_ext <<_ACEOF
7576/* confdefs.h.  */
7577_ACEOF
7578cat confdefs.h >>conftest.$ac_ext
7579cat >>conftest.$ac_ext <<_ACEOF
7580/* end confdefs.h.  */
7581#include <ac_nonexistent.h>
7582_ACEOF
7583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7585  ac_status=$?
7586  grep -v '^ *+' conftest.er1 >conftest.err
7587  rm -f conftest.er1
7588  cat conftest.err >&5
7589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590  (exit $ac_status); } >/dev/null; then
7591  if test -s conftest.err; then
7592    ac_cpp_err=$ac_c_preproc_warn_flag
7593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7594  else
7595    ac_cpp_err=
7596  fi
7597else
7598  ac_cpp_err=yes
7599fi
7600if test -z "$ac_cpp_err"; then
7601  # Broken: success on invalid input.
7602continue
7603else
7604  echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607  # Passes both tests.
7608ac_preproc_ok=:
7609break
7610fi
7611rm -f conftest.err conftest.$ac_ext
7612
7613done
7614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7615rm -f conftest.err conftest.$ac_ext
7616if $ac_preproc_ok; then
7617  break
7618fi
7619
7620    done
7621    ac_cv_prog_CPP=$CPP
7622
7623fi
7624  CPP=$ac_cv_prog_CPP
7625else
7626  ac_cv_prog_CPP=$CPP
7627fi
7628echo "$as_me:$LINENO: result: $CPP" >&5
7629echo "${ECHO_T}$CPP" >&6
7630ac_preproc_ok=false
7631for ac_c_preproc_warn_flag in '' yes
7632do
7633  # Use a header file that comes with gcc, so configuring glibc
7634  # with a fresh cross-compiler works.
7635  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636  # <limits.h> exists even on freestanding compilers.
7637  # On the NeXT, cc -E runs the code through the compiler's parser,
7638  # not just through cpp. "Syntax error" is here to catch this case.
7639  cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h.  */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h.  */
7645#ifdef __STDC__
7646# include <limits.h>
7647#else
7648# include <assert.h>
7649#endif
7650                     Syntax error
7651_ACEOF
7652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654  ac_status=$?
7655  grep -v '^ *+' conftest.er1 >conftest.err
7656  rm -f conftest.er1
7657  cat conftest.err >&5
7658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659  (exit $ac_status); } >/dev/null; then
7660  if test -s conftest.err; then
7661    ac_cpp_err=$ac_c_preproc_warn_flag
7662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7663  else
7664    ac_cpp_err=
7665  fi
7666else
7667  ac_cpp_err=yes
7668fi
7669if test -z "$ac_cpp_err"; then
7670  :
7671else
7672  echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675  # Broken: fails on valid input.
7676continue
7677fi
7678rm -f conftest.err conftest.$ac_ext
7679
7680  # OK, works on sane cases.  Now check whether non-existent headers
7681  # can be detected and how.
7682  cat >conftest.$ac_ext <<_ACEOF
7683/* confdefs.h.  */
7684_ACEOF
7685cat confdefs.h >>conftest.$ac_ext
7686cat >>conftest.$ac_ext <<_ACEOF
7687/* end confdefs.h.  */
7688#include <ac_nonexistent.h>
7689_ACEOF
7690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7692  ac_status=$?
7693  grep -v '^ *+' conftest.er1 >conftest.err
7694  rm -f conftest.er1
7695  cat conftest.err >&5
7696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697  (exit $ac_status); } >/dev/null; then
7698  if test -s conftest.err; then
7699    ac_cpp_err=$ac_c_preproc_warn_flag
7700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7701  else
7702    ac_cpp_err=
7703  fi
7704else
7705  ac_cpp_err=yes
7706fi
7707if test -z "$ac_cpp_err"; then
7708  # Broken: success on invalid input.
7709continue
7710else
7711  echo "$as_me: failed program was:" >&5
7712sed 's/^/| /' conftest.$ac_ext >&5
7713
7714  # Passes both tests.
7715ac_preproc_ok=:
7716break
7717fi
7718rm -f conftest.err conftest.$ac_ext
7719
7720done
7721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7722rm -f conftest.err conftest.$ac_ext
7723if $ac_preproc_ok; then
7724  :
7725else
7726  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7727See \`config.log' for more details." >&5
7728echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7729See \`config.log' for more details." >&2;}
7730   { (exit 1); exit 1; }; }
7731fi
7732
7733ac_ext=c
7734ac_cpp='$CPP $CPPFLAGS'
7735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738
7739
7740echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7741echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7742if test "${ac_cv_header_stdc+set}" = set; then
7743  echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745  cat >conftest.$ac_ext <<_ACEOF
7746/* confdefs.h.  */
7747_ACEOF
7748cat confdefs.h >>conftest.$ac_ext
7749cat >>conftest.$ac_ext <<_ACEOF
7750/* end confdefs.h.  */
7751#include <stdlib.h>
7752#include <stdarg.h>
7753#include <string.h>
7754#include <float.h>
7755
7756#ifdef F77_DUMMY_MAIN
7757
7758#  ifdef __cplusplus
7759     extern "C"
7760#  endif
7761   int F77_DUMMY_MAIN() { return 1; }
7762
7763#endif
7764int
7765main ()
7766{
7767
7768  ;
7769  return 0;
7770}
7771_ACEOF
7772rm -f conftest.$ac_objext
7773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7774  (eval $ac_compile) 2>conftest.er1
7775  ac_status=$?
7776  grep -v '^ *+' conftest.er1 >conftest.err
7777  rm -f conftest.er1
7778  cat conftest.err >&5
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); } &&
7781         { ac_try='test -z "$ac_c_werror_flag"
7782                         || test ! -s conftest.err'
7783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784  (eval $ac_try) 2>&5
7785  ac_status=$?
7786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787  (exit $ac_status); }; } &&
7788         { ac_try='test -s conftest.$ac_objext'
7789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790  (eval $ac_try) 2>&5
7791  ac_status=$?
7792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793  (exit $ac_status); }; }; then
7794  ac_cv_header_stdc=yes
7795else
7796  echo "$as_me: failed program was:" >&5
7797sed 's/^/| /' conftest.$ac_ext >&5
7798
7799ac_cv_header_stdc=no
7800fi
7801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7802
7803if test $ac_cv_header_stdc = yes; then
7804  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7805  cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h.  */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h.  */
7811#include <string.h>
7812
7813_ACEOF
7814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7815  $EGREP "memchr" >/dev/null 2>&1; then
7816  :
7817else
7818  ac_cv_header_stdc=no
7819fi
7820rm -f conftest*
7821
7822fi
7823
7824if test $ac_cv_header_stdc = yes; then
7825  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7826  cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h.  */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h.  */
7832#include <stdlib.h>
7833
7834_ACEOF
7835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836  $EGREP "free" >/dev/null 2>&1; then
7837  :
7838else
7839  ac_cv_header_stdc=no
7840fi
7841rm -f conftest*
7842
7843fi
7844
7845if test $ac_cv_header_stdc = yes; then
7846  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7847  if test "$cross_compiling" = yes; then
7848  :
7849else
7850  cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h.  */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h.  */
7856#include <ctype.h>
7857#if ((' ' & 0x0FF) == 0x020)
7858# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7859# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7860#else
7861# define ISLOWER(c) \
7862                   (('a' <= (c) && (c) <= 'i') \
7863                     || ('j' <= (c) && (c) <= 'r') \
7864                     || ('s' <= (c) && (c) <= 'z'))
7865# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7866#endif
7867
7868#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7869int
7870main ()
7871{
7872  int i;
7873  for (i = 0; i < 256; i++)
7874    if (XOR (islower (i), ISLOWER (i))
7875        || toupper (i) != TOUPPER (i))
7876      exit(2);
7877  exit (0);
7878}
7879_ACEOF
7880rm -f conftest$ac_exeext
7881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882  (eval $ac_link) 2>&5
7883  ac_status=$?
7884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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  :
7892else
7893  echo "$as_me: program exited with status $ac_status" >&5
7894echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897( exit $ac_status )
7898ac_cv_header_stdc=no
7899fi
7900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7901fi
7902fi
7903fi
7904echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7905echo "${ECHO_T}$ac_cv_header_stdc" >&6
7906if test $ac_cv_header_stdc = yes; then
7907
7908cat >>confdefs.h <<\_ACEOF
7909#define STDC_HEADERS 1
7910_ACEOF
7911
7912fi
7913
7914# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7925                  inttypes.h stdint.h unistd.h
7926do
7927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7928echo "$as_me:$LINENO: checking for $ac_header" >&5
7929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931  echo $ECHO_N "(cached) $ECHO_C" >&6
7932else
7933  cat >conftest.$ac_ext <<_ACEOF
7934/* confdefs.h.  */
7935_ACEOF
7936cat confdefs.h >>conftest.$ac_ext
7937cat >>conftest.$ac_ext <<_ACEOF
7938/* end confdefs.h.  */
7939$ac_includes_default
7940
7941#include <$ac_header>
7942_ACEOF
7943rm -f conftest.$ac_objext
7944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7945  (eval $ac_compile) 2>conftest.er1
7946  ac_status=$?
7947  grep -v '^ *+' conftest.er1 >conftest.err
7948  rm -f conftest.er1
7949  cat conftest.err >&5
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); } &&
7952         { ac_try='test -z "$ac_c_werror_flag"
7953                         || test ! -s conftest.err'
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); }; } &&
7959         { ac_try='test -s conftest.$ac_objext'
7960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961  (eval $ac_try) 2>&5
7962  ac_status=$?
7963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964  (exit $ac_status); }; }; then
7965  eval "$as_ac_Header=yes"
7966else
7967  echo "$as_me: failed program was:" >&5
7968sed 's/^/| /' conftest.$ac_ext >&5
7969
7970eval "$as_ac_Header=no"
7971fi
7972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7973fi
7974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7976if test `eval echo '${'$as_ac_Header'}'` = yes; then
7977  cat >>confdefs.h <<_ACEOF
7978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979_ACEOF
7980
7981fi
7982
7983done
7984
7985
7986
7987for ac_header in dlfcn.h
7988do
7989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7990if eval "test \"\${$as_ac_Header+set}\" = set"; then
7991  echo "$as_me:$LINENO: checking for $ac_header" >&5
7992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7993if eval "test \"\${$as_ac_Header+set}\" = set"; then
7994  echo $ECHO_N "(cached) $ECHO_C" >&6
7995fi
7996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7998else
7999  # Is the header compilable?
8000echo "$as_me:$LINENO: checking $ac_header usability" >&5
8001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8002cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h.  */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h.  */
8008$ac_includes_default
8009#include <$ac_header>
8010_ACEOF
8011rm -f conftest.$ac_objext
8012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013  (eval $ac_compile) 2>conftest.er1
8014  ac_status=$?
8015  grep -v '^ *+' conftest.er1 >conftest.err
8016  rm -f conftest.er1
8017  cat conftest.err >&5
8018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019  (exit $ac_status); } &&
8020         { ac_try='test -z "$ac_c_werror_flag"
8021                         || test ! -s conftest.err'
8022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023  (eval $ac_try) 2>&5
8024  ac_status=$?
8025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026  (exit $ac_status); }; } &&
8027         { ac_try='test -s conftest.$ac_objext'
8028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029  (eval $ac_try) 2>&5
8030  ac_status=$?
8031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032  (exit $ac_status); }; }; then
8033  ac_header_compiler=yes
8034else
8035  echo "$as_me: failed program was:" >&5
8036sed 's/^/| /' conftest.$ac_ext >&5
8037
8038ac_header_compiler=no
8039fi
8040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8042echo "${ECHO_T}$ac_header_compiler" >&6
8043
8044# Is the header present?
8045echo "$as_me:$LINENO: checking $ac_header presence" >&5
8046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8047cat >conftest.$ac_ext <<_ACEOF
8048/* confdefs.h.  */
8049_ACEOF
8050cat confdefs.h >>conftest.$ac_ext
8051cat >>conftest.$ac_ext <<_ACEOF
8052/* end confdefs.h.  */
8053#include <$ac_header>
8054_ACEOF
8055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8057  ac_status=$?
8058  grep -v '^ *+' conftest.er1 >conftest.err
8059  rm -f conftest.er1
8060  cat conftest.err >&5
8061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062  (exit $ac_status); } >/dev/null; then
8063  if test -s conftest.err; then
8064    ac_cpp_err=$ac_c_preproc_warn_flag
8065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8066  else
8067    ac_cpp_err=
8068  fi
8069else
8070  ac_cpp_err=yes
8071fi
8072if test -z "$ac_cpp_err"; then
8073  ac_header_preproc=yes
8074else
8075  echo "$as_me: failed program was:" >&5
8076sed 's/^/| /' conftest.$ac_ext >&5
8077
8078  ac_header_preproc=no
8079fi
8080rm -f conftest.err conftest.$ac_ext
8081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8082echo "${ECHO_T}$ac_header_preproc" >&6
8083
8084# So?  What about this header?
8085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8086  yes:no: )
8087    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8089    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8091    ac_header_preproc=yes
8092    ;;
8093  no:yes:* )
8094    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8096    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8097echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8098    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8100    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8101echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8102    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8104    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8106    (
8107      cat <<\_ASBOX
8108## --------------------------------------------------------------- ##
8109## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8110## --------------------------------------------------------------- ##
8111_ASBOX
8112    ) |
8113      sed "s/^/$as_me: WARNING:     /" >&2
8114    ;;
8115esac
8116echo "$as_me:$LINENO: checking for $ac_header" >&5
8117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8118if eval "test \"\${$as_ac_Header+set}\" = set"; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121  eval "$as_ac_Header=\$ac_header_preproc"
8122fi
8123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8125
8126fi
8127if test `eval echo '${'$as_ac_Header'}'` = yes; then
8128  cat >>confdefs.h <<_ACEOF
8129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8130_ACEOF
8131
8132fi
8133
8134done
8135
8136ac_ext=cc
8137ac_cpp='$CXXCPP $CPPFLAGS'
8138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8141if test -n "$ac_tool_prefix"; then
8142  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8143  do
8144    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8145set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8146echo "$as_me:$LINENO: checking for $ac_word" >&5
8147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8148if test "${ac_cv_prog_CXX+set}" = set; then
8149  echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151  if test -n "$CXX"; then
8152  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157  IFS=$as_save_IFS
8158  test -z "$as_dir" && as_dir=.
8159  for ac_exec_ext in '' $ac_executable_extensions; do
8160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8163    break 2
8164  fi
8165done
8166done
8167
8168fi
8169fi
8170CXX=$ac_cv_prog_CXX
8171if test -n "$CXX"; then
8172  echo "$as_me:$LINENO: result: $CXX" >&5
8173echo "${ECHO_T}$CXX" >&6
8174else
8175  echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177fi
8178
8179    test -n "$CXX" && break
8180  done
8181fi
8182if test -z "$CXX"; then
8183  ac_ct_CXX=$CXX
8184  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8185do
8186  # Extract the first word of "$ac_prog", so it can be a program name with args.
8187set dummy $ac_prog; ac_word=$2
8188echo "$as_me:$LINENO: checking for $ac_word" >&5
8189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8190if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  if test -n "$ac_ct_CXX"; then
8194  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8195else
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199  IFS=$as_save_IFS
8200  test -z "$as_dir" && as_dir=.
8201  for ac_exec_ext in '' $ac_executable_extensions; do
8202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8203    ac_cv_prog_ac_ct_CXX="$ac_prog"
8204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205    break 2
8206  fi
8207done
8208done
8209
8210fi
8211fi
8212ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8213if test -n "$ac_ct_CXX"; then
8214  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8215echo "${ECHO_T}$ac_ct_CXX" >&6
8216else
8217  echo "$as_me:$LINENO: result: no" >&5
8218echo "${ECHO_T}no" >&6
8219fi
8220
8221  test -n "$ac_ct_CXX" && break
8222done
8223test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8224
8225  CXX=$ac_ct_CXX
8226fi
8227
8228
8229# Provide some information about the compiler.
8230echo "$as_me:$LINENO:" \
8231     "checking for C++ compiler version" >&5
8232ac_compiler=`set X $ac_compile; echo $2`
8233{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8234  (eval $ac_compiler --version </dev/null >&5) 2>&5
8235  ac_status=$?
8236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237  (exit $ac_status); }
8238{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8239  (eval $ac_compiler -v </dev/null >&5) 2>&5
8240  ac_status=$?
8241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242  (exit $ac_status); }
8243{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8244  (eval $ac_compiler -V </dev/null >&5) 2>&5
8245  ac_status=$?
8246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247  (exit $ac_status); }
8248
8249echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8250echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8251if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h.  */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h.  */
8260
8261#ifdef F77_DUMMY_MAIN
8262
8263#  ifdef __cplusplus
8264     extern "C"
8265#  endif
8266   int F77_DUMMY_MAIN() { return 1; }
8267
8268#endif
8269int
8270main ()
8271{
8272#ifndef __GNUC__
8273       choke me
8274#endif
8275
8276  ;
8277  return 0;
8278}
8279_ACEOF
8280rm -f conftest.$ac_objext
8281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282  (eval $ac_compile) 2>conftest.er1
8283  ac_status=$?
8284  grep -v '^ *+' conftest.er1 >conftest.err
8285  rm -f conftest.er1
8286  cat conftest.err >&5
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); } &&
8289         { ac_try='test -z "$ac_cxx_werror_flag"
8290                         || test ! -s conftest.err'
8291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292  (eval $ac_try) 2>&5
8293  ac_status=$?
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); }; } &&
8296         { ac_try='test -s conftest.$ac_objext'
8297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298  (eval $ac_try) 2>&5
8299  ac_status=$?
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); }; }; then
8302  ac_compiler_gnu=yes
8303else
8304  echo "$as_me: failed program was:" >&5
8305sed 's/^/| /' conftest.$ac_ext >&5
8306
8307ac_compiler_gnu=no
8308fi
8309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8311
8312fi
8313echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8314echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8315GXX=`test $ac_compiler_gnu = yes && echo yes`
8316ac_test_CXXFLAGS=${CXXFLAGS+set}
8317ac_save_CXXFLAGS=$CXXFLAGS
8318CXXFLAGS="-g"
8319echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8320echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8321if test "${ac_cv_prog_cxx_g+set}" = set; then
8322  echo $ECHO_N "(cached) $ECHO_C" >&6
8323else
8324  cat >conftest.$ac_ext <<_ACEOF
8325/* confdefs.h.  */
8326_ACEOF
8327cat confdefs.h >>conftest.$ac_ext
8328cat >>conftest.$ac_ext <<_ACEOF
8329/* end confdefs.h.  */
8330
8331#ifdef F77_DUMMY_MAIN
8332
8333#  ifdef __cplusplus
8334     extern "C"
8335#  endif
8336   int F77_DUMMY_MAIN() { return 1; }
8337
8338#endif
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347rm -f conftest.$ac_objext
8348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349  (eval $ac_compile) 2>conftest.er1
8350  ac_status=$?
8351  grep -v '^ *+' conftest.er1 >conftest.err
8352  rm -f conftest.er1
8353  cat conftest.err >&5
8354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355  (exit $ac_status); } &&
8356         { ac_try='test -z "$ac_cxx_werror_flag"
8357                         || test ! -s conftest.err'
8358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8359  (eval $ac_try) 2>&5
8360  ac_status=$?
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); }; } &&
8363         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8369  ac_cv_prog_cxx_g=yes
8370else
8371  echo "$as_me: failed program was:" >&5
8372sed 's/^/| /' conftest.$ac_ext >&5
8373
8374ac_cv_prog_cxx_g=no
8375fi
8376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8377fi
8378echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8379echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8380if test "$ac_test_CXXFLAGS" = set; then
8381  CXXFLAGS=$ac_save_CXXFLAGS
8382elif test $ac_cv_prog_cxx_g = yes; then
8383  if test "$GXX" = yes; then
8384    CXXFLAGS="-g -O2"
8385  else
8386    CXXFLAGS="-g"
8387  fi
8388else
8389  if test "$GXX" = yes; then
8390    CXXFLAGS="-O2"
8391  else
8392    CXXFLAGS=
8393  fi
8394fi
8395for ac_declaration in \
8396   '' \
8397   'extern "C" void std::exit (int) throw (); using std::exit;' \
8398   'extern "C" void std::exit (int); using std::exit;' \
8399   'extern "C" void exit (int) throw ();' \
8400   'extern "C" void exit (int);' \
8401   'void exit (int);'
8402do
8403  cat >conftest.$ac_ext <<_ACEOF
8404/* confdefs.h.  */
8405_ACEOF
8406cat confdefs.h >>conftest.$ac_ext
8407cat >>conftest.$ac_ext <<_ACEOF
8408/* end confdefs.h.  */
8409$ac_declaration
8410#include <stdlib.h>
8411#ifdef F77_DUMMY_MAIN
8412
8413#  ifdef __cplusplus
8414     extern "C"
8415#  endif
8416   int F77_DUMMY_MAIN() { return 1; }
8417
8418#endif
8419int
8420main ()
8421{
8422exit (42);
8423  ;
8424  return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429  (eval $ac_compile) 2>conftest.er1
8430  ac_status=$?
8431  grep -v '^ *+' conftest.er1 >conftest.err
8432  rm -f conftest.er1
8433  cat conftest.err >&5
8434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435  (exit $ac_status); } &&
8436         { ac_try='test -z "$ac_cxx_werror_flag"
8437                         || test ! -s conftest.err'
8438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439  (eval $ac_try) 2>&5
8440  ac_status=$?
8441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442  (exit $ac_status); }; } &&
8443         { ac_try='test -s conftest.$ac_objext'
8444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445  (eval $ac_try) 2>&5
8446  ac_status=$?
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); }; }; then
8449  :
8450else
8451  echo "$as_me: failed program was:" >&5
8452sed 's/^/| /' conftest.$ac_ext >&5
8453
8454continue
8455fi
8456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8457  cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h.  */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h.  */
8463$ac_declaration
8464#ifdef F77_DUMMY_MAIN
8465
8466#  ifdef __cplusplus
8467     extern "C"
8468#  endif
8469   int F77_DUMMY_MAIN() { return 1; }
8470
8471#endif
8472int
8473main ()
8474{
8475exit (42);
8476  ;
8477  return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext
8481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8482  (eval $ac_compile) 2>conftest.er1
8483  ac_status=$?
8484  grep -v '^ *+' conftest.er1 >conftest.err
8485  rm -f conftest.er1
8486  cat conftest.err >&5
8487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488  (exit $ac_status); } &&
8489         { ac_try='test -z "$ac_cxx_werror_flag"
8490                         || test ! -s conftest.err'
8491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492  (eval $ac_try) 2>&5
8493  ac_status=$?
8494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495  (exit $ac_status); }; } &&
8496         { ac_try='test -s conftest.$ac_objext'
8497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498  (eval $ac_try) 2>&5
8499  ac_status=$?
8500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); }; }; then
8502  break
8503else
8504  echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507fi
8508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8509done
8510rm -f conftest*
8511if test -n "$ac_declaration"; then
8512  echo '#ifdef __cplusplus' >>confdefs.h
8513  echo $ac_declaration      >>confdefs.h
8514  echo '#endif'             >>confdefs.h
8515fi
8516
8517ac_ext=cc
8518ac_cpp='$CXXCPP $CPPFLAGS'
8519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8522
8523depcc="$CXX"  am_compiler_list=
8524
8525echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8526echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8527if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8528  echo $ECHO_N "(cached) $ECHO_C" >&6
8529else
8530  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8531  # We make a subdir and do the tests there.  Otherwise we can end up
8532  # making bogus files that we don't know about and never remove.  For
8533  # instance it was reported that on HP-UX the gcc test will end up
8534  # making a dummy file named `D' -- because `-MD' means `put the output
8535  # in D'.
8536  mkdir conftest.dir
8537  # Copy depcomp to subdir because otherwise we won't find it if we're
8538  # using a relative directory.
8539  cp "$am_depcomp" conftest.dir
8540  cd conftest.dir
8541  # We will build objects and dependencies in a subdirectory because
8542  # it helps to detect inapplicable dependency modes.  For instance
8543  # both Tru64's cc and ICC support -MD to output dependencies as a
8544  # side effect of compilation, but ICC will put the dependencies in
8545  # the current directory while Tru64 will put them in the object
8546  # directory.
8547  mkdir sub
8548
8549  am_cv_CXX_dependencies_compiler_type=none
8550  if test "$am_compiler_list" = ""; then
8551     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8552  fi
8553  for depmode in $am_compiler_list; do
8554    # Setup a source with many dependencies, because some compilers
8555    # like to wrap large dependency lists on column 80 (with \), and
8556    # we should not choose a depcomp mode which is confused by this.
8557    #
8558    # We need to recreate these files for each test, as the compiler may
8559    # overwrite some of them when testing with obscure command lines.
8560    # This happens at least with the AIX C compiler.
8561    : > sub/conftest.c
8562    for i in 1 2 3 4 5 6; do
8563      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8564      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8565      # Solaris 8's {/usr,}/bin/sh.
8566      touch sub/conftst$i.h
8567    done
8568    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8569
8570    case $depmode in
8571    nosideeffect)
8572      # after this tag, mechanisms are not by side-effect, so they'll
8573      # only be used when explicitly requested
8574      if test "x$enable_dependency_tracking" = xyes; then
8575        continue
8576      else
8577        break
8578      fi
8579      ;;
8580    none) break ;;
8581    esac
8582    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8583    # mode.  It turns out that the SunPro C++ compiler does not properly
8584    # handle `-M -o', and we need to detect this.
8585    if depmode=$depmode \
8586       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8587       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8588       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8589         >/dev/null 2>conftest.err &&
8590       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8591       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8592       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8593      # icc doesn't choke on unknown options, it will just issue warnings
8594      # or remarks (even with -Werror).  So we grep stderr for any message
8595      # that says an option was ignored or not supported.
8596      # When given -MP, icc 7.0 and 7.1 complain thusly:
8597      #   icc: Command line warning: ignoring option '-M'; no argument required
8598      # The diagnosis changed in icc 8.0:
8599      #   icc: Command line remark: option '-MP' not supported
8600      if (grep 'ignoring option' conftest.err ||
8601          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8602        am_cv_CXX_dependencies_compiler_type=$depmode
8603        break
8604      fi
8605    fi
8606  done
8607
8608  cd ..
8609  rm -rf conftest.dir
8610else
8611  am_cv_CXX_dependencies_compiler_type=none
8612fi
8613
8614fi
8615echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8616echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8617CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8618
8619
8620
8621if
8622  test "x$enable_dependency_tracking" != xno \
8623  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8624  am__fastdepCXX_TRUE=
8625  am__fastdepCXX_FALSE='#'
8626else
8627  am__fastdepCXX_TRUE='#'
8628  am__fastdepCXX_FALSE=
8629fi
8630
8631
8632depcc="$CXX"  am_compiler_list=
8633
8634echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8635echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8636if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8637  echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8640  # We make a subdir and do the tests there.  Otherwise we can end up
8641  # making bogus files that we don't know about and never remove.  For
8642  # instance it was reported that on HP-UX the gcc test will end up
8643  # making a dummy file named `D' -- because `-MD' means `put the output
8644  # in D'.
8645  mkdir conftest.dir
8646  # Copy depcomp to subdir because otherwise we won't find it if we're
8647  # using a relative directory.
8648  cp "$am_depcomp" conftest.dir
8649  cd conftest.dir
8650  # We will build objects and dependencies in a subdirectory because
8651  # it helps to detect inapplicable dependency modes.  For instance
8652  # both Tru64's cc and ICC support -MD to output dependencies as a
8653  # side effect of compilation, but ICC will put the dependencies in
8654  # the current directory while Tru64 will put them in the object
8655  # directory.
8656  mkdir sub
8657
8658  am_cv_CXX_dependencies_compiler_type=none
8659  if test "$am_compiler_list" = ""; then
8660     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8661  fi
8662  for depmode in $am_compiler_list; do
8663    # Setup a source with many dependencies, because some compilers
8664    # like to wrap large dependency lists on column 80 (with \), and
8665    # we should not choose a depcomp mode which is confused by this.
8666    #
8667    # We need to recreate these files for each test, as the compiler may
8668    # overwrite some of them when testing with obscure command lines.
8669    # This happens at least with the AIX C compiler.
8670    : > sub/conftest.c
8671    for i in 1 2 3 4 5 6; do
8672      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8673      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8674      # Solaris 8's {/usr,}/bin/sh.
8675      touch sub/conftst$i.h
8676    done
8677    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8678
8679    case $depmode in
8680    nosideeffect)
8681      # after this tag, mechanisms are not by side-effect, so they'll
8682      # only be used when explicitly requested
8683      if test "x$enable_dependency_tracking" = xyes; then
8684        continue
8685      else
8686        break
8687      fi
8688      ;;
8689    none) break ;;
8690    esac
8691    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8692    # mode.  It turns out that the SunPro C++ compiler does not properly
8693    # handle `-M -o', and we need to detect this.
8694    if depmode=$depmode \
8695       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8696       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8697       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8698         >/dev/null 2>conftest.err &&
8699       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8700       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8701       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8702      # icc doesn't choke on unknown options, it will just issue warnings
8703      # or remarks (even with -Werror).  So we grep stderr for any message
8704      # that says an option was ignored or not supported.
8705      # When given -MP, icc 7.0 and 7.1 complain thusly:
8706      #   icc: Command line warning: ignoring option '-M'; no argument required
8707      # The diagnosis changed in icc 8.0:
8708      #   icc: Command line remark: option '-MP' not supported
8709      if (grep 'ignoring option' conftest.err ||
8710          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8711        am_cv_CXX_dependencies_compiler_type=$depmode
8712        break
8713      fi
8714    fi
8715  done
8716
8717  cd ..
8718  rm -rf conftest.dir
8719else
8720  am_cv_CXX_dependencies_compiler_type=none
8721fi
8722
8723fi
8724echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8725echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8726CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8727
8728
8729
8730if
8731  test "x$enable_dependency_tracking" != xno \
8732  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8733  am__fastdepCXX_TRUE=
8734  am__fastdepCXX_FALSE='#'
8735else
8736  am__fastdepCXX_TRUE='#'
8737  am__fastdepCXX_FALSE=
8738fi
8739
8740
8741
8742
8743if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8744    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8745    (test "X$CXX" != "Xg++"))) ; then
8746  ac_ext=cc
8747ac_cpp='$CXXCPP $CPPFLAGS'
8748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8751echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8752echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8753if test -z "$CXXCPP"; then
8754  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8755  echo $ECHO_N "(cached) $ECHO_C" >&6
8756else
8757      # Double quotes because CXXCPP needs to be expanded
8758    for CXXCPP in "$CXX -E" "/lib/cpp"
8759    do
8760      ac_preproc_ok=false
8761for ac_cxx_preproc_warn_flag in '' yes
8762do
8763  # Use a header file that comes with gcc, so configuring glibc
8764  # with a fresh cross-compiler works.
8765  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8766  # <limits.h> exists even on freestanding compilers.
8767  # On the NeXT, cc -E runs the code through the compiler's parser,
8768  # not just through cpp. "Syntax error" is here to catch this case.
8769  cat >conftest.$ac_ext <<_ACEOF
8770/* confdefs.h.  */
8771_ACEOF
8772cat confdefs.h >>conftest.$ac_ext
8773cat >>conftest.$ac_ext <<_ACEOF
8774/* end confdefs.h.  */
8775#ifdef __STDC__
8776# include <limits.h>
8777#else
8778# include <assert.h>
8779#endif
8780                     Syntax error
8781_ACEOF
8782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8783  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8784  ac_status=$?
8785  grep -v '^ *+' conftest.er1 >conftest.err
8786  rm -f conftest.er1
8787  cat conftest.err >&5
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); } >/dev/null; then
8790  if test -s conftest.err; then
8791    ac_cpp_err=$ac_cxx_preproc_warn_flag
8792    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8793  else
8794    ac_cpp_err=
8795  fi
8796else
8797  ac_cpp_err=yes
8798fi
8799if test -z "$ac_cpp_err"; then
8800  :
8801else
8802  echo "$as_me: failed program was:" >&5
8803sed 's/^/| /' conftest.$ac_ext >&5
8804
8805  # Broken: fails on valid input.
8806continue
8807fi
8808rm -f conftest.err conftest.$ac_ext
8809
8810  # OK, works on sane cases.  Now check whether non-existent headers
8811  # can be detected and how.
8812  cat >conftest.$ac_ext <<_ACEOF
8813/* confdefs.h.  */
8814_ACEOF
8815cat confdefs.h >>conftest.$ac_ext
8816cat >>conftest.$ac_ext <<_ACEOF
8817/* end confdefs.h.  */
8818#include <ac_nonexistent.h>
8819_ACEOF
8820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8822  ac_status=$?
8823  grep -v '^ *+' conftest.er1 >conftest.err
8824  rm -f conftest.er1
8825  cat conftest.err >&5
8826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827  (exit $ac_status); } >/dev/null; then
8828  if test -s conftest.err; then
8829    ac_cpp_err=$ac_cxx_preproc_warn_flag
8830    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8831  else
8832    ac_cpp_err=
8833  fi
8834else
8835  ac_cpp_err=yes
8836fi
8837if test -z "$ac_cpp_err"; then
8838  # Broken: success on invalid input.
8839continue
8840else
8841  echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
8844  # Passes both tests.
8845ac_preproc_ok=:
8846break
8847fi
8848rm -f conftest.err conftest.$ac_ext
8849
8850done
8851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8852rm -f conftest.err conftest.$ac_ext
8853if $ac_preproc_ok; then
8854  break
8855fi
8856
8857    done
8858    ac_cv_prog_CXXCPP=$CXXCPP
8859
8860fi
8861  CXXCPP=$ac_cv_prog_CXXCPP
8862else
8863  ac_cv_prog_CXXCPP=$CXXCPP
8864fi
8865echo "$as_me:$LINENO: result: $CXXCPP" >&5
8866echo "${ECHO_T}$CXXCPP" >&6
8867ac_preproc_ok=false
8868for ac_cxx_preproc_warn_flag in '' yes
8869do
8870  # Use a header file that comes with gcc, so configuring glibc
8871  # with a fresh cross-compiler works.
8872  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8873  # <limits.h> exists even on freestanding compilers.
8874  # On the NeXT, cc -E runs the code through the compiler's parser,
8875  # not just through cpp. "Syntax error" is here to catch this case.
8876  cat >conftest.$ac_ext <<_ACEOF
8877/* confdefs.h.  */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h.  */
8882#ifdef __STDC__
8883# include <limits.h>
8884#else
8885# include <assert.h>
8886#endif
8887                     Syntax error
8888_ACEOF
8889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891  ac_status=$?
8892  grep -v '^ *+' conftest.er1 >conftest.err
8893  rm -f conftest.er1
8894  cat conftest.err >&5
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); } >/dev/null; then
8897  if test -s conftest.err; then
8898    ac_cpp_err=$ac_cxx_preproc_warn_flag
8899    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8900  else
8901    ac_cpp_err=
8902  fi
8903else
8904  ac_cpp_err=yes
8905fi
8906if test -z "$ac_cpp_err"; then
8907  :
8908else
8909  echo "$as_me: failed program was:" >&5
8910sed 's/^/| /' conftest.$ac_ext >&5
8911
8912  # Broken: fails on valid input.
8913continue
8914fi
8915rm -f conftest.err conftest.$ac_ext
8916
8917  # OK, works on sane cases.  Now check whether non-existent headers
8918  # can be detected and how.
8919  cat >conftest.$ac_ext <<_ACEOF
8920/* confdefs.h.  */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h.  */
8925#include <ac_nonexistent.h>
8926_ACEOF
8927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8928  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8929  ac_status=$?
8930  grep -v '^ *+' conftest.er1 >conftest.err
8931  rm -f conftest.er1
8932  cat conftest.err >&5
8933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934  (exit $ac_status); } >/dev/null; then
8935  if test -s conftest.err; then
8936    ac_cpp_err=$ac_cxx_preproc_warn_flag
8937    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8938  else
8939    ac_cpp_err=
8940  fi
8941else
8942  ac_cpp_err=yes
8943fi
8944if test -z "$ac_cpp_err"; then
8945  # Broken: success on invalid input.
8946continue
8947else
8948  echo "$as_me: failed program was:" >&5
8949sed 's/^/| /' conftest.$ac_ext >&5
8950
8951  # Passes both tests.
8952ac_preproc_ok=:
8953break
8954fi
8955rm -f conftest.err conftest.$ac_ext
8956
8957done
8958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8959rm -f conftest.err conftest.$ac_ext
8960if $ac_preproc_ok; then
8961  :
8962else
8963  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8964See \`config.log' for more details." >&5
8965echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8966See \`config.log' for more details." >&2;}
8967   { (exit 1); exit 1; }; }
8968fi
8969
8970ac_ext=cc
8971ac_cpp='$CXXCPP $CPPFLAGS'
8972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8975
8976fi
8977
8978
8979
8980# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8981
8982# find the maximum length of command line arguments
8983echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8984echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8985if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8986  echo $ECHO_N "(cached) $ECHO_C" >&6
8987else
8988    i=0
8989  teststring="ABCD"
8990
8991  case $build_os in
8992  msdosdjgpp*)
8993    # On DJGPP, this test can blow up pretty badly due to problems in libc
8994    # (any single argument exceeding 2000 bytes causes a buffer overrun
8995    # during glob expansion).  Even if it were fixed, the result of this
8996    # check would be larger than it should be.
8997    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8998    ;;
8999
9000  gnu*)
9001    # Under GNU Hurd, this test is not required because there is
9002    # no limit to the length of command line arguments.
9003    # Libtool will interpret -1 as no limit whatsoever
9004    lt_cv_sys_max_cmd_len=-1;
9005    ;;
9006
9007  cygwin* | mingw*)
9008    # On Win9x/ME, this test blows up -- it succeeds, but takes
9009    # about 5 minutes as the teststring grows exponentially.
9010    # Worse, since 9x/ME are not pre-emptively multitasking,
9011    # you end up with a "frozen" computer, even though with patience
9012    # the test eventually succeeds (with a max line length of 256k).
9013    # Instead, let's just punt: use the minimum linelength reported by
9014    # all of the supported platforms: 8192 (on NT/2K/XP).
9015    lt_cv_sys_max_cmd_len=8192;
9016    ;;
9017
9018  amigaos*)
9019    # On AmigaOS with pdksh, this test takes hours, literally.
9020    # So we just punt and use a minimum line length of 8192.
9021    lt_cv_sys_max_cmd_len=8192;
9022    ;;
9023
9024  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9025    # This has been around since 386BSD, at least.  Likely further.
9026    if test -x /sbin/sysctl; then
9027      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9028    elif test -x /usr/sbin/sysctl; then
9029      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9030    else
9031      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9032    fi
9033    # And add a safety zone
9034    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9035    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9036    ;;
9037
9038  interix*)
9039    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9040    lt_cv_sys_max_cmd_len=196608
9041    ;;
9042
9043  osf*)
9044    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9045    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9046    # nice to cause kernel panics so lets avoid the loop below.
9047    # First set a reasonable default.
9048    lt_cv_sys_max_cmd_len=16384
9049    #
9050    if test -x /sbin/sysconfig; then
9051      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9052        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9053      esac
9054    fi
9055    ;;
9056  sco3.2v5*)
9057    lt_cv_sys_max_cmd_len=102400
9058    ;;
9059  sysv5* | sco5v6* | sysv4.2uw2*)
9060    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9061    if test -n "$kargmax"; then
9062      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9063    else
9064      lt_cv_sys_max_cmd_len=32768
9065    fi
9066    ;;
9067  *)
9068    # If test is not a shell built-in, we'll probably end up computing a
9069    # maximum length that is only half of the actual maximum length, but
9070    # we can't tell.
9071    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9072    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9073               = "XX$teststring") >/dev/null 2>&1 &&
9074            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9075            lt_cv_sys_max_cmd_len=$new_result &&
9076            test $i != 17 # 1/2 MB should be enough
9077    do
9078      i=`expr $i + 1`
9079      teststring=$teststring$teststring
9080    done
9081    teststring=
9082    # Add a significant safety factor because C++ compilers can tack on massive
9083    # amounts of additional arguments before passing them to the linker.
9084    # It appears as though 1/2 is a usable value.
9085    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9086    ;;
9087  esac
9088
9089fi
9090
9091if test -n $lt_cv_sys_max_cmd_len ; then
9092  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9093echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9094else
9095  echo "$as_me:$LINENO: result: none" >&5
9096echo "${ECHO_T}none" >&6
9097fi
9098
9099
9100
9101
9102# Check for command to grab the raw symbol name followed by C symbol from nm.
9103echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9104echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9105if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9106  echo $ECHO_N "(cached) $ECHO_C" >&6
9107else
9108
9109# These are sane defaults that work on at least a few old systems.
9110# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9111
9112# Character class describing NM global symbol codes.
9113symcode='[BCDEGRST]'
9114
9115# Regexp to match symbols that can be accessed directly from C.
9116sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9117
9118# Transform an extracted symbol line into a proper C declaration
9119lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9120
9121# Transform an extracted symbol line into symbol name and symbol address
9122lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9123
9124# Define system-specific variables.
9125case $host_os in
9126aix*)
9127  symcode='[BCDT]'
9128  ;;
9129cygwin* | mingw* | pw32*)
9130  symcode='[ABCDGISTW]'
9131  ;;
9132hpux*) # Its linker distinguishes data from code symbols
9133  if test "$host_cpu" = ia64; then
9134    symcode='[ABCDEGRST]'
9135  fi
9136  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9137  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'"
9138  ;;
9139linux*)
9140  if test "$host_cpu" = ia64; then
9141    symcode='[ABCDGIRSTW]'
9142    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9143    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'"
9144  fi
9145  ;;
9146irix* | nonstopux*)
9147  symcode='[BCDEGRST]'
9148  ;;
9149osf*)
9150  symcode='[BCDEGQRST]'
9151  ;;
9152solaris*)
9153  symcode='[BDRT]'
9154  ;;
9155sco3.2v5*)
9156  symcode='[DT]'
9157  ;;
9158sysv4.2uw2*)
9159  symcode='[DT]'
9160  ;;
9161sysv5* | sco5v6* | unixware* | OpenUNIX*)
9162  symcode='[ABDT]'
9163  ;;
9164sysv4)
9165  symcode='[DFNSTU]'
9166  ;;
9167esac
9168
9169# Handle CRLF in mingw tool chain
9170opt_cr=
9171case $build_os in
9172mingw*)
9173  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9174  ;;
9175esac
9176
9177# If we're using GNU nm, then use its standard symbol codes.
9178case `$NM -V 2>&1` in
9179*GNU* | *'with BFD'*)
9180  symcode='[ABCDGIRSTW]' ;;
9181esac
9182
9183# Try without a prefix undercore, then with it.
9184for ac_symprfx in "" "_"; do
9185
9186  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9187  symxfrm="\\1 $ac_symprfx\\2 \\2"
9188
9189  # Write the raw and C identifiers.
9190  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9191
9192  # Check to see that the pipe works correctly.
9193  pipe_works=no
9194
9195  rm -f conftest*
9196  cat > conftest.$ac_ext <<EOF
9197#ifdef __cplusplus
9198extern "C" {
9199#endif
9200char nm_test_var;
9201void nm_test_func(){}
9202#ifdef __cplusplus
9203}
9204#endif
9205int main(){nm_test_var='a';nm_test_func();return(0);}
9206EOF
9207
9208  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209  (eval $ac_compile) 2>&5
9210  ac_status=$?
9211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212  (exit $ac_status); }; then
9213    # Now try to grab the symbols.
9214    nlist=conftest.nm
9215    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9216  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9217  ac_status=$?
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); } && test -s "$nlist"; then
9220      # Try sorting and uniquifying the output.
9221      if sort "$nlist" | uniq > "$nlist"T; then
9222        mv -f "$nlist"T "$nlist"
9223      else
9224        rm -f "$nlist"T
9225      fi
9226
9227      # Make sure that we snagged all the symbols we need.
9228      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9229        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9230          cat <<EOF > conftest.$ac_ext
9231#ifdef __cplusplus
9232extern "C" {
9233#endif
9234
9235EOF
9236          # Now generate the symbol file.
9237          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9238
9239          cat <<EOF >> conftest.$ac_ext
9240#if defined (__STDC__) && __STDC__
9241# define lt_ptr_t void *
9242#else
9243# define lt_ptr_t char *
9244# define const
9245#endif
9246
9247/* The mapping between symbol names and symbols. */
9248const struct {
9249  const char *name;
9250  lt_ptr_t address;
9251}
9252lt_preloaded_symbols[] =
9253{
9254EOF
9255          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9256          cat <<\EOF >> conftest.$ac_ext
9257  {0, (lt_ptr_t) 0}
9258};
9259
9260#ifdef __cplusplus
9261}
9262#endif
9263EOF
9264          # Now try linking the two files.
9265          mv conftest.$ac_objext conftstm.$ac_objext
9266          lt_save_LIBS="$LIBS"
9267          lt_save_CFLAGS="$CFLAGS"
9268          LIBS="conftstm.$ac_objext"
9269          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9270          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271  (eval $ac_link) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9275            pipe_works=yes
9276          fi
9277          LIBS="$lt_save_LIBS"
9278          CFLAGS="$lt_save_CFLAGS"
9279        else
9280          echo "cannot find nm_test_func in $nlist" >&5
9281        fi
9282      else
9283        echo "cannot find nm_test_var in $nlist" >&5
9284      fi
9285    else
9286      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9287    fi
9288  else
9289    echo "$progname: failed program was:" >&5
9290    cat conftest.$ac_ext >&5
9291  fi
9292  rm -f conftest* conftst*
9293
9294  # Do not use the global_symbol_pipe unless it works.
9295  if test "$pipe_works" = yes; then
9296    break
9297  else
9298    lt_cv_sys_global_symbol_pipe=
9299  fi
9300done
9301
9302fi
9303
9304if test -z "$lt_cv_sys_global_symbol_pipe"; then
9305  lt_cv_sys_global_symbol_to_cdecl=
9306fi
9307if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9308  echo "$as_me:$LINENO: result: failed" >&5
9309echo "${ECHO_T}failed" >&6
9310else
9311  echo "$as_me:$LINENO: result: ok" >&5
9312echo "${ECHO_T}ok" >&6
9313fi
9314
9315echo "$as_me:$LINENO: checking for objdir" >&5
9316echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9317if test "${lt_cv_objdir+set}" = set; then
9318  echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320  rm -f .libs 2>/dev/null
9321mkdir .libs 2>/dev/null
9322if test -d .libs; then
9323  lt_cv_objdir=.libs
9324else
9325  # MS-DOS does not allow filenames that begin with a dot.
9326  lt_cv_objdir=_libs
9327fi
9328rmdir .libs 2>/dev/null
9329fi
9330echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9331echo "${ECHO_T}$lt_cv_objdir" >&6
9332objdir=$lt_cv_objdir
9333
9334
9335
9336
9337
9338case $host_os in
9339aix3*)
9340  # AIX sometimes has problems with the GCC collect2 program.  For some
9341  # reason, if we set the COLLECT_NAMES environment variable, the problems
9342  # vanish in a puff of smoke.
9343  if test "X${COLLECT_NAMES+set}" != Xset; then
9344    COLLECT_NAMES=
9345    export COLLECT_NAMES
9346  fi
9347  ;;
9348esac
9349
9350# Sed substitution that helps us do robust quoting.  It backslashifies
9351# metacharacters that are still active within double-quoted strings.
9352Xsed='sed -e 1s/^X//'
9353sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9354
9355# Same as above, but do not quote variable references.
9356double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9357
9358# Sed substitution to delay expansion of an escaped shell variable in a
9359# double_quote_subst'ed string.
9360delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9361
9362# Sed substitution to avoid accidental globbing in evaled expressions
9363no_glob_subst='s/\*/\\\*/g'
9364
9365# Constants:
9366rm="rm -f"
9367
9368# Global variables:
9369default_ofile=libtool
9370can_build_shared=yes
9371
9372# All known linkers require a `.a' archive for static linking (except MSVC,
9373# which needs '.lib').
9374libext=a
9375ltmain="$ac_aux_dir/ltmain.sh"
9376ofile="$default_ofile"
9377with_gnu_ld="$lt_cv_prog_gnu_ld"
9378
9379if test -n "$ac_tool_prefix"; then
9380  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9381set dummy ${ac_tool_prefix}ar; ac_word=$2
9382echo "$as_me:$LINENO: checking for $ac_word" >&5
9383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9384if test "${ac_cv_prog_AR+set}" = set; then
9385  echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387  if test -n "$AR"; then
9388  ac_cv_prog_AR="$AR" # Let the user override the test.
9389else
9390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391for as_dir in $PATH
9392do
9393  IFS=$as_save_IFS
9394  test -z "$as_dir" && as_dir=.
9395  for ac_exec_ext in '' $ac_executable_extensions; do
9396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9397    ac_cv_prog_AR="${ac_tool_prefix}ar"
9398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9399    break 2
9400  fi
9401done
9402done
9403
9404fi
9405fi
9406AR=$ac_cv_prog_AR
9407if test -n "$AR"; then
9408  echo "$as_me:$LINENO: result: $AR" >&5
9409echo "${ECHO_T}$AR" >&6
9410else
9411  echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
9413fi
9414
9415fi
9416if test -z "$ac_cv_prog_AR"; then
9417  ac_ct_AR=$AR
9418  # Extract the first word of "ar", so it can be a program name with args.
9419set dummy ar; ac_word=$2
9420echo "$as_me:$LINENO: checking for $ac_word" >&5
9421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9422if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9423  echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425  if test -n "$ac_ct_AR"; then
9426  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9427else
9428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429for as_dir in $PATH
9430do
9431  IFS=$as_save_IFS
9432  test -z "$as_dir" && as_dir=.
9433  for ac_exec_ext in '' $ac_executable_extensions; do
9434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9435    ac_cv_prog_ac_ct_AR="ar"
9436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437    break 2
9438  fi
9439done
9440done
9441
9442  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9443fi
9444fi
9445ac_ct_AR=$ac_cv_prog_ac_ct_AR
9446if test -n "$ac_ct_AR"; then
9447  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9448echo "${ECHO_T}$ac_ct_AR" >&6
9449else
9450  echo "$as_me:$LINENO: result: no" >&5
9451echo "${ECHO_T}no" >&6
9452fi
9453
9454  AR=$ac_ct_AR
9455else
9456  AR="$ac_cv_prog_AR"
9457fi
9458
9459if test -n "$ac_tool_prefix"; then
9460  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9461set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9462echo "$as_me:$LINENO: checking for $ac_word" >&5
9463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9464if test "${ac_cv_prog_RANLIB+set}" = set; then
9465  echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467  if test -n "$RANLIB"; then
9468  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473  IFS=$as_save_IFS
9474  test -z "$as_dir" && as_dir=.
9475  for ac_exec_ext in '' $ac_executable_extensions; do
9476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9479    break 2
9480  fi
9481done
9482done
9483
9484fi
9485fi
9486RANLIB=$ac_cv_prog_RANLIB
9487if test -n "$RANLIB"; then
9488  echo "$as_me:$LINENO: result: $RANLIB" >&5
9489echo "${ECHO_T}$RANLIB" >&6
9490else
9491  echo "$as_me:$LINENO: result: no" >&5
9492echo "${ECHO_T}no" >&6
9493fi
9494
9495fi
9496if test -z "$ac_cv_prog_RANLIB"; then
9497  ac_ct_RANLIB=$RANLIB
9498  # Extract the first word of "ranlib", so it can be a program name with args.
9499set dummy ranlib; ac_word=$2
9500echo "$as_me:$LINENO: checking for $ac_word" >&5
9501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9502if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9503  echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505  if test -n "$ac_ct_RANLIB"; then
9506  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9507else
9508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509for as_dir in $PATH
9510do
9511  IFS=$as_save_IFS
9512  test -z "$as_dir" && as_dir=.
9513  for ac_exec_ext in '' $ac_executable_extensions; do
9514  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9515    ac_cv_prog_ac_ct_RANLIB="ranlib"
9516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9517    break 2
9518  fi
9519done
9520done
9521
9522  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9523fi
9524fi
9525ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9526if test -n "$ac_ct_RANLIB"; then
9527  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9528echo "${ECHO_T}$ac_ct_RANLIB" >&6
9529else
9530  echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532fi
9533
9534  RANLIB=$ac_ct_RANLIB
9535else
9536  RANLIB="$ac_cv_prog_RANLIB"
9537fi
9538
9539if test -n "$ac_tool_prefix"; then
9540  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9541set dummy ${ac_tool_prefix}strip; ac_word=$2
9542echo "$as_me:$LINENO: checking for $ac_word" >&5
9543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9544if test "${ac_cv_prog_STRIP+set}" = set; then
9545  echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547  if test -n "$STRIP"; then
9548  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9549else
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553  IFS=$as_save_IFS
9554  test -z "$as_dir" && as_dir=.
9555  for ac_exec_ext in '' $ac_executable_extensions; do
9556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9557    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559    break 2
9560  fi
9561done
9562done
9563
9564fi
9565fi
9566STRIP=$ac_cv_prog_STRIP
9567if test -n "$STRIP"; then
9568  echo "$as_me:$LINENO: result: $STRIP" >&5
9569echo "${ECHO_T}$STRIP" >&6
9570else
9571  echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573fi
9574
9575fi
9576if test -z "$ac_cv_prog_STRIP"; then
9577  ac_ct_STRIP=$STRIP
9578  # Extract the first word of "strip", so it can be a program name with args.
9579set dummy strip; ac_word=$2
9580echo "$as_me:$LINENO: checking for $ac_word" >&5
9581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9582if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9583  echo $ECHO_N "(cached) $ECHO_C" >&6
9584else
9585  if test -n "$ac_ct_STRIP"; then
9586  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591  IFS=$as_save_IFS
9592  test -z "$as_dir" && as_dir=.
9593  for ac_exec_ext in '' $ac_executable_extensions; do
9594  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9595    ac_cv_prog_ac_ct_STRIP="strip"
9596    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597    break 2
9598  fi
9599done
9600done
9601
9602  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9603fi
9604fi
9605ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9606if test -n "$ac_ct_STRIP"; then
9607  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9608echo "${ECHO_T}$ac_ct_STRIP" >&6
9609else
9610  echo "$as_me:$LINENO: result: no" >&5
9611echo "${ECHO_T}no" >&6
9612fi
9613
9614  STRIP=$ac_ct_STRIP
9615else
9616  STRIP="$ac_cv_prog_STRIP"
9617fi
9618
9619
9620old_CC="$CC"
9621old_CFLAGS="$CFLAGS"
9622
9623# Set sane defaults for various variables
9624test -z "$AR" && AR=ar
9625test -z "$AR_FLAGS" && AR_FLAGS=cru
9626test -z "$AS" && AS=as
9627test -z "$CC" && CC=cc
9628test -z "$LTCC" && LTCC=$CC
9629test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9630test -z "$DLLTOOL" && DLLTOOL=dlltool
9631test -z "$LD" && LD=ld
9632test -z "$LN_S" && LN_S="ln -s"
9633test -z "$MAGIC_CMD" && MAGIC_CMD=file
9634test -z "$NM" && NM=nm
9635test -z "$SED" && SED=sed
9636test -z "$OBJDUMP" && OBJDUMP=objdump
9637test -z "$RANLIB" && RANLIB=:
9638test -z "$STRIP" && STRIP=:
9639test -z "$ac_objext" && ac_objext=o
9640
9641# Determine commands to create old-style static archives.
9642old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9643old_postinstall_cmds='chmod 644 $oldlib'
9644old_postuninstall_cmds=
9645
9646if test -n "$RANLIB"; then
9647  case $host_os in
9648  openbsd*)
9649    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9650    ;;
9651  *)
9652    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9653    ;;
9654  esac
9655  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9656fi
9657
9658for cc_temp in $compiler""; do
9659  case $cc_temp in
9660    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9661    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9662    \-*) ;;
9663    *) break;;
9664  esac
9665done
9666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9667
9668
9669# Only perform the check for file, if the check method requires it
9670case $deplibs_check_method in
9671file_magic*)
9672  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9673    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9674echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9675if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9676  echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678  case $MAGIC_CMD in
9679[\\/*] |  ?:[\\/]*)
9680  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9681  ;;
9682*)
9683  lt_save_MAGIC_CMD="$MAGIC_CMD"
9684  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9685  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9686  for ac_dir in $ac_dummy; do
9687    IFS="$lt_save_ifs"
9688    test -z "$ac_dir" && ac_dir=.
9689    if test -f $ac_dir/${ac_tool_prefix}file; then
9690      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9691      if test -n "$file_magic_test_file"; then
9692        case $deplibs_check_method in
9693        "file_magic "*)
9694          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9695          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9696          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9697            $EGREP "$file_magic_regex" > /dev/null; then
9698            :
9699          else
9700            cat <<EOF 1>&2
9701
9702*** Warning: the command libtool uses to detect shared libraries,
9703*** $file_magic_cmd, produces output that libtool cannot recognize.
9704*** The result is that libtool may fail to recognize shared libraries
9705*** as such.  This will affect the creation of libtool libraries that
9706*** depend on shared libraries, but programs linked with such libtool
9707*** libraries will work regardless of this problem.  Nevertheless, you
9708*** may want to report the problem to your system manager and/or to
9709*** bug-libtool@gnu.org
9710
9711EOF
9712          fi ;;
9713        esac
9714      fi
9715      break
9716    fi
9717  done
9718  IFS="$lt_save_ifs"
9719  MAGIC_CMD="$lt_save_MAGIC_CMD"
9720  ;;
9721esac
9722fi
9723
9724MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9725if test -n "$MAGIC_CMD"; then
9726  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9727echo "${ECHO_T}$MAGIC_CMD" >&6
9728else
9729  echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731fi
9732
9733if test -z "$lt_cv_path_MAGIC_CMD"; then
9734  if test -n "$ac_tool_prefix"; then
9735    echo "$as_me:$LINENO: checking for file" >&5
9736echo $ECHO_N "checking for file... $ECHO_C" >&6
9737if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9738  echo $ECHO_N "(cached) $ECHO_C" >&6
9739else
9740  case $MAGIC_CMD in
9741[\\/*] |  ?:[\\/]*)
9742  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9743  ;;
9744*)
9745  lt_save_MAGIC_CMD="$MAGIC_CMD"
9746  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9747  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9748  for ac_dir in $ac_dummy; do
9749    IFS="$lt_save_ifs"
9750    test -z "$ac_dir" && ac_dir=.
9751    if test -f $ac_dir/file; then
9752      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9753      if test -n "$file_magic_test_file"; then
9754        case $deplibs_check_method in
9755        "file_magic "*)
9756          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9757          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9758          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9759            $EGREP "$file_magic_regex" > /dev/null; then
9760            :
9761          else
9762            cat <<EOF 1>&2
9763
9764*** Warning: the command libtool uses to detect shared libraries,
9765*** $file_magic_cmd, produces output that libtool cannot recognize.
9766*** The result is that libtool may fail to recognize shared libraries
9767*** as such.  This will affect the creation of libtool libraries that
9768*** depend on shared libraries, but programs linked with such libtool
9769*** libraries will work regardless of this problem.  Nevertheless, you
9770*** may want to report the problem to your system manager and/or to
9771*** bug-libtool@gnu.org
9772
9773EOF
9774          fi ;;
9775        esac
9776      fi
9777      break
9778    fi
9779  done
9780  IFS="$lt_save_ifs"
9781  MAGIC_CMD="$lt_save_MAGIC_CMD"
9782  ;;
9783esac
9784fi
9785
9786MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9787if test -n "$MAGIC_CMD"; then
9788  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9789echo "${ECHO_T}$MAGIC_CMD" >&6
9790else
9791  echo "$as_me:$LINENO: result: no" >&5
9792echo "${ECHO_T}no" >&6
9793fi
9794
9795  else
9796    MAGIC_CMD=:
9797  fi
9798fi
9799
9800  fi
9801  ;;
9802esac
9803
9804enable_dlopen=no
9805enable_win32_dll=no
9806
9807# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9808if test "${enable_libtool_lock+set}" = set; then
9809  enableval="$enable_libtool_lock"
9810
9811fi;
9812test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9813
9814
9815# Check whether --with-pic or --without-pic was given.
9816if test "${with_pic+set}" = set; then
9817  withval="$with_pic"
9818  pic_mode="$withval"
9819else
9820  pic_mode=default
9821fi;
9822test -z "$pic_mode" && pic_mode=default
9823
9824# Use C for the default configuration in the libtool script
9825tagname=
9826lt_save_CC="$CC"
9827ac_ext=c
9828ac_cpp='$CPP $CPPFLAGS'
9829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831ac_compiler_gnu=$ac_cv_c_compiler_gnu
9832
9833
9834# Source file extension for C test sources.
9835ac_ext=c
9836
9837# Object file extension for compiled C test sources.
9838objext=o
9839objext=$objext
9840
9841# Code to be used in simple compile tests
9842lt_simple_compile_test_code="int some_variable = 0;\n"
9843
9844# Code to be used in simple link tests
9845lt_simple_link_test_code='int main(){return(0);}\n'
9846
9847
9848# If no C compiler was specified, use CC.
9849LTCC=${LTCC-"$CC"}
9850
9851# If no C compiler flags were specified, use CFLAGS.
9852LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9853
9854# Allow CC to be a program name with arguments.
9855compiler=$CC
9856
9857
9858# save warnings/boilerplate of simple test code
9859ac_outfile=conftest.$ac_objext
9860printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9862_lt_compiler_boilerplate=`cat conftest.err`
9863$rm conftest*
9864
9865ac_outfile=conftest.$ac_objext
9866printf "$lt_simple_link_test_code" >conftest.$ac_ext
9867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9868_lt_linker_boilerplate=`cat conftest.err`
9869$rm conftest*
9870
9871
9872## CAVEAT EMPTOR:
9873## There is no encapsulation within the following macros, do not change
9874## the running order or otherwise move them around unless you know exactly
9875## what you are doing...
9876
9877lt_prog_compiler_no_builtin_flag=
9878
9879if test "$GCC" = yes; then
9880  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9881
9882
9883echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9884echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9885if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9886  echo $ECHO_N "(cached) $ECHO_C" >&6
9887else
9888  lt_cv_prog_compiler_rtti_exceptions=no
9889  ac_outfile=conftest.$ac_objext
9890   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9891   lt_compiler_flag="-fno-rtti -fno-exceptions"
9892   # Insert the option either (1) after the last *FLAGS variable, or
9893   # (2) before a word containing "conftest.", or (3) at the end.
9894   # Note that $ac_compile itself does not contain backslashes and begins
9895   # with a dollar sign (not a hyphen), so the echo should work correctly.
9896   # The option is referenced via a variable to avoid confusing sed.
9897   lt_compile=`echo "$ac_compile" | $SED \
9898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9900   -e 's:$: $lt_compiler_flag:'`
9901   (eval echo "\"\$as_me:9901: $lt_compile\"" >&5)
9902   (eval "$lt_compile" 2>conftest.err)
9903   ac_status=$?
9904   cat conftest.err >&5
9905   echo "$as_me:9905: \$? = $ac_status" >&5
9906   if (exit $ac_status) && test -s "$ac_outfile"; then
9907     # The compiler can only warn and ignore the option if not recognized
9908     # So say no if there are warnings other than the usual output.
9909     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9910     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9912       lt_cv_prog_compiler_rtti_exceptions=yes
9913     fi
9914   fi
9915   $rm conftest*
9916
9917fi
9918echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9919echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9920
9921if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9922    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9923else
9924    :
9925fi
9926
9927fi
9928
9929lt_prog_compiler_wl=
9930lt_prog_compiler_pic=
9931lt_prog_compiler_static=
9932
9933echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9934echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9935
9936  if test "$GCC" = yes; then
9937    lt_prog_compiler_wl='-Wl,'
9938    lt_prog_compiler_static='-static'
9939
9940    case $host_os in
9941      aix*)
9942      # All AIX code is PIC.
9943      if test "$host_cpu" = ia64; then
9944        # AIX 5 now supports IA64 processor
9945        lt_prog_compiler_static='-Bstatic'
9946      fi
9947      ;;
9948
9949    amigaos*)
9950      # FIXME: we need at least 68020 code to build shared libraries, but
9951      # adding the `-m68020' flag to GCC prevents building anything better,
9952      # like `-m68040'.
9953      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9954      ;;
9955
9956    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9957      # PIC is the default for these OSes.
9958      ;;
9959
9960    mingw* | pw32* | os2*)
9961      # This hack is so that the source file can tell whether it is being
9962      # built for inclusion in a dll (and should export symbols for example).
9963      lt_prog_compiler_pic='-DDLL_EXPORT'
9964      ;;
9965
9966    darwin* | rhapsody*)
9967      # PIC is the default on this platform
9968      # Common symbols not allowed in MH_DYLIB files
9969      lt_prog_compiler_pic='-fno-common'
9970      ;;
9971
9972    interix3*)
9973      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9974      # Instead, we relocate shared libraries at runtime.
9975      ;;
9976
9977    msdosdjgpp*)
9978      # Just because we use GCC doesn't mean we suddenly get shared libraries
9979      # on systems that don't support them.
9980      lt_prog_compiler_can_build_shared=no
9981      enable_shared=no
9982      ;;
9983
9984    sysv4*MP*)
9985      if test -d /usr/nec; then
9986        lt_prog_compiler_pic=-Kconform_pic
9987      fi
9988      ;;
9989
9990    hpux*)
9991      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9992      # not for PA HP-UX.
9993      case $host_cpu in
9994      hppa*64*|ia64*)
9995        # +Z the default
9996        ;;
9997      *)
9998        lt_prog_compiler_pic='-fPIC'
9999        ;;
10000      esac
10001      ;;
10002
10003    *)
10004      lt_prog_compiler_pic='-fPIC'
10005      ;;
10006    esac
10007  else
10008    # PORTME Check for flag to pass linker flags through the system compiler.
10009    case $host_os in
10010    aix*)
10011      lt_prog_compiler_wl='-Wl,'
10012      if test "$host_cpu" = ia64; then
10013        # AIX 5 now supports IA64 processor
10014        lt_prog_compiler_static='-Bstatic'
10015      else
10016        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10017      fi
10018      ;;
10019      darwin*)
10020        # PIC is the default on this platform
10021        # Common symbols not allowed in MH_DYLIB files
10022       case $cc_basename in
10023         xlc*)
10024         lt_prog_compiler_pic='-qnocommon'
10025         lt_prog_compiler_wl='-Wl,'
10026         ;;
10027       esac
10028       ;;
10029
10030    mingw* | pw32* | os2*)
10031      # This hack is so that the source file can tell whether it is being
10032      # built for inclusion in a dll (and should export symbols for example).
10033      lt_prog_compiler_pic='-DDLL_EXPORT'
10034      ;;
10035
10036    hpux9* | hpux10* | hpux11*)
10037      lt_prog_compiler_wl='-Wl,'
10038      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10039      # not for PA HP-UX.
10040      case $host_cpu in
10041      hppa*64*|ia64*)
10042        # +Z the default
10043        ;;
10044      *)
10045        lt_prog_compiler_pic='+Z'
10046        ;;
10047      esac
10048      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10049      lt_prog_compiler_static='${wl}-a ${wl}archive'
10050      ;;
10051
10052    irix5* | irix6* | nonstopux*)
10053      lt_prog_compiler_wl='-Wl,'
10054      # PIC (with -KPIC) is the default.
10055      lt_prog_compiler_static='-non_shared'
10056      ;;
10057
10058    newsos6)
10059      lt_prog_compiler_pic='-KPIC'
10060      lt_prog_compiler_static='-Bstatic'
10061      ;;
10062
10063    linux*)
10064      case $cc_basename in
10065      icc* | ecc*)
10066        lt_prog_compiler_wl='-Wl,'
10067        lt_prog_compiler_pic='-KPIC'
10068        lt_prog_compiler_static='-static'
10069        ;;
10070      pgcc* | pgf77* | pgf90* | pgf95*)
10071        # Portland Group compilers (*not* the Pentium gcc compiler,
10072        # which looks to be a dead project)
10073        lt_prog_compiler_wl='-Wl,'
10074        lt_prog_compiler_pic='-fpic'
10075        lt_prog_compiler_static='-Bstatic'
10076        ;;
10077      ccc*)
10078        lt_prog_compiler_wl='-Wl,'
10079        # All Alpha code is PIC.
10080        lt_prog_compiler_static='-non_shared'
10081        ;;
10082      esac
10083      ;;
10084
10085    osf3* | osf4* | osf5*)
10086      lt_prog_compiler_wl='-Wl,'
10087      # All OSF/1 code is PIC.
10088      lt_prog_compiler_static='-non_shared'
10089      ;;
10090
10091    solaris*)
10092      lt_prog_compiler_pic='-KPIC'
10093      lt_prog_compiler_static='-Bstatic'
10094      case $cc_basename in
10095      f77* | f90* | f95*)
10096        lt_prog_compiler_wl='-Qoption ld ';;
10097      *)
10098        lt_prog_compiler_wl='-Wl,';;
10099      esac
10100      ;;
10101
10102    sunos4*)
10103      lt_prog_compiler_wl='-Qoption ld '
10104      lt_prog_compiler_pic='-PIC'
10105      lt_prog_compiler_static='-Bstatic'
10106      ;;
10107
10108    sysv4 | sysv4.2uw2* | sysv4.3*)
10109      lt_prog_compiler_wl='-Wl,'
10110      lt_prog_compiler_pic='-KPIC'
10111      lt_prog_compiler_static='-Bstatic'
10112      ;;
10113
10114    sysv4*MP*)
10115      if test -d /usr/nec ;then
10116        lt_prog_compiler_pic='-Kconform_pic'
10117        lt_prog_compiler_static='-Bstatic'
10118      fi
10119      ;;
10120
10121    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10122      lt_prog_compiler_wl='-Wl,'
10123      lt_prog_compiler_pic='-KPIC'
10124      lt_prog_compiler_static='-Bstatic'
10125      ;;
10126
10127    unicos*)
10128      lt_prog_compiler_wl='-Wl,'
10129      lt_prog_compiler_can_build_shared=no
10130      ;;
10131
10132    uts4*)
10133      lt_prog_compiler_pic='-pic'
10134      lt_prog_compiler_static='-Bstatic'
10135      ;;
10136
10137    *)
10138      lt_prog_compiler_can_build_shared=no
10139      ;;
10140    esac
10141  fi
10142
10143echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10144echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10145
10146#
10147# Check to make sure the PIC flag actually works.
10148#
10149if test -n "$lt_prog_compiler_pic"; then
10150
10151echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10153if test "${lt_prog_compiler_pic_works+set}" = set; then
10154  echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156  lt_prog_compiler_pic_works=no
10157  ac_outfile=conftest.$ac_objext
10158   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10159   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10160   # Insert the option either (1) after the last *FLAGS variable, or
10161   # (2) before a word containing "conftest.", or (3) at the end.
10162   # Note that $ac_compile itself does not contain backslashes and begins
10163   # with a dollar sign (not a hyphen), so the echo should work correctly.
10164   # The option is referenced via a variable to avoid confusing sed.
10165   lt_compile=`echo "$ac_compile" | $SED \
10166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10168   -e 's:$: $lt_compiler_flag:'`
10169   (eval echo "\"\$as_me:10169: $lt_compile\"" >&5)
10170   (eval "$lt_compile" 2>conftest.err)
10171   ac_status=$?
10172   cat conftest.err >&5
10173   echo "$as_me:10173: \$? = $ac_status" >&5
10174   if (exit $ac_status) && test -s "$ac_outfile"; then
10175     # The compiler can only warn and ignore the option if not recognized
10176     # So say no if there are warnings other than the usual output.
10177     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10178     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10179     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10180       lt_prog_compiler_pic_works=yes
10181     fi
10182   fi
10183   $rm conftest*
10184
10185fi
10186echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10187echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10188
10189if test x"$lt_prog_compiler_pic_works" = xyes; then
10190    case $lt_prog_compiler_pic in
10191     "" | " "*) ;;
10192     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10193     esac
10194else
10195    lt_prog_compiler_pic=
10196     lt_prog_compiler_can_build_shared=no
10197fi
10198
10199fi
10200case $host_os in
10201  # For platforms which do not support PIC, -DPIC is meaningless:
10202  *djgpp*)
10203    lt_prog_compiler_pic=
10204    ;;
10205  *)
10206    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10207    ;;
10208esac
10209
10210#
10211# Check to make sure the static flag actually works.
10212#
10213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10214echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10216if test "${lt_prog_compiler_static_works+set}" = set; then
10217  echo $ECHO_N "(cached) $ECHO_C" >&6
10218else
10219  lt_prog_compiler_static_works=no
10220   save_LDFLAGS="$LDFLAGS"
10221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10222   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10224     # The linker can only warn and ignore the option if not recognized
10225     # So say no if there are warnings
10226     if test -s conftest.err; then
10227       # Append any errors to the config.log.
10228       cat conftest.err 1>&5
10229       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10231       if diff conftest.exp conftest.er2 >/dev/null; then
10232         lt_prog_compiler_static_works=yes
10233       fi
10234     else
10235       lt_prog_compiler_static_works=yes
10236     fi
10237   fi
10238   $rm conftest*
10239   LDFLAGS="$save_LDFLAGS"
10240
10241fi
10242echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10243echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10244
10245if test x"$lt_prog_compiler_static_works" = xyes; then
10246    :
10247else
10248    lt_prog_compiler_static=
10249fi
10250
10251
10252echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10254if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10255  echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257  lt_cv_prog_compiler_c_o=no
10258   $rm -r conftest 2>/dev/null
10259   mkdir conftest
10260   cd conftest
10261   mkdir out
10262   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10263
10264   lt_compiler_flag="-o out/conftest2.$ac_objext"
10265   # Insert the option either (1) after the last *FLAGS variable, or
10266   # (2) before a word containing "conftest.", or (3) at the end.
10267   # Note that $ac_compile itself does not contain backslashes and begins
10268   # with a dollar sign (not a hyphen), so the echo should work correctly.
10269   lt_compile=`echo "$ac_compile" | $SED \
10270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10272   -e 's:$: $lt_compiler_flag:'`
10273   (eval echo "\"\$as_me:10273: $lt_compile\"" >&5)
10274   (eval "$lt_compile" 2>out/conftest.err)
10275   ac_status=$?
10276   cat out/conftest.err >&5
10277   echo "$as_me:10277: \$? = $ac_status" >&5
10278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10279   then
10280     # The compiler can only warn and ignore the option if not recognized
10281     # So say no if there are warnings
10282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10285       lt_cv_prog_compiler_c_o=yes
10286     fi
10287   fi
10288   chmod u+w . 2>&5
10289   $rm conftest*
10290   # SGI C++ compiler will create directory out/ii_files/ for
10291   # template instantiation
10292   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10293   $rm out/* && rmdir out
10294   cd ..
10295   rmdir conftest
10296   $rm conftest*
10297
10298fi
10299echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10300echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10301
10302
10303hard_links="nottested"
10304if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10305  # do not overwrite the value of need_locks provided by the user
10306  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10308  hard_links=yes
10309  $rm conftest*
10310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10311  touch conftest.a
10312  ln conftest.a conftest.b 2>&5 || hard_links=no
10313  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10314  echo "$as_me:$LINENO: result: $hard_links" >&5
10315echo "${ECHO_T}$hard_links" >&6
10316  if test "$hard_links" = no; then
10317    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10319    need_locks=warn
10320  fi
10321else
10322  need_locks=no
10323fi
10324
10325echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10327
10328  runpath_var=
10329  allow_undefined_flag=
10330  enable_shared_with_static_runtimes=no
10331  archive_cmds=
10332  archive_expsym_cmds=
10333  old_archive_From_new_cmds=
10334  old_archive_from_expsyms_cmds=
10335  export_dynamic_flag_spec=
10336  whole_archive_flag_spec=
10337  thread_safe_flag_spec=
10338  hardcode_libdir_flag_spec=
10339  hardcode_libdir_flag_spec_ld=
10340  hardcode_libdir_separator=
10341  hardcode_direct=no
10342  hardcode_minus_L=no
10343  hardcode_shlibpath_var=unsupported
10344  link_all_deplibs=unknown
10345  hardcode_automatic=no
10346  module_cmds=
10347  module_expsym_cmds=
10348  always_export_symbols=no
10349  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10350  # include_expsyms should be a list of space-separated symbols to be *always*
10351  # included in the symbol list
10352  include_expsyms=
10353  # exclude_expsyms can be an extended regexp of symbols to exclude
10354  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10355  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10356  # as well as any symbol that contains `d'.
10357  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10358  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10359  # platforms (ab)use it in PIC code, but their linkers get confused if
10360  # the symbol is explicitly referenced.  Since portable code cannot
10361  # rely on this symbol name, it's probably fine to never include it in
10362  # preloaded symbol tables.
10363  extract_expsyms_cmds=
10364  # Just being paranoid about ensuring that cc_basename is set.
10365  for cc_temp in $compiler""; do
10366  case $cc_temp in
10367    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10368    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10369    \-*) ;;
10370    *) break;;
10371  esac
10372done
10373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10374
10375  case $host_os in
10376  cygwin* | mingw* | pw32*)
10377    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10378    # When not using gcc, we currently assume that we are using
10379    # Microsoft Visual C++.
10380    if test "$GCC" != yes; then
10381      with_gnu_ld=no
10382    fi
10383    ;;
10384  interix*)
10385    # we just hope/assume this is gcc and not c89 (= MSVC++)
10386    with_gnu_ld=yes
10387    ;;
10388  openbsd*)
10389    with_gnu_ld=no
10390    ;;
10391  esac
10392
10393  ld_shlibs=yes
10394  if test "$with_gnu_ld" = yes; then
10395    # If archive_cmds runs LD, not CC, wlarc should be empty
10396    wlarc='${wl}'
10397
10398    # Set some defaults for GNU ld with shared library support. These
10399    # are reset later if shared libraries are not supported. Putting them
10400    # here allows them to be overridden if necessary.
10401    runpath_var=LD_RUN_PATH
10402    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10403    export_dynamic_flag_spec='${wl}--export-dynamic'
10404    # ancient GNU ld didn't support --whole-archive et. al.
10405    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10406        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10407      else
10408        whole_archive_flag_spec=
10409    fi
10410    supports_anon_versioning=no
10411    case `$LD -v 2>/dev/null` in
10412      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10413      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10414      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10415      *\ 2.11.*) ;; # other 2.11 versions
10416      *) supports_anon_versioning=yes ;;
10417    esac
10418
10419    # See if GNU ld supports shared libraries.
10420    case $host_os in
10421    aix3* | aix4* | aix5*)
10422      # On AIX/PPC, the GNU linker is very broken
10423      if test "$host_cpu" != ia64; then
10424        ld_shlibs=no
10425        cat <<EOF 1>&2
10426
10427*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10428*** to be unable to reliably create shared libraries on AIX.
10429*** Therefore, libtool is disabling shared libraries support.  If you
10430*** really care for shared libraries, you may want to modify your PATH
10431*** so that a non-GNU linker is found, and then restart.
10432
10433EOF
10434      fi
10435      ;;
10436
10437    amigaos*)
10438      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)'
10439      hardcode_libdir_flag_spec='-L$libdir'
10440      hardcode_minus_L=yes
10441
10442      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10443      # that the semantics of dynamic libraries on AmigaOS, at least up
10444      # to version 4, is to share data among multiple programs linked
10445      # with the same dynamic library.  Since this doesn't match the
10446      # behavior of shared libraries on other platforms, we can't use
10447      # them.
10448      ld_shlibs=no
10449      ;;
10450
10451    beos*)
10452      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10453        allow_undefined_flag=unsupported
10454        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10455        # support --undefined.  This deserves some investigation.  FIXME
10456        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10457      else
10458        ld_shlibs=no
10459      fi
10460      ;;
10461
10462    cygwin* | mingw* | pw32*)
10463      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10464      # as there is no search path for DLLs.
10465      hardcode_libdir_flag_spec='-L$libdir'
10466      allow_undefined_flag=unsupported
10467      always_export_symbols=no
10468      enable_shared_with_static_runtimes=yes
10469      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10470
10471      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10472        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10473        # If the export-symbols file already is a .def file (1st line
10474        # is EXPORTS), use it as is; otherwise, prepend...
10475        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10476          cp $export_symbols $output_objdir/$soname.def;
10477        else
10478          echo EXPORTS > $output_objdir/$soname.def;
10479          cat $export_symbols >> $output_objdir/$soname.def;
10480        fi~
10481        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10482      else
10483        ld_shlibs=no
10484      fi
10485      ;;
10486
10487    interix3*)
10488      hardcode_direct=no
10489      hardcode_shlibpath_var=no
10490      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10491      export_dynamic_flag_spec='${wl}-E'
10492      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10493      # Instead, shared libraries are loaded at an image base (0x10000000 by
10494      # default) and relocated if they conflict, which is a slow very memory
10495      # consuming and fragmenting process.  To avoid this, we pick a random,
10496      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10497      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10498      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10499      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'
10500      ;;
10501
10502    linux*)
10503      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10504        tmp_addflag=
10505        case $cc_basename,$host_cpu in
10506        pgcc*)                          # Portland Group C compiler
10507          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'
10508          tmp_addflag=' $pic_flag'
10509          ;;
10510        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10511          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'
10512          tmp_addflag=' $pic_flag -Mnomain' ;;
10513        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10514          tmp_addflag=' -i_dynamic' ;;
10515        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10516          tmp_addflag=' -i_dynamic -nofor_main' ;;
10517        ifc* | ifort*)                  # Intel Fortran compiler
10518          tmp_addflag=' -nofor_main' ;;
10519        esac
10520        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10521
10522        if test $supports_anon_versioning = yes; then
10523          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10524  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10525  $echo "local: *; };" >> $output_objdir/$libname.ver~
10526          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10527        fi
10528      else
10529        ld_shlibs=no
10530      fi
10531      ;;
10532
10533    netbsd*)
10534      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10535        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10536        wlarc=
10537      else
10538        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10539        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10540      fi
10541      ;;
10542
10543    solaris*)
10544      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10545        ld_shlibs=no
10546        cat <<EOF 1>&2
10547
10548*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10549*** create shared libraries on Solaris systems.  Therefore, libtool
10550*** is disabling shared libraries support.  We urge you to upgrade GNU
10551*** binutils to release 2.9.1 or newer.  Another option is to modify
10552*** your PATH or compiler configuration so that the native linker is
10553*** used, and then restart.
10554
10555EOF
10556      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10557        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10559      else
10560        ld_shlibs=no
10561      fi
10562      ;;
10563
10564    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10565      case `$LD -v 2>&1` in
10566        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10567        ld_shlibs=no
10568        cat <<_LT_EOF 1>&2
10569
10570*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10571*** reliably create shared libraries on SCO systems.  Therefore, libtool
10572*** is disabling shared libraries support.  We urge you to upgrade GNU
10573*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10574*** your PATH or compiler configuration so that the native linker is
10575*** used, and then restart.
10576
10577_LT_EOF
10578        ;;
10579        *)
10580          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10581            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10582            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10583            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10584          else
10585            ld_shlibs=no
10586          fi
10587        ;;
10588      esac
10589      ;;
10590
10591    sunos4*)
10592      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10593      wlarc=
10594      hardcode_direct=yes
10595      hardcode_shlibpath_var=no
10596      ;;
10597
10598    *)
10599      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10600        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10601        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10602      else
10603        ld_shlibs=no
10604      fi
10605      ;;
10606    esac
10607
10608    if test "$ld_shlibs" = no; then
10609      runpath_var=
10610      hardcode_libdir_flag_spec=
10611      export_dynamic_flag_spec=
10612      whole_archive_flag_spec=
10613    fi
10614  else
10615    # PORTME fill in a description of your system's linker (not GNU ld)
10616    case $host_os in
10617    aix3*)
10618      allow_undefined_flag=unsupported
10619      always_export_symbols=yes
10620      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'
10621      # Note: this linker hardcodes the directories in LIBPATH if there
10622      # are no directories specified by -L.
10623      hardcode_minus_L=yes
10624      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10625        # Neither direct hardcoding nor static linking is supported with a
10626        # broken collect2.
10627        hardcode_direct=unsupported
10628      fi
10629      ;;
10630
10631    aix4* | aix5*)
10632      if test "$host_cpu" = ia64; then
10633        # On IA64, the linker does run time linking by default, so we don't
10634        # have to do anything special.
10635        aix_use_runtimelinking=no
10636        exp_sym_flag='-Bexport'
10637        no_entry_flag=""
10638      else
10639        # If we're using GNU nm, then we don't want the "-C" option.
10640        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10641        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10642          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'
10643        else
10644          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'
10645        fi
10646        aix_use_runtimelinking=no
10647
10648        # Test if we are trying to use run time linking or normal
10649        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10650        # need to do runtime linking.
10651        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10652          for ld_flag in $LDFLAGS; do
10653          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10654            aix_use_runtimelinking=yes
10655            break
10656          fi
10657          done
10658          ;;
10659        esac
10660
10661        exp_sym_flag='-bexport'
10662        no_entry_flag='-bnoentry'
10663      fi
10664
10665      # When large executables or shared objects are built, AIX ld can
10666      # have problems creating the table of contents.  If linking a library
10667      # or program results in "error TOC overflow" add -mminimal-toc to
10668      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10669      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10670
10671      archive_cmds=''
10672      hardcode_direct=yes
10673      hardcode_libdir_separator=':'
10674      link_all_deplibs=yes
10675
10676      if test "$GCC" = yes; then
10677        case $host_os in aix4.[012]|aix4.[012].*)
10678        # We only want to do this on AIX 4.2 and lower, the check
10679        # below for broken collect2 doesn't work under 4.3+
10680          collect2name=`${CC} -print-prog-name=collect2`
10681          if test -f "$collect2name" && \
10682           strings "$collect2name" | grep resolve_lib_name >/dev/null
10683          then
10684          # We have reworked collect2
10685          hardcode_direct=yes
10686          else
10687          # We have old collect2
10688          hardcode_direct=unsupported
10689          # It fails to find uninstalled libraries when the uninstalled
10690          # path is not listed in the libpath.  Setting hardcode_minus_L
10691          # to unsupported forces relinking
10692          hardcode_minus_L=yes
10693          hardcode_libdir_flag_spec='-L$libdir'
10694          hardcode_libdir_separator=
10695          fi
10696          ;;
10697        esac
10698        shared_flag='-shared'
10699        if test "$aix_use_runtimelinking" = yes; then
10700          shared_flag="$shared_flag "'${wl}-G'
10701        fi
10702      else
10703        # not using gcc
10704        if test "$host_cpu" = ia64; then
10705        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10706        # chokes on -Wl,-G. The following line is correct:
10707          shared_flag='-G'
10708        else
10709          if test "$aix_use_runtimelinking" = yes; then
10710            shared_flag='${wl}-G'
10711          else
10712            shared_flag='${wl}-bM:SRE'
10713          fi
10714        fi
10715      fi
10716
10717      # It seems that -bexpall does not export symbols beginning with
10718      # underscore (_), so it is better to generate a list of symbols to export.
10719      always_export_symbols=yes
10720      if test "$aix_use_runtimelinking" = yes; then
10721        # Warning - without using the other runtime loading flags (-brtl),
10722        # -berok will link without error, but may produce a broken library.
10723        allow_undefined_flag='-berok'
10724       # Determine the default libpath from the value encoded in an empty executable.
10725       cat >conftest.$ac_ext <<_ACEOF
10726/* confdefs.h.  */
10727_ACEOF
10728cat confdefs.h >>conftest.$ac_ext
10729cat >>conftest.$ac_ext <<_ACEOF
10730/* end confdefs.h.  */
10731
10732#ifdef F77_DUMMY_MAIN
10733
10734#  ifdef __cplusplus
10735     extern "C"
10736#  endif
10737   int F77_DUMMY_MAIN() { return 1; }
10738
10739#endif
10740int
10741main ()
10742{
10743
10744  ;
10745  return 0;
10746}
10747_ACEOF
10748rm -f conftest.$ac_objext conftest$ac_exeext
10749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10750  (eval $ac_link) 2>conftest.er1
10751  ac_status=$?
10752  grep -v '^ *+' conftest.er1 >conftest.err
10753  rm -f conftest.er1
10754  cat conftest.err >&5
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); } &&
10757         { ac_try='test -z "$ac_c_werror_flag"
10758                         || test ! -s conftest.err'
10759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760  (eval $ac_try) 2>&5
10761  ac_status=$?
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); }; } &&
10764         { ac_try='test -s conftest$ac_exeext'
10765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766  (eval $ac_try) 2>&5
10767  ac_status=$?
10768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769  (exit $ac_status); }; }; then
10770
10771aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10772}'`
10773# Check for a 64-bit object if we didn't find anything.
10774if 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; }
10775}'`; fi
10776else
10777  echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
10780fi
10781rm -f conftest.err conftest.$ac_objext \
10782      conftest$ac_exeext conftest.$ac_ext
10783if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10784
10785       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10786        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"
10787       else
10788        if test "$host_cpu" = ia64; then
10789          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10790          allow_undefined_flag="-z nodefs"
10791          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"
10792        else
10793         # Determine the default libpath from the value encoded in an empty executable.
10794         cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h.  */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h.  */
10800
10801#ifdef F77_DUMMY_MAIN
10802
10803#  ifdef __cplusplus
10804     extern "C"
10805#  endif
10806   int F77_DUMMY_MAIN() { return 1; }
10807
10808#endif
10809int
10810main ()
10811{
10812
10813  ;
10814  return 0;
10815}
10816_ACEOF
10817rm -f conftest.$ac_objext conftest$ac_exeext
10818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10819  (eval $ac_link) 2>conftest.er1
10820  ac_status=$?
10821  grep -v '^ *+' conftest.er1 >conftest.err
10822  rm -f conftest.er1
10823  cat conftest.err >&5
10824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825  (exit $ac_status); } &&
10826         { ac_try='test -z "$ac_c_werror_flag"
10827                         || test ! -s conftest.err'
10828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829  (eval $ac_try) 2>&5
10830  ac_status=$?
10831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832  (exit $ac_status); }; } &&
10833         { ac_try='test -s conftest$ac_exeext'
10834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835  (eval $ac_try) 2>&5
10836  ac_status=$?
10837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838  (exit $ac_status); }; }; then
10839
10840aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10841}'`
10842# Check for a 64-bit object if we didn't find anything.
10843if 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; }
10844}'`; fi
10845else
10846  echo "$as_me: failed program was:" >&5
10847sed 's/^/| /' conftest.$ac_ext >&5
10848
10849fi
10850rm -f conftest.err conftest.$ac_objext \
10851      conftest$ac_exeext conftest.$ac_ext
10852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10853
10854         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10855          # Warning - without using the other run time loading flags,
10856          # -berok will link without error, but may produce a broken library.
10857          no_undefined_flag=' ${wl}-bernotok'
10858          allow_undefined_flag=' ${wl}-berok'
10859          # Exported symbols can be pulled into shared objects from archives
10860          whole_archive_flag_spec='$convenience'
10861          archive_cmds_need_lc=yes
10862          # This is similar to how AIX traditionally builds its shared libraries.