source: ThirdParty/FilterSQP/stable/1.3/configure @ 3416

Last change on this file since 3416 was 3416, checked in by tkr, 5 years ago

restoring BuildTools/ThirdParty?/FilterSQP/stable/1.3

File size: 771.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 1.3 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 1.3:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-filtersqp
1080                          compile project FilterSQP with debug compiler flags
1081
1082  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1083  --disable-pkg-config    disable use of pkg-config (if available)
1084  --disable-dependency-tracking  speeds up one-time build
1085  --enable-dependency-tracking   do not reject slow dependency extractors
1086  --enable-maintainer-mode  enable make rules and dependencies not useful
1087                          (and sometimes confusing) to the casual installer
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --disable-dependency-linking
1096                          disable linking library dependencies into shared
1097                          libraries
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-filtersqp-verbosity
1103                          specify the debug verbosity level for project
1104                          FilterSQP
1105  --with-filtersqp-checklevel
1106                          specify the sanity check level for project FilterSQP
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  ADD_FFLAGS  Additional Fortran compiler options
1128  DBG_FFLAGS  Debug Fortran compiler options
1129  OPT_FFLAGS  Optimize Fortran compiler options
1130  F77         Fortran 77 compiler command
1131  FFLAGS      Fortran 77 compiler flags
1132  MPIF77      Fortran MPI Compiler
1133  PKG_CONFIG  path to pkg-config utility
1134  CPP         C preprocessor
1135  CXX         C++ compiler command
1136  CXXFLAGS    C++ compiler flags
1137  CXXCPP      C++ preprocessor
1138
1139Use these variables to override the choices made by `configure' or to help
1140it to find libraries and programs with nonstandard names/locations.
1141
1142Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1143_ACEOF
1144fi
1145
1146if test "$ac_init_help" = "recursive"; then
1147  # If there are subdirs, report their specific --help.
1148  ac_popdir=`pwd`
1149  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1150    test -d $ac_dir || continue
1151    ac_builddir=.
1152
1153if test "$ac_dir" != .; then
1154  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1155  # A "../" for each directory in $ac_dir_suffix.
1156  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1157else
1158  ac_dir_suffix= ac_top_builddir=
1159fi
1160
1161case $srcdir in
1162  .)  # No --srcdir option.  We are building in place.
1163    ac_srcdir=.
1164    if test -z "$ac_top_builddir"; then
1165       ac_top_srcdir=.
1166    else
1167       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1168    fi ;;
1169  [\\/]* | ?:[\\/]* )  # Absolute path.
1170    ac_srcdir=$srcdir$ac_dir_suffix;
1171    ac_top_srcdir=$srcdir ;;
1172  *) # Relative path.
1173    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1174    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1175esac
1176
1177# Do not use `cd foo && pwd` to compute absolute paths, because
1178# the directories may not exist.
1179case `pwd` in
1180.) ac_abs_builddir="$ac_dir";;
1181*)
1182  case "$ac_dir" in
1183  .) ac_abs_builddir=`pwd`;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1185  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_top_builddir=${ac_top_builddir}.;;
1190*)
1191  case ${ac_top_builddir}. in
1192  .) ac_abs_top_builddir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1194  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_srcdir=$ac_srcdir;;
1199*)
1200  case $ac_srcdir in
1201  .) ac_abs_srcdir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1203  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_top_srcdir=$ac_top_srcdir;;
1208*)
1209  case $ac_top_srcdir in
1210  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1212  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1213  esac;;
1214esac
1215
1216    cd $ac_dir
1217    # Check for guested configure; otherwise get Cygnus style configure.
1218    if test -f $ac_srcdir/configure.gnu; then
1219      echo
1220      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1221    elif test -f $ac_srcdir/configure; then
1222      echo
1223      $SHELL $ac_srcdir/configure  --help=recursive
1224    elif test -f $ac_srcdir/configure.ac ||
1225           test -f $ac_srcdir/configure.in; then
1226      echo
1227      $ac_configure --help
1228    else
1229      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1230    fi
1231    cd $ac_popdir
1232  done
1233fi
1234
1235test -n "$ac_init_help" && exit 0
1236if $ac_init_version; then
1237  cat <<\_ACEOF
1238ThirdPartyFilterSQP configure 1.3
1239generated by GNU Autoconf 2.59
1240
1241Copyright (C) 2003 Free Software Foundation, Inc.
1242This configure script is free software; the Free Software Foundation
1243gives unlimited permission to copy, distribute and modify it.
1244
1245
1246Copyright 2006 International Business Machines and others.
1247All Rights Reserved.
1248This file is part of the open source package Coin which is distributed
1249under the Eclipse Public License.
1250_ACEOF
1251  exit 0
1252fi
1253exec 5>config.log
1254cat >&5 <<_ACEOF
1255This file contains any messages produced by compilers while
1256running configure, to aid debugging if configure makes a mistake.
1257
1258It was created by ThirdPartyFilterSQP $as_me 1.3, which was
1259generated by GNU Autoconf 2.59.  Invocation command line was
1260
1261  $ $0 $@
1262
1263_ACEOF
1264{
1265cat <<_ASUNAME
1266## --------- ##
1267## Platform. ##
1268## --------- ##
1269
1270hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1271uname -m = `(uname -m) 2>/dev/null || echo unknown`
1272uname -r = `(uname -r) 2>/dev/null || echo unknown`
1273uname -s = `(uname -s) 2>/dev/null || echo unknown`
1274uname -v = `(uname -v) 2>/dev/null || echo unknown`
1275
1276/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1277/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1278
1279/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1280/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1281/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1282hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1283/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1284/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1285/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1286
1287_ASUNAME
1288
1289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290for as_dir in $PATH
1291do
1292  IFS=$as_save_IFS
1293  test -z "$as_dir" && as_dir=.
1294  echo "PATH: $as_dir"
1295done
1296
1297} >&5
1298
1299cat >&5 <<_ACEOF
1300
1301
1302## ----------- ##
1303## Core tests. ##
1304## ----------- ##
1305
1306_ACEOF
1307
1308
1309# Keep a trace of the command line.
1310# Strip out --no-create and --no-recursion so they do not pile up.
1311# Strip out --silent because we don't want to record it for future runs.
1312# Also quote any args containing shell meta-characters.
1313# Make two passes to allow for proper duplicate-argument suppression.
1314ac_configure_args=
1315ac_configure_args0=
1316ac_configure_args1=
1317ac_sep=
1318ac_must_keep_next=false
1319for ac_pass in 1 2
1320do
1321  for ac_arg
1322  do
1323    case $ac_arg in
1324    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1325    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326    | -silent | --silent | --silen | --sile | --sil)
1327      continue ;;
1328    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1329      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1330    esac
1331    case $ac_pass in
1332    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1333    2)
1334      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1335      if test $ac_must_keep_next = true; then
1336        ac_must_keep_next=false # Got value, back to normal.
1337      else
1338        case $ac_arg in
1339          *=* | --config-cache | -C | -disable-* | --disable-* \
1340          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1341          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1342          | -with-* | --with-* | -without-* | --without-* | --x)
1343            case "$ac_configure_args0 " in
1344              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1345            esac
1346            ;;
1347          -* ) ac_must_keep_next=true ;;
1348        esac
1349      fi
1350      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1351      # Get rid of the leading space.
1352      ac_sep=" "
1353      ;;
1354    esac
1355  done
1356done
1357$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1358$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1359
1360# When interrupted or exit'd, cleanup temporary files, and complete
1361# config.log.  We remove comments because anyway the quotes in there
1362# would cause problems or look ugly.
1363# WARNING: Be sure not to use single quotes in there, as some shells,
1364# such as our DU 5.0 friend, will then `close' the trap.
1365trap 'exit_status=$?
1366  # Save into config.log some information that might help in debugging.
1367  {
1368    echo
1369
1370    cat <<\_ASBOX
1371## ---------------- ##
1372## Cache variables. ##
1373## ---------------- ##
1374_ASBOX
1375    echo
1376    # The following way of writing the cache mishandles newlines in values,
1377{
1378  (set) 2>&1 |
1379    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1380    *ac_space=\ *)
1381      sed -n \
1382        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1383          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384      ;;
1385    *)
1386      sed -n \
1387        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1388      ;;
1389    esac;
1390}
1391    echo
1392
1393    cat <<\_ASBOX
1394## ----------------- ##
1395## Output variables. ##
1396## ----------------- ##
1397_ASBOX
1398    echo
1399    for ac_var in $ac_subst_vars
1400    do
1401      eval ac_val=$`echo $ac_var`
1402      echo "$ac_var='"'"'$ac_val'"'"'"
1403    done | sort
1404    echo
1405
1406    if test -n "$ac_subst_files"; then
1407      cat <<\_ASBOX
1408## ------------- ##
1409## Output files. ##
1410## ------------- ##
1411_ASBOX
1412      echo
1413      for ac_var in $ac_subst_files
1414      do
1415        eval ac_val=$`echo $ac_var`
1416        echo "$ac_var='"'"'$ac_val'"'"'"
1417      done | sort
1418      echo
1419    fi
1420
1421    if test -s confdefs.h; then
1422      cat <<\_ASBOX
1423## ----------- ##
1424## confdefs.h. ##
1425## ----------- ##
1426_ASBOX
1427      echo
1428      sed "/^$/d" confdefs.h | sort
1429      echo
1430    fi
1431    test "$ac_signal" != 0 &&
1432      echo "$as_me: caught signal $ac_signal"
1433    echo "$as_me: exit $exit_status"
1434  } >&5
1435  rm -f core *.core &&
1436  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1437    exit $exit_status
1438     ' 0
1439for ac_signal in 1 2 13 15; do
1440  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1441done
1442ac_signal=0
1443
1444# confdefs.h avoids OS command line length limits that DEFS can exceed.
1445rm -rf conftest* confdefs.h
1446# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1447echo >confdefs.h
1448
1449# Predefined preprocessor variables.
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_NAME "$PACKAGE_NAME"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_VERSION "$PACKAGE_VERSION"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_STRING "$PACKAGE_STRING"
1468_ACEOF
1469
1470
1471cat >>confdefs.h <<_ACEOF
1472#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1473_ACEOF
1474
1475
1476# Let the site file select an alternate cache file if it wants to.
1477# Prefer explicitly selected file to automatically selected ones.
1478if test -z "$CONFIG_SITE"; then
1479  if test "x$prefix" != xNONE; then
1480    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1481  else
1482    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1483  fi
1484fi
1485for ac_site_file in $CONFIG_SITE; do
1486  if test -r "$ac_site_file"; then
1487    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1488echo "$as_me: loading site script $ac_site_file" >&6;}
1489    sed 's/^/| /' "$ac_site_file" >&5
1490    . "$ac_site_file"
1491  fi
1492done
1493
1494if test -r "$cache_file"; then
1495  # Some versions of bash will fail to source /dev/null (special
1496  # files actually), so we avoid doing that.
1497  if test -f "$cache_file"; then
1498    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1499echo "$as_me: loading cache $cache_file" >&6;}
1500    case $cache_file in
1501      [\\/]* | ?:[\\/]* ) . $cache_file;;
1502      *)                      . ./$cache_file;;
1503    esac
1504  fi
1505else
1506  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1507echo "$as_me: creating cache $cache_file" >&6;}
1508  >$cache_file
1509fi
1510
1511# Check that the precious variables saved in the cache have kept the same
1512# value.
1513ac_cache_corrupted=false
1514for ac_var in `(set) 2>&1 |
1515               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1516  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1517  eval ac_new_set=\$ac_env_${ac_var}_set
1518  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1519  eval ac_new_val="\$ac_env_${ac_var}_value"
1520  case $ac_old_set,$ac_new_set in
1521    set,)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,set)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,);;
1530    *)
1531      if test "x$ac_old_val" != "x$ac_new_val"; then
1532        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1533echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1534        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1535echo "$as_me:   former value:  $ac_old_val" >&2;}
1536        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1537echo "$as_me:   current value: $ac_new_val" >&2;}
1538        ac_cache_corrupted=:
1539      fi;;
1540  esac
1541  # Pass precious variables to config.status.
1542  if test "$ac_new_set" = set; then
1543    case $ac_new_val in
1544    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1545      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1546    *) ac_arg=$ac_var=$ac_new_val ;;
1547    esac
1548    case " $ac_configure_args " in
1549      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1550      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1551    esac
1552  fi
1553done
1554if $ac_cache_corrupted; then
1555  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1556echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1557  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1558echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1559   { (exit 1); exit 1; }; }
1560fi
1561
1562ac_ext=c
1563ac_cpp='$CPP $CPPFLAGS'
1564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1566ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597# List one file in the package so that the configure script can test
1598# whether the package is actually there
1599
1600
1601# Where should everything be installed by default?  Here, we want it
1602# to be installed directly in 'bin', 'lib', 'include' subdirectories
1603# of the directory where configure is run.  The default would be
1604# /usr/local.
1605
1606
1607
1608# As backup, we make sure we don't loose an FLIBS if it has been set
1609# by the user
1610save_FLIBS="$FLIBS"
1611
1612# A useful makefile conditional that is always false
1613
1614
1615if false; then
1616  ALWAYS_FALSE_TRUE=
1617  ALWAYS_FALSE_FALSE='#'
1618else
1619  ALWAYS_FALSE_TRUE='#'
1620  ALWAYS_FALSE_FALSE=
1621fi
1622
1623
1624# We set the following variable so that we know later in AC_COIN_FINALIZE
1625# that we are in a project main directory
1626coin_projectdir=yes
1627
1628# Set the project's version numbers
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1633_ACEOF
1634
1635
1636  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1637  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1638  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1639  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1640  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1641  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1642
1643cat >>confdefs.h <<_ACEOF
1644#define FILTERSQP_VERSION_MAJOR $coin_majorver
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define FILTERSQP_VERSION_MINOR $coin_minorver
1650_ACEOF
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define FILTERSQP_VERSION_RELEASE $coin_releasever
1655_ACEOF
1656
1657
1658  # We use the following variable to have a string with the upper case
1659  # version of the project name
1660  COIN_PRJCT=FILTERSQP
1661
1662  # Set the project's SVN revision number. The complicated sed expression
1663  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1664  # as a single number.
1665  # Extract the first word of "svnversion", so it can be a program name with args.
1666set dummy svnversion; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_have_svnversion+set}" = set; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  if test -n "$have_svnversion"; then
1673  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1674else
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678  IFS=$as_save_IFS
1679  test -z "$as_dir" && as_dir=.
1680  for ac_exec_ext in '' $ac_executable_extensions; do
1681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682    ac_cv_prog_have_svnversion="yes"
1683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684    break 2
1685  fi
1686done
1687done
1688
1689  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1690fi
1691fi
1692have_svnversion=$ac_cv_prog_have_svnversion
1693if test -n "$have_svnversion"; then
1694  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1695echo "${ECHO_T}$have_svnversion" >&6
1696else
1697  echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
1700
1701  if test "x$have_svnversion" = xyes; then
1702
1703    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1704    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1705      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1706
1707cat >>confdefs.h <<_ACEOF
1708#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1709_ACEOF
1710
1711    fi
1712  fi
1713
1714
1715
1716# Capture libtool library version, if given.
1717
1718
1719
1720
1721#############################################################################
1722#                         Standard build tool stuff                         #
1723#############################################################################
1724
1725# Get the system type
1726ac_aux_dir=
1727for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1728  if test -f $ac_dir/install-sh; then
1729    ac_aux_dir=$ac_dir
1730    ac_install_sh="$ac_aux_dir/install-sh -c"
1731    break
1732  elif test -f $ac_dir/install.sh; then
1733    ac_aux_dir=$ac_dir
1734    ac_install_sh="$ac_aux_dir/install.sh -c"
1735    break
1736  elif test -f $ac_dir/shtool; then
1737    ac_aux_dir=$ac_dir
1738    ac_install_sh="$ac_aux_dir/shtool install -c"
1739    break
1740  fi
1741done
1742if test -z "$ac_aux_dir"; then
1743  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1744echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1745   { (exit 1); exit 1; }; }
1746fi
1747ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1748ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1749ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1750
1751# Make sure we can run config.sub.
1752$ac_config_sub sun4 >/dev/null 2>&1 ||
1753  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1754echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1755   { (exit 1); exit 1; }; }
1756
1757echo "$as_me:$LINENO: checking build system type" >&5
1758echo $ECHO_N "checking build system type... $ECHO_C" >&6
1759if test "${ac_cv_build+set}" = set; then
1760  echo $ECHO_N "(cached) $ECHO_C" >&6
1761else
1762  ac_cv_build_alias=$build_alias
1763test -z "$ac_cv_build_alias" &&
1764  ac_cv_build_alias=`$ac_config_guess`
1765test -z "$ac_cv_build_alias" &&
1766  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1767echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1768   { (exit 1); exit 1; }; }
1769ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1770  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1771echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1772   { (exit 1); exit 1; }; }
1773
1774fi
1775echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1776echo "${ECHO_T}$ac_cv_build" >&6
1777build=$ac_cv_build
1778build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1779build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1780build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1781
1782
1783
1784# Check if user wants to produce debugging code
1785
1786echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1787echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1788
1789# Check whether --enable-debug or --disable-debug was given.
1790if test "${enable_debug+set}" = set; then
1791  enableval="$enable_debug"
1792  case "${enableval}" in
1793   yes) coin_debug_compile=true
1794        if test "${enable_shared+set}" = set; then :; else
1795          enable_shared=no
1796        fi
1797        ;;
1798   no)  coin_debug_compile=false
1799        ;;
1800   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1801echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1802   { (exit 1); exit 1; }; }
1803        ;;
1804esac
1805else
1806  coin_debug_compile=false
1807fi;
1808
1809# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1810if test "${enable_debug_filtersqp+set}" = set; then
1811  enableval="$enable_debug_filtersqp"
1812  case "${enableval}" in
1813    yes) coin_debug_compile=true
1814         ;;
1815    no)  coin_debug_compile=false
1816         ;;
1817    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1819   { (exit 1); exit 1; }; }
1820         ;;
1821 esac
1822else
1823  :
1824fi;
1825
1826 # m4_ifvaln([FilterSQP],
1827
1828if test $coin_debug_compile = true; then
1829  echo "$as_me:$LINENO: result: yes" >&5
1830echo "${ECHO_T}yes" >&6
1831else
1832  echo "$as_me:$LINENO: result: no" >&5
1833echo "${ECHO_T}no" >&6
1834fi
1835
1836
1837# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1838if test "${with_filtersqp_verbosity+set}" = set; then
1839  withval="$with_filtersqp_verbosity"
1840  if test "$withval" = yes; then
1841                withval=1
1842              fi
1843              coin_filtersqp_verbosity=$withval
1844else
1845  coin_filtersqp_verbosity=0
1846fi;
1847
1848cat >>confdefs.h <<_ACEOF
1849#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1850_ACEOF
1851
1852
1853
1854# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1855if test "${with_filtersqp_checklevel+set}" = set; then
1856  withval="$with_filtersqp_checklevel"
1857  if test "$withval" = yes; then
1858                withval=1
1859              fi
1860              coin_filtersqp_checklevel=$withval
1861else
1862  coin_filtersqp_checklevel=0
1863fi;
1864
1865cat >>confdefs.h <<_ACEOF
1866#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1867_ACEOF
1868
1869
1870 # m4_ifvaln([FilterSQP],
1871
1872
1873
1874# Get the name of the Fortran compiler and appropriate compiler options
1875
1876
1877  # for backward compatibility
1878  # Check whether --enable-doscompile or --disable-doscompile was given.
1879if test "${enable_doscompile+set}" = set; then
1880  enableval="$enable_doscompile"
1881  enable_doscompile=$enableval
1882else
1883  enable_doscompile=no
1884fi;
1885
1886  # Check whether --enable-msvc or --disable-msvc was given.
1887if test "${enable_msvc+set}" = set; then
1888  enableval="$enable_msvc"
1889  enable_msvc=$enableval
1890else
1891  enable_msvc=no
1892     if test "$enable_doscompile" = msvc ; then
1893       enable_msvc=yes
1894     elif test "$enable_doscompile" != no ; then
1895       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1896echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1897   { (exit 1); exit 1; }; }
1898     fi
1899
1900fi;
1901
1902  if test "$enable_msvc" = MD; then
1903    enable_shared=yes
1904    enable_msvc=yes
1905  fi
1906
1907  if test "$enable_msvc" = yes; then
1908    case $build in
1909      *-cygwin* | *-mingw*) ;;
1910      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1911echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1912   { (exit 1); exit 1; }; } ;;
1913    esac
1914  fi
1915
1916
1917
1918ac_ext=c
1919ac_cpp='$CPP $CPPFLAGS'
1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922ac_compiler_gnu=$ac_cv_c_compiler_gnu
1923
1924
1925# For consistency, we set the C compiler to the same value of the C++
1926# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1927if test x"$CXX" != x; then
1928  case "$CXX" in
1929    clang* ) ;;
1930    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1931      if test x"$CC" = x; then
1932        CC="$CXX"
1933        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1934echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1935      fi
1936      ;;
1937  esac
1938fi
1939
1940
1941
1942
1943
1944
1945coin_has_cc=yes
1946
1947save_cflags="$CFLAGS"
1948
1949# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1950# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1951# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1952# compiler. In this case, put cc after gcc.
1953
1954case $build in
1955  *-cygwin* | *-mingw*)
1956             if test "$enable_msvc" = yes ; then
1957               comps="icl cl gcc"
1958             else
1959               comps="gcc icl cl"
1960             fi ;;
1961  *-*-solaris*)
1962             # Extract the first word of "cc", so it can be a program name with args.
1963set dummy cc; ac_word=$2
1964echo "$as_me:$LINENO: checking for $ac_word" >&5
1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1967  echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
1969  if test -n "$sol_cc_compiler"; then
1970  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1971else
1972  ac_prog_rejected=no
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976  IFS=$as_save_IFS
1977  test -z "$as_dir" && as_dir=.
1978  for ac_exec_ext in '' $ac_executable_extensions; do
1979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1981       ac_prog_rejected=yes
1982       continue
1983     fi
1984    ac_cv_prog_sol_cc_compiler="cc"
1985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986    break 2
1987  fi
1988done
1989done
1990
1991if test $ac_prog_rejected = yes; then
1992  # We found a bogon in the path, so make sure we never use it.
1993  set dummy $ac_cv_prog_sol_cc_compiler
1994  shift
1995  if test $# != 0; then
1996    # We chose a different compiler from the bogus one.
1997    # However, it has the same basename, so the bogon will be chosen
1998    # first if we set sol_cc_compiler to just the basename; use the full file name.
1999    shift
2000    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2001  fi
2002fi
2003fi
2004fi
2005sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2006if test -n "$sol_cc_compiler"; then
2007  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2008echo "${ECHO_T}$sol_cc_compiler" >&6
2009else
2010  echo "$as_me:$LINENO: result: no" >&5
2011echo "${ECHO_T}no" >&6
2012fi
2013
2014             if test "$sol_cc_compiler" = "cc" ; then
2015               comps="cc xlc gcc pgcc icc"
2016             else
2017               comps="xlc gcc pgcc icc cc"
2018             fi
2019             ;;
2020  *-*-darwin*) comps="clang gcc cc" ;;
2021  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2022  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2023  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2024esac
2025
2026# We delete the cached value, since the test might not have been
2027# performed with our choice of compilers earlier
2028$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2029# AC_MSG_NOTICE([C compiler candidates: $comps])
2030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035if test -n "$ac_tool_prefix"; then
2036  for ac_prog in $comps
2037  do
2038    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2039set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2040echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042if test "${ac_cv_prog_CC+set}" = set; then
2043  echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045  if test -n "$CC"; then
2046  ac_cv_prog_CC="$CC" # Let the user override the test.
2047else
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051  IFS=$as_save_IFS
2052  test -z "$as_dir" && as_dir=.
2053  for ac_exec_ext in '' $ac_executable_extensions; do
2054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057    break 2
2058  fi
2059done
2060done
2061
2062fi
2063fi
2064CC=$ac_cv_prog_CC
2065if test -n "$CC"; then
2066  echo "$as_me:$LINENO: result: $CC" >&5
2067echo "${ECHO_T}$CC" >&6
2068else
2069  echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6
2071fi
2072
2073    test -n "$CC" && break
2074  done
2075fi
2076if test -z "$CC"; then
2077  ac_ct_CC=$CC
2078  for ac_prog in $comps
2079do
2080  # Extract the first word of "$ac_prog", so it can be a program name with args.
2081set dummy $ac_prog; ac_word=$2
2082echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  if test -n "$ac_ct_CC"; then
2088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2089else
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093  IFS=$as_save_IFS
2094  test -z "$as_dir" && as_dir=.
2095  for ac_exec_ext in '' $ac_executable_extensions; do
2096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097    ac_cv_prog_ac_ct_CC="$ac_prog"
2098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099    break 2
2100  fi
2101done
2102done
2103
2104fi
2105fi
2106ac_ct_CC=$ac_cv_prog_ac_ct_CC
2107if test -n "$ac_ct_CC"; then
2108  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2109echo "${ECHO_T}$ac_ct_CC" >&6
2110else
2111  echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
2113fi
2114
2115  test -n "$ac_ct_CC" && break
2116done
2117
2118  CC=$ac_ct_CC
2119fi
2120
2121
2122test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&5
2124echo "$as_me: error: no acceptable C compiler found in \$PATH
2125See \`config.log' for more details." >&2;}
2126   { (exit 1); exit 1; }; }
2127
2128# Provide some information about the compiler.
2129echo "$as_me:$LINENO:" \
2130     "checking for C compiler version" >&5
2131ac_compiler=`set X $ac_compile; echo $2`
2132{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2133  (eval $ac_compiler --version </dev/null >&5) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }
2137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2138  (eval $ac_compiler -v </dev/null >&5) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }
2142{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2143  (eval $ac_compiler -V </dev/null >&5) 2>&5
2144  ac_status=$?
2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146  (exit $ac_status); }
2147
2148cat >conftest.$ac_ext <<_ACEOF
2149/* confdefs.h.  */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h.  */
2154
2155int
2156main ()
2157{
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163ac_clean_files_save=$ac_clean_files
2164ac_clean_files="$ac_clean_files a.out a.exe b.out"
2165# Try to create an executable without -o first, disregard a.out.
2166# It will help us diagnose broken compilers, and finding out an intuition
2167# of exeext.
2168echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2169echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2170ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2171if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2172  (eval $ac_link_default) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }; then
2176  # Find the output, starting from the most likely.  This scheme is
2177# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2178# resort.
2179
2180# Be careful to initialize this variable, since it used to be cached.
2181# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2182ac_cv_exeext=
2183# b.out is created by i960 compilers.
2184for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2185do
2186  test -f "$ac_file" || continue
2187  case $ac_file in
2188    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2189        ;;
2190    conftest.$ac_ext )
2191        # This is the source file.
2192        ;;
2193    [ab].out )
2194        # We found the default executable, but exeext='' is most
2195        # certainly right.
2196        break;;
2197    *.* )
2198        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2199        # FIXME: I believe we export ac_cv_exeext for Libtool,
2200        # but it would be cool to find out if it's true.  Does anybody
2201        # maintain Libtool? --akim.
2202        export ac_cv_exeext
2203        break;;
2204    * )
2205        break;;
2206  esac
2207done
2208else
2209  echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C compiler cannot create executables
2215See \`config.log' for more details." >&2;}
2216   { (exit 77); exit 77; }; }
2217fi
2218
2219ac_exeext=$ac_cv_exeext
2220echo "$as_me:$LINENO: result: $ac_file" >&5
2221echo "${ECHO_T}$ac_file" >&6
2222
2223# Check the compiler produces executables we can run.  If not, either
2224# the compiler is broken, or we cross compile.
2225echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2226echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2227# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2228# If not cross compiling, check that we can run a simple program.
2229if test "$cross_compiling" != yes; then
2230  if { ac_try='./$ac_file'
2231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232  (eval $ac_try) 2>&5
2233  ac_status=$?
2234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235  (exit $ac_status); }; }; then
2236    cross_compiling=no
2237  else
2238    if test "$cross_compiling" = maybe; then
2239        cross_compiling=yes
2240    else
2241        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&5
2244echo "$as_me: error: cannot run C compiled programs.
2245If you meant to cross compile, use \`--host'.
2246See \`config.log' for more details." >&2;}
2247   { (exit 1); exit 1; }; }
2248    fi
2249  fi
2250fi
2251echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6
2253
2254rm -f a.out a.exe conftest$ac_cv_exeext b.out
2255ac_clean_files=$ac_clean_files_save
2256# Check the compiler produces executables we can run.  If not, either
2257# the compiler is broken, or we cross compile.
2258echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2260echo "$as_me:$LINENO: result: $cross_compiling" >&5
2261echo "${ECHO_T}$cross_compiling" >&6
2262
2263echo "$as_me:$LINENO: checking for suffix of executables" >&5
2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2266  (eval $ac_link) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; then
2270  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2271# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2272# work properly (i.e., refer to `conftest.exe'), while it won't with
2273# `rm'.
2274for ac_file in conftest.exe conftest conftest.*; do
2275  test -f "$ac_file" || continue
2276  case $ac_file in
2277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2278    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279          export ac_cv_exeext
2280          break;;
2281    * ) break;;
2282  esac
2283done
2284else
2285  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest$ac_cv_exeext
2293echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294echo "${ECHO_T}$ac_cv_exeext" >&6
2295
2296rm -f conftest.$ac_ext
2297EXEEXT=$ac_cv_exeext
2298ac_exeext=$EXEEXT
2299echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2301if test "${ac_cv_objext+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h.  */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h.  */
2310
2311int
2312main ()
2313{
2314
2315  ;
2316  return 0;
2317}
2318_ACEOF
2319rm -f conftest.o conftest.obj
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321  (eval $ac_compile) 2>&5
2322  ac_status=$?
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); }; then
2325  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326  case $ac_file in
2327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2328    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2329       break;;
2330  esac
2331done
2332else
2333  echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&5
2338echo "$as_me: error: cannot compute suffix of object files: cannot compile
2339See \`config.log' for more details." >&2;}
2340   { (exit 1); exit 1; }; }
2341fi
2342
2343rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344fi
2345echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2346echo "${ECHO_T}$ac_cv_objext" >&6
2347OBJEXT=$ac_cv_objext
2348ac_objext=$OBJEXT
2349echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2350echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2351if test "${ac_cv_c_compiler_gnu+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h.  */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h.  */
2360
2361int
2362main ()
2363{
2364#ifndef __GNUC__
2365       choke me
2366#endif
2367
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372rm -f conftest.$ac_objext
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374  (eval $ac_compile) 2>conftest.er1
2375  ac_status=$?
2376  grep -v '^ *+' conftest.er1 >conftest.err
2377  rm -f conftest.er1
2378  cat conftest.err >&5
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); } &&
2381         { ac_try='test -z "$ac_c_werror_flag"
2382                         || test ! -s conftest.err'
2383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384  (eval $ac_try) 2>&5
2385  ac_status=$?
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); }; } &&
2388         { ac_try='test -s conftest.$ac_objext'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; }; then
2394  ac_compiler_gnu=yes
2395else
2396  echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399ac_compiler_gnu=no
2400fi
2401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2402ac_cv_c_compiler_gnu=$ac_compiler_gnu
2403
2404fi
2405echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2406echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2407GCC=`test $ac_compiler_gnu = yes && echo yes`
2408ac_test_CFLAGS=${CFLAGS+set}
2409ac_save_CFLAGS=$CFLAGS
2410CFLAGS="-g"
2411echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2412echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2413if test "${ac_cv_prog_cc_g+set}" = set; then
2414  echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416  cat >conftest.$ac_ext <<_ACEOF
2417/* confdefs.h.  */
2418_ACEOF
2419cat confdefs.h >>conftest.$ac_ext
2420cat >>conftest.$ac_ext <<_ACEOF
2421/* end confdefs.h.  */
2422
2423int
2424main ()
2425{
2426
2427  ;
2428  return 0;
2429}
2430_ACEOF
2431rm -f conftest.$ac_objext
2432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2433  (eval $ac_compile) 2>conftest.er1
2434  ac_status=$?
2435  grep -v '^ *+' conftest.er1 >conftest.err
2436  rm -f conftest.er1
2437  cat conftest.err >&5
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); } &&
2440         { ac_try='test -z "$ac_c_werror_flag"
2441                         || test ! -s conftest.err'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; } &&
2447         { ac_try='test -s conftest.$ac_objext'
2448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449  (eval $ac_try) 2>&5
2450  ac_status=$?
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); }; }; then
2453  ac_cv_prog_cc_g=yes
2454else
2455  echo "$as_me: failed program was:" >&5
2456sed 's/^/| /' conftest.$ac_ext >&5
2457
2458ac_cv_prog_cc_g=no
2459fi
2460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2461fi
2462echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2463echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2464if test "$ac_test_CFLAGS" = set; then
2465  CFLAGS=$ac_save_CFLAGS
2466elif test $ac_cv_prog_cc_g = yes; then
2467  if test "$GCC" = yes; then
2468    CFLAGS="-g -O2"
2469  else
2470    CFLAGS="-g"
2471  fi
2472else
2473  if test "$GCC" = yes; then
2474    CFLAGS="-O2"
2475  else
2476    CFLAGS=
2477  fi
2478fi
2479echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2480echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2481if test "${ac_cv_prog_cc_stdc+set}" = set; then
2482  echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484  ac_cv_prog_cc_stdc=no
2485ac_save_CC=$CC
2486cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h.  */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h.  */
2492#include <stdarg.h>
2493#include <stdio.h>
2494#include <sys/types.h>
2495#include <sys/stat.h>
2496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2497struct buf { int x; };
2498FILE * (*rcsopen) (struct buf *, struct stat *, int);
2499static char *e (p, i)
2500     char **p;
2501     int i;
2502{
2503  return p[i];
2504}
2505static char *f (char * (*g) (char **, int), char **p, ...)
2506{
2507  char *s;
2508  va_list v;
2509  va_start (v,p);
2510  s = g (p, va_arg (v,int));
2511  va_end (v);
2512  return s;
2513}
2514
2515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2516   function prototypes and stuff, but not '\xHH' hex character constants.
2517   These don't provoke an error unfortunately, instead are silently treated
2518   as 'x'.  The following induces an error, until -std1 is added to get
2519   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2520   array size at least.  It's necessary to write '\x00'==0 to get something
2521   that's true only with -std1.  */
2522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2523
2524int test (int i, double x);
2525struct s1 {int (*f) (int a);};
2526struct s2 {int (*f) (double a);};
2527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2528int argc;
2529char **argv;
2530int
2531main ()
2532{
2533return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2534  ;
2535  return 0;
2536}
2537_ACEOF
2538# Don't try gcc -ansi; that turns off useful extensions and
2539# breaks some systems' header files.
2540# AIX                   -qlanglvl=ansi
2541# Ultrix and OSF/1      -std1
2542# HP-UX 10.20 and later -Ae
2543# HP-UX older versions  -Aa -D_HPUX_SOURCE
2544# SVR4                  -Xc -D__EXTENSIONS__
2545for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546do
2547  CC="$ac_save_CC $ac_arg"
2548  rm -f conftest.$ac_objext
2549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550  (eval $ac_compile) 2>conftest.er1
2551  ac_status=$?
2552  grep -v '^ *+' conftest.er1 >conftest.err
2553  rm -f conftest.er1
2554  cat conftest.err >&5
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); } &&
2557         { ac_try='test -z "$ac_c_werror_flag"
2558                         || test ! -s conftest.err'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; } &&
2564         { ac_try='test -s conftest.$ac_objext'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; }; then
2570  ac_cv_prog_cc_stdc=$ac_arg
2571break
2572else
2573  echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576fi
2577rm -f conftest.err conftest.$ac_objext
2578done
2579rm -f conftest.$ac_ext conftest.$ac_objext
2580CC=$ac_save_CC
2581
2582fi
2583
2584case "x$ac_cv_prog_cc_stdc" in
2585  x|xno)
2586    echo "$as_me:$LINENO: result: none needed" >&5
2587echo "${ECHO_T}none needed" >&6 ;;
2588  *)
2589    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2590echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2591    CC="$CC $ac_cv_prog_cc_stdc" ;;
2592esac
2593
2594# Some people use a C++ compiler to compile C.  Since we use `exit',
2595# in C++ we need to declare it.  In case someone uses the same compiler
2596# for both compiling C and C++ we need to have the C++ compiler decide
2597# the declaration of exit, since it's the most demanding environment.
2598cat >conftest.$ac_ext <<_ACEOF
2599#ifndef __cplusplus
2600  choke me
2601#endif
2602_ACEOF
2603rm -f conftest.$ac_objext
2604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2605  (eval $ac_compile) 2>conftest.er1
2606  ac_status=$?
2607  grep -v '^ *+' conftest.er1 >conftest.err
2608  rm -f conftest.er1
2609  cat conftest.err >&5
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); } &&
2612         { ac_try='test -z "$ac_c_werror_flag"
2613                         || test ! -s conftest.err'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; } &&
2619         { ac_try='test -s conftest.$ac_objext'
2620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621  (eval $ac_try) 2>&5
2622  ac_status=$?
2623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624  (exit $ac_status); }; }; then
2625  for ac_declaration in \
2626   '' \
2627   'extern "C" void std::exit (int) throw (); using std::exit;' \
2628   'extern "C" void std::exit (int); using std::exit;' \
2629   'extern "C" void exit (int) throw ();' \
2630   'extern "C" void exit (int);' \
2631   'void exit (int);'
2632do
2633  cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639$ac_declaration
2640#include <stdlib.h>
2641int
2642main ()
2643{
2644exit (42);
2645  ;
2646  return 0;
2647}
2648_ACEOF
2649rm -f conftest.$ac_objext
2650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651  (eval $ac_compile) 2>conftest.er1
2652  ac_status=$?
2653  grep -v '^ *+' conftest.er1 >conftest.err
2654  rm -f conftest.er1
2655  cat conftest.err >&5
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); } &&
2658         { ac_try='test -z "$ac_c_werror_flag"
2659                         || test ! -s conftest.err'
2660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661  (eval $ac_try) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; } &&
2665         { ac_try='test -s conftest.$ac_objext'
2666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667  (eval $ac_try) 2>&5
2668  ac_status=$?
2669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670  (exit $ac_status); }; }; then
2671  :
2672else
2673  echo "$as_me: failed program was:" >&5
2674sed 's/^/| /' conftest.$ac_ext >&5
2675
2676continue
2677fi
2678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679  cat >conftest.$ac_ext <<_ACEOF
2680/* confdefs.h.  */
2681_ACEOF
2682cat confdefs.h >>conftest.$ac_ext
2683cat >>conftest.$ac_ext <<_ACEOF
2684/* end confdefs.h.  */
2685$ac_declaration
2686int
2687main ()
2688{
2689exit (42);
2690  ;
2691  return 0;
2692}
2693_ACEOF
2694rm -f conftest.$ac_objext
2695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696  (eval $ac_compile) 2>conftest.er1
2697  ac_status=$?
2698  grep -v '^ *+' conftest.er1 >conftest.err
2699  rm -f conftest.er1
2700  cat conftest.err >&5
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); } &&
2703         { ac_try='test -z "$ac_c_werror_flag"
2704                         || test ! -s conftest.err'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; } &&
2710         { ac_try='test -s conftest.$ac_objext'
2711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712  (eval $ac_try) 2>&5
2713  ac_status=$?
2714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715  (exit $ac_status); }; }; then
2716  break
2717else
2718  echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
2720
2721fi
2722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723done
2724rm -f conftest*
2725if test -n "$ac_declaration"; then
2726  echo '#ifdef __cplusplus' >>confdefs.h
2727  echo $ac_declaration      >>confdefs.h
2728  echo '#endif'             >>confdefs.h
2729fi
2730
2731else
2732  echo "$as_me: failed program was:" >&5
2733sed 's/^/| /' conftest.$ac_ext >&5
2734
2735fi
2736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737ac_ext=c
2738ac_cpp='$CPP $CPPFLAGS'
2739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742
2743if test -z "$CC" ; then
2744  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2745echo "$as_me: error: Failed to find a C compiler!" >&2;}
2746   { (exit 1); exit 1; }; }
2747fi
2748# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2749case "$CC" in
2750  clang* ) ;;
2751  cl* | */cl* | CL* | */CL* )
2752    if test "$ac_cv_prog_cc_g" = yes ; then
2753      ac_cv_prog_cc_g=no
2754      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2755echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2756    fi ;;
2757  * )
2758    if test x"$CYGPATH_W" = x ; then
2759      CYGPATH_W=echo
2760    fi
2761    ;;
2762esac
2763CFLAGS="$save_cflags"
2764
2765# add automake conditional so we can recognize cl compiler in makefile
2766coin_cc_is_cl=false
2767case "$CC" in
2768  clang* ) ;;
2769  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2770    coin_cc_is_cl=true
2771    ;;
2772esac
2773
2774
2775if test $coin_cc_is_cl = true; then
2776  COIN_CC_IS_CL_TRUE=
2777  COIN_CC_IS_CL_FALSE='#'
2778else
2779  COIN_CC_IS_CL_TRUE='#'
2780  COIN_CC_IS_CL_FALSE=
2781fi
2782
2783
2784# Check if a project specific CFLAGS variable has been set
2785if test x$COIN_PRJCT != x; then
2786  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2787  if test x$coin_tmp = xset; then
2788    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2789  fi
2790fi
2791
2792if test x"$CFLAGS" = x; then
2793
2794  coin_add_cflags=
2795  coin_opt_cflags=
2796  coin_dbg_cflags=
2797  coin_warn_cflags=
2798
2799  if test "$GCC" = "yes"; then
2800    case "$CC" in
2801      icc* | */icc*)
2802        ;;
2803      *)
2804        coin_opt_cflags="-O3"
2805        coin_add_cflags="-pipe"
2806        coin_dbg_cflags="-g -O0"
2807        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2808        case $build in
2809          *-darwin*)
2810            ;;
2811          *)
2812            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2813            ;;
2814        esac
2815    esac
2816  fi
2817  if test -z "$coin_opt_cflags"; then
2818    case $build in
2819      *-cygwin* | *-mingw*)
2820        case "$CC" in
2821          clang* ) ;;
2822          cl* | */cl* | CL* | */CL*)
2823            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2824              coin_opt_cflags='-MD -O2'
2825              coin_dbg_cflags='-MDd'
2826            else
2827              coin_opt_cflags='-MT -O2'
2828              coin_dbg_cflags='-MTd'
2829            fi
2830            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2831            ;;
2832          icl* | */icl* | ICL* | */ICL*)
2833            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2834              coin_opt_cflags='-MD -Ox'
2835              coin_dbg_cflags='-MDd -debug'
2836            else
2837              coin_opt_cflags='-MT -Ox'
2838              coin_dbg_cflags='-MTd -debug'
2839            fi
2840            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2841            ;;
2842        esac
2843        ;;
2844      *-linux-*)
2845        case "$CC" in
2846          icc* | */icc*)
2847            coin_opt_cflags="-O3 -ip -mp1"
2848            coin_add_cflags=""
2849            coin_dbg_cflags="-g"
2850            # Check if -i_dynamic is necessary (for new glibc library)
2851            CFLAGS=
2852            cat >conftest.$ac_ext <<_ACEOF
2853/* confdefs.h.  */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h.  */
2858
2859int
2860main ()
2861{
2862int i=0; i++;
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext conftest$ac_exeext
2868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869  (eval $ac_link) 2>conftest.er1
2870  ac_status=$?
2871  grep -v '^ *+' conftest.er1 >conftest.err
2872  rm -f conftest.er1
2873  cat conftest.err >&5
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); } &&
2876         { ac_try='test -z "$ac_c_werror_flag"
2877                         || test ! -s conftest.err'
2878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879  (eval $ac_try) 2>&5
2880  ac_status=$?
2881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882  (exit $ac_status); }; } &&
2883         { ac_try='test -s conftest$ac_exeext'
2884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885  (eval $ac_try) 2>&5
2886  ac_status=$?
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); }; }; then
2889  :
2890else
2891  echo "$as_me: failed program was:" >&5
2892sed 's/^/| /' conftest.$ac_ext >&5
2893
2894coin_add_cflags="-i_dynamic $coin_add_cflags"
2895fi
2896rm -f conftest.err conftest.$ac_objext \
2897      conftest$ac_exeext conftest.$ac_ext
2898            ;;
2899          pgcc* | */pgcc*)
2900            coin_opt_cflags="-fast"
2901            coin_add_cflags="-Kieee -pc 64"
2902            coin_dbg_cflags="-g"
2903            ;;
2904        esac
2905        ;;
2906      *-ibm-*)
2907        case "$CC" in
2908          xlc* | */xlc* | mpxlc* | */mpxlc*)
2909            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2910            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2911            coin_dbg_cflags="-g"
2912          ;;
2913        esac
2914        ;;
2915      *-hp-*)
2916        coin_opt_cflags="-O"
2917        coin_add_cflags="-Ae"
2918        coin_dbg_cflags="-g"
2919        ;;
2920      *-*-solaris*)
2921        coin_opt_cflags="-xO4"
2922        coin_dbg_cflags="-g"
2923        ;;
2924      *-sgi-*)
2925        coin_opt_cflags="-O -OPT:Olimit=0"
2926        coin_dbg_cflags="-g"
2927        ;;
2928    esac
2929  fi
2930
2931  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2932    coin_dbg_cflags="-g"
2933  fi
2934
2935  if test -z "$coin_opt_cflags"; then
2936    # Try if -O option works if nothing else is set
2937    CFLAGS="-O"
2938    cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948int i=0; i++;
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955  (eval $ac_link) 2>conftest.er1
2956  ac_status=$?
2957  grep -v '^ *+' conftest.er1 >conftest.err
2958  rm -f conftest.er1
2959  cat conftest.err >&5
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); } &&
2962         { ac_try='test -z "$ac_c_werror_flag"
2963                         || test ! -s conftest.err'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; } &&
2969         { ac_try='test -s conftest$ac_exeext'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; }; then
2975  coin_opt_cflags="-O"
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980fi
2981rm -f conftest.err conftest.$ac_objext \
2982      conftest$ac_exeext conftest.$ac_ext
2983  fi
2984
2985  # if PM doesn't want the warning messages, take them out
2986  if test x"$coin_skip_warn_cflags" = xyes; then
2987    coin_warn_cflags=
2988  fi
2989
2990  if test x${DBG_CFLAGS+set} != xset; then
2991    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2992  fi
2993  if test x${OPT_CFLAGS+set} != xset; then
2994    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2995  fi
2996
2997  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2998  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2999
3000  if test "$coin_debug_compile" = "true"; then
3001    CFLAGS="$DBG_CFLAGS"
3002  else
3003    CFLAGS="$OPT_CFLAGS"
3004  fi
3005else
3006  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3007  if test x${DBG_CFLAGS+set} != xset; then
3008    DBG_CFLAGS="$CFLAGS"
3009  fi
3010  if test x${OPT_CFLAGS+set} != xset; then
3011    OPT_CFLAGS="$CFLAGS"
3012  fi
3013fi
3014
3015# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3016if test x$COIN_PRJCT != x; then
3017  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3018fi
3019
3020# Try if CFLAGS works
3021save_CFLAGS="$CFLAGS"
3022cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h.  */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h.  */
3028
3029int
3030main ()
3031{
3032int i=0; i++;
3033  ;
3034  return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext conftest$ac_exeext
3038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3039  (eval $ac_link) 2>conftest.er1
3040  ac_status=$?
3041  grep -v '^ *+' conftest.er1 >conftest.err
3042  rm -f conftest.er1
3043  cat conftest.err >&5
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); } &&
3046         { ac_try='test -z "$ac_c_werror_flag"
3047                         || test ! -s conftest.err'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; } &&
3053         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3059  :
3060else
3061  echo "$as_me: failed program was:" >&5
3062sed 's/^/| /' conftest.$ac_ext >&5
3063
3064CFLAGS=
3065fi
3066rm -f conftest.err conftest.$ac_objext \
3067      conftest$ac_exeext conftest.$ac_ext
3068if test -z "$CFLAGS"; then
3069  { 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
3070echo "$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;}
3071  CFLAGS='-O'
3072  cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h.  */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h.  */
3078
3079int
3080main ()
3081{
3082int i=0; i++;
3083  ;
3084  return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext conftest$ac_exeext
3088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089  (eval $ac_link) 2>conftest.er1
3090  ac_status=$?
3091  grep -v '^ *+' conftest.er1 >conftest.err
3092  rm -f conftest.er1
3093  cat conftest.err >&5
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); } &&
3096         { ac_try='test -z "$ac_c_werror_flag"
3097                         || test ! -s conftest.err'
3098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099  (eval $ac_try) 2>&5
3100  ac_status=$?
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); }; } &&
3103         { ac_try='test -s conftest$ac_exeext'
3104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105  (eval $ac_try) 2>&5
3106  ac_status=$?
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); }; }; then
3109  :
3110else
3111  echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114CFLAGS=
3115fi
3116rm -f conftest.err conftest.$ac_objext \
3117      conftest$ac_exeext conftest.$ac_ext
3118  if test -z "$CFLAGS"; then
3119    { 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
3120echo "$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;}
3121  fi
3122fi
3123
3124{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3125echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3126
3127
3128if test x"$MPICC" = x; then :; else
3129  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3130echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3131  CC="$MPICC"
3132fi
3133
3134# Correct the LD variable if we are using the MS or Intel-windows compiler
3135case "$CC" in
3136  clang* ) ;;
3137  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3138    LD=link
3139    ;;
3140esac
3141
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148
3149case $build in
3150  *-cygwin* | *-mingw*)
3151     if test "$enable_msvc" = yes ; then
3152       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3153     else
3154       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3155     fi ;;
3156  *-*-solaris*)
3157     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3158  *-linux-gnu*)
3159     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3160  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3161 esac
3162
3163
3164
3165
3166
3167ac_ext=f
3168ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3169ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3171
3172
3173
3174
3175
3176
3177coin_has_f77=yes
3178
3179save_fflags="$FFLAGS"
3180
3181# We delete the cached value, since the test might not have been
3182# performed with our choice of compilers earlier
3183$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3184
3185# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3186# coin_f77_comps to see if there's a program that matches one of the names.
3187# If there's no such program, F77 = unavailable. If we match the name,
3188# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3189# compiler.
3190# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3191
3192
3193{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3194echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3195if test -n "$ac_tool_prefix"; then
3196  for ac_prog in $coin_f77_comps
3197  do
3198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3200echo "$as_me:$LINENO: checking for $ac_word" >&5
3201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202if test "${ac_cv_prog_F77+set}" = set; then
3203  echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205  if test -n "$F77"; then
3206  ac_cv_prog_F77="$F77" # Let the user override the test.
3207else
3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH
3210do
3211  IFS=$as_save_IFS
3212  test -z "$as_dir" && as_dir=.
3213  for ac_exec_ext in '' $ac_executable_extensions; do
3214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217    break 2
3218  fi
3219done
3220done
3221
3222fi
3223fi
3224F77=$ac_cv_prog_F77
3225if test -n "$F77"; then
3226  echo "$as_me:$LINENO: result: $F77" >&5
3227echo "${ECHO_T}$F77" >&6
3228else
3229  echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
3231fi
3232
3233    test -n "$F77" && break
3234  done
3235fi
3236if test -z "$F77"; then
3237  ac_ct_F77=$F77
3238  for ac_prog in $coin_f77_comps
3239do
3240  # Extract the first word of "$ac_prog", so it can be a program name with args.
3241set dummy $ac_prog; ac_word=$2
3242echo "$as_me:$LINENO: checking for $ac_word" >&5
3243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3244if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  if test -n "$ac_ct_F77"; then
3248  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255  for ac_exec_ext in '' $ac_executable_extensions; do
3256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_ac_ct_F77="$ac_prog"
3258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262done
3263
3264fi
3265fi
3266ac_ct_F77=$ac_cv_prog_ac_ct_F77
3267if test -n "$ac_ct_F77"; then
3268  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3269echo "${ECHO_T}$ac_ct_F77" >&6
3270else
3271  echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6
3273fi
3274
3275  test -n "$ac_ct_F77" && break
3276done
3277test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3278
3279  F77=$ac_ct_F77
3280fi
3281
3282
3283if test "$F77" != "unavailable" ; then
3284  ac_ext=f
3285ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3286ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3288if test -n "$ac_tool_prefix"; then
3289  for ac_prog in $coin_f77_comps
3290  do
3291    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293echo "$as_me:$LINENO: checking for $ac_word" >&5
3294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295if test "${ac_cv_prog_F77+set}" = set; then
3296  echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298  if test -n "$F77"; then
3299  ac_cv_prog_F77="$F77" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306  for ac_exec_ext in '' $ac_executable_extensions; do
3307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313done
3314
3315fi
3316fi
3317F77=$ac_cv_prog_F77
3318if test -n "$F77"; then
3319  echo "$as_me:$LINENO: result: $F77" >&5
3320echo "${ECHO_T}$F77" >&6
3321else
3322  echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324fi
3325
3326    test -n "$F77" && break
3327  done
3328fi
3329if test -z "$F77"; then
3330  ac_ct_F77=$F77
3331  for ac_prog in $coin_f77_comps
3332do
3333  # Extract the first word of "$ac_prog", so it can be a program name with args.
3334set dummy $ac_prog; ac_word=$2
3335echo "$as_me:$LINENO: checking for $ac_word" >&5
3336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3338  echo $ECHO_N "(cached) $ECHO_C" >&6
3339else
3340  if test -n "$ac_ct_F77"; then
3341  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348  for ac_exec_ext in '' $ac_executable_extensions; do
3349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350    ac_cv_prog_ac_ct_F77="$ac_prog"
3351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355done
3356
3357fi
3358fi
3359ac_ct_F77=$ac_cv_prog_ac_ct_F77
3360if test -n "$ac_ct_F77"; then
3361  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3362echo "${ECHO_T}$ac_ct_F77" >&6
3363else
3364  echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366fi
3367
3368  test -n "$ac_ct_F77" && break
3369done
3370
3371  F77=$ac_ct_F77
3372fi
3373
3374
3375# Provide some information about the compiler.
3376echo "$as_me:3376:" \
3377     "checking for Fortran 77 compiler version" >&5
3378ac_compiler=`set X $ac_compile; echo $2`
3379{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3380  (eval $ac_compiler --version </dev/null >&5) 2>&5
3381  ac_status=$?
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); }
3384{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3385  (eval $ac_compiler -v </dev/null >&5) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }
3389{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3390  (eval $ac_compiler -V </dev/null >&5) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }
3394rm -f a.out
3395
3396# If we don't use `.F' as extension, the preprocessor is not run on the
3397# input file.  (Note that this only needs to work for GNU compilers.)
3398ac_save_ext=$ac_ext
3399ac_ext=F
3400echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3401echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3402if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3403  echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405  cat >conftest.$ac_ext <<_ACEOF
3406      program main
3407#ifndef __GNUC__
3408       choke me
3409#endif
3410
3411      end
3412_ACEOF
3413rm -f conftest.$ac_objext
3414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3415  (eval $ac_compile) 2>conftest.er1
3416  ac_status=$?
3417  grep -v '^ *+' conftest.er1 >conftest.err
3418  rm -f conftest.er1
3419  cat conftest.err >&5
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); } &&
3422         { ac_try='test -z "$ac_f77_werror_flag"
3423                         || test ! -s conftest.err'
3424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425  (eval $ac_try) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }; } &&
3429         { ac_try='test -s conftest.$ac_objext'
3430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431  (eval $ac_try) 2>&5
3432  ac_status=$?
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); }; }; then
3435  ac_compiler_gnu=yes
3436else
3437  echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440ac_compiler_gnu=no
3441fi
3442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3443ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3444
3445fi
3446echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3447echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3448ac_ext=$ac_save_ext
3449ac_test_FFLAGS=${FFLAGS+set}
3450ac_save_FFLAGS=$FFLAGS
3451FFLAGS=
3452echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3453echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3454if test "${ac_cv_prog_f77_g+set}" = set; then
3455  echo $ECHO_N "(cached) $ECHO_C" >&6
3456else
3457  FFLAGS=-g
3458cat >conftest.$ac_ext <<_ACEOF
3459      program main
3460
3461      end
3462_ACEOF
3463rm -f conftest.$ac_objext
3464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3465  (eval $ac_compile) 2>conftest.er1
3466  ac_status=$?
3467  grep -v '^ *+' conftest.er1 >conftest.err
3468  rm -f conftest.er1
3469  cat conftest.err >&5
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); } &&
3472         { ac_try='test -z "$ac_f77_werror_flag"
3473                         || test ! -s conftest.err'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; } &&
3479         { ac_try='test -s conftest.$ac_objext'
3480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3481  (eval $ac_try) 2>&5
3482  ac_status=$?
3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484  (exit $ac_status); }; }; then
3485  ac_cv_prog_f77_g=yes
3486else
3487  echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490ac_cv_prog_f77_g=no
3491fi
3492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3496echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3497if test "$ac_test_FFLAGS" = set; then
3498  FFLAGS=$ac_save_FFLAGS
3499elif test $ac_cv_prog_f77_g = yes; then
3500  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3501    FFLAGS="-g -O2"
3502  else
3503    FFLAGS="-g"
3504  fi
3505else
3506  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3507    FFLAGS="-O2"
3508  else
3509    FFLAGS=
3510  fi
3511fi
3512
3513G77=`test $ac_compiler_gnu = yes && echo yes`
3514ac_ext=f
3515ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3516ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3518
3519else
3520  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3521echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3522fi
3523
3524FFLAGS="$save_fflags"
3525
3526# Check if a project specific FFLAGS variable has been set
3527if test x$COIN_PRJCT != x; then
3528  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3529  if test x$coin_tmp = xset; then
3530    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3531  fi
3532fi
3533
3534if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3535
3536  coin_add_fflags=
3537  coin_opt_fflags=
3538  coin_dbg_fflags=
3539  coin_warn_fflags=
3540
3541  if test "$G77" = "yes"; then
3542    coin_opt_fflags="-O3"
3543    coin_add_fflags="-pipe"
3544    coin_dbg_fflags="-g -O0"
3545  else
3546    case $build in
3547      *-cygwin* | *-mingw*)
3548        case $F77 in
3549          ifort* | */ifort* | IFORT* | */IFORT* )
3550            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3551              coin_opt_fflags='-MD -O3'
3552              coin_dbg_fflags='-MDd -debug'
3553            else
3554              coin_opt_fflags='-MT -O3'
3555              coin_dbg_fflags='-MTd -debug'
3556            fi
3557            coin_add_fflags='-fpp -nologo'
3558          ;;
3559          compile_f2c*)
3560            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3561              coin_opt_fflags='-MD -O2'
3562              coin_dbg_fflags='-MDd'
3563            else
3564              coin_opt_fflags='-MT -O2'
3565              coin_dbg_fflags='-MTd'
3566            fi
3567            coin_add_fflags='-nologo -wd4996'
3568          ;;
3569        esac
3570        ;;
3571      *-linux-*)
3572        case $F77 in
3573          ifc* | */ifc* | ifort* | */ifort*)
3574            coin_opt_fflags="-O3 -ip"
3575            coin_add_fflags="-cm -w90 -w95"
3576            coin_dbg_fflags="-g -CA -CB -CS"
3577            # Check if -i_dynamic is necessary (for new glibc library)
3578            FFLAGS=
3579            cat >conftest.$ac_ext <<_ACEOF
3580      program main
3581      write(*,*) 'Hello world'
3582      end
3583_ACEOF
3584rm -f conftest.$ac_objext conftest$ac_exeext
3585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3586  (eval $ac_link) 2>conftest.er1
3587  ac_status=$?
3588  grep -v '^ *+' conftest.er1 >conftest.err
3589  rm -f conftest.er1
3590  cat conftest.err >&5
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } &&
3593         { ac_try='test -z "$ac_f77_werror_flag"
3594                         || test ! -s conftest.err'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; } &&
3600         { ac_try='test -s conftest$ac_exeext'
3601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602  (eval $ac_try) 2>&5
3603  ac_status=$?
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); }; }; then
3606  :
3607else
3608  echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611coin_add_fflags="-i_dynamic $coin_add_fflags"
3612fi
3613rm -f conftest.err conftest.$ac_objext \
3614      conftest$ac_exeext conftest.$ac_ext
3615            ;;
3616          pgf77* | */pgf77* | pgf90* | */pgf90*)
3617            coin_opt_fflags="-fast"
3618            coin_add_fflags="-Kieee -pc 64"
3619            coin_dbg_fflags="-g"
3620          ;;
3621        esac
3622        ;;
3623      *-ibm-*)
3624        case "$F77" in
3625          xlf* | */xlf* | mpxlf* | */mpxlf* )
3626            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3627            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3628            coin_dbg_fflags="-g -C"
3629            ;;
3630        esac
3631        ;;
3632      *-hp-*)
3633        coin_opt_fflags="+O3"
3634        coin_add_fflags="+U77"
3635        coin_dbg_fflags="-C -g"
3636        ;;
3637      *-*-solaris*)
3638        coin_opt_fflags="-O4"
3639        coin_dbg_fflags="-g"
3640        ;;
3641      *-sgi-*)
3642        coin_opt_fflags="-O5 -OPT:Olimit=0"
3643        coin_dbg_fflags="-g"
3644        ;;
3645    esac
3646  fi
3647
3648  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3649    coin_dbg_fflags="-g"
3650  fi
3651
3652  if test -z "$coin_opt_fflags"; then
3653    # Try if -O option works if nothing else is set
3654    FFLAGS=-O
3655    cat >conftest.$ac_ext <<_ACEOF
3656      program main
3657      integer i
3658      end
3659_ACEOF
3660rm -f conftest.$ac_objext conftest$ac_exeext
3661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662  (eval $ac_link) 2>conftest.er1
3663  ac_status=$?
3664  grep -v '^ *+' conftest.er1 >conftest.err
3665  rm -f conftest.er1
3666  cat conftest.err >&5
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); } &&
3669         { ac_try='test -z "$ac_f77_werror_flag"
3670                         || test ! -s conftest.err'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; } &&
3676         { ac_try='test -s conftest$ac_exeext'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; }; then
3682  coin_opt_fflags="-O"
3683else
3684  echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext \
3689      conftest$ac_exeext conftest.$ac_ext
3690  fi
3691
3692  # if PM doesn't want the warning messages, take them out
3693  if test x"$coin_skip_warn_fflags" = xyes; then
3694    coin_warn_fflags=
3695  fi
3696
3697  if test x${DBG_FFLAGS+set} != xset; then
3698    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3699  fi
3700  if test x${OPT_FFLAGS+set} != xset; then
3701    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3702  fi
3703
3704  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3705  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3706
3707  if test "$coin_debug_compile" = "true"; then
3708    FFLAGS="$DBG_FFLAGS"
3709  else
3710    FFLAGS="$OPT_FFLAGS"
3711  fi
3712else
3713  FFLAGS="$FFLAGS $ADD_FFLAGS"
3714  if test x${DBG_FFLAGS+set} != xset; then
3715    DBG_FFLAGS="$FFLAGS"
3716  fi
3717  if test x${OPT_FFLAGS+set} != xset; then
3718    OPT_FFLAGS="$FFLAGS"
3719  fi
3720fi
3721
3722# Try if FFLAGS works
3723if test "$F77" != "unavailable" ; then
3724  cat >conftest.$ac_ext <<_ACEOF
3725      program main
3726      integer i
3727      end
3728_ACEOF
3729rm -f conftest.$ac_objext conftest$ac_exeext
3730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731  (eval $ac_link) 2>conftest.er1
3732  ac_status=$?
3733  grep -v '^ *+' conftest.er1 >conftest.err
3734  rm -f conftest.er1
3735  cat conftest.err >&5
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); } &&
3738         { ac_try='test -z "$ac_f77_werror_flag"
3739                         || test ! -s conftest.err'
3740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741  (eval $ac_try) 2>&5
3742  ac_status=$?
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); }; } &&
3745         { ac_try='test -s conftest$ac_exeext'
3746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747  (eval $ac_try) 2>&5
3748  ac_status=$?
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); }; }; then
3751  :
3752else
3753  echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756FFLAGS=
3757fi
3758rm -f conftest.err conftest.$ac_objext \
3759      conftest$ac_exeext conftest.$ac_ext
3760  if test -z "$FFLAGS"; then
3761    { 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
3762echo "$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;}
3763    FFLAGS='-O'
3764    cat >conftest.$ac_ext <<_ACEOF
3765      program main
3766      integer i
3767      end
3768_ACEOF
3769rm -f conftest.$ac_objext conftest$ac_exeext
3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771  (eval $ac_link) 2>conftest.er1
3772  ac_status=$?
3773  grep -v '^ *+' conftest.er1 >conftest.err
3774  rm -f conftest.er1
3775  cat conftest.err >&5
3776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777  (exit $ac_status); } &&
3778         { ac_try='test -z "$ac_f77_werror_flag"
3779                         || test ! -s conftest.err'
3780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781  (eval $ac_try) 2>&5
3782  ac_status=$?
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); }; } &&
3785         { ac_try='test -s conftest$ac_exeext'
3786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787  (eval $ac_try) 2>&5
3788  ac_status=$?
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); }; }; then
3791  :
3792else
3793  echo "$as_me: failed program was:" >&5
3794sed 's/^/| /' conftest.$ac_ext >&5
3795
3796FFLAGS=
3797fi
3798rm -f conftest.err conftest.$ac_objext \
3799      conftest$ac_exeext conftest.$ac_ext
3800    if test -z "$FFLAGS"; then
3801      { 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
3802echo "$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;}
3803    fi
3804  fi
3805fi
3806
3807{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3808echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3809
3810
3811if test x"$MPIF77" = x; then :; else
3812  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3813echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3814  F77="$MPIF77"
3815fi
3816
3817# correct the LD variable if we use the intel fortran compiler in windows
3818case "$F77" in
3819  ifort* | */ifort* | IFORT* | */IFORT*)
3820    LD=link
3821    ;;
3822esac
3823
3824ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830
3831
3832# Get the linker flags (FLIBS) that are required for linking against this blas library
3833
3834# get FLIBS
3835ac_ext=f
3836ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3837ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3839echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3840echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3841if test "${ac_cv_prog_f77_v+set}" = set; then
3842  echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844  cat >conftest.$ac_ext <<_ACEOF
3845      program main
3846
3847      end
3848_ACEOF
3849rm -f conftest.$ac_objext
3850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3851  (eval $ac_compile) 2>conftest.er1
3852  ac_status=$?
3853  grep -v '^ *+' conftest.er1 >conftest.err
3854  rm -f conftest.er1
3855  cat conftest.err >&5
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); } &&
3858         { ac_try='test -z "$ac_f77_werror_flag"
3859                         || test ! -s conftest.err'
3860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861  (eval $ac_try) 2>&5
3862  ac_status=$?
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); }; } &&
3865         { ac_try='test -s conftest.$ac_objext'
3866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867  (eval $ac_try) 2>&5
3868  ac_status=$?
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); }; }; then
3871  ac_cv_prog_f77_v=
3872# Try some options frequently used verbose output
3873for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3874  cat >conftest.$ac_ext <<_ACEOF
3875      program main
3876
3877      end
3878_ACEOF
3879
3880# Compile and link our simple test program by passing a flag (argument
3881# 1 to this macro) to the Fortran compiler in order to get
3882# "verbose" output that we can then parse for the Fortran linker
3883# flags.
3884ac_save_FFLAGS=$FFLAGS
3885FFLAGS="$FFLAGS $ac_verb"
3886(eval echo $as_me:3886: \"$ac_link\") >&5
3887ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3888echo "$ac_f77_v_output" >&5
3889FFLAGS=$ac_save_FFLAGS
3890
3891rm -f conftest*
3892
3893# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3894# /foo, /bar, and /baz are search directories for the Fortran linker.
3895# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3896ac_f77_v_output="`echo $ac_f77_v_output |
3897        grep 'LPATH is:' |
3898        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3899
3900case $ac_f77_v_output in
3901  # If we are using xlf then replace all the commas with spaces.
3902  *xlfentry*)
3903    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3904
3905  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3906  # $LIBS confuse us, and the libraries appear later in the output anyway).
3907  *mGLOB_options_string*)
3908    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3909
3910  # If we are using Cray Fortran then delete quotes.
3911  # Use "\"" instead of '"' for font-lock-mode.
3912  # FIXME: a more general fix for quoted arguments with spaces?
3913  *cft90*)
3914    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3915esac
3916
3917
3918  # look for -l* and *.a constructs in the output
3919  for ac_arg in $ac_f77_v_output; do
3920     case $ac_arg in
3921        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3922          ac_cv_prog_f77_v=$ac_verb
3923          break 2 ;;
3924     esac
3925  done
3926done
3927if test -z "$ac_cv_prog_f77_v"; then
3928   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3929echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3930fi
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3936echo "$as_me: WARNING: compilation failed" >&2;}
3937fi
3938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3939
3940fi
3941echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3942echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3943echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3944echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3945if test "${ac_cv_f77_libs+set}" = set; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948  if test "x$FLIBS" != "x"; then
3949  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3950else
3951
3952cat >conftest.$ac_ext <<_ACEOF
3953      program main
3954
3955      end
3956_ACEOF
3957
3958# Compile and link our simple test program by passing a flag (argument
3959# 1 to this macro) to the Fortran compiler in order to get
3960# "verbose" output that we can then parse for the Fortran linker
3961# flags.
3962ac_save_FFLAGS=$FFLAGS
3963FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3964(eval echo $as_me:3964: \"$ac_link\") >&5
3965ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3966echo "$ac_f77_v_output" >&5
3967FFLAGS=$ac_save_FFLAGS
3968
3969rm -f conftest*
3970
3971# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3972# /foo, /bar, and /baz are search directories for the Fortran linker.
3973# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3974ac_f77_v_output="`echo $ac_f77_v_output |
3975        grep 'LPATH is:' |
3976        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3977
3978case $ac_f77_v_output in
3979  # If we are using xlf then replace all the commas with spaces.
3980  *xlfentry*)
3981    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3982
3983  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3984  # $LIBS confuse us, and the libraries appear later in the output anyway).
3985  *mGLOB_options_string*)
3986    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3987
3988  # If we are using Cray Fortran then delete quotes.
3989  # Use "\"" instead of '"' for font-lock-mode.
3990  # FIXME: a more general fix for quoted arguments with spaces?
3991  *cft90*)
3992    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3993esac
3994
3995
3996
3997ac_cv_f77_libs=
3998
3999# Save positional arguments (if any)
4000ac_save_positional="$@"
4001
4002set X $ac_f77_v_output
4003while test $# != 1; do
4004  shift
4005  ac_arg=$1
4006  case $ac_arg in
4007        [\\/]*.a | ?:[\\/]*.a)
4008            ac_exists=false
4009  for ac_i in $ac_cv_f77_libs; do
4010    if test x"$ac_arg" = x"$ac_i"; then
4011      ac_exists=true
4012      break
4013    fi
4014  done
4015
4016  if test x"$ac_exists" = xtrue; then
4017  :
4018else
4019  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4020fi
4021
4022          ;;
4023        -bI:*)
4024            ac_exists=false
4025  for ac_i in $ac_cv_f77_libs; do
4026    if test x"$ac_arg" = x"$ac_i"; then
4027      ac_exists=true
4028      break
4029    fi
4030  done
4031
4032  if test x"$ac_exists" = xtrue; then
4033  :
4034else
4035  if test "$ac_compiler_gnu" = yes; then
4036  for ac_link_opt in $ac_arg; do
4037    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4038  done
4039else
4040  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4041fi
4042fi
4043
4044          ;;
4045          # Ignore these flags.
4046        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4047          ;;
4048        -lkernel32)
4049          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4050          ;;
4051        -[LRuY])
4052          # These flags, when seen by themselves, take an argument.
4053          # We remove the space between option and argument and re-iterate
4054          # unless we find an empty arg or a new option (starting with -)
4055          case $2 in
4056             "" | -*);;
4057             *)
4058                ac_arg="$ac_arg$2"
4059                shift; shift
4060                set X $ac_arg "$@"
4061                ;;
4062          esac
4063          ;;
4064        -YP,*)
4065          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4066              ac_exists=false
4067  for ac_i in $ac_cv_f77_libs; do
4068    if test x"$ac_j" = x"$ac_i"; then
4069      ac_exists=true
4070      break
4071    fi
4072  done
4073
4074  if test x"$ac_exists" = xtrue; then
4075  :
4076else
4077  ac_arg="$ac_arg $ac_j"
4078                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4079fi
4080
4081          done
4082          ;;
4083        -[lLR]*)
4084            ac_exists=false
4085  for ac_i in $ac_cv_f77_libs; do
4086    if test x"$ac_arg" = x"$ac_i"; then
4087      ac_exists=true
4088      break
4089    fi
4090  done
4091
4092  if test x"$ac_exists" = xtrue; then
4093  :
4094else
4095  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4096fi
4097
4098          ;;
4099          # Ignore everything else.
4100  esac
4101done
4102# restore positional arguments
4103set X $ac_save_positional; shift
4104
4105# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4106# then we insist that the "run path" must be an absolute path (i.e. it
4107# must begin with a "/").
4108case `(uname -sr) 2>/dev/null` in
4109   "SunOS 5"*)
4110      ac_ld_run_path=`echo $ac_f77_v_output |
4111                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4112      test "x$ac_ld_run_path" != x &&
4113        if test "$ac_compiler_gnu" = yes; then
4114  for ac_link_opt in $ac_ld_run_path; do
4115    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4116  done
4117else
4118  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4119fi
4120      ;;
4121esac
4122fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4123
4124fi
4125echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4126echo "${ECHO_T}$ac_cv_f77_libs" >&6
4127FLIBS="$ac_cv_f77_libs"
4128
4129
4130ac_ext=c
4131ac_cpp='$CPP $CPPFLAGS'
4132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136orig_FLIBS="$FLIBS"
4137
4138# If FLIBS has been set by the user, we just restore its value here
4139if test x"$save_FLIBS" != x; then
4140  FLIBS="$save_FLIBS"
4141else
4142  # This is to correct a missing exclusion in autoconf 2.59
4143  if test x"$FLIBS" != x; then
4144    my_flibs=
4145    for flag in $FLIBS; do
4146      case $flag in
4147        -lcrt*.o) ;;
4148        -lcygwin) ;;
4149        -lgcc*)   ;;
4150               *) my_flibs="$my_flibs $flag" ;;
4151      esac
4152    done
4153    FLIBS="$my_flibs"
4154  fi
4155
4156  case $build in
4157  # The following is a fix to define FLIBS for ifort on Windows
4158  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4159  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4160  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4161  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4162  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4163     *-cygwin* | *-mingw*)
4164       case "$F77" in
4165#         ifort* | */ifort* | IFORT* | */IFORT*)
4166#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4167#           if "$coin_debug_compile" = true ; then
4168#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4169#           else
4170#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4171#           fi
4172#           ;;
4173         compile_f2c*)
4174           FLIBS=`$F77 -FLIBS` ;;
4175       esac;;
4176     *-hp-*)
4177         FLIBS="$FLIBS -lm";;
4178     *-ibm-*)
4179         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4180     *-linux-*)
4181       case "$F77" in
4182         pgf77* | */pgf77* | pgf90* | */pgf90*)
4183# ask linker to go through the archives multiple times
4184# (the Fortran compiler seems to do that automatically...)
4185           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4186       esac
4187  esac
4188  ac_cv_f77_libs="$FLIBS"
4189fi
4190
4191if test "x$orig_FLIBS" != "x$FLIBS" ; then
4192  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4193echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4194fi
4195
4196ac_ext=f
4197ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4198ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4200
4201echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4202echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4203if test "${ac_cv_f77_dummy_main+set}" = set; then
4204  echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206  ac_f77_dm_save_LIBS=$LIBS
4207 LIBS="$LIBS $FLIBS"
4208 ac_fortran_dm_var=F77_DUMMY_MAIN
4209 ac_ext=c
4210ac_cpp='$CPP $CPPFLAGS'
4211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215 # First, try linking without a dummy main:
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h.  */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h.  */
4222
4223#ifdef F77_DUMMY_MAIN
4224
4225#  ifdef __cplusplus
4226     extern "C"
4227#  endif
4228   int F77_DUMMY_MAIN() { return 1; }
4229
4230#endif
4231int
4232main ()
4233{
4234
4235  ;
4236  return 0;
4237}
4238_ACEOF
4239rm -f conftest.$ac_objext conftest$ac_exeext
4240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241  (eval $ac_link) 2>conftest.er1
4242  ac_status=$?
4243  grep -v '^ *+' conftest.er1 >conftest.err
4244  rm -f conftest.er1
4245  cat conftest.err >&5
4246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247  (exit $ac_status); } &&
4248         { ac_try='test -z "$ac_c_werror_flag"
4249                         || test ! -s conftest.err'
4250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251  (eval $ac_try) 2>&5
4252  ac_status=$?
4253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254  (exit $ac_status); }; } &&
4255         { ac_try='test -s conftest$ac_exeext'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; }; then
4261  ac_cv_fortran_dummy_main=none
4262else
4263  echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266ac_cv_fortran_dummy_main=unknown
4267fi
4268rm -f conftest.err conftest.$ac_objext \
4269      conftest$ac_exeext conftest.$ac_ext
4270
4271 if test $ac_cv_fortran_dummy_main = unknown; then
4272   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4273     cat >conftest.$ac_ext <<_ACEOF
4274/* confdefs.h.  */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h.  */
4279#define $ac_fortran_dm_var $ac_func
4280#ifdef F77_DUMMY_MAIN
4281
4282#  ifdef __cplusplus
4283     extern "C"
4284#  endif
4285   int F77_DUMMY_MAIN() { return 1; }
4286
4287#endif
4288int
4289main ()
4290{
4291
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296rm -f conftest.$ac_objext conftest$ac_exeext
4297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4298  (eval $ac_link) 2>conftest.er1
4299  ac_status=$?
4300  grep -v '^ *+' conftest.er1 >conftest.err
4301  rm -f conftest.er1
4302  cat conftest.err >&5
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); } &&
4305         { ac_try='test -z "$ac_c_werror_flag"
4306                         || test ! -s conftest.err'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; } &&
4312         { ac_try='test -s conftest$ac_exeext'
4313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314  (eval $ac_try) 2>&5
4315  ac_status=$?
4316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317  (exit $ac_status); }; }; then
4318  ac_cv_fortran_dummy_main=$ac_func; break
4319else
4320  echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323fi
4324rm -f conftest.err conftest.$ac_objext \
4325      conftest$ac_exeext conftest.$ac_ext
4326   done
4327 fi
4328 ac_ext=f
4329ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4330ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4332 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4333 rm -f conftest*
4334 LIBS=$ac_f77_dm_save_LIBS
4335
4336fi
4337echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4338echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4339F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4340if test "$F77_DUMMY_MAIN" != unknown; then
4341  if test $F77_DUMMY_MAIN != none; then
4342
4343cat >>confdefs.h <<_ACEOF
4344#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4345_ACEOF
4346
4347  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4348
4349cat >>confdefs.h <<\_ACEOF
4350#define FC_DUMMY_MAIN_EQ_F77 1
4351_ACEOF
4352
4353  fi
4354fi
4355else
4356  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4357See \`config.log' for more details." >&5
4358echo "$as_me: error: linking to Fortran libraries from C fails
4359See \`config.log' for more details." >&2;}
4360   { (exit 1); exit 1; }; }
4361fi
4362
4363
4364ac_ext=f
4365ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4366ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4368
4369ac_ext=f
4370ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4371ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4373echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4374echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4375if test "${ac_cv_f77_mangling+set}" = set; then
4376  echo $ECHO_N "(cached) $ECHO_C" >&6
4377else
4378  cat >conftest.$ac_ext <<_ACEOF
4379      subroutine foobar()
4380      return
4381      end
4382      subroutine foo_bar()
4383      return
4384      end
4385_ACEOF
4386rm -f conftest.$ac_objext
4387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388  (eval $ac_compile) 2>conftest.er1
4389  ac_status=$?
4390  grep -v '^ *+' conftest.er1 >conftest.err
4391  rm -f conftest.er1
4392  cat conftest.err >&5
4393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394  (exit $ac_status); } &&
4395         { ac_try='test -z "$ac_f77_werror_flag"
4396                         || test ! -s conftest.err'
4397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398  (eval $ac_try) 2>&5
4399  ac_status=$?
4400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401  (exit $ac_status); }; } &&
4402         { ac_try='test -s conftest.$ac_objext'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; }; then
4408  mv conftest.$ac_objext cfortran_test.$ac_objext
4409
4410  ac_save_LIBS=$LIBS
4411  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4412
4413  ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418  ac_success=no
4419  for ac_foobar in foobar FOOBAR; do
4420    for ac_underscore in "" "_"; do
4421      ac_func="$ac_foobar$ac_underscore"
4422      cat >conftest.$ac_ext <<_ACEOF
4423/* confdefs.h.  */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h.  */
4428
4429/* Override any gcc2 internal prototype to avoid an error.  */
4430#ifdef __cplusplus
4431extern "C"
4432#endif
4433/* We use char because int might match the return type of a gcc2
4434   builtin and then its argument prototype would still apply.  */
4435char $ac_func ();
4436#ifdef F77_DUMMY_MAIN
4437
4438#  ifdef __cplusplus
4439     extern "C"
4440#  endif
4441   int F77_DUMMY_MAIN() { return 1; }
4442
4443#endif
4444int
4445main ()
4446{
4447$ac_func ();
4448  ;
4449  return 0;
4450}
4451_ACEOF
4452rm -f conftest.$ac_objext conftest$ac_exeext
4453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4454  (eval $ac_link) 2>conftest.er1
4455  ac_status=$?
4456  grep -v '^ *+' conftest.er1 >conftest.err
4457  rm -f conftest.er1
4458  cat conftest.err >&5
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); } &&
4461         { ac_try='test -z "$ac_c_werror_flag"
4462                         || test ! -s conftest.err'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; } &&
4468         { ac_try='test -s conftest$ac_exeext'
4469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470  (eval $ac_try) 2>&5
4471  ac_status=$?
4472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473  (exit $ac_status); }; }; then
4474  ac_success=yes; break 2
4475else
4476  echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479fi
4480rm -f conftest.err conftest.$ac_objext \
4481      conftest$ac_exeext conftest.$ac_ext
4482    done
4483  done
4484  ac_ext=f
4485ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4486ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4488
4489  if test "$ac_success" = "yes"; then
4490     case $ac_foobar in
4491        foobar)
4492           ac_case=lower
4493           ac_foo_bar=foo_bar
4494           ;;
4495        FOOBAR)
4496           ac_case=upper
4497           ac_foo_bar=FOO_BAR
4498           ;;
4499     esac
4500
4501     ac_ext=c
4502ac_cpp='$CPP $CPPFLAGS'
4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506     ac_success_extra=no
4507     for ac_extra in "" "_"; do
4508        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4509        cat >conftest.$ac_ext <<_ACEOF
4510/* confdefs.h.  */
4511_ACEOF
4512cat confdefs.h >>conftest.$ac_ext
4513cat >>conftest.$ac_ext <<_ACEOF
4514/* end confdefs.h.  */
4515
4516/* Override any gcc2 internal prototype to avoid an error.  */
4517#ifdef __cplusplus
4518extern "C"
4519#endif
4520/* We use char because int might match the return type of a gcc2
4521   builtin and then its argument prototype would still apply.  */
4522char $ac_func ();
4523#ifdef F77_DUMMY_MAIN
4524
4525#  ifdef __cplusplus
4526     extern "C"
4527#  endif
4528   int F77_DUMMY_MAIN() { return 1; }
4529
4530#endif
4531int
4532main ()
4533{
4534$ac_func ();
4535  ;
4536  return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext conftest$ac_exeext
4540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4541  (eval $ac_link) 2>conftest.er1
4542  ac_status=$?
4543  grep -v '^ *+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } &&
4548         { ac_try='test -z "$ac_c_werror_flag"
4549                         || test ! -s conftest.err'
4550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551  (eval $ac_try) 2>&5
4552  ac_status=$?
4553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554  (exit $ac_status); }; } &&
4555         { ac_try='test -s conftest$ac_exeext'
4556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557  (eval $ac_try) 2>&5
4558  ac_status=$?
4559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); }; }; then
4561  ac_success_extra=yes; break
4562else
4563  echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566fi
4567rm -f conftest.err conftest.$ac_objext \
4568      conftest$ac_exeext conftest.$ac_ext
4569     done
4570     ac_ext=f
4571ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4572ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4574
4575     if test "$ac_success_extra" = "yes"; then
4576        ac_cv_f77_mangling="$ac_case case"
4577        if test -z "$ac_underscore"; then
4578           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4579        else
4580           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4581        fi
4582        if test -z "$ac_extra"; then
4583           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4584        else
4585           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4586        fi
4587      else
4588        ac_cv_f77_mangling="unknown"
4589      fi
4590  else
4591     ac_cv_f77_mangling="unknown"
4592  fi
4593
4594  LIBS=$ac_save_LIBS
4595  rm -f cfortran_test* conftest*
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4601See \`config.log' for more details." >&5
4602echo "$as_me: error: cannot compile a simple Fortran program
4603See \`config.log' for more details." >&2;}
4604   { (exit 1); exit 1; }; }
4605fi
4606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4607
4608fi
4609echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4610echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4611
4612ac_ext=f
4613ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4614ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4616
4617
4618ac_ext=f
4619ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4620ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4622
4623ac_ext=f
4624ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4625ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4627
4628
4629case $ac_cv_f77_mangling in
4630  "lower case, no underscore, no extra underscore")
4631          cat >>confdefs.h <<\_ACEOF
4632#define F77_FUNC(name,NAME) name
4633_ACEOF
4634
4635          cat >>confdefs.h <<\_ACEOF
4636#define F77_FUNC_(name,NAME) name
4637_ACEOF
4638 ;;
4639  "lower case, no underscore, extra underscore")
4640          cat >>confdefs.h <<\_ACEOF
4641#define F77_FUNC(name,NAME) name
4642_ACEOF
4643
4644          cat >>confdefs.h <<\_ACEOF
4645#define F77_FUNC_(name,NAME) name ## _
4646_ACEOF
4647 ;;
4648  "lower case, underscore, no extra underscore")
4649          cat >>confdefs.h <<\_ACEOF
4650#define F77_FUNC(name,NAME) name ## _
4651_ACEOF
4652
4653          cat >>confdefs.h <<\_ACEOF
4654#define F77_FUNC_(name,NAME) name ## _
4655_ACEOF
4656 ;;
4657  "lower case, underscore, extra underscore")
4658          cat >>confdefs.h <<\_ACEOF
4659#define F77_FUNC(name,NAME) name ## _
4660_ACEOF
4661
4662          cat >>confdefs.h <<\_ACEOF
4663#define F77_FUNC_(name,NAME) name ## __
4664_ACEOF
4665 ;;
4666  "upper case, no underscore, no extra underscore")
4667          cat >>confdefs.h <<\_ACEOF
4668#define F77_FUNC(name,NAME) NAME
4669_ACEOF
4670
4671          cat >>confdefs.h <<\_ACEOF
4672#define F77_FUNC_(name,NAME) NAME
4673_ACEOF
4674 ;;
4675  "upper case, no underscore, extra underscore")
4676          cat >>confdefs.h <<\_ACEOF
4677#define F77_FUNC(name,NAME) NAME
4678_ACEOF
4679
4680          cat >>confdefs.h <<\_ACEOF
4681#define F77_FUNC_(name,NAME) NAME ## _
4682_ACEOF
4683 ;;
4684  "upper case, underscore, no extra underscore")
4685          cat >>confdefs.h <<\_ACEOF
4686#define F77_FUNC(name,NAME) NAME ## _
4687_ACEOF
4688
4689          cat >>confdefs.h <<\_ACEOF
4690#define F77_FUNC_(name,NAME) NAME ## _
4691_ACEOF
4692 ;;
4693  "upper case, underscore, extra underscore")
4694          cat >>confdefs.h <<\_ACEOF
4695#define F77_FUNC(name,NAME) NAME ## _
4696_ACEOF
4697
4698          cat >>confdefs.h <<\_ACEOF
4699#define F77_FUNC_(name,NAME) NAME ## __
4700_ACEOF
4701 ;;
4702  *)
4703          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4704echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4705          ;;
4706esac
4707
4708ac_ext=f
4709ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4710ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4711ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4712
4713ac_ext=c
4714ac_cpp='$CPP $CPPFLAGS'
4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718
4719
4720
4721
4722# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4723FILTERSQP_PCLIBS="$FLIBS"
4724
4725
4726# Check if pkg-config is available (to setup addlibs file)
4727
4728
4729# Check whether --enable-pkg-config or --disable-pkg-config was given.
4730if test "${enable_pkg_config+set}" = set; then
4731  enableval="$enable_pkg_config"
4732  use_pkgconfig="$enableval"
4733else
4734  if test x$coin_cc_is_cl = xtrue; then
4735     use_pkgconfig=no
4736   else
4737     use_pkgconfig=yes
4738   fi
4739fi;
4740
4741if test $use_pkgconfig = yes ; then
4742  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4743    if test -n "$ac_tool_prefix"; then
4744  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4745set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4746echo "$as_me:$LINENO: checking for $ac_word" >&5
4747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4748if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4749  echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751  if test -n "$PKG_CONFIG"; then
4752  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4753else
4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757  IFS=$as_save_IFS
4758  test -z "$as_dir" && as_dir=.
4759  for ac_exec_ext in '' $ac_executable_extensions; do
4760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4761    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763    break 2
4764  fi
4765done
4766done
4767
4768fi
4769fi
4770PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4771if test -n "$PKG_CONFIG"; then
4772  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4773echo "${ECHO_T}$PKG_CONFIG" >&6
4774else
4775  echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
4777fi
4778
4779fi
4780if test -z "$ac_cv_prog_PKG_CONFIG"; then
4781  ac_ct_PKG_CONFIG=$PKG_CONFIG
4782  # Extract the first word of "pkg-config", so it can be a program name with args.
4783set dummy pkg-config; ac_word=$2
4784echo "$as_me:$LINENO: checking for $ac_word" >&5
4785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4786if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4787  echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789  if test -n "$ac_ct_PKG_CONFIG"; then
4790  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797  for ac_exec_ext in '' $ac_executable_extensions; do
4798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804done
4805
4806fi
4807fi
4808ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4809if test -n "$ac_ct_PKG_CONFIG"; then
4810  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4811echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4812else
4813  echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815fi
4816
4817  PKG_CONFIG=$ac_ct_PKG_CONFIG
4818else
4819  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4820fi
4821
4822  fi
4823  if test -n "$PKG_CONFIG"; then
4824    _pkg_min_version=0.16.0
4825    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4826echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4827    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4828      echo "$as_me:$LINENO: result: yes" >&5
4829echo "${ECHO_T}yes" >&6
4830    else
4831      echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833      PKG_CONFIG=""
4834    fi
4835  fi
4836
4837  # check if pkg-config supports the short-errors flag
4838  if test -n "$PKG_CONFIG" && \
4839    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4840    pkg_short_errors=" --short-errors "
4841  else
4842    pkg_short_errors=""
4843  fi
4844fi
4845
4846
4847
4848if test -n "$PKG_CONFIG"; then
4849  COIN_HAS_PKGCONFIG_TRUE=
4850  COIN_HAS_PKGCONFIG_FALSE='#'
4851else
4852  COIN_HAS_PKGCONFIG_TRUE='#'
4853  COIN_HAS_PKGCONFIG_FALSE=
4854fi
4855
4856
4857
4858# assemble pkg-config search path for installed projects
4859COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4860
4861# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
4862# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4863# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4864if test "x${prefix}" = xNONE ; then
4865  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4866else
4867  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4868fi
4869
4870
4871# Check whether --with-coin-instdir or --without-coin-instdir was given.
4872if test "${with_coin_instdir+set}" = set; then
4873  withval="$with_coin_instdir"
4874  if test -d "$withval"; then : ; else
4875     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4876echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4877   { (exit 1); exit 1; }; }
4878   fi
4879   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4880
4881fi;
4882
4883
4884
4885# assemble additional pkg-config search paths for uninstalled projects
4886if test x$coin_projectdir = xyes ; then
4887  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4888  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4889  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4890  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
4891  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4892  if test -f ../coin_subdirs.txt ; then
4893    for i in `cat ../coin_subdirs.txt` ; do
4894      if test -d ../$i ; then
4895        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4896      fi
4897      if test -d ../$i/pkgconfig ; then
4898        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4899      fi
4900    done
4901  fi
4902
4903  if test -f ../../coin_subdirs.txt ; then
4904    for i in `cat ../../coin_subdirs.txt` ; do
4905      if test -d ../../$i ; then
4906        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4907      fi
4908      if test -d ../../$i/pkgconfig ; then
4909        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4910      fi
4911    done
4912  fi
4913
4914
4915fi
4916
4917if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4918  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
4919echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
4920fi
4921
4922
4923
4924# Initialize automake
4925echo "$as_me:$LINENO: checking for egrep" >&5
4926echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4927if test "${ac_cv_prog_egrep+set}" = set; then
4928  echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4931    then ac_cv_prog_egrep='grep -E'
4932    else ac_cv_prog_egrep='egrep'
4933    fi
4934fi
4935echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4936echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4937 EGREP=$ac_cv_prog_egrep
4938
4939
4940echo "$as_me:$LINENO: checking whether ln -s works" >&5
4941echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4942LN_S=$as_ln_s
4943if test "$LN_S" = "ln -s"; then
4944  echo "$as_me:$LINENO: result: yes" >&5
4945echo "${ECHO_T}yes" >&6
4946else
4947  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4948echo "${ECHO_T}no, using $LN_S" >&6
4949fi
4950
4951am__api_version="1.9"
4952# Find a good install program.  We prefer a C program (faster),
4953# so one script is as good as another.  But avoid the broken or
4954# incompatible versions:
4955# SysV /etc/install, /usr/sbin/install
4956# SunOS /usr/etc/install
4957# IRIX /sbin/install
4958# AIX /bin/install
4959# AmigaOS /C/install, which installs bootblocks on floppy discs
4960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4963# OS/2's system install, which has a completely different semantic
4964# ./install, which can be erroneously created by make from ./install.sh.
4965echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4966echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4967if test -z "$INSTALL"; then
4968if test "${ac_cv_path_install+set}" = set; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974  IFS=$as_save_IFS
4975  test -z "$as_dir" && as_dir=.
4976  # Account for people who put trailing slashes in PATH elements.
4977case $as_dir/ in
4978  ./ | .// | /cC/* | \
4979  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4980  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4981  /usr/ucb/* ) ;;
4982  *)
4983    # OSF1 and SCO ODT 3.0 have their own names for install.
4984    # Don't use installbsd from OSF since it installs stuff as root
4985    # by default.
4986    for ac_prog in ginstall scoinst install; do
4987      for ac_exec_ext in '' $ac_executable_extensions; do
4988        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4989          if test $ac_prog = install &&
4990            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4991            # AIX install.  It has an incompatible calling convention.
4992            :
4993          elif test $ac_prog = install &&
4994            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4995            # program-specific install script used by HP pwplus--don't use.
4996            :
4997          else
4998            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4999            break 3
5000          fi
5001        fi
5002      done
5003    done
5004    ;;
5005esac
5006done
5007
5008
5009fi
5010  if test "${ac_cv_path_install+set}" = set; then
5011    INSTALL=$ac_cv_path_install
5012  else
5013    # As a last resort, use the slow shell script.  We don't cache a
5014    # path for INSTALL within a source directory, because that will
5015    # break other packages using the cache if that directory is
5016    # removed, or if the path is relative.
5017    INSTALL=$ac_install_sh
5018  fi
5019fi
5020echo "$as_me:$LINENO: result: $INSTALL" >&5
5021echo "${ECHO_T}$INSTALL" >&6
5022
5023# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5024# It thinks the first close brace ends the variable substitution.
5025test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5026
5027test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5028
5029test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5030
5031echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5032echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5033# Just in case
5034sleep 1
5035echo timestamp > conftest.file
5036# Do `set' in a subshell so we don't clobber the current shell's
5037# arguments.  Must try -L first in case configure is actually a
5038# symlink; some systems play weird games with the mod time of symlinks
5039# (eg FreeBSD returns the mod time of the symlink's containing
5040# directory).
5041if (
5042   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5043   if test "$*" = "X"; then
5044      # -L didn't work.
5045      set X `ls -t $srcdir/configure conftest.file`
5046   fi
5047   rm -f conftest.file
5048   if test "$*" != "X $srcdir/configure conftest.file" \
5049      && test "$*" != "X conftest.file $srcdir/configure"; then
5050
5051      # If neither matched, then we have a broken ls.  This can happen
5052      # if, for instance, CONFIG_SHELL is bash and it inherits a
5053      # broken ls alias from the environment.  This has actually
5054      # happened.  Such a system could not be considered "sane".
5055      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5056alias in your environment" >&5
5057echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5058alias in your environment" >&2;}
5059   { (exit 1); exit 1; }; }
5060   fi
5061
5062   test "$2" = conftest.file
5063   )
5064then
5065   # Ok.
5066   :
5067else
5068   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5069Check your system clock" >&5
5070echo "$as_me: error: newly created file is older than distributed files!
5071Check your system clock" >&2;}
5072   { (exit 1); exit 1; }; }
5073fi
5074echo "$as_me:$LINENO: result: yes" >&5
5075echo "${ECHO_T}yes" >&6
5076test "$program_prefix" != NONE &&
5077  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5078# Use a double $ so make ignores it.
5079test "$program_suffix" != NONE &&
5080  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5081# Double any \ or $.  echo might interpret backslashes.
5082# By default was `s,x,x', remove it if useless.
5083cat <<\_ACEOF >conftest.sed
5084s/[\\$]/&&/g;s/;s,x,x,$//
5085_ACEOF
5086program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5087rm conftest.sed
5088
5089# expand $ac_aux_dir to an absolute path
5090am_aux_dir=`cd $ac_aux_dir && pwd`
5091
5092test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5093# Use eval to expand $SHELL
5094if eval "$MISSING --run true"; then
5095  am_missing_run="$MISSING --run "
5096else
5097  am_missing_run=
5098  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5099echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5100fi
5101
5102if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5103  # We used to keeping the `.' as first argument, in order to
5104  # allow $(mkdir_p) to be used without argument.  As in
5105  #   $(mkdir_p) $(somedir)
5106  # where $(somedir) is conditionally defined.  However this is wrong
5107  # for two reasons:
5108  #  1. if the package is installed by a user who cannot write `.'
5109  #     make install will fail,
5110  #  2. the above comment should most certainly read
5111  #     $(mkdir_p) $(DESTDIR)$(somedir)
5112  #     so it does not work when $(somedir) is undefined and
5113  #     $(DESTDIR) is not.
5114  #  To support the latter case, we have to write
5115  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5116  #  so the `.' trick is pointless.
5117  mkdir_p='mkdir -p --'
5118else
5119  # On NextStep and OpenStep, the `mkdir' command does not
5120  # recognize any option.  It will interpret all options as
5121  # directories to create, and then abort because `.' already
5122  # exists.
5123  for d in ./-p ./--version;
5124  do
5125    test -d $d && rmdir $d
5126  done
5127  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5128  if test -f "$ac_aux_dir/mkinstalldirs"; then
5129    mkdir_p='$(mkinstalldirs)'
5130  else
5131    mkdir_p='$(install_sh) -d'
5132  fi
5133fi
5134
5135for ac_prog in gawk mawk nawk awk
5136do
5137  # Extract the first word of "$ac_prog", so it can be a program name with args.
5138set dummy $ac_prog; ac_word=$2
5139echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141if test "${ac_cv_prog_AWK+set}" = set; then
5142  echo $ECHO_N "(cached) $ECHO_C" >&6
5143else
5144  if test -n "$AWK"; then
5145  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  test -z "$as_dir" && as_dir=.
5152  for ac_exec_ext in '' $ac_executable_extensions; do
5153  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154    ac_cv_prog_AWK="$ac_prog"
5155    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156    break 2
5157  fi
5158done
5159done
5160
5161fi
5162fi
5163AWK=$ac_cv_prog_AWK
5164if test -n "$AWK"; then
5165  echo "$as_me:$LINENO: result: $AWK" >&5
5166echo "${ECHO_T}$AWK" >&6
5167else
5168  echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170fi
5171
5172  test -n "$AWK" && break
5173done
5174
5175echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5176echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5177set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5178if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5179  echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181  cat >conftest.make <<\_ACEOF
5182all:
5183        @echo 'ac_maketemp="$(MAKE)"'
5184_ACEOF
5185# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5186eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5187if test -n "$ac_maketemp"; then
5188  eval ac_cv_prog_make_${ac_make}_set=yes
5189else
5190  eval ac_cv_prog_make_${ac_make}_set=no
5191fi
5192rm -f conftest.make
5193fi
5194if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5195  echo "$as_me:$LINENO: result: yes" >&5
5196echo "${ECHO_T}yes" >&6
5197  SET_MAKE=
5198else
5199  echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201  SET_MAKE="MAKE=${MAKE-make}"
5202fi
5203
5204rm -rf .tst 2>/dev/null
5205mkdir .tst 2>/dev/null
5206if test -d .tst; then
5207  am__leading_dot=.
5208else
5209  am__leading_dot=_
5210fi
5211rmdir .tst 2>/dev/null
5212
5213DEPDIR="${am__leading_dot}deps"
5214
5215          ac_config_commands="$ac_config_commands depfiles"
5216
5217
5218am_make=${MAKE-make}
5219cat > confinc << 'END'
5220am__doit:
5221        @echo done
5222.PHONY: am__doit
5223END
5224# If we don't find an include directive, just comment out the code.
5225echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5226echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5227am__include="#"
5228am__quote=
5229_am_result=none
5230# First try GNU make style include.
5231echo "include confinc" > confmf
5232# We grep out `Entering directory' and `Leaving directory'
5233# messages which can occur if `w' ends up in MAKEFLAGS.
5234# In particular we don't look at `^make:' because GNU make might
5235# be invoked under some other name (usually "gmake"), in which
5236# case it prints its new name instead of `make'.
5237if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5238   am__include=include
5239   am__quote=
5240   _am_result=GNU
5241fi
5242# Now try BSD make style include.
5243if test "$am__include" = "#"; then
5244   echo '.include "confinc"' > confmf
5245   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5246      am__include=.include
5247      am__quote="\""
5248      _am_result=BSD
5249   fi
5250fi
5251
5252
5253echo "$as_me:$LINENO: result: $_am_result" >&5
5254echo "${ECHO_T}$_am_result" >&6
5255rm -f confinc confmf
5256
5257# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5258if test "${enable_dependency_tracking+set}" = set; then
5259  enableval="$enable_dependency_tracking"
5260
5261fi;
5262if test "x$enable_dependency_tracking" != xno; then
5263  am_depcomp="$ac_aux_dir/depcomp"
5264  AMDEPBACKSLASH='\'
5265fi
5266
5267
5268if test "x$enable_dependency_tracking" != xno; then
5269  AMDEP_TRUE=
5270  AMDEP_FALSE='#'
5271else
5272  AMDEP_TRUE='#'
5273  AMDEP_FALSE=
5274fi
5275
5276
5277
5278
5279
5280
5281# AC_MSG_NOTICE([Beginning automake initialisation.])
5282# Stuff for automake
5283# test to see if srcdir already configured
5284if test "`cd $srcdir && pwd`" != "`pwd`" &&
5285   test -f $srcdir/config.status; then
5286  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5287echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5288   { (exit 1); exit 1; }; }
5289fi
5290
5291# test whether we have cygpath
5292if test -z "$CYGPATH_W"; then
5293  if (cygpath --version) >/dev/null 2>/dev/null; then
5294    CYGPATH_W='cygpath -w'
5295  else
5296    CYGPATH_W=echo
5297  fi
5298fi
5299
5300
5301# Define the identity of the package.
5302 PACKAGE='thirdpartyfiltersqp'
5303 VERSION='1.3'
5304
5305
5306cat >>confdefs.h <<_ACEOF
5307#define PACKAGE "$PACKAGE"
5308_ACEOF
5309
5310
5311cat >>confdefs.h <<_ACEOF
5312#define VERSION "$VERSION"
5313_ACEOF
5314
5315# Some tools Automake needs.
5316
5317ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5318
5319
5320AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5321
5322
5323AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5324
5325
5326AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5327
5328
5329MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5330
5331install_sh=${install_sh-"$am_aux_dir/install-sh"}
5332
5333# Installed binaries are usually stripped using `strip' when the user
5334# run `make install-strip'.  However `strip' might not be the right
5335# tool to use in cross-compilation environments, therefore Automake
5336# will honor the `STRIP' environment variable to overrule this program.
5337if test "$cross_compiling" != no; then
5338  if test -n "$ac_tool_prefix"; then
5339  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5340set dummy ${ac_tool_prefix}strip; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_prog_STRIP+set}" = set; then
5344  echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346  if test -n "$STRIP"; then
5347  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354  for ac_exec_ext in '' $ac_executable_extensions; do
5355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358    break 2
5359  fi
5360done
5361done
5362
5363fi
5364fi
5365STRIP=$ac_cv_prog_STRIP
5366if test -n "$STRIP"; then
5367  echo "$as_me:$LINENO: result: $STRIP" >&5
5368echo "${ECHO_T}$STRIP" >&6
5369else
5370  echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372fi
5373
5374fi
5375if test -z "$ac_cv_prog_STRIP"; then
5376  ac_ct_STRIP=$STRIP
5377  # Extract the first word of "strip", so it can be a program name with args.
5378set dummy strip; ac_word=$2
5379echo "$as_me:$LINENO: checking for $ac_word" >&5
5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5382  echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384  if test -n "$ac_ct_STRIP"; then
5385  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392  for ac_exec_ext in '' $ac_executable_extensions; do
5393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_prog_ac_ct_STRIP="strip"
5395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399done
5400
5401  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5402fi
5403fi
5404ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5405if test -n "$ac_ct_STRIP"; then
5406  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5407echo "${ECHO_T}$ac_ct_STRIP" >&6
5408else
5409  echo "$as_me:$LINENO: result: no" >&5
5410echo "${ECHO_T}no" >&6
5411fi
5412
5413  STRIP=$ac_ct_STRIP
5414else
5415  STRIP="$ac_cv_prog_STRIP"
5416fi
5417
5418fi
5419INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5420
5421# We need awk for the "check" target.  The system "awk" is bad on
5422# some platforms.
5423# Always define AMTAR for backward compatibility.
5424
5425AMTAR=${AMTAR-"${am_missing_run}tar"}
5426
5427am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5428
5429
5430
5431
5432depcc="$CC"   am_compiler_list=
5433
5434echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5435echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5436if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5440  # We make a subdir and do the tests there.  Otherwise we can end up
5441  # making bogus files that we don't know about and never remove.  For
5442  # instance it was reported that on HP-UX the gcc test will end up
5443  # making a dummy file named `D' -- because `-MD' means `put the output
5444  # in D'.
5445  mkdir conftest.dir
5446  # Copy depcomp to subdir because otherwise we won't find it if we're
5447  # using a relative directory.
5448  cp "$am_depcomp" conftest.dir
5449  cd conftest.dir
5450  # We will build objects and dependencies in a subdirectory because
5451  # it helps to detect inapplicable dependency modes.  For instance
5452  # both Tru64's cc and ICC support -MD to output dependencies as a
5453  # side effect of compilation, but ICC will put the dependencies in
5454  # the current directory while Tru64 will put them in the object
5455  # directory.
5456  mkdir sub
5457
5458  am_cv_CC_dependencies_compiler_type=none
5459  if test "$am_compiler_list" = ""; then
5460     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5461  fi
5462  for depmode in $am_compiler_list; do
5463    # Setup a source with many dependencies, because some compilers
5464    # like to wrap large dependency lists on column 80 (with \), and
5465    # we should not choose a depcomp mode which is confused by this.
5466    #
5467    # We need to recreate these files for each test, as the compiler may
5468    # overwrite some of them when testing with obscure command lines.
5469    # This happens at least with the AIX C compiler.
5470    : > sub/conftest.c
5471    for i in 1 2 3 4 5 6; do
5472      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5473      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5474      # Solaris 8's {/usr,}/bin/sh.
5475      touch sub/conftst$i.h
5476    done
5477    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5478
5479    case $depmode in
5480    nosideeffect)
5481      # after this tag, mechanisms are not by side-effect, so they'll
5482      # only be used when explicitly requested
5483      if test "x$enable_dependency_tracking" = xyes; then
5484        continue
5485      else
5486        break
5487      fi
5488      ;;
5489    none) break ;;
5490    esac
5491    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5492    # mode.  It turns out that the SunPro C++ compiler does not properly
5493    # handle `-M -o', and we need to detect this.
5494    if depmode=$depmode \
5495       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5496       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5497       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5498         >/dev/null 2>conftest.err &&
5499       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5500       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5501       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5502      # icc doesn't choke on unknown options, it will just issue warnings
5503      # or remarks (even with -Werror).  So we grep stderr for any message
5504      # that says an option was ignored or not supported.
5505      # When given -MP, icc 7.0 and 7.1 complain thusly:
5506      #   icc: Command line warning: ignoring option '-M'; no argument required
5507      # The diagnosis changed in icc 8.0:
5508      #   icc: Command line remark: option '-MP' not supported
5509      if (grep 'ignoring option' conftest.err ||
5510          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5511        am_cv_CC_dependencies_compiler_type=$depmode
5512        break
5513      fi
5514    fi
5515  done
5516
5517  cd ..
5518  rm -rf conftest.dir
5519else
5520  am_cv_CC_dependencies_compiler_type=none
5521fi
5522
5523fi
5524echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5525echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5526CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5527
5528
5529
5530if
5531  test "x$enable_dependency_tracking" != xno \
5532  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5533  am__fastdepCC_TRUE=
5534  am__fastdepCC_FALSE='#'
5535else
5536  am__fastdepCC_TRUE='#'
5537  am__fastdepCC_FALSE=
5538fi
5539
5540
5541
5542echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5543echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5544    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5545if test "${enable_maintainer_mode+set}" = set; then
5546  enableval="$enable_maintainer_mode"
5547  USE_MAINTAINER_MODE=$enableval
5548else
5549  USE_MAINTAINER_MODE=no
5550fi;
5551  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5552echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5553
5554
5555if test $USE_MAINTAINER_MODE = yes; then
5556  MAINTAINER_MODE_TRUE=
5557  MAINTAINER_MODE_FALSE='#'
5558else
5559  MAINTAINER_MODE_TRUE='#'
5560  MAINTAINER_MODE_FALSE=
5561fi
5562
5563  MAINT=$MAINTAINER_MODE_TRUE
5564
5565
5566
5567coin_have_externals=no
5568if test "$enable_maintainer_mode" = yes; then
5569
5570  # If maintainer mode is chosen, we make sure that the correct versions
5571  # of the tools are used, and that we know where libtool.m4 is (to
5572  # recreate acinclude.m4)
5573
5574
5575  LIBTOOLM4=
5576  # Normally, $HOME
5577  AUTOTOOLS_DFLT=$HOME
5578
5579  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5580echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5581if test "${ac_cv_use_correct_autotools+set}" = set; then
5582  echo $ECHO_N "(cached) $ECHO_C" >&6
5583else
5584  ac_cv_use_correct_autotools=check
5585fi
5586echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5587echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5588
5589  if test $ac_cv_use_correct_autotools = check; then
5590    ac_cv_use_correct_autotools=yes
5591    # Check if we have autoconf
5592    # Extract the first word of "autoconf", so it can be a program name with args.
5593set dummy autoconf; ac_word=$2
5594echo "$as_me:$LINENO: checking for $ac_word" >&5
5595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596if test "${ac_cv_prog_have_autoconf+set}" = set; then
5597  echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599  if test -n "$have_autoconf"; then
5600  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605  IFS=$as_save_IFS
5606  test -z "$as_dir" && as_dir=.
5607  for ac_exec_ext in '' $ac_executable_extensions; do
5608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609    ac_cv_prog_have_autoconf="yes"
5610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611    break 2
5612  fi
5613done
5614done
5615
5616  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5617fi
5618fi
5619have_autoconf=$ac_cv_prog_have_autoconf
5620if test -n "$have_autoconf"; then
5621  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5622echo "${ECHO_T}$have_autoconf" >&6
5623else
5624  echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6
5626fi
5627
5628    if test $have_autoconf = no; then
5629      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5630echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5631   { (exit 1); exit 1; }; }
5632    fi
5633
5634    # Check whether autoconf is the correct version
5635    correct_version='2.59'
5636    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5637    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5638echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5639    autoconf --version > confauto.out 2>&1
5640    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5641      echo "$as_me:$LINENO: result: yes" >&5
5642echo "${ECHO_T}yes" >&6
5643    else
5644      rm -f confauto.out
5645      echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5648echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5649   { (exit 1); exit 1; }; }
5650    fi
5651    rm -f confauto.out
5652
5653    # Check if the executable autoconf is picked up from the correct location
5654    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5655echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5656    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5657    autoconf_dir=`cd $autoconf_dir; pwd`
5658    if test x$AUTOTOOLS_DIR = x; then
5659      want_dir=$AUTOTOOLS_DFLT/bin
5660    else
5661      want_dir=$AUTOTOOLS_DIR/bin
5662    fi
5663    if test $autoconf_dir = `cd $want_dir; pwd`; then
5664      echo "$as_me:$LINENO: result: yes" >&5
5665echo "${ECHO_T}yes" >&6
5666    else
5667      rm -f confauto.out
5668      echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5671echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5672   { (exit 1); exit 1; }; }
5673    fi
5674
5675    # Check if we have automake
5676    # Extract the first word of "automake", so it can be a program name with args.
5677set dummy automake; ac_word=$2
5678echo "$as_me:$LINENO: checking for $ac_word" >&5
5679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680if test "${ac_cv_prog_have_automake+set}" = set; then
5681  echo $ECHO_N "(cached) $ECHO_C" >&6
5682else
5683  if test -n "$have_automake"; then
5684  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691  for ac_exec_ext in '' $ac_executable_extensions; do
5692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693    ac_cv_prog_have_automake="yes"
5694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698done
5699
5700  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5701fi
5702fi
5703have_automake=$ac_cv_prog_have_automake
5704if test -n "$have_automake"; then
5705  echo "$as_me:$LINENO: result: $have_automake" >&5
5706echo "${ECHO_T}$have_automake" >&6
5707else
5708  echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710fi
5711
5712    if test $have_automake = no; then
5713      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5714echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5715   { (exit 1); exit 1; }; }
5716    fi
5717
5718    # Check whether automake is the correct version
5719    correct_version='1.9.6'
5720    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5721    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5722echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5723    automake --version > confauto.out 2>&1
5724    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5725      echo "$as_me:$LINENO: result: yes" >&5
5726echo "${ECHO_T}yes" >&6
5727    else
5728      rm -f confauto.out
5729      echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5732echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5733   { (exit 1); exit 1; }; }
5734    fi
5735    rm -f confauto.out
5736
5737    # Check if the executable automake is picked up from the correct location
5738    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5739echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5740    automake_dir=`which automake | sed -e 's=/automake=='`
5741    automake_dir=`cd $automake_dir; pwd`
5742    if test x$AUTOTOOLS_DIR = x; then
5743      want_dir=$AUTOTOOLS_DFLT/bin
5744    else
5745      want_dir=$AUTOTOOLS_DIR/bin
5746    fi
5747    if test $automake_dir = `cd $want_dir; pwd`; then
5748      echo "$as_me:$LINENO: result: yes" >&5
5749echo "${ECHO_T}yes" >&6
5750    else
5751      rm -f confauto.out
5752      echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5755echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5756   { (exit 1); exit 1; }; }
5757    fi
5758
5759    # Check if this is the correct version of libtool (with escaped dots)
5760    if test x$AUTOTOOLS_DIR = x; then
5761      want_dir=$AUTOTOOLS_DFLT/share
5762    else
5763      want_dir=$AUTOTOOLS_DIR/share
5764    fi
5765    correct_version='1.5.22'
5766    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5767    if test -r $want_dir/libtool/ltmain.sh; then
5768  have_ltmain=yes
5769  :
5770else
5771  have_ltmain=no
5772  :
5773fi
5774
5775    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5776echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5777    if test $have_ltmain = yes; then
5778    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5779        echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6
5781      else
5782        echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5785echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5786   { (exit 1); exit 1; }; }
5787      fi
5788    else
5789      echo "$as_me:$LINENO: result: no" >&5
5790echo "${ECHO_T}no" >&6
5791      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5792echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5793   { (exit 1); exit 1; }; }
5794    fi
5795  fi
5796
5797  # Check if we can find the libtool file
5798  if test x$AUTOTOOLS_DIR = x; then
5799    want_dir=$AUTOTOOLS_DFLT/share
5800  else
5801    want_dir=$AUTOTOOLS_DIR/share
5802  fi
5803  if test -r $want_dir/aclocal/libtool.m4; then
5804  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5805  :
5806else
5807  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5808echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5809   { (exit 1); exit 1; }; }
5810  :
5811fi
5812
5813
5814  # Check if we have an Dependencies file
5815  if test -r $srcdir/Dependencies; then
5816    coin_have_externals=yes
5817  fi
5818  # Check if subversion is installed and understands https
5819  # Extract the first word of "svn", so it can be a program name with args.
5820set dummy svn; ac_word=$2
5821echo "$as_me:$LINENO: checking for $ac_word" >&5
5822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5823if test "${ac_cv_prog_have_svn+set}" = set; then
5824  echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826  if test -n "$have_svn"; then
5827  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834  for ac_exec_ext in '' $ac_executable_extensions; do
5835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5836    ac_cv_prog_have_svn="yes"
5837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841done
5842
5843  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5844fi
5845fi
5846have_svn=$ac_cv_prog_have_svn
5847if test -n "$have_svn"; then
5848  echo "$as_me:$LINENO: result: $have_svn" >&5
5849echo "${ECHO_T}$have_svn" >&6
5850else
5851  echo "$as_me:$LINENO: result: no" >&5
5852echo "${ECHO_T}no" >&6
5853fi
5854
5855  if test x$have_svn = xyes; then
5856    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5857echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5858if test "${ac_cv_svn_understands_https+set}" = set; then
5859  echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861  svn --version > confauto.out 2>&1
5862                    if $EGREP https confauto.out >/dev/null 2>&1; then
5863                      ac_cv_svn_understands_https=yes
5864                    else
5865                      ac_cv_svn_understands_https=no
5866                      have_svn=no
5867                      ac_cv_prog_have_svn=no
5868                    fi
5869                    rm -f confauto.out
5870fi
5871echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5872echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5873  fi
5874
5875  # Find the location of the BuildTools directory
5876  BUILDTOOLSDIR=
5877  if test -r $srcdir/BuildTools/coin.m4; then
5878    BUILDTOOLSDIR=$srcdir/BuildTools
5879  else
5880    if test -r $srcdir/../BuildTools/coin.m4; then
5881      BUILDTOOLSDIR=$srcdir/../BuildTools
5882    else
5883      if test -r $srcdir/../../BuildTools/coin.m4; then
5884        BUILDTOOLSDIR=$srcdir/../../BuildTools
5885      else
5886        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5887echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5888   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5889      fi
5890    fi
5891  fi
5892
5893
5894  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5895  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5896    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5897  fi
5898
5899  # The following variable is set to the name of the directory where
5900  # the autotool scripts are located
5901
5902  AUX_DIR=$ac_aux_dir
5903fi
5904
5905# helpful variable for the base directory of this package
5906abs_source_dir=`cd $srcdir; pwd`
5907
5908
5909# Stuff for example Makefiles
5910if test x$prefix = xNONE; then
5911  full_prefix=$ac_default_prefix
5912else
5913  full_prefix=$prefix
5914fi
5915full_prefix=`cd $full_prefix ; pwd`
5916
5917abs_lib_dir=$full_prefix/lib
5918
5919abs_include_dir=$full_prefix/include
5920
5921abs_bin_dir=$full_prefix/bin
5922
5923
5924
5925if test $coin_have_externals = yes && test x$have_svn = xyes; then
5926  HAVE_EXTERNALS_TRUE=
5927  HAVE_EXTERNALS_FALSE='#'
5928else
5929  HAVE_EXTERNALS_TRUE='#'
5930  HAVE_EXTERNALS_FALSE=
5931fi
5932
5933
5934# AC_MSG_NOTICE([End automake initialisation.])
5935
5936
5937
5938# Initialize automake
5939{
5940
5941
5942
5943# START
5944
5945coin_disable_shared=no
5946# Test if force_shared has been set
5947if test "x" = xforce_shared; then
5948  if test x$enable_shared = xno; then
5949    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5950echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5951   { (exit 1); exit 1; }; }
5952  fi
5953  enable_shared=yes;
5954else
5955  case $build in
5956    *-cygwin* | *-mingw*)
5957      coin_disable_shared=yes
5958      if test x"$enable_shared" = xyes; then
5959        case "$CC" in
5960          clang* )
5961            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5962echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5963            ;;
5964          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5965            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5966echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5967            ;;
5968          *gcc*)
5969            if test x"$enable_dependency_linking" = xyes; then
5970              coin_disable_shared=no
5971            else
5972              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5973echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5974            fi
5975            ;;
5976          *)
5977            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5978echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5979            ;;
5980        esac
5981      fi
5982    ;;
5983    *-aix*)
5984      coin_disable_shared=yes
5985      platform=AIX
5986      if test x"$enable_shared" = xyes; then
5987        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5988echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5989      fi
5990    ;;
5991  esac
5992fi
5993if test x"$coin_disable_shared" = xyes; then
5994  if test x"$enable_shared" = xyes; then
5995    :
5996  else
5997    # we don't disable shared, because it was not selected anyway
5998    coin_disable_shared=no
5999  fi
6000  enable_shared=no
6001fi
6002# By default, we only want the shared objects to be compiled
6003# Check whether --enable-static or --disable-static was given.
6004if test "${enable_static+set}" = set; then
6005  enableval="$enable_static"
6006  p=${PACKAGE-default}
6007    case $enableval in
6008    yes) enable_static=yes ;;
6009    no) enable_static=no ;;
6010    *)
6011     enable_static=no
6012      # Look at the argument we got.  We use all the common list separators.
6013      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6014      for pkg in $enableval; do
6015        IFS="$lt_save_ifs"
6016        if test "X$pkg" = "X$p"; then
6017          enable_static=yes
6018        fi
6019      done
6020      IFS="$lt_save_ifs"
6021      ;;
6022    esac
6023else
6024  enable_static=no
6025fi;
6026
6027
6028
6029
6030# Initialize automake
6031
6032
6033
6034# AC_MSG_NOTICE([Beginning automake initialisation.])
6035# Stuff for automake
6036# test to see if srcdir already configured
6037if test "`cd $srcdir && pwd`" != "`pwd`" &&
6038   test -f $srcdir/config.status; then
6039  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6040echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6041   { (exit 1); exit 1; }; }
6042fi
6043
6044# test whether we have cygpath
6045if test -z "$CYGPATH_W"; then
6046  if (cygpath --version) >/dev/null 2>/dev/null; then
6047    CYGPATH_W='cygpath -w'
6048  else
6049    CYGPATH_W=echo
6050  fi
6051fi
6052
6053
6054# Define the identity of the package.
6055 PACKAGE='thirdpartyfiltersqp'
6056 VERSION='1.3'
6057
6058
6059cat >>confdefs.h <<_ACEOF
6060#define PACKAGE "$PACKAGE"
6061_ACEOF
6062
6063
6064cat >>confdefs.h <<_ACEOF
6065#define VERSION "$VERSION"
6066_ACEOF
6067
6068# Some tools Automake needs.
6069
6070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6071
6072
6073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6074
6075
6076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6077
6078
6079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6080
6081
6082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6083
6084install_sh=${install_sh-"$am_aux_dir/install-sh"}
6085
6086# Installed binaries are usually stripped using `strip' when the user
6087# run `make install-strip'.  However `strip' might not be the right
6088# tool to use in cross-compilation environments, therefore Automake
6089# will honor the `STRIP' environment variable to overrule this program.
6090if test "$cross_compiling" != no; then
6091  if test -n "$ac_tool_prefix"; then
6092  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6093set dummy ${ac_tool_prefix}strip; ac_word=$2
6094echo "$as_me:$LINENO: checking for $ac_word" >&5
6095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6096if test "${ac_cv_prog_STRIP+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  if test -n "$STRIP"; then
6100  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  test -z "$as_dir" && as_dir=.
6107  for ac_exec_ext in '' $ac_executable_extensions; do
6108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111    break 2
6112  fi
6113done
6114done
6115
6116fi
6117fi
6118STRIP=$ac_cv_prog_STRIP
6119if test -n "$STRIP"; then
6120  echo "$as_me:$LINENO: result: $STRIP" >&5
6121echo "${ECHO_T}$STRIP" >&6
6122else
6123  echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6
6125fi
6126
6127fi
6128if test -z "$ac_cv_prog_STRIP"; then
6129  ac_ct_STRIP=$STRIP
6130  # Extract the first word of "strip", so it can be a program name with args.
6131set dummy strip; ac_word=$2
6132echo "$as_me:$LINENO: checking for $ac_word" >&5
6133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6134if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6135  echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137  if test -n "$ac_ct_STRIP"; then
6138  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145  for ac_exec_ext in '' $ac_executable_extensions; do
6146  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147    ac_cv_prog_ac_ct_STRIP="strip"
6148    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152done
6153
6154  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6155fi
6156fi
6157ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6158if test -n "$ac_ct_STRIP"; then
6159  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6160echo "${ECHO_T}$ac_ct_STRIP" >&6
6161else
6162  echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164fi
6165
6166  STRIP=$ac_ct_STRIP
6167else
6168  STRIP="$ac_cv_prog_STRIP"
6169fi
6170
6171fi
6172INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6173
6174# We need awk for the "check" target.  The system "awk" is bad on
6175# some platforms.
6176# Always define AMTAR for backward compatibility.
6177
6178AMTAR=${AMTAR-"${am_missing_run}tar"}
6179
6180am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6181
6182
6183
6184
6185depcc="$CC"   am_compiler_list=
6186
6187echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6188echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6189if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6193  # We make a subdir and do the tests there.  Otherwise we can end up
6194  # making bogus files that we don't know about and never remove.  For
6195  # instance it was reported that on HP-UX the gcc test will end up
6196  # making a dummy file named `D' -- because `-MD' means `put the output
6197  # in D'.
6198  mkdir conftest.dir
6199  # Copy depcomp to subdir because otherwise we won't find it if we're
6200  # using a relative directory.
6201  cp "$am_depcomp" conftest.dir
6202  cd conftest.dir
6203  # We will build objects and dependencies in a subdirectory because
6204  # it helps to detect inapplicable dependency modes.  For instance
6205  # both Tru64's cc and ICC support -MD to output dependencies as a
6206  # side effect of compilation, but ICC will put the dependencies in
6207  # the current directory while Tru64 will put them in the object
6208  # directory.
6209  mkdir sub
6210
6211  am_cv_CC_dependencies_compiler_type=none
6212  if test "$am_compiler_list" = ""; then
6213     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6214  fi
6215  for depmode in $am_compiler_list; do
6216    # Setup a source with many dependencies, because some compilers
6217    # like to wrap large dependency lists on column 80 (with \), and
6218    # we should not choose a depcomp mode which is confused by this.
6219    #
6220    # We need to recreate these files for each test, as the compiler may
6221    # overwrite some of them when testing with obscure command lines.
6222    # This happens at least with the AIX C compiler.
6223    : > sub/conftest.c
6224    for i in 1 2 3 4 5 6; do
6225      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6226      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6227      # Solaris 8's {/usr,}/bin/sh.
6228      touch sub/conftst$i.h
6229    done
6230    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6231
6232    case $depmode in
6233    nosideeffect)
6234      # after this tag, mechanisms are not by side-effect, so they'll
6235      # only be used when explicitly requested
6236      if test "x$enable_dependency_tracking" = xyes; then
6237        continue
6238      else
6239        break
6240      fi
6241      ;;
6242    none) break ;;
6243    esac
6244    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6245    # mode.  It turns out that the SunPro C++ compiler does not properly
6246    # handle `-M -o', and we need to detect this.
6247    if depmode=$depmode \
6248       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6249       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6250       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6251         >/dev/null 2>conftest.err &&
6252       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6253       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6254       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6255      # icc doesn't choke on unknown options, it will just issue warnings
6256      # or remarks (even with -Werror).  So we grep stderr for any message
6257      # that says an option was ignored or not supported.
6258      # When given -MP, icc 7.0 and 7.1 complain thusly:
6259      #   icc: Command line warning: ignoring option '-M'; no argument required
6260      # The diagnosis changed in icc 8.0:
6261      #   icc: Command line remark: option '-MP' not supported
6262      if (grep 'ignoring option' conftest.err ||
6263          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6264        am_cv_CC_dependencies_compiler_type=$depmode
6265        break
6266      fi
6267    fi
6268  done
6269
6270  cd ..
6271  rm -rf conftest.dir
6272else
6273  am_cv_CC_dependencies_compiler_type=none
6274fi
6275
6276fi
6277echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6278echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6279CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6280
6281
6282
6283if
6284  test "x$enable_dependency_tracking" != xno \
6285  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6286  am__fastdepCC_TRUE=
6287  am__fastdepCC_FALSE='#'
6288else
6289  am__fastdepCC_TRUE='#'
6290  am__fastdepCC_FALSE=
6291fi
6292
6293
6294
6295echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6296echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6297    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6298if test "${enable_maintainer_mode+set}" = set; then
6299  enableval="$enable_maintainer_mode"
6300  USE_MAINTAINER_MODE=$enableval
6301else
6302  USE_MAINTAINER_MODE=no
6303fi;
6304  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6305echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6306
6307
6308if test $USE_MAINTAINER_MODE = yes; then
6309  MAINTAINER_MODE_TRUE=
6310  MAINTAINER_MODE_FALSE='#'
6311else
6312  MAINTAINER_MODE_TRUE='#'
6313  MAINTAINER_MODE_FALSE=
6314fi
6315
6316  MAINT=$MAINTAINER_MODE_TRUE
6317
6318
6319
6320coin_have_externals=no
6321if test "$enable_maintainer_mode" = yes; then
6322
6323  # If maintainer mode is chosen, we make sure that the correct versions
6324  # of the tools are used, and that we know where libtool.m4 is (to
6325  # recreate acinclude.m4)
6326
6327
6328  LIBTOOLM4=
6329  # Normally, $HOME
6330  AUTOTOOLS_DFLT=$HOME
6331
6332  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6333echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6334if test "${ac_cv_use_correct_autotools+set}" = set; then
6335  echo $ECHO_N "(cached) $ECHO_C" >&6
6336else
6337  ac_cv_use_correct_autotools=check
6338fi
6339echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6340echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6341
6342  if test $ac_cv_use_correct_autotools = check; then
6343    ac_cv_use_correct_autotools=yes
6344    # Check if we have autoconf
6345    # Extract the first word of "autoconf", so it can be a program name with args.
6346set dummy autoconf; ac_word=$2
6347echo "$as_me:$LINENO: checking for $ac_word" >&5
6348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6349if test "${ac_cv_prog_have_autoconf+set}" = set; then
6350  echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352  if test -n "$have_autoconf"; then
6353  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358  IFS=$as_save_IFS
6359  test -z "$as_dir" && as_dir=.
6360  for ac_exec_ext in '' $ac_executable_extensions; do
6361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362    ac_cv_prog_have_autoconf="yes"
6363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364    break 2
6365  fi
6366done
6367done
6368
6369  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6370fi
6371fi
6372have_autoconf=$ac_cv_prog_have_autoconf
6373if test -n "$have_autoconf"; then
6374  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6375echo "${ECHO_T}$have_autoconf" >&6
6376else
6377  echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379fi
6380
6381    if test $have_autoconf = no; then
6382      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6383echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6384   { (exit 1); exit 1; }; }
6385    fi
6386
6387    # Check whether autoconf is the correct version
6388    correct_version='2.59'
6389    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6390    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6391echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6392    autoconf --version > confauto.out 2>&1
6393    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6394      echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
6396    else
6397      rm -f confauto.out
6398      echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6
6400      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6401echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6402   { (exit 1); exit 1; }; }
6403    fi
6404    rm -f confauto.out
6405
6406    # Check if the executable autoconf is picked up from the correct location
6407    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6408echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6409    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6410    autoconf_dir=`cd $autoconf_dir; pwd`
6411    if test x$AUTOTOOLS_DIR = x; then
6412      want_dir=$AUTOTOOLS_DFLT/bin
6413    else
6414      want_dir=$AUTOTOOLS_DIR/bin
6415    fi
6416    if test $autoconf_dir = `cd $want_dir; pwd`; then
6417      echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419    else
6420      rm -f confauto.out
6421      echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6424echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6425   { (exit 1); exit 1; }; }
6426    fi
6427
6428    # Check if we have automake
6429    # Extract the first word of "automake", so it can be a program name with args.
6430set dummy automake; ac_word=$2
6431echo "$as_me:$LINENO: checking for $ac_word" >&5
6432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6433if test "${ac_cv_prog_have_automake+set}" = set; then
6434  echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436  if test -n "$have_automake"; then
6437  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6438else
6439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442  IFS=$as_save_IFS
6443  test -z "$as_dir" && as_dir=.
6444  for ac_exec_ext in '' $ac_executable_extensions; do
6445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446    ac_cv_prog_have_automake="yes"
6447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448    break 2
6449  fi
6450done
6451done
6452
6453  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6454fi
6455fi
6456have_automake=$ac_cv_prog_have_automake
6457if test -n "$have_automake"; then
6458  echo "$as_me:$LINENO: result: $have_automake" >&5
6459echo "${ECHO_T}$have_automake" >&6
6460else
6461  echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463fi
6464
6465    if test $have_automake = no; then
6466      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6467echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6468   { (exit 1); exit 1; }; }
6469    fi
6470
6471    # Check whether automake is the correct version
6472    correct_version='1.9.6'
6473    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6474    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6475echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6476    automake --version > confauto.out 2>&1
6477    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6478      echo "$as_me:$LINENO: result: yes" >&5
6479echo "${ECHO_T}yes" >&6
6480    else
6481      rm -f confauto.out
6482      echo "$as_me:$LINENO: result: no" >&5
6483echo "${ECHO_T}no" >&6
6484      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6485echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6486   { (exit 1); exit 1; }; }
6487    fi
6488    rm -f confauto.out
6489
6490    # Check if the executable automake is picked up from the correct location
6491    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6492echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6493    automake_dir=`which automake | sed -e 's=/automake=='`
6494    automake_dir=`cd $automake_dir; pwd`
6495    if test x$AUTOTOOLS_DIR = x; then
6496      want_dir=$AUTOTOOLS_DFLT/bin
6497    else
6498      want_dir=$AUTOTOOLS_DIR/bin
6499    fi
6500    if test $automake_dir = `cd $want_dir; pwd`; then
6501      echo "$as_me:$LINENO: result: yes" >&5
6502echo "${ECHO_T}yes" >&6
6503    else
6504      rm -f confauto.out
6505      echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6508echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6509   { (exit 1); exit 1; }; }
6510    fi
6511
6512    # Check if this is the correct version of libtool (with escaped dots)
6513    if test x$AUTOTOOLS_DIR = x; then
6514      want_dir=$AUTOTOOLS_DFLT/share
6515    else
6516      want_dir=$AUTOTOOLS_DIR/share
6517    fi
6518    correct_version='1.5.22'
6519    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6520    if test -r $want_dir/libtool/ltmain.sh; then
6521  have_ltmain=yes
6522  :
6523else
6524  have_ltmain=no
6525  :
6526fi
6527
6528    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6529echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6530    if test $have_ltmain = yes; then
6531    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6532        echo "$as_me:$LINENO: result: yes" >&5
6533echo "${ECHO_T}yes" >&6
6534      else
6535        echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6
6537        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6538echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6539   { (exit 1); exit 1; }; }
6540      fi
6541    else
6542      echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
6544      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6545echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6546   { (exit 1); exit 1; }; }
6547    fi
6548  fi
6549
6550  # Check if we can find the libtool file
6551  if test x$AUTOTOOLS_DIR = x; then
6552    want_dir=$AUTOTOOLS_DFLT/share
6553  else
6554    want_dir=$AUTOTOOLS_DIR/share
6555  fi
6556  if test -r $want_dir/aclocal/libtool.m4; then
6557  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6558  :
6559else
6560  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6561echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6562   { (exit 1); exit 1; }; }
6563  :
6564fi
6565
6566
6567  # Check if we have an Dependencies file
6568  if test -r $srcdir/Dependencies; then
6569    coin_have_externals=yes
6570  fi
6571  # Check if subversion is installed and understands https
6572  # Extract the first word of "svn", so it can be a program name with args.
6573set dummy svn; ac_word=$2
6574echo "$as_me:$LINENO: checking for $ac_word" >&5
6575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6576if test "${ac_cv_prog_have_svn+set}" = set; then
6577  echo $ECHO_N "(cached) $ECHO_C" >&6
6578else
6579  if test -n "$have_svn"; then
6580  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585  IFS=$as_save_IFS
6586  test -z "$as_dir" && as_dir=.
6587  for ac_exec_ext in '' $ac_executable_extensions; do
6588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589    ac_cv_prog_have_svn="yes"
6590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591    break 2
6592  fi
6593done
6594done
6595
6596  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6597fi
6598fi
6599have_svn=$ac_cv_prog_have_svn
6600if test -n "$have_svn"; then
6601  echo "$as_me:$LINENO: result: $have_svn" >&5
6602echo "${ECHO_T}$have_svn" >&6
6603else
6604  echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6
6606fi
6607
6608  if test x$have_svn = xyes; then
6609    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6610echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6611if test "${ac_cv_svn_understands_https+set}" = set; then
6612  echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614  svn --version > confauto.out 2>&1
6615                    if $EGREP https confauto.out >/dev/null 2>&1; then
6616                      ac_cv_svn_understands_https=yes
6617                    else
6618                      ac_cv_svn_understands_https=no
6619                      have_svn=no
6620                      ac_cv_prog_have_svn=no
6621                    fi
6622                    rm -f confauto.out
6623fi
6624echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6625echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6626  fi
6627
6628  # Find the location of the BuildTools directory
6629  BUILDTOOLSDIR=
6630  if test -r $srcdir/BuildTools/coin.m4; then
6631    BUILDTOOLSDIR=$srcdir/BuildTools
6632  else
6633    if test -r $srcdir/../BuildTools/coin.m4; then
6634      BUILDTOOLSDIR=$srcdir/../BuildTools
6635    else
6636      if test -r $srcdir/../../BuildTools/coin.m4; then
6637        BUILDTOOLSDIR=$srcdir/../../BuildTools
6638      else
6639        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6640echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6641   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6642      fi
6643    fi
6644  fi
6645
6646
6647  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6648  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6649    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6650  fi
6651
6652  # The following variable is set to the name of the directory where
6653  # the autotool scripts are located
6654
6655  AUX_DIR=$ac_aux_dir
6656fi
6657
6658# helpful variable for the base directory of this package
6659abs_source_dir=`cd $srcdir; pwd`
6660
6661
6662# Stuff for example Makefiles
6663if test x$prefix = xNONE; then
6664  full_prefix=$ac_default_prefix
6665else
6666  full_prefix=$prefix
6667fi
6668full_prefix=`cd $full_prefix ; pwd`
6669
6670abs_lib_dir=$full_prefix/lib
6671
6672abs_include_dir=$full_prefix/include
6673
6674abs_bin_dir=$full_prefix/bin
6675
6676
6677
6678if test $coin_have_externals = yes && test x$have_svn = xyes; then
6679  HAVE_EXTERNALS_TRUE=
6680  HAVE_EXTERNALS_FALSE='#'
6681else
6682  HAVE_EXTERNALS_TRUE='#'
6683  HAVE_EXTERNALS_FALSE=
6684fi
6685
6686
6687# AC_MSG_NOTICE([End automake initialisation.])
6688
6689
6690
6691LIBTOOL=
6692if test -f ../libtool; then
6693  coin_config_dir=..
6694  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6695fi
6696if test "x$LIBTOOL" = x; then
6697  if test -f ../../libtool; then
6698    coin_config_dir=../..
6699    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6700  fi
6701fi
6702
6703if test "x$LIBTOOL" = x; then
6704# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6705  # Stuff for libtool
6706  # Check whether --enable-shared or --disable-shared was given.
6707if test "${enable_shared+set}" = set; then
6708  enableval="$enable_shared"
6709  p=${PACKAGE-default}
6710    case $enableval in
6711    yes) enable_shared=yes ;;
6712    no) enable_shared=no ;;
6713    *)
6714      enable_shared=no
6715      # Look at the argument we got.  We use all the common list separators.
6716      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6717      for pkg in $enableval; do
6718        IFS="$lt_save_ifs"
6719        if test "X$pkg" = "X$p"; then
6720          enable_shared=yes
6721        fi
6722      done
6723      IFS="$lt_save_ifs"
6724      ;;
6725    esac
6726else
6727  enable_shared=yes
6728fi;
6729
6730# Check whether --enable-fast-install or --disable-fast-install was given.
6731if test "${enable_fast_install+set}" = set; then
6732  enableval="$enable_fast_install"
6733  p=${PACKAGE-default}
6734    case $enableval in
6735    yes) enable_fast_install=yes ;;
6736    no) enable_fast_install=no ;;
6737    *)
6738      enable_fast_install=no
6739      # Look at the argument we got.  We use all the common list separators.
6740      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6741      for pkg in $enableval; do
6742        IFS="$lt_save_ifs"
6743        if test "X$pkg" = "X$p"; then
6744          enable_fast_install=yes
6745        fi
6746      done
6747      IFS="$lt_save_ifs"
6748      ;;
6749    esac
6750else
6751  enable_fast_install=yes
6752fi;
6753
6754echo "$as_me:$LINENO: checking host system type" >&5
6755echo $ECHO_N "checking host system type... $ECHO_C" >&6
6756if test "${ac_cv_host+set}" = set; then
6757  echo $ECHO_N "(cached) $ECHO_C" >&6
6758else
6759  ac_cv_host_alias=$host_alias
6760test -z "$ac_cv_host_alias" &&
6761  ac_cv_host_alias=$ac_cv_build_alias
6762ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6763  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6764echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6765   { (exit 1); exit 1; }; }
6766
6767fi
6768echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6769echo "${ECHO_T}$ac_cv_host" >&6
6770host=$ac_cv_host
6771host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6772host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6773host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6774
6775
6776echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6777echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6778if test "${lt_cv_path_SED+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  # Loop through the user's path and test for sed and gsed.
6782# Then use that list of sed's as ones to test for truncation.
6783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784for as_dir in $PATH
6785do
6786  IFS=$as_save_IFS
6787  test -z "$as_dir" && as_dir=.
6788  for lt_ac_prog in sed gsed; do
6789    for ac_exec_ext in '' $ac_executable_extensions; do
6790      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6791        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6792      fi
6793    done
6794  done
6795done
6796lt_ac_max=0
6797lt_ac_count=0
6798# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6799# along with /bin/sed that truncates output.
6800for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6801  test ! -f $lt_ac_sed && continue
6802  cat /dev/null > conftest.in
6803  lt_ac_count=0
6804  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6805  # Check for GNU sed and select it if it is found.
6806  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6807    lt_cv_path_SED=$lt_ac_sed
6808    break
6809  fi
6810  while true; do
6811    cat conftest.in conftest.in >conftest.tmp
6812    mv conftest.tmp conftest.in
6813    cp conftest.in conftest.nl
6814    echo >>conftest.nl
6815    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6816    cmp -s conftest.out conftest.nl || break
6817    # 10000 chars as input seems more than enough
6818    test $lt_ac_count -gt 10 && break
6819    lt_ac_count=`expr $lt_ac_count + 1`
6820    if test $lt_ac_count -gt $lt_ac_max; then
6821      lt_ac_max=$lt_ac_count
6822      lt_cv_path_SED=$lt_ac_sed
6823    fi
6824  done
6825done
6826
6827fi
6828
6829SED=$lt_cv_path_SED
6830echo "$as_me:$LINENO: result: $SED" >&5
6831echo "${ECHO_T}$SED" >&6
6832
6833
6834# Check whether --with-gnu-ld or --without-gnu-ld was given.
6835if test "${with_gnu_ld+set}" = set; then
6836  withval="$with_gnu_ld"
6837  test "$withval" = no || with_gnu_ld=yes
6838else
6839  with_gnu_ld=no
6840fi;
6841ac_prog=ld
6842if test "$GCC" = yes; then
6843  # Check if gcc -print-prog-name=ld gives a path.
6844  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6845echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6846  case $host in
6847  *-*-mingw*)
6848    # gcc leaves a trailing carriage return which upsets mingw
6849    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6850  *)
6851    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6852  esac
6853  case $ac_prog in
6854    # Accept absolute paths.
6855    [\\/]* | ?:[\\/]*)
6856      re_direlt='/[^/][^/]*/\.\./'
6857      # Canonicalize the pathname of ld
6858      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6859      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6860        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6861      done
6862      test -z "$LD" && LD="$ac_prog"
6863      ;;
6864  "")
6865    # If it fails, then pretend we aren't using GCC.
6866    ac_prog=ld
6867    ;;
6868  *)
6869    # If it is relative, then search for the first ld in PATH.
6870    with_gnu_ld=unknown
6871    ;;
6872  esac
6873elif test "$with_gnu_ld" = yes; then
6874  echo "$as_me:$LINENO: checking for GNU ld" >&5
6875echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6876else
6877  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6878echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6879fi
6880if test "${lt_cv_path_LD+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883  if test -z "$LD"; then
6884  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6885  for ac_dir in $PATH; do
6886    IFS="$lt_save_ifs"
6887    test -z "$ac_dir" && ac_dir=.
6888    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6889      lt_cv_path_LD="$ac_dir/$ac_prog"
6890      # Check to see if the program is GNU ld.  I'd rather use --version,
6891      # but apparently some variants of GNU ld only accept -v.
6892      # Break only if it was the GNU/non-GNU ld that we prefer.
6893      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6894      *GNU* | *'with BFD'*)
6895        test "$with_gnu_ld" != no && break
6896        ;;
6897      *)
6898        test "$with_gnu_ld" != yes && break
6899        ;;
6900      esac
6901    fi
6902  done
6903  IFS="$lt_save_ifs"
6904else
6905  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6906fi
6907fi
6908
6909LD="$lt_cv_path_LD"
6910if test -n "$LD"; then
6911  echo "$as_me:$LINENO: result: $LD" >&5
6912echo "${ECHO_T}$LD" >&6
6913else
6914  echo "$as_me:$LINENO: result: no" >&5
6915echo "${ECHO_T}no" >&6
6916fi
6917test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6918echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6919   { (exit 1); exit 1; }; }
6920echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6921echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6922if test "${lt_cv_prog_gnu_ld+set}" = set; then
6923  echo $ECHO_N "(cached) $ECHO_C" >&6
6924else
6925  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6926case `$LD -v 2>&1 </dev/null` in
6927*GNU* | *'with BFD'*)
6928  lt_cv_prog_gnu_ld=yes
6929  ;;
6930*)
6931  lt_cv_prog_gnu_ld=no
6932  ;;
6933esac
6934fi
6935echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6936echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6937with_gnu_ld=$lt_cv_prog_gnu_ld
6938
6939
6940echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6941echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6942if test "${lt_cv_ld_reload_flag+set}" = set; then
6943  echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945  lt_cv_ld_reload_flag='-r'
6946fi
6947echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6948echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6949reload_flag=$lt_cv_ld_reload_flag
6950case $reload_flag in
6951"" | " "*) ;;
6952*) reload_flag=" $reload_flag" ;;
6953esac
6954reload_cmds='$LD$reload_flag -o $output$reload_objs'
6955case $host_os in
6956  darwin*)
6957    if test "$GCC" = yes; then
6958      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6959    else
6960      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6961    fi
6962    ;;
6963esac
6964
6965echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6966echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6967if test "${lt_cv_path_NM+set}" = set; then
6968  echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970  if test -n "$NM"; then
6971  # Let the user override the test.
6972  lt_cv_path_NM="$NM"
6973else
6974  lt_nm_to_check="${ac_tool_prefix}nm"
6975  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6976    lt_nm_to_check="$lt_nm_to_check nm"
6977  fi
6978  for lt_tmp_nm in $lt_nm_to_check; do
6979    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6980    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6981      IFS="$lt_save_ifs"
6982      test -z "$ac_dir" && ac_dir=.
6983      tmp_nm="$ac_dir/$lt_tmp_nm"
6984      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6985        # Check to see if the nm accepts a BSD-compat flag.
6986        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6987        #   nm: unknown option "B" ignored
6988        # Tru64's nm complains that /dev/null is an invalid object file
6989        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6990        */dev/null* | *'Invalid file or object type'*)
6991          lt_cv_path_NM="$tmp_nm -B"
6992          break
6993          ;;
6994        *)
6995          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6996          */dev/null*)
6997            lt_cv_path_NM="$tmp_nm -p"
6998            break
6999            ;;
7000          *)
7001            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7002            continue # so that we can try to find one that supports BSD flags
7003            ;;
7004          esac
7005          ;;
7006        esac
7007      fi
7008    done
7009    IFS="$lt_save_ifs"
7010  done
7011  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7012fi
7013fi
7014echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7015echo "${ECHO_T}$lt_cv_path_NM" >&6
7016NM="$lt_cv_path_NM"
7017
7018echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7019echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7020if test "${lt_cv_deplibs_check_method+set}" = set; then
7021  echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023  lt_cv_file_magic_cmd='$MAGIC_CMD'
7024lt_cv_file_magic_test_file=
7025lt_cv_deplibs_check_method='unknown'
7026# Need to set the preceding variable on all platforms that support
7027# interlibrary dependencies.
7028# 'none' -- dependencies not supported.
7029# `unknown' -- same as none, but documents that we really don't know.
7030# 'pass_all' -- all dependencies passed with no checks.
7031# 'test_compile' -- check by making test program.
7032# 'file_magic [[regex]]' -- check by looking for files in library path
7033# which responds to the $file_magic_cmd with a given extended regex.
7034# If you have `file' or equivalent on your system and you're not sure
7035# whether `pass_all' will *always* work, you probably want this one.
7036
7037case $host_os in
7038aix4* | aix5*)
7039  lt_cv_deplibs_check_method=pass_all
7040  ;;
7041
7042beos*)
7043  lt_cv_deplibs_check_method=pass_all
7044  ;;
7045
7046bsdi[45]*)
7047  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7048  lt_cv_file_magic_cmd='/usr/bin/file -L'
7049  lt_cv_file_magic_test_file=/shlib/libc.so
7050  ;;
7051
7052cygwin*)
7053  # func_win32_libid is a shell function defined in ltmain.sh
7054  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7055  lt_cv_file_magic_cmd='func_win32_libid'
7056  ;;
7057
7058mingw* | pw32*)
7059  # Base MSYS/MinGW do not provide the 'file' command needed by
7060  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7061  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7062  lt_cv_file_magic_cmd='$OBJDUMP -f'
7063  ;;
7064
7065darwin* | rhapsody*)
7066  lt_cv_deplibs_check_method=pass_all
7067  ;;
7068
7069freebsd* | kfreebsd*-gnu | dragonfly*)
7070  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7071    case $host_cpu in
7072    i*86 )
7073      # Not sure whether the presence of OpenBSD here was a mistake.
7074      # Let's accept both of them until this is cleared up.
7075      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7076      lt_cv_file_magic_cmd=/usr/bin/file
7077      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7078      ;;
7079    esac
7080  else
7081    lt_cv_deplibs_check_method=pass_all
7082  fi
7083  ;;
7084
7085gnu*)
7086  lt_cv_deplibs_check_method=pass_all
7087  ;;
7088
7089hpux10.20* | hpux11*)
7090  lt_cv_file_magic_cmd=/usr/bin/file
7091  case $host_cpu in
7092  ia64*)
7093    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7094    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7095    ;;
7096  hppa*64*)
7097    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]'
7098    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7099    ;;
7100  *)
7101    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7102    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7103    ;;
7104  esac
7105  ;;
7106
7107interix3*)
7108  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7109  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7110  ;;
7111
7112irix5* | irix6* | nonstopux*)
7113  case $LD in
7114  *-32|*"-32 ") libmagic=32-bit;;
7115  *-n32|*"-n32 ") libmagic=N32;;
7116  *-64|*"-64 ") libmagic=64-bit;;
7117  *) libmagic=never-match;;
7118  esac
7119  lt_cv_deplibs_check_method=pass_all
7120  ;;
7121
7122# This must be Linux ELF.
7123linux*)
7124  lt_cv_deplibs_check_method=pass_all
7125  ;;
7126
7127netbsd*)
7128  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7129    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7130  else
7131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7132  fi
7133  ;;
7134
7135newos6*)
7136  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7137  lt_cv_file_magic_cmd=/usr/bin/file
7138  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7139  ;;
7140
7141nto-qnx*)
7142  lt_cv_deplibs_check_method=unknown
7143  ;;
7144
7145openbsd*)
7146  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7147    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7148  else
7149    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7150  fi
7151  ;;
7152
7153osf3* | osf4* | osf5*)
7154  lt_cv_deplibs_check_method=pass_all
7155  ;;
7156
7157solaris*)
7158  lt_cv_deplibs_check_method=pass_all
7159  ;;
7160
7161sysv4 | sysv4.3*)
7162  case $host_vendor in
7163  motorola)
7164    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]'
7165    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7166    ;;
7167  ncr)
7168    lt_cv_deplibs_check_method=pass_all
7169    ;;
7170  sequent)
7171    lt_cv_file_magic_cmd='/bin/file'
7172    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7173    ;;
7174  sni)
7175    lt_cv_file_magic_cmd='/bin/file'
7176    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7177    lt_cv_file_magic_test_file=/lib/libc.so
7178    ;;
7179  siemens)
7180    lt_cv_deplibs_check_method=pass_all
7181    ;;
7182  pc)
7183    lt_cv_deplibs_check_method=pass_all
7184    ;;
7185  esac
7186  ;;
7187
7188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7189  lt_cv_deplibs_check_method=pass_all
7190  ;;
7191esac
7192
7193fi
7194echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7195echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7196file_magic_cmd=$lt_cv_file_magic_cmd
7197deplibs_check_method=$lt_cv_deplibs_check_method
7198test -z "$deplibs_check_method" && deplibs_check_method=unknown
7199
7200
7201
7202
7203# If no C compiler was specified, use CC.
7204LTCC=${LTCC-"$CC"}
7205
7206# If no C compiler flags were specified, use CFLAGS.
7207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7208
7209# Allow CC to be a program name with arguments.
7210compiler=$CC
7211
7212# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7213if test "${enable_libtool_lock+set}" = set; then
7214  enableval="$enable_libtool_lock"
7215
7216fi;
7217test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7218
7219# Some flags need to be propagated to the compiler or linker for good
7220# libtool support.
7221case $host in
7222ia64-*-hpux*)
7223  # Find out which ABI we are using.
7224  echo 'int i;' > conftest.$ac_ext
7225  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7226  (eval $ac_compile) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; then
7230    case `/usr/bin/file conftest.$ac_objext` in
7231    *ELF-32*)
7232      HPUX_IA64_MODE="32"
7233      ;;
7234    *ELF-64*)
7235      HPUX_IA64_MODE="64"
7236      ;;
7237    esac
7238  fi
7239  rm -rf conftest*
7240  ;;
7241*-*-irix6*)
7242  # Find out which ABI we are using.
7243  echo '#line 7243 "configure"' > conftest.$ac_ext
7244  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7245  (eval $ac_compile) 2>&5
7246  ac_status=$?
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); }; then
7249   if test "$lt_cv_prog_gnu_ld" = yes; then
7250    case `/usr/bin/file conftest.$ac_objext` in
7251    *32-bit*)
7252      LD="${LD-ld} -melf32bsmip"
7253      ;;
7254    *N32*)
7255      LD="${LD-ld} -melf32bmipn32"
7256      ;;
7257    *64-bit*)
7258      LD="${LD-ld} -melf64bmip"
7259      ;;
7260    esac
7261   else
7262    case `/usr/bin/file conftest.$ac_objext` in
7263    *32-bit*)
7264      LD="${LD-ld} -32"
7265      ;;
7266    *N32*)
7267      LD="${LD-ld} -n32"
7268      ;;
7269    *64-bit*)
7270      LD="${LD-ld} -64"
7271      ;;
7272    esac
7273   fi
7274  fi
7275  rm -rf conftest*
7276  ;;
7277
7278x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7279  # Find out which ABI we are using.
7280  echo 'int i;' > conftest.$ac_ext
7281  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282  (eval $ac_compile) 2>&5
7283  ac_status=$?
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); }; then
7286    case `/usr/bin/file conftest.o` in
7287    *32-bit*)
7288      case $host in
7289        x86_64-*linux*)
7290          LD="${LD-ld} -m elf_i386"
7291          ;;
7292        ppc64-*linux*|powerpc64-*linux*)
7293          LD="${LD-ld} -m elf32ppclinux"
7294          ;;
7295        s390x-*linux*)
7296          LD="${LD-ld} -m elf_s390"
7297          ;;
7298        sparc64-*linux*)
7299          LD="${LD-ld} -m elf32_sparc"
7300          ;;
7301      esac
7302      ;;
7303    *64-bit*)
7304      case $host in
7305        x86_64-*linux*)
7306          LD="${LD-ld} -m elf_x86_64"
7307          ;;
7308        ppc*-*linux*|powerpc*-*linux*)
7309          LD="${LD-ld} -m elf64ppc"
7310          ;;
7311        s390*-*linux*)
7312          LD="${LD-ld} -m elf64_s390"
7313          ;;
7314        sparc*-*linux*)
7315          LD="${LD-ld} -m elf64_sparc"
7316          ;;
7317      esac
7318      ;;
7319    esac
7320  fi
7321  rm -rf conftest*
7322  ;;
7323
7324*-*-sco3.2v5*)
7325  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7326  SAVE_CFLAGS="$CFLAGS"
7327  CFLAGS="$CFLAGS -belf"
7328  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7329echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7330if test "${lt_cv_cc_needs_belf+set}" = set; then
7331  echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333  ac_ext=c
7334ac_cpp='$CPP $CPPFLAGS'
7335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7337ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338
7339     cat >conftest.$ac_ext <<_ACEOF
7340/* confdefs.h.  */
7341_ACEOF
7342cat confdefs.h >>conftest.$ac_ext
7343cat >>conftest.$ac_ext <<_ACEOF
7344/* end confdefs.h.  */
7345
7346#ifdef F77_DUMMY_MAIN
7347
7348#  ifdef __cplusplus
7349     extern "C"
7350#  endif
7351   int F77_DUMMY_MAIN() { return 1; }
7352
7353#endif
7354int
7355main ()
7356{
7357
7358  ;
7359  return 0;
7360}
7361_ACEOF
7362rm -f conftest.$ac_objext conftest$ac_exeext
7363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7364  (eval $ac_link) 2>conftest.er1
7365  ac_status=$?
7366  grep -v '^ *+' conftest.er1 >conftest.err
7367  rm -f conftest.er1
7368  cat conftest.err >&5
7369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370  (exit $ac_status); } &&
7371         { ac_try='test -z "$ac_c_werror_flag"
7372                         || test ! -s conftest.err'
7373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374  (eval $ac_try) 2>&5
7375  ac_status=$?
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); }; } &&
7378         { ac_try='test -s conftest$ac_exeext'
7379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380  (eval $ac_try) 2>&5
7381  ac_status=$?
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); }; }; then
7384  lt_cv_cc_needs_belf=yes
7385else
7386  echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389lt_cv_cc_needs_belf=no
7390fi
7391rm -f conftest.err conftest.$ac_objext \
7392      conftest$ac_exeext conftest.$ac_ext
7393     ac_ext=c
7394ac_cpp='$CPP $CPPFLAGS'
7395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398
7399fi
7400echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7401echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7402  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7403    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7404    CFLAGS="$SAVE_CFLAGS"
7405  fi
7406  ;;
7407sparc*-*solaris*)
7408  # Find out which ABI we are using.
7409  echo 'int i;' > conftest.$ac_ext
7410  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411  (eval $ac_compile) 2>&5
7412  ac_status=$?
7413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414  (exit $ac_status); }; then
7415    case `/usr/bin/file conftest.o` in
7416    *64-bit*)
7417      case $lt_cv_prog_gnu_ld in
7418      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7419      *)    LD="${LD-ld} -64" ;;
7420      esac
7421      ;;
7422    esac
7423  fi
7424  rm -rf conftest*
7425  ;;
7426
7427
7428esac
7429
7430need_locks="$enable_libtool_lock"
7431
7432
7433ac_ext=c
7434ac_cpp='$CPP $CPPFLAGS'
7435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7439echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7440# On Suns, sometimes $CPP names a directory.
7441if test -n "$CPP" && test -d "$CPP"; then
7442  CPP=
7443fi
7444if test -z "$CPP"; then
7445  if test "${ac_cv_prog_CPP+set}" = set; then
7446  echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448      # Double quotes because CPP needs to be expanded
7449    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7450    do
7451      ac_preproc_ok=false
7452for ac_c_preproc_warn_flag in '' yes
7453do
7454  # Use a header file that comes with gcc, so configuring glibc
7455  # with a fresh cross-compiler works.
7456  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7457  # <limits.h> exists even on freestanding compilers.
7458  # On the NeXT, cc -E runs the code through the compiler's parser,
7459  # not just through cpp. "Syntax error" is here to catch this case.
7460  cat >conftest.$ac_ext <<_ACEOF
7461/* confdefs.h.  */
7462_ACEOF
7463cat confdefs.h >>conftest.$ac_ext
7464cat >>conftest.$ac_ext <<_ACEOF
7465/* end confdefs.h.  */
7466#ifdef __STDC__
7467# include <limits.h>
7468#else
7469# include <assert.h>
7470#endif
7471                     Syntax error
7472_ACEOF
7473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7474  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7475  ac_status=$?
7476  grep -v '^ *+' conftest.er1 >conftest.err
7477  rm -f conftest.er1
7478  cat conftest.err >&5
7479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480  (exit $ac_status); } >/dev/null; then
7481  if test -s conftest.err; then
7482    ac_cpp_err=$ac_c_preproc_warn_flag
7483    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7484  else
7485    ac_cpp_err=
7486  fi
7487else
7488  ac_cpp_err=yes
7489fi
7490if test -z "$ac_cpp_err"; then
7491  :
7492else
7493  echo "$as_me: failed program was:" >&5
7494sed 's/^/| /' conftest.$ac_ext >&5
7495
7496  # Broken: fails on valid input.
7497continue
7498fi
7499rm -f conftest.err conftest.$ac_ext
7500
7501  # OK, works on sane cases.  Now check whether non-existent headers
7502  # can be detected and how.
7503  cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h.  */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h.  */
7509#include <ac_nonexistent.h>
7510_ACEOF
7511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7512  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7513  ac_status=$?
7514  grep -v '^ *+' conftest.er1 >conftest.err
7515  rm -f conftest.er1
7516  cat conftest.err >&5
7517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518  (exit $ac_status); } >/dev/null; then
7519  if test -s conftest.err; then
7520    ac_cpp_err=$ac_c_preproc_warn_flag
7521    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7522  else
7523    ac_cpp_err=
7524  fi
7525else
7526  ac_cpp_err=yes
7527fi
7528if test -z "$ac_cpp_err"; then
7529  # Broken: success on invalid input.
7530continue
7531else
7532  echo "$as_me: failed program was:" >&5
7533sed 's/^/| /' conftest.$ac_ext >&5
7534
7535  # Passes both tests.
7536ac_preproc_ok=:
7537break
7538fi
7539rm -f conftest.err conftest.$ac_ext
7540
7541done
7542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7543rm -f conftest.err conftest.$ac_ext
7544if $ac_preproc_ok; then
7545  break
7546fi
7547
7548    done
7549    ac_cv_prog_CPP=$CPP
7550
7551fi
7552  CPP=$ac_cv_prog_CPP
7553else
7554  ac_cv_prog_CPP=$CPP
7555fi
7556echo "$as_me:$LINENO: result: $CPP" >&5
7557echo "${ECHO_T}$CPP" >&6
7558ac_preproc_ok=false
7559for ac_c_preproc_warn_flag in '' yes
7560do
7561  # Use a header file that comes with gcc, so configuring glibc
7562  # with a fresh cross-compiler works.
7563  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7564  # <limits.h> exists even on freestanding compilers.
7565  # On the NeXT, cc -E runs the code through the compiler's parser,
7566  # not just through cpp. "Syntax error" is here to catch this case.
7567  cat >conftest.$ac_ext <<_ACEOF
7568/* confdefs.h.  */
7569_ACEOF
7570cat confdefs.h >>conftest.$ac_ext
7571cat >>conftest.$ac_ext <<_ACEOF
7572/* end confdefs.h.  */
7573#ifdef __STDC__
7574# include <limits.h>
7575#else
7576# include <assert.h>
7577#endif
7578                     Syntax error
7579_ACEOF
7580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7581  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7582  ac_status=$?
7583  grep -v '^ *+' conftest.er1 >conftest.err
7584  rm -f conftest.er1
7585  cat conftest.err >&5
7586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); } >/dev/null; then
7588  if test -s conftest.err; then
7589    ac_cpp_err=$ac_c_preproc_warn_flag
7590    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7591  else
7592    ac_cpp_err=
7593  fi
7594else
7595  ac_cpp_err=yes
7596fi
7597if test -z "$ac_cpp_err"; then
7598  :
7599else
7600  echo "$as_me: failed program was:" >&5
7601sed 's/^/| /' conftest.$ac_ext >&5
7602
7603  # Broken: fails on valid input.
7604continue
7605fi
7606rm -f conftest.err conftest.$ac_ext
7607
7608  # OK, works on sane cases.  Now check whether non-existent headers
7609  # can be detected and how.
7610  cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h.  */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h.  */
7616#include <ac_nonexistent.h>
7617_ACEOF
7618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7620  ac_status=$?
7621  grep -v '^ *+' conftest.er1 >conftest.err
7622  rm -f conftest.er1
7623  cat conftest.err >&5
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); } >/dev/null; then
7626  if test -s conftest.err; then
7627    ac_cpp_err=$ac_c_preproc_warn_flag
7628    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7629  else
7630    ac_cpp_err=
7631  fi
7632else
7633  ac_cpp_err=yes
7634fi
7635if test -z "$ac_cpp_err"; then
7636  # Broken: success on invalid input.
7637continue
7638else
7639  echo "$as_me: failed program was:" >&5
7640sed 's/^/| /' conftest.$ac_ext >&5
7641
7642  # Passes both tests.
7643ac_preproc_ok=:
7644break
7645fi
7646rm -f conftest.err conftest.$ac_ext
7647
7648done
7649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7650rm -f conftest.err conftest.$ac_ext
7651if $ac_preproc_ok; then
7652  :
7653else
7654  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7655See \`config.log' for more details." >&5
7656echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7657See \`config.log' for more details." >&2;}
7658   { (exit 1); exit 1; }; }
7659fi
7660
7661ac_ext=c
7662ac_cpp='$CPP $CPPFLAGS'
7663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667
7668echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7670if test "${ac_cv_header_stdc+set}" = set; then
7671  echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673  cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h.  */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h.  */
7679#include <stdlib.h>
7680#include <stdarg.h>
7681#include <string.h>
7682#include <float.h>
7683
7684#ifdef F77_DUMMY_MAIN
7685
7686#  ifdef __cplusplus
7687     extern "C"
7688#  endif
7689   int F77_DUMMY_MAIN() { return 1; }
7690
7691#endif
7692int
7693main ()
7694{
7695
7696  ;
7697  return 0;
7698}
7699_ACEOF
7700rm -f conftest.$ac_objext
7701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702  (eval $ac_compile) 2>conftest.er1
7703  ac_status=$?
7704  grep -v '^ *+' conftest.er1 >conftest.err
7705  rm -f conftest.er1
7706  cat conftest.err >&5
7707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708  (exit $ac_status); } &&
7709         { ac_try='test -z "$ac_c_werror_flag"
7710                         || test ! -s conftest.err'
7711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712  (eval $ac_try) 2>&5
7713  ac_status=$?
7714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715  (exit $ac_status); }; } &&
7716         { ac_try='test -s conftest.$ac_objext'
7717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718  (eval $ac_try) 2>&5
7719  ac_status=$?
7720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721  (exit $ac_status); }; }; then
7722  ac_cv_header_stdc=yes
7723else
7724  echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727ac_cv_header_stdc=no
7728fi
7729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7730
7731if test $ac_cv_header_stdc = yes; then
7732  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7733  cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h.  */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h.  */
7739#include <string.h>
7740
7741_ACEOF
7742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7743  $EGREP "memchr" >/dev/null 2>&1; then
7744  :
7745else
7746  ac_cv_header_stdc=no
7747fi
7748rm -f conftest*
7749
7750fi
7751
7752if test $ac_cv_header_stdc = yes; then
7753  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7754  cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h.  */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h.  */
7760#include <stdlib.h>
7761
7762_ACEOF
7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7764  $EGREP "free" >/dev/null 2>&1; then
7765  :
7766else
7767  ac_cv_header_stdc=no
7768fi
7769rm -f conftest*
7770
7771fi
7772
7773if test $ac_cv_header_stdc = yes; then
7774  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7775  if test "$cross_compiling" = yes; then
7776  :
7777else
7778  cat >conftest.$ac_ext <<_ACEOF
7779/* confdefs.h.  */
7780_ACEOF
7781cat confdefs.h >>conftest.$ac_ext
7782cat >>conftest.$ac_ext <<_ACEOF
7783/* end confdefs.h.  */
7784#include <ctype.h>
7785#if ((' ' & 0x0FF) == 0x020)
7786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7788#else
7789# define ISLOWER(c) \
7790                   (('a' <= (c) && (c) <= 'i') \
7791                     || ('j' <= (c) && (c) <= 'r') \
7792                     || ('s' <= (c) && (c) <= 'z'))
7793# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7794#endif
7795
7796#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7797int
7798main ()
7799{
7800  int i;
7801  for (i = 0; i < 256; i++)
7802    if (XOR (islower (i), ISLOWER (i))
7803        || toupper (i) != TOUPPER (i))
7804      exit(2);
7805  exit (0);
7806}
7807_ACEOF
7808rm -f conftest$ac_exeext
7809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810  (eval $ac_link) 2>&5
7811  ac_status=$?
7812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815  (eval $ac_try) 2>&5
7816  ac_status=$?
7817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818  (exit $ac_status); }; }; then
7819  :
7820else
7821  echo "$as_me: program exited with status $ac_status" >&5
7822echo "$as_me: failed program was:" >&5
7823sed 's/^/| /' conftest.$ac_ext >&5
7824
7825( exit $ac_status )
7826ac_cv_header_stdc=no
7827fi
7828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7829fi
7830fi
7831fi
7832echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7833echo "${ECHO_T}$ac_cv_header_stdc" >&6
7834if test $ac_cv_header_stdc = yes; then
7835
7836cat >>confdefs.h <<\_ACEOF
7837#define STDC_HEADERS 1
7838_ACEOF
7839
7840fi
7841
7842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7853                  inttypes.h stdint.h unistd.h
7854do
7855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856echo "$as_me:$LINENO: checking for $ac_header" >&5
7857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7858if eval "test \"\${$as_ac_Header+set}\" = set"; then
7859  echo $ECHO_N "(cached) $ECHO_C" >&6
7860else
7861  cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h.  */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h.  */
7867$ac_includes_default
7868
7869#include <$ac_header>
7870_ACEOF
7871rm -f conftest.$ac_objext
7872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873  (eval $ac_compile) 2>conftest.er1
7874  ac_status=$?
7875  grep -v '^ *+' conftest.er1 >conftest.err
7876  rm -f conftest.er1
7877  cat conftest.err >&5
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); } &&
7880         { ac_try='test -z "$ac_c_werror_flag"
7881                         || test ! -s conftest.err'
7882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883  (eval $ac_try) 2>&5
7884  ac_status=$?
7885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886  (exit $ac_status); }; } &&
7887         { ac_try='test -s conftest.$ac_objext'
7888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889  (eval $ac_try) 2>&5
7890  ac_status=$?
7891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892  (exit $ac_status); }; }; then
7893  eval "$as_ac_Header=yes"
7894else
7895  echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898eval "$as_ac_Header=no"
7899fi
7900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7901fi
7902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905  cat >>confdefs.h <<_ACEOF
7906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907_ACEOF
7908
7909fi
7910
7911done
7912
7913
7914
7915for ac_header in dlfcn.h
7916do
7917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7918if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919  echo "$as_me:$LINENO: checking for $ac_header" >&5
7920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7921if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922  echo $ECHO_N "(cached) $ECHO_C" >&6
7923fi
7924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926else
7927  # Is the header compilable?
7928echo "$as_me:$LINENO: checking $ac_header usability" >&5
7929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7930cat >conftest.$ac_ext <<_ACEOF
7931/* confdefs.h.  */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
7935/* end confdefs.h.  */
7936$ac_includes_default
7937#include <$ac_header>
7938_ACEOF
7939rm -f conftest.$ac_objext
7940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941  (eval $ac_compile) 2>conftest.er1
7942  ac_status=$?
7943  grep -v '^ *+' conftest.er1 >conftest.err
7944  rm -f conftest.er1
7945  cat conftest.err >&5
7946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947  (exit $ac_status); } &&
7948         { ac_try='test -z "$ac_c_werror_flag"
7949                         || test ! -s conftest.err'
7950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951  (eval $ac_try) 2>&5
7952  ac_status=$?
7953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954  (exit $ac_status); }; } &&
7955         { ac_try='test -s conftest.$ac_objext'
7956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957  (eval $ac_try) 2>&5
7958  ac_status=$?
7959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960  (exit $ac_status); }; }; then
7961  ac_header_compiler=yes
7962else
7963  echo "$as_me: failed program was:" >&5
7964sed 's/^/| /' conftest.$ac_ext >&5
7965
7966ac_header_compiler=no
7967fi
7968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7970echo "${ECHO_T}$ac_header_compiler" >&6
7971
7972# Is the header present?
7973echo "$as_me:$LINENO: checking $ac_header presence" >&5
7974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7975cat >conftest.$ac_ext <<_ACEOF
7976/* confdefs.h.  */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h.  */
7981#include <$ac_header>
7982_ACEOF
7983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7985  ac_status=$?
7986  grep -v '^ *+' conftest.er1 >conftest.err
7987  rm -f conftest.er1
7988  cat conftest.err >&5
7989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990  (exit $ac_status); } >/dev/null; then
7991  if test -s conftest.err; then
7992    ac_cpp_err=$ac_c_preproc_warn_flag
7993    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7994  else
7995    ac_cpp_err=
7996  fi
7997else
7998  ac_cpp_err=yes
7999fi
8000if test -z "$ac_cpp_err"; then
8001  ac_header_preproc=yes
8002else
8003  echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006  ac_header_preproc=no
8007fi
8008rm -f conftest.err conftest.$ac_ext
8009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8010echo "${ECHO_T}$ac_header_preproc" >&6
8011
8012# So?  What about this header?
8013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8014  yes:no: )
8015    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8017    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8019    ac_header_preproc=yes
8020    ;;
8021  no:yes:* )
8022    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8024    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8025echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8026    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8028    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8029echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8030    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8032    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8034    (
8035      cat <<\_ASBOX
8036## --------------------------------------------------------------- ##
8037## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8038## --------------------------------------------------------------- ##
8039_ASBOX
8040    ) |
8041      sed "s/^/$as_me: WARNING:     /" >&2
8042    ;;
8043esac
8044echo "$as_me:$LINENO: checking for $ac_header" >&5
8045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8046if eval "test \"\${$as_ac_Header+set}\" = set"; then
8047  echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049  eval "$as_ac_Header=\$ac_header_preproc"
8050fi
8051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8053
8054fi
8055if test `eval echo '${'$as_ac_Header'}'` = yes; then
8056  cat >>confdefs.h <<_ACEOF
8057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8058_ACEOF
8059
8060fi
8061
8062done
8063
8064ac_ext=cc
8065ac_cpp='$CXXCPP $CPPFLAGS'
8066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8069if test -n "$ac_tool_prefix"; then
8070  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8071  do
8072    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8073set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8074echo "$as_me:$LINENO: checking for $ac_word" >&5
8075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8076if test "${ac_cv_prog_CXX+set}" = set; then
8077  echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079  if test -n "$CXX"; then
8080  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  test -z "$as_dir" && as_dir=.
8087  for ac_exec_ext in '' $ac_executable_extensions; do
8088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094done
8095
8096fi
8097fi
8098CXX=$ac_cv_prog_CXX
8099if test -n "$CXX"; then
8100  echo "$as_me:$LINENO: result: $CXX" >&5
8101echo "${ECHO_T}$CXX" >&6
8102else
8103  echo "$as_me:$LINENO: result: no" >&5
8104echo "${ECHO_T}no" >&6
8105fi
8106
8107    test -n "$CXX" && break
8108  done
8109fi
8110if test -z "$CXX"; then
8111  ac_ct_CXX=$CXX
8112  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8113do
8114  # Extract the first word of "$ac_prog", so it can be a program name with args.
8115set dummy $ac_prog; ac_word=$2
8116echo "$as_me:$LINENO: checking for $ac_word" >&5
8117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8118if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8119  echo $ECHO_N "(cached) $ECHO_C" >&6
8120else
8121  if test -n "$ac_ct_CXX"; then
8122  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127  IFS=$as_save_IFS
8128  test -z "$as_dir" && as_dir=.
8129  for ac_exec_ext in '' $ac_executable_extensions; do
8130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8131    ac_cv_prog_ac_ct_CXX="$ac_prog"
8132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8133    break 2
8134  fi
8135done
8136done
8137
8138fi
8139fi
8140ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8141if test -n "$ac_ct_CXX"; then
8142  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8143echo "${ECHO_T}$ac_ct_CXX" >&6
8144else
8145  echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6
8147fi
8148
8149  test -n "$ac_ct_CXX" && break
8150done
8151test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8152
8153  CXX=$ac_ct_CXX
8154fi
8155
8156
8157# Provide some information about the compiler.
8158echo "$as_me:$LINENO:" \
8159     "checking for C++ compiler version" >&5
8160ac_compiler=`set X $ac_compile; echo $2`
8161{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8162  (eval $ac_compiler --version </dev/null >&5) 2>&5
8163  ac_status=$?
8164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); }
8166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8167  (eval $ac_compiler -v </dev/null >&5) 2>&5
8168  ac_status=$?
8169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170  (exit $ac_status); }
8171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8172  (eval $ac_compiler -V </dev/null >&5) 2>&5
8173  ac_status=$?
8174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175  (exit $ac_status); }
8176
8177echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8180  echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182  cat >conftest.$ac_ext <<_ACEOF
8183/* confdefs.h.  */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h.  */
8188
8189#ifdef F77_DUMMY_MAIN
8190
8191#  ifdef __cplusplus
8192     extern "C"
8193#  endif
8194   int F77_DUMMY_MAIN() { return 1; }
8195
8196#endif
8197int
8198main ()
8199{
8200#ifndef __GNUC__
8201       choke me
8202#endif
8203
8204  ;
8205  return 0;
8206}
8207_ACEOF
8208rm -f conftest.$ac_objext
8209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210  (eval $ac_compile) 2>conftest.er1
8211  ac_status=$?
8212  grep -v '^ *+' conftest.er1 >conftest.err
8213  rm -f conftest.er1
8214  cat conftest.err >&5
8215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216  (exit $ac_status); } &&
8217         { ac_try='test -z "$ac_cxx_werror_flag"
8218                         || test ! -s conftest.err'
8219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220  (eval $ac_try) 2>&5
8221  ac_status=$?
8222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223  (exit $ac_status); }; } &&
8224         { ac_try='test -s conftest.$ac_objext'
8225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226  (eval $ac_try) 2>&5
8227  ac_status=$?
8228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229  (exit $ac_status); }; }; then
8230  ac_compiler_gnu=yes
8231else
8232  echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
8235ac_compiler_gnu=no
8236fi
8237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8238ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8239
8240fi
8241echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8242echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8243GXX=`test $ac_compiler_gnu = yes && echo yes`
8244ac_test_CXXFLAGS=${CXXFLAGS+set}
8245ac_save_CXXFLAGS=$CXXFLAGS
8246CXXFLAGS="-g"
8247echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8248echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8249if test "${ac_cv_prog_cxx_g+set}" = set; then
8250  echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252  cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h.  */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h.  */
8258
8259#ifdef F77_DUMMY_MAIN
8260
8261#  ifdef __cplusplus
8262     extern "C"
8263#  endif
8264   int F77_DUMMY_MAIN() { return 1; }
8265
8266#endif
8267int
8268main ()
8269{
8270
8271  ;
8272  return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext
8276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8277  (eval $ac_compile) 2>conftest.er1
8278  ac_status=$?
8279  grep -v '^ *+' conftest.er1 >conftest.err
8280  rm -f conftest.er1
8281  cat conftest.err >&5
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); } &&
8284         { ac_try='test -z "$ac_cxx_werror_flag"
8285                         || test ! -s conftest.err'
8286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287  (eval $ac_try) 2>&5
8288  ac_status=$?
8289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290  (exit $ac_status); }; } &&
8291         { ac_try='test -s conftest.$ac_objext'
8292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293  (eval $ac_try) 2>&5
8294  ac_status=$?
8295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296  (exit $ac_status); }; }; then
8297  ac_cv_prog_cxx_g=yes
8298else
8299  echo "$as_me: failed program was:" >&5
8300sed 's/^/| /' conftest.$ac_ext >&5
8301
8302ac_cv_prog_cxx_g=no
8303fi
8304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8305fi
8306echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8307echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8308if test "$ac_test_CXXFLAGS" = set; then
8309  CXXFLAGS=$ac_save_CXXFLAGS
8310elif test $ac_cv_prog_cxx_g = yes; then
8311  if test "$GXX" = yes; then
8312    CXXFLAGS="-g -O2"
8313  else
8314    CXXFLAGS="-g"
8315  fi
8316else
8317  if test "$GXX" = yes; then
8318    CXXFLAGS="-O2"
8319  else
8320    CXXFLAGS=
8321  fi
8322fi
8323for ac_declaration in \
8324   '' \
8325   'extern "C" void std::exit (int) throw (); using std::exit;' \
8326   'extern "C" void std::exit (int); using std::exit;' \
8327   'extern "C" void exit (int) throw ();' \
8328   'extern "C" void exit (int);' \
8329   'void exit (int);'
8330do
8331  cat >conftest.$ac_ext <<_ACEOF
8332/* confdefs.h.  */
8333_ACEOF
8334cat confdefs.h >>conftest.$ac_ext
8335cat >>conftest.$ac_ext <<_ACEOF
8336/* end confdefs.h.  */
8337$ac_declaration
8338#include <stdlib.h>
8339#ifdef F77_DUMMY_MAIN
8340
8341#  ifdef __cplusplus
8342     extern "C"
8343#  endif
8344   int F77_DUMMY_MAIN() { return 1; }
8345
8346#endif
8347int
8348main ()
8349{
8350exit (42);
8351  ;
8352  return 0;
8353}
8354_ACEOF
8355rm -f conftest.$ac_objext
8356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8357  (eval $ac_compile) 2>conftest.er1
8358  ac_status=$?
8359  grep -v '^ *+' conftest.er1 >conftest.err
8360  rm -f conftest.er1
8361  cat conftest.err >&5
8362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363  (exit $ac_status); } &&
8364         { ac_try='test -z "$ac_cxx_werror_flag"
8365                         || test ! -s conftest.err'
8366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367  (eval $ac_try) 2>&5
8368  ac_status=$?
8369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370  (exit $ac_status); }; } &&
8371         { ac_try='test -s conftest.$ac_objext'
8372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373  (eval $ac_try) 2>&5
8374  ac_status=$?
8375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376  (exit $ac_status); }; }; then
8377  :
8378else
8379  echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382continue
8383fi
8384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8385  cat >conftest.$ac_ext <<_ACEOF
8386/* confdefs.h.  */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h.  */
8391$ac_declaration
8392#ifdef F77_DUMMY_MAIN
8393
8394#  ifdef __cplusplus
8395     extern "C"
8396#  endif
8397   int F77_DUMMY_MAIN() { return 1; }
8398
8399#endif
8400int
8401main ()
8402{
8403exit (42);
8404  ;
8405  return 0;
8406}
8407_ACEOF
8408rm -f conftest.$ac_objext
8409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8410  (eval $ac_compile) 2>conftest.er1
8411  ac_status=$?
8412  grep -v '^ *+' conftest.er1 >conftest.err
8413  rm -f conftest.er1
8414  cat conftest.err >&5
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); } &&
8417         { ac_try='test -z "$ac_cxx_werror_flag"
8418                         || test ! -s conftest.err'
8419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420  (eval $ac_try) 2>&5
8421  ac_status=$?
8422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423  (exit $ac_status); }; } &&
8424         { ac_try='test -s conftest.$ac_objext'
8425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426  (eval $ac_try) 2>&5
8427  ac_status=$?
8428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429  (exit $ac_status); }; }; then
8430  break
8431else
8432  echo "$as_me: failed program was:" >&5
8433sed 's/^/| /' conftest.$ac_ext >&5
8434
8435fi
8436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8437done
8438rm -f conftest*
8439if test -n "$ac_declaration"; then
8440  echo '#ifdef __cplusplus' >>confdefs.h
8441  echo $ac_declaration      >>confdefs.h
8442  echo '#endif'             >>confdefs.h
8443fi
8444
8445ac_ext=cc
8446ac_cpp='$CXXCPP $CPPFLAGS'
8447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8450
8451depcc="$CXX"  am_compiler_list=
8452
8453echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8454echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8455if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8456  echo $ECHO_N "(cached) $ECHO_C" >&6
8457else
8458  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8459  # We make a subdir and do the tests there.  Otherwise we can end up
8460  # making bogus files that we don't know about and never remove.  For
8461  # instance it was reported that on HP-UX the gcc test will end up
8462  # making a dummy file named `D' -- because `-MD' means `put the output
8463  # in D'.
8464  mkdir conftest.dir
8465  # Copy depcomp to subdir because otherwise we won't find it if we're
8466  # using a relative directory.
8467  cp "$am_depcomp" conftest.dir
8468  cd conftest.dir
8469  # We will build objects and dependencies in a subdirectory because
8470  # it helps to detect inapplicable dependency modes.  For instance
8471  # both Tru64's cc and ICC support -MD to output dependencies as a
8472  # side effect of compilation, but ICC will put the dependencies in
8473  # the current directory while Tru64 will put them in the object
8474  # directory.
8475  mkdir sub
8476
8477  am_cv_CXX_dependencies_compiler_type=none
8478  if test "$am_compiler_list" = ""; then
8479     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8480  fi
8481  for depmode in $am_compiler_list; do
8482    # Setup a source with many dependencies, because some compilers
8483    # like to wrap large dependency lists on column 80 (with \), and
8484    # we should not choose a depcomp mode which is confused by this.
8485    #
8486    # We need to recreate these files for each test, as the compiler may
8487    # overwrite some of them when testing with obscure command lines.
8488    # This happens at least with the AIX C compiler.
8489    : > sub/conftest.c
8490    for i in 1 2 3 4 5 6; do
8491      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8492      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8493      # Solaris 8's {/usr,}/bin/sh.
8494      touch sub/conftst$i.h
8495    done
8496    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8497
8498    case $depmode in
8499    nosideeffect)
8500      # after this tag, mechanisms are not by side-effect, so they'll
8501      # only be used when explicitly requested
8502      if test "x$enable_dependency_tracking" = xyes; then
8503        continue
8504      else
8505        break
8506      fi
8507      ;;
8508    none) break ;;
8509    esac
8510    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8511    # mode.  It turns out that the SunPro C++ compiler does not properly
8512    # handle `-M -o', and we need to detect this.
8513    if depmode=$depmode \
8514       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8515       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8516       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8517         >/dev/null 2>conftest.err &&
8518       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8519       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8520       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8521      # icc doesn't choke on unknown options, it will just issue warnings
8522      # or remarks (even with -Werror).  So we grep stderr for any message
8523      # that says an option was ignored or not supported.
8524      # When given -MP, icc 7.0 and 7.1 complain thusly:
8525      #   icc: Command line warning: ignoring option '-M'; no argument required
8526      # The diagnosis changed in icc 8.0:
8527      #   icc: Command line remark: option '-MP' not supported
8528      if (grep 'ignoring option' conftest.err ||
8529          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8530        am_cv_CXX_dependencies_compiler_type=$depmode
8531        break
8532      fi
8533    fi
8534  done
8535
8536  cd ..
8537  rm -rf conftest.dir
8538else
8539  am_cv_CXX_dependencies_compiler_type=none
8540fi
8541
8542fi
8543echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8544echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8545CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8546
8547
8548
8549if
8550  test "x$enable_dependency_tracking" != xno \
8551  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8552  am__fastdepCXX_TRUE=
8553  am__fastdepCXX_FALSE='#'
8554else
8555  am__fastdepCXX_TRUE='#'
8556  am__fastdepCXX_FALSE=
8557fi
8558
8559
8560depcc="$CXX"  am_compiler_list=
8561
8562echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8563echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8564if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8565  echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8568  # We make a subdir and do the tests there.  Otherwise we can end up
8569  # making bogus files that we don't know about and never remove.  For
8570  # instance it was reported that on HP-UX the gcc test will end up
8571  # making a dummy file named `D' -- because `-MD' means `put the output
8572  # in D'.
8573  mkdir conftest.dir
8574  # Copy depcomp to subdir because otherwise we won't find it if we're
8575  # using a relative directory.
8576  cp "$am_depcomp" conftest.dir
8577  cd conftest.dir
8578  # We will build objects and dependencies in a subdirectory because
8579  # it helps to detect inapplicable dependency modes.  For instance
8580  # both Tru64's cc and ICC support -MD to output dependencies as a
8581  # side effect of compilation, but ICC will put the dependencies in
8582  # the current directory while Tru64 will put them in the object
8583  # directory.
8584  mkdir sub
8585
8586  am_cv_CXX_dependencies_compiler_type=none
8587  if test "$am_compiler_list" = ""; then
8588     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8589  fi
8590  for depmode in $am_compiler_list; do
8591    # Setup a source with many dependencies, because some compilers
8592    # like to wrap large dependency lists on column 80 (with \), and
8593    # we should not choose a depcomp mode which is confused by this.
8594    #
8595    # We need to recreate these files for each test, as the compiler may
8596    # overwrite some of them when testing with obscure command lines.
8597    # This happens at least with the AIX C compiler.
8598    : > sub/conftest.c
8599    for i in 1 2 3 4 5 6; do
8600      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8601      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8602      # Solaris 8's {/usr,}/bin/sh.
8603      touch sub/conftst$i.h
8604    done
8605    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8606
8607    case $depmode in
8608    nosideeffect)
8609      # after this tag, mechanisms are not by side-effect, so they'll
8610      # only be used when explicitly requested
8611      if test "x$enable_dependency_tracking" = xyes; then
8612        continue
8613      else
8614        break
8615      fi
8616      ;;
8617    none) break ;;
8618    esac
8619    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8620    # mode.  It turns out that the SunPro C++ compiler does not properly
8621    # handle `-M -o', and we need to detect this.
8622    if depmode=$depmode \
8623       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8624       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8625       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8626         >/dev/null 2>conftest.err &&
8627       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8628       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8629       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8630      # icc doesn't choke on unknown options, it will just issue warnings
8631      # or remarks (even with -Werror).  So we grep stderr for any message
8632      # that says an option was ignored or not supported.
8633      # When given -MP, icc 7.0 and 7.1 complain thusly:
8634      #   icc: Command line warning: ignoring option '-M'; no argument required
8635      # The diagnosis changed in icc 8.0:
8636      #   icc: Command line remark: option '-MP' not supported
8637      if (grep 'ignoring option' conftest.err ||
8638          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8639        am_cv_CXX_dependencies_compiler_type=$depmode
8640        break
8641      fi
8642    fi
8643  done
8644
8645  cd ..
8646  rm -rf conftest.dir
8647else
8648  am_cv_CXX_dependencies_compiler_type=none
8649fi
8650
8651fi
8652echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8653echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8654CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8655
8656
8657
8658if
8659  test "x$enable_dependency_tracking" != xno \
8660  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8661  am__fastdepCXX_TRUE=
8662  am__fastdepCXX_FALSE='#'
8663else
8664  am__fastdepCXX_TRUE='#'
8665  am__fastdepCXX_FALSE=
8666fi
8667
8668
8669
8670
8671if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8672    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8673    (test "X$CXX" != "Xg++"))) ; then
8674  ac_ext=cc
8675ac_cpp='$CXXCPP $CPPFLAGS'
8676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8679echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8680echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8681if test -z "$CXXCPP"; then
8682  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8683  echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685      # Double quotes because CXXCPP needs to be expanded
8686    for CXXCPP in "$CXX -E" "/lib/cpp"
8687    do
8688      ac_preproc_ok=false
8689for ac_cxx_preproc_warn_flag in '' yes
8690do
8691  # Use a header file that comes with gcc, so configuring glibc
8692  # with a fresh cross-compiler works.
8693  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8694  # <limits.h> exists even on freestanding compilers.
8695  # On the NeXT, cc -E runs the code through the compiler's parser,
8696  # not just through cpp. "Syntax error" is here to catch this case.
8697  cat >conftest.$ac_ext <<_ACEOF
8698/* confdefs.h.  */
8699_ACEOF
8700cat confdefs.h >>conftest.$ac_ext
8701cat >>conftest.$ac_ext <<_ACEOF
8702/* end confdefs.h.  */
8703#ifdef __STDC__
8704# include <limits.h>
8705#else
8706# include <assert.h>
8707#endif
8708                     Syntax error
8709_ACEOF
8710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8711  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8712  ac_status=$?
8713  grep -v '^ *+' conftest.er1 >conftest.err
8714  rm -f conftest.er1
8715  cat conftest.err >&5
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); } >/dev/null; then
8718  if test -s conftest.err; then
8719    ac_cpp_err=$ac_cxx_preproc_warn_flag
8720    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8721  else
8722    ac_cpp_err=
8723  fi
8724else
8725  ac_cpp_err=yes
8726fi
8727if test -z "$ac_cpp_err"; then
8728  :
8729else
8730  echo "$as_me: failed program was:" >&5
8731sed 's/^/| /' conftest.$ac_ext >&5
8732
8733  # Broken: fails on valid input.
8734continue
8735fi
8736rm -f conftest.err conftest.$ac_ext
8737
8738  # OK, works on sane cases.  Now check whether non-existent headers
8739  # can be detected and how.
8740  cat >conftest.$ac_ext <<_ACEOF
8741/* confdefs.h.  */
8742_ACEOF
8743cat confdefs.h >>conftest.$ac_ext
8744cat >>conftest.$ac_ext <<_ACEOF
8745/* end confdefs.h.  */
8746#include <ac_nonexistent.h>
8747_ACEOF
8748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8750  ac_status=$?
8751  grep -v '^ *+' conftest.er1 >conftest.err
8752  rm -f conftest.er1
8753  cat conftest.err >&5
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); } >/dev/null; then
8756  if test -s conftest.err; then
8757    ac_cpp_err=$ac_cxx_preproc_warn_flag
8758    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8759  else
8760    ac_cpp_err=
8761  fi
8762else
8763  ac_cpp_err=yes
8764fi
8765if test -z "$ac_cpp_err"; then
8766  # Broken: success on invalid input.
8767continue
8768else
8769  echo "$as_me: failed program was:" >&5
8770sed 's/^/| /' conftest.$ac_ext >&5
8771
8772  # Passes both tests.
8773ac_preproc_ok=:
8774break
8775fi
8776rm -f conftest.err conftest.$ac_ext
8777
8778done
8779# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8780rm -f conftest.err conftest.$ac_ext
8781if $ac_preproc_ok; then
8782  break
8783fi
8784
8785    done
8786    ac_cv_prog_CXXCPP=$CXXCPP
8787
8788fi
8789  CXXCPP=$ac_cv_prog_CXXCPP
8790else
8791  ac_cv_prog_CXXCPP=$CXXCPP
8792fi
8793echo "$as_me:$LINENO: result: $CXXCPP" >&5
8794echo "${ECHO_T}$CXXCPP" >&6
8795ac_preproc_ok=false
8796for ac_cxx_preproc_warn_flag in '' yes
8797do
8798  # Use a header file that comes with gcc, so configuring glibc
8799  # with a fresh cross-compiler works.
8800  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801  # <limits.h> exists even on freestanding compilers.
8802  # On the NeXT, cc -E runs the code through the compiler's parser,
8803  # not just through cpp. "Syntax error" is here to catch this case.
8804  cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h.  */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h.  */
8810#ifdef __STDC__
8811# include <limits.h>
8812#else
8813# include <assert.h>
8814#endif
8815                     Syntax error
8816_ACEOF
8817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8818  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8819  ac_status=$?
8820  grep -v '^ *+' conftest.er1 >conftest.err
8821  rm -f conftest.er1
8822  cat conftest.err >&5
8823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824  (exit $ac_status); } >/dev/null; then
8825  if test -s conftest.err; then
8826    ac_cpp_err=$ac_cxx_preproc_warn_flag
8827    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8828  else
8829    ac_cpp_err=
8830  fi
8831else
8832  ac_cpp_err=yes
8833fi
8834if test -z "$ac_cpp_err"; then
8835  :
8836else
8837  echo "$as_me: failed program was:" >&5
8838sed 's/^/| /' conftest.$ac_ext >&5
8839
8840  # Broken: fails on valid input.
8841continue
8842fi
8843rm -f conftest.err conftest.$ac_ext
8844
8845  # OK, works on sane cases.  Now check whether non-existent headers
8846  # can be detected and how.
8847  cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h.  */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h.  */
8853#include <ac_nonexistent.h>
8854_ACEOF
8855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857  ac_status=$?
8858  grep -v '^ *+' conftest.er1 >conftest.err
8859  rm -f conftest.er1
8860  cat conftest.err >&5
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); } >/dev/null; then
8863  if test -s conftest.err; then
8864    ac_cpp_err=$ac_cxx_preproc_warn_flag
8865    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8866  else
8867    ac_cpp_err=
8868  fi
8869else
8870  ac_cpp_err=yes
8871fi
8872if test -z "$ac_cpp_err"; then
8873  # Broken: success on invalid input.
8874continue
8875else
8876  echo "$as_me: failed program was:" >&5
8877sed 's/^/| /' conftest.$ac_ext >&5
8878
8879  # Passes both tests.
8880ac_preproc_ok=:
8881break
8882fi
8883rm -f conftest.err conftest.$ac_ext
8884
8885done
8886# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8887rm -f conftest.err conftest.$ac_ext
8888if $ac_preproc_ok; then
8889  :
8890else
8891  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8892See \`config.log' for more details." >&5
8893echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8894See \`config.log' for more details." >&2;}
8895   { (exit 1); exit 1; }; }
8896fi
8897
8898ac_ext=cc
8899ac_cpp='$CXXCPP $CPPFLAGS'
8900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8903
8904fi
8905
8906
8907
8908# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8909
8910# find the maximum length of command line arguments
8911echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8912echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8913if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8914  echo $ECHO_N "(cached) $ECHO_C" >&6
8915else
8916    i=0
8917  teststring="ABCD"
8918
8919  case $build_os in
8920  msdosdjgpp*)
8921    # On DJGPP, this test can blow up pretty badly due to problems in libc
8922    # (any single argument exceeding 2000 bytes causes a buffer overrun
8923    # during glob expansion).  Even if it were fixed, the result of this
8924    # check would be larger than it should be.
8925    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8926    ;;
8927
8928  gnu*)
8929    # Under GNU Hurd, this test is not required because there is
8930    # no limit to the length of command line arguments.
8931    # Libtool will interpret -1 as no limit whatsoever
8932    lt_cv_sys_max_cmd_len=-1;
8933    ;;
8934
8935  cygwin* | mingw*)
8936    # On Win9x/ME, this test blows up -- it succeeds, but takes
8937    # about 5 minutes as the teststring grows exponentially.
8938    # Worse, since 9x/ME are not pre-emptively multitasking,
8939    # you end up with a "frozen" computer, even though with patience
8940    # the test eventually succeeds (with a max line length of 256k).
8941    # Instead, let's just punt: use the minimum linelength reported by
8942    # all of the supported platforms: 8192 (on NT/2K/XP).
8943    lt_cv_sys_max_cmd_len=8192;
8944    ;;
8945
8946  amigaos*)
8947    # On AmigaOS with pdksh, this test takes hours, literally.
8948    # So we just punt and use a minimum line length of 8192.
8949    lt_cv_sys_max_cmd_len=8192;
8950    ;;
8951
8952  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8953    # This has been around since 386BSD, at least.  Likely further.
8954    if test -x /sbin/sysctl; then
8955      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8956    elif test -x /usr/sbin/sysctl; then
8957      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8958    else
8959      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8960    fi
8961    # And add a safety zone
8962    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8963    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8964    ;;
8965
8966  interix*)
8967    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8968    lt_cv_sys_max_cmd_len=196608
8969    ;;
8970
8971  osf*)
8972    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8973    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8974    # nice to cause kernel panics so lets avoid the loop below.
8975    # First set a reasonable default.
8976    lt_cv_sys_max_cmd_len=16384
8977    #
8978    if test -x /sbin/sysconfig; then
8979      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8980        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8981      esac
8982    fi
8983    ;;
8984  sco3.2v5*)
8985    lt_cv_sys_max_cmd_len=102400
8986    ;;
8987  sysv5* | sco5v6* | sysv4.2uw2*)
8988    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8989    if test -n "$kargmax"; then
8990      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8991    else
8992      lt_cv_sys_max_cmd_len=32768
8993    fi
8994    ;;
8995  *)
8996    # If test is not a shell built-in, we'll probably end up computing a
8997    # maximum length that is only half of the actual maximum length, but
8998    # we can't tell.
8999    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9000    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9001               = "XX$teststring") >/dev/null 2>&1 &&
9002            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9003            lt_cv_sys_max_cmd_len=$new_result &&
9004            test $i != 17 # 1/2 MB should be enough
9005    do
9006      i=`expr $i + 1`
9007      teststring=$teststring$teststring
9008    done
9009    teststring=
9010    # Add a significant safety factor because C++ compilers can tack on massive
9011    # amounts of additional arguments before passing them to the linker.
9012    # It appears as though 1/2 is a usable value.
9013    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9014    ;;
9015  esac
9016
9017fi
9018
9019if test -n $lt_cv_sys_max_cmd_len ; then
9020  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9021echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9022else
9023  echo "$as_me:$LINENO: result: none" >&5
9024echo "${ECHO_T}none" >&6
9025fi
9026
9027
9028
9029
9030# Check for command to grab the raw symbol name followed by C symbol from nm.
9031echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9032echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9033if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9034  echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036
9037# These are sane defaults that work on at least a few old systems.
9038# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9039
9040# Character class describing NM global symbol codes.
9041symcode='[BCDEGRST]'
9042
9043# Regexp to match symbols that can be accessed directly from C.
9044sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9045
9046# Transform an extracted symbol line into a proper C declaration
9047lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9048
9049# Transform an extracted symbol line into symbol name and symbol address
9050lt_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'"
9051
9052# Define system-specific variables.
9053case $host_os in
9054aix*)
9055  symcode='[BCDT]'
9056  ;;
9057cygwin* | mingw* | pw32*)
9058  symcode='[ABCDGISTW]'
9059  ;;
9060hpux*) # Its linker distinguishes data from code symbols
9061  if test "$host_cpu" = ia64; then
9062    symcode='[ABCDEGRST]'
9063  fi
9064  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9065  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'"
9066  ;;
9067linux*)
9068  if test "$host_cpu" = ia64; then
9069    symcode='[ABCDGIRSTW]'
9070    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9071    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'"
9072  fi
9073  ;;
9074irix* | nonstopux*)
9075  symcode='[BCDEGRST]'
9076  ;;
9077osf*)
9078  symcode='[BCDEGQRST]'
9079  ;;
9080solaris*)
9081  symcode='[BDRT]'
9082  ;;
9083sco3.2v5*)
9084  symcode='[DT]'
9085  ;;
9086sysv4.2uw2*)
9087  symcode='[DT]'
9088  ;;
9089sysv5* | sco5v6* | unixware* | OpenUNIX*)
9090  symcode='[ABDT]'
9091  ;;
9092sysv4)
9093  symcode='[DFNSTU]'
9094  ;;
9095esac
9096
9097# Handle CRLF in mingw tool chain
9098opt_cr=
9099case $build_os in
9100mingw*)
9101  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9102  ;;
9103esac
9104
9105# If we're using GNU nm, then use its standard symbol codes.
9106case `$NM -V 2>&1` in
9107*GNU* | *'with BFD'*)
9108  symcode='[ABCDGIRSTW]' ;;
9109esac
9110
9111# Try without a prefix undercore, then with it.
9112for ac_symprfx in "" "_"; do
9113
9114  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9115  symxfrm="\\1 $ac_symprfx\\2 \\2"
9116
9117  # Write the raw and C identifiers.
9118  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9119
9120  # Check to see that the pipe works correctly.
9121  pipe_works=no
9122
9123  rm -f conftest*
9124  cat > conftest.$ac_ext <<EOF
9125#ifdef __cplusplus
9126extern "C" {
9127#endif
9128char nm_test_var;
9129void nm_test_func(){}
9130#ifdef __cplusplus
9131}
9132#endif
9133int main(){nm_test_var='a';nm_test_func();return(0);}
9134EOF
9135
9136  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137  (eval $ac_compile) 2>&5
9138  ac_status=$?
9139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140  (exit $ac_status); }; then
9141    # Now try to grab the symbols.
9142    nlist=conftest.nm
9143    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9144  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9145  ac_status=$?
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); } && test -s "$nlist"; then
9148      # Try sorting and uniquifying the output.
9149      if sort "$nlist" | uniq > "$nlist"T; then
9150        mv -f "$nlist"T "$nlist"
9151      else
9152        rm -f "$nlist"T
9153      fi
9154
9155      # Make sure that we snagged all the symbols we need.
9156      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9157        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9158          cat <<EOF > conftest.$ac_ext
9159#ifdef __cplusplus
9160extern "C" {
9161#endif
9162
9163EOF
9164          # Now generate the symbol file.
9165          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9166
9167          cat <<EOF >> conftest.$ac_ext
9168#if defined (__STDC__) && __STDC__
9169# define lt_ptr_t void *
9170#else
9171# define lt_ptr_t char *
9172# define const
9173#endif
9174
9175/* The mapping between symbol names and symbols. */
9176const struct {
9177  const char *name;
9178  lt_ptr_t address;
9179}
9180lt_preloaded_symbols[] =
9181{
9182EOF
9183          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9184          cat <<\EOF >> conftest.$ac_ext
9185  {0, (lt_ptr_t) 0}
9186};
9187
9188#ifdef __cplusplus
9189}
9190#endif
9191EOF
9192          # Now try linking the two files.
9193          mv conftest.$ac_objext conftstm.$ac_objext
9194          lt_save_LIBS="$LIBS"
9195          lt_save_CFLAGS="$CFLAGS"
9196          LIBS="conftstm.$ac_objext"
9197          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9198          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199  (eval $ac_link) 2>&5
9200  ac_status=$?
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9203            pipe_works=yes
9204          fi
9205          LIBS="$lt_save_LIBS"
9206          CFLAGS="$lt_save_CFLAGS"
9207        else
9208          echo "cannot find nm_test_func in $nlist" >&5
9209        fi
9210      else
9211        echo "cannot find nm_test_var in $nlist" >&5
9212      fi
9213    else
9214      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9215    fi
9216  else
9217    echo "$progname: failed program was:" >&5
9218    cat conftest.$ac_ext >&5
9219  fi
9220  rm -f conftest* conftst*
9221
9222  # Do not use the global_symbol_pipe unless it works.
9223  if test "$pipe_works" = yes; then
9224    break
9225  else
9226    lt_cv_sys_global_symbol_pipe=
9227  fi
9228done
9229
9230fi
9231
9232if test -z "$lt_cv_sys_global_symbol_pipe"; then
9233  lt_cv_sys_global_symbol_to_cdecl=
9234fi
9235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9236  echo "$as_me:$LINENO: result: failed" >&5
9237echo "${ECHO_T}failed" >&6
9238else
9239  echo "$as_me:$LINENO: result: ok" >&5
9240echo "${ECHO_T}ok" >&6
9241fi
9242
9243echo "$as_me:$LINENO: checking for objdir" >&5
9244echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9245if test "${lt_cv_objdir+set}" = set; then
9246  echo $ECHO_N "(cached) $ECHO_C" >&6
9247else
9248  rm -f .libs 2>/dev/null
9249mkdir .libs 2>/dev/null
9250if test -d .libs; then
9251  lt_cv_objdir=.libs
9252else
9253  # MS-DOS does not allow filenames that begin with a dot.
9254  lt_cv_objdir=_libs
9255fi
9256rmdir .libs 2>/dev/null
9257fi
9258echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9259echo "${ECHO_T}$lt_cv_objdir" >&6
9260objdir=$lt_cv_objdir
9261
9262
9263
9264
9265
9266case $host_os in
9267aix3*)
9268  # AIX sometimes has problems with the GCC collect2 program.  For some
9269  # reason, if we set the COLLECT_NAMES environment variable, the problems
9270  # vanish in a puff of smoke.
9271  if test "X${COLLECT_NAMES+set}" != Xset; then
9272    COLLECT_NAMES=
9273    export COLLECT_NAMES
9274  fi
9275  ;;
9276esac
9277
9278# Sed substitution that helps us do robust quoting.  It backslashifies
9279# metacharacters that are still active within double-quoted strings.
9280Xsed='sed -e 1s/^X//'
9281sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9282
9283# Same as above, but do not quote variable references.
9284double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9285
9286# Sed substitution to delay expansion of an escaped shell variable in a
9287# double_quote_subst'ed string.
9288delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9289
9290# Sed substitution to avoid accidental globbing in evaled expressions
9291no_glob_subst='s/\*/\\\*/g'
9292
9293# Constants:
9294rm="rm -f"
9295
9296# Global variables:
9297default_ofile=libtool
9298can_build_shared=yes
9299
9300# All known linkers require a `.a' archive for static linking (except MSVC,
9301# which needs '.lib').
9302libext=a
9303ltmain="$ac_aux_dir/ltmain.sh"
9304ofile="$default_ofile"
9305with_gnu_ld="$lt_cv_prog_gnu_ld"
9306
9307if test -n "$ac_tool_prefix"; then
9308  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9309set dummy ${ac_tool_prefix}ar; ac_word=$2
9310echo "$as_me:$LINENO: checking for $ac_word" >&5
9311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9312if test "${ac_cv_prog_AR+set}" = set; then
9313  echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315  if test -n "$AR"; then
9316  ac_cv_prog_AR="$AR" # Let the user override the test.
9317else
9318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319for as_dir in $PATH
9320do
9321  IFS=$as_save_IFS
9322  test -z "$as_dir" && as_dir=.
9323  for ac_exec_ext in '' $ac_executable_extensions; do
9324  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9325    ac_cv_prog_AR="${ac_tool_prefix}ar"
9326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9327    break 2
9328  fi
9329done
9330done
9331
9332fi
9333fi
9334AR=$ac_cv_prog_AR
9335if test -n "$AR"; then
9336  echo "$as_me:$LINENO: result: $AR" >&5
9337echo "${ECHO_T}$AR" >&6
9338else
9339  echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
9341fi
9342
9343fi
9344if test -z "$ac_cv_prog_AR"; then
9345  ac_ct_AR=$AR
9346  # Extract the first word of "ar", so it can be a program name with args.
9347set dummy ar; ac_word=$2
9348echo "$as_me:$LINENO: checking for $ac_word" >&5
9349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9350if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9351  echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353  if test -n "$ac_ct_AR"; then
9354  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359  IFS=$as_save_IFS
9360  test -z "$as_dir" && as_dir=.
9361  for ac_exec_ext in '' $ac_executable_extensions; do
9362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9363    ac_cv_prog_ac_ct_AR="ar"
9364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9365    break 2
9366  fi
9367done
9368done
9369
9370  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9371fi
9372fi
9373ac_ct_AR=$ac_cv_prog_ac_ct_AR
9374if test -n "$ac_ct_AR"; then
9375  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9376echo "${ECHO_T}$ac_ct_AR" >&6
9377else
9378  echo "$as_me:$LINENO: result: no" >&5
9379echo "${ECHO_T}no" >&6
9380fi
9381
9382  AR=$ac_ct_AR
9383else
9384  AR="$ac_cv_prog_AR"
9385fi
9386
9387if test -n "$ac_tool_prefix"; then
9388  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9389set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9390echo "$as_me:$LINENO: checking for $ac_word" >&5
9391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392if test "${ac_cv_prog_RANLIB+set}" = set; then
9393  echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395  if test -n "$RANLIB"; then
9396  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9397else
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401  IFS=$as_save_IFS
9402  test -z "$as_dir" && as_dir=.
9403  for ac_exec_ext in '' $ac_executable_extensions; do
9404  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9406    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9407    break 2
9408  fi
9409done
9410done
9411
9412fi
9413fi
9414RANLIB=$ac_cv_prog_RANLIB
9415if test -n "$RANLIB"; then
9416  echo "$as_me:$LINENO: result: $RANLIB" >&5
9417echo "${ECHO_T}$RANLIB" >&6
9418else
9419  echo "$as_me:$LINENO: result: no" >&5
9420echo "${ECHO_T}no" >&6
9421fi
9422
9423fi
9424if test -z "$ac_cv_prog_RANLIB"; then
9425  ac_ct_RANLIB=$RANLIB
9426  # Extract the first word of "ranlib", so it can be a program name with args.
9427set dummy ranlib; ac_word=$2
9428echo "$as_me:$LINENO: checking for $ac_word" >&5
9429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9430if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9431  echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433  if test -n "$ac_ct_RANLIB"; then
9434  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9435else
9436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437for as_dir in $PATH
9438do
9439  IFS=$as_save_IFS
9440  test -z "$as_dir" && as_dir=.
9441  for ac_exec_ext in '' $ac_executable_extensions; do
9442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9443    ac_cv_prog_ac_ct_RANLIB="ranlib"
9444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445    break 2
9446  fi
9447done
9448done
9449
9450  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9451fi
9452fi
9453ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9454if test -n "$ac_ct_RANLIB"; then
9455  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9456echo "${ECHO_T}$ac_ct_RANLIB" >&6
9457else
9458  echo "$as_me:$LINENO: result: no" >&5
9459echo "${ECHO_T}no" >&6
9460fi
9461
9462  RANLIB=$ac_ct_RANLIB
9463else
9464  RANLIB="$ac_cv_prog_RANLIB"
9465fi
9466
9467if test -n "$ac_tool_prefix"; then
9468  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9469set dummy ${ac_tool_prefix}strip; ac_word=$2
9470echo "$as_me:$LINENO: checking for $ac_word" >&5
9471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9472if test "${ac_cv_prog_STRIP+set}" = set; then
9473  echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9475  if test -n "$STRIP"; then
9476  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9477else
9478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9479for as_dir in $PATH
9480do
9481  IFS=$as_save_IFS
9482  test -z "$as_dir" && as_dir=.
9483  for ac_exec_ext in '' $ac_executable_extensions; do
9484  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9487    break 2
9488  fi
9489done
9490done
9491
9492fi
9493fi
9494STRIP=$ac_cv_prog_STRIP
9495if test -n "$STRIP"; then
9496  echo "$as_me:$LINENO: result: $STRIP" >&5
9497echo "${ECHO_T}$STRIP" >&6
9498else
9499  echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6
9501fi
9502
9503fi
9504if test -z "$ac_cv_prog_STRIP"; then
9505  ac_ct_STRIP=$STRIP
9506  # Extract the first word of "strip", so it can be a program name with args.
9507set dummy strip; ac_word=$2
9508echo "$as_me:$LINENO: checking for $ac_word" >&5
9509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9511  echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513  if test -n "$ac_ct_STRIP"; then
9514  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9515else
9516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517for as_dir in $PATH
9518do
9519  IFS=$as_save_IFS
9520  test -z "$as_dir" && as_dir=.
9521  for ac_exec_ext in '' $ac_executable_extensions; do
9522  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9523    ac_cv_prog_ac_ct_STRIP="strip"
9524    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9525    break 2
9526  fi
9527done
9528done
9529
9530  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9531fi
9532fi
9533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9534if test -n "$ac_ct_STRIP"; then
9535  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9536echo "${ECHO_T}$ac_ct_STRIP" >&6
9537else
9538  echo "$as_me:$LINENO: result: no" >&5
9539echo "${ECHO_T}no" >&6
9540fi
9541
9542  STRIP=$ac_ct_STRIP
9543else
9544  STRIP="$ac_cv_prog_STRIP"
9545fi
9546
9547
9548old_CC="$CC"
9549old_CFLAGS="$CFLAGS"
9550
9551# Set sane defaults for various variables
9552test -z "$AR" && AR=ar
9553test -z "$AR_FLAGS" && AR_FLAGS=cru
9554test -z "$AS" && AS=as
9555test -z "$CC" && CC=cc
9556test -z "$LTCC" && LTCC=$CC
9557test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9558test -z "$DLLTOOL" && DLLTOOL=dlltool
9559test -z "$LD" && LD=ld
9560test -z "$LN_S" && LN_S="ln -s"
9561test -z "$MAGIC_CMD" && MAGIC_CMD=file
9562test -z "$NM" && NM=nm
9563test -z "$SED" && SED=sed
9564test -z "$OBJDUMP" && OBJDUMP=objdump
9565test -z "$RANLIB" && RANLIB=:
9566test -z "$STRIP" && STRIP=:
9567test -z "$ac_objext" && ac_objext=o
9568
9569# Determine commands to create old-style static archives.
9570old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9571old_postinstall_cmds='chmod 644 $oldlib'
9572old_postuninstall_cmds=
9573
9574if test -n "$RANLIB"; then
9575  case $host_os in
9576  openbsd*)
9577    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9578    ;;
9579  *)
9580    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9581    ;;
9582  esac
9583  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9584fi
9585
9586for cc_temp in $compiler""; do
9587  case $cc_temp in
9588    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9589    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9590    \-*) ;;
9591    *) break;;
9592  esac
9593done
9594cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9595
9596
9597# Only perform the check for file, if the check method requires it
9598case $deplibs_check_method in
9599file_magic*)
9600  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9601    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9602echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9603if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9604  echo $ECHO_N "(cached) $ECHO_C" >&6
9605else
9606  case $MAGIC_CMD in
9607[\\/*] |  ?:[\\/]*)
9608  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9609  ;;
9610*)
9611  lt_save_MAGIC_CMD="$MAGIC_CMD"
9612  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9613  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9614  for ac_dir in $ac_dummy; do
9615    IFS="$lt_save_ifs"
9616    test -z "$ac_dir" && ac_dir=.
9617    if test -f $ac_dir/${ac_tool_prefix}file; then
9618      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9619      if test -n "$file_magic_test_file"; then
9620        case $deplibs_check_method in
9621        "file_magic "*)
9622          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9623          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9624          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9625            $EGREP "$file_magic_regex" > /dev/null; then
9626            :
9627          else
9628            cat <<EOF 1>&2
9629
9630*** Warning: the command libtool uses to detect shared libraries,
9631*** $file_magic_cmd, produces output that libtool cannot recognize.
9632*** The result is that libtool may fail to recognize shared libraries
9633*** as such.  This will affect the creation of libtool libraries that
9634*** depend on shared libraries, but programs linked with such libtool
9635*** libraries will work regardless of this problem.  Nevertheless, you
9636*** may want to report the problem to your system manager and/or to
9637*** bug-libtool@gnu.org
9638
9639EOF
9640          fi ;;
9641        esac
9642      fi
9643      break
9644    fi
9645  done
9646  IFS="$lt_save_ifs"
9647  MAGIC_CMD="$lt_save_MAGIC_CMD"
9648  ;;
9649esac
9650fi
9651
9652MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9653if test -n "$MAGIC_CMD"; then
9654  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9655echo "${ECHO_T}$MAGIC_CMD" >&6
9656else
9657  echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
9659fi
9660
9661if test -z "$lt_cv_path_MAGIC_CMD"; then
9662  if test -n "$ac_tool_prefix"; then
9663    echo "$as_me:$LINENO: checking for file" >&5
9664echo $ECHO_N "checking for file... $ECHO_C" >&6
9665if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9666  echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668  case $MAGIC_CMD in
9669[\\/*] |  ?:[\\/]*)
9670  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9671  ;;
9672*)
9673  lt_save_MAGIC_CMD="$MAGIC_CMD"
9674  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9675  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9676  for ac_dir in $ac_dummy; do
9677    IFS="$lt_save_ifs"
9678    test -z "$ac_dir" && ac_dir=.
9679    if test -f $ac_dir/file; then
9680      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9681      if test -n "$file_magic_test_file"; then
9682        case $deplibs_check_method in
9683        "file_magic "*)
9684          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9685          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9686          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9687            $EGREP "$file_magic_regex" > /dev/null; then
9688            :
9689          else
9690            cat <<EOF 1>&2
9691
9692*** Warning: the command libtool uses to detect shared libraries,
9693*** $file_magic_cmd, produces output that libtool cannot recognize.
9694*** The result is that libtool may fail to recognize shared libraries
9695*** as such.  This will affect the creation of libtool libraries that
9696*** depend on shared libraries, but programs linked with such libtool
9697*** libraries will work regardless of this problem.  Nevertheless, you
9698*** may want to report the problem to your system manager and/or to
9699*** bug-libtool@gnu.org
9700
9701EOF
9702          fi ;;
9703        esac
9704      fi
9705      break
9706    fi
9707  done
9708  IFS="$lt_save_ifs"
9709  MAGIC_CMD="$lt_save_MAGIC_CMD"
9710  ;;
9711esac
9712fi
9713
9714MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9715if test -n "$MAGIC_CMD"; then
9716  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9717echo "${ECHO_T}$MAGIC_CMD" >&6
9718else
9719  echo "$as_me:$LINENO: result: no" >&5
9720echo "${ECHO_T}no" >&6
9721fi
9722
9723  else
9724    MAGIC_CMD=:
9725  fi
9726fi
9727
9728  fi
9729  ;;
9730esac
9731
9732enable_dlopen=no
9733enable_win32_dll=no
9734
9735# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9736if test "${enable_libtool_lock+set}" = set; then
9737  enableval="$enable_libtool_lock"
9738
9739fi;
9740test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9741
9742
9743# Check whether --with-pic or --without-pic was given.
9744if test "${with_pic+set}" = set; then
9745  withval="$with_pic"
9746  pic_mode="$withval"
9747else
9748  pic_mode=default
9749fi;
9750test -z "$pic_mode" && pic_mode=default
9751
9752# Use C for the default configuration in the libtool script
9753tagname=
9754lt_save_CC="$CC"
9755ac_ext=c
9756ac_cpp='$CPP $CPPFLAGS'
9757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9759ac_compiler_gnu=$ac_cv_c_compiler_gnu
9760
9761
9762# Source file extension for C test sources.
9763ac_ext=c
9764
9765# Object file extension for compiled C test sources.
9766objext=o
9767objext=$objext
9768
9769# Code to be used in simple compile tests
9770lt_simple_compile_test_code="int some_variable = 0;\n"
9771
9772# Code to be used in simple link tests
9773lt_simple_link_test_code='int main(){return(0);}\n'
9774
9775
9776# If no C compiler was specified, use CC.
9777LTCC=${LTCC-"$CC"}
9778
9779# If no C compiler flags were specified, use CFLAGS.
9780LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9781
9782# Allow CC to be a program name with arguments.
9783compiler=$CC
9784
9785
9786# save warnings/boilerplate of simple test code
9787ac_outfile=conftest.$ac_objext
9788printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9790_lt_compiler_boilerplate=`cat conftest.err`
9791$rm conftest*
9792
9793ac_outfile=conftest.$ac_objext
9794printf "$lt_simple_link_test_code" >conftest.$ac_ext
9795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9796_lt_linker_boilerplate=`cat conftest.err`
9797$rm conftest*
9798
9799
9800## CAVEAT EMPTOR:
9801## There is no encapsulation within the following macros, do not change
9802## the running order or otherwise move them around unless you know exactly
9803## what you are doing...
9804
9805lt_prog_compiler_no_builtin_flag=
9806
9807if test "$GCC" = yes; then
9808  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9809
9810
9811echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9812echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9813if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9814  echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816  lt_cv_prog_compiler_rtti_exceptions=no
9817  ac_outfile=conftest.$ac_objext
9818   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9819   lt_compiler_flag="-fno-rtti -fno-exceptions"
9820   # Insert the option either (1) after the last *FLAGS variable, or
9821   # (2) before a word containing "conftest.", or (3) at the end.
9822   # Note that $ac_compile itself does not contain backslashes and begins
9823   # with a dollar sign (not a hyphen), so the echo should work correctly.
9824   # The option is referenced via a variable to avoid confusing sed.
9825   lt_compile=`echo "$ac_compile" | $SED \
9826   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9827   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9828   -e 's:$: $lt_compiler_flag:'`
9829   (eval echo "\"\$as_me:9829: $lt_compile\"" >&5)
9830   (eval "$lt_compile" 2>conftest.err)
9831   ac_status=$?
9832   cat conftest.err >&5
9833   echo "$as_me:9833: \$? = $ac_status" >&5
9834   if (exit $ac_status) && test -s "$ac_outfile"; then
9835     # The compiler can only warn and ignore the option if not recognized
9836     # So say no if there are warnings other than the usual output.
9837     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9838     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9839     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9840       lt_cv_prog_compiler_rtti_exceptions=yes
9841     fi
9842   fi
9843   $rm conftest*
9844
9845fi
9846echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9847echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9848
9849if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9850    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9851else
9852    :
9853fi
9854
9855fi
9856
9857lt_prog_compiler_wl=
9858lt_prog_compiler_pic=
9859lt_prog_compiler_static=
9860
9861echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9862echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9863
9864  if test "$GCC" = yes; then
9865    lt_prog_compiler_wl='-Wl,'
9866    lt_prog_compiler_static='-static'
9867
9868    case $host_os in
9869      aix*)
9870      # All AIX code is PIC.
9871      if test "$host_cpu" = ia64; then
9872        # AIX 5 now supports IA64 processor
9873        lt_prog_compiler_static='-Bstatic'
9874      fi
9875      ;;
9876
9877    amigaos*)
9878      # FIXME: we need at least 68020 code to build shared libraries, but
9879      # adding the `-m68020' flag to GCC prevents building anything better,
9880      # like `-m68040'.
9881      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9882      ;;
9883
9884    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9885      # PIC is the default for these OSes.
9886      ;;
9887
9888    mingw* | pw32* | os2*)
9889      # This hack is so that the source file can tell whether it is being
9890      # built for inclusion in a dll (and should export symbols for example).
9891      lt_prog_compiler_pic='-DDLL_EXPORT'
9892      ;;
9893
9894    darwin* | rhapsody*)
9895      # PIC is the default on this platform
9896      # Common symbols not allowed in MH_DYLIB files
9897      lt_prog_compiler_pic='-fno-common'
9898      ;;
9899
9900    interix3*)
9901      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9902      # Instead, we relocate shared libraries at runtime.
9903      ;;
9904
9905    msdosdjgpp*)
9906      # Just because we use GCC doesn't mean we suddenly get shared libraries
9907      # on systems that don't support them.
9908      lt_prog_compiler_can_build_shared=no
9909      enable_shared=no
9910      ;;
9911
9912    sysv4*MP*)
9913      if test -d /usr/nec; then
9914        lt_prog_compiler_pic=-Kconform_pic
9915      fi
9916      ;;
9917
9918    hpux*)
9919      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9920      # not for PA HP-UX.
9921      case $host_cpu in
9922      hppa*64*|ia64*)
9923        # +Z the default
9924        ;;
9925      *)
9926        lt_prog_compiler_pic='-fPIC'
9927        ;;
9928      esac
9929      ;;
9930
9931    *)
9932      lt_prog_compiler_pic='-fPIC'
9933      ;;
9934    esac
9935  else
9936    # PORTME Check for flag to pass linker flags through the system compiler.
9937    case $host_os in
9938    aix*)
9939      lt_prog_compiler_wl='-Wl,'
9940      if test "$host_cpu" = ia64; then
9941        # AIX 5 now supports IA64 processor
9942        lt_prog_compiler_static='-Bstatic'
9943      else
9944        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9945      fi
9946      ;;
9947      darwin*)
9948        # PIC is the default on this platform
9949        # Common symbols not allowed in MH_DYLIB files
9950       case $cc_basename in
9951         xlc*)
9952         lt_prog_compiler_pic='-qnocommon'
9953         lt_prog_compiler_wl='-Wl,'
9954         ;;
9955       esac
9956       ;;
9957
9958    mingw* | pw32* | os2*)
9959      # This hack is so that the source file can tell whether it is being
9960      # built for inclusion in a dll (and should export symbols for example).
9961      lt_prog_compiler_pic='-DDLL_EXPORT'
9962      ;;
9963
9964    hpux9* | hpux10* | hpux11*)
9965      lt_prog_compiler_wl='-Wl,'
9966      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9967      # not for PA HP-UX.
9968      case $host_cpu in
9969      hppa*64*|ia64*)
9970        # +Z the default
9971        ;;
9972      *)
9973        lt_prog_compiler_pic='+Z'
9974        ;;
9975      esac
9976      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9977      lt_prog_compiler_static='${wl}-a ${wl}archive'
9978      ;;
9979
9980    irix5* | irix6* | nonstopux*)
9981      lt_prog_compiler_wl='-Wl,'
9982      # PIC (with -KPIC) is the default.
9983      lt_prog_compiler_static='-non_shared'
9984      ;;
9985
9986    newsos6)
9987      lt_prog_compiler_pic='-KPIC'
9988      lt_prog_compiler_static='-Bstatic'
9989      ;;
9990
9991    linux*)
9992      case $cc_basename in
9993      icc* | ecc*)
9994        lt_prog_compiler_wl='-Wl,'
9995        lt_prog_compiler_pic='-KPIC'
9996        lt_prog_compiler_static='-static'
9997        ;;
9998      pgcc* | pgf77* | pgf90* | pgf95*)
9999        # Portland Group compilers (*not* the Pentium gcc compiler,
10000        # which looks to be a dead project)
10001        lt_prog_compiler_wl='-Wl,'
10002        lt_prog_compiler_pic='-fpic'
10003        lt_prog_compiler_static='-Bstatic'
10004        ;;
10005      ccc*)
10006        lt_prog_compiler_wl='-Wl,'
10007        # All Alpha code is PIC.
10008        lt_prog_compiler_static='-non_shared'
10009        ;;
10010      esac
10011      ;;
10012
10013    osf3* | osf4* | osf5*)
10014      lt_prog_compiler_wl='-Wl,'
10015      # All OSF/1 code is PIC.
10016      lt_prog_compiler_static='-non_shared'
10017      ;;
10018
10019    solaris*)
10020      lt_prog_compiler_pic='-KPIC'
10021      lt_prog_compiler_static='-Bstatic'
10022      case $cc_basename in
10023      f77* | f90* | f95*)
10024        lt_prog_compiler_wl='-Qoption ld ';;
10025      *)
10026        lt_prog_compiler_wl='-Wl,';;
10027      esac
10028      ;;
10029
10030    sunos4*)
10031      lt_prog_compiler_wl='-Qoption ld '
10032      lt_prog_compiler_pic='-PIC'
10033      lt_prog_compiler_static='-Bstatic'
10034      ;;
10035
10036    sysv4 | sysv4.2uw2* | sysv4.3*)
10037      lt_prog_compiler_wl='-Wl,'
10038      lt_prog_compiler_pic='-KPIC'
10039      lt_prog_compiler_static='-Bstatic'
10040      ;;
10041
10042    sysv4*MP*)
10043      if test -d /usr/nec ;then
10044        lt_prog_compiler_pic='-Kconform_pic'
10045        lt_prog_compiler_static='-Bstatic'
10046      fi
10047      ;;
10048
10049    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10050      lt_prog_compiler_wl='-Wl,'
10051      lt_prog_compiler_pic='-KPIC'
10052      lt_prog_compiler_static='-Bstatic'
10053      ;;
10054
10055    unicos*)
10056      lt_prog_compiler_wl='-Wl,'
10057      lt_prog_compiler_can_build_shared=no
10058      ;;
10059
10060    uts4*)
10061      lt_prog_compiler_pic='-pic'
10062      lt_prog_compiler_static='-Bstatic'
10063      ;;
10064
10065    *)
10066      lt_prog_compiler_can_build_shared=no
10067      ;;
10068    esac
10069  fi
10070
10071echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10072echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10073
10074#
10075# Check to make sure the PIC flag actually works.
10076#
10077if test -n "$lt_prog_compiler_pic"; then
10078
10079echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10080echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10081if test "${lt_prog_compiler_pic_works+set}" = set; then
10082  echo $ECHO_N "(cached) $ECHO_C" >&6
10083else
10084  lt_prog_compiler_pic_works=no
10085  ac_outfile=conftest.$ac_objext
10086   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10087   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10088   # Insert the option either (1) after the last *FLAGS variable, or
10089   # (2) before a word containing "conftest.", or (3) at the end.
10090   # Note that $ac_compile itself does not contain backslashes and begins
10091   # with a dollar sign (not a hyphen), so the echo should work correctly.
10092   # The option is referenced via a variable to avoid confusing sed.
10093   lt_compile=`echo "$ac_compile" | $SED \
10094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10096   -e 's:$: $lt_compiler_flag:'`
10097   (eval echo "\"\$as_me:10097: $lt_compile\"" >&5)
10098   (eval "$lt_compile" 2>conftest.err)
10099   ac_status=$?
10100   cat conftest.err >&5
10101   echo "$as_me:10101: \$? = $ac_status" >&5
10102   if (exit $ac_status) && test -s "$ac_outfile"; then
10103     # The compiler can only warn and ignore the option if not recognized
10104     # So say no if there are warnings other than the usual output.
10105     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10106     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10107     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10108       lt_prog_compiler_pic_works=yes
10109     fi
10110   fi
10111   $rm conftest*
10112
10113fi
10114echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10115echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10116
10117if test x"$lt_prog_compiler_pic_works" = xyes; then
10118    case $lt_prog_compiler_pic in
10119     "" | " "*) ;;
10120     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10121     esac
10122else
10123    lt_prog_compiler_pic=
10124     lt_prog_compiler_can_build_shared=no
10125fi
10126
10127fi
10128case $host_os in
10129  # For platforms which do not support PIC, -DPIC is meaningless:
10130  *djgpp*)
10131    lt_prog_compiler_pic=
10132    ;;
10133  *)
10134    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10135    ;;
10136esac
10137
10138#
10139# Check to make sure the static flag actually works.
10140#
10141wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10142echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10143echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10144if test "${lt_prog_compiler_static_works+set}" = set; then
10145  echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147  lt_prog_compiler_static_works=no
10148   save_LDFLAGS="$LDFLAGS"
10149   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10150   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10151   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10152     # The linker can only warn and ignore the option if not recognized
10153     # So say no if there are warnings
10154     if test -s conftest.err; then
10155       # Append any errors to the config.log.
10156       cat conftest.err 1>&5
10157       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10158       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10159       if diff conftest.exp conftest.er2 >/dev/null; then
10160         lt_prog_compiler_static_works=yes
10161       fi
10162     else
10163       lt_prog_compiler_static_works=yes
10164     fi
10165   fi
10166   $rm conftest*
10167   LDFLAGS="$save_LDFLAGS"
10168
10169fi
10170echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10171echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10172
10173if test x"$lt_prog_compiler_static_works" = xyes; then
10174    :
10175else
10176    lt_prog_compiler_static=
10177fi
10178
10179
10180echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10181echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10182if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10183  echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185  lt_cv_prog_compiler_c_o=no
10186   $rm -r conftest 2>/dev/null
10187   mkdir conftest
10188   cd conftest
10189   mkdir out
10190   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10191
10192   lt_compiler_flag="-o out/conftest2.$ac_objext"
10193   # Insert the option either (1) after the last *FLAGS variable, or
10194   # (2) before a word containing "conftest.", or (3) at the end.
10195   # Note that $ac_compile itself does not contain backslashes and begins
10196   # with a dollar sign (not a hyphen), so the echo should work correctly.
10197   lt_compile=`echo "$ac_compile" | $SED \
10198   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10199   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10200   -e 's:$: $lt_compiler_flag:'`
10201   (eval echo "\"\$as_me:10201: $lt_compile\"" >&5)
10202   (eval "$lt_compile" 2>out/conftest.err)
10203   ac_status=$?
10204   cat out/conftest.err >&5
10205   echo "$as_me:10205: \$? = $ac_status" >&5
10206   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10207   then
10208     # The compiler can only warn and ignore the option if not recognized
10209     # So say no if there are warnings
10210     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10211     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10212     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10213       lt_cv_prog_compiler_c_o=yes
10214     fi
10215   fi
10216   chmod u+w . 2>&5
10217   $rm conftest*
10218   # SGI C++ compiler will create directory out/ii_files/ for
10219   # template instantiation
10220   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10221   $rm out/* && rmdir out
10222   cd ..
10223   rmdir conftest
10224   $rm conftest*
10225
10226fi
10227echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10228echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10229
10230
10231hard_links="nottested"
10232if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10233  # do not overwrite the value of need_locks provided by the user
10234  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10235echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10236  hard_links=yes
10237  $rm conftest*
10238  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10239  touch conftest.a
10240  ln conftest.a conftest.b 2>&5 || hard_links=no
10241  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10242  echo "$as_me:$LINENO: result: $hard_links" >&5
10243echo "${ECHO_T}$hard_links" >&6
10244  if test "$hard_links" = no; then
10245    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10246echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10247    need_locks=warn
10248  fi
10249else
10250  need_locks=no
10251fi
10252
10253echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10254echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10255
10256  runpath_var=
10257  allow_undefined_flag=
10258  enable_shared_with_static_runtimes=no
10259  archive_cmds=
10260  archive_expsym_cmds=
10261  old_archive_From_new_cmds=
10262  old_archive_from_expsyms_cmds=
10263  export_dynamic_flag_spec=
10264  whole_archive_flag_spec=
10265  thread_safe_flag_spec=
10266  hardcode_libdir_flag_spec=
10267  hardcode_libdir_flag_spec_ld=
10268  hardcode_libdir_separator=
10269  hardcode_direct=no
10270  hardcode_minus_L=no
10271  hardcode_shlibpath_var=unsupported
10272  link_all_deplibs=unknown
10273  hardcode_automatic=no
10274  module_cmds=
10275  module_expsym_cmds=
10276  always_export_symbols=no
10277  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10278  # include_expsyms should be a list of space-separated symbols to be *always*
10279  # included in the symbol list
10280  include_expsyms=
10281  # exclude_expsyms can be an extended regexp of symbols to exclude
10282  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10283  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10284  # as well as any symbol that contains `d'.
10285  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10286  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10287  # platforms (ab)use it in PIC code, but their linkers get confused if
10288  # the symbol is explicitly referenced.  Since portable code cannot
10289  # rely on this symbol name, it's probably fine to never include it in
10290  # preloaded symbol tables.
10291  extract_expsyms_cmds=
10292  # Just being paranoid about ensuring that cc_basename is set.
10293  for cc_temp in $compiler""; do
10294  case $cc_temp in
10295    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10296    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10297    \-*) ;;
10298    *) break;;
10299  esac
10300done
10301cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10302
10303  case $host_os in
10304  cygwin* | mingw* | pw32*)
10305    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10306    # When not using gcc, we currently assume that we are using
10307    # Microsoft Visual C++.
10308    if test "$GCC" != yes; then
10309      with_gnu_ld=no
10310    fi
10311    ;;
10312  interix*)
10313    # we just hope/assume this is gcc and not c89 (= MSVC++)
10314    with_gnu_ld=yes
10315    ;;
10316  openbsd*)
10317    with_gnu_ld=no
10318    ;;
10319  esac
10320
10321  ld_shlibs=yes
10322  if test "$with_gnu_ld" = yes; then
10323    # If archive_cmds runs LD, not CC, wlarc should be empty
10324    wlarc='${wl}'
10325
10326    # Set some defaults for GNU ld with shared library support. These
10327    # are reset later if shared libraries are not supported. Putting them
10328    # here allows them to be overridden if necessary.
10329    runpath_var=LD_RUN_PATH
10330    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10331    export_dynamic_flag_spec='${wl}--export-dynamic'
10332    # ancient GNU ld didn't support --whole-archive et. al.
10333    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10334        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10335      else
10336        whole_archive_flag_spec=
10337    fi
10338    supports_anon_versioning=no
10339    case `$LD -v 2>/dev/null` in
10340      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10341      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10342      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10343      *\ 2.11.*) ;; # other 2.11 versions
10344      *) supports_anon_versioning=yes ;;
10345    esac
10346
10347    # See if GNU ld supports shared libraries.
10348    case $host_os in
10349    aix3* | aix4* | aix5*)
10350      # On AIX/PPC, the GNU linker is very broken
10351      if test "$host_cpu" != ia64; then
10352        ld_shlibs=no
10353        cat <<EOF 1>&2
10354
10355*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10356*** to be unable to reliably create shared libraries on AIX.
10357*** Therefore, libtool is disabling shared libraries support.  If you
10358*** really care for shared libraries, you may want to modify your PATH
10359*** so that a non-GNU linker is found, and then restart.
10360
10361EOF
10362      fi
10363      ;;
10364
10365    amigaos*)
10366      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)'
10367      hardcode_libdir_flag_spec='-L$libdir'
10368      hardcode_minus_L=yes
10369
10370      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10371      # that the semantics of dynamic libraries on AmigaOS, at least up
10372      # to version 4, is to share data among multiple programs linked
10373      # with the same dynamic library.  Since this doesn't match the
10374      # behavior of shared libraries on other platforms, we can't use
10375      # them.
10376      ld_shlibs=no
10377      ;;
10378
10379    beos*)
10380      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10381        allow_undefined_flag=unsupported
10382        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10383        # support --undefined.  This deserves some investigation.  FIXME
10384        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10385      else
10386        ld_shlibs=no
10387      fi
10388      ;;
10389
10390    cygwin* | mingw* | pw32*)
10391      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10392      # as there is no search path for DLLs.
10393      hardcode_libdir_flag_spec='-L$libdir'
10394      allow_undefined_flag=unsupported
10395      always_export_symbols=no
10396      enable_shared_with_static_runtimes=yes
10397      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10398
10399      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10400        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10401        # If the export-symbols file already is a .def file (1st line
10402        # is EXPORTS), use it as is; otherwise, prepend...
10403        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10404          cp $export_symbols $output_objdir/$soname.def;
10405        else
10406          echo EXPORTS > $output_objdir/$soname.def;
10407          cat $export_symbols >> $output_objdir/$soname.def;
10408        fi~
10409        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10410      else
10411        ld_shlibs=no
10412      fi
10413      ;;
10414
10415    interix3*)
10416      hardcode_direct=no
10417      hardcode_shlibpath_var=no
10418      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10419      export_dynamic_flag_spec='${wl}-E'
10420      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10421      # Instead, shared libraries are loaded at an image base (0x10000000 by
10422      # default) and relocated if they conflict, which is a slow very memory
10423      # consuming and fragmenting process.  To avoid this, we pick a random,
10424      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10425      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10426      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10427      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'
10428      ;;
10429
10430    linux*)
10431      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10432        tmp_addflag=
10433        case $cc_basename,$host_cpu in
10434        pgcc*)                          # Portland Group C compiler
10435          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'
10436          tmp_addflag=' $pic_flag'
10437          ;;
10438        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10439          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'
10440          tmp_addflag=' $pic_flag -Mnomain' ;;
10441        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10442          tmp_addflag=' -i_dynamic' ;;
10443        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10444          tmp_addflag=' -i_dynamic -nofor_main' ;;
10445        ifc* | ifort*)                  # Intel Fortran compiler
10446          tmp_addflag=' -nofor_main' ;;
10447        esac
10448        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10449
10450        if test $supports_anon_versioning = yes; then
10451          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10452  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10453  $echo "local: *; };" >> $output_objdir/$libname.ver~
10454          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10455        fi
10456      else
10457        ld_shlibs=no
10458      fi
10459      ;;
10460
10461    netbsd*)
10462      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10463        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10464        wlarc=
10465      else
10466        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10468      fi
10469      ;;
10470
10471    solaris*)
10472      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10473        ld_shlibs=no
10474        cat <<EOF 1>&2
10475
10476*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10477*** create shared libraries on Solaris systems.  Therefore, libtool
10478*** is disabling shared libraries support.  We urge you to upgrade GNU
10479*** binutils to release 2.9.1 or newer.  Another option is to modify
10480*** your PATH or compiler configuration so that the native linker is
10481*** used, and then restart.
10482
10483EOF
10484      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10485        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10487      else
10488        ld_shlibs=no
10489      fi
10490      ;;
10491
10492    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10493      case `$LD -v 2>&1` in
10494        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10495        ld_shlibs=no
10496        cat <<_LT_EOF 1>&2
10497
10498*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10499*** reliably create shared libraries on SCO systems.  Therefore, libtool
10500*** is disabling shared libraries support.  We urge you to upgrade GNU
10501*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10502*** your PATH or compiler configuration so that the native linker is
10503*** used, and then restart.
10504
10505_LT_EOF
10506        ;;
10507        *)
10508          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10509            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10510            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10511            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10512          else
10513            ld_shlibs=no
10514          fi
10515        ;;
10516      esac
10517      ;;
10518
10519    sunos4*)
10520      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10521      wlarc=
10522      hardcode_direct=yes
10523      hardcode_shlibpath_var=no
10524      ;;
10525
10526    *)
10527      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10528        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10529        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10530      else
10531        ld_shlibs=no
10532      fi
10533      ;;
10534    esac
10535
10536    if test "$ld_shlibs" = no; then
10537      runpath_var=
10538      hardcode_libdir_flag_spec=
10539      export_dynamic_flag_spec=
10540      whole_archive_flag_spec=
10541    fi
10542  else
10543    # PORTME fill in a description of your system's linker (not GNU ld)
10544    case $host_os in
10545    aix3*)
10546      allow_undefined_flag=unsupported
10547      always_export_symbols=yes
10548      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'
10549      # Note: this linker hardcodes the directories in LIBPATH if there
10550      # are no directories specified by -L.
10551      hardcode_minus_L=yes
10552      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10553        # Neither direct hardcoding nor static linking is supported with a
10554        # broken collect2.
10555        hardcode_direct=unsupported
10556      fi
10557      ;;
10558
10559    aix4* | aix5*)
10560      if test "$host_cpu" = ia64; then
10561        # On IA64, the linker does run time linking by default, so we don't
10562        # have to do anything special.
10563        aix_use_runtimelinking=no
10564        exp_sym_flag='-Bexport'
10565        no_entry_flag=""
10566      else
10567        # If we're using GNU nm, then we don't want the "-C" option.
10568        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10569        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10570          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'
10571        else
10572          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'
10573        fi
10574        aix_use_runtimelinking=no
10575
10576        # Test if we are trying to use run time linking or normal
10577        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10578        # need to do runtime linking.
10579        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10580          for ld_flag in $LDFLAGS; do
10581          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10582            aix_use_runtimelinking=yes
10583            break
10584          fi
10585          done
10586          ;;
10587        esac
10588
10589        exp_sym_flag='-bexport'
10590        no_entry_flag='-bnoentry'
10591      fi
10592
10593      # When large executables or shared objects are built, AIX ld can
10594      # have problems creating the table of contents.  If linking a library
10595      # or program results in "error TOC overflow" add -mminimal-toc to
10596      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10597      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10598
10599      archive_cmds=''
10600      hardcode_direct=yes
10601      hardcode_libdir_separator=':'
10602      link_all_deplibs=yes
10603
10604      if test "$GCC" = yes; then
10605        case $host_os in aix4.[012]|aix4.[012].*)
10606        # We only want to do this on AIX 4.2 and lower, the check
10607        # below for broken collect2 doesn't work under 4.3+
10608          collect2name=`${CC} -print-prog-name=collect2`
10609          if test -f "$collect2name" && \
10610           strings "$collect2name" | grep resolve_lib_name >/dev/null
10611          then
10612          # We have reworked collect2
10613          hardcode_direct=yes
10614          else
10615          # We have old collect2
10616          hardcode_direct=unsupported
10617          # It fails to find uninstalled libraries when the uninstalled
10618          # path is not listed in the libpath.  Setting hardcode_minus_L
10619          # to unsupported forces relinking
10620          hardcode_minus_L=yes
10621          hardcode_libdir_flag_spec='-L$libdir'
10622          hardcode_libdir_separator=
10623          fi
10624          ;;
10625        esac
10626        shared_flag='-shared'
10627        if test "$aix_use_runtimelinking" = yes; then
10628          shared_flag="$shared_flag "'${wl}-G'
10629        fi
10630      else
10631        # not using gcc
10632        if test "$host_cpu" = ia64; then
10633        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10634        # chokes on -Wl,-G. The following line is correct:
10635          shared_flag='-G'
10636        else
10637          if test "$aix_use_runtimelinking" = yes; then
10638            shared_flag='${wl}-G'
10639          else
10640            shared_flag='${wl}-bM:SRE'
10641          fi
10642        fi
10643      fi
10644
10645      # It seems that -bexpall does not export symbols beginning with
10646      # underscore (_), so it is better to generate a list of symbols to export.
10647      always_export_symbols=yes
10648      if test "$aix_use_runtimelinking" = yes; then
10649        # Warning - without using the other runtime loading flags (-brtl),
10650        # -berok will link without error, but may produce a broken library.
10651        allow_undefined_flag='-berok'
10652       # Determine the default libpath from the value encoded in an empty executable.
10653       cat >conftest.$ac_ext <<_ACEOF
10654/* confdefs.h.  */
10655_ACEOF
10656cat confdefs.h >>conftest.$ac_ext
10657cat >>conftest.$ac_ext <<_ACEOF
10658/* end confdefs.h.  */
10659
10660#ifdef F77_DUMMY_MAIN
10661
10662#  ifdef __cplusplus
10663     extern "C"
10664#  endif
10665   int F77_DUMMY_MAIN() { return 1; }
10666
10667#endif
10668int
10669main ()
10670{
10671
10672  ;
10673  return 0;
10674}
10675_ACEOF
10676rm -f conftest.$ac_objext conftest$ac_exeext
10677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678  (eval $ac_link) 2>conftest.er1
10679  ac_status=$?
10680  grep -v '^ *+' conftest.er1 >conftest.err
10681  rm -f conftest.er1
10682  cat conftest.err >&5
10683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684  (exit $ac_status); } &&
10685         { ac_try='test -z "$ac_c_werror_flag"
10686                         || test ! -s conftest.err'
10687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688  (eval $ac_try) 2>&5
10689  ac_status=$?
10690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); }; } &&
10692         { ac_try='test -s conftest$ac_exeext'
10693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694  (eval $ac_try) 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); }; }; then
10698
10699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10700}'`
10701# Check for a 64-bit object if we didn't find anything.
10702if 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; }
10703}'`; fi
10704else
10705  echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708fi
10709rm -f conftest.err conftest.$ac_objext \
10710      conftest$ac_exeext conftest.$ac_ext
10711if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10712
10713       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10714        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"
10715       else
10716        if test "$host_cpu" = ia64; then
10717          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10718          allow_undefined_flag="-z nodefs"
10719          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"
10720        else
10721         # Determine the default libpath from the value encoded in an empty executable.
10722         cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h.  */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h.  */
10728
10729#ifdef F77_DUMMY_MAIN
10730
10731#  ifdef __cplusplus
10732     extern "C"
10733#  endif
10734   int F77_DUMMY_MAIN() { return 1; }
10735
10736#endif
10737int
10738main ()
10739{
10740
10741  ;
10742  return 0;
10743}
10744_ACEOF
10745rm -f conftest.$ac_objext conftest$ac_exeext
10746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747  (eval $ac_link) 2>conftest.er1
10748  ac_status=$?
10749  grep -v '^ *+' conftest.er1 >conftest.err
10750  rm -f conftest.er1
10751  cat conftest.err >&5
10752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753  (exit $ac_status); } &&
10754         { ac_try='test -z "$ac_c_werror_flag"
10755                         || test ! -s conftest.err'
10756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757  (eval $ac_try) 2>&5
10758  ac_status=$?
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); }; } &&
10761         { ac_try='test -s conftest$ac_exeext'
10762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763  (eval $ac_try) 2>&5
10764  ac_status=$?
10765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766  (exit $ac_status); }; }; then
10767
10768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10769}'`
10770# Check for a 64-bit object if we didn't find anything.
10771if 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; }
10772}'`; fi
10773else
10774  echo "$as_me: failed program was:" >&5
10775sed 's/^/| /' conftest.$ac_ext >&5
10776
10777fi
10778rm -f conftest.err conftest.$ac_objext \
10779      conftest$ac_exeext conftest.$ac_ext
10780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10781
10782         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10783          # Warning - without using the other run time loading flags,
10784          # -berok will link without error, but may produce a broken library.
10785          no_undefined_flag=' ${wl}-bernotok'
10786          allow_undefined_flag=' ${wl}-berok'
10787          # Exported symbols can be pulled into shared objects from archives
10788          whole_archive_flag_spec='$convenience'
10789          archive_cmds_need_lc=yes
10790          # This is similar to how AIX traditionally builds its shared libraries.
10791          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'
10792        fi
10793      fi
10794      ;;
10795
10796    amigaos*)
10797      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)'
10798      hardcode_libdir_flag_spec='-L$libdir'
10799      hardcode_minus_L=yes
10800      # see comment about different semantics on the GNU ld section
10801      ld_shlibs=no
10802      ;;
10803
10804    bsdi[45]*)
10805      export_dynamic_flag_spec=-rdynamic
10806      ;;
10807
10808    cygwin* | mingw* | pw32*)
10809      # When not using gcc, we currently assume that we are using
10810      # Microsoft Visual C++.
10811      # hardcode_libdir_flag_spec is actually meaningless, as there is
10812      # no search path for DLLs.
10813      hardcode_libdir_flag_spec=' '
10814      allow_undefined_flag=unsupported
10815      # Tell ltmain to make .lib files, not .a files.
10816      libext=lib
10817      # Tell ltmain to make .dll files, not .so files.
10818      shrext_cmds=".dll"
10819      # FIXME: Setting linknames here is a bad hack.
10820      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10821      # The linker will automatically build a .lib file if we build a DLL.
10822      old_archive_From_new_cmds='true'
10823      # FIXME: Should let the user specify the lib program.
10824      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10825      fix_srcfile_path='`cygpath -w "$srcfile"`'
10826      enable_shared_with_static_runtimes=yes
10827      ;;
10828
10829    darwin* | rhapsody*)
10830      case $host_os in
10831        rhapsody* | darwin1.[012])
10832         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10833         ;;
10834       *) # Darwin 1.3 on
10835         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then