source: ThirdParty/FilterSQP/stable/1.2/configure @ 2386

Last change on this file since 2386 was 2386, checked in by stefan, 8 years ago

temporarily committing release candidate

File size: 770.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.2.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.2.0'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.2.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 1.2.0 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 1.2.0:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-filtersqp
1080                          compile project FilterSQP with debug compiler flags
1081  --enable-doscompile     Under Cygwin, compile so that executables run under
1082                          DOS. Set to mingw to use gcc/g++/ld with
1083                          -mno-cygwin. Set to msvc to use cl/link (or
1084                          icl/link). Default when mentioned: mingw. Default
1085                          when not mentioned: disabled.
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --disable-dependency-tracking  speeds up one-time build
1088  --enable-dependency-tracking   do not reject slow dependency extractors
1089  --enable-maintainer-mode  enable make rules and dependencies not useful
1090                          (and sometimes confusing) to the casual installer
1091  --enable-static[=PKGS]
1092                          build static libraries [default=no]
1093  --enable-shared[=PKGS]
1094                          build shared libraries [default=yes]
1095  --enable-fast-install[=PKGS]
1096                          optimize for fast installation [default=yes]
1097  --disable-libtool-lock  avoid locking (might break parallel builds)
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-filtersqp-verbosity
1103                          specify the debug verbosity level for project
1104                          FilterSQP
1105  --with-filtersqp-checklevel
1106                          specify the sanity check level for project FilterSQP
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  ADD_FFLAGS  Additional Fortran compiler options
1128  DBG_FFLAGS  Debug Fortran compiler options
1129  OPT_FFLAGS  Optimize Fortran compiler options
1130  F77         Fortran 77 compiler command
1131  FFLAGS      Fortran 77 compiler flags
1132  MPIF77      Fortran MPI Compiler
1133  PKG_CONFIG  path to pkg-config utility
1134  CPP         C preprocessor
1135  CXX         C++ compiler command
1136  CXXFLAGS    C++ compiler flags
1137  CXXCPP      C++ preprocessor
1138
1139Use these variables to override the choices made by `configure' or to help
1140it to find libraries and programs with nonstandard names/locations.
1141
1142Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1143_ACEOF
1144fi
1145
1146if test "$ac_init_help" = "recursive"; then
1147  # If there are subdirs, report their specific --help.
1148  ac_popdir=`pwd`
1149  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1150    test -d $ac_dir || continue
1151    ac_builddir=.
1152
1153if test "$ac_dir" != .; then
1154  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1155  # A "../" for each directory in $ac_dir_suffix.
1156  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1157else
1158  ac_dir_suffix= ac_top_builddir=
1159fi
1160
1161case $srcdir in
1162  .)  # No --srcdir option.  We are building in place.
1163    ac_srcdir=.
1164    if test -z "$ac_top_builddir"; then
1165       ac_top_srcdir=.
1166    else
1167       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1168    fi ;;
1169  [\\/]* | ?:[\\/]* )  # Absolute path.
1170    ac_srcdir=$srcdir$ac_dir_suffix;
1171    ac_top_srcdir=$srcdir ;;
1172  *) # Relative path.
1173    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1174    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1175esac
1176
1177# Do not use `cd foo && pwd` to compute absolute paths, because
1178# the directories may not exist.
1179case `pwd` in
1180.) ac_abs_builddir="$ac_dir";;
1181*)
1182  case "$ac_dir" in
1183  .) ac_abs_builddir=`pwd`;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1185  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_top_builddir=${ac_top_builddir}.;;
1190*)
1191  case ${ac_top_builddir}. in
1192  .) ac_abs_top_builddir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1194  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_srcdir=$ac_srcdir;;
1199*)
1200  case $ac_srcdir in
1201  .) ac_abs_srcdir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1203  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_top_srcdir=$ac_top_srcdir;;
1208*)
1209  case $ac_top_srcdir in
1210  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1212  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1213  esac;;
1214esac
1215
1216    cd $ac_dir
1217    # Check for guested configure; otherwise get Cygnus style configure.
1218    if test -f $ac_srcdir/configure.gnu; then
1219      echo
1220      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1221    elif test -f $ac_srcdir/configure; then
1222      echo
1223      $SHELL $ac_srcdir/configure  --help=recursive
1224    elif test -f $ac_srcdir/configure.ac ||
1225           test -f $ac_srcdir/configure.in; then
1226      echo
1227      $ac_configure --help
1228    else
1229      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1230    fi
1231    cd $ac_popdir
1232  done
1233fi
1234
1235test -n "$ac_init_help" && exit 0
1236if $ac_init_version; then
1237  cat <<\_ACEOF
1238ThirdPartyFilterSQP configure 1.2.0
1239generated by GNU Autoconf 2.59
1240
1241Copyright (C) 2003 Free Software Foundation, Inc.
1242This configure script is free software; the Free Software Foundation
1243gives unlimited permission to copy, distribute and modify it.
1244
1245
1246Copyright 2006 International Business Machines and others.
1247All Rights Reserved.
1248This file is part of the open source package Coin which is distributed
1249under the Eclipse Public License.
1250_ACEOF
1251  exit 0
1252fi
1253exec 5>config.log
1254cat >&5 <<_ACEOF
1255This file contains any messages produced by compilers while
1256running configure, to aid debugging if configure makes a mistake.
1257
1258It was created by ThirdPartyFilterSQP $as_me 1.2.0, which was
1259generated by GNU Autoconf 2.59.  Invocation command line was
1260
1261  $ $0 $@
1262
1263_ACEOF
1264{
1265cat <<_ASUNAME
1266## --------- ##
1267## Platform. ##
1268## --------- ##
1269
1270hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1271uname -m = `(uname -m) 2>/dev/null || echo unknown`
1272uname -r = `(uname -r) 2>/dev/null || echo unknown`
1273uname -s = `(uname -s) 2>/dev/null || echo unknown`
1274uname -v = `(uname -v) 2>/dev/null || echo unknown`
1275
1276/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1277/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1278
1279/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1280/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1281/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1282hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1283/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1284/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1285/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1286
1287_ASUNAME
1288
1289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290for as_dir in $PATH
1291do
1292  IFS=$as_save_IFS
1293  test -z "$as_dir" && as_dir=.
1294  echo "PATH: $as_dir"
1295done
1296
1297} >&5
1298
1299cat >&5 <<_ACEOF
1300
1301
1302## ----------- ##
1303## Core tests. ##
1304## ----------- ##
1305
1306_ACEOF
1307
1308
1309# Keep a trace of the command line.
1310# Strip out --no-create and --no-recursion so they do not pile up.
1311# Strip out --silent because we don't want to record it for future runs.
1312# Also quote any args containing shell meta-characters.
1313# Make two passes to allow for proper duplicate-argument suppression.
1314ac_configure_args=
1315ac_configure_args0=
1316ac_configure_args1=
1317ac_sep=
1318ac_must_keep_next=false
1319for ac_pass in 1 2
1320do
1321  for ac_arg
1322  do
1323    case $ac_arg in
1324    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1325    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326    | -silent | --silent | --silen | --sile | --sil)
1327      continue ;;
1328    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1329      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1330    esac
1331    case $ac_pass in
1332    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1333    2)
1334      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1335      if test $ac_must_keep_next = true; then
1336        ac_must_keep_next=false # Got value, back to normal.
1337      else
1338        case $ac_arg in
1339          *=* | --config-cache | -C | -disable-* | --disable-* \
1340          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1341          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1342          | -with-* | --with-* | -without-* | --without-* | --x)
1343            case "$ac_configure_args0 " in
1344              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1345            esac
1346            ;;
1347          -* ) ac_must_keep_next=true ;;
1348        esac
1349      fi
1350      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1351      # Get rid of the leading space.
1352      ac_sep=" "
1353      ;;
1354    esac
1355  done
1356done
1357$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1358$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1359
1360# When interrupted or exit'd, cleanup temporary files, and complete
1361# config.log.  We remove comments because anyway the quotes in there
1362# would cause problems or look ugly.
1363# WARNING: Be sure not to use single quotes in there, as some shells,
1364# such as our DU 5.0 friend, will then `close' the trap.
1365trap 'exit_status=$?
1366  # Save into config.log some information that might help in debugging.
1367  {
1368    echo
1369
1370    cat <<\_ASBOX
1371## ---------------- ##
1372## Cache variables. ##
1373## ---------------- ##
1374_ASBOX
1375    echo
1376    # The following way of writing the cache mishandles newlines in values,
1377{
1378  (set) 2>&1 |
1379    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1380    *ac_space=\ *)
1381      sed -n \
1382        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1383          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384      ;;
1385    *)
1386      sed -n \
1387        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1388      ;;
1389    esac;
1390}
1391    echo
1392
1393    cat <<\_ASBOX
1394## ----------------- ##
1395## Output variables. ##
1396## ----------------- ##
1397_ASBOX
1398    echo
1399    for ac_var in $ac_subst_vars
1400    do
1401      eval ac_val=$`echo $ac_var`
1402      echo "$ac_var='"'"'$ac_val'"'"'"
1403    done | sort
1404    echo
1405
1406    if test -n "$ac_subst_files"; then
1407      cat <<\_ASBOX
1408## ------------- ##
1409## Output files. ##
1410## ------------- ##
1411_ASBOX
1412      echo
1413      for ac_var in $ac_subst_files
1414      do
1415        eval ac_val=$`echo $ac_var`
1416        echo "$ac_var='"'"'$ac_val'"'"'"
1417      done | sort
1418      echo
1419    fi
1420
1421    if test -s confdefs.h; then
1422      cat <<\_ASBOX
1423## ----------- ##
1424## confdefs.h. ##
1425## ----------- ##
1426_ASBOX
1427      echo
1428      sed "/^$/d" confdefs.h | sort
1429      echo
1430    fi
1431    test "$ac_signal" != 0 &&
1432      echo "$as_me: caught signal $ac_signal"
1433    echo "$as_me: exit $exit_status"
1434  } >&5
1435  rm -f core *.core &&
1436  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1437    exit $exit_status
1438     ' 0
1439for ac_signal in 1 2 13 15; do
1440  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1441done
1442ac_signal=0
1443
1444# confdefs.h avoids OS command line length limits that DEFS can exceed.
1445rm -rf conftest* confdefs.h
1446# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1447echo >confdefs.h
1448
1449# Predefined preprocessor variables.
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_NAME "$PACKAGE_NAME"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_VERSION "$PACKAGE_VERSION"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_STRING "$PACKAGE_STRING"
1468_ACEOF
1469
1470
1471cat >>confdefs.h <<_ACEOF
1472#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1473_ACEOF
1474
1475
1476# Let the site file select an alternate cache file if it wants to.
1477# Prefer explicitly selected file to automatically selected ones.
1478if test -z "$CONFIG_SITE"; then
1479  if test "x$prefix" != xNONE; then
1480    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1481  else
1482    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1483  fi
1484fi
1485for ac_site_file in $CONFIG_SITE; do
1486  if test -r "$ac_site_file"; then
1487    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1488echo "$as_me: loading site script $ac_site_file" >&6;}
1489    sed 's/^/| /' "$ac_site_file" >&5
1490    . "$ac_site_file"
1491  fi
1492done
1493
1494if test -r "$cache_file"; then
1495  # Some versions of bash will fail to source /dev/null (special
1496  # files actually), so we avoid doing that.
1497  if test -f "$cache_file"; then
1498    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1499echo "$as_me: loading cache $cache_file" >&6;}
1500    case $cache_file in
1501      [\\/]* | ?:[\\/]* ) . $cache_file;;
1502      *)                      . ./$cache_file;;
1503    esac
1504  fi
1505else
1506  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1507echo "$as_me: creating cache $cache_file" >&6;}
1508  >$cache_file
1509fi
1510
1511# Check that the precious variables saved in the cache have kept the same
1512# value.
1513ac_cache_corrupted=false
1514for ac_var in `(set) 2>&1 |
1515               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1516  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1517  eval ac_new_set=\$ac_env_${ac_var}_set
1518  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1519  eval ac_new_val="\$ac_env_${ac_var}_value"
1520  case $ac_old_set,$ac_new_set in
1521    set,)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,set)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,);;
1530    *)
1531      if test "x$ac_old_val" != "x$ac_new_val"; then
1532        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1533echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1534        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1535echo "$as_me:   former value:  $ac_old_val" >&2;}
1536        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1537echo "$as_me:   current value: $ac_new_val" >&2;}
1538        ac_cache_corrupted=:
1539      fi;;
1540  esac
1541  # Pass precious variables to config.status.
1542  if test "$ac_new_set" = set; then
1543    case $ac_new_val in
1544    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1545      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1546    *) ac_arg=$ac_var=$ac_new_val ;;
1547    esac
1548    case " $ac_configure_args " in
1549      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1550      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1551    esac
1552  fi
1553done
1554if $ac_cache_corrupted; then
1555  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1556echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1557  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1558echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1559   { (exit 1); exit 1; }; }
1560fi
1561
1562ac_ext=c
1563ac_cpp='$CPP $CPPFLAGS'
1564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1566ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597# List one file in the package so that the configure script can test
1598# whether the package is actually there
1599
1600
1601# Where should everything be installed by default?  Here, we want it
1602# to be installed directly in 'bin', 'lib', 'include' subdirectories
1603# of the directory where configure is run.  The default would be
1604# /usr/local.
1605
1606
1607
1608# As backup, we make sure we don't loose an FLIBS if it has been set
1609# by the user
1610save_FLIBS="$FLIBS"
1611
1612# A useful makefile conditional that is always false
1613
1614
1615if false; then
1616  ALWAYS_FALSE_TRUE=
1617  ALWAYS_FALSE_FALSE='#'
1618else
1619  ALWAYS_FALSE_TRUE='#'
1620  ALWAYS_FALSE_FALSE=
1621fi
1622
1623
1624# We set the following variable so that we know later in AC_COIN_FINALIZE
1625# that we are in a project main directory
1626coin_projectdir=yes
1627
1628# Set the project's version numbers
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1633_ACEOF
1634
1635
1636  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1637  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1638  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1639  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1640  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1641  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1642
1643cat >>confdefs.h <<_ACEOF
1644#define FILTERSQP_VERSION_MAJOR $coin_majorver
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define FILTERSQP_VERSION_MINOR $coin_minorver
1650_ACEOF
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define FILTERSQP_VERSION_RELEASE $coin_releasever
1655_ACEOF
1656
1657
1658  # We use the following variable to have a string with the upper case
1659  # version of the project name
1660  COIN_PRJCT=FILTERSQP
1661
1662  # Set the project's SVN revision number. The complicated sed expression
1663  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1664  # as a single number.
1665  # Extract the first word of "svnversion", so it can be a program name with args.
1666set dummy svnversion; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_have_svnversion+set}" = set; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  if test -n "$have_svnversion"; then
1673  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1674else
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678  IFS=$as_save_IFS
1679  test -z "$as_dir" && as_dir=.
1680  for ac_exec_ext in '' $ac_executable_extensions; do
1681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682    ac_cv_prog_have_svnversion="yes"
1683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684    break 2
1685  fi
1686done
1687done
1688
1689  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1690fi
1691fi
1692have_svnversion=$ac_cv_prog_have_svnversion
1693if test -n "$have_svnversion"; then
1694  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1695echo "${ECHO_T}$have_svnversion" >&6
1696else
1697  echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
1700
1701  if test "x$have_svnversion" = xyes; then
1702
1703    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1704    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1705      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1706
1707cat >>confdefs.h <<_ACEOF
1708#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1709_ACEOF
1710
1711    fi
1712  fi
1713
1714
1715
1716# Capture libtool library version, if given.
1717coin_libversion=3:0:2
1718
1719
1720
1721
1722#############################################################################
1723#                         Standard build tool stuff                         #
1724#############################################################################
1725
1726# Get the system type
1727ac_aux_dir=
1728for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1729  if test -f $ac_dir/install-sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install-sh -c"
1732    break
1733  elif test -f $ac_dir/install.sh; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/install.sh -c"
1736    break
1737  elif test -f $ac_dir/shtool; then
1738    ac_aux_dir=$ac_dir
1739    ac_install_sh="$ac_aux_dir/shtool install -c"
1740    break
1741  fi
1742done
1743if test -z "$ac_aux_dir"; then
1744  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1745echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1746   { (exit 1); exit 1; }; }
1747fi
1748ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1749ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1750ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1751
1752# Make sure we can run config.sub.
1753$ac_config_sub sun4 >/dev/null 2>&1 ||
1754  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1755echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1756   { (exit 1); exit 1; }; }
1757
1758echo "$as_me:$LINENO: checking build system type" >&5
1759echo $ECHO_N "checking build system type... $ECHO_C" >&6
1760if test "${ac_cv_build+set}" = set; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  ac_cv_build_alias=$build_alias
1764test -z "$ac_cv_build_alias" &&
1765  ac_cv_build_alias=`$ac_config_guess`
1766test -z "$ac_cv_build_alias" &&
1767  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1768echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1769   { (exit 1); exit 1; }; }
1770ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1771  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1772echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1773   { (exit 1); exit 1; }; }
1774
1775fi
1776echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1777echo "${ECHO_T}$ac_cv_build" >&6
1778build=$ac_cv_build
1779build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1782
1783
1784
1785# Check if user wants to produce debugging code
1786
1787echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1788echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1789
1790# Check whether --enable-debug or --disable-debug was given.
1791if test "${enable_debug+set}" = set; then
1792  enableval="$enable_debug"
1793  case "${enableval}" in
1794   yes) coin_debug_compile=true
1795        if test "${enable_shared+set}" = set; then :; else
1796          enable_shared=no
1797        fi
1798        ;;
1799   no)  coin_debug_compile=false
1800        ;;
1801   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1803   { (exit 1); exit 1; }; }
1804        ;;
1805esac
1806else
1807  coin_debug_compile=false
1808fi;
1809
1810# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1811if test "${enable_debug_filtersqp+set}" = set; then
1812  enableval="$enable_debug_filtersqp"
1813  case "${enableval}" in
1814    yes) coin_debug_compile=true
1815         ;;
1816    no)  coin_debug_compile=false
1817         ;;
1818    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1819echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1820   { (exit 1); exit 1; }; }
1821         ;;
1822 esac
1823else
1824  :
1825fi;
1826
1827 # m4_ifvaln([FilterSQP],
1828
1829if test $coin_debug_compile = true; then
1830  echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837
1838# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1839if test "${with_filtersqp_verbosity+set}" = set; then
1840  withval="$with_filtersqp_verbosity"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_filtersqp_verbosity=$withval
1845else
1846  coin_filtersqp_verbosity=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1851_ACEOF
1852
1853
1854
1855# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1856if test "${with_filtersqp_checklevel+set}" = set; then
1857  withval="$with_filtersqp_checklevel"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_filtersqp_checklevel=$withval
1862else
1863  coin_filtersqp_checklevel=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1868_ACEOF
1869
1870
1871 # m4_ifvaln([FilterSQP],
1872
1873
1874
1875# Get the name of the Fortran compiler and appropriate compiler options
1876case $build in
1877  *-mingw*)
1878    if test "${LD+set}" = set; then :; else
1879      LD=link
1880    fi
1881    ;;
1882 esac
1883 case $enable_doscompile in
1884   msvc)
1885     if test "x${LD+set}" = xset; then :; else
1886       LD=link
1887     fi
1888     ;;
1889 esac
1890
1891
1892 # Check whether --enable-doscompile or --disable-doscompile was given.
1893if test "${enable_doscompile+set}" = set; then
1894  enableval="$enable_doscompile"
1895  if test "$enable_doscompile" != no; then
1896     case $build in
1897       *-cygwin* | *-mingw*) ;;
1898       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1899echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1900   { (exit 1); exit 1; }; } ;;
1901     esac
1902   fi
1903else
1904  enable_doscompile=no
1905fi;
1906 case "$enable_doscompile" in
1907   mingw)
1908     case $build in
1909       *-mingw*) enable_doscompile=no ;;
1910     esac
1911     ;;
1912   msvc|no) ;;
1913   yes) enable_doscompile=mingw ;;
1914   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1915                    Try configure --help=recursive." >&5
1916echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1917                    Try configure --help=recursive." >&2;}
1918   { (exit 1); exit 1; }; }
1919      ;;
1920  esac
1921  if test "$enable_doscompile" != no ; then
1922    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1923echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1924  fi
1925
1926
1927
1928
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936# For consistency, we set the C compiler to the same value of the C++
1937# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1938if test x"$CXX" != x; then
1939  case "$CXX" in
1940    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1941      if test x"$CC" = x; then
1942        CC="$CXX"
1943        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1944echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1945      fi
1946      ;;
1947  esac
1948fi
1949
1950
1951
1952
1953
1954
1955coin_has_cc=yes
1956
1957save_cflags="$CFLAGS"
1958
1959# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1960# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1961# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1962# compiler. In this case, put cc after gcc.
1963
1964case $build in
1965  *-cygwin* | *-mingw*)
1966             if test "$enable_doscompile" = msvc ; then
1967               comps="icl cl"
1968             else
1969               comps="gcc cl"
1970             fi ;;
1971  *-*-solaris*)
1972             # Extract the first word of "cc", so it can be a program name with args.
1973set dummy cc; ac_word=$2
1974echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  if test -n "$sol_cc_compiler"; then
1980  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1981else
1982  ac_prog_rejected=no
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988  for ac_exec_ext in '' $ac_executable_extensions; do
1989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991       ac_prog_rejected=yes
1992       continue
1993     fi
1994    ac_cv_prog_sol_cc_compiler="cc"
1995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999done
2000
2001if test $ac_prog_rejected = yes; then
2002  # We found a bogon in the path, so make sure we never use it.
2003  set dummy $ac_cv_prog_sol_cc_compiler
2004  shift
2005  if test $# != 0; then
2006    # We chose a different compiler from the bogus one.
2007    # However, it has the same basename, so the bogon will be chosen
2008    # first if we set sol_cc_compiler to just the basename; use the full file name.
2009    shift
2010    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2011  fi
2012fi
2013fi
2014fi
2015sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2016if test -n "$sol_cc_compiler"; then
2017  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2018echo "${ECHO_T}$sol_cc_compiler" >&6
2019else
2020  echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024             if test "$sol_cc_compiler" = "cc" ; then
2025               comps="cc xlc gcc pgcc icc"
2026             else
2027               comps="xlc gcc pgcc icc cc"
2028             fi
2029             ;;
2030  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2031  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2032  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2033esac
2034
2035# We delete the cached value, since the test might not have been
2036# performed with our choice of compilers earlier
2037$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2038# AC_MSG_NOTICE([C compiler candidates: $comps])
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044if test -n "$ac_tool_prefix"; then
2045  for ac_prog in $comps
2046  do
2047    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049echo "$as_me:$LINENO: checking for $ac_word" >&5
2050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051if test "${ac_cv_prog_CC+set}" = set; then
2052  echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054  if test -n "$CC"; then
2055  ac_cv_prog_CC="$CC" # Let the user override the test.
2056else
2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058for as_dir in $PATH
2059do
2060  IFS=$as_save_IFS
2061  test -z "$as_dir" && as_dir=.
2062  for ac_exec_ext in '' $ac_executable_extensions; do
2063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066    break 2
2067  fi
2068done
2069done
2070
2071fi
2072fi
2073CC=$ac_cv_prog_CC
2074if test -n "$CC"; then
2075  echo "$as_me:$LINENO: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6
2077else
2078  echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6
2080fi
2081
2082    test -n "$CC" && break
2083  done
2084fi
2085if test -z "$CC"; then
2086  ac_ct_CC=$CC
2087  for ac_prog in $comps
2088do
2089  # Extract the first word of "$ac_prog", so it can be a program name with args.
2090set dummy $ac_prog; ac_word=$2
2091echo "$as_me:$LINENO: checking for $ac_word" >&5
2092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094  echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096  if test -n "$ac_ct_CC"; then
2097  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2098else
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104  for ac_exec_ext in '' $ac_executable_extensions; do
2105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106    ac_cv_prog_ac_ct_CC="$ac_prog"
2107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108    break 2
2109  fi
2110done
2111done
2112
2113fi
2114fi
2115ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116if test -n "$ac_ct_CC"; then
2117  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118echo "${ECHO_T}$ac_ct_CC" >&6
2119else
2120  echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6
2122fi
2123
2124  test -n "$ac_ct_CC" && break
2125done
2126
2127  CC=$ac_ct_CC
2128fi
2129
2130
2131test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132See \`config.log' for more details." >&5
2133echo "$as_me: error: no acceptable C compiler found in \$PATH
2134See \`config.log' for more details." >&2;}
2135   { (exit 1); exit 1; }; }
2136
2137# Provide some information about the compiler.
2138echo "$as_me:$LINENO:" \
2139     "checking for C compiler version" >&5
2140ac_compiler=`set X $ac_compile; echo $2`
2141{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142  (eval $ac_compiler --version </dev/null >&5) 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }
2146{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147  (eval $ac_compiler -v </dev/null >&5) 2>&5
2148  ac_status=$?
2149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150  (exit $ac_status); }
2151{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152  (eval $ac_compiler -V </dev/null >&5) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }
2156
2157cat >conftest.$ac_ext <<_ACEOF
2158/* confdefs.h.  */
2159_ACEOF
2160cat confdefs.h >>conftest.$ac_ext
2161cat >>conftest.$ac_ext <<_ACEOF
2162/* end confdefs.h.  */
2163
2164int
2165main ()
2166{
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172ac_clean_files_save=$ac_clean_files
2173ac_clean_files="$ac_clean_files a.out a.exe b.out"
2174# Try to create an executable without -o first, disregard a.out.
2175# It will help us diagnose broken compilers, and finding out an intuition
2176# of exeext.
2177echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181  (eval $ac_link_default) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; then
2185  # Find the output, starting from the most likely.  This scheme is
2186# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2187# resort.
2188
2189# Be careful to initialize this variable, since it used to be cached.
2190# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2191ac_cv_exeext=
2192# b.out is created by i960 compilers.
2193for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2194do
2195  test -f "$ac_file" || continue
2196  case $ac_file in
2197    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2198        ;;
2199    conftest.$ac_ext )
2200        # This is the source file.
2201        ;;
2202    [ab].out )
2203        # We found the default executable, but exeext='' is most
2204        # certainly right.
2205        break;;
2206    *.* )
2207        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208        # FIXME: I believe we export ac_cv_exeext for Libtool,
2209        # but it would be cool to find out if it's true.  Does anybody
2210        # maintain Libtool? --akim.
2211        export ac_cv_exeext
2212        break;;
2213    * )
2214        break;;
2215  esac
2216done
2217else
2218  echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: C compiler cannot create executables
2224See \`config.log' for more details." >&2;}
2225   { (exit 77); exit 77; }; }
2226fi
2227
2228ac_exeext=$ac_cv_exeext
2229echo "$as_me:$LINENO: result: $ac_file" >&5
2230echo "${ECHO_T}$ac_file" >&6
2231
2232# Check the compiler produces executables we can run.  If not, either
2233# the compiler is broken, or we cross compile.
2234echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237# If not cross compiling, check that we can run a simple program.
2238if test "$cross_compiling" != yes; then
2239  if { ac_try='./$ac_file'
2240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241  (eval $ac_try) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }; }; then
2245    cross_compiling=no
2246  else
2247    if test "$cross_compiling" = maybe; then
2248        cross_compiling=yes
2249    else
2250        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251If you meant to cross compile, use \`--host'.
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: cannot run C compiled programs.
2254If you meant to cross compile, use \`--host'.
2255See \`config.log' for more details." >&2;}
2256   { (exit 1); exit 1; }; }
2257    fi
2258  fi
2259fi
2260echo "$as_me:$LINENO: result: yes" >&5
2261echo "${ECHO_T}yes" >&6
2262
2263rm -f a.out a.exe conftest$ac_cv_exeext b.out
2264ac_clean_files=$ac_clean_files_save
2265# Check the compiler produces executables we can run.  If not, either
2266# the compiler is broken, or we cross compile.
2267echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270echo "${ECHO_T}$cross_compiling" >&6
2271
2272echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275  (eval $ac_link) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; then
2279  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2281# work properly (i.e., refer to `conftest.exe'), while it won't with
2282# `rm'.
2283for ac_file in conftest.exe conftest conftest.*; do
2284  test -f "$ac_file" || continue
2285  case $ac_file in
2286    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2287    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288          export ac_cv_exeext
2289          break;;
2290    * ) break;;
2291  esac
2292done
2293else
2294  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295See \`config.log' for more details." >&5
2296echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297See \`config.log' for more details." >&2;}
2298   { (exit 1); exit 1; }; }
2299fi
2300
2301rm -f conftest$ac_cv_exeext
2302echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303echo "${ECHO_T}$ac_cv_exeext" >&6
2304
2305rm -f conftest.$ac_ext
2306EXEEXT=$ac_cv_exeext
2307ac_exeext=$EXEEXT
2308echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310if test "${ac_cv_objext+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  cat >conftest.$ac_ext <<_ACEOF
2314/* confdefs.h.  */
2315_ACEOF
2316cat confdefs.h >>conftest.$ac_ext
2317cat >>conftest.$ac_ext <<_ACEOF
2318/* end confdefs.h.  */
2319
2320int
2321main ()
2322{
2323
2324  ;
2325  return 0;
2326}
2327_ACEOF
2328rm -f conftest.o conftest.obj
2329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330  (eval $ac_compile) 2>&5
2331  ac_status=$?
2332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333  (exit $ac_status); }; then
2334  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2335  case $ac_file in
2336    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2337    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338       break;;
2339  esac
2340done
2341else
2342  echo "$as_me: failed program was:" >&5
2343sed 's/^/| /' conftest.$ac_ext >&5
2344
2345{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348See \`config.log' for more details." >&2;}
2349   { (exit 1); exit 1; }; }
2350fi
2351
2352rm -f conftest.$ac_cv_objext conftest.$ac_ext
2353fi
2354echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355echo "${ECHO_T}$ac_cv_objext" >&6
2356OBJEXT=$ac_cv_objext
2357ac_objext=$OBJEXT
2358echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h.  */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h.  */
2369
2370int
2371main ()
2372{
2373#ifndef __GNUC__
2374       choke me
2375#endif
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383  (eval $ac_compile) 2>conftest.er1
2384  ac_status=$?
2385  grep -v '^ *+' conftest.er1 >conftest.err
2386  rm -f conftest.er1
2387  cat conftest.err >&5
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); } &&
2390         { ac_try='test -z "$ac_c_werror_flag"
2391                         || test ! -s conftest.err'
2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393  (eval $ac_try) 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; } &&
2397         { ac_try='test -s conftest.$ac_objext'
2398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399  (eval $ac_try) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; }; then
2403  ac_compiler_gnu=yes
2404else
2405  echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408ac_compiler_gnu=no
2409fi
2410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411ac_cv_c_compiler_gnu=$ac_compiler_gnu
2412
2413fi
2414echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416GCC=`test $ac_compiler_gnu = yes && echo yes`
2417ac_test_CFLAGS=${CFLAGS+set}
2418ac_save_CFLAGS=$CFLAGS
2419CFLAGS="-g"
2420echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422if test "${ac_cv_prog_cc_g+set}" = set; then
2423  echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425  cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h.  */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h.  */
2431
2432int
2433main ()
2434{
2435
2436  ;
2437  return 0;
2438}
2439_ACEOF
2440rm -f conftest.$ac_objext
2441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442  (eval $ac_compile) 2>conftest.er1
2443  ac_status=$?
2444  grep -v '^ *+' conftest.er1 >conftest.err
2445  rm -f conftest.er1
2446  cat conftest.err >&5
2447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448  (exit $ac_status); } &&
2449         { ac_try='test -z "$ac_c_werror_flag"
2450                         || test ! -s conftest.err'
2451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452  (eval $ac_try) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }; } &&
2456         { ac_try='test -s conftest.$ac_objext'
2457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458  (eval $ac_try) 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; }; then
2462  ac_cv_prog_cc_g=yes
2463else
2464  echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467ac_cv_prog_cc_g=no
2468fi
2469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2470fi
2471echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2472echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2473if test "$ac_test_CFLAGS" = set; then
2474  CFLAGS=$ac_save_CFLAGS
2475elif test $ac_cv_prog_cc_g = yes; then
2476  if test "$GCC" = yes; then
2477    CFLAGS="-g -O2"
2478  else
2479    CFLAGS="-g"
2480  fi
2481else
2482  if test "$GCC" = yes; then
2483    CFLAGS="-O2"
2484  else
2485    CFLAGS=
2486  fi
2487fi
2488echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2489echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2490if test "${ac_cv_prog_cc_stdc+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  ac_cv_prog_cc_stdc=no
2494ac_save_CC=$CC
2495cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h.  */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h.  */
2501#include <stdarg.h>
2502#include <stdio.h>
2503#include <sys/types.h>
2504#include <sys/stat.h>
2505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2506struct buf { int x; };
2507FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508static char *e (p, i)
2509     char **p;
2510     int i;
2511{
2512  return p[i];
2513}
2514static char *f (char * (*g) (char **, int), char **p, ...)
2515{
2516  char *s;
2517  va_list v;
2518  va_start (v,p);
2519  s = g (p, va_arg (v,int));
2520  va_end (v);
2521  return s;
2522}
2523
2524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2525   function prototypes and stuff, but not '\xHH' hex character constants.
2526   These don't provoke an error unfortunately, instead are silently treated
2527   as 'x'.  The following induces an error, until -std1 is added to get
2528   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2529   array size at least.  It's necessary to write '\x00'==0 to get something
2530   that's true only with -std1.  */
2531int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2532
2533int test (int i, double x);
2534struct s1 {int (*f) (int a);};
2535struct s2 {int (*f) (double a);};
2536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2537int argc;
2538char **argv;
2539int
2540main ()
2541{
2542return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2543  ;
2544  return 0;
2545}
2546_ACEOF
2547# Don't try gcc -ansi; that turns off useful extensions and
2548# breaks some systems' header files.
2549# AIX                   -qlanglvl=ansi
2550# Ultrix and OSF/1      -std1
2551# HP-UX 10.20 and later -Ae
2552# HP-UX older versions  -Aa -D_HPUX_SOURCE
2553# SVR4                  -Xc -D__EXTENSIONS__
2554for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2555do
2556  CC="$ac_save_CC $ac_arg"
2557  rm -f conftest.$ac_objext
2558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559  (eval $ac_compile) 2>conftest.er1
2560  ac_status=$?
2561  grep -v '^ *+' conftest.er1 >conftest.err
2562  rm -f conftest.er1
2563  cat conftest.err >&5
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); } &&
2566         { ac_try='test -z "$ac_c_werror_flag"
2567                         || test ! -s conftest.err'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; } &&
2573         { ac_try='test -s conftest.$ac_objext'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; }; then
2579  ac_cv_prog_cc_stdc=$ac_arg
2580break
2581else
2582  echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585fi
2586rm -f conftest.err conftest.$ac_objext
2587done
2588rm -f conftest.$ac_ext conftest.$ac_objext
2589CC=$ac_save_CC
2590
2591fi
2592
2593case "x$ac_cv_prog_cc_stdc" in
2594  x|xno)
2595    echo "$as_me:$LINENO: result: none needed" >&5
2596echo "${ECHO_T}none needed" >&6 ;;
2597  *)
2598    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600    CC="$CC $ac_cv_prog_cc_stdc" ;;
2601esac
2602
2603# Some people use a C++ compiler to compile C.  Since we use `exit',
2604# in C++ we need to declare it.  In case someone uses the same compiler
2605# for both compiling C and C++ we need to have the C++ compiler decide
2606# the declaration of exit, since it's the most demanding environment.
2607cat >conftest.$ac_ext <<_ACEOF
2608#ifndef __cplusplus
2609  choke me
2610#endif
2611_ACEOF
2612rm -f conftest.$ac_objext
2613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614  (eval $ac_compile) 2>conftest.er1
2615  ac_status=$?
2616  grep -v '^ *+' conftest.er1 >conftest.err
2617  rm -f conftest.er1
2618  cat conftest.err >&5
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); } &&
2621         { ac_try='test -z "$ac_c_werror_flag"
2622                         || test ! -s conftest.err'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; } &&
2628         { ac_try='test -s conftest.$ac_objext'
2629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630  (eval $ac_try) 2>&5
2631  ac_status=$?
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); }; }; then
2634  for ac_declaration in \
2635   '' \
2636   'extern "C" void std::exit (int) throw (); using std::exit;' \
2637   'extern "C" void std::exit (int); using std::exit;' \
2638   'extern "C" void exit (int) throw ();' \
2639   'extern "C" void exit (int);' \
2640   'void exit (int);'
2641do
2642  cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h.  */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h.  */
2648$ac_declaration
2649#include <stdlib.h>
2650int
2651main ()
2652{
2653exit (42);
2654  ;
2655  return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext
2659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660  (eval $ac_compile) 2>conftest.er1
2661  ac_status=$?
2662  grep -v '^ *+' conftest.er1 >conftest.err
2663  rm -f conftest.er1
2664  cat conftest.err >&5
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); } &&
2667         { ac_try='test -z "$ac_c_werror_flag"
2668                         || test ! -s conftest.err'
2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670  (eval $ac_try) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); }; } &&
2674         { ac_try='test -s conftest.$ac_objext'
2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676  (eval $ac_try) 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; }; then
2680  :
2681else
2682  echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685continue
2686fi
2687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688  cat >conftest.$ac_ext <<_ACEOF
2689/* confdefs.h.  */
2690_ACEOF
2691cat confdefs.h >>conftest.$ac_ext
2692cat >>conftest.$ac_ext <<_ACEOF
2693/* end confdefs.h.  */
2694$ac_declaration
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  break
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732done
2733rm -f conftest*
2734if test -n "$ac_declaration"; then
2735  echo '#ifdef __cplusplus' >>confdefs.h
2736  echo $ac_declaration      >>confdefs.h
2737  echo '#endif'             >>confdefs.h
2738fi
2739
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744fi
2745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746ac_ext=c
2747ac_cpp='$CPP $CPPFLAGS'
2748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751
2752if test -z "$CC" ; then
2753  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2754echo "$as_me: error: Failed to find a C compiler!" >&2;}
2755   { (exit 1); exit 1; }; }
2756fi
2757# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2758case "$CC" in
2759  cl* | */cl* | CL* | */CL* )
2760    if test "$ac_cv_prog_cc_g" = yes ; then
2761      ac_cv_prog_cc_g=no
2762      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2763echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2764    fi ;;
2765esac
2766CFLAGS="$save_cflags"
2767
2768# add automake conditional so we can recognize cl compiler in makefile
2769coin_cc_is_cl=false
2770case "$CC" in
2771  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2772    coin_cc_is_cl=true
2773    ;;
2774esac
2775
2776
2777if test $coin_cc_is_cl = true; then
2778  COIN_CC_IS_CL_TRUE=
2779  COIN_CC_IS_CL_FALSE='#'
2780else
2781  COIN_CC_IS_CL_TRUE='#'
2782  COIN_CC_IS_CL_FALSE=
2783fi
2784
2785
2786# Check if a project specific CFLAGS variable has been set
2787if test x$COIN_PRJCT != x; then
2788  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2789  if test x$coin_tmp = xset; then
2790    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2791  fi
2792fi
2793
2794if test x"$CFLAGS" = x; then
2795
2796  coin_add_cflags=
2797  coin_opt_cflags=
2798  coin_dbg_cflags=
2799  coin_warn_cflags=
2800
2801  if test "$GCC" = "yes"; then
2802    case "$CC" in
2803      icc* | */icc*)
2804        ;;
2805      *)
2806        coin_opt_cflags="-O3"
2807        coin_add_cflags="-pipe"
2808        coin_dbg_cflags="-g -O0"
2809        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2810        case $build in
2811          *-darwin*)
2812            ;;
2813          *)
2814            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2815            ;;
2816        esac
2817        case $enable_doscompile in
2818          mingw)
2819            CFLAGS="-mno-cygwin"
2820            cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830int i=0; i++;
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext conftest$ac_exeext
2836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2837  (eval $ac_link) 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } &&
2844         { ac_try='test -z "$ac_c_werror_flag"
2845                         || test ! -s conftest.err'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; } &&
2851         { ac_try='test -s conftest$ac_exeext'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; }; then
2857  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864      conftest$ac_exeext conftest.$ac_ext
2865            CFLAGS=
2866          ;;
2867        esac
2868    esac
2869  fi
2870  if test -z "$coin_opt_cflags"; then
2871    case $build in
2872      *-cygwin* | *-mingw*)
2873        case "$CC" in
2874          cl* | */cl* | CL* | */CL*)
2875            coin_opt_cflags='-MT -O2'
2876            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2877            coin_dbg_cflags='-MTd'
2878            ;;
2879          icl* | */icl* | ICL* | */ICL*)
2880            coin_opt_cflags='-MT -Ox'
2881            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2882            coin_dbg_cflags='-MTd -debug'
2883            ;;
2884        esac
2885        ;;
2886      *-linux-*)
2887        case "$CC" in
2888          icc* | */icc*)
2889            coin_opt_cflags="-O3 -ip -mp1"
2890            coin_add_cflags=""
2891            coin_dbg_cflags="-g"
2892            # Check if -i_dynamic is necessary (for new glibc library)
2893            CFLAGS=
2894            cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  :
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936coin_add_cflags="-i_dynamic $coin_add_cflags"
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939      conftest$ac_exeext conftest.$ac_ext
2940            ;;
2941          pgcc* | */pgcc*)
2942            coin_opt_cflags="-fast"
2943            coin_add_cflags="-Kieee -pc 64"
2944            coin_dbg_cflags="-g"
2945            ;;
2946        esac
2947        ;;
2948      *-ibm-*)
2949        case "$CC" in
2950          xlc* | */xlc* | mpxlc* | */mpxlc*)
2951            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2952            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2953            coin_dbg_cflags="-g"
2954          ;;
2955        esac
2956        ;;
2957      *-hp-*)
2958        coin_opt_cflags="-O"
2959        coin_add_cflags="-Ae"
2960        coin_dbg_cflags="-g"
2961        ;;
2962      *-*-solaris*)
2963        coin_opt_cflags="-xO4"
2964        coin_dbg_cflags="-g"
2965        ;;
2966      *-sgi-*)
2967        coin_opt_cflags="-O -OPT:Olimit=0"
2968        coin_dbg_cflags="-g"
2969        ;;
2970    esac
2971  fi
2972
2973  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2974    coin_dbg_cflags="-g"
2975  fi
2976
2977  if test -z "$coin_opt_cflags"; then
2978    # Try if -O option works if nothing else is set
2979    CFLAGS="-O"
2980    cat >conftest.$ac_ext <<_ACEOF
2981/* confdefs.h.  */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h.  */
2986
2987int
2988main ()
2989{
2990int i=0; i++;
2991  ;
2992  return 0;
2993}
2994_ACEOF
2995rm -f conftest.$ac_objext conftest$ac_exeext
2996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2997  (eval $ac_link) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004         { ac_try='test -z "$ac_c_werror_flag"
3005                         || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011         { ac_try='test -s conftest$ac_exeext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  coin_opt_cflags="-O"
3018else
3019  echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022fi
3023rm -f conftest.err conftest.$ac_objext \
3024      conftest$ac_exeext conftest.$ac_ext
3025  fi
3026
3027  # if PM doesn't want the warning messages, take them out
3028  if test x"$coin_skip_warn_cflags" = xyes; then
3029    coin_warn_cflags=
3030  fi
3031
3032  if test x${DBG_CFLAGS+set} != xset; then
3033    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3034  fi
3035  if test x${OPT_CFLAGS+set} != xset; then
3036    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3037  fi
3038
3039  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3040  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3041
3042  if test "$coin_debug_compile" = "true"; then
3043    CFLAGS="$DBG_CFLAGS"
3044  else
3045    CFLAGS="$OPT_CFLAGS"
3046  fi
3047else
3048  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3049  if test x${DBG_CFLAGS+set} != xset; then
3050    DBG_CFLAGS="$CFLAGS"
3051  fi
3052  if test x${OPT_CFLAGS+set} != xset; then
3053    OPT_CFLAGS="$CFLAGS"
3054  fi
3055fi
3056
3057# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3058
3059case "$CFLAGS" in
3060  *-mno-cygwin*)
3061    if test x${CPPFLAGS+set} != xset ; then
3062      CPPFLAGS="-mno-cygwin"
3063    else
3064      case "$CPPFLAGS" in
3065        *-mno-cygwin*)
3066          ;;
3067        *)
3068          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3069          ;;
3070      esac
3071    fi ;;
3072esac
3073
3074# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3075if test x$COIN_PRJCT != x; then
3076  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3077fi
3078
3079# Try if CFLAGS works
3080save_CFLAGS="$CFLAGS"
3081cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h.  */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091int i=0; i++;
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext conftest$ac_exeext
3097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098  (eval $ac_link) 2>conftest.er1
3099  ac_status=$?
3100  grep -v '^ *+' conftest.er1 >conftest.err
3101  rm -f conftest.er1
3102  cat conftest.err >&5
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); } &&
3105         { ac_try='test -z "$ac_c_werror_flag"
3106                         || test ! -s conftest.err'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; } &&
3112         { ac_try='test -s conftest$ac_exeext'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; }; then
3118  :
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123CFLAGS=
3124fi
3125rm -f conftest.err conftest.$ac_objext \
3126      conftest$ac_exeext conftest.$ac_ext
3127if test -z "$CFLAGS"; then
3128  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3129echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3130  CFLAGS='-O'
3131  cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h.  */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h.  */
3137
3138int
3139main ()
3140{
3141int i=0; i++;
3142  ;
3143  return 0;
3144}
3145_ACEOF
3146rm -f conftest.$ac_objext conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148  (eval $ac_link) 2>conftest.er1
3149  ac_status=$?
3150  grep -v '^ *+' conftest.er1 >conftest.err
3151  rm -f conftest.er1
3152  cat conftest.err >&5
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); } &&
3155         { ac_try='test -z "$ac_c_werror_flag"
3156                         || test ! -s conftest.err'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; } &&
3162         { ac_try='test -s conftest$ac_exeext'
3163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164  (eval $ac_try) 2>&5
3165  ac_status=$?
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); }; }; then
3168  :
3169else
3170  echo "$as_me: failed program was:" >&5
3171sed 's/^/| /' conftest.$ac_ext >&5
3172
3173CFLAGS=
3174fi
3175rm -f conftest.err conftest.$ac_objext \
3176      conftest$ac_exeext conftest.$ac_ext
3177  if test -z "$CFLAGS"; then
3178    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3179echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3180  fi
3181fi
3182
3183{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3184echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3185
3186
3187if test x"$MPICC" = x; then :; else
3188  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3189echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3190  CC="$MPICC"
3191fi
3192
3193# Correct the LD variable if we are using the MS or Intel-windows compiler
3194case "$CC" in
3195  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3196    case $build in
3197  *-mingw*)
3198    if test "${LD+set}" = set; then :; else
3199      LD=link
3200    fi
3201    ;;
3202 esac
3203 case $enable_doscompile in
3204   msvc)
3205     if test "x${LD+set}" = xset; then :; else
3206       LD=link
3207     fi
3208     ;;
3209 esac
3210
3211    ;;
3212esac
3213
3214ac_ext=c
3215ac_cpp='$CPP $CPPFLAGS'
3216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219
3220
3221case $build in
3222  *-cygwin* | *-mingw*)
3223     if test "$enable_doscompile" = msvc ; then
3224       coin_f77_comps="ifort fl32 compile_f2c"
3225     else
3226       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3227     fi ;;
3228  *-*-solaris*)
3229     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3230  *-linux-gnu*)
3231     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3232  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3233 esac
3234
3235
3236
3237
3238
3239
3240ac_ext=f
3241ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3242ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3244
3245
3246
3247
3248
3249
3250coin_has_f77=yes
3251
3252save_fflags="$FFLAGS"
3253
3254# We delete the cached value, since the test might not have been
3255# performed with our choice of compilers earlier
3256$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3257
3258# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3259# coin_f77_comps to see if there's a program that matches one of the names.
3260# If there's no such program, F77 = unavailable. If we match the name,
3261# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3262# compiler.
3263# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3264
3265
3266{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3267echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3268if test -n "$ac_tool_prefix"; then
3269  for ac_prog in $coin_f77_comps
3270  do
3271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273echo "$as_me:$LINENO: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_F77+set}" = set; then
3276  echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278  if test -n "$F77"; then
3279  ac_cv_prog_F77="$F77" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286  for ac_exec_ext in '' $ac_executable_extensions; do
3287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293done
3294
3295fi
3296fi
3297F77=$ac_cv_prog_F77
3298if test -n "$F77"; then
3299  echo "$as_me:$LINENO: result: $F77" >&5
3300echo "${ECHO_T}$F77" >&6
3301else
3302  echo "$as_me:$LINENO: result: no" >&5
3303echo "${ECHO_T}no" >&6
3304fi
3305
3306    test -n "$F77" && break
3307  done
3308fi
3309if test -z "$F77"; then
3310  ac_ct_F77=$F77
3311  for ac_prog in $coin_f77_comps
3312do
3313  # Extract the first word of "$ac_prog", so it can be a program name with args.
3314set dummy $ac_prog; ac_word=$2
3315echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320  if test -n "$ac_ct_F77"; then
3321  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328  for ac_exec_ext in '' $ac_executable_extensions; do
3329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330    ac_cv_prog_ac_ct_F77="$ac_prog"
3331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335done
3336
3337fi
3338fi
3339ac_ct_F77=$ac_cv_prog_ac_ct_F77
3340if test -n "$ac_ct_F77"; then
3341  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3342echo "${ECHO_T}$ac_ct_F77" >&6
3343else
3344  echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
3346fi
3347
3348  test -n "$ac_ct_F77" && break
3349done
3350test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3351
3352  F77=$ac_ct_F77
3353fi
3354
3355
3356if test "$F77" != "unavailable" ; then
3357  ac_ext=f
3358ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3359ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3361if test -n "$ac_tool_prefix"; then
3362  for ac_prog in $coin_f77_comps
3363  do
3364    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366echo "$as_me:$LINENO: checking for $ac_word" >&5
3367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368if test "${ac_cv_prog_F77+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  if test -n "$F77"; then
3372  ac_cv_prog_F77="$F77" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379  for ac_exec_ext in '' $ac_executable_extensions; do
3380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386done
3387
3388fi
3389fi
3390F77=$ac_cv_prog_F77
3391if test -n "$F77"; then
3392  echo "$as_me:$LINENO: result: $F77" >&5
3393echo "${ECHO_T}$F77" >&6
3394else
3395  echo "$as_me:$LINENO: result: no" >&5
3396echo "${ECHO_T}no" >&6
3397fi
3398
3399    test -n "$F77" && break
3400  done
3401fi
3402if test -z "$F77"; then
3403  ac_ct_F77=$F77
3404  for ac_prog in $coin_f77_comps
3405do
3406  # Extract the first word of "$ac_prog", so it can be a program name with args.
3407set dummy $ac_prog; ac_word=$2
3408echo "$as_me:$LINENO: checking for $ac_word" >&5
3409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3410if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3411  echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413  if test -n "$ac_ct_F77"; then
3414  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419  IFS=$as_save_IFS
3420  test -z "$as_dir" && as_dir=.
3421  for ac_exec_ext in '' $ac_executable_extensions; do
3422  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423    ac_cv_prog_ac_ct_F77="$ac_prog"
3424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425    break 2
3426  fi
3427done
3428done
3429
3430fi
3431fi
3432ac_ct_F77=$ac_cv_prog_ac_ct_F77
3433if test -n "$ac_ct_F77"; then
3434  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3435echo "${ECHO_T}$ac_ct_F77" >&6
3436else
3437  echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439fi
3440
3441  test -n "$ac_ct_F77" && break
3442done
3443
3444  F77=$ac_ct_F77
3445fi
3446
3447
3448# Provide some information about the compiler.
3449echo "$as_me:3449:" \
3450     "checking for Fortran 77 compiler version" >&5
3451ac_compiler=`set X $ac_compile; echo $2`
3452{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3453  (eval $ac_compiler --version </dev/null >&5) 2>&5
3454  ac_status=$?
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); }
3457{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3458  (eval $ac_compiler -v </dev/null >&5) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }
3462{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3463  (eval $ac_compiler -V </dev/null >&5) 2>&5
3464  ac_status=$?
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); }
3467rm -f a.out
3468
3469# If we don't use `.F' as extension, the preprocessor is not run on the
3470# input file.  (Note that this only needs to work for GNU compilers.)
3471ac_save_ext=$ac_ext
3472ac_ext=F
3473echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3474echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3475if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3476  echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478  cat >conftest.$ac_ext <<_ACEOF
3479      program main
3480#ifndef __GNUC__
3481       choke me
3482#endif
3483
3484      end
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_f77_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  ac_compiler_gnu=yes
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513ac_compiler_gnu=no
3514fi
3515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3516ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3517
3518fi
3519echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3520echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3521ac_ext=$ac_save_ext
3522ac_test_FFLAGS=${FFLAGS+set}
3523ac_save_FFLAGS=$FFLAGS
3524FFLAGS=
3525echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3526echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3527if test "${ac_cv_prog_f77_g+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530  FFLAGS=-g
3531cat >conftest.$ac_ext <<_ACEOF
3532      program main
3533
3534      end
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538  (eval $ac_compile) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545         { ac_try='test -z "$ac_f77_werror_flag"
3546                         || test ! -s conftest.err'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; } &&
3552         { ac_try='test -s conftest.$ac_objext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  ac_cv_prog_f77_g=yes
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563ac_cv_prog_f77_g=no
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566
3567fi
3568echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3569echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3570if test "$ac_test_FFLAGS" = set; then
3571  FFLAGS=$ac_save_FFLAGS
3572elif test $ac_cv_prog_f77_g = yes; then
3573  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3574    FFLAGS="-g -O2"
3575  else
3576    FFLAGS="-g"
3577  fi
3578else
3579  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3580    FFLAGS="-O2"
3581  else
3582    FFLAGS=
3583  fi
3584fi
3585
3586G77=`test $ac_compiler_gnu = yes && echo yes`
3587ac_ext=f
3588ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3589ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3591
3592else
3593  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3594echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3595fi
3596
3597FFLAGS="$save_fflags"
3598
3599# Check if a project specific FFLAGS variable has been set
3600if test x$COIN_PRJCT != x; then
3601  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3602  if test x$coin_tmp = xset; then
3603    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3604  fi
3605fi
3606
3607if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3608
3609  coin_add_fflags=
3610  coin_opt_fflags=
3611  coin_dbg_fflags=
3612  coin_warn_fflags=
3613
3614  if test "$G77" = "yes"; then
3615    coin_opt_fflags="-O3"
3616    coin_add_fflags="-pipe"
3617    coin_dbg_fflags="-g -O0"
3618    case $enable_doscompile in
3619      mingw)
3620        FFLAGS="-mno-cygwin"
3621        cat >conftest.$ac_ext <<_ACEOF
3622      program main
3623      write(*,*) 'Hello world'
3624      end
3625_ACEOF
3626rm -f conftest.$ac_objext conftest$ac_exeext
3627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3628  (eval $ac_link) 2>conftest.er1
3629  ac_status=$?
3630  grep -v '^ *+' conftest.er1 >conftest.err
3631  rm -f conftest.er1
3632  cat conftest.err >&5
3633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634  (exit $ac_status); } &&
3635         { ac_try='test -z "$ac_f77_werror_flag"
3636                         || test ! -s conftest.err'
3637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638  (eval $ac_try) 2>&5
3639  ac_status=$?
3640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641  (exit $ac_status); }; } &&
3642         { ac_try='test -s conftest$ac_exeext'
3643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644  (eval $ac_try) 2>&5
3645  ac_status=$?
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); }; }; then
3648  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3649else
3650  echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
3653fi
3654rm -f conftest.err conftest.$ac_objext \
3655      conftest$ac_exeext conftest.$ac_ext
3656        FFLAGS=
3657      ;;
3658    esac
3659  else
3660    case $build in
3661      *-cygwin* | *-mingw*)
3662        case $F77 in
3663          ifort* | */ifort* | IFORT* | */IFORT* )
3664            coin_opt_fflags='-MT -O3'
3665            coin_add_fflags='-fpp -nologo'
3666            coin_dbg_fflags='-MTd -debug'
3667          ;;
3668          compile_f2c*)
3669            coin_opt_fflags='-MT -O2'
3670            coin_add_fflags='-nologo -wd4996'
3671            coin_dbg_fflags='-MTd'
3672          ;;
3673        esac
3674        ;;
3675      *-linux-*)
3676        case $F77 in
3677          ifc* | */ifc* | ifort* | */ifort*)
3678            coin_opt_fflags="-O3 -ip"
3679            coin_add_fflags="-cm -w90 -w95"
3680            coin_dbg_fflags="-g -CA -CB -CS"
3681            # Check if -i_dynamic is necessary (for new glibc library)
3682            FFLAGS=
3683            cat >conftest.$ac_ext <<_ACEOF
3684      program main
3685      write(*,*) 'Hello world'
3686      end
3687_ACEOF
3688rm -f conftest.$ac_objext conftest$ac_exeext
3689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3690  (eval $ac_link) 2>conftest.er1
3691  ac_status=$?
3692  grep -v '^ *+' conftest.er1 >conftest.err
3693  rm -f conftest.er1
3694  cat conftest.err >&5
3695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696  (exit $ac_status); } &&
3697         { ac_try='test -z "$ac_f77_werror_flag"
3698                         || test ! -s conftest.err'
3699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700  (eval $ac_try) 2>&5
3701  ac_status=$?
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); }; } &&
3704         { ac_try='test -s conftest$ac_exeext'
3705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706  (eval $ac_try) 2>&5
3707  ac_status=$?
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); }; }; then
3710  :
3711else
3712  echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715coin_add_fflags="-i_dynamic $coin_add_fflags"
3716fi
3717rm -f conftest.err conftest.$ac_objext \
3718      conftest$ac_exeext conftest.$ac_ext
3719            ;;
3720          pgf77* | */pgf77* | pgf90* | */pgf90*)
3721            coin_opt_fflags="-fast"
3722            coin_add_fflags="-Kieee -pc 64"
3723            coin_dbg_fflags="-g"
3724          ;;
3725        esac
3726        ;;
3727      *-ibm-*)
3728        case "$F77" in
3729          xlf* | */xlf* | mpxlf* | */mpxlf* )
3730            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3731            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3732            coin_dbg_fflags="-g -C"
3733            ;;
3734        esac
3735        ;;
3736      *-hp-*)
3737        coin_opt_fflags="+O3"
3738        coin_add_fflags="+U77"
3739        coin_dbg_fflags="-C -g"
3740        ;;
3741      *-*-solaris*)
3742        coin_opt_fflags="-O4"
3743        coin_dbg_fflags="-g"
3744        ;;
3745      *-sgi-*)
3746        coin_opt_fflags="-O5 -OPT:Olimit=0"
3747        coin_dbg_fflags="-g"
3748        ;;
3749    esac
3750  fi
3751
3752  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3753    coin_dbg_fflags="-g"
3754  fi
3755
3756  if test -z "$coin_opt_fflags"; then
3757    # Try if -O option works if nothing else is set
3758    FFLAGS=-O
3759    cat >conftest.$ac_ext <<_ACEOF
3760      program main
3761      integer i
3762      end
3763_ACEOF
3764rm -f conftest.$ac_objext conftest$ac_exeext
3765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766  (eval $ac_link) 2>conftest.er1
3767  ac_status=$?
3768  grep -v '^ *+' conftest.er1 >conftest.err
3769  rm -f conftest.er1
3770  cat conftest.err >&5
3771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772  (exit $ac_status); } &&
3773         { ac_try='test -z "$ac_f77_werror_flag"
3774                         || test ! -s conftest.err'
3775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776  (eval $ac_try) 2>&5
3777  ac_status=$?
3778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779  (exit $ac_status); }; } &&
3780         { ac_try='test -s conftest$ac_exeext'
3781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782  (eval $ac_try) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; }; then
3786  coin_opt_fflags="-O"
3787else
3788  echo "$as_me: failed program was:" >&5
3789sed 's/^/| /' conftest.$ac_ext >&5
3790
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793      conftest$ac_exeext conftest.$ac_ext
3794  fi
3795
3796  # if PM doesn't want the warning messages, take them out
3797  if test x"$coin_skip_warn_fflags" = xyes; then
3798    coin_warn_fflags=
3799  fi
3800
3801  if test x${DBG_FFLAGS+set} != xset; then
3802    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3803  fi
3804  if test x${OPT_FFLAGS+set} != xset; then
3805    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3806  fi
3807
3808  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3809  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3810
3811  if test "$coin_debug_compile" = "true"; then
3812    FFLAGS="$DBG_FFLAGS"
3813  else
3814    FFLAGS="$OPT_FFLAGS"
3815  fi
3816else
3817  FFLAGS="$FFLAGS $ADD_FFLAGS"
3818  if test x${DBG_FFLAGS+set} != xset; then
3819    DBG_FFLAGS="$FFLAGS"
3820  fi
3821  if test x${OPT_FFLAGS+set} != xset; then
3822    OPT_FFLAGS="$FFLAGS"
3823  fi
3824fi
3825
3826# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3827case "$FFLAGS" in
3828  *-mno-cygwin*)
3829    if test x${CPPFLAGS+set} != xset ; then
3830      CPPFLAGS="-mno-cygwin"
3831    else
3832      case "$CPPFLAGS" in
3833        *-mno-cygwin*)
3834          ;;
3835        *)
3836          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3837          ;;
3838      esac
3839    fi ;;
3840esac
3841
3842# Try if FFLAGS works
3843if test "$F77" != "unavailable" ; then
3844  cat >conftest.$ac_ext <<_ACEOF
3845      program main
3846      integer i
3847      end
3848_ACEOF
3849rm -f conftest.$ac_objext conftest$ac_exeext
3850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3851  (eval $ac_link) 2>conftest.er1
3852  ac_status=$?
3853  grep -v '^ *+' conftest.er1 >conftest.err
3854  rm -f conftest.er1
3855  cat conftest.err >&5
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); } &&
3858         { ac_try='test -z "$ac_f77_werror_flag"
3859                         || test ! -s conftest.err'
3860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861  (eval $ac_try) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; } &&
3865         { ac_try='test -s conftest$ac_exeext'
3866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867  (eval $ac_try) 2>&5
3868  ac_status=$?
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); }; }; then
3871  :
3872else
3873  echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876FFLAGS=
3877fi
3878rm -f conftest.err conftest.$ac_objext \
3879      conftest$ac_exeext conftest.$ac_ext
3880  if test -z "$FFLAGS"; then
3881    { 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
3882echo "$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;}
3883    FFLAGS='-O'
3884    cat >conftest.$ac_ext <<_ACEOF
3885      program main
3886      integer i
3887      end
3888_ACEOF
3889rm -f conftest.$ac_objext conftest$ac_exeext
3890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3891  (eval $ac_link) 2>conftest.er1
3892  ac_status=$?
3893  grep -v '^ *+' conftest.er1 >conftest.err
3894  rm -f conftest.er1
3895  cat conftest.err >&5
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); } &&
3898         { ac_try='test -z "$ac_f77_werror_flag"
3899                         || test ! -s conftest.err'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; } &&
3905         { ac_try='test -s conftest$ac_exeext'
3906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907  (eval $ac_try) 2>&5
3908  ac_status=$?
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); }; }; then
3911  :
3912else
3913  echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916FFLAGS=
3917fi
3918rm -f conftest.err conftest.$ac_objext \
3919      conftest$ac_exeext conftest.$ac_ext
3920    if test -z "$FFLAGS"; then
3921      { 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
3922echo "$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;}
3923    fi
3924  fi
3925fi
3926
3927{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3928echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3929
3930
3931if test x"$MPIF77" = x; then :; else
3932  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3933echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3934  F77="$MPIF77"
3935fi
3936
3937# correct the LD variable if we use the intel fortran compiler in windows
3938case "$F77" in
3939  ifort* | */ifort* | IFORT* | */IFORT*)
3940    case $build in
3941  *-mingw*)
3942    if test "${LD+set}" = set; then :; else
3943      LD=link
3944    fi
3945    ;;
3946 esac
3947 case $enable_doscompile in
3948   msvc)
3949     if test "x${LD+set}" = xset; then :; else
3950       LD=link
3951     fi
3952     ;;
3953 esac
3954
3955    ;;
3956esac
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964
3965
3966# Get the linker flags (FLIBS) that are required for linking against this blas library
3967
3968# get FLIBS
3969ac_ext=f
3970ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3971ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3972ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3973echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3974echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3975if test "${ac_cv_prog_f77_v+set}" = set; then
3976  echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978  cat >conftest.$ac_ext <<_ACEOF
3979      program main
3980
3981      end
3982_ACEOF
3983rm -f conftest.$ac_objext
3984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3985  (eval $ac_compile) 2>conftest.er1
3986  ac_status=$?
3987  grep -v '^ *+' conftest.er1 >conftest.err
3988  rm -f conftest.er1
3989  cat conftest.err >&5
3990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); } &&
3992         { ac_try='test -z "$ac_f77_werror_flag"
3993                         || test ! -s conftest.err'
3994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995  (eval $ac_try) 2>&5
3996  ac_status=$?
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); }; } &&
3999         { ac_try='test -s conftest.$ac_objext'
4000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001  (eval $ac_try) 2>&5
4002  ac_status=$?
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); }; }; then
4005  ac_cv_prog_f77_v=
4006# Try some options frequently used verbose output
4007for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4008  cat >conftest.$ac_ext <<_ACEOF
4009      program main
4010
4011      end
4012_ACEOF
4013
4014# Compile and link our simple test program by passing a flag (argument
4015# 1 to this macro) to the Fortran compiler in order to get
4016# "verbose" output that we can then parse for the Fortran linker
4017# flags.
4018ac_save_FFLAGS=$FFLAGS
4019FFLAGS="$FFLAGS $ac_verb"
4020(eval echo $as_me:4020: \"$ac_link\") >&5
4021ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4022echo "$ac_f77_v_output" >&5
4023FFLAGS=$ac_save_FFLAGS
4024
4025rm -f conftest*
4026
4027# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4028# /foo, /bar, and /baz are search directories for the Fortran linker.
4029# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4030ac_f77_v_output="`echo $ac_f77_v_output |
4031        grep 'LPATH is:' |
4032        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4033
4034case $ac_f77_v_output in
4035  # If we are using xlf then replace all the commas with spaces.
4036  *xlfentry*)
4037    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4038
4039  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4040  # $LIBS confuse us, and the libraries appear later in the output anyway).
4041  *mGLOB_options_string*)
4042    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4043
4044  # If we are using Cray Fortran then delete quotes.
4045  # Use "\"" instead of '"' for font-lock-mode.
4046  # FIXME: a more general fix for quoted arguments with spaces?
4047  *cft90*)
4048    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4049esac
4050
4051
4052  # look for -l* and *.a constructs in the output
4053  for ac_arg in $ac_f77_v_output; do
4054     case $ac_arg in
4055        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4056          ac_cv_prog_f77_v=$ac_verb
4057          break 2 ;;
4058     esac
4059  done
4060done
4061if test -z "$ac_cv_prog_f77_v"; then
4062   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4063echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4064fi
4065else
4066  echo "$as_me: failed program was:" >&5
4067sed 's/^/| /' conftest.$ac_ext >&5
4068
4069{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4070echo "$as_me: WARNING: compilation failed" >&2;}
4071fi
4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073
4074fi
4075echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4076echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4077echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4078echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4079if test "${ac_cv_f77_libs+set}" = set; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082  if test "x$FLIBS" != "x"; then
4083  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4084else
4085
4086cat >conftest.$ac_ext <<_ACEOF
4087      program main
4088
4089      end
4090_ACEOF
4091
4092# Compile and link our simple test program by passing a flag (argument
4093# 1 to this macro) to the Fortran compiler in order to get
4094# "verbose" output that we can then parse for the Fortran linker
4095# flags.
4096ac_save_FFLAGS=$FFLAGS
4097FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4098(eval echo $as_me:4098: \"$ac_link\") >&5
4099ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4100echo "$ac_f77_v_output" >&5
4101FFLAGS=$ac_save_FFLAGS
4102
4103rm -f conftest*
4104
4105# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4106# /foo, /bar, and /baz are search directories for the Fortran linker.
4107# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4108ac_f77_v_output="`echo $ac_f77_v_output |
4109        grep 'LPATH is:' |
4110        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4111
4112case $ac_f77_v_output in
4113  # If we are using xlf then replace all the commas with spaces.
4114  *xlfentry*)
4115    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4116
4117  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4118  # $LIBS confuse us, and the libraries appear later in the output anyway).
4119  *mGLOB_options_string*)
4120    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4121
4122  # If we are using Cray Fortran then delete quotes.
4123  # Use "\"" instead of '"' for font-lock-mode.
4124  # FIXME: a more general fix for quoted arguments with spaces?
4125  *cft90*)
4126    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4127esac
4128
4129
4130
4131ac_cv_f77_libs=
4132
4133# Save positional arguments (if any)
4134ac_save_positional="$@"
4135
4136set X $ac_f77_v_output
4137while test $# != 1; do
4138  shift
4139  ac_arg=$1
4140  case $ac_arg in
4141        [\\/]*.a | ?:[\\/]*.a)
4142            ac_exists=false
4143  for ac_i in $ac_cv_f77_libs; do
4144    if test x"$ac_arg" = x"$ac_i"; then
4145      ac_exists=true
4146      break
4147    fi
4148  done
4149
4150  if test x"$ac_exists" = xtrue; then
4151  :
4152else
4153  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4154fi
4155
4156          ;;
4157        -bI:*)
4158            ac_exists=false
4159  for ac_i in $ac_cv_f77_libs; do
4160    if test x"$ac_arg" = x"$ac_i"; then
4161      ac_exists=true
4162      break
4163    fi
4164  done
4165
4166  if test x"$ac_exists" = xtrue; then
4167  :
4168else
4169  if test "$ac_compiler_gnu" = yes; then
4170  for ac_link_opt in $ac_arg; do
4171    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4172  done
4173else
4174  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4175fi
4176fi
4177
4178          ;;
4179          # Ignore these flags.
4180        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4181          ;;
4182        -lkernel32)
4183          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4184          ;;
4185        -[LRuY])
4186          # These flags, when seen by themselves, take an argument.
4187          # We remove the space between option and argument and re-iterate
4188          # unless we find an empty arg or a new option (starting with -)
4189          case $2 in
4190             "" | -*);;
4191             *)
4192                ac_arg="$ac_arg$2"
4193                shift; shift
4194                set X $ac_arg "$@"
4195                ;;
4196          esac
4197          ;;
4198        -YP,*)
4199          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4200              ac_exists=false
4201  for ac_i in $ac_cv_f77_libs; do
4202    if test x"$ac_j" = x"$ac_i"; then
4203      ac_exists=true
4204      break
4205    fi
4206  done
4207
4208  if test x"$ac_exists" = xtrue; then
4209  :
4210else
4211  ac_arg="$ac_arg $ac_j"
4212                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4213fi
4214
4215          done
4216          ;;
4217        -[lLR]*)
4218            ac_exists=false
4219  for ac_i in $ac_cv_f77_libs; do
4220    if test x"$ac_arg" = x"$ac_i"; then
4221      ac_exists=true
4222      break
4223    fi
4224  done
4225
4226  if test x"$ac_exists" = xtrue; then
4227  :
4228else
4229  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4230fi
4231
4232          ;;
4233          # Ignore everything else.
4234  esac
4235done
4236# restore positional arguments
4237set X $ac_save_positional; shift
4238
4239# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4240# then we insist that the "run path" must be an absolute path (i.e. it
4241# must begin with a "/").
4242case `(uname -sr) 2>/dev/null` in
4243   "SunOS 5"*)
4244      ac_ld_run_path=`echo $ac_f77_v_output |
4245                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4246      test "x$ac_ld_run_path" != x &&
4247        if test "$ac_compiler_gnu" = yes; then
4248  for ac_link_opt in $ac_ld_run_path; do
4249    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4250  done
4251else
4252  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4253fi
4254      ;;
4255esac
4256fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4257
4258fi
4259echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4260echo "${ECHO_T}$ac_cv_f77_libs" >&6
4261FLIBS="$ac_cv_f77_libs"
4262
4263
4264ac_ext=c
4265ac_cpp='$CPP $CPPFLAGS'
4266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270orig_FLIBS="$FLIBS"
4271
4272# If FLIBS has been set by the user, we just restore its value here
4273if test x"$save_FLIBS" != x; then
4274  FLIBS="$save_FLIBS"
4275else
4276  # This is to correct a missing exclusion in autoconf 2.59
4277  if test x"$FLIBS" != x; then
4278    my_flibs=
4279    for flag in $FLIBS; do
4280      case $flag in
4281        -lcrt*.o) ;;
4282        -lcygwin) ;;
4283               *) my_flibs="$my_flibs $flag" ;;
4284      esac
4285    done
4286    FLIBS="$my_flibs"
4287  fi
4288
4289  case $build in
4290  # The following is a fix to define FLIBS for ifort on Windows
4291  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4292  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4293  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4294  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4295  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4296     *-cygwin* | *-mingw*)
4297       case "$F77" in
4298#         ifort* | */ifort* | IFORT* | */IFORT*)
4299#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4300#           if "$coin_debug_compile" = true ; then
4301#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4302#           else
4303#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4304#           fi
4305#           ;;
4306         compile_f2c*)
4307           FLIBS=`$F77 -FLIBS` ;;
4308       esac;;
4309     *-hp-*)
4310         FLIBS="$FLIBS -lm";;
4311     *-ibm-*)
4312         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4313     *-linux-*)
4314       case "$F77" in
4315         pgf77* | */pgf77* | pgf90* | */pgf90*)
4316# ask linker to go through the archives multiple times
4317# (the Fortran compiler seems to do that automatically...)
4318           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4319       esac
4320  esac
4321  ac_cv_f77_libs="$FLIBS"
4322fi
4323
4324if test "x$orig_FLIBS" != "x$FLIBS" ; then
4325  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4326echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4327fi
4328
4329ac_ext=f
4330ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4331ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4333
4334echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4335echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4336if test "${ac_cv_f77_dummy_main+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  ac_f77_dm_save_LIBS=$LIBS
4340 LIBS="$LIBS $FLIBS"
4341 ac_fortran_dm_var=F77_DUMMY_MAIN
4342 ac_ext=c
4343ac_cpp='$CPP $CPPFLAGS'
4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347
4348 # First, try linking without a dummy main:
4349 cat >conftest.$ac_ext <<_ACEOF
4350/* confdefs.h.  */
4351_ACEOF
4352cat confdefs.h >>conftest.$ac_ext
4353cat >>conftest.$ac_ext <<_ACEOF
4354/* end confdefs.h.  */
4355
4356#ifdef F77_DUMMY_MAIN
4357
4358#  ifdef __cplusplus
4359     extern "C"
4360#  endif
4361   int F77_DUMMY_MAIN() { return 1; }
4362
4363#endif
4364int
4365main ()
4366{
4367
4368  ;
4369  return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext conftest$ac_exeext
4373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4374  (eval $ac_link) 2>conftest.er1
4375  ac_status=$?
4376  grep -v '^ *+' conftest.er1 >conftest.err
4377  rm -f conftest.er1
4378  cat conftest.err >&5
4379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380  (exit $ac_status); } &&
4381         { ac_try='test -z "$ac_c_werror_flag"
4382                         || test ! -s conftest.err'
4383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384  (eval $ac_try) 2>&5
4385  ac_status=$?
4386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387  (exit $ac_status); }; } &&
4388         { ac_try='test -s conftest$ac_exeext'
4389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390  (eval $ac_try) 2>&5
4391  ac_status=$?
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); }; }; then
4394  ac_cv_fortran_dummy_main=none
4395else
4396  echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399ac_cv_fortran_dummy_main=unknown
4400fi
4401rm -f conftest.err conftest.$ac_objext \
4402      conftest$ac_exeext conftest.$ac_ext
4403
4404 if test $ac_cv_fortran_dummy_main = unknown; then
4405   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4406     cat >conftest.$ac_ext <<_ACEOF
4407/* confdefs.h.  */
4408_ACEOF
4409cat confdefs.h >>conftest.$ac_ext
4410cat >>conftest.$ac_ext <<_ACEOF
4411/* end confdefs.h.  */
4412#define $ac_fortran_dm_var $ac_func
4413#ifdef F77_DUMMY_MAIN
4414
4415#  ifdef __cplusplus
4416     extern "C"
4417#  endif
4418   int F77_DUMMY_MAIN() { return 1; }
4419
4420#endif
4421int
4422main ()
4423{
4424
4425  ;
4426  return 0;
4427}
4428_ACEOF
4429rm -f conftest.$ac_objext conftest$ac_exeext
4430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431  (eval $ac_link) 2>conftest.er1
4432  ac_status=$?
4433  grep -v '^ *+' conftest.er1 >conftest.err
4434  rm -f conftest.er1
4435  cat conftest.err >&5
4436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437  (exit $ac_status); } &&
4438         { ac_try='test -z "$ac_c_werror_flag"
4439                         || test ! -s conftest.err'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; } &&
4445         { ac_try='test -s conftest$ac_exeext'
4446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447  (eval $ac_try) 2>&5
4448  ac_status=$?
4449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450  (exit $ac_status); }; }; then
4451  ac_cv_fortran_dummy_main=$ac_func; break
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456fi
4457rm -f conftest.err conftest.$ac_objext \
4458      conftest$ac_exeext conftest.$ac_ext
4459   done
4460 fi
4461 ac_ext=f
4462ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4463ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4465 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4466 rm -f conftest*
4467 LIBS=$ac_f77_dm_save_LIBS
4468
4469fi
4470echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4471echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4472F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4473if test "$F77_DUMMY_MAIN" != unknown; then
4474  if test $F77_DUMMY_MAIN != none; then
4475
4476cat >>confdefs.h <<_ACEOF
4477#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4478_ACEOF
4479
4480  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4481
4482cat >>confdefs.h <<\_ACEOF
4483#define FC_DUMMY_MAIN_EQ_F77 1
4484_ACEOF
4485
4486  fi
4487fi
4488else
4489  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4490See \`config.log' for more details." >&5
4491echo "$as_me: error: linking to Fortran libraries from C fails
4492See \`config.log' for more details." >&2;}
4493   { (exit 1); exit 1; }; }
4494fi
4495
4496
4497ac_ext=f
4498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4501
4502ac_ext=f
4503ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4504ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4506echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4507echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4508if test "${ac_cv_f77_mangling+set}" = set; then
4509  echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511  cat >conftest.$ac_ext <<_ACEOF
4512      subroutine foobar()
4513      return
4514      end
4515      subroutine foo_bar()
4516      return
4517      end
4518_ACEOF
4519rm -f conftest.$ac_objext
4520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521  (eval $ac_compile) 2>conftest.er1
4522  ac_status=$?
4523  grep -v '^ *+' conftest.er1 >conftest.err
4524  rm -f conftest.er1
4525  cat conftest.err >&5
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); } &&
4528         { ac_try='test -z "$ac_f77_werror_flag"
4529                         || test ! -s conftest.err'
4530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531  (eval $ac_try) 2>&5
4532  ac_status=$?
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); }; } &&
4535         { ac_try='test -s conftest.$ac_objext'
4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537  (eval $ac_try) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; }; then
4541  mv conftest.$ac_objext cfortran_test.$ac_objext
4542
4543  ac_save_LIBS=$LIBS
4544  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4545
4546  ac_ext=c
4547ac_cpp='$CPP $CPPFLAGS'
4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551  ac_success=no
4552  for ac_foobar in foobar FOOBAR; do
4553    for ac_underscore in "" "_"; do
4554      ac_func="$ac_foobar$ac_underscore"
4555      cat >conftest.$ac_ext <<_ACEOF
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561
4562/* Override any gcc2 internal prototype to avoid an error.  */
4563#ifdef __cplusplus
4564extern "C"
4565#endif
4566/* We use char because int might match the return type of a gcc2
4567   builtin and then its argument prototype would still apply.  */
4568char $ac_func ();
4569#ifdef F77_DUMMY_MAIN
4570
4571#  ifdef __cplusplus
4572     extern "C"
4573#  endif
4574   int F77_DUMMY_MAIN() { return 1; }
4575
4576#endif
4577int
4578main ()
4579{
4580$ac_func ();
4581  ;
4582  return 0;
4583}
4584_ACEOF
4585rm -f conftest.$ac_objext conftest$ac_exeext
4586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587  (eval $ac_link) 2>conftest.er1
4588  ac_status=$?
4589  grep -v '^ *+' conftest.er1 >conftest.err
4590  rm -f conftest.er1
4591  cat conftest.err >&5
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); } &&
4594         { ac_try='test -z "$ac_c_werror_flag"
4595                         || test ! -s conftest.err'
4596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597  (eval $ac_try) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; } &&
4601         { ac_try='test -s conftest$ac_exeext'
4602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603  (eval $ac_try) 2>&5
4604  ac_status=$?
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); }; }; then
4607  ac_success=yes; break 2
4608else
4609  echo "$as_me: failed program was:" >&5
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
4612fi
4613rm -f conftest.err conftest.$ac_objext \
4614      conftest$ac_exeext conftest.$ac_ext
4615    done
4616  done
4617  ac_ext=f
4618ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4619ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4621
4622  if test "$ac_success" = "yes"; then
4623     case $ac_foobar in
4624        foobar)
4625           ac_case=lower
4626           ac_foo_bar=foo_bar
4627           ;;
4628        FOOBAR)
4629           ac_case=upper
4630           ac_foo_bar=FOO_BAR
4631           ;;
4632     esac
4633
4634     ac_ext=c
4635ac_cpp='$CPP $CPPFLAGS'
4636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639     ac_success_extra=no
4640     for ac_extra in "" "_"; do
4641        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4642        cat >conftest.$ac_ext <<_ACEOF
4643/* confdefs.h.  */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h.  */
4648
4649/* Override any gcc2 internal prototype to avoid an error.  */
4650#ifdef __cplusplus
4651extern "C"
4652#endif
4653/* We use char because int might match the return type of a gcc2
4654   builtin and then its argument prototype would still apply.  */
4655char $ac_func ();
4656#ifdef F77_DUMMY_MAIN
4657
4658#  ifdef __cplusplus
4659     extern "C"
4660#  endif
4661   int F77_DUMMY_MAIN() { return 1; }
4662
4663#endif
4664int
4665main ()
4666{
4667$ac_func ();
4668  ;
4669  return 0;
4670}
4671_ACEOF
4672rm -f conftest.$ac_objext conftest$ac_exeext
4673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4674  (eval $ac_link) 2>conftest.er1
4675  ac_status=$?
4676  grep -v '^ *+' conftest.er1 >conftest.err
4677  rm -f conftest.er1
4678  cat conftest.err >&5
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); } &&
4681         { ac_try='test -z "$ac_c_werror_flag"
4682                         || test ! -s conftest.err'
4683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684  (eval $ac_try) 2>&5
4685  ac_status=$?
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); }; } &&
4688         { ac_try='test -s conftest$ac_exeext'
4689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690  (eval $ac_try) 2>&5
4691  ac_status=$?
4692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693  (exit $ac_status); }; }; then
4694  ac_success_extra=yes; break
4695else
4696  echo "$as_me: failed program was:" >&5
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
4699fi
4700rm -f conftest.err conftest.$ac_objext \
4701      conftest$ac_exeext conftest.$ac_ext
4702     done
4703     ac_ext=f
4704ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4705ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4707
4708     if test "$ac_success_extra" = "yes"; then
4709        ac_cv_f77_mangling="$ac_case case"
4710        if test -z "$ac_underscore"; then
4711           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4712        else
4713           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4714        fi
4715        if test -z "$ac_extra"; then
4716           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4717        else
4718           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4719        fi
4720      else
4721        ac_cv_f77_mangling="unknown"
4722      fi
4723  else
4724     ac_cv_f77_mangling="unknown"
4725  fi
4726
4727  LIBS=$ac_save_LIBS
4728  rm -f cfortran_test* conftest*
4729else
4730  echo "$as_me: failed program was:" >&5
4731sed 's/^/| /' conftest.$ac_ext >&5
4732
4733{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4734See \`config.log' for more details." >&5
4735echo "$as_me: error: cannot compile a simple Fortran program
4736See \`config.log' for more details." >&2;}
4737   { (exit 1); exit 1; }; }
4738fi
4739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740
4741fi
4742echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4743echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4744
4745ac_ext=f
4746ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4747ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4748ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4749
4750
4751ac_ext=f
4752ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4753ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4755
4756ac_ext=f
4757ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4758ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4759ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4760
4761
4762case $ac_cv_f77_mangling in
4763  "lower case, no underscore, no extra underscore")
4764          cat >>confdefs.h <<\_ACEOF
4765#define F77_FUNC(name,NAME) name
4766_ACEOF
4767
4768          cat >>confdefs.h <<\_ACEOF
4769#define F77_FUNC_(name,NAME) name
4770_ACEOF
4771 ;;
4772  "lower case, no underscore, extra underscore")
4773          cat >>confdefs.h <<\_ACEOF
4774#define F77_FUNC(name,NAME) name
4775_ACEOF
4776
4777          cat >>confdefs.h <<\_ACEOF
4778#define F77_FUNC_(name,NAME) name ## _
4779_ACEOF
4780 ;;
4781  "lower case, underscore, no extra underscore")
4782          cat >>confdefs.h <<\_ACEOF
4783#define F77_FUNC(name,NAME) name ## _
4784_ACEOF
4785
4786          cat >>confdefs.h <<\_ACEOF
4787#define F77_FUNC_(name,NAME) name ## _
4788_ACEOF
4789 ;;
4790  "lower case, underscore, extra underscore")
4791          cat >>confdefs.h <<\_ACEOF
4792#define F77_FUNC(name,NAME) name ## _
4793_ACEOF
4794
4795          cat >>confdefs.h <<\_ACEOF
4796#define F77_FUNC_(name,NAME) name ## __
4797_ACEOF
4798 ;;
4799  "upper case, no underscore, no extra underscore")
4800          cat >>confdefs.h <<\_ACEOF
4801#define F77_FUNC(name,NAME) NAME
4802_ACEOF
4803
4804          cat >>confdefs.h <<\_ACEOF
4805#define F77_FUNC_(name,NAME) NAME
4806_ACEOF
4807 ;;
4808  "upper case, no underscore, extra underscore")
4809          cat >>confdefs.h <<\_ACEOF
4810#define F77_FUNC(name,NAME) NAME
4811_ACEOF
4812
4813          cat >>confdefs.h <<\_ACEOF
4814#define F77_FUNC_(name,NAME) NAME ## _
4815_ACEOF
4816 ;;
4817  "upper case, underscore, no extra underscore")
4818          cat >>confdefs.h <<\_ACEOF
4819#define F77_FUNC(name,NAME) NAME ## _
4820_ACEOF
4821
4822          cat >>confdefs.h <<\_ACEOF
4823#define F77_FUNC_(name,NAME) NAME ## _
4824_ACEOF
4825 ;;
4826  "upper case, underscore, extra underscore")
4827          cat >>confdefs.h <<\_ACEOF
4828#define F77_FUNC(name,NAME) NAME ## _
4829_ACEOF
4830
4831          cat >>confdefs.h <<\_ACEOF
4832#define F77_FUNC_(name,NAME) NAME ## __
4833_ACEOF
4834 ;;
4835  *)
4836          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4837echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4838          ;;
4839esac
4840
4841ac_ext=f
4842ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4843ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4845
4846ac_ext=c
4847ac_cpp='$CPP $CPPFLAGS'
4848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851
4852
4853
4854
4855# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4856FILTERSQP_PCLIBS="$FLIBS"
4857
4858
4859# Check if pkg-config is available (to setup addlibs file)
4860
4861
4862# Check whether --enable-pkg-config or --disable-pkg-config was given.
4863if test "${enable_pkg_config+set}" = set; then
4864  enableval="$enable_pkg_config"
4865  use_pkgconfig="$enableval"
4866else
4867  use_pkgconfig=yes
4868fi;
4869
4870if test $use_pkgconfig = yes ; then
4871  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4872    if test -n "$ac_tool_prefix"; then
4873  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4874set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4875echo "$as_me:$LINENO: checking for $ac_word" >&5
4876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4877if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4878  echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880  case $PKG_CONFIG in
4881  [\\/]* | ?:[\\/]*)
4882  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4883  ;;
4884  *)
4885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890  for ac_exec_ext in '' $ac_executable_extensions; do
4891  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894    break 2
4895  fi
4896done
4897done
4898
4899  ;;
4900esac
4901fi
4902PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4903
4904if test -n "$PKG_CONFIG"; then
4905  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4906echo "${ECHO_T}$PKG_CONFIG" >&6
4907else
4908  echo "$as_me:$LINENO: result: no" >&5
4909echo "${ECHO_T}no" >&6
4910fi
4911
4912fi
4913if test -z "$ac_cv_path_PKG_CONFIG"; then
4914  ac_pt_PKG_CONFIG=$PKG_CONFIG
4915  # Extract the first word of "pkg-config", so it can be a program name with args.
4916set dummy pkg-config; ac_word=$2
4917echo "$as_me:$LINENO: checking for $ac_word" >&5
4918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4919if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4920  echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922  case $ac_pt_PKG_CONFIG in
4923  [\\/]* | ?:[\\/]*)
4924  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4925  ;;
4926  *)
4927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930  IFS=$as_save_IFS
4931  test -z "$as_dir" && as_dir=.
4932  for ac_exec_ext in '' $ac_executable_extensions; do
4933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936    break 2
4937  fi
4938done
4939done
4940
4941  ;;
4942esac
4943fi
4944ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4945
4946if test -n "$ac_pt_PKG_CONFIG"; then
4947  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4948echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4949else
4950  echo "$as_me:$LINENO: result: no" >&5
4951echo "${ECHO_T}no" >&6
4952fi
4953
4954  PKG_CONFIG=$ac_pt_PKG_CONFIG
4955else
4956  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4957fi
4958
4959  fi
4960  if test -n "$PKG_CONFIG"; then
4961    _pkg_min_version=0.16.0
4962    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4963echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4964    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4965      echo "$as_me:$LINENO: result: yes" >&5
4966echo "${ECHO_T}yes" >&6
4967    else
4968      echo "$as_me:$LINENO: result: no" >&5
4969echo "${ECHO_T}no" >&6
4970      PKG_CONFIG=""
4971    fi
4972  fi
4973
4974  # check if pkg-config supports the short-errors flag
4975  if test -n "$PKG_CONFIG" && \
4976    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4977    pkg_short_errors=" --short-errors "
4978  else
4979    pkg_short_errors=""
4980  fi
4981fi
4982
4983
4984
4985if test -n "$PKG_CONFIG"; then
4986  COIN_HAS_PKGCONFIG_TRUE=
4987  COIN_HAS_PKGCONFIG_FALSE='#'
4988else
4989  COIN_HAS_PKGCONFIG_TRUE='#'
4990  COIN_HAS_PKGCONFIG_FALSE=
4991fi
4992
4993
4994
4995# assemble pkg-config search path for installed projects
4996COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4997
4998# 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
4999# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
5000# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
5001if test "x${prefix}" = xNONE ; then
5002  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5003else
5004  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5005fi
5006
5007
5008# Check whether --with-coin-instdir or --without-coin-instdir was given.
5009if test "${with_coin_instdir+set}" = set; then
5010  withval="$with_coin_instdir"
5011  if test -d "$withval"; then : ; else
5012     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
5013echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
5014   { (exit 1); exit 1; }; }
5015   fi
5016   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
5017
5018fi;
5019
5020
5021
5022# assemble additional pkg-config search paths for uninstalled projects
5023if test x$coin_projectdir = xyes ; then
5024  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
5025  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
5026  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
5027  # 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)
5028  COIN_PKG_CONFIG_PATH_UNINSTALLED=
5029  if test -e ../coin_subdirs.txt ; then
5030    for i in `cat ../coin_subdirs.txt` ; do
5031      if test -d ../$i ; then
5032        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5033      fi
5034      if test -d ../$i/pkgconfig ; then
5035        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5036      fi
5037    done
5038  fi
5039
5040  if test -e ../../coin_subdirs.txt ; then
5041    for i in `cat ../../coin_subdirs.txt` ; do
5042      if test -d ../../$i ; then
5043        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5044      fi
5045      if test -d ../../$i/pkgconfig ; then
5046        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
5047      fi
5048    done
5049  fi
5050
5051
5052fi
5053
5054if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
5055  { 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
5056echo "$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;}
5057fi
5058
5059
5060
5061# Initialize automake
5062echo "$as_me:$LINENO: checking for egrep" >&5
5063echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5064if test "${ac_cv_prog_egrep+set}" = set; then
5065  echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5068    then ac_cv_prog_egrep='grep -E'
5069    else ac_cv_prog_egrep='egrep'
5070    fi
5071fi
5072echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5073echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5074 EGREP=$ac_cv_prog_egrep
5075
5076
5077echo "$as_me:$LINENO: checking whether ln -s works" >&5
5078echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5079LN_S=$as_ln_s
5080if test "$LN_S" = "ln -s"; then
5081  echo "$as_me:$LINENO: result: yes" >&5
5082echo "${ECHO_T}yes" >&6
5083else
5084  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5085echo "${ECHO_T}no, using $LN_S" >&6
5086fi
5087
5088am__api_version="1.9"
5089# Find a good install program.  We prefer a C program (faster),
5090# so one script is as good as another.  But avoid the broken or
5091# incompatible versions:
5092# SysV /etc/install, /usr/sbin/install
5093# SunOS /usr/etc/install
5094# IRIX /sbin/install
5095# AIX /bin/install
5096# AmigaOS /C/install, which installs bootblocks on floppy discs
5097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5098# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5100# OS/2's system install, which has a completely different semantic
5101# ./install, which can be erroneously created by make from ./install.sh.
5102echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5103echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5104if test -z "$INSTALL"; then
5105if test "${ac_cv_path_install+set}" = set; then
5106  echo $ECHO_N "(cached) $ECHO_C" >&6
5107else
5108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  test -z "$as_dir" && as_dir=.
5113  # Account for people who put trailing slashes in PATH elements.
5114case $as_dir/ in
5115  ./ | .// | /cC/* | \
5116  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5117  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5118  /usr/ucb/* ) ;;
5119  *)
5120    # OSF1 and SCO ODT 3.0 have their own names for install.
5121    # Don't use installbsd from OSF since it installs stuff as root
5122    # by default.
5123    for ac_prog in ginstall scoinst install; do
5124      for ac_exec_ext in '' $ac_executable_extensions; do
5125        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5126          if test $ac_prog = install &&
5127            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5128            # AIX install.  It has an incompatible calling convention.
5129            :
5130          elif test $ac_prog = install &&
5131            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5132            # program-specific install script used by HP pwplus--don't use.
5133            :
5134          else
5135            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5136            break 3
5137          fi
5138        fi
5139      done
5140    done
5141    ;;
5142esac
5143done
5144
5145
5146fi
5147  if test "${ac_cv_path_install+set}" = set; then
5148    INSTALL=$ac_cv_path_install
5149  else
5150    # As a last resort, use the slow shell script.  We don't cache a
5151    # path for INSTALL within a source directory, because that will
5152    # break other packages using the cache if that directory is
5153    # removed, or if the path is relative.
5154    INSTALL=$ac_install_sh
5155  fi
5156fi
5157echo "$as_me:$LINENO: result: $INSTALL" >&5
5158echo "${ECHO_T}$INSTALL" >&6
5159
5160# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5161# It thinks the first close brace ends the variable substitution.
5162test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5163
5164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5165
5166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5167
5168echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5169echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5170# Just in case
5171sleep 1
5172echo timestamp > conftest.file
5173# Do `set' in a subshell so we don't clobber the current shell's
5174# arguments.  Must try -L first in case configure is actually a
5175# symlink; some systems play weird games with the mod time of symlinks
5176# (eg FreeBSD returns the mod time of the symlink's containing
5177# directory).
5178if (
5179   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5180   if test "$*" = "X"; then
5181      # -L didn't work.
5182      set X `ls -t $srcdir/configure conftest.file`
5183   fi
5184   rm -f conftest.file
5185   if test "$*" != "X $srcdir/configure conftest.file" \
5186      && test "$*" != "X conftest.file $srcdir/configure"; then
5187
5188      # If neither matched, then we have a broken ls.  This can happen
5189      # if, for instance, CONFIG_SHELL is bash and it inherits a
5190      # broken ls alias from the environment.  This has actually
5191      # happened.  Such a system could not be considered "sane".
5192      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5193alias in your environment" >&5
5194echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5195alias in your environment" >&2;}
5196   { (exit 1); exit 1; }; }
5197   fi
5198
5199   test "$2" = conftest.file
5200   )
5201then
5202   # Ok.
5203   :
5204else
5205   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5206Check your system clock" >&5
5207echo "$as_me: error: newly created file is older than distributed files!
5208Check your system clock" >&2;}
5209   { (exit 1); exit 1; }; }
5210fi
5211echo "$as_me:$LINENO: result: yes" >&5
5212echo "${ECHO_T}yes" >&6
5213test "$program_prefix" != NONE &&
5214  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5215# Use a double $ so make ignores it.
5216test "$program_suffix" != NONE &&
5217  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5218# Double any \ or $.  echo might interpret backslashes.
5219# By default was `s,x,x', remove it if useless.
5220cat <<\_ACEOF >conftest.sed
5221s/[\\$]/&&/g;s/;s,x,x,$//
5222_ACEOF
5223program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5224rm conftest.sed
5225
5226# expand $ac_aux_dir to an absolute path
5227am_aux_dir=`cd $ac_aux_dir && pwd`
5228
5229test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5230# Use eval to expand $SHELL
5231if eval "$MISSING --run true"; then
5232  am_missing_run="$MISSING --run "
5233else
5234  am_missing_run=
5235  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5236echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5237fi
5238
5239if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5240  # We used to keeping the `.' as first argument, in order to
5241  # allow $(mkdir_p) to be used without argument.  As in
5242  #   $(mkdir_p) $(somedir)
5243  # where $(somedir) is conditionally defined.  However this is wrong
5244  # for two reasons:
5245  #  1. if the package is installed by a user who cannot write `.'
5246  #     make install will fail,
5247  #  2. the above comment should most certainly read
5248  #     $(mkdir_p) $(DESTDIR)$(somedir)
5249  #     so it does not work when $(somedir) is undefined and
5250  #     $(DESTDIR) is not.
5251  #  To support the latter case, we have to write
5252  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5253  #  so the `.' trick is pointless.
5254  mkdir_p='mkdir -p --'
5255else
5256  # On NextStep and OpenStep, the `mkdir' command does not
5257  # recognize any option.  It will interpret all options as
5258  # directories to create, and then abort because `.' already
5259  # exists.
5260  for d in ./-p ./--version;
5261  do
5262    test -d $d && rmdir $d
5263  done
5264  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5265  if test -f "$ac_aux_dir/mkinstalldirs"; then
5266    mkdir_p='$(mkinstalldirs)'
5267  else
5268    mkdir_p='$(install_sh) -d'
5269  fi
5270fi
5271
5272for ac_prog in gawk mawk nawk awk
5273do
5274  # Extract the first word of "$ac_prog", so it can be a program name with args.
5275set dummy $ac_prog; ac_word=$2
5276echo "$as_me:$LINENO: checking for $ac_word" >&5
5277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278if test "${ac_cv_prog_AWK+set}" = set; then
5279  echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281  if test -n "$AWK"; then
5282  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5283else
5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285for as_dir in $PATH
5286do
5287  IFS=$as_save_IFS
5288  test -z "$as_dir" && as_dir=.
5289  for ac_exec_ext in '' $ac_executable_extensions; do
5290  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291    ac_cv_prog_AWK="$ac_prog"
5292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293    break 2
5294  fi
5295done
5296done
5297
5298fi
5299fi
5300AWK=$ac_cv_prog_AWK
5301if test -n "$AWK"; then
5302  echo "$as_me:$LINENO: result: $AWK" >&5
5303echo "${ECHO_T}$AWK" >&6
5304else
5305  echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307fi
5308
5309  test -n "$AWK" && break
5310done
5311
5312echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5314set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5315if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318  cat >conftest.make <<\_ACEOF
5319all:
5320        @echo 'ac_maketemp="$(MAKE)"'
5321_ACEOF
5322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5323eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5324if test -n "$ac_maketemp"; then
5325  eval ac_cv_prog_make_${ac_make}_set=yes
5326else
5327  eval ac_cv_prog_make_${ac_make}_set=no
5328fi
5329rm -f conftest.make
5330fi
5331if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5332  echo "$as_me:$LINENO: result: yes" >&5
5333echo "${ECHO_T}yes" >&6
5334  SET_MAKE=
5335else
5336  echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338  SET_MAKE="MAKE=${MAKE-make}"
5339fi
5340
5341rm -rf .tst 2>/dev/null
5342mkdir .tst 2>/dev/null
5343if test -d .tst; then
5344  am__leading_dot=.
5345else
5346  am__leading_dot=_
5347fi
5348rmdir .tst 2>/dev/null
5349
5350DEPDIR="${am__leading_dot}deps"
5351
5352          ac_config_commands="$ac_config_commands depfiles"
5353
5354
5355am_make=${MAKE-make}
5356cat > confinc << 'END'
5357am__doit:
5358        @echo done
5359.PHONY: am__doit
5360END
5361# If we don't find an include directive, just comment out the code.
5362echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5363echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5364am__include="#"
5365am__quote=
5366_am_result=none
5367# First try GNU make style include.
5368echo "include confinc" > confmf
5369# We grep out `Entering directory' and `Leaving directory'
5370# messages which can occur if `w' ends up in MAKEFLAGS.
5371# In particular we don't look at `^make:' because GNU make might
5372# be invoked under some other name (usually "gmake"), in which
5373# case it prints its new name instead of `make'.
5374if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5375   am__include=include
5376   am__quote=
5377   _am_result=GNU
5378fi
5379# Now try BSD make style include.
5380if test "$am__include" = "#"; then
5381   echo '.include "confinc"' > confmf
5382   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5383      am__include=.include
5384      am__quote="\""
5385      _am_result=BSD
5386   fi
5387fi
5388
5389
5390echo "$as_me:$LINENO: result: $_am_result" >&5
5391echo "${ECHO_T}$_am_result" >&6
5392rm -f confinc confmf
5393
5394# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5395if test "${enable_dependency_tracking+set}" = set; then
5396  enableval="$enable_dependency_tracking"
5397
5398fi;
5399if test "x$enable_dependency_tracking" != xno; then
5400  am_depcomp="$ac_aux_dir/depcomp"
5401  AMDEPBACKSLASH='\'
5402fi
5403
5404
5405if test "x$enable_dependency_tracking" != xno; then
5406  AMDEP_TRUE=
5407  AMDEP_FALSE='#'
5408else
5409  AMDEP_TRUE='#'
5410  AMDEP_FALSE=
5411fi
5412
5413
5414
5415
5416
5417
5418# AC_MSG_NOTICE([Beginning automake initialisation.])
5419# Stuff for automake
5420# test to see if srcdir already configured
5421if test "`cd $srcdir && pwd`" != "`pwd`" &&
5422   test -f $srcdir/config.status; then
5423  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5424echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5425   { (exit 1); exit 1; }; }
5426fi
5427
5428# test whether we have cygpath
5429if test -z "$CYGPATH_W"; then
5430  if (cygpath --version) >/dev/null 2>/dev/null; then
5431    CYGPATH_W='cygpath -w'
5432  else
5433    CYGPATH_W=echo
5434  fi
5435fi
5436
5437
5438# Define the identity of the package.
5439 PACKAGE='thirdpartyfiltersqp'
5440 VERSION='1.2.0'
5441
5442
5443cat >>confdefs.h <<_ACEOF
5444#define PACKAGE "$PACKAGE"
5445_ACEOF
5446
5447
5448cat >>confdefs.h <<_ACEOF
5449#define VERSION "$VERSION"
5450_ACEOF
5451
5452# Some tools Automake needs.
5453
5454ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5455
5456
5457AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5458
5459
5460AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5461
5462
5463AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5464
5465
5466MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5467
5468install_sh=${install_sh-"$am_aux_dir/install-sh"}
5469
5470# Installed binaries are usually stripped using `strip' when the user
5471# run `make install-strip'.  However `strip' might not be the right
5472# tool to use in cross-compilation environments, therefore Automake
5473# will honor the `STRIP' environment variable to overrule this program.
5474if test "$cross_compiling" != no; then
5475  if test -n "$ac_tool_prefix"; then
5476  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5477set dummy ${ac_tool_prefix}strip; ac_word=$2
5478echo "$as_me:$LINENO: checking for $ac_word" >&5
5479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480if test "${ac_cv_prog_STRIP+set}" = set; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483  if test -n "$STRIP"; then
5484  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489  IFS=$as_save_IFS
5490  test -z "$as_dir" && as_dir=.
5491  for ac_exec_ext in '' $ac_executable_extensions; do
5492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495    break 2
5496  fi
5497done
5498done
5499
5500fi
5501fi
5502STRIP=$ac_cv_prog_STRIP
5503if test -n "$STRIP"; then
5504  echo "$as_me:$LINENO: result: $STRIP" >&5
5505echo "${ECHO_T}$STRIP" >&6
5506else
5507  echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509fi
5510
5511fi
5512if test -z "$ac_cv_prog_STRIP"; then
5513  ac_ct_STRIP=$STRIP
5514  # Extract the first word of "strip", so it can be a program name with args.
5515set dummy strip; ac_word=$2
5516echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  if test -n "$ac_ct_STRIP"; then
5522  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529  for ac_exec_ext in '' $ac_executable_extensions; do
5530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531    ac_cv_prog_ac_ct_STRIP="strip"
5532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536done
5537
5538  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5539fi
5540fi
5541ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5542if test -n "$ac_ct_STRIP"; then
5543  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5544echo "${ECHO_T}$ac_ct_STRIP" >&6
5545else
5546  echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
5550  STRIP=$ac_ct_STRIP
5551else
5552  STRIP="$ac_cv_prog_STRIP"
5553fi
5554
5555fi
5556INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5557
5558# We need awk for the "check" target.  The system "awk" is bad on
5559# some platforms.
5560# Always define AMTAR for backward compatibility.
5561
5562AMTAR=${AMTAR-"${am_missing_run}tar"}
5563
5564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5565
5566
5567
5568
5569depcc="$CC"   am_compiler_list=
5570
5571echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5572echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5573if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5574  echo $ECHO_N "(cached) $ECHO_C" >&6
5575else
5576  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5577  # We make a subdir and do the tests there.  Otherwise we can end up
5578  # making bogus files that we don't know about and never remove.  For
5579  # instance it was reported that on HP-UX the gcc test will end up
5580  # making a dummy file named `D' -- because `-MD' means `put the output
5581  # in D'.
5582  mkdir conftest.dir
5583  # Copy depcomp to subdir because otherwise we won't find it if we're
5584  # using a relative directory.
5585  cp "$am_depcomp" conftest.dir
5586  cd conftest.dir
5587  # We will build objects and dependencies in a subdirectory because
5588  # it helps to detect inapplicable dependency modes.  For instance
5589  # both Tru64's cc and ICC support -MD to output dependencies as a
5590  # side effect of compilation, but ICC will put the dependencies in
5591  # the current directory while Tru64 will put them in the object
5592  # directory.
5593  mkdir sub
5594
5595  am_cv_CC_dependencies_compiler_type=none
5596  if test "$am_compiler_list" = ""; then
5597     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5598  fi
5599  for depmode in $am_compiler_list; do
5600    # Setup a source with many dependencies, because some compilers
5601    # like to wrap large dependency lists on column 80 (with \), and
5602    # we should not choose a depcomp mode which is confused by this.
5603    #
5604    # We need to recreate these files for each test, as the compiler may
5605    # overwrite some of them when testing with obscure command lines.
5606    # This happens at least with the AIX C compiler.
5607    : > sub/conftest.c
5608    for i in 1 2 3 4 5 6; do
5609      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5610      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5611      # Solaris 8's {/usr,}/bin/sh.
5612      touch sub/conftst$i.h
5613    done
5614    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5615
5616    case $depmode in
5617    nosideeffect)
5618      # after this tag, mechanisms are not by side-effect, so they'll
5619      # only be used when explicitly requested
5620      if test "x$enable_dependency_tracking" = xyes; then
5621        continue
5622      else
5623        break
5624      fi
5625      ;;
5626    none) break ;;
5627    esac
5628    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5629    # mode.  It turns out that the SunPro C++ compiler does not properly
5630    # handle `-M -o', and we need to detect this.
5631    if depmode=$depmode \
5632       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5633       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5634       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5635         >/dev/null 2>conftest.err &&
5636       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5637       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5638       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5639      # icc doesn't choke on unknown options, it will just issue warnings
5640      # or remarks (even with -Werror).  So we grep stderr for any message
5641      # that says an option was ignored or not supported.
5642      # When given -MP, icc 7.0 and 7.1 complain thusly:
5643      #   icc: Command line warning: ignoring option '-M'; no argument required
5644      # The diagnosis changed in icc 8.0:
5645      #   icc: Command line remark: option '-MP' not supported
5646      if (grep 'ignoring option' conftest.err ||
5647          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5648        am_cv_CC_dependencies_compiler_type=$depmode
5649        break
5650      fi
5651    fi
5652  done
5653
5654  cd ..
5655  rm -rf conftest.dir
5656else
5657  am_cv_CC_dependencies_compiler_type=none
5658fi
5659
5660fi
5661echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5662echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5663CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5664
5665
5666
5667if
5668  test "x$enable_dependency_tracking" != xno \
5669  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5670  am__fastdepCC_TRUE=
5671  am__fastdepCC_FALSE='#'
5672else
5673  am__fastdepCC_TRUE='#'
5674  am__fastdepCC_FALSE=
5675fi
5676
5677
5678
5679echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5680echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5681    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5682if test "${enable_maintainer_mode+set}" = set; then
5683  enableval="$enable_maintainer_mode"
5684  USE_MAINTAINER_MODE=$enableval
5685else
5686  USE_MAINTAINER_MODE=no
5687fi;
5688  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5689echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5690
5691
5692if test $USE_MAINTAINER_MODE = yes; then
5693  MAINTAINER_MODE_TRUE=
5694  MAINTAINER_MODE_FALSE='#'
5695else
5696  MAINTAINER_MODE_TRUE='#'
5697  MAINTAINER_MODE_FALSE=
5698fi
5699
5700  MAINT=$MAINTAINER_MODE_TRUE
5701
5702
5703
5704coin_have_externals=no
5705if test "$enable_maintainer_mode" = yes; then
5706
5707  # If maintainer mode is chosen, we make sure that the correct versions
5708  # of the tools are used, and that we know where libtool.m4 is (to
5709  # recreate acinclude.m4)
5710
5711
5712  LIBTOOLM4=
5713  # Normally, $HOME
5714  AUTOTOOLS_DFLT=$HOME
5715
5716  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5717echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5718if test "${ac_cv_use_correct_autotools+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  ac_cv_use_correct_autotools=check
5722fi
5723echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5724echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5725
5726  if test $ac_cv_use_correct_autotools = check; then
5727    ac_cv_use_correct_autotools=yes
5728    # Check if we have autoconf
5729    # Extract the first word of "autoconf", so it can be a program name with args.
5730set dummy autoconf; ac_word=$2
5731echo "$as_me:$LINENO: checking for $ac_word" >&5
5732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5733if test "${ac_cv_prog_have_autoconf+set}" = set; then
5734  echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736  if test -n "$have_autoconf"; then
5737  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742  IFS=$as_save_IFS
5743  test -z "$as_dir" && as_dir=.
5744  for ac_exec_ext in '' $ac_executable_extensions; do
5745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746    ac_cv_prog_have_autoconf="yes"
5747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748    break 2
5749  fi
5750done
5751done
5752
5753  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5754fi
5755fi
5756have_autoconf=$ac_cv_prog_have_autoconf
5757if test -n "$have_autoconf"; then
5758  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5759echo "${ECHO_T}$have_autoconf" >&6
5760else
5761  echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763fi
5764
5765    if test $have_autoconf = no; then
5766      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5767echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5768   { (exit 1); exit 1; }; }
5769    fi
5770
5771    # Check whether autoconf is the correct version
5772    correct_version='2.59'
5773    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5774    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5775echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5776    autoconf --version > confauto.out 2>&1
5777    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5778      echo "$as_me:$LINENO: result: yes" >&5
5779echo "${ECHO_T}yes" >&6
5780    else
5781      rm -f confauto.out
5782      echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5785echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5786   { (exit 1); exit 1; }; }
5787    fi
5788    rm -f confauto.out
5789
5790    # Check if the executable autoconf is picked up from the correct location
5791    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5792echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5793    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5794    autoconf_dir=`cd $autoconf_dir; pwd`
5795    if test x$AUTOTOOLS_DIR = x; then
5796      want_dir=$AUTOTOOLS_DFLT/bin
5797    else
5798      want_dir=$AUTOTOOLS_DIR/bin
5799    fi
5800    if test $autoconf_dir = `cd $want_dir; pwd`; then
5801      echo "$as_me:$LINENO: result: yes" >&5
5802echo "${ECHO_T}yes" >&6
5803    else
5804      rm -f confauto.out
5805      echo "$as_me:$LINENO: result: no" >&5
5806echo "${ECHO_T}no" >&6
5807      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5808echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5809   { (exit 1); exit 1; }; }
5810    fi
5811
5812    # Check if we have automake
5813    # Extract the first word of "automake", so it can be a program name with args.
5814set dummy automake; ac_word=$2
5815echo "$as_me:$LINENO: checking for $ac_word" >&5
5816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5817if test "${ac_cv_prog_have_automake+set}" = set; then
5818  echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820  if test -n "$have_automake"; then
5821  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826  IFS=$as_save_IFS
5827  test -z "$as_dir" && as_dir=.
5828  for ac_exec_ext in '' $ac_executable_extensions; do
5829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5830    ac_cv_prog_have_automake="yes"
5831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832    break 2
5833  fi
5834done
5835done
5836
5837  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5838fi
5839fi
5840have_automake=$ac_cv_prog_have_automake
5841if test -n "$have_automake"; then
5842  echo "$as_me:$LINENO: result: $have_automake" >&5
5843echo "${ECHO_T}$have_automake" >&6
5844else
5845  echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847fi
5848
5849    if test $have_automake = no; then
5850      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5851echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5852   { (exit 1); exit 1; }; }
5853    fi
5854
5855    # Check whether automake is the correct version
5856    correct_version='1.9.6'
5857    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5858    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5859echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5860    automake --version > confauto.out 2>&1
5861    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5862      echo "$as_me:$LINENO: result: yes" >&5
5863echo "${ECHO_T}yes" >&6
5864    else
5865      rm -f confauto.out
5866      echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5869echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5870   { (exit 1); exit 1; }; }
5871    fi
5872    rm -f confauto.out
5873
5874    # Check if the executable automake is picked up from the correct location
5875    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5876echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5877    automake_dir=`which automake | sed -e 's=/automake=='`
5878    automake_dir=`cd $automake_dir; pwd`
5879    if test x$AUTOTOOLS_DIR = x; then
5880      want_dir=$AUTOTOOLS_DFLT/bin
5881    else
5882      want_dir=$AUTOTOOLS_DIR/bin
5883    fi
5884    if test $automake_dir = `cd $want_dir; pwd`; then
5885      echo "$as_me:$LINENO: result: yes" >&5
5886echo "${ECHO_T}yes" >&6
5887    else
5888      rm -f confauto.out
5889      echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5892echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5893   { (exit 1); exit 1; }; }
5894    fi
5895
5896    # Check if this is the correct version of libtool (with escaped dots)
5897    if test x$AUTOTOOLS_DIR = x; then
5898      want_dir=$AUTOTOOLS_DFLT/share
5899    else
5900      want_dir=$AUTOTOOLS_DIR/share
5901    fi
5902    correct_version='1.5.22'
5903    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5904    if test -r $want_dir/libtool/ltmain.sh; then
5905  have_ltmain=yes
5906  :
5907else
5908  have_ltmain=no
5909  :
5910fi
5911
5912    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5913echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5914    if test $have_ltmain = yes; then
5915    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5916        echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918      else
5919        echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5922echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5923   { (exit 1); exit 1; }; }
5924      fi
5925    else
5926      echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5929echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5930   { (exit 1); exit 1; }; }
5931    fi
5932  fi
5933
5934  # Check if we can find the libtool file
5935  if test x$AUTOTOOLS_DIR = x; then
5936    want_dir=$AUTOTOOLS_DFLT/share
5937  else
5938    want_dir=$AUTOTOOLS_DIR/share
5939  fi
5940  if test -r $want_dir/aclocal/libtool.m4; then
5941  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5942  :
5943else
5944  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5945echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5946   { (exit 1); exit 1; }; }
5947  :
5948fi
5949
5950
5951  # Check if we have an Dependencies file
5952  if test -r $srcdir/Dependencies; then
5953    coin_have_externals=yes
5954  fi
5955  # Check if subversion is installed and understands https
5956  # Extract the first word of "svn", so it can be a program name with args.
5957set dummy svn; ac_word=$2
5958echo "$as_me:$LINENO: checking for $ac_word" >&5
5959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5960if test "${ac_cv_prog_have_svn+set}" = set; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963  if test -n "$have_svn"; then
5964  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5965else
5966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967for as_dir in $PATH
5968do
5969  IFS=$as_save_IFS
5970  test -z "$as_dir" && as_dir=.
5971  for ac_exec_ext in '' $ac_executable_extensions; do
5972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973    ac_cv_prog_have_svn="yes"
5974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5975    break 2
5976  fi
5977done
5978done
5979
5980  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5981fi
5982fi
5983have_svn=$ac_cv_prog_have_svn
5984if test -n "$have_svn"; then
5985  echo "$as_me:$LINENO: result: $have_svn" >&5
5986echo "${ECHO_T}$have_svn" >&6
5987else
5988  echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990fi
5991
5992  if test x$have_svn = xyes; then
5993    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5994echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5995if test "${ac_cv_svn_understands_https+set}" = set; then
5996  echo $ECHO_N "(cached) $ECHO_C" >&6
5997else
5998  svn --version > confauto.out 2>&1
5999                    if $EGREP https confauto.out >/dev/null 2>&1; then
6000                      ac_cv_svn_understands_https=yes
6001                    else
6002                      ac_cv_svn_understands_https=no
6003                      have_svn=no
6004                      ac_cv_prog_have_svn=no
6005                    fi
6006                    rm -f confauto.out
6007fi
6008echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6009echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6010  fi
6011
6012  # Find the location of the BuildTools directory
6013  BUILDTOOLSDIR=
6014  if test -r $srcdir/BuildTools/coin.m4; then
6015    BUILDTOOLSDIR=$srcdir/BuildTools
6016  else
6017    if test -r $srcdir/../BuildTools/coin.m4; then
6018      BUILDTOOLSDIR=$srcdir/../BuildTools
6019    else
6020      if test -r $srcdir/../../BuildTools/coin.m4; then
6021        BUILDTOOLSDIR=$srcdir/../../BuildTools
6022      else
6023        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6024echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6025   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6026      fi
6027    fi
6028  fi
6029
6030
6031  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6032  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6033    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6034  fi
6035
6036  # The following variable is set to the name of the directory where
6037  # the autotool scripts are located
6038
6039  AUX_DIR=$ac_aux_dir
6040fi
6041
6042# helpful variable for the base directory of this package
6043abs_source_dir=`cd $srcdir; pwd`
6044
6045
6046# Stuff for example Makefiles
6047if test x$prefix = xNONE; then
6048  full_prefix=$ac_default_prefix
6049else
6050  full_prefix=$prefix
6051fi
6052full_prefix=`cd $full_prefix ; pwd`
6053
6054abs_lib_dir=$full_prefix/lib
6055
6056abs_include_dir=$full_prefix/include
6057
6058abs_bin_dir=$full_prefix/bin
6059
6060
6061
6062if test $coin_have_externals = yes && test x$have_svn = xyes; then
6063  HAVE_EXTERNALS_TRUE=
6064  HAVE_EXTERNALS_FALSE='#'
6065else
6066  HAVE_EXTERNALS_TRUE='#'
6067  HAVE_EXTERNALS_FALSE=
6068fi
6069
6070
6071# AC_MSG_NOTICE([End automake initialisation.])
6072
6073
6074
6075# Initialize automake
6076{
6077
6078
6079
6080# START
6081
6082# Test if force_shared has been set
6083if test "x" = xforce_shared; then
6084  if test x$enable_shared = xno; then
6085    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
6086echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
6087   { (exit 1); exit 1; }; }
6088  fi
6089  enable_shared=yes;
6090else
6091  # On Cygwin and AIX, building DLLs doesn't work
6092  case $build in
6093    *-cygwin*)
6094      coin_disable_shared=yes
6095      platform=Cygwin
6096    ;;
6097    *-aix*)
6098      coin_disable_shared=yes
6099      platform=AIX
6100    ;;
6101    *-mingw*)
6102      coin_disable_shared=yes
6103      platform="Msys"
6104#      case "$CXX" in
6105#        cl*)
6106#          coin_disable_shared=yes
6107#          platform="Msys with cl"
6108#      ;;
6109#      esac
6110    ;;
6111  esac
6112fi
6113if test x"$coin_disable_shared" = xyes; then
6114  if test x"$enable_shared" = xyes; then
6115    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
6116echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
6117  fi
6118  enable_shared=no
6119fi
6120# By default, we only want the shared objects to be compiled
6121# Check whether --enable-static or --disable-static was given.
6122if test "${enable_static+set}" = set; then
6123  enableval="$enable_static"
6124  p=${PACKAGE-default}
6125    case $enableval in
6126    yes) enable_static=yes ;;
6127    no) enable_static=no ;;
6128    *)
6129     enable_static=no
6130      # Look at the argument we got.  We use all the common list separators.
6131      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6132      for pkg in $enableval; do
6133        IFS="$lt_save_ifs"
6134        if test "X$pkg" = "X$p"; then
6135          enable_static=yes
6136        fi
6137      done
6138      IFS="$lt_save_ifs"
6139      ;;
6140    esac
6141else
6142  enable_static=no
6143fi;
6144
6145
6146
6147
6148# Initialize automake
6149
6150
6151
6152# AC_MSG_NOTICE([Beginning automake initialisation.])
6153# Stuff for automake
6154# test to see if srcdir already configured
6155if test "`cd $srcdir && pwd`" != "`pwd`" &&
6156   test -f $srcdir/config.status; then
6157  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6158echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6159   { (exit 1); exit 1; }; }
6160fi
6161
6162# test whether we have cygpath
6163if test -z "$CYGPATH_W"; then
6164  if (cygpath --version) >/dev/null 2>/dev/null; then
6165    CYGPATH_W='cygpath -w'
6166  else
6167    CYGPATH_W=echo
6168  fi
6169fi
6170
6171
6172# Define the identity of the package.
6173 PACKAGE='thirdpartyfiltersqp'
6174 VERSION='1.2.0'
6175
6176
6177cat >>confdefs.h <<_ACEOF
6178#define PACKAGE "$PACKAGE"
6179_ACEOF
6180
6181
6182cat >>confdefs.h <<_ACEOF
6183#define VERSION "$VERSION"
6184_ACEOF
6185
6186# Some tools Automake needs.
6187
6188ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6189
6190
6191AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6192
6193
6194AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6195
6196
6197AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6198
6199
6200MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6201
6202install_sh=${install_sh-"$am_aux_dir/install-sh"}
6203
6204# Installed binaries are usually stripped using `strip' when the user
6205# run `make install-strip'.  However `strip' might not be the right
6206# tool to use in cross-compilation environments, therefore Automake
6207# will honor the `STRIP' environment variable to overrule this program.
6208if test "$cross_compiling" != no; then
6209  if test -n "$ac_tool_prefix"; then
6210  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6211set dummy ${ac_tool_prefix}strip; ac_word=$2
6212echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6214if test "${ac_cv_prog_STRIP+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  if test -n "$STRIP"; then
6218  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223  IFS=$as_save_IFS
6224  test -z "$as_dir" && as_dir=.
6225  for ac_exec_ext in '' $ac_executable_extensions; do
6226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229    break 2
6230  fi
6231done
6232done
6233
6234fi
6235fi
6236STRIP=$ac_cv_prog_STRIP
6237if test -n "$STRIP"; then
6238  echo "$as_me:$LINENO: result: $STRIP" >&5
6239echo "${ECHO_T}$STRIP" >&6
6240else
6241  echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6
6243fi
6244
6245fi
6246if test -z "$ac_cv_prog_STRIP"; then
6247  ac_ct_STRIP=$STRIP
6248  # Extract the first word of "strip", so it can be a program name with args.
6249set dummy strip; ac_word=$2
6250echo "$as_me:$LINENO: checking for $ac_word" >&5
6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6253  echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255  if test -n "$ac_ct_STRIP"; then
6256  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261  IFS=$as_save_IFS
6262  test -z "$as_dir" && as_dir=.
6263  for ac_exec_ext in '' $ac_executable_extensions; do
6264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265    ac_cv_prog_ac_ct_STRIP="strip"
6266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267    break 2
6268  fi
6269done
6270done
6271
6272  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6273fi
6274fi
6275ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6276if test -n "$ac_ct_STRIP"; then
6277  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6278echo "${ECHO_T}$ac_ct_STRIP" >&6
6279else
6280  echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6
6282fi
6283
6284  STRIP=$ac_ct_STRIP
6285else
6286  STRIP="$ac_cv_prog_STRIP"
6287fi
6288
6289fi
6290INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6291
6292# We need awk for the "check" target.  The system "awk" is bad on
6293# some platforms.
6294# Always define AMTAR for backward compatibility.
6295
6296AMTAR=${AMTAR-"${am_missing_run}tar"}
6297
6298am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6299
6300
6301
6302
6303depcc="$CC"   am_compiler_list=
6304
6305echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6306echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6307if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6308  echo $ECHO_N "(cached) $ECHO_C" >&6
6309else
6310  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6311  # We make a subdir and do the tests there.  Otherwise we can end up
6312  # making bogus files that we don't know about and never remove.  For
6313  # instance it was reported that on HP-UX the gcc test will end up
6314  # making a dummy file named `D' -- because `-MD' means `put the output
6315  # in D'.
6316  mkdir conftest.dir
6317  # Copy depcomp to subdir because otherwise we won't find it if we're
6318  # using a relative directory.
6319  cp "$am_depcomp" conftest.dir
6320  cd conftest.dir
6321  # We will build objects and dependencies in a subdirectory because
6322  # it helps to detect inapplicable dependency modes.  For instance
6323  # both Tru64's cc and ICC support -MD to output dependencies as a
6324  # side effect of compilation, but ICC will put the dependencies in
6325  # the current directory while Tru64 will put them in the object
6326  # directory.
6327  mkdir sub
6328
6329  am_cv_CC_dependencies_compiler_type=none
6330  if test "$am_compiler_list" = ""; then
6331     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6332  fi
6333  for depmode in $am_compiler_list; do
6334    # Setup a source with many dependencies, because some compilers
6335    # like to wrap large dependency lists on column 80 (with \), and
6336    # we should not choose a depcomp mode which is confused by this.
6337    #
6338    # We need to recreate these files for each test, as the compiler may
6339    # overwrite some of them when testing with obscure command lines.
6340    # This happens at least with the AIX C compiler.
6341    : > sub/conftest.c
6342    for i in 1 2 3 4 5 6; do
6343      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6344      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6345      # Solaris 8's {/usr,}/bin/sh.
6346      touch sub/conftst$i.h
6347    done
6348    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6349
6350    case $depmode in
6351    nosideeffect)
6352      # after this tag, mechanisms are not by side-effect, so they'll
6353      # only be used when explicitly requested
6354      if test "x$enable_dependency_tracking" = xyes; then
6355        continue
6356      else
6357        break
6358      fi
6359      ;;
6360    none) break ;;
6361    esac
6362    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6363    # mode.  It turns out that the SunPro C++ compiler does not properly
6364    # handle `-M -o', and we need to detect this.
6365    if depmode=$depmode \
6366       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6367       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6368       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6369         >/dev/null 2>conftest.err &&
6370       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6371       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6372       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6373      # icc doesn't choke on unknown options, it will just issue warnings
6374      # or remarks (even with -Werror).  So we grep stderr for any message
6375      # that says an option was ignored or not supported.
6376      # When given -MP, icc 7.0 and 7.1 complain thusly:
6377      #   icc: Command line warning: ignoring option '-M'; no argument required
6378      # The diagnosis changed in icc 8.0:
6379      #   icc: Command line remark: option '-MP' not supported
6380      if (grep 'ignoring option' conftest.err ||
6381          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6382        am_cv_CC_dependencies_compiler_type=$depmode
6383        break
6384      fi
6385    fi
6386  done
6387
6388  cd ..
6389  rm -rf conftest.dir
6390else
6391  am_cv_CC_dependencies_compiler_type=none
6392fi
6393
6394fi
6395echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6396echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6398
6399
6400
6401if
6402  test "x$enable_dependency_tracking" != xno \
6403  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6404  am__fastdepCC_TRUE=
6405  am__fastdepCC_FALSE='#'
6406else
6407  am__fastdepCC_TRUE='#'
6408  am__fastdepCC_FALSE=
6409fi
6410
6411
6412
6413echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6414echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6415    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6416if test "${enable_maintainer_mode+set}" = set; then
6417  enableval="$enable_maintainer_mode"
6418  USE_MAINTAINER_MODE=$enableval
6419else
6420  USE_MAINTAINER_MODE=no
6421fi;
6422  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6423echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6424
6425
6426if test $USE_MAINTAINER_MODE = yes; then
6427  MAINTAINER_MODE_TRUE=
6428  MAINTAINER_MODE_FALSE='#'
6429else
6430  MAINTAINER_MODE_TRUE='#'
6431  MAINTAINER_MODE_FALSE=
6432fi
6433
6434  MAINT=$MAINTAINER_MODE_TRUE
6435
6436
6437
6438coin_have_externals=no
6439if test "$enable_maintainer_mode" = yes; then
6440
6441  # If maintainer mode is chosen, we make sure that the correct versions
6442  # of the tools are used, and that we know where libtool.m4 is (to
6443  # recreate acinclude.m4)
6444
6445
6446  LIBTOOLM4=
6447  # Normally, $HOME
6448  AUTOTOOLS_DFLT=$HOME
6449
6450  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6451echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6452if test "${ac_cv_use_correct_autotools+set}" = set; then
6453  echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455  ac_cv_use_correct_autotools=check
6456fi
6457echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6458echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6459
6460  if test $ac_cv_use_correct_autotools = check; then
6461    ac_cv_use_correct_autotools=yes
6462    # Check if we have autoconf
6463    # Extract the first word of "autoconf", so it can be a program name with args.
6464set dummy autoconf; ac_word=$2
6465echo "$as_me:$LINENO: checking for $ac_word" >&5
6466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6467if test "${ac_cv_prog_have_autoconf+set}" = set; then
6468  echo $ECHO_N "(cached) $ECHO_C" >&6
6469else
6470  if test -n "$have_autoconf"; then
6471  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478  for ac_exec_ext in '' $ac_executable_extensions; do
6479  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_have_autoconf="yes"
6481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485done
6486
6487  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6488fi
6489fi
6490have_autoconf=$ac_cv_prog_have_autoconf
6491if test -n "$have_autoconf"; then
6492  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6493echo "${ECHO_T}$have_autoconf" >&6
6494else
6495  echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497fi
6498
6499    if test $have_autoconf = no; then
6500      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6501echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6502   { (exit 1); exit 1; }; }
6503    fi
6504
6505    # Check whether autoconf is the correct version
6506    correct_version='2.59'
6507    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6508    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6509echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6510    autoconf --version > confauto.out 2>&1
6511    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6512      echo "$as_me:$LINENO: result: yes" >&5
6513echo "${ECHO_T}yes" >&6
6514    else
6515      rm -f confauto.out
6516      echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6519echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6520   { (exit 1); exit 1; }; }
6521    fi
6522    rm -f confauto.out
6523
6524    # Check if the executable autoconf is picked up from the correct location
6525    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6526echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6527    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6528    autoconf_dir=`cd $autoconf_dir; pwd`
6529    if test x$AUTOTOOLS_DIR = x; then
6530      want_dir=$AUTOTOOLS_DFLT/bin
6531    else
6532      want_dir=$AUTOTOOLS_DIR/bin
6533    fi
6534    if test $autoconf_dir = `cd $want_dir; pwd`; then
6535      echo "$as_me:$LINENO: result: yes" >&5
6536echo "${ECHO_T}yes" >&6
6537    else
6538      rm -f confauto.out
6539      echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6542echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6543   { (exit 1); exit 1; }; }
6544    fi
6545
6546    # Check if we have automake
6547    # Extract the first word of "automake", so it can be a program name with args.
6548set dummy automake; ac_word=$2
6549echo "$as_me:$LINENO: checking for $ac_word" >&5
6550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6551if test "${ac_cv_prog_have_automake+set}" = set; then
6552  echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554  if test -n "$have_automake"; then
6555  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560  IFS=$as_save_IFS
6561  test -z "$as_dir" && as_dir=.
6562  for ac_exec_ext in '' $ac_executable_extensions; do
6563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564    ac_cv_prog_have_automake="yes"
6565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566    break 2
6567  fi
6568done
6569done
6570
6571  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6572fi
6573fi
6574have_automake=$ac_cv_prog_have_automake
6575if test -n "$have_automake"; then
6576  echo "$as_me:$LINENO: result: $have_automake" >&5
6577echo "${ECHO_T}$have_automake" >&6
6578else
6579  echo "$as_me:$LINENO: result: no" >&5
6580echo "${ECHO_T}no" >&6
6581fi
6582
6583    if test $have_automake = no; then
6584      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6585echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6586   { (exit 1); exit 1; }; }
6587    fi
6588
6589    # Check whether automake is the correct version
6590    correct_version='1.9.6'
6591    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6592    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6593echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6594    automake --version > confauto.out 2>&1
6595    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6596      echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598    else
6599      rm -f confauto.out
6600      echo "$as_me:$LINENO: result: no" >&5
6601echo "${ECHO_T}no" >&6
6602      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6603echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6604   { (exit 1); exit 1; }; }
6605    fi
6606    rm -f confauto.out
6607
6608    # Check if the executable automake is picked up from the correct location
6609    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6610echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6611    automake_dir=`which automake | sed -e 's=/automake=='`
6612    automake_dir=`cd $automake_dir; pwd`
6613    if test x$AUTOTOOLS_DIR = x; then
6614      want_dir=$AUTOTOOLS_DFLT/bin
6615    else
6616      want_dir=$AUTOTOOLS_DIR/bin
6617    fi
6618    if test $automake_dir = `cd $want_dir; pwd`; then
6619      echo "$as_me:$LINENO: result: yes" >&5
6620echo "${ECHO_T}yes" >&6
6621    else
6622      rm -f confauto.out
6623      echo "$as_me:$LINENO: result: no" >&5
6624echo "${ECHO_T}no" >&6
6625      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6626echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6627   { (exit 1); exit 1; }; }
6628    fi
6629
6630    # Check if this is the correct version of libtool (with escaped dots)
6631    if test x$AUTOTOOLS_DIR = x; then
6632      want_dir=$AUTOTOOLS_DFLT/share
6633    else
6634      want_dir=$AUTOTOOLS_DIR/share
6635    fi
6636    correct_version='1.5.22'
6637    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6638    if test -r $want_dir/libtool/ltmain.sh; then
6639  have_ltmain=yes
6640  :
6641else
6642  have_ltmain=no
6643  :
6644fi
6645
6646    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6647echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6648    if test $have_ltmain = yes; then
6649    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6650        echo "$as_me:$LINENO: result: yes" >&5
6651echo "${ECHO_T}yes" >&6
6652      else
6653        echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6
6655        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6656echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6657   { (exit 1); exit 1; }; }
6658      fi
6659    else
6660      echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
6662      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6663echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6664   { (exit 1); exit 1; }; }
6665    fi
6666  fi
6667
6668  # Check if we can find the libtool file
6669  if test x$AUTOTOOLS_DIR = x; then
6670    want_dir=$AUTOTOOLS_DFLT/share
6671  else
6672    want_dir=$AUTOTOOLS_DIR/share
6673  fi
6674  if test -r $want_dir/aclocal/libtool.m4; then
6675  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6676  :
6677else
6678  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6679echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6680   { (exit 1); exit 1; }; }
6681  :
6682fi
6683
6684
6685  # Check if we have an Dependencies file
6686  if test -r $srcdir/Dependencies; then
6687    coin_have_externals=yes
6688  fi
6689  # Check if subversion is installed and understands https
6690  # Extract the first word of "svn", so it can be a program name with args.
6691set dummy svn; ac_word=$2
6692echo "$as_me:$LINENO: checking for $ac_word" >&5
6693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6694if test "${ac_cv_prog_have_svn+set}" = set; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  if test -n "$have_svn"; then
6698  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705  for ac_exec_ext in '' $ac_executable_extensions; do
6706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707    ac_cv_prog_have_svn="yes"
6708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709    break 2
6710  fi
6711done
6712done
6713
6714  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6715fi
6716fi
6717have_svn=$ac_cv_prog_have_svn
6718if test -n "$have_svn"; then
6719  echo "$as_me:$LINENO: result: $have_svn" >&5
6720echo "${ECHO_T}$have_svn" >&6
6721else
6722  echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
6724fi
6725
6726  if test x$have_svn = xyes; then
6727    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6728echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6729if test "${ac_cv_svn_understands_https+set}" = set; then
6730  echo $ECHO_N "(cached) $ECHO_C" >&6
6731else
6732  svn --version > confauto.out 2>&1
6733                    if $EGREP https confauto.out >/dev/null 2>&1; then
6734                      ac_cv_svn_understands_https=yes
6735                    else
6736                      ac_cv_svn_understands_https=no
6737                      have_svn=no
6738                      ac_cv_prog_have_svn=no
6739                    fi
6740                    rm -f confauto.out
6741fi
6742echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6743echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6744  fi
6745
6746  # Find the location of the BuildTools directory
6747  BUILDTOOLSDIR=
6748  if test -r $srcdir/BuildTools/coin.m4; then
6749    BUILDTOOLSDIR=$srcdir/BuildTools
6750  else
6751    if test -r $srcdir/../BuildTools/coin.m4; then
6752      BUILDTOOLSDIR=$srcdir/../BuildTools
6753    else
6754      if test -r $srcdir/../../BuildTools/coin.m4; then
6755        BUILDTOOLSDIR=$srcdir/../../BuildTools
6756      else
6757        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6758echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6759   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6760      fi
6761    fi
6762  fi
6763
6764
6765  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6766  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6767    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6768  fi
6769
6770  # The following variable is set to the name of the directory where
6771  # the autotool scripts are located
6772
6773  AUX_DIR=$ac_aux_dir
6774fi
6775
6776# helpful variable for the base directory of this package
6777abs_source_dir=`cd $srcdir; pwd`
6778
6779
6780# Stuff for example Makefiles
6781if test x$prefix = xNONE; then
6782  full_prefix=$ac_default_prefix
6783else
6784  full_prefix=$prefix
6785fi
6786full_prefix=`cd $full_prefix ; pwd`
6787
6788abs_lib_dir=$full_prefix/lib
6789
6790abs_include_dir=$full_prefix/include
6791
6792abs_bin_dir=$full_prefix/bin
6793
6794
6795
6796if test $coin_have_externals = yes && test x$have_svn = xyes; then
6797  HAVE_EXTERNALS_TRUE=
6798  HAVE_EXTERNALS_FALSE='#'
6799else
6800  HAVE_EXTERNALS_TRUE='#'
6801  HAVE_EXTERNALS_FALSE=
6802fi
6803
6804
6805# AC_MSG_NOTICE([End automake initialisation.])
6806
6807
6808
6809LIBTOOL=
6810if test -r ../libtool; then
6811  coin_config_dir=..
6812  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6813fi
6814if test "x$LIBTOOL" = x; then
6815  if test -r ../../libtool; then
6816    coin_config_dir=../..
6817    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6818  fi
6819fi
6820
6821if test "x$LIBTOOL" = x; then
6822# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6823  # Stuff for libtool
6824  # Check whether --enable-shared or --disable-shared was given.
6825if test "${enable_shared+set}" = set; then
6826  enableval="$enable_shared"
6827  p=${PACKAGE-default}
6828    case $enableval in
6829    yes) enable_shared=yes ;;
6830    no) enable_shared=no ;;
6831    *)
6832      enable_shared=no
6833      # Look at the argument we got.  We use all the common list separators.
6834      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6835      for pkg in $enableval; do
6836        IFS="$lt_save_ifs"
6837        if test "X$pkg" = "X$p"; then
6838          enable_shared=yes
6839        fi
6840      done
6841      IFS="$lt_save_ifs"
6842      ;;
6843    esac
6844else
6845  enable_shared=yes
6846fi;
6847
6848# Check whether --enable-fast-install or --disable-fast-install was given.
6849if test "${enable_fast_install+set}" = set; then
6850  enableval="$enable_fast_install"
6851  p=${PACKAGE-default}
6852    case $enableval in
6853    yes) enable_fast_install=yes ;;
6854    no) enable_fast_install=no ;;
6855    *)
6856      enable_fast_install=no
6857      # Look at the argument we got.  We use all the common list separators.
6858      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6859      for pkg in $enableval; do
6860        IFS="$lt_save_ifs"
6861        if test "X$pkg" = "X$p"; then
6862          enable_fast_install=yes
6863        fi
6864      done
6865      IFS="$lt_save_ifs"
6866      ;;
6867    esac
6868else
6869  enable_fast_install=yes
6870fi;
6871
6872echo "$as_me:$LINENO: checking host system type" >&5
6873echo $ECHO_N "checking host system type... $ECHO_C" >&6
6874if test "${ac_cv_host+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877  ac_cv_host_alias=$host_alias
6878test -z "$ac_cv_host_alias" &&
6879  ac_cv_host_alias=$ac_cv_build_alias
6880ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6881  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6882echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6883   { (exit 1); exit 1; }; }
6884
6885fi
6886echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6887echo "${ECHO_T}$ac_cv_host" >&6
6888host=$ac_cv_host
6889host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6890host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6891host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6892
6893
6894echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6895echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6896if test "${lt_cv_path_SED+set}" = set; then
6897  echo $ECHO_N "(cached) $ECHO_C" >&6
6898else
6899  # Loop through the user's path and test for sed and gsed.
6900# Then use that list of sed's as ones to test for truncation.
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904  IFS=$as_save_IFS
6905  test -z "$as_dir" && as_dir=.
6906  for lt_ac_prog in sed gsed; do
6907    for ac_exec_ext in '' $ac_executable_extensions; do
6908      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6909        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6910      fi
6911    done
6912  done
6913done
6914lt_ac_max=0
6915lt_ac_count=0
6916# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6917# along with /bin/sed that truncates output.
6918for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6919  test ! -f $lt_ac_sed && continue
6920  cat /dev/null > conftest.in
6921  lt_ac_count=0
6922  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6923  # Check for GNU sed and select it if it is found.
6924  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6925    lt_cv_path_SED=$lt_ac_sed
6926    break
6927  fi
6928  while true; do
6929    cat conftest.in conftest.in >conftest.tmp
6930    mv conftest.tmp conftest.in
6931    cp conftest.in conftest.nl
6932    echo >>conftest.nl
6933    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6934    cmp -s conftest.out conftest.nl || break
6935    # 10000 chars as input seems more than enough
6936    test $lt_ac_count -gt 10 && break
6937    lt_ac_count=`expr $lt_ac_count + 1`
6938    if test $lt_ac_count -gt $lt_ac_max; then
6939      lt_ac_max=$lt_ac_count
6940      lt_cv_path_SED=$lt_ac_sed
6941    fi
6942  done
6943done
6944
6945fi
6946
6947SED=$lt_cv_path_SED
6948echo "$as_me:$LINENO: result: $SED" >&5
6949echo "${ECHO_T}$SED" >&6
6950
6951
6952# Check whether --with-gnu-ld or --without-gnu-ld was given.
6953if test "${with_gnu_ld+set}" = set; then
6954  withval="$with_gnu_ld"
6955  test "$withval" = no || with_gnu_ld=yes
6956else
6957  with_gnu_ld=no
6958fi;
6959ac_prog=ld
6960if test "$GCC" = yes; then
6961  # Check if gcc -print-prog-name=ld gives a path.
6962  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6963echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6964  case $host in
6965  *-*-mingw*)
6966    # gcc leaves a trailing carriage return which upsets mingw
6967    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6968  *)
6969    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6970  esac
6971  case $ac_prog in
6972    # Accept absolute paths.
6973    [\\/]* | ?:[\\/]*)
6974      re_direlt='/[^/][^/]*/\.\./'
6975      # Canonicalize the pathname of ld
6976      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6977      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6978        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6979      done
6980      test -z "$LD" && LD="$ac_prog"
6981      ;;
6982  "")
6983    # If it fails, then pretend we aren't using GCC.
6984    ac_prog=ld
6985    ;;
6986  *)
6987    # If it is relative, then search for the first ld in PATH.
6988    with_gnu_ld=unknown
6989    ;;
6990  esac
6991elif test "$with_gnu_ld" = yes; then
6992  echo "$as_me:$LINENO: checking for GNU ld" >&5
6993echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6994else
6995  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6996echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6997fi
6998if test "${lt_cv_path_LD+set}" = set; then
6999  echo $ECHO_N "(cached) $ECHO_C" >&6
7000else
7001  if test -z "$LD"; then
7002  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7003  for ac_dir in $PATH; do
7004    IFS="$lt_save_ifs"
7005    test -z "$ac_dir" && ac_dir=.
7006    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7007      lt_cv_path_LD="$ac_dir/$ac_prog"
7008      # Check to see if the program is GNU ld.  I'd rather use --version,
7009      # but apparently some variants of GNU ld only accept -v.
7010      # Break only if it was the GNU/non-GNU ld that we prefer.
7011      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7012      *GNU* | *'with BFD'*)
7013        test "$with_gnu_ld" != no && break
7014        ;;
7015      *)
7016        test "$with_gnu_ld" != yes && break
7017        ;;
7018      esac
7019    fi
7020  done
7021  IFS="$lt_save_ifs"
7022else
7023  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7024fi
7025fi
7026
7027LD="$lt_cv_path_LD"
7028if test -n "$LD"; then
7029  echo "$as_me:$LINENO: result: $LD" >&5
7030echo "${ECHO_T}$LD" >&6
7031else
7032  echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6
7034fi
7035test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7036echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7037   { (exit 1); exit 1; }; }
7038echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7039echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7040if test "${lt_cv_prog_gnu_ld+set}" = set; then
7041  echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7044case `$LD -v 2>&1 </dev/null` in
7045*GNU* | *'with BFD'*)
7046  lt_cv_prog_gnu_ld=yes
7047  ;;
7048*)
7049  lt_cv_prog_gnu_ld=no
7050  ;;
7051esac
7052fi
7053echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7054echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7055with_gnu_ld=$lt_cv_prog_gnu_ld
7056
7057
7058echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7059echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7060if test "${lt_cv_ld_reload_flag+set}" = set; then
7061  echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063  lt_cv_ld_reload_flag='-r'
7064fi
7065echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7066echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7067reload_flag=$lt_cv_ld_reload_flag
7068case $reload_flag in
7069"" | " "*) ;;
7070*) reload_flag=" $reload_flag" ;;
7071esac
7072reload_cmds='$LD$reload_flag -o $output$reload_objs'
7073case $host_os in
7074  darwin*)
7075    if test "$GCC" = yes; then
7076      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7077    else
7078      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7079    fi
7080    ;;
7081esac
7082
7083echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7084echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7085if test "${lt_cv_path_NM+set}" = set; then
7086  echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088  if test -n "$NM"; then
7089  # Let the user override the test.
7090  lt_cv_path_NM="$NM"
7091else
7092  lt_nm_to_check="${ac_tool_prefix}nm"
7093  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7094    lt_nm_to_check="$lt_nm_to_check nm"
7095  fi
7096  for lt_tmp_nm in $lt_nm_to_check; do
7097    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7098    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7099      IFS="$lt_save_ifs"
7100      test -z "$ac_dir" && ac_dir=.
7101      tmp_nm="$ac_dir/$lt_tmp_nm"
7102      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7103        # Check to see if the nm accepts a BSD-compat flag.
7104        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7105        #   nm: unknown option "B" ignored
7106        # Tru64's nm complains that /dev/null is an invalid object file
7107        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7108        */dev/null* | *'Invalid file or object type'*)
7109          lt_cv_path_NM="$tmp_nm -B"
7110          break
7111          ;;
7112        *)
7113          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7114          */dev/null*)
7115            lt_cv_path_NM="$tmp_nm -p"
7116            break
7117            ;;
7118          *)
7119            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7120            continue # so that we can try to find one that supports BSD flags
7121            ;;
7122          esac
7123          ;;
7124        esac
7125      fi
7126    done
7127    IFS="$lt_save_ifs"
7128  done
7129  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7130fi
7131fi
7132echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7133echo "${ECHO_T}$lt_cv_path_NM" >&6
7134NM="$lt_cv_path_NM"
7135
7136echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7137echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7138if test "${lt_cv_deplibs_check_method+set}" = set; then
7139  echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141  lt_cv_file_magic_cmd='$MAGIC_CMD'
7142lt_cv_file_magic_test_file=
7143lt_cv_deplibs_check_method='unknown'
7144# Need to set the preceding variable on all platforms that support
7145# interlibrary dependencies.
7146# 'none' -- dependencies not supported.
7147# `unknown' -- same as none, but documents that we really don't know.
7148# 'pass_all' -- all dependencies passed with no checks.
7149# 'test_compile' -- check by making test program.
7150# 'file_magic [[regex]]' -- check by looking for files in library path
7151# which responds to the $file_magic_cmd with a given extended regex.
7152# If you have `file' or equivalent on your system and you're not sure
7153# whether `pass_all' will *always* work, you probably want this one.
7154
7155case $host_os in
7156aix4* | aix5*)
7157  lt_cv_deplibs_check_method=pass_all
7158  ;;
7159
7160beos*)
7161  lt_cv_deplibs_check_method=pass_all
7162  ;;
7163
7164bsdi[45]*)
7165  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7166  lt_cv_file_magic_cmd='/usr/bin/file -L'
7167  lt_cv_file_magic_test_file=/shlib/libc.so
7168  ;;
7169
7170cygwin*)
7171  # func_win32_libid is a shell function defined in ltmain.sh
7172  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7173  lt_cv_file_magic_cmd='func_win32_libid'
7174  ;;
7175
7176mingw* | pw32*)
7177  # Base MSYS/MinGW do not provide the 'file' command needed by
7178  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7179  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7180  lt_cv_file_magic_cmd='$OBJDUMP -f'
7181  ;;
7182
7183darwin* | rhapsody*)
7184  lt_cv_deplibs_check_method=pass_all
7185  ;;
7186
7187freebsd* | kfreebsd*-gnu | dragonfly*)
7188  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7189    case $host_cpu in
7190    i*86 )
7191      # Not sure whether the presence of OpenBSD here was a mistake.
7192      # Let's accept both of them until this is cleared up.
7193      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7194      lt_cv_file_magic_cmd=/usr/bin/file
7195      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7196      ;;
7197    esac
7198  else
7199    lt_cv_deplibs_check_method=pass_all
7200  fi
7201  ;;
7202
7203gnu*)
7204  lt_cv_deplibs_check_method=pass_all
7205  ;;
7206
7207hpux10.20* | hpux11*)
7208  lt_cv_file_magic_cmd=/usr/bin/file
7209  case $host_cpu in
7210  ia64*)
7211    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7212    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7213    ;;
7214  hppa*64*)
7215    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]'
7216    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7217    ;;
7218  *)
7219    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7220    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7221    ;;
7222  esac
7223  ;;
7224
7225interix3*)
7226  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7227  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7228  ;;
7229
7230irix5* | irix6* | nonstopux*)
7231  case $LD in
7232  *-32|*"-32 ") libmagic=32-bit;;
7233  *-n32|*"-n32 ") libmagic=N32;;
7234  *-64|*"-64 ") libmagic=64-bit;;
7235  *) libmagic=never-match;;
7236  esac
7237  lt_cv_deplibs_check_method=pass_all
7238  ;;
7239
7240# This must be Linux ELF.
7241linux*)
7242  lt_cv_deplibs_check_method=pass_all
7243  ;;
7244
7245netbsd*)
7246  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7248  else
7249    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7250  fi
7251  ;;
7252
7253newos6*)
7254  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7255  lt_cv_file_magic_cmd=/usr/bin/file
7256  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7257  ;;
7258
7259nto-qnx*)
7260  lt_cv_deplibs_check_method=unknown
7261  ;;
7262
7263openbsd*)
7264  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7266  else
7267    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7268  fi
7269  ;;
7270
7271osf3* | osf4* | osf5*)
7272  lt_cv_deplibs_check_method=pass_all
7273  ;;
7274
7275solaris*)
7276  lt_cv_deplibs_check_method=pass_all
7277  ;;
7278
7279sysv4 | sysv4.3*)
7280  case $host_vendor in
7281  motorola)
7282    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]'
7283    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7284    ;;
7285  ncr)
7286    lt_cv_deplibs_check_method=pass_all
7287    ;;
7288  sequent)
7289    lt_cv_file_magic_cmd='/bin/file'
7290    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7291    ;;
7292  sni)
7293    lt_cv_file_magic_cmd='/bin/file'
7294    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7295    lt_cv_file_magic_test_file=/lib/libc.so
7296    ;;
7297  siemens)
7298    lt_cv_deplibs_check_method=pass_all
7299    ;;
7300  pc)
7301    lt_cv_deplibs_check_method=pass_all
7302    ;;
7303  esac
7304  ;;
7305
7306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7307  lt_cv_deplibs_check_method=pass_all
7308  ;;
7309esac
7310
7311fi
7312echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7313echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7314file_magic_cmd=$lt_cv_file_magic_cmd
7315deplibs_check_method=$lt_cv_deplibs_check_method
7316test -z "$deplibs_check_method" && deplibs_check_method=unknown
7317
7318
7319
7320
7321# If no C compiler was specified, use CC.
7322LTCC=${LTCC-"$CC"}
7323
7324# If no C compiler flags were specified, use CFLAGS.
7325LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7326
7327# Allow CC to be a program name with arguments.
7328compiler=$CC
7329
7330# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7331if test "${enable_libtool_lock+set}" = set; then
7332  enableval="$enable_libtool_lock"
7333
7334fi;
7335test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7336
7337# Some flags need to be propagated to the compiler or linker for good
7338# libtool support.
7339case $host in
7340ia64-*-hpux*)
7341  # Find out which ABI we are using.
7342  echo 'int i;' > conftest.$ac_ext
7343  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344  (eval $ac_compile) 2>&5
7345  ac_status=$?
7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347  (exit $ac_status); }; then
7348    case `/usr/bin/file conftest.$ac_objext` in
7349    *ELF-32*)
7350      HPUX_IA64_MODE="32"
7351      ;;
7352    *ELF-64*)
7353      HPUX_IA64_MODE="64"
7354      ;;
7355    esac
7356  fi
7357  rm -rf conftest*
7358  ;;
7359*-*-irix6*)
7360  # Find out which ABI we are using.
7361  echo '#line 7361 "configure"' > conftest.$ac_ext
7362  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7363  (eval $ac_compile) 2>&5
7364  ac_status=$?
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); }; then
7367   if test "$lt_cv_prog_gnu_ld" = yes; then
7368    case `/usr/bin/file conftest.$ac_objext` in
7369    *32-bit*)
7370      LD="${LD-ld} -melf32bsmip"
7371      ;;
7372    *N32*)
7373      LD="${LD-ld} -melf32bmipn32"
7374      ;;
7375    *64-bit*)
7376      LD="${LD-ld} -melf64bmip"
7377      ;;
7378    esac
7379   else
7380    case `/usr/bin/file conftest.$ac_objext` in
7381    *32-bit*)
7382      LD="${LD-ld} -32"
7383      ;;
7384    *N32*)
7385      LD="${LD-ld} -n32"
7386      ;;
7387    *64-bit*)
7388      LD="${LD-ld} -64"
7389      ;;
7390    esac
7391   fi
7392  fi
7393  rm -rf conftest*
7394  ;;
7395
7396x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7397  # Find out which ABI we are using.
7398  echo 'int i;' > conftest.$ac_ext
7399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400  (eval $ac_compile) 2>&5
7401  ac_status=$?
7402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403  (exit $ac_status); }; then
7404    case `/usr/bin/file conftest.o` in
7405    *32-bit*)
7406      case $host in
7407        x86_64-*linux*)
7408          LD="${LD-ld} -m elf_i386"
7409          ;;
7410        ppc64-*linux*|powerpc64-*linux*)
7411          LD="${LD-ld} -m elf32ppclinux"
7412          ;;
7413        s390x-*linux*)
7414          LD="${LD-ld} -m elf_s390"
7415          ;;
7416        sparc64-*linux*)
7417          LD="${LD-ld} -m elf32_sparc"
7418          ;;
7419      esac
7420      ;;
7421    *64-bit*)
7422      case $host in
7423        x86_64-*linux*)
7424          LD="${LD-ld} -m elf_x86_64"
7425          ;;
7426        ppc*-*linux*|powerpc*-*linux*)
7427          LD="${LD-ld} -m elf64ppc"
7428          ;;
7429        s390*-*linux*)
7430          LD="${LD-ld} -m elf64_s390"
7431          ;;
7432        sparc*-*linux*)
7433          LD="${LD-ld} -m elf64_sparc"
7434          ;;
7435      esac
7436      ;;
7437    esac
7438  fi
7439  rm -rf conftest*
7440  ;;
7441
7442*-*-sco3.2v5*)
7443  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7444  SAVE_CFLAGS="$CFLAGS"
7445  CFLAGS="$CFLAGS -belf"
7446  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7447echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7448if test "${lt_cv_cc_needs_belf+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  ac_ext=c
7452ac_cpp='$CPP $CPPFLAGS'
7453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457     cat >conftest.$ac_ext <<_ACEOF
7458/* confdefs.h.  */
7459_ACEOF
7460cat confdefs.h >>conftest.$ac_ext
7461cat >>conftest.$ac_ext <<_ACEOF
7462/* end confdefs.h.  */
7463
7464#ifdef F77_DUMMY_MAIN
7465
7466#  ifdef __cplusplus
7467     extern "C"
7468#  endif
7469   int F77_DUMMY_MAIN() { return 1; }
7470
7471#endif
7472int
7473main ()
7474{
7475
7476  ;
7477  return 0;
7478}
7479_ACEOF
7480rm -f conftest.$ac_objext conftest$ac_exeext
7481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482  (eval $ac_link) 2>conftest.er1
7483  ac_status=$?
7484  grep -v '^ *+' conftest.er1 >conftest.err
7485  rm -f conftest.er1
7486  cat conftest.err >&5
7487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488  (exit $ac_status); } &&
7489         { ac_try='test -z "$ac_c_werror_flag"
7490                         || test ! -s conftest.err'
7491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492  (eval $ac_try) 2>&5
7493  ac_status=$?
7494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495  (exit $ac_status); }; } &&
7496         { ac_try='test -s conftest$ac_exeext'
7497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498  (eval $ac_try) 2>&5
7499  ac_status=$?
7500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501  (exit $ac_status); }; }; then
7502  lt_cv_cc_needs_belf=yes
7503else
7504  echo "$as_me: failed program was:" >&5
7505sed 's/^/| /' conftest.$ac_ext >&5
7506
7507lt_cv_cc_needs_belf=no
7508fi
7509rm -f conftest.err conftest.$ac_objext \
7510      conftest$ac_exeext conftest.$ac_ext
7511     ac_ext=c
7512ac_cpp='$CPP $CPPFLAGS'
7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516
7517fi
7518echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7519echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7520  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7521    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7522    CFLAGS="$SAVE_CFLAGS"
7523  fi
7524  ;;
7525sparc*-*solaris*)
7526  # Find out which ABI we are using.
7527  echo 'int i;' > conftest.$ac_ext
7528  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529  (eval $ac_compile) 2>&5
7530  ac_status=$?
7531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532  (exit $ac_status); }; then
7533    case `/usr/bin/file conftest.o` in
7534    *64-bit*)
7535      case $lt_cv_prog_gnu_ld in
7536      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7537      *)    LD="${LD-ld} -64" ;;
7538      esac
7539      ;;
7540    esac
7541  fi
7542  rm -rf conftest*
7543  ;;
7544
7545
7546esac
7547
7548need_locks="$enable_libtool_lock"
7549
7550
7551ac_ext=c
7552ac_cpp='$CPP $CPPFLAGS'
7553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7557echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7558# On Suns, sometimes $CPP names a directory.
7559if test -n "$CPP" && test -d "$CPP"; then
7560  CPP=
7561fi
7562if test -z "$CPP"; then
7563  if test "${ac_cv_prog_CPP+set}" = set; then
7564  echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566      # Double quotes because CPP needs to be expanded
7567    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7568    do
7569      ac_preproc_ok=false
7570for ac_c_preproc_warn_flag in '' yes
7571do
7572  # Use a header file that comes with gcc, so configuring glibc
7573  # with a fresh cross-compiler works.
7574  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7575  # <limits.h> exists even on freestanding compilers.
7576  # On the NeXT, cc -E runs the code through the compiler's parser,
7577  # not just through cpp. "Syntax error" is here to catch this case.
7578  cat >conftest.$ac_ext <<_ACEOF
7579/* confdefs.h.  */
7580_ACEOF
7581cat confdefs.h >>conftest.$ac_ext
7582cat >>conftest.$ac_ext <<_ACEOF
7583/* end confdefs.h.  */
7584#ifdef __STDC__
7585# include <limits.h>
7586#else
7587# include <assert.h>
7588#endif
7589                     Syntax error
7590_ACEOF
7591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7593  ac_status=$?
7594  grep -v '^ *+' conftest.er1 >conftest.err
7595  rm -f conftest.er1
7596  cat conftest.err >&5
7597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598  (exit $ac_status); } >/dev/null; then
7599  if test -s conftest.err; then
7600    ac_cpp_err=$ac_c_preproc_warn_flag
7601    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7602  else
7603    ac_cpp_err=
7604  fi
7605else
7606  ac_cpp_err=yes
7607fi
7608if test -z "$ac_cpp_err"; then
7609  :
7610else
7611  echo "$as_me: failed program was:" >&5
7612sed 's/^/| /' conftest.$ac_ext >&5
7613
7614  # Broken: fails on valid input.
7615continue
7616fi
7617rm -f conftest.err conftest.$ac_ext
7618
7619  # OK, works on sane cases.  Now check whether non-existent headers
7620  # can be detected and how.
7621  cat >conftest.$ac_ext <<_ACEOF
7622/* confdefs.h.  */
7623_ACEOF
7624cat confdefs.h >>conftest.$ac_ext
7625cat >>conftest.$ac_ext <<_ACEOF
7626/* end confdefs.h.  */
7627#include <ac_nonexistent.h>
7628_ACEOF
7629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7630  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7631  ac_status=$?
7632  grep -v '^ *+' conftest.er1 >conftest.err
7633  rm -f conftest.er1
7634  cat conftest.err >&5
7635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636  (exit $ac_status); } >/dev/null; then
7637  if test -s conftest.err; then
7638    ac_cpp_err=$ac_c_preproc_warn_flag
7639    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7640  else
7641    ac_cpp_err=
7642  fi
7643else
7644  ac_cpp_err=yes
7645fi
7646if test -z "$ac_cpp_err"; then
7647  # Broken: success on invalid input.
7648continue
7649else
7650  echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
7652
7653  # Passes both tests.
7654ac_preproc_ok=:
7655break
7656fi
7657rm -f conftest.err conftest.$ac_ext
7658
7659done
7660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7661rm -f conftest.err conftest.$ac_ext
7662if $ac_preproc_ok; then
7663  break
7664fi
7665
7666    done
7667    ac_cv_prog_CPP=$CPP
7668
7669fi
7670  CPP=$ac_cv_prog_CPP
7671else
7672  ac_cv_prog_CPP=$CPP
7673fi
7674echo "$as_me:$LINENO: result: $CPP" >&5
7675echo "${ECHO_T}$CPP" >&6
7676ac_preproc_ok=false
7677for ac_c_preproc_warn_flag in '' yes
7678do
7679  # Use a header file that comes with gcc, so configuring glibc
7680  # with a fresh cross-compiler works.
7681  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7682  # <limits.h> exists even on freestanding compilers.
7683  # On the NeXT, cc -E runs the code through the compiler's parser,
7684  # not just through cpp. "Syntax error" is here to catch this case.
7685  cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h.  */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h.  */
7691#ifdef __STDC__
7692# include <limits.h>
7693#else
7694# include <assert.h>
7695#endif
7696                     Syntax error
7697_ACEOF
7698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7699  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7700  ac_status=$?
7701  grep -v '^ *+' conftest.er1 >conftest.err
7702  rm -f conftest.er1
7703  cat conftest.err >&5
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); } >/dev/null; then
7706  if test -s conftest.err; then
7707    ac_cpp_err=$ac_c_preproc_warn_flag
7708    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7709  else
7710    ac_cpp_err=
7711  fi
7712else
7713  ac_cpp_err=yes
7714fi
7715if test -z "$ac_cpp_err"; then
7716  :
7717else
7718  echo "$as_me: failed program was:" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5
7720
7721  # Broken: fails on valid input.
7722continue
7723fi
7724rm -f conftest.err conftest.$ac_ext
7725
7726  # OK, works on sane cases.  Now check whether non-existent headers
7727  # can be detected and how.
7728  cat >conftest.$ac_ext <<_ACEOF
7729/* confdefs.h.  */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h.  */
7734#include <ac_nonexistent.h>
7735_ACEOF
7736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7737  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7738  ac_status=$?
7739  grep -v '^ *+' conftest.er1 >conftest.err
7740  rm -f conftest.er1
7741  cat conftest.err >&5
7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743  (exit $ac_status); } >/dev/null; then
7744  if test -s conftest.err; then
7745    ac_cpp_err=$ac_c_preproc_warn_flag
7746    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7747  else
7748    ac_cpp_err=
7749  fi
7750else
7751  ac_cpp_err=yes
7752fi
7753if test -z "$ac_cpp_err"; then
7754  # Broken: success on invalid input.
7755continue
7756else
7757  echo "$as_me: failed program was:" >&5
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
7760  # Passes both tests.
7761ac_preproc_ok=:
7762break
7763fi
7764rm -f conftest.err conftest.$ac_ext
7765
7766done
7767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7768rm -f conftest.err conftest.$ac_ext
7769if $ac_preproc_ok; then
7770  :
7771else
7772  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7773See \`config.log' for more details." >&5
7774echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7775See \`config.log' for more details." >&2;}
7776   { (exit 1); exit 1; }; }
7777fi
7778
7779ac_ext=c
7780ac_cpp='$CPP $CPPFLAGS'
7781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785
7786echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7787echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7788if test "${ac_cv_header_stdc+set}" = set; then
7789  echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791  cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h.  */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h.  */
7797#include <stdlib.h>
7798#include <stdarg.h>
7799#include <string.h>
7800#include <float.h>
7801
7802#ifdef F77_DUMMY_MAIN
7803
7804#  ifdef __cplusplus
7805     extern "C"
7806#  endif
7807   int F77_DUMMY_MAIN() { return 1; }
7808
7809#endif
7810int
7811main ()
7812{
7813
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext
7819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820  (eval $ac_compile) 2>conftest.er1
7821  ac_status=$?
7822  grep -v '^ *+' conftest.er1 >conftest.err
7823  rm -f conftest.er1
7824  cat conftest.err >&5
7825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826  (exit $ac_status); } &&
7827         { ac_try='test -z "$ac_c_werror_flag"
7828                         || test ! -s conftest.err'
7829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830  (eval $ac_try) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }; } &&
7834         { ac_try='test -s conftest.$ac_objext'
7835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836  (eval $ac_try) 2>&5
7837  ac_status=$?
7838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839  (exit $ac_status); }; }; then
7840  ac_cv_header_stdc=yes
7841else
7842  echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845ac_cv_header_stdc=no
7846fi
7847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848
7849if test $ac_cv_header_stdc = yes; then
7850  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7851  cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h.  */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
7856/* end confdefs.h.  */
7857#include <string.h>
7858
7859_ACEOF
7860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7861  $EGREP "memchr" >/dev/null 2>&1; then
7862  :
7863else
7864  ac_cv_header_stdc=no
7865fi
7866rm -f conftest*
7867
7868fi
7869
7870if test $ac_cv_header_stdc = yes; then
7871  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7872  cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h.  */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h.  */
7878#include <stdlib.h>
7879
7880_ACEOF
7881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7882  $EGREP "free" >/dev/null 2>&1; then
7883  :
7884else
7885  ac_cv_header_stdc=no
7886fi
7887rm -f conftest*
7888
7889fi
7890
7891if test $ac_cv_header_stdc = yes; then
7892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7893  if test "$cross_compiling" = yes; then
7894  :
7895else
7896  cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h.  */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h.  */
7902#include <ctype.h>
7903#if ((' ' & 0x0FF) == 0x020)
7904# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7905# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7906#else
7907# define ISLOWER(c) \
7908                   (('a' <= (c) && (c) <= 'i') \
7909                     || ('j' <= (c) && (c) <= 'r') \
7910                     || ('s' <= (c) && (c) <= 'z'))
7911# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7912#endif
7913
7914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7915int
7916main ()
7917{
7918  int i;
7919  for (i = 0; i < 256; i++)
7920    if (XOR (islower (i), ISLOWER (i))
7921        || toupper (i) != TOUPPER (i))
7922      exit(2);
7923  exit (0);
7924}
7925_ACEOF
7926rm -f conftest$ac_exeext
7927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928  (eval $ac_link) 2>&5
7929  ac_status=$?
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933  (eval $ac_try) 2>&5
7934  ac_status=$?
7935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936  (exit $ac_status); }; }; then
7937  :
7938else
7939  echo "$as_me: program exited with status $ac_status" >&5
7940echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
7943( exit $ac_status )
7944ac_cv_header_stdc=no
7945fi
7946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7947fi
7948fi
7949fi
7950echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7951echo "${ECHO_T}$ac_cv_header_stdc" >&6
7952if test $ac_cv_header_stdc = yes; then
7953
7954cat >>confdefs.h <<\_ACEOF
7955#define STDC_HEADERS 1
7956_ACEOF
7957
7958fi
7959
7960# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7971                  inttypes.h stdint.h unistd.h
7972do
7973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974echo "$as_me:$LINENO: checking for $ac_header" >&5
7975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7976if eval "test \"\${$as_ac_Header+set}\" = set"; then
7977  echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979  cat >conftest.$ac_ext <<_ACEOF
7980/* confdefs.h.  */
7981_ACEOF
7982cat confdefs.h >>conftest.$ac_ext
7983cat >>conftest.$ac_ext <<_ACEOF
7984/* end confdefs.h.  */
7985$ac_includes_default
7986
7987#include <$ac_header>
7988_ACEOF
7989rm -f conftest.$ac_objext
7990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7991  (eval $ac_compile) 2>conftest.er1
7992  ac_status=$?
7993  grep -v '^ *+' conftest.er1 >conftest.err
7994  rm -f conftest.er1
7995  cat conftest.err >&5
7996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997  (exit $ac_status); } &&
7998         { ac_try='test -z "$ac_c_werror_flag"
7999                         || test ! -s conftest.err'
8000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001  (eval $ac_try) 2>&5
8002  ac_status=$?
8003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004  (exit $ac_status); }; } &&
8005         { ac_try='test -s conftest.$ac_objext'
8006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007  (eval $ac_try) 2>&5
8008  ac_status=$?
8009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010  (exit $ac_status); }; }; then
8011  eval "$as_ac_Header=yes"
8012else
8013  echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015
8016eval "$as_ac_Header=no"
8017fi
8018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8022if test `eval echo '${'$as_ac_Header'}'` = yes; then
8023  cat >>confdefs.h <<_ACEOF
8024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8025_ACEOF
8026
8027fi
8028
8029done
8030
8031
8032
8033for ac_header in dlfcn.h
8034do
8035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8036if eval "test \"\${$as_ac_Header+set}\" = set"; then
8037  echo "$as_me:$LINENO: checking for $ac_header" >&5
8038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8039if eval "test \"\${$as_ac_Header+set}\" = set"; then
8040  echo $ECHO_N "(cached) $ECHO_C" >&6
8041fi
8042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8044else
8045  # Is the header compilable?
8046echo "$as_me:$LINENO: checking $ac_header usability" >&5
8047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8048cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h.  */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h.  */
8054$ac_includes_default
8055#include <$ac_header>
8056_ACEOF
8057rm -f conftest.$ac_objext
8058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8059  (eval $ac_compile) 2>conftest.er1
8060  ac_status=$?
8061  grep -v '^ *+' conftest.er1 >conftest.err
8062  rm -f conftest.er1
8063  cat conftest.err >&5
8064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065  (exit $ac_status); } &&
8066         { ac_try='test -z "$ac_c_werror_flag"
8067                         || test ! -s conftest.err'
8068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069  (eval $ac_try) 2>&5
8070  ac_status=$?
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); }; } &&
8073         { ac_try='test -s conftest.$ac_objext'
8074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075  (eval $ac_try) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; }; then
8079  ac_header_compiler=yes
8080else
8081  echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084ac_header_compiler=no
8085fi
8086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8088echo "${ECHO_T}$ac_header_compiler" >&6
8089
8090# Is the header present?
8091echo "$as_me:$LINENO: checking $ac_header presence" >&5
8092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8093cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h.  */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h.  */
8099#include <$ac_header>
8100_ACEOF
8101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8102  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8103  ac_status=$?
8104  grep -v '^ *+' conftest.er1 >conftest.err
8105  rm -f conftest.er1
8106  cat conftest.err >&5
8107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108  (exit $ac_status); } >/dev/null; then
8109  if test -s conftest.err; then
8110    ac_cpp_err=$ac_c_preproc_warn_flag
8111    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8112  else
8113    ac_cpp_err=
8114  fi
8115else
8116  ac_cpp_err=yes
8117fi
8118if test -z "$ac_cpp_err"; then
8119  ac_header_preproc=yes
8120else
8121  echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124  ac_header_preproc=no
8125fi
8126rm -f conftest.err conftest.$ac_ext
8127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8128echo "${ECHO_T}$ac_header_preproc" >&6
8129
8130# So?  What about this header?
8131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8132  yes:no: )
8133    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8135    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8137    ac_header_preproc=yes
8138    ;;
8139  no:yes:* )
8140    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8142    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8143echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8144    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8146    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8147echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8148    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8150    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8152    (
8153      cat <<\_ASBOX
8154## --------------------------------------------------------------- ##
8155## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8156## --------------------------------------------------------------- ##
8157_ASBOX
8158    ) |
8159      sed "s/^/$as_me: WARNING:     /" >&2
8160    ;;
8161esac
8162echo "$as_me:$LINENO: checking for $ac_header" >&5
8163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8164if eval "test \"\${$as_ac_Header+set}\" = set"; then
8165  echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167  eval "$as_ac_Header=\$ac_header_preproc"
8168fi
8169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8171
8172fi
8173if test `eval echo '${'$as_ac_Header'}'` = yes; then
8174  cat >>confdefs.h <<_ACEOF
8175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8176_ACEOF
8177
8178fi
8179
8180done
8181
8182ac_ext=cc
8183ac_cpp='$CXXCPP $CPPFLAGS'
8184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8187if test -n "$ac_tool_prefix"; then
8188  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8189  do
8190    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8192echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8194if test "${ac_cv_prog_CXX+set}" = set; then
8195  echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197  if test -n "$CXX"; then
8198  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8199else
8200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201for as_dir in $PATH
8202do
8203  IFS=$as_save_IFS
8204  test -z "$as_dir" && as_dir=.
8205  for ac_exec_ext in '' $ac_executable_extensions; do
8206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209    break 2
8210  fi
8211done
8212done
8213
8214fi
8215fi
8216CXX=$ac_cv_prog_CXX
8217if test -n "$CXX"; then
8218  echo "$as_me:$LINENO: result: $CXX" >&5
8219echo "${ECHO_T}$CXX" >&6
8220else
8221  echo "$as_me:$LINENO: result: no" >&5
8222echo "${ECHO_T}no" >&6
8223fi
8224
8225    test -n "$CXX" && break
8226  done
8227fi
8228if test -z "$CXX"; then
8229  ac_ct_CXX=$CXX
8230  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8231do
8232  # Extract the first word of "$ac_prog", so it can be a program name with args.
8233set dummy $ac_prog; ac_word=$2
8234echo "$as_me:$LINENO: checking for $ac_word" >&5
8235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8236if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8237  echo $ECHO_N "(cached) $ECHO_C" >&6
8238else
8239  if test -n "$ac_ct_CXX"; then
8240  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245  IFS=$as_save_IFS
8246  test -z "$as_dir" && as_dir=.
8247  for ac_exec_ext in '' $ac_executable_extensions; do
8248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249    ac_cv_prog_ac_ct_CXX="$ac_prog"
8250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254done
8255
8256fi
8257fi
8258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8259if test -n "$ac_ct_CXX"; then
8260  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8261echo "${ECHO_T}$ac_ct_CXX" >&6
8262else
8263  echo "$as_me:$LINENO: result: no" >&5
8264echo "${ECHO_T}no" >&6
8265fi
8266
8267  test -n "$ac_ct_CXX" && break
8268done
8269test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8270
8271  CXX=$ac_ct_CXX
8272fi
8273
8274
8275# Provide some information about the compiler.
8276echo "$as_me:$LINENO:" \
8277     "checking for C++ compiler version" >&5
8278ac_compiler=`set X $ac_compile; echo $2`
8279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8280  (eval $ac_compiler --version </dev/null >&5) 2>&5
8281  ac_status=$?
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); }
8284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8285  (eval $ac_compiler -v </dev/null >&5) 2>&5
8286  ac_status=$?
8287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288  (exit $ac_status); }
8289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8290  (eval $ac_compiler -V </dev/null >&5) 2>&5
8291  ac_status=$?
8292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293  (exit $ac_status); }
8294
8295echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8296echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8297if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8298  echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300  cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h.  */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h.  */
8306
8307#ifdef F77_DUMMY_MAIN
8308
8309#  ifdef __cplusplus
8310     extern "C"
8311#  endif
8312   int F77_DUMMY_MAIN() { return 1; }
8313
8314#endif
8315int
8316main ()
8317{
8318#ifndef __GNUC__
8319       choke me
8320#endif
8321
8322  ;
8323  return 0;
8324}
8325_ACEOF
8326rm -f conftest.$ac_objext
8327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328  (eval $ac_compile) 2>conftest.er1
8329  ac_status=$?
8330  grep -v '^ *+' conftest.er1 >conftest.err
8331  rm -f conftest.er1
8332  cat conftest.err >&5
8333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334  (exit $ac_status); } &&
8335         { ac_try='test -z "$ac_cxx_werror_flag"
8336                         || test ! -s conftest.err'
8337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338  (eval $ac_try) 2>&5
8339  ac_status=$?
8340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341  (exit $ac_status); }; } &&
8342         { ac_try='test -s conftest.$ac_objext'
8343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344  (eval $ac_try) 2>&5
8345  ac_status=$?
8346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347  (exit $ac_status); }; }; then
8348  ac_compiler_gnu=yes
8349else
8350  echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353ac_compiler_gnu=no
8354fi
8355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8357
8358fi
8359echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8360echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8361GXX=`test $ac_compiler_gnu = yes && echo yes`
8362ac_test_CXXFLAGS=${CXXFLAGS+set}
8363ac_save_CXXFLAGS=$CXXFLAGS
8364CXXFLAGS="-g"
8365echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8366echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8367if test "${ac_cv_prog_cxx_g+set}" = set; then
8368  echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
8370  cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h.  */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h.  */
8376
8377#ifdef F77_DUMMY_MAIN
8378
8379#  ifdef __cplusplus
8380     extern "C"
8381#  endif
8382   int F77_DUMMY_MAIN() { return 1; }
8383
8384#endif
8385int
8386main ()
8387{
8388
8389  ;
8390  return 0;
8391}
8392_ACEOF
8393rm -f conftest.$ac_objext
8394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395  (eval $ac_compile) 2>conftest.er1
8396  ac_status=$?
8397  grep -v '^ *+' conftest.er1 >conftest.err
8398  rm -f conftest.er1
8399  cat conftest.err >&5
8400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401  (exit $ac_status); } &&
8402         { ac_try='test -z "$ac_cxx_werror_flag"
8403                         || test ! -s conftest.err'
8404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405  (eval $ac_try) 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); }; } &&
8409         { ac_try='test -s conftest.$ac_objext'
8410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411  (eval $ac_try) 2>&5
8412  ac_status=$?
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); }; }; then
8415  ac_cv_prog_cxx_g=yes
8416else
8417  echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420ac_cv_prog_cxx_g=no
8421fi
8422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8425echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8426if test "$ac_test_CXXFLAGS" = set; then
8427  CXXFLAGS=$ac_save_CXXFLAGS
8428elif test $ac_cv_prog_cxx_g = yes; then
8429  if test "$GXX" = yes; then
8430    CXXFLAGS="-g -O2"
8431  else
8432    CXXFLAGS="-g"
8433  fi
8434else
8435  if test "$GXX" = yes; then
8436    CXXFLAGS="-O2"
8437  else
8438    CXXFLAGS=
8439  fi
8440fi
8441for ac_declaration in \
8442   '' \
8443   'extern "C" void std::exit (int) throw (); using std::exit;' \
8444   'extern "C" void std::exit (int); using std::exit;' \
8445   'extern "C" void exit (int) throw ();' \
8446   'extern "C" void exit (int);' \
8447   'void exit (int);'
8448do
8449  cat >conftest.$ac_ext <<_ACEOF
8450/* confdefs.h.  */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
8454/* end confdefs.h.  */
8455$ac_declaration
8456#include <stdlib.h>
8457#ifdef F77_DUMMY_MAIN
8458
8459#  ifdef __cplusplus
8460     extern "C"
8461#  endif
8462   int F77_DUMMY_MAIN() { return 1; }
8463
8464#endif
8465int
8466main ()
8467{
8468exit (42);
8469  ;
8470  return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext
8474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475  (eval $ac_compile) 2>conftest.er1
8476  ac_status=$?
8477  grep -v '^ *+' conftest.er1 >conftest.err
8478  rm -f conftest.er1
8479  cat conftest.err >&5
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); } &&
8482         { ac_try='test -z "$ac_cxx_werror_flag"
8483                         || test ! -s conftest.err'
8484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485  (eval $ac_try) 2>&5
8486  ac_status=$?
8487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488  (exit $ac_status); }; } &&
8489         { ac_try='test -s conftest.$ac_objext'
8490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491  (eval $ac_try) 2>&5
8492  ac_status=$?
8493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494  (exit $ac_status); }; }; then
8495  :
8496else
8497  echo "$as_me: failed program was:" >&5
8498sed 's/^/| /' conftest.$ac_ext >&5
8499
8500continue
8501fi
8502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8503  cat >conftest.$ac_ext <<_ACEOF
8504/* confdefs.h.  */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h.  */
8509$ac_declaration
8510#ifdef F77_DUMMY_MAIN
8511
8512#  ifdef __cplusplus
8513     extern "C"
8514#  endif
8515   int F77_DUMMY_MAIN() { return 1; }
8516
8517#endif
8518int
8519main ()
8520{
8521exit (42);
8522  ;
8523  return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext
8527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528  (eval $ac_compile) 2>conftest.er1
8529  ac_status=$?
8530  grep -v '^ *+' conftest.er1 >conftest.err
8531  rm -f conftest.er1
8532  cat conftest.err >&5
8533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); } &&
8535         { ac_try='test -z "$ac_cxx_werror_flag"
8536                         || test ! -s conftest.err'
8537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538  (eval $ac_try) 2>&5
8539  ac_status=$?
8540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541  (exit $ac_status); }; } &&
8542         { ac_try='test -s conftest.$ac_objext'
8543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544  (eval $ac_try) 2>&5
8545  ac_status=$?
8546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547  (exit $ac_status); }; }; then
8548  break
8549else
8550  echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553fi
8554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8555done
8556rm -f conftest*
8557if test -n "$ac_declaration"; then
8558  echo '#ifdef __cplusplus' >>confdefs.h
8559  echo $ac_declaration      >>confdefs.h
8560  echo '#endif'             >>confdefs.h
8561fi
8562
8563ac_ext=cc
8564ac_cpp='$CXXCPP $CPPFLAGS'
8565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8568
8569depcc="$CXX"  am_compiler_list=
8570
8571echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8572echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8573if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8574  echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8577  # We make a subdir and do the tests there.  Otherwise we can end up
8578  # making bogus files that we don't know about and never remove.  For
8579  # instance it was reported that on HP-UX the gcc test will end up
8580  # making a dummy file named `D' -- because `-MD' means `put the output
8581  # in D'.
8582  mkdir conftest.dir
8583  # Copy depcomp to subdir because otherwise we won't find it if we're
8584  # using a relative directory.
8585  cp "$am_depcomp" conftest.dir
8586  cd conftest.dir
8587  # We will build objects and dependencies in a subdirectory because
8588  # it helps to detect inapplicable dependency modes.  For instance
8589  # both Tru64's cc and ICC support -MD to output dependencies as a
8590  # side effect of compilation, but ICC will put the dependencies in
8591  # the current directory while Tru64 will put them in the object
8592  # directory.
8593  mkdir sub
8594
8595  am_cv_CXX_dependencies_compiler_type=none
8596  if test "$am_compiler_list" = ""; then
8597     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8598  fi
8599  for depmode in $am_compiler_list; do
8600    # Setup a source with many dependencies, because some compilers
8601    # like to wrap large dependency lists on column 80 (with \), and
8602    # we should not choose a depcomp mode which is confused by this.
8603    #
8604    # We need to recreate these files for each test, as the compiler may
8605    # overwrite some of them when testing with obscure command lines.
8606    # This happens at least with the AIX C compiler.
8607    : > sub/conftest.c
8608    for i in 1 2 3 4 5 6; do
8609      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8610      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8611      # Solaris 8's {/usr,}/bin/sh.
8612      touch sub/conftst$i.h
8613    done
8614    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8615
8616    case $depmode in
8617    nosideeffect)
8618      # after this tag, mechanisms are not by side-effect, so they'll
8619      # only be used when explicitly requested
8620      if test "x$enable_dependency_tracking" = xyes; then
8621        continue
8622      else
8623        break
8624      fi
8625      ;;
8626    none) break ;;
8627    esac
8628    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8629    # mode.  It turns out that the SunPro C++ compiler does not properly
8630    # handle `-M -o', and we need to detect this.
8631    if depmode=$depmode \
8632       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8633       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8634       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8635         >/dev/null 2>conftest.err &&
8636       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8637       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8638       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8639      # icc doesn't choke on unknown options, it will just issue warnings
8640      # or remarks (even with -Werror).  So we grep stderr for any message
8641      # that says an option was ignored or not supported.
8642      # When given -MP, icc 7.0 and 7.1 complain thusly:
8643      #   icc: Command line warning: ignoring option '-M'; no argument required
8644      # The diagnosis changed in icc 8.0:
8645      #   icc: Command line remark: option '-MP' not supported
8646      if (grep 'ignoring option' conftest.err ||
8647          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8648        am_cv_CXX_dependencies_compiler_type=$depmode
8649        break
8650      fi
8651    fi
8652  done
8653
8654  cd ..
8655  rm -rf conftest.dir
8656else
8657  am_cv_CXX_dependencies_compiler_type=none
8658fi
8659
8660fi
8661echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8662echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8663CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8664
8665
8666
8667if
8668  test "x$enable_dependency_tracking" != xno \
8669  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8670  am__fastdepCXX_TRUE=
8671  am__fastdepCXX_FALSE='#'
8672else
8673  am__fastdepCXX_TRUE='#'
8674  am__fastdepCXX_FALSE=
8675fi
8676
8677
8678depcc="$CXX"  am_compiler_list=
8679
8680echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8681echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8682if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8683  echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8686  # We make a subdir and do the tests there.  Otherwise we can end up
8687  # making bogus files that we don't know about and never remove.  For
8688  # instance it was reported that on HP-UX the gcc test will end up
8689  # making a dummy file named `D' -- because `-MD' means `put the output
8690  # in D'.
8691  mkdir conftest.dir
8692  # Copy depcomp to subdir because otherwise we won't find it if we're
8693  # using a relative directory.
8694  cp "$am_depcomp" conftest.dir
8695  cd conftest.dir
8696  # We will build objects and dependencies in a subdirectory because
8697  # it helps to detect inapplicable dependency modes.  For instance
8698  # both Tru64's cc and ICC support -MD to output dependencies as a
8699  # side effect of compilation, but ICC will put the dependencies in
8700  # the current directory while Tru64 will put them in the object
8701  # directory.
8702  mkdir sub
8703
8704  am_cv_CXX_dependencies_compiler_type=none
8705  if test "$am_compiler_list" = ""; then
8706     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8707  fi
8708  for depmode in $am_compiler_list; do
8709    # Setup a source with many dependencies, because some compilers
8710    # like to wrap large dependency lists on column 80 (with \), and
8711    # we should not choose a depcomp mode which is confused by this.
8712    #
8713    # We need to recreate these files for each test, as the compiler may
8714    # overwrite some of them when testing with obscure command lines.
8715    # This happens at least with the AIX C compiler.
8716    : > sub/conftest.c
8717    for i in 1 2 3 4 5 6; do
8718      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8719      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8720      # Solaris 8's {/usr,}/bin/sh.
8721      touch sub/conftst$i.h
8722    done
8723    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8724
8725    case $depmode in
8726    nosideeffect)
8727      # after this tag, mechanisms are not by side-effect, so they'll
8728      # only be used when explicitly requested
8729      if test "x$enable_dependency_tracking" = xyes; then
8730        continue
8731      else
8732        break
8733      fi
8734      ;;
8735    none) break ;;
8736    esac
8737    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8738    # mode.  It turns out that the SunPro C++ compiler does not properly
8739    # handle `-M -o', and we need to detect this.
8740    if depmode=$depmode \
8741       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8742       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8743       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8744         >/dev/null 2>conftest.err &&
8745       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8746       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8747       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8748      # icc doesn't choke on unknown options, it will just issue warnings
8749      # or remarks (even with -Werror).  So we grep stderr for any message
8750      # that says an option was ignored or not supported.
8751      # When given -MP, icc 7.0 and 7.1 complain thusly:
8752      #   icc: Command line warning: ignoring option '-M'; no argument required
8753      # The diagnosis changed in icc 8.0:
8754      #   icc: Command line remark: option '-MP' not supported
8755      if (grep 'ignoring option' conftest.err ||
8756          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8757        am_cv_CXX_dependencies_compiler_type=$depmode
8758        break
8759      fi
8760    fi
8761  done
8762
8763  cd ..
8764  rm -rf conftest.dir
8765else
8766  am_cv_CXX_dependencies_compiler_type=none
8767fi
8768
8769fi
8770echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8771echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8772CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8773
8774
8775
8776if
8777  test "x$enable_dependency_tracking" != xno \
8778  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8779  am__fastdepCXX_TRUE=
8780  am__fastdepCXX_FALSE='#'
8781else
8782  am__fastdepCXX_TRUE='#'
8783  am__fastdepCXX_FALSE=
8784fi
8785
8786
8787
8788
8789if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8790    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8791    (test "X$CXX" != "Xg++"))) ; then
8792  ac_ext=cc
8793ac_cpp='$CXXCPP $CPPFLAGS'
8794ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8797echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8798echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8799if test -z "$CXXCPP"; then
8800  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8801  echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803      # Double quotes because CXXCPP needs to be expanded
8804    for CXXCPP in "$CXX -E" "/lib/cpp"
8805    do
8806      ac_preproc_ok=false
8807for ac_cxx_preproc_warn_flag in '' yes
8808do
8809  # Use a header file that comes with gcc, so configuring glibc
8810  # with a fresh cross-compiler works.
8811  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8812  # <limits.h> exists even on freestanding compilers.
8813  # On the NeXT, cc -E runs the code through the compiler's parser,
8814  # not just through cpp. "Syntax error" is here to catch this case.
8815  cat >conftest.$ac_ext <<_ACEOF
8816/* confdefs.h.  */
8817_ACEOF
8818cat confdefs.h >>conftest.$ac_ext
8819cat >>conftest.$ac_ext <<_ACEOF
8820/* end confdefs.h.  */
8821#ifdef __STDC__
8822# include <limits.h>
8823#else
8824# include <assert.h>
8825#endif
8826                     Syntax error
8827_ACEOF
8828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8829  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8830  ac_status=$?
8831  grep -v '^ *+' conftest.er1 >conftest.err
8832  rm -f conftest.er1
8833  cat conftest.err >&5
8834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835  (exit $ac_status); } >/dev/null; then
8836  if test -s conftest.err; then
8837    ac_cpp_err=$ac_cxx_preproc_warn_flag
8838    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8839  else
8840    ac_cpp_err=
8841  fi
8842else
8843  ac_cpp_err=yes
8844fi
8845if test -z "$ac_cpp_err"; then
8846  :
8847else
8848  echo "$as_me: failed program was:" >&5
8849sed 's/^/| /' conftest.$ac_ext >&5
8850
8851  # Broken: fails on valid input.
8852continue
8853fi
8854rm -f conftest.err conftest.$ac_ext
8855
8856  # OK, works on sane cases.  Now check whether non-existent headers
8857  # can be detected and how.
8858  cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h.  */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h.  */
8864#include <ac_nonexistent.h>
8865_ACEOF
8866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8868  ac_status=$?
8869  grep -v '^ *+' conftest.er1 >conftest.err
8870  rm -f conftest.er1
8871  cat conftest.err >&5
8872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873  (exit $ac_status); } >/dev/null; then
8874  if test -s conftest.err; then
8875    ac_cpp_err=$ac_cxx_preproc_warn_flag
8876    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8877  else
8878    ac_cpp_err=
8879  fi
8880else
8881  ac_cpp_err=yes
8882fi
8883if test -z "$ac_cpp_err"; then
8884  # Broken: success on invalid input.
8885continue
8886else
8887  echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890  # Passes both tests.
8891ac_preproc_ok=:
8892break
8893fi
8894rm -f conftest.err conftest.$ac_ext
8895
8896done
8897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8898rm -f conftest.err conftest.$ac_ext
8899if $ac_preproc_ok; then
8900  break
8901fi
8902
8903    done
8904    ac_cv_prog_CXXCPP=$CXXCPP
8905
8906fi
8907  CXXCPP=$ac_cv_prog_CXXCPP
8908else
8909  ac_cv_prog_CXXCPP=$CXXCPP
8910fi
8911echo "$as_me:$LINENO: result: $CXXCPP" >&5
8912echo "${ECHO_T}$CXXCPP" >&6
8913ac_preproc_ok=false
8914for ac_cxx_preproc_warn_flag in '' yes
8915do
8916  # Use a header file that comes with gcc, so configuring glibc
8917  # with a fresh cross-compiler works.
8918  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8919  # <limits.h> exists even on freestanding compilers.
8920  # On the NeXT, cc -E runs the code through the compiler's parser,
8921  # not just through cpp. "Syntax error" is here to catch this case.
8922  cat >conftest.$ac_ext <<_ACEOF
8923/* confdefs.h.  */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>conftest.$ac_ext <<_ACEOF
8927/* end confdefs.h.  */
8928#ifdef __STDC__
8929# include <limits.h>
8930#else
8931# include <assert.h>
8932#endif
8933                     Syntax error
8934_ACEOF
8935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8936  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8937  ac_status=$?
8938  grep -v '^ *+' conftest.er1 >conftest.err
8939  rm -f conftest.er1
8940  cat conftest.err >&5
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); } >/dev/null; then
8943  if test -s conftest.err; then
8944    ac_cpp_err=$ac_cxx_preproc_warn_flag
8945    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8946  else
8947    ac_cpp_err=
8948  fi
8949else
8950  ac_cpp_err=yes
8951fi
8952if test -z "$ac_cpp_err"; then
8953  :
8954else
8955  echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958  # Broken: fails on valid input.
8959continue
8960fi
8961rm -f conftest.err conftest.$ac_ext
8962
8963  # OK, works on sane cases.  Now check whether non-existent headers
8964  # can be detected and how.
8965  cat >conftest.$ac_ext <<_ACEOF
8966/* confdefs.h.  */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h.  */
8971#include <ac_nonexistent.h>
8972_ACEOF
8973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8974  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8975  ac_status=$?
8976  grep -v '^ *+' conftest.er1 >conftest.err
8977  rm -f conftest.er1
8978  cat conftest.err >&5
8979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); } >/dev/null; then
8981  if test -s conftest.err; then
8982    ac_cpp_err=$ac_cxx_preproc_warn_flag
8983    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8984  else
8985    ac_cpp_err=
8986  fi
8987else
8988  ac_cpp_err=yes
8989fi
8990if test -z "$ac_cpp_err"; then
8991  # Broken: success on invalid input.
8992continue
8993else
8994  echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997  # Passes both tests.
8998ac_preproc_ok=:
8999break
9000fi
9001rm -f conftest.err conftest.$ac_ext
9002
9003done
9004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9005rm -f conftest.err conftest.$ac_ext
9006if $ac_preproc_ok; then
9007  :
9008else
9009  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9010See \`config.log' for more details." >&5
9011echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9012See \`config.log' for more details." >&2;}
9013   { (exit 1); exit 1; }; }
9014fi
9015
9016ac_ext=cc
9017ac_cpp='$CXXCPP $CPPFLAGS'
9018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9021
9022fi
9023
9024
9025
9026# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9027
9028# find the maximum length of command line arguments
9029echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9030echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
9031if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9032  echo $ECHO_N "(cached) $ECHO_C" >&6
9033else
9034    i=0
9035  teststring="ABCD"
9036
9037  case $build_os in
9038  msdosdjgpp*)
9039    # On DJGPP, this test can blow up pretty badly due to problems in libc
9040    # (any single argument exceeding 2000 bytes causes a buffer overrun
9041    # during glob expansion).  Even if it were fixed, the result of this
9042    # check would be larger than it should be.
9043    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9044    ;;
9045
9046  gnu*)
9047    # Under GNU Hurd, this test is not required because there is
9048    # no limit to the length of command line arguments.
9049    # Libtool will interpret -1 as no limit whatsoever
9050    lt_cv_sys_max_cmd_len=-1;
9051    ;;
9052
9053  cygwin* | mingw*)
9054    # On Win9x/ME, this test blows up -- it succeeds, but takes
9055    # about 5 minutes as the teststring grows exponentially.
9056    # Worse, since 9x/ME are not pre-emptively multitasking,
9057    # you end up with a "frozen" computer, even though with patience
9058    # the test eventually succeeds (with a max line length of 256k).
9059    # Instead, let's just punt: use the minimum linelength reported by
9060    # all of the supported platforms: 8192 (on NT/2K/XP).
9061    lt_cv_sys_max_cmd_len=8192;
9062    ;;
9063
9064  amigaos*)
9065    # On AmigaOS with pdksh, this test takes hours, literally.
9066    # So we just punt and use a minimum line length of 8192.
9067    lt_cv_sys_max_cmd_len=8192;
9068    ;;
9069
9070  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9071    # This has been around since 386BSD, at least.  Likely further.
9072    if test -x /sbin/sysctl; then
9073      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9074    elif test -x /usr/sbin/sysctl; then
9075      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9076    else
9077      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9078    fi
9079    # And add a safety zone
9080    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9081    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9082    ;;
9083
9084  interix*)
9085    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9086    lt_cv_sys_max_cmd_len=196608
9087    ;;
9088
9089  osf*)
9090    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9091    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9092    # nice to cause kernel panics so lets avoid the loop below.
9093    # First set a reasonable default.
9094    lt_cv_sys_max_cmd_len=16384
9095    #
9096    if test -x /sbin/sysconfig; then
9097      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9098        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9099      esac
9100    fi
9101    ;;
9102  sco3.2v5*)
9103    lt_cv_sys_max_cmd_len=102400
9104    ;;
9105  sysv5* | sco5v6* | sysv4.2uw2*)
9106    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9107    if test -n "$kargmax"; then
9108      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9109    else
9110      lt_cv_sys_max_cmd_len=32768
9111    fi
9112    ;;
9113  *)
9114    # If test is not a shell built-in, we'll probably end up computing a
9115    # maximum length that is only half of the actual maximum length, but
9116    # we can't tell.
9117    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9118    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9119               = "XX$teststring") >/dev/null 2>&1 &&
9120            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9121            lt_cv_sys_max_cmd_len=$new_result &&
9122            test $i != 17 # 1/2 MB should be enough
9123    do
9124      i=`expr $i + 1`
9125      teststring=$teststring$teststring
9126    done
9127    teststring=
9128    # Add a significant safety factor because C++ compilers can tack on massive
9129    # amounts of additional arguments before passing them to the linker.
9130    # It appears as though 1/2 is a usable value.
9131    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9132    ;;
9133  esac
9134
9135fi
9136
9137if test -n $lt_cv_sys_max_cmd_len ; then
9138  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9139echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9140else
9141  echo "$as_me:$LINENO: result: none" >&5
9142echo "${ECHO_T}none" >&6
9143fi
9144
9145
9146
9147
9148# Check for command to grab the raw symbol name followed by C symbol from nm.
9149echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9150echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9151if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9152  echo $ECHO_N "(cached) $ECHO_C" >&6
9153else
9154
9155# These are sane defaults that work on at least a few old systems.
9156# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9157
9158# Character class describing NM global symbol codes.
9159symcode='[BCDEGRST]'
9160
9161# Regexp to match symbols that can be accessed directly from C.
9162sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9163
9164# Transform an extracted symbol line into a proper C declaration
9165lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9166
9167# Transform an extracted symbol line into symbol name and symbol address
9168lt_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'"
9169
9170# Define system-specific variables.
9171case $host_os in
9172aix*)
9173  symcode='[BCDT]'
9174  ;;
9175cygwin* | mingw* | pw32*)
9176  symcode='[ABCDGISTW]'
9177  ;;
9178hpux*) # Its linker distinguishes data from code symbols
9179  if test "$host_cpu" = ia64; then
9180    symcode='[ABCDEGRST]'
9181  fi
9182  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9183  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'"
9184  ;;
9185linux*)
9186  if test "$host_cpu" = ia64; then
9187    symcode='[ABCDGIRSTW]'
9188    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9189    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'"
9190  fi
9191  ;;
9192irix* | nonstopux*)
9193  symcode='[BCDEGRST]'
9194  ;;
9195osf*)
9196  symcode='[BCDEGQRST]'
9197  ;;
9198solaris*)
9199  symcode='[BDRT]'
9200  ;;
9201sco3.2v5*)
9202  symcode='[DT]'
9203  ;;
9204sysv4.2uw2*)
9205  symcode='[DT]'
9206  ;;
9207sysv5* | sco5v6* | unixware* | OpenUNIX*)
9208  symcode='[ABDT]'
9209  ;;
9210sysv4)
9211  symcode='[DFNSTU]'
9212  ;;
9213esac
9214
9215# Handle CRLF in mingw tool chain
9216opt_cr=
9217case $build_os in
9218mingw*)
9219  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9220  ;;
9221esac
9222
9223# If we're using GNU nm, then use its standard symbol codes.
9224case `$NM -V 2>&1` in
9225*GNU* | *'with BFD'*)
9226  symcode='[ABCDGIRSTW]' ;;
9227esac
9228
9229# Try without a prefix undercore, then with it.
9230for ac_symprfx in "" "_"; do
9231
9232  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9233  symxfrm="\\1 $ac_symprfx\\2 \\2"
9234
9235  # Write the raw and C identifiers.
9236  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9237
9238  # Check to see that the pipe works correctly.
9239  pipe_works=no
9240
9241  rm -f conftest*
9242  cat > conftest.$ac_ext <<EOF
9243#ifdef __cplusplus
9244extern "C" {
9245#endif
9246char nm_test_var;
9247void nm_test_func(){}
9248#ifdef __cplusplus
9249}
9250#endif
9251int main(){nm_test_var='a';nm_test_func();return(0);}
9252EOF
9253
9254  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255  (eval $ac_compile) 2>&5
9256  ac_status=$?
9257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258  (exit $ac_status); }; then
9259    # Now try to grab the symbols.
9260    nlist=conftest.nm
9261    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9262  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9263  ac_status=$?
9264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265  (exit $ac_status); } && test -s "$nlist"; then
9266      # Try sorting and uniquifying the output.
9267      if sort "$nlist" | uniq > "$nlist"T; then
9268        mv -f "$nlist"T "$nlist"
9269      else
9270        rm -f "$nlist"T
9271      fi
9272
9273      # Make sure that we snagged all the symbols we need.
9274      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9275        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9276          cat <<EOF > conftest.$ac_ext
9277#ifdef __cplusplus
9278extern "C" {
9279#endif
9280
9281EOF
9282          # Now generate the symbol file.
9283          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9284
9285          cat <<EOF >> conftest.$ac_ext
9286#if defined (__STDC__) && __STDC__
9287# define lt_ptr_t void *
9288#else
9289# define lt_ptr_t char *
9290# define const
9291#endif
9292
9293/* The mapping between symbol names and symbols. */
9294const struct {
9295  const char *name;
9296  lt_ptr_t address;
9297}
9298lt_preloaded_symbols[] =
9299{
9300EOF
9301          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9302          cat <<\EOF >> conftest.$ac_ext
9303  {0, (lt_ptr_t) 0}
9304};
9305
9306#ifdef __cplusplus
9307}
9308#endif
9309EOF
9310          # Now try linking the two files.
9311          mv conftest.$ac_objext conftstm.$ac_objext
9312          lt_save_LIBS="$LIBS"
9313          lt_save_CFLAGS="$CFLAGS"
9314          LIBS="conftstm.$ac_objext"
9315          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9316          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9317  (eval $ac_link) 2>&5
9318  ac_status=$?
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9321            pipe_works=yes
9322          fi
9323          LIBS="$lt_save_LIBS"
9324          CFLAGS="$lt_save_CFLAGS"
9325        else
9326          echo "cannot find nm_test_func in $nlist" >&5
9327        fi
9328      else
9329        echo "cannot find nm_test_var in $nlist" >&5
9330      fi
9331    else
9332      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9333    fi
9334  else
9335    echo "$progname: failed program was:" >&5
9336    cat conftest.$ac_ext >&5
9337  fi
9338  rm -f conftest* conftst*
9339
9340  # Do not use the global_symbol_pipe unless it works.
9341  if test "$pipe_works" = yes; then
9342    break
9343  else
9344    lt_cv_sys_global_symbol_pipe=
9345  fi
9346done
9347
9348fi
9349
9350if test -z "$lt_cv_sys_global_symbol_pipe"; then
9351  lt_cv_sys_global_symbol_to_cdecl=
9352fi
9353if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9354  echo "$as_me:$LINENO: result: failed" >&5
9355echo "${ECHO_T}failed" >&6
9356else
9357  echo "$as_me:$LINENO: result: ok" >&5
9358echo "${ECHO_T}ok" >&6
9359fi
9360
9361echo "$as_me:$LINENO: checking for objdir" >&5
9362echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9363if test "${lt_cv_objdir+set}" = set; then
9364  echo $ECHO_N "(cached) $ECHO_C" >&6
9365else
9366  rm -f .libs 2>/dev/null
9367mkdir .libs 2>/dev/null
9368if test -d .libs; then
9369  lt_cv_objdir=.libs
9370else
9371  # MS-DOS does not allow filenames that begin with a dot.
9372  lt_cv_objdir=_libs
9373fi
9374rmdir .libs 2>/dev/null
9375fi
9376echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9377echo "${ECHO_T}$lt_cv_objdir" >&6
9378objdir=$lt_cv_objdir
9379
9380
9381
9382
9383
9384case $host_os in
9385aix3*)
9386  # AIX sometimes has problems with the GCC collect2 program.  For some
9387  # reason, if we set the COLLECT_NAMES environment variable, the problems
9388  # vanish in a puff of smoke.
9389  if test "X${COLLECT_NAMES+set}" != Xset; then
9390    COLLECT_NAMES=
9391    export COLLECT_NAMES
9392  fi
9393  ;;
9394esac
9395
9396# Sed substitution that helps us do robust quoting.  It backslashifies
9397# metacharacters that are still active within double-quoted strings.
9398Xsed='sed -e 1s/^X//'
9399sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9400
9401# Same as above, but do not quote variable references.
9402double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9403
9404# Sed substitution to delay expansion of an escaped shell variable in a
9405# double_quote_subst'ed string.
9406delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9407
9408# Sed substitution to avoid accidental globbing in evaled expressions
9409no_glob_subst='s/\*/\\\*/g'
9410
9411# Constants:
9412rm="rm -f"
9413
9414# Global variables:
9415default_ofile=libtool
9416can_build_shared=yes
9417
9418# All known linkers require a `.a' archive for static linking (except MSVC,
9419# which needs '.lib').
9420libext=a
9421ltmain="$ac_aux_dir/ltmain.sh"
9422ofile="$default_ofile"
9423with_gnu_ld="$lt_cv_prog_gnu_ld"
9424
9425if test -n "$ac_tool_prefix"; then
9426  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9427set dummy ${ac_tool_prefix}ar; ac_word=$2
9428echo "$as_me:$LINENO: checking for $ac_word" >&5
9429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9430if test "${ac_cv_prog_AR+set}" = set; then
9431  echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433  if test -n "$AR"; then
9434  ac_cv_prog_AR="$AR" # Let the user override the test.
9435else
9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437for as_dir in $PATH
9438do
9439  IFS=$as_save_IFS
9440  test -z "$as_dir" && as_dir=.
9441  for ac_exec_ext in '' $ac_executable_extensions; do
9442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443    ac_cv_prog_AR="${ac_tool_prefix}ar"
9444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445    break 2
9446  fi
9447done
9448done
9449
9450fi
9451fi
9452AR=$ac_cv_prog_AR
9453if test -n "$AR"; then
9454  echo "$as_me:$LINENO: result: $AR" >&5
9455echo "${ECHO_T}$AR" >&6
9456else
9457  echo "$as_me:$LINENO: result: no" >&5
9458echo "${ECHO_T}no" >&6
9459fi
9460
9461fi
9462if test -z "$ac_cv_prog_AR"; then
9463  ac_ct_AR=$AR
9464  # Extract the first word of "ar", so it can be a program name with args.
9465set dummy ar; ac_word=$2
9466echo "$as_me:$LINENO: checking for $ac_word" >&5
9467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9468if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9469  echo $ECHO_N "(cached) $ECHO_C" >&6
9470else
9471  if test -n "$ac_ct_AR"; then
9472  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9473else
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477  IFS=$as_save_IFS
9478  test -z "$as_dir" && as_dir=.
9479  for ac_exec_ext in '' $ac_executable_extensions; do
9480  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9481    ac_cv_prog_ac_ct_AR="ar"
9482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483    break 2
9484  fi
9485done
9486done
9487
9488  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9489fi
9490fi
9491ac_ct_AR=$ac_cv_prog_ac_ct_AR
9492if test -n "$ac_ct_AR"; then
9493  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9494echo "${ECHO_T}$ac_ct_AR" >&6
9495else
9496  echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498fi
9499
9500  AR=$ac_ct_AR
9501else
9502  AR="$ac_cv_prog_AR"
9503fi
9504
9505if test -n "$ac_tool_prefix"; then
9506  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9507set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9508echo "$as_me:$LINENO: checking for $ac_word" >&5
9509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9510if test "${ac_cv_prog_RANLIB+set}" = set; then
9511  echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513  if test -n "$RANLIB"; then
9514  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9515else
9516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517for as_dir in $PATH
9518do
9519  IFS=$as_save_IFS
9520  test -z "$as_dir" && as_dir=.
9521  for ac_exec_ext in '' $ac_executable_extensions; do
9522  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9523    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525    break 2
9526  fi
9527done
9528done
9529
9530fi
9531fi
9532RANLIB=$ac_cv_prog_RANLIB
9533if test -n "$RANLIB"; then
9534  echo "$as_me:$LINENO: result: $RANLIB" >&5
9535echo "${ECHO_T}$RANLIB" >&6
9536else
9537  echo "$as_me:$LINENO: result: no" >&5
9538echo "${ECHO_T}no" >&6
9539fi
9540
9541fi
9542if test -z "$ac_cv_prog_RANLIB"; then
9543  ac_ct_RANLIB=$RANLIB
9544  # Extract the first word of "ranlib", so it can be a program name with args.
9545set dummy ranlib; ac_word=$2
9546echo "$as_me:$LINENO: checking for $ac_word" >&5
9547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9548if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9549  echo $ECHO_N "(cached) $ECHO_C" >&6
9550else
9551  if test -n "$ac_ct_RANLIB"; then
9552  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9553else
9554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555for as_dir in $PATH
9556do
9557  IFS=$as_save_IFS
9558  test -z "$as_dir" && as_dir=.
9559  for ac_exec_ext in '' $ac_executable_extensions; do
9560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9561    ac_cv_prog_ac_ct_RANLIB="ranlib"
9562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9563    break 2
9564  fi
9565done
9566done
9567
9568  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9569fi
9570fi
9571ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9572if test -n "$ac_ct_RANLIB"; then
9573  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9574echo "${ECHO_T}$ac_ct_RANLIB" >&6
9575else
9576  echo "$as_me:$LINENO: result: no" >&5
9577echo "${ECHO_T}no" >&6
9578fi
9579
9580  RANLIB=$ac_ct_RANLIB
9581else
9582  RANLIB="$ac_cv_prog_RANLIB"
9583fi
9584
9585if test -n "$ac_tool_prefix"; then
9586  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9587set dummy ${ac_tool_prefix}strip; ac_word=$2
9588echo "$as_me:$LINENO: checking for $ac_word" >&5
9589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9590if test "${ac_cv_prog_STRIP+set}" = set; then
9591  echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593  if test -n "$STRIP"; then
9594  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9595else
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599  IFS=$as_save_IFS
9600  test -z "$as_dir" && as_dir=.
9601  for ac_exec_ext in '' $ac_executable_extensions; do
9602  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9603    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9604    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9605    break 2
9606  fi
9607done
9608done
9609
9610fi
9611fi
9612STRIP=$ac_cv_prog_STRIP
9613if test -n "$STRIP"; then
9614  echo "$as_me:$LINENO: result: $STRIP" >&5
9615echo "${ECHO_T}$STRIP" >&6
9616else
9617  echo "$as_me:$LINENO: result: no" >&5
9618echo "${ECHO_T}no" >&6
9619fi
9620
9621fi
9622if test -z "$ac_cv_prog_STRIP"; then
9623  ac_ct_STRIP=$STRIP
9624  # Extract the first word of "strip", so it can be a program name with args.
9625set dummy strip; 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_ac_ct_STRIP+set}" = set; then
9629  echo $ECHO_N "(cached) $ECHO_C" >&6
9630else
9631  if test -n "$ac_ct_STRIP"; then
9632  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_ac_ct_STRIP="strip"
9642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9643    break 2
9644  fi
9645done
9646done
9647
9648  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9649fi
9650fi
9651ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9652if test -n "$ac_ct_STRIP"; then
9653  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9654echo "${ECHO_T}$ac_ct_STRIP" >&6
9655else
9656  echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658fi
9659
9660  STRIP=$ac_ct_STRIP
9661else
9662  STRIP="$ac_cv_prog_STRIP"
9663fi
9664
9665
9666old_CC="$CC"
9667old_CFLAGS="$CFLAGS"
9668
9669# Set sane defaults for various variables
9670test -z "$AR" && AR=ar
9671test -z "$AR_FLAGS" && AR_FLAGS=cru
9672test -z "$AS" && AS=as
9673test -z "$CC" && CC=cc
9674test -z "$LTCC" && LTCC=$CC
9675test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9676test -z "$DLLTOOL" && DLLTOOL=dlltool
9677test -z "$LD" && LD=ld
9678test -z "$LN_S" && LN_S="ln -s"
9679test -z "$MAGIC_CMD" && MAGIC_CMD=file
9680test -z "$NM" && NM=nm
9681test -z "$SED" && SED=sed
9682test -z "$OBJDUMP" && OBJDUMP=objdump
9683test -z "$RANLIB" && RANLIB=:
9684test -z "$STRIP" && STRIP=:
9685test -z "$ac_objext" && ac_objext=o
9686
9687# Determine commands to create old-style static archives.
9688old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9689old_postinstall_cmds='chmod 644 $oldlib'
9690old_postuninstall_cmds=
9691
9692if test -n "$RANLIB"; then
9693  case $host_os in
9694  openbsd*)
9695    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9696    ;;
9697  *)
9698    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9699    ;;
9700  esac
9701  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9702fi
9703
9704for cc_temp in $compiler""; do
9705  case $cc_temp in
9706    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9707    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9708    \-*) ;;
9709    *) break;;
9710  esac
9711done
9712cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9713
9714
9715# Only perform the check for file, if the check method requires it
9716case $deplibs_check_method in
9717file_magic*)
9718  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9719    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9720echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9721if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9722  echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724  case $MAGIC_CMD in
9725[\\/*] |  ?:[\\/]*)
9726  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9727  ;;
9728*)
9729  lt_save_MAGIC_CMD="$MAGIC_CMD"
9730  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9731  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9732  for ac_dir in $ac_dummy; do
9733    IFS="$lt_save_ifs"
9734    test -z "$ac_dir" && ac_dir=.
9735    if test -f $ac_dir/${ac_tool_prefix}file; then
9736      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9737      if test -n "$file_magic_test_file"; then
9738        case $deplibs_check_method in
9739        "file_magic "*)
9740          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9741          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9742          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9743            $EGREP "$file_magic_regex" > /dev/null; then
9744            :
9745          else
9746            cat <<EOF 1>&2
9747
9748*** Warning: the command libtool uses to detect shared libraries,
9749*** $file_magic_cmd, produces output that libtool cannot recognize.
9750*** The result is that libtool may fail to recognize shared libraries
9751*** as such.  This will affect the creation of libtool libraries that
9752*** depend on shared libraries, but programs linked with such libtool
9753*** libraries will work regardless of this problem.  Nevertheless, you
9754*** may want to report the problem to your system manager and/or to
9755*** bug-libtool@gnu.org
9756
9757EOF
9758          fi ;;
9759        esac
9760      fi
9761      break
9762    fi
9763  done
9764  IFS="$lt_save_ifs"
9765  MAGIC_CMD="$lt_save_MAGIC_CMD"
9766  ;;
9767esac
9768fi
9769
9770MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9771if test -n "$MAGIC_CMD"; then
9772  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9773echo "${ECHO_T}$MAGIC_CMD" >&6
9774else
9775  echo "$as_me:$LINENO: result: no" >&5
9776echo "${ECHO_T}no" >&6
9777fi
9778
9779if test -z "$lt_cv_path_MAGIC_CMD"; then
9780  if test -n "$ac_tool_prefix"; then
9781    echo "$as_me:$LINENO: checking for file" >&5
9782echo $ECHO_N "checking for file... $ECHO_C" >&6
9783if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9784  echo $ECHO_N "(cached) $ECHO_C" >&6
9785else
9786  case $MAGIC_CMD in
9787[\\/*] |  ?:[\\/]*)
9788  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9789  ;;
9790*)
9791  lt_save_MAGIC_CMD="$MAGIC_CMD"
9792  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9793  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9794  for ac_dir in $ac_dummy; do
9795    IFS="$lt_save_ifs"
9796    test -z "$ac_dir" && ac_dir=.
9797    if test -f $ac_dir/file; then
9798      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9799      if test -n "$file_magic_test_file"; then
9800        case $deplibs_check_method in
9801        "file_magic "*)
9802          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9803          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9804          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9805            $EGREP "$file_magic_regex" > /dev/null; then
9806            :
9807          else
9808            cat <<EOF 1>&2
9809
9810*** Warning: the command libtool uses to detect shared libraries,
9811*** $file_magic_cmd, produces output that libtool cannot recognize.
9812*** The result is that libtool may fail to recognize shared libraries
9813*** as such.  This will affect the creation of libtool libraries that
9814*** depend on shared libraries, but programs linked with such libtool
9815*** libraries will work regardless of this problem.  Nevertheless, you
9816*** may want to report the problem to your system manager and/or to
9817*** bug-libtool@gnu.org
9818
9819EOF
9820          fi ;;
9821        esac
9822      fi
9823      break
9824    fi
9825  done
9826  IFS="$lt_save_ifs"
9827  MAGIC_CMD="$lt_save_MAGIC_CMD"
9828  ;;
9829esac
9830fi
9831
9832MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9833if test -n "$MAGIC_CMD"; then
9834  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9835echo "${ECHO_T}$MAGIC_CMD" >&6
9836else
9837  echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839fi
9840
9841  else
9842    MAGIC_CMD=:
9843  fi
9844fi
9845
9846  fi
9847  ;;
9848esac
9849
9850enable_dlopen=no
9851enable_win32_dll=no
9852
9853# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9854if test "${enable_libtool_lock+set}" = set; then
9855  enableval="$enable_libtool_lock"
9856
9857fi;
9858test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9859
9860
9861# Check whether --with-pic or --without-pic was given.
9862if test "${with_pic+set}" = set; then
9863  withval="$with_pic"
9864  pic_mode="$withval"
9865else
9866  pic_mode=default
9867fi;
9868test -z "$pic_mode" && pic_mode=default
9869
9870# Use C for the default configuration in the libtool script
9871tagname=
9872lt_save_CC="$CC"
9873ac_ext=c
9874ac_cpp='$CPP $CPPFLAGS'
9875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9877ac_compiler_gnu=$ac_cv_c_compiler_gnu
9878
9879
9880# Source file extension for C test sources.
9881ac_ext=c
9882
9883# Object file extension for compiled C test sources.
9884objext=o
9885objext=$objext
9886
9887# Code to be used in simple compile tests
9888lt_simple_compile_test_code="int some_variable = 0;\n"
9889
9890# Code to be used in simple link tests
9891lt_simple_link_test_code='int main(){return(0);}\n'
9892
9893
9894# If no C compiler was specified, use CC.
9895LTCC=${LTCC-"$CC"}
9896
9897# If no C compiler flags were specified, use CFLAGS.
9898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9899
9900# Allow CC to be a program name with arguments.
9901compiler=$CC
9902
9903
9904# save warnings/boilerplate of simple test code
9905ac_outfile=conftest.$ac_objext
9906printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9907eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9908_lt_compiler_boilerplate=`cat conftest.err`
9909$rm conftest*
9910
9911ac_outfile=conftest.$ac_objext
9912printf "$lt_simple_link_test_code" >conftest.$ac_ext
9913eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9914_lt_linker_boilerplate=`cat conftest.err`
9915$rm conftest*
9916
9917
9918## CAVEAT EMPTOR:
9919## There is no encapsulation within the following macros, do not change
9920## the running order or otherwise move them around unless you know exactly
9921## what you are doing...
9922
9923lt_prog_compiler_no_builtin_flag=
9924
9925if test "$GCC" = yes; then
9926  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9927
9928
9929echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9930echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9931if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9932  echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934  lt_cv_prog_compiler_rtti_exceptions=no
9935  ac_outfile=conftest.$ac_objext
9936   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9937   lt_compiler_flag="-fno-rtti -fno-exceptions"
9938   # Insert the option either (1) after the last *FLAGS variable, or
9939   # (2) before a word containing "conftest.", or (3) at the end.
9940   # Note that $ac_compile itself does not contain backslashes and begins
9941   # with a dollar sign (not a hyphen), so the echo should work correctly.
9942   # The option is referenced via a variable to avoid confusing sed.
9943   lt_compile=`echo "$ac_compile" | $SED \
9944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9946   -e 's:$: $lt_compiler_flag:'`
9947   (eval echo "\"\$as_me:9947: $lt_compile\"" >&5)
9948   (eval "$lt_compile" 2>conftest.err)
9949   ac_status=$?
9950   cat conftest.err >&5
9951   echo "$as_me:9951: \$? = $ac_status" >&5
9952   if (exit $ac_status) && test -s "$ac_outfile"; then
9953     # The compiler can only warn and ignore the option if not recognized
9954     # So say no if there are warnings other than the usual output.
9955     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9956     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9957     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9958       lt_cv_prog_compiler_rtti_exceptions=yes
9959     fi
9960   fi
9961   $rm conftest*
9962
9963fi
9964echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9965echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9966
9967if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9968    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9969else
9970    :
9971fi
9972
9973fi
9974
9975lt_prog_compiler_wl=
9976lt_prog_compiler_pic=
9977lt_prog_compiler_static=
9978
9979echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9980echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9981
9982  if test "$GCC" = yes; then
9983    lt_prog_compiler_wl='-Wl,'
9984    lt_prog_compiler_static='-static'
9985
9986    case $host_os in
9987      aix*)
9988      # All AIX code is PIC.
9989      if test "$host_cpu" = ia64; then
9990        # AIX 5 now supports IA64 processor
9991        lt_prog_compiler_static='-Bstatic'
9992      fi
9993      ;;
9994
9995    amigaos*)
9996      # FIXME: we need at least 68020 code to build shared libraries, but
9997      # adding the `-m68020' flag to GCC prevents building anything better,
9998      # like `-m68040'.
9999      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10000      ;;
10001
10002    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10003      # PIC is the default for these OSes.
10004      ;;
10005
10006    mingw* | pw32* | os2*)
10007      # This hack is so that the source file can tell whether it is being
10008      # built for inclusion in a dll (and should export symbols for example).
10009      lt_prog_compiler_pic='-DDLL_EXPORT'
10010      ;;
10011
10012    darwin* | rhapsody*)
10013      # PIC is the default on this platform
10014      # Common symbols not allowed in MH_DYLIB files
10015      lt_prog_compiler_pic='-fno-common'
10016      ;;
10017
10018    interix3*)
10019      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10020      # Instead, we relocate shared libraries at runtime.
10021      ;;
10022
10023    msdosdjgpp*)
10024      # Just because we use GCC doesn't mean we suddenly get shared libraries
10025      # on systems that don't support them.
10026      lt_prog_compiler_can_build_shared=no
10027      enable_shared=no
10028      ;;
10029
10030    sysv4*MP*)
10031      if test -d /usr/nec; then
10032        lt_prog_compiler_pic=-Kconform_pic
10033      fi
10034      ;;
10035
10036    hpux*)
10037      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10038      # not for PA HP-UX.
10039      case $host_cpu in
10040      hppa*64*|ia64*)
10041        # +Z the default
10042        ;;
10043      *)
10044        lt_prog_compiler_pic='-fPIC'
10045        ;;
10046      esac
10047      ;;
10048
10049    *)
10050      lt_prog_compiler_pic='-fPIC'
10051      ;;
10052    esac
10053  else
10054    # PORTME Check for flag to pass linker flags through the system compiler.
10055    case $host_os in
10056    aix*)
10057      lt_prog_compiler_wl='-Wl,'
10058      if test "$host_cpu" = ia64; then
10059        # AIX 5 now supports IA64 processor
10060        lt_prog_compiler_static='-Bstatic'
10061      else
10062        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10063      fi
10064      ;;
10065      darwin*)
10066        # PIC is the default on this platform
10067        # Common symbols not allowed in MH_DYLIB files
10068       case $cc_basename in
10069         xlc*)
10070         lt_prog_compiler_pic='-qnocommon'
10071         lt_prog_compiler_wl='-Wl,'
10072         ;;
10073       esac
10074       ;;
10075
10076    mingw* | pw32* | os2*)
10077      # This hack is so that the source file can tell whether it is being
10078      # built for inclusion in a dll (and should export symbols for example).
10079      lt_prog_compiler_pic='-DDLL_EXPORT'
10080      ;;
10081
10082    hpux9* | hpux10* | hpux11*)
10083      lt_prog_compiler_wl='-Wl,'
10084      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10085      # not for PA HP-UX.
10086      case $host_cpu in
10087      hppa*64*|ia64*)
10088        # +Z the default
10089        ;;
10090      *)
10091        lt_prog_compiler_pic='+Z'
10092        ;;
10093      esac
10094      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10095      lt_prog_compiler_static='${wl}-a ${wl}archive'
10096      ;;
10097
10098    irix5* | irix6* | nonstopux*)
10099      lt_prog_compiler_wl='-Wl,'
10100      # PIC (with -KPIC) is the default.
10101      lt_prog_compiler_static='-non_shared'
10102      ;;
10103
10104    newsos6)
10105      lt_prog_compiler_pic='-KPIC'
10106      lt_prog_compiler_static='-Bstatic'
10107      ;;
10108
10109    linux*)
10110      case $cc_basename in
10111      icc* | ecc*)
10112        lt_prog_compiler_wl='-Wl,'
10113        lt_prog_compiler_pic='-KPIC'
10114        lt_prog_compiler_static='-static'
10115        ;;
10116      pgcc* | pgf77* | pgf90* | pgf95*)
10117        # Portland Group compilers (*not* the Pentium gcc compiler,
10118        # which looks to be a dead project)
10119        lt_prog_compiler_wl='-Wl,'
10120        lt_prog_compiler_pic='-fpic'
10121        lt_prog_compiler_static='-Bstatic'
10122        ;;
10123      ccc*)
10124        lt_prog_compiler_wl='-Wl,'
10125        # All Alpha code is PIC.
10126        lt_prog_compiler_static='-non_shared'
10127        ;;
10128      esac
10129      ;;
10130
10131    osf3* | osf4* | osf5*)
10132      lt_prog_compiler_wl='-Wl,'
10133      # All OSF/1 code is PIC.
10134      lt_prog_compiler_static='-non_shared'
10135      ;;
10136
10137    solaris*)
10138      lt_prog_compiler_pic='-KPIC'
10139      lt_prog_compiler_static='-Bstatic'
10140      case $cc_basename in
10141      f77* | f90* | f95*)
10142        lt_prog_compiler_wl='-Qoption ld ';;
10143      *)
10144        lt_prog_compiler_wl='-Wl,';;
10145      esac
10146      ;;
10147
10148    sunos4*)
10149      lt_prog_compiler_wl='-Qoption ld '
10150      lt_prog_compiler_pic='-PIC'
10151      lt_prog_compiler_static='-Bstatic'
10152      ;;
10153
10154    sysv4 | sysv4.2uw2* | sysv4.3*)
10155      lt_prog_compiler_wl='-Wl,'
10156      lt_prog_compiler_pic='-KPIC'
10157      lt_prog_compiler_static='-Bstatic'
10158      ;;
10159
10160    sysv4*MP*)
10161      if test -d /usr/nec ;then
10162        lt_prog_compiler_pic='-Kconform_pic'
10163        lt_prog_compiler_static='-Bstatic'
10164      fi
10165      ;;
10166
10167    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10168      lt_prog_compiler_wl='-Wl,'
10169      lt_prog_compiler_pic='-KPIC'
10170      lt_prog_compiler_static='-Bstatic'
10171      ;;
10172
10173    unicos*)
10174      lt_prog_compiler_wl='-Wl,'
10175      lt_prog_compiler_can_build_shared=no
10176      ;;
10177
10178    uts4*)
10179      lt_prog_compiler_pic='-pic'
10180      lt_prog_compiler_static='-Bstatic'
10181      ;;
10182
10183    *)
10184      lt_prog_compiler_can_build_shared=no
10185      ;;
10186    esac
10187  fi
10188
10189echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10190echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10191
10192#
10193# Check to make sure the PIC flag actually works.
10194#
10195if test -n "$lt_prog_compiler_pic"; then
10196
10197echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10198echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10199if test "${lt_prog_compiler_pic_works+set}" = set; then
10200  echo $ECHO_N "(cached) $ECHO_C" >&6
10201else
10202  lt_prog_compiler_pic_works=no
10203  ac_outfile=conftest.$ac_objext
10204   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10205   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10206   # Insert the option either (1) after the last *FLAGS variable, or
10207   # (2) before a word containing "conftest.", or (3) at the end.
10208   # Note that $ac_compile itself does not contain backslashes and begins
10209   # with a dollar sign (not a hyphen), so the echo should work correctly.
10210   # The option is referenced via a variable to avoid confusing sed.
10211   lt_compile=`echo "$ac_compile" | $SED \
10212   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10213   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10214   -e 's:$: $lt_compiler_flag:'`
10215   (eval echo "\"\$as_me:10215: $lt_compile\"" >&5)
10216   (eval "$lt_compile" 2>conftest.err)
10217   ac_status=$?
10218   cat conftest.err >&5
10219   echo "$as_me:10219: \$? = $ac_status" >&5
10220   if (exit $ac_status) && test -s "$ac_outfile"; then
10221     # The compiler can only warn and ignore the option if not recognized
10222     # So say no if there are warnings other than the usual output.
10223     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10224     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10225     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10226       lt_prog_compiler_pic_works=yes
10227     fi
10228   fi
10229   $rm conftest*
10230
10231fi
10232echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10233echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10234
10235if test x"$lt_prog_compiler_pic_works" = xyes; then
10236    case $lt_prog_compiler_pic in
10237     "" | " "*) ;;
10238     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10239     esac
10240else
10241    lt_prog_compiler_pic=
10242     lt_prog_compiler_can_build_shared=no
10243fi
10244
10245fi
10246case $host_os in
10247  # For platforms which do not support PIC, -DPIC is meaningless:
10248  *djgpp*)
10249    lt_prog_compiler_pic=
10250    ;;
10251  *)
10252    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10253    ;;
10254esac
10255
10256#
10257# Check to make sure the static flag actually works.
10258#
10259wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10260echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10261echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10262if test "${lt_prog_compiler_static_works+set}" = set; then
10263  echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265  lt_prog_compiler_static_works=no
10266   save_LDFLAGS="$LDFLAGS"
10267   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10268   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10269   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10270     # The linker can only warn and ignore the option if not recognized
10271     # So say no if there are warnings
10272     if test -s conftest.err; then
10273       # Append any errors to the config.log.
10274       cat conftest.err 1>&5
10275       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10276       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10277       if diff conftest.exp conftest.er2 >/dev/null; then
10278         lt_prog_compiler_static_works=yes
10279       fi
10280     else
10281       lt_prog_compiler_static_works=yes
10282     fi
10283   fi
10284   $rm conftest*
10285   LDFLAGS="$save_LDFLAGS"
10286
10287fi
10288echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10289echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10290
10291if test x"$lt_prog_compiler_static_works" = xyes; then
10292    :
10293else
10294    lt_prog_compiler_static=
10295fi
10296
10297
10298echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10299echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10300if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10301  echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303  lt_cv_prog_compiler_c_o=no
10304   $rm -r conftest 2>/dev/null
10305   mkdir conftest
10306   cd conftest
10307   mkdir out
10308   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10309
10310   lt_compiler_flag="-o out/conftest2.$ac_objext"
10311   # Insert the option either (1) after the last *FLAGS variable, or
10312   # (2) before a word containing "conftest.", or (3) at the end.
10313   # Note that $ac_compile itself does not contain backslashes and begins
10314   # with a dollar sign (not a hyphen), so the echo should work correctly.
10315   lt_compile=`echo "$ac_compile" | $SED \
10316   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10317   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10318   -e 's:$: $lt_compiler_flag:'`
10319   (eval echo "\"\$as_me:10319: $lt_compile\"" >&5)
10320   (eval "$lt_compile" 2>out/conftest.err)
10321   ac_status=$?
10322   cat out/conftest.err >&5
10323   echo "$as_me:10323: \$? = $ac_status" >&5
10324   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10325   then
10326     # The compiler can only warn and ignore the option if not recognized
10327     # So say no if there are warnings
10328     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10329     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10330     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10331       lt_cv_prog_compiler_c_o=yes
10332     fi
10333   fi
10334   chmod u+w . 2>&5
10335   $rm conftest*
10336   # SGI C++ compiler will create directory out/ii_files/ for
10337   # template instantiation
10338   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10339   $rm out/* && rmdir out
10340   cd ..
10341   rmdir conftest
10342   $rm conftest*
10343
10344fi
10345echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10346echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10347
10348
10349hard_links="nottested"
10350if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10351  # do not overwrite the value of need_locks provided by the user
10352  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10353echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10354  hard_links=yes
10355  $rm conftest*
10356  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10357  touch conftest.a
10358  ln conftest.a conftest.b 2>&5 || hard_links=no
10359  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10360  echo "$as_me:$LINENO: result: $hard_links" >&5
10361echo "${ECHO_T}$hard_links" >&6
10362  if test "$hard_links" = no; then
10363    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10364echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10365    need_locks=warn
10366  fi
10367else
10368  need_locks=no
10369fi
10370
10371echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10372echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10373
10374  runpath_var=
10375  allow_undefined_flag=
10376  enable_shared_with_static_runtimes=no
10377  archive_cmds=
10378  archive_expsym_cmds=
10379  old_archive_From_new_cmds=
10380  old_archive_from_expsyms_cmds=
10381  export_dynamic_flag_spec=
10382  whole_archive_flag_spec=
10383  thread_safe_flag_spec=
10384  hardcode_libdir_flag_spec=
10385  hardcode_libdir_flag_spec_ld=
10386  hardcode_libdir_separator=
10387  hardcode_direct=no
10388  hardcode_minus_L=no
10389  hardcode_shlibpath_var=unsupported
10390  link_all_deplibs=unknown
10391  hardcode_automatic=no
10392  module_cmds=
10393  module_expsym_cmds=
10394  always_export_symbols=no
10395  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10396  # include_expsyms should be a list of space-separated symbols to be *always*
10397  # included in the symbol list
10398  include_expsyms=
10399  # exclude_expsyms can be an extended regexp of symbols to exclude
10400  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10401  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10402  # as well as any symbol that contains `d'.
10403  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10404  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10405  # platforms (ab)use it in PIC code, but their linkers get confused if
10406  # the symbol is explicitly referenced.  Since portable code cannot
10407  # rely on this symbol name, it's probably fine to never include it in
10408  # preloaded symbol tables.
10409  extract_expsyms_cmds=
10410  # Just being paranoid about ensuring that cc_basename is set.
10411  for cc_temp in $compiler""; do
10412  case $cc_temp in
10413    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10414    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10415    \-*) ;;
10416    *) break;;
10417  esac
10418done
10419cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10420
10421  case $host_os in
10422  cygwin* | mingw* | pw32*)
10423    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10424    # When not using gcc, we currently assume that we are using
10425    # Microsoft Visual C++.
10426    if test "$GCC" != yes; then
10427      with_gnu_ld=no
10428    fi
10429    ;;
10430  interix*)
10431    # we just hope/assume this is gcc and not c89 (= MSVC++)
10432    with_gnu_ld=yes
10433    ;;
10434  openbsd*)
10435    with_gnu_ld=no
10436    ;;
10437  esac
10438
10439  ld_shlibs=yes
10440  if test "$with_gnu_ld" = yes; then
10441    # If archive_cmds runs LD, not CC, wlarc should be empty
10442    wlarc='${wl}'
10443
10444    # Set some defaults for GNU ld with shared library support. These
10445    # are reset later if shared libraries are not supported. Putting them
10446    # here allows them to be overridden if necessary.
10447    runpath_var=LD_RUN_PATH
10448    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10449    export_dynamic_flag_spec='${wl}--export-dynamic'
10450    # ancient GNU ld didn't support --whole-archive et. al.
10451    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10452        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10453      else
10454        whole_archive_flag_spec=
10455    fi
10456    supports_anon_versioning=no
10457    case `$LD -v 2>/dev/null` in
10458      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10459      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10460      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10461      *\ 2.11.*) ;; # other 2.11 versions
10462      *) supports_anon_versioning=yes ;;
10463    esac
10464
10465    # See if GNU ld supports shared libraries.
10466    case $host_os in
10467    aix3* | aix4* | aix5*)
10468      # On AIX/PPC, the GNU linker is very broken
10469      if test "$host_cpu" != ia64; then
10470        ld_shlibs=no
10471        cat <<EOF 1>&2
10472
10473*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10474*** to be unable to reliably create shared libraries on AIX.
10475*** Therefore, libtool is disabling shared libraries support.  If you
10476*** really care for shared libraries, you may want to modify your PATH
10477*** so that a non-GNU linker is found, and then restart.
10478
10479EOF
10480      fi
10481      ;;
10482
10483    amigaos*)
10484      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)'
10485      hardcode_libdir_flag_spec='-L$libdir'
10486      hardcode_minus_L=yes
10487
10488      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10489      # that the semantics of dynamic libraries on AmigaOS, at least up
10490      # to version 4, is to share data among multiple programs linked
10491      # with the same dynamic library.  Since this doesn't match the
10492      # behavior of shared libraries on other platforms, we can't use
10493      # them.
10494      ld_shlibs=no
10495      ;;
10496
10497    beos*)
10498      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10499        allow_undefined_flag=unsupported
10500        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10501        # support --undefined.  This deserves some investigation.  FIXME
10502        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10503      else
10504        ld_shlibs=no
10505      fi
10506      ;;
10507
10508    cygwin* | mingw* | pw32*)
10509      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10510      # as there is no search path for DLLs.
10511      hardcode_libdir_flag_spec='-L$libdir'
10512      allow_undefined_flag=unsupported
10513      always_export_symbols=no
10514      enable_shared_with_static_runtimes=yes
10515      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10516
10517      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10518        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10519        # If the export-symbols file already is a .def file (1st line
10520        # is EXPORTS), use it as is; otherwise, prepend...
10521        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10522          cp $export_symbols $output_objdir/$soname.def;
10523        else
10524          echo EXPORTS > $output_objdir/$soname.def;
10525          cat $export_symbols >> $output_objdir/$soname.def;
10526        fi~
10527        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10528      else
10529        ld_shlibs=no
10530      fi
10531      ;;
10532
10533    interix3*)
10534      hardcode_direct=no
10535      hardcode_shlibpath_var=no
10536      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10537      export_dynamic_flag_spec='${wl}-E'
10538      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10539      # Instead, shared libraries are loaded at an image base (0x10000000 by
10540      # default) and relocated if they conflict, which is a slow very memory
10541      # consuming and fragmenting process.  To avoid this, we pick a random,
10542      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10543      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10544      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10545      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'
10546      ;;
10547
10548    linux*)
10549      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10550        tmp_addflag=
10551        case $cc_basename,$host_cpu in
10552        pgcc*)                          # Portland Group C compiler
10553          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'
10554          tmp_addflag=' $pic_flag'
10555          ;;
10556        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10557          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'
10558          tmp_addflag=' $pic_flag -Mnomain' ;;
10559        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10560          tmp_addflag=' -i_dynamic' ;;
10561        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10562          tmp_addflag=' -i_dynamic -nofor_main' ;;
10563        ifc* | ifort*)                  # Intel Fortran compiler
10564          tmp_addflag=' -nofor_main' ;;
10565        esac
10566        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10567
10568        if test $supports_anon_versioning = yes; then
10569          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10570  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10571  $echo "local: *; };" >> $output_objdir/$libname.ver~
10572          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10573        fi
10574      else
10575        ld_shlibs=no
10576      fi
10577      ;;
10578
10579    netbsd*)
10580      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10581        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10582        wlarc=
10583      else
10584        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10585        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10586      fi
10587      ;;
10588
10589    solaris*)
10590      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10591        ld_shlibs=no
10592        cat <<EOF 1>&2
10593
10594*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10595*** create shared libraries on Solaris systems.  Therefore, libtool
10596*** is disabling shared libraries support.  We urge you to upgrade GNU
10597*** binutils to release 2.9.1 or newer.  Another option is to modify
10598*** your PATH or compiler configuration so that the native linker is
10599*** used, and then restart.
10600
10601EOF
10602      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10603        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10604        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10605      else
10606        ld_shlibs=no
10607      fi
10608      ;;
10609
10610    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10611      case `$LD -v 2>&1` in
10612        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10613        ld_shlibs=no
10614        cat <<_LT_EOF 1>&2
10615
10616*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10617*** reliably create shared libraries on SCO systems.  Therefore, libtool
10618*** is disabling shared libraries support.  We urge you to upgrade GNU
10619*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10620*** your PATH or compiler configuration so that the native linker is
10621*** used, and then restart.
10622
10623_LT_EOF
10624        ;;
10625        *)
10626          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10627            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10628            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10629            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10630          else
10631            ld_shlibs=no
10632          fi
10633        ;;
10634      esac
10635      ;;
10636
10637    sunos4*)
10638      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10639      wlarc=
10640      hardcode_direct=yes
10641      hardcode_shlibpath_var=no
10642      ;;
10643
10644    *)
10645      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10646        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10647        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10648      else
10649        ld_shlibs=no
10650      fi
10651      ;;
10652    esac
10653
10654    if test "$ld_shlibs" = no; then
10655      runpath_var=
10656      hardcode_libdir_flag_spec=
10657      export_dynamic_flag_spec=
10658      whole_archive_flag_spec=
10659    fi
10660  else
10661    # PORTME fill in a description of your system's linker (not GNU ld)
10662    case $host_os in
10663    aix3*)
10664      allow_undefined_flag=unsupported
10665      always_export_symbols=yes
10666      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'
10667      # Note: this linker hardcodes the directories in LIBPATH if there
10668      # are no directories specified by -L.
10669      hardcode_minus_L=yes
10670      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10671        # Neither direct hardcoding nor static linking is supported with a
10672        # broken collect2.
10673        hardcode_direct=unsupported
10674      fi
10675      ;;
10676
10677    aix4* | aix5*)
10678      if test "$host_cpu" = ia64; then
10679        # On IA64, the linker does run time linking by default, so we don't
10680        # have to do anything special.
10681        aix_use_runtimelinking=no
10682        exp_sym_flag='-Bexport'
10683        no_entry_flag=""
10684      else
10685        # If we're using GNU nm, then we don't want the "-C" option.
10686        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10687        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10688          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10689        else
10690          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10691        fi
10692        aix_use_runtimelinking=no
10693
10694        # Test if we are trying to use run time linking or normal
10695        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10696        # need to do runtime linking.
10697        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10698          for ld_flag in $LDFLAGS; do
10699          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10700            aix_use_runtimelinking=yes
10701            break
10702          fi
10703          done
10704          ;;
10705        esac
10706
10707        exp_sym_flag='-bexport'
10708        no_entry_flag='-bnoentry'
10709      fi
10710
10711      # When large executables or shared objects are built, AIX ld can
10712      # have problems creating the table of contents.  If linking a library
10713      # or program results in "error TOC overflow" add -mminimal-toc to
10714      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10715      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10716
10717      archive_cmds=''
10718      hardcode_direct=yes
10719      hardcode_libdir_separator=':'
10720      link_all_deplibs=yes
10721
10722      if test "$GCC" = yes; then
10723        case $host_os in aix4.[012]|aix4.[012].*)
10724        # We only want to do this on AIX 4.2 and lower, the check
10725        # below for broken collect2 doesn't work under 4.3+
10726          collect2name=`${CC} -print-prog-name=collect2`
10727          if test -f "$collect2name" && \
10728           strings "$collect2name" | grep resolve_lib_name >/dev/null
10729          then
10730          # We have reworked collect2
10731          hardcode_direct=yes
10732          else
10733          # We have old collect2
10734          hardcode_direct=unsupported
10735          # It fails to find uninstalled libraries when the uninstalled
10736          # path is not listed in the libpath.  Setting hardcode_minus_L
10737          # to unsupported forces relinking
10738          hardcode_minus_L=yes
10739          hardcode_libdir_flag_spec='-L$libdir'
10740          hardcode_libdir_separator=
10741          fi
10742          ;;
10743        esac
10744        shared_flag='-shared'
10745        if test "$aix_use_runtimelinking" = yes; then
10746          shared_flag="$shared_flag "'${wl}-G'
10747        fi
10748      else
10749        # not using gcc
10750        if test "$host_cpu" = ia64; then
10751        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10752        # chokes on -Wl,-G. The following line is correct:
10753          shared_flag='-G'
10754        else
10755          if test "$aix_use_runtimelinking" = yes; then
10756            shared_flag='${wl}-G'
10757          else
10758            shared_flag='${wl}-bM:SRE'
10759          fi
10760        fi
10761      fi
10762
10763      # It seems that -bexpall does not export symbols beginning with
10764      # underscore (_), so it is better to generate a list of symbols to export.
10765      always_export_symbols=yes
10766      if test "$aix_use_runtimelinking" = yes; then
10767        # Warning - without using the other runtime loading flags (-brtl),
10768        # -berok will link without error, but may produce a broken library.
10769        allow_undefined_flag='-berok'
10770       # Determine the default libpath from the value encoded in an empty executable.
10771       cat >conftest.$ac_ext <<_ACEOF
10772/* confdefs.h.  */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
10776/* end confdefs.h.  */
10777
10778#ifdef F77_DUMMY_MAIN
10779
10780#  ifdef __cplusplus
10781     extern "C"
10782#  endif
10783   int F77_DUMMY_MAIN() { return 1; }
10784
10785#endif
10786int
10787main ()
10788{
10789
10790  ;
10791  return 0;
10792}
10793_ACEOF
10794rm -f conftest.$ac_objext conftest$ac_exeext
10795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10796  (eval $ac_link) 2>conftest.er1
10797  ac_status=$?
10798  grep -v '^ *+' conftest.er1 >conftest.err
10799  rm -f conftest.er1
10800  cat conftest.err >&5
10801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802  (exit $ac_status); } &&
10803         { ac_try='test -z "$ac_c_werror_flag"
10804                         || test ! -s conftest.err'
10805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806  (eval $ac_try) 2>&5
10807  ac_status=$?
10808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809  (exit $ac_status); }; } &&
10810         { ac_try='test -s conftest$ac_exeext'
10811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812  (eval $ac_try) 2>&5
10813  ac_status=$?
10814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815  (exit $ac_status); }; }; then
10816
10817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10818}'`
10819# Check for a 64-bit object if we didn't find anything.
10820if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10821}'`; fi
10822else
10823  echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
10826fi
10827rm -f conftest.err conftest.$ac_objext \
10828      conftest$ac_exeext conftest.$ac_ext
10829if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10830
10831       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10832        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10833       else
10834        if test "$host_cpu" = ia64; then
10835          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10836          allow_undefined_flag="-z nodefs"
10837          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10838        else
10839         # Determine the default libpath from the value encoded in an empty executable.
10840         cat >conftest.$ac_ext <<_ACEOF
10841/* confdefs.h.  */
10842_ACEOF
10843cat confdefs.h >>conftest.$ac_ext
10844cat >>conftest.$ac_ext <<_ACEOF
10845/* end confdefs.h.  */
10846
10847#ifdef F77_DUMMY_MAIN
10848
10849#  ifdef __cplusplus
10850     extern "C"
10851#  endif
10852   int F77_DUMMY_MAIN() { return 1; }
10853
10854#endif
10855int
10856main ()
10857{
10858
10859  ;
10860  return 0;
10861}
10862_ACEOF
10863rm -f conftest.$ac_objext conftest$ac_exeext
10864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10865  (eval $ac_link) 2>conftest.er1
10866  ac_status=$?
10867  grep -v '^ *+' conftest.er1 >conftest.err
10