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

Last change on this file since 2497 was 2497, checked in by tkr, 9 years ago

Re-running autotools

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