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

Last change on this file since 3187 was 3187, checked in by tkr, 8 years ago

temporarily committing release candidate

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