source: ThirdParty/FilterSQP/branches/split/configure @ 1539

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

rerun autotools; generate addlibs files from .pc files; remove empty README's

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