source: ThirdParty/FilterSQP/trunk/configure @ 2882

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

Re-running autotools

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