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

Last change on this file since 3074 was 3074, checked in by stefan, 6 years ago

temporarily committing release candidate

File size: 771.0 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.6.
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.6'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.2.6'
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.6 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.6:";;
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.6
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.6, 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:6: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.6'
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 "$CXX" 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          *)
6009            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
6010echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
6011            ;;
6012        esac
6013      fi
6014    ;;
6015    *-aix*)
6016      coin_disable_shared=yes
6017      platform=AIX
6018      if test x"$enable_shared" = xyes; then
6019        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
6020echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
6021      fi
6022    ;;
6023  esac
6024fi
6025if test x"$coin_disable_shared" = xyes; then
6026  if test x"$enable_shared" = xyes; then
6027    :
6028  else
6029    # we don't disable shared, because it was not selected anyway
6030    coin_disable_shared=no
6031  fi
6032  enable_shared=no
6033fi
6034# By default, we only want the shared objects to be compiled
6035# Check whether --enable-static or --disable-static was given.
6036if test "${enable_static+set}" = set; then
6037  enableval="$enable_static"
6038  p=${PACKAGE-default}
6039    case $enableval in
6040    yes) enable_static=yes ;;
6041    no) enable_static=no ;;
6042    *)
6043     enable_static=no
6044      # Look at the argument we got.  We use all the common list separators.
6045      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6046      for pkg in $enableval; do
6047        IFS="$lt_save_ifs"
6048        if test "X$pkg" = "X$p"; then
6049          enable_static=yes
6050        fi
6051      done
6052      IFS="$lt_save_ifs"
6053      ;;
6054    esac
6055else
6056  enable_static=no
6057fi;
6058
6059
6060
6061
6062# Initialize automake
6063
6064
6065
6066# AC_MSG_NOTICE([Beginning automake initialisation.])
6067# Stuff for automake
6068# test to see if srcdir already configured
6069if test "`cd $srcdir && pwd`" != "`pwd`" &&
6070   test -f $srcdir/config.status; then
6071  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6072echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6073   { (exit 1); exit 1; }; }
6074fi
6075
6076# test whether we have cygpath
6077if test -z "$CYGPATH_W"; then
6078  if (cygpath --version) >/dev/null 2>/dev/null; then
6079    CYGPATH_W='cygpath -w'
6080  else
6081    CYGPATH_W=echo
6082  fi
6083fi
6084
6085
6086# Define the identity of the package.
6087 PACKAGE='thirdpartyfiltersqp'
6088 VERSION='1.2.6'
6089
6090
6091cat >>confdefs.h <<_ACEOF
6092#define PACKAGE "$PACKAGE"
6093_ACEOF
6094
6095
6096cat >>confdefs.h <<_ACEOF
6097#define VERSION "$VERSION"
6098_ACEOF
6099
6100# Some tools Automake needs.
6101
6102ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6103
6104
6105AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6106
6107
6108AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6109
6110
6111AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6112
6113
6114MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6115
6116install_sh=${install_sh-"$am_aux_dir/install-sh"}
6117
6118# Installed binaries are usually stripped using `strip' when the user
6119# run `make install-strip'.  However `strip' might not be the right
6120# tool to use in cross-compilation environments, therefore Automake
6121# will honor the `STRIP' environment variable to overrule this program.
6122if test "$cross_compiling" != no; then
6123  if test -n "$ac_tool_prefix"; then
6124  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}strip; ac_word=$2
6126echo "$as_me:$LINENO: checking for $ac_word" >&5
6127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6128if test "${ac_cv_prog_STRIP+set}" = set; then
6129  echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131  if test -n "$STRIP"; then
6132  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139  for ac_exec_ext in '' $ac_executable_extensions; do
6140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6141    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146done
6147
6148fi
6149fi
6150STRIP=$ac_cv_prog_STRIP
6151if test -n "$STRIP"; then
6152  echo "$as_me:$LINENO: result: $STRIP" >&5
6153echo "${ECHO_T}$STRIP" >&6
6154else
6155  echo "$as_me:$LINENO: result: no" >&5
6156echo "${ECHO_T}no" >&6
6157fi
6158
6159fi
6160if test -z "$ac_cv_prog_STRIP"; then
6161  ac_ct_STRIP=$STRIP
6162  # Extract the first word of "strip", so it can be a program name with args.
6163set dummy strip; ac_word=$2
6164echo "$as_me:$LINENO: checking for $ac_word" >&5
6165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6166if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  if test -n "$ac_ct_STRIP"; then
6170  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6171else
6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH
6174do
6175  IFS=$as_save_IFS
6176  test -z "$as_dir" && as_dir=.
6177  for ac_exec_ext in '' $ac_executable_extensions; do
6178  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179    ac_cv_prog_ac_ct_STRIP="strip"
6180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181    break 2
6182  fi
6183done
6184done
6185
6186  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6187fi
6188fi
6189ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6190if test -n "$ac_ct_STRIP"; then
6191  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6192echo "${ECHO_T}$ac_ct_STRIP" >&6
6193else
6194  echo "$as_me:$LINENO: result: no" >&5
6195echo "${ECHO_T}no" >&6
6196fi
6197
6198  STRIP=$ac_ct_STRIP
6199else
6200  STRIP="$ac_cv_prog_STRIP"
6201fi
6202
6203fi
6204INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6205
6206# We need awk for the "check" target.  The system "awk" is bad on
6207# some platforms.
6208# Always define AMTAR for backward compatibility.
6209
6210AMTAR=${AMTAR-"${am_missing_run}tar"}
6211
6212am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6213
6214
6215
6216
6217depcc="$CC"   am_compiler_list=
6218
6219echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6220echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6221if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6225  # We make a subdir and do the tests there.  Otherwise we can end up
6226  # making bogus files that we don't know about and never remove.  For
6227  # instance it was reported that on HP-UX the gcc test will end up
6228  # making a dummy file named `D' -- because `-MD' means `put the output
6229  # in D'.
6230  mkdir conftest.dir
6231  # Copy depcomp to subdir because otherwise we won't find it if we're
6232  # using a relative directory.
6233  cp "$am_depcomp" conftest.dir
6234  cd conftest.dir
6235  # We will build objects and dependencies in a subdirectory because
6236  # it helps to detect inapplicable dependency modes.  For instance
6237  # both Tru64's cc and ICC support -MD to output dependencies as a
6238  # side effect of compilation, but ICC will put the dependencies in
6239  # the current directory while Tru64 will put them in the object
6240  # directory.
6241  mkdir sub
6242
6243  am_cv_CC_dependencies_compiler_type=none
6244  if test "$am_compiler_list" = ""; then
6245     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6246  fi
6247  for depmode in $am_compiler_list; do
6248    # Setup a source with many dependencies, because some compilers
6249    # like to wrap large dependency lists on column 80 (with \), and
6250    # we should not choose a depcomp mode which is confused by this.
6251    #
6252    # We need to recreate these files for each test, as the compiler may
6253    # overwrite some of them when testing with obscure command lines.
6254    # This happens at least with the AIX C compiler.
6255    : > sub/conftest.c
6256    for i in 1 2 3 4 5 6; do
6257      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6258      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6259      # Solaris 8's {/usr,}/bin/sh.
6260      touch sub/conftst$i.h
6261    done
6262    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6263
6264    case $depmode in
6265    nosideeffect)
6266      # after this tag, mechanisms are not by side-effect, so they'll
6267      # only be used when explicitly requested
6268      if test "x$enable_dependency_tracking" = xyes; then
6269        continue
6270      else
6271        break
6272      fi
6273      ;;
6274    none) break ;;
6275    esac
6276    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6277    # mode.  It turns out that the SunPro C++ compiler does not properly
6278    # handle `-M -o', and we need to detect this.
6279    if depmode=$depmode \
6280       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6281       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6282       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6283         >/dev/null 2>conftest.err &&
6284       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6285       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6286       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6287      # icc doesn't choke on unknown options, it will just issue warnings
6288      # or remarks (even with -Werror).  So we grep stderr for any message
6289      # that says an option was ignored or not supported.
6290      # When given -MP, icc 7.0 and 7.1 complain thusly:
6291      #   icc: Command line warning: ignoring option '-M'; no argument required
6292      # The diagnosis changed in icc 8.0:
6293      #   icc: Command line remark: option '-MP' not supported
6294      if (grep 'ignoring option' conftest.err ||
6295          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6296        am_cv_CC_dependencies_compiler_type=$depmode
6297        break
6298      fi
6299    fi
6300  done
6301
6302  cd ..
6303  rm -rf conftest.dir
6304else
6305  am_cv_CC_dependencies_compiler_type=none
6306fi
6307
6308fi
6309echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6310echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6311CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6312
6313
6314
6315if
6316  test "x$enable_dependency_tracking" != xno \
6317  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6318  am__fastdepCC_TRUE=
6319  am__fastdepCC_FALSE='#'
6320else
6321  am__fastdepCC_TRUE='#'
6322  am__fastdepCC_FALSE=
6323fi
6324
6325
6326
6327echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6328echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6329    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6330if test "${enable_maintainer_mode+set}" = set; then
6331  enableval="$enable_maintainer_mode"
6332  USE_MAINTAINER_MODE=$enableval
6333else
6334  USE_MAINTAINER_MODE=no
6335fi;
6336  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6337echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6338
6339
6340if test $USE_MAINTAINER_MODE = yes; then
6341  MAINTAINER_MODE_TRUE=
6342  MAINTAINER_MODE_FALSE='#'
6343else
6344  MAINTAINER_MODE_TRUE='#'
6345  MAINTAINER_MODE_FALSE=
6346fi
6347
6348  MAINT=$MAINTAINER_MODE_TRUE
6349
6350
6351
6352coin_have_externals=no
6353if test "$enable_maintainer_mode" = yes; then
6354
6355  # If maintainer mode is chosen, we make sure that the correct versions
6356  # of the tools are used, and that we know where libtool.m4 is (to
6357  # recreate acinclude.m4)
6358
6359
6360  LIBTOOLM4=
6361  # Normally, $HOME
6362  AUTOTOOLS_DFLT=$HOME
6363
6364  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6365echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6366if test "${ac_cv_use_correct_autotools+set}" = set; then
6367  echo $ECHO_N "(cached) $ECHO_C" >&6
6368else
6369  ac_cv_use_correct_autotools=check
6370fi
6371echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6372echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6373
6374  if test $ac_cv_use_correct_autotools = check; then
6375    ac_cv_use_correct_autotools=yes
6376    # Check if we have autoconf
6377    # Extract the first word of "autoconf", so it can be a program name with args.
6378set dummy autoconf; ac_word=$2
6379echo "$as_me:$LINENO: checking for $ac_word" >&5
6380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381if test "${ac_cv_prog_have_autoconf+set}" = set; then
6382  echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384  if test -n "$have_autoconf"; then
6385  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390  IFS=$as_save_IFS
6391  test -z "$as_dir" && as_dir=.
6392  for ac_exec_ext in '' $ac_executable_extensions; do
6393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394    ac_cv_prog_have_autoconf="yes"
6395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396    break 2
6397  fi
6398done
6399done
6400
6401  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6402fi
6403fi
6404have_autoconf=$ac_cv_prog_have_autoconf
6405if test -n "$have_autoconf"; then
6406  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6407echo "${ECHO_T}$have_autoconf" >&6
6408else
6409  echo "$as_me:$LINENO: result: no" >&5
6410echo "${ECHO_T}no" >&6
6411fi
6412
6413    if test $have_autoconf = no; then
6414      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6415echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6416   { (exit 1); exit 1; }; }
6417    fi
6418
6419    # Check whether autoconf is the correct version
6420    correct_version='2.59'
6421    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6422    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6423echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6424    autoconf --version > confauto.out 2>&1
6425    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6426      echo "$as_me:$LINENO: result: yes" >&5
6427echo "${ECHO_T}yes" >&6
6428    else
6429      rm -f confauto.out
6430      echo "$as_me:$LINENO: result: no" >&5
6431echo "${ECHO_T}no" >&6
6432      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6433echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6434   { (exit 1); exit 1; }; }
6435    fi
6436    rm -f confauto.out
6437
6438    # Check if the executable autoconf is picked up from the correct location
6439    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6440echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6441    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6442    autoconf_dir=`cd $autoconf_dir; pwd`
6443    if test x$AUTOTOOLS_DIR = x; then
6444      want_dir=$AUTOTOOLS_DFLT/bin
6445    else
6446      want_dir=$AUTOTOOLS_DIR/bin
6447    fi
6448    if test $autoconf_dir = `cd $want_dir; pwd`; then
6449      echo "$as_me:$LINENO: result: yes" >&5
6450echo "${ECHO_T}yes" >&6
6451    else
6452      rm -f confauto.out
6453      echo "$as_me:$LINENO: result: no" >&5
6454echo "${ECHO_T}no" >&6
6455      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6456echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6457   { (exit 1); exit 1; }; }
6458    fi
6459
6460    # Check if we have automake
6461    # Extract the first word of "automake", so it can be a program name with args.
6462set dummy automake; ac_word=$2
6463echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6465if test "${ac_cv_prog_have_automake+set}" = set; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  if test -n "$have_automake"; then
6469  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474  IFS=$as_save_IFS
6475  test -z "$as_dir" && as_dir=.
6476  for ac_exec_ext in '' $ac_executable_extensions; do
6477  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6478    ac_cv_prog_have_automake="yes"
6479    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480    break 2
6481  fi
6482done
6483done
6484
6485  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6486fi
6487fi
6488have_automake=$ac_cv_prog_have_automake
6489if test -n "$have_automake"; then
6490  echo "$as_me:$LINENO: result: $have_automake" >&5
6491echo "${ECHO_T}$have_automake" >&6
6492else
6493  echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
6495fi
6496
6497    if test $have_automake = no; then
6498      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6499echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6500   { (exit 1); exit 1; }; }
6501    fi
6502
6503    # Check whether automake is the correct version
6504    correct_version='1.9.6'
6505    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6506    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6507echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6508    automake --version > confauto.out 2>&1
6509    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6510      echo "$as_me:$LINENO: result: yes" >&5
6511echo "${ECHO_T}yes" >&6
6512    else
6513      rm -f confauto.out
6514      echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6517echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6518   { (exit 1); exit 1; }; }
6519    fi
6520    rm -f confauto.out
6521
6522    # Check if the executable automake is picked up from the correct location
6523    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6524echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6525    automake_dir=`which automake | sed -e 's=/automake=='`
6526    automake_dir=`cd $automake_dir; pwd`
6527    if test x$AUTOTOOLS_DIR = x; then
6528      want_dir=$AUTOTOOLS_DFLT/bin
6529    else
6530      want_dir=$AUTOTOOLS_DIR/bin
6531    fi
6532    if test $automake_dir = `cd $want_dir; pwd`; then
6533      echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535    else
6536      rm -f confauto.out
6537      echo "$as_me:$LINENO: result: no" >&5
6538echo "${ECHO_T}no" >&6
6539      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6540echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6541   { (exit 1); exit 1; }; }
6542    fi
6543
6544    # Check if this is the correct version of libtool (with escaped dots)
6545    if test x$AUTOTOOLS_DIR = x; then
6546      want_dir=$AUTOTOOLS_DFLT/share
6547    else
6548      want_dir=$AUTOTOOLS_DIR/share
6549    fi
6550    correct_version='1.5.22'
6551    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6552    if test -r $want_dir/libtool/ltmain.sh; then
6553  have_ltmain=yes
6554  :
6555else
6556  have_ltmain=no
6557  :
6558fi
6559
6560    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6561echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6562    if test $have_ltmain = yes; then
6563    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6564        echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6
6566      else
6567        echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
6569        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6570echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6571   { (exit 1); exit 1; }; }
6572      fi
6573    else
6574      echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6
6576      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6577echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6578   { (exit 1); exit 1; }; }
6579    fi
6580  fi
6581
6582  # Check if we can find the libtool file
6583  if test x$AUTOTOOLS_DIR = x; then
6584    want_dir=$AUTOTOOLS_DFLT/share
6585  else
6586    want_dir=$AUTOTOOLS_DIR/share
6587  fi
6588  if test -r $want_dir/aclocal/libtool.m4; then
6589  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6590  :
6591else
6592  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6593echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6594   { (exit 1); exit 1; }; }
6595  :
6596fi
6597
6598
6599  # Check if we have an Dependencies file
6600  if test -r $srcdir/Dependencies; then
6601    coin_have_externals=yes
6602  fi
6603  # Check if subversion is installed and understands https
6604  # Extract the first word of "svn", so it can be a program name with args.
6605set dummy svn; ac_word=$2
6606echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6608if test "${ac_cv_prog_have_svn+set}" = set; then
6609  echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611  if test -n "$have_svn"; then
6612  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617  IFS=$as_save_IFS
6618  test -z "$as_dir" && as_dir=.
6619  for ac_exec_ext in '' $ac_executable_extensions; do
6620  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621    ac_cv_prog_have_svn="yes"
6622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623    break 2
6624  fi
6625done
6626done
6627
6628  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6629fi
6630fi
6631have_svn=$ac_cv_prog_have_svn
6632if test -n "$have_svn"; then
6633  echo "$as_me:$LINENO: result: $have_svn" >&5
6634echo "${ECHO_T}$have_svn" >&6
6635else
6636  echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6
6638fi
6639
6640  if test x$have_svn = xyes; then
6641    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6642echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6643if test "${ac_cv_svn_understands_https+set}" = set; then
6644  echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646  svn --version > confauto.out 2>&1
6647                    if $EGREP https confauto.out >/dev/null 2>&1; then
6648                      ac_cv_svn_understands_https=yes
6649                    else
6650                      ac_cv_svn_understands_https=no
6651                      have_svn=no
6652                      ac_cv_prog_have_svn=no
6653                    fi
6654                    rm -f confauto.out
6655fi
6656echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6657echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6658  fi
6659
6660  # Find the location of the BuildTools directory
6661  BUILDTOOLSDIR=
6662  if test -r $srcdir/BuildTools/coin.m4; then
6663    BUILDTOOLSDIR=$srcdir/BuildTools
6664  else
6665    if test -r $srcdir/../BuildTools/coin.m4; then
6666      BUILDTOOLSDIR=$srcdir/../BuildTools
6667    else
6668      if test -r $srcdir/../../BuildTools/coin.m4; then
6669        BUILDTOOLSDIR=$srcdir/../../BuildTools
6670      else
6671        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6672echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6673   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6674      fi
6675    fi
6676  fi
6677
6678
6679  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6680  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6681    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6682  fi
6683
6684  # The following variable is set to the name of the directory where
6685  # the autotool scripts are located
6686
6687  AUX_DIR=$ac_aux_dir
6688fi
6689
6690# helpful variable for the base directory of this package
6691abs_source_dir=`cd $srcdir; pwd`
6692
6693
6694# Stuff for example Makefiles
6695if test x$prefix = xNONE; then
6696  full_prefix=$ac_default_prefix
6697else
6698  full_prefix=$prefix
6699fi
6700full_prefix=`cd $full_prefix ; pwd`
6701
6702abs_lib_dir=$full_prefix/lib
6703
6704abs_include_dir=$full_prefix/include
6705
6706abs_bin_dir=$full_prefix/bin
6707
6708
6709
6710if test $coin_have_externals = yes && test x$have_svn = xyes; then
6711  HAVE_EXTERNALS_TRUE=
6712  HAVE_EXTERNALS_FALSE='#'
6713else
6714  HAVE_EXTERNALS_TRUE='#'
6715  HAVE_EXTERNALS_FALSE=
6716fi
6717
6718
6719# AC_MSG_NOTICE([End automake initialisation.])
6720
6721
6722
6723LIBTOOL=
6724if test -f ../libtool; then
6725  coin_config_dir=..
6726  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6727fi
6728if test "x$LIBTOOL" = x; then
6729  if test -f ../../libtool; then
6730    coin_config_dir=../..
6731    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6732  fi
6733fi
6734
6735if test "x$LIBTOOL" = x; then
6736# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6737  # Stuff for libtool
6738  # Check whether --enable-shared or --disable-shared was given.
6739if test "${enable_shared+set}" = set; then
6740  enableval="$enable_shared"
6741  p=${PACKAGE-default}
6742    case $enableval in
6743    yes) enable_shared=yes ;;
6744    no) enable_shared=no ;;
6745    *)
6746      enable_shared=no
6747      # Look at the argument we got.  We use all the common list separators.
6748      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6749      for pkg in $enableval; do
6750        IFS="$lt_save_ifs"
6751        if test "X$pkg" = "X$p"; then
6752          enable_shared=yes
6753        fi
6754      done
6755      IFS="$lt_save_ifs"
6756      ;;
6757    esac
6758else
6759  enable_shared=yes
6760fi;
6761
6762# Check whether --enable-fast-install or --disable-fast-install was given.
6763if test "${enable_fast_install+set}" = set; then
6764  enableval="$enable_fast_install"
6765  p=${PACKAGE-default}
6766    case $enableval in
6767    yes) enable_fast_install=yes ;;
6768    no) enable_fast_install=no ;;
6769    *)
6770      enable_fast_install=no
6771      # Look at the argument we got.  We use all the common list separators.
6772      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6773      for pkg in $enableval; do
6774        IFS="$lt_save_ifs"
6775        if test "X$pkg" = "X$p"; then
6776          enable_fast_install=yes
6777        fi
6778      done
6779      IFS="$lt_save_ifs"
6780      ;;
6781    esac
6782else
6783  enable_fast_install=yes
6784fi;
6785
6786echo "$as_me:$LINENO: checking host system type" >&5
6787echo $ECHO_N "checking host system type... $ECHO_C" >&6
6788if test "${ac_cv_host+set}" = set; then
6789  echo $ECHO_N "(cached) $ECHO_C" >&6
6790else
6791  ac_cv_host_alias=$host_alias
6792test -z "$ac_cv_host_alias" &&
6793  ac_cv_host_alias=$ac_cv_build_alias
6794ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6795  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6796echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6797   { (exit 1); exit 1; }; }
6798
6799fi
6800echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6801echo "${ECHO_T}$ac_cv_host" >&6
6802host=$ac_cv_host
6803host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6804host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6805host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6806
6807
6808echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6809echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6810if test "${lt_cv_path_SED+set}" = set; then
6811  echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813  # Loop through the user's path and test for sed and gsed.
6814# Then use that list of sed's as ones to test for truncation.
6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816for as_dir in $PATH
6817do
6818  IFS=$as_save_IFS
6819  test -z "$as_dir" && as_dir=.
6820  for lt_ac_prog in sed gsed; do
6821    for ac_exec_ext in '' $ac_executable_extensions; do
6822      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6823        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6824      fi
6825    done
6826  done
6827done
6828lt_ac_max=0
6829lt_ac_count=0
6830# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6831# along with /bin/sed that truncates output.
6832for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6833  test ! -f $lt_ac_sed && continue
6834  cat /dev/null > conftest.in
6835  lt_ac_count=0
6836  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6837  # Check for GNU sed and select it if it is found.
6838  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6839    lt_cv_path_SED=$lt_ac_sed
6840    break
6841  fi
6842  while true; do
6843    cat conftest.in conftest.in >conftest.tmp
6844    mv conftest.tmp conftest.in
6845    cp conftest.in conftest.nl
6846    echo >>conftest.nl
6847    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6848    cmp -s conftest.out conftest.nl || break
6849    # 10000 chars as input seems more than enough
6850    test $lt_ac_count -gt 10 && break
6851    lt_ac_count=`expr $lt_ac_count + 1`
6852    if test $lt_ac_count -gt $lt_ac_max; then
6853      lt_ac_max=$lt_ac_count
6854      lt_cv_path_SED=$lt_ac_sed
6855    fi
6856  done
6857done
6858
6859fi
6860
6861SED=$lt_cv_path_SED
6862echo "$as_me:$LINENO: result: $SED" >&5
6863echo "${ECHO_T}$SED" >&6
6864
6865
6866# Check whether --with-gnu-ld or --without-gnu-ld was given.
6867if test "${with_gnu_ld+set}" = set; then
6868  withval="$with_gnu_ld"
6869  test "$withval" = no || with_gnu_ld=yes
6870else
6871  with_gnu_ld=no
6872fi;
6873ac_prog=ld
6874if test "$GCC" = yes; then
6875  # Check if gcc -print-prog-name=ld gives a path.
6876  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6877echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6878  case $host in
6879  *-*-mingw*)
6880    # gcc leaves a trailing carriage return which upsets mingw
6881    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6882  *)
6883    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6884  esac
6885  case $ac_prog in
6886    # Accept absolute paths.
6887    [\\/]* | ?:[\\/]*)
6888      re_direlt='/[^/][^/]*/\.\./'
6889      # Canonicalize the pathname of ld
6890      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6891      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6892        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6893      done
6894      test -z "$LD" && LD="$ac_prog"
6895      ;;
6896  "")
6897    # If it fails, then pretend we aren't using GCC.
6898    ac_prog=ld
6899    ;;
6900  *)
6901    # If it is relative, then search for the first ld in PATH.
6902    with_gnu_ld=unknown
6903    ;;
6904  esac
6905elif test "$with_gnu_ld" = yes; then
6906  echo "$as_me:$LINENO: checking for GNU ld" >&5
6907echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6908else
6909  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6910echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6911fi
6912if test "${lt_cv_path_LD+set}" = set; then
6913  echo $ECHO_N "(cached) $ECHO_C" >&6
6914else
6915  if test -z "$LD"; then
6916  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6917  for ac_dir in $PATH; do
6918    IFS="$lt_save_ifs"
6919    test -z "$ac_dir" && ac_dir=.
6920    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6921      lt_cv_path_LD="$ac_dir/$ac_prog"
6922      # Check to see if the program is GNU ld.  I'd rather use --version,
6923      # but apparently some variants of GNU ld only accept -v.
6924      # Break only if it was the GNU/non-GNU ld that we prefer.
6925      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6926      *GNU* | *'with BFD'*)
6927        test "$with_gnu_ld" != no && break
6928        ;;
6929      *)
6930        test "$with_gnu_ld" != yes && break
6931        ;;
6932      esac
6933    fi
6934  done
6935  IFS="$lt_save_ifs"
6936else
6937  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6938fi
6939fi
6940
6941LD="$lt_cv_path_LD"
6942if test -n "$LD"; then
6943  echo "$as_me:$LINENO: result: $LD" >&5
6944echo "${ECHO_T}$LD" >&6
6945else
6946  echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6
6948fi
6949test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6950echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6951   { (exit 1); exit 1; }; }
6952echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6953echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6954if test "${lt_cv_prog_gnu_ld+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6958case `$LD -v 2>&1 </dev/null` in
6959*GNU* | *'with BFD'*)
6960  lt_cv_prog_gnu_ld=yes
6961  ;;
6962*)
6963  lt_cv_prog_gnu_ld=no
6964  ;;
6965esac
6966fi
6967echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6968echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6969with_gnu_ld=$lt_cv_prog_gnu_ld
6970
6971
6972echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6973echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6974if test "${lt_cv_ld_reload_flag+set}" = set; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  lt_cv_ld_reload_flag='-r'
6978fi
6979echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6980echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6981reload_flag=$lt_cv_ld_reload_flag
6982case $reload_flag in
6983"" | " "*) ;;
6984*) reload_flag=" $reload_flag" ;;
6985esac
6986reload_cmds='$LD$reload_flag -o $output$reload_objs'
6987case $host_os in
6988  darwin*)
6989    if test "$GCC" = yes; then
6990      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6991    else
6992      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6993    fi
6994    ;;
6995esac
6996
6997echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6998echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6999if test "${lt_cv_path_NM+set}" = set; then
7000  echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002  if test -n "$NM"; then
7003  # Let the user override the test.
7004  lt_cv_path_NM="$NM"
7005else
7006  lt_nm_to_check="${ac_tool_prefix}nm"
7007  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7008    lt_nm_to_check="$lt_nm_to_check nm"
7009  fi
7010  for lt_tmp_nm in $lt_nm_to_check; do
7011    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7013      IFS="$lt_save_ifs"
7014      test -z "$ac_dir" && ac_dir=.
7015      tmp_nm="$ac_dir/$lt_tmp_nm"
7016      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7017        # Check to see if the nm accepts a BSD-compat flag.
7018        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7019        #   nm: unknown option "B" ignored
7020        # Tru64's nm complains that /dev/null is an invalid object file
7021        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7022        */dev/null* | *'Invalid file or object type'*)
7023          lt_cv_path_NM="$tmp_nm -B"
7024          break
7025          ;;
7026        *)
7027          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7028          */dev/null*)
7029            lt_cv_path_NM="$tmp_nm -p"
7030            break
7031            ;;
7032          *)
7033            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7034            continue # so that we can try to find one that supports BSD flags
7035            ;;
7036          esac
7037          ;;
7038        esac
7039      fi
7040    done
7041    IFS="$lt_save_ifs"
7042  done
7043  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7044fi
7045fi
7046echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7047echo "${ECHO_T}$lt_cv_path_NM" >&6
7048NM="$lt_cv_path_NM"
7049
7050echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7051echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7052if test "${lt_cv_deplibs_check_method+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  lt_cv_file_magic_cmd='$MAGIC_CMD'
7056lt_cv_file_magic_test_file=
7057lt_cv_deplibs_check_method='unknown'
7058# Need to set the preceding variable on all platforms that support
7059# interlibrary dependencies.
7060# 'none' -- dependencies not supported.
7061# `unknown' -- same as none, but documents that we really don't know.
7062# 'pass_all' -- all dependencies passed with no checks.
7063# 'test_compile' -- check by making test program.
7064# 'file_magic [[regex]]' -- check by looking for files in library path
7065# which responds to the $file_magic_cmd with a given extended regex.
7066# If you have `file' or equivalent on your system and you're not sure
7067# whether `pass_all' will *always* work, you probably want this one.
7068
7069case $host_os in
7070aix4* | aix5*)
7071  lt_cv_deplibs_check_method=pass_all
7072  ;;
7073
7074beos*)
7075  lt_cv_deplibs_check_method=pass_all
7076  ;;
7077
7078bsdi[45]*)
7079  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7080  lt_cv_file_magic_cmd='/usr/bin/file -L'
7081  lt_cv_file_magic_test_file=/shlib/libc.so
7082  ;;
7083
7084cygwin*)
7085  # func_win32_libid is a shell function defined in ltmain.sh
7086  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7087  lt_cv_file_magic_cmd='func_win32_libid'
7088  ;;
7089
7090mingw* | pw32*)
7091  # Base MSYS/MinGW do not provide the 'file' command needed by
7092  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7093  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7094  lt_cv_file_magic_cmd='$OBJDUMP -f'
7095  ;;
7096
7097darwin* | rhapsody*)
7098  lt_cv_deplibs_check_method=pass_all
7099  ;;
7100
7101freebsd* | kfreebsd*-gnu | dragonfly*)
7102  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7103    case $host_cpu in
7104    i*86 )
7105      # Not sure whether the presence of OpenBSD here was a mistake.
7106      # Let's accept both of them until this is cleared up.
7107      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7108      lt_cv_file_magic_cmd=/usr/bin/file
7109      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7110      ;;
7111    esac
7112  else
7113    lt_cv_deplibs_check_method=pass_all
7114  fi
7115  ;;
7116
7117gnu*)
7118  lt_cv_deplibs_check_method=pass_all
7119  ;;
7120
7121hpux10.20* | hpux11*)
7122  lt_cv_file_magic_cmd=/usr/bin/file
7123  case $host_cpu in
7124  ia64*)
7125    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7126    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7127    ;;
7128  hppa*64*)
7129    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]'
7130    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7131    ;;
7132  *)
7133    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7134    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7135    ;;
7136  esac
7137  ;;
7138
7139interix3*)
7140  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7141  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7142  ;;
7143
7144irix5* | irix6* | nonstopux*)
7145  case $LD in
7146  *-32|*"-32 ") libmagic=32-bit;;
7147  *-n32|*"-n32 ") libmagic=N32;;
7148  *-64|*"-64 ") libmagic=64-bit;;
7149  *) libmagic=never-match;;
7150  esac
7151  lt_cv_deplibs_check_method=pass_all
7152  ;;
7153
7154# This must be Linux ELF.
7155linux*)
7156  lt_cv_deplibs_check_method=pass_all
7157  ;;
7158
7159netbsd*)
7160  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7161    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7162  else
7163    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7164  fi
7165  ;;
7166
7167newos6*)
7168  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7169  lt_cv_file_magic_cmd=/usr/bin/file
7170  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7171  ;;
7172
7173nto-qnx*)
7174  lt_cv_deplibs_check_method=unknown
7175  ;;
7176
7177openbsd*)
7178  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7179    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7180  else
7181    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7182  fi
7183  ;;
7184
7185osf3* | osf4* | osf5*)
7186  lt_cv_deplibs_check_method=pass_all
7187  ;;
7188
7189solaris*)
7190  lt_cv_deplibs_check_method=pass_all
7191  ;;
7192
7193sysv4 | sysv4.3*)
7194  case $host_vendor in
7195  motorola)
7196    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]'
7197    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7198    ;;
7199  ncr)
7200    lt_cv_deplibs_check_method=pass_all
7201    ;;
7202  sequent)
7203    lt_cv_file_magic_cmd='/bin/file'
7204    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7205    ;;
7206  sni)
7207    lt_cv_file_magic_cmd='/bin/file'
7208    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7209    lt_cv_file_magic_test_file=/lib/libc.so
7210    ;;
7211  siemens)
7212    lt_cv_deplibs_check_method=pass_all
7213    ;;
7214  pc)
7215    lt_cv_deplibs_check_method=pass_all
7216    ;;
7217  esac
7218  ;;
7219
7220sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7221  lt_cv_deplibs_check_method=pass_all
7222  ;;
7223esac
7224
7225fi
7226echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7227echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7228file_magic_cmd=$lt_cv_file_magic_cmd
7229deplibs_check_method=$lt_cv_deplibs_check_method
7230test -z "$deplibs_check_method" && deplibs_check_method=unknown
7231
7232
7233
7234
7235# If no C compiler was specified, use CC.
7236LTCC=${LTCC-"$CC"}
7237
7238# If no C compiler flags were specified, use CFLAGS.
7239LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7240
7241# Allow CC to be a program name with arguments.
7242compiler=$CC
7243
7244# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7245if test "${enable_libtool_lock+set}" = set; then
7246  enableval="$enable_libtool_lock"
7247
7248fi;
7249test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7250
7251# Some flags need to be propagated to the compiler or linker for good
7252# libtool support.
7253case $host in
7254ia64-*-hpux*)
7255  # Find out which ABI we are using.
7256  echo 'int i;' > conftest.$ac_ext
7257  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7258  (eval $ac_compile) 2>&5
7259  ac_status=$?
7260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261  (exit $ac_status); }; then
7262    case `/usr/bin/file conftest.$ac_objext` in
7263    *ELF-32*)
7264      HPUX_IA64_MODE="32"
7265      ;;
7266    *ELF-64*)
7267      HPUX_IA64_MODE="64"
7268      ;;
7269    esac
7270  fi
7271  rm -rf conftest*
7272  ;;
7273*-*-irix6*)
7274  # Find out which ABI we are using.
7275  echo '#line 7275 "configure"' > conftest.$ac_ext
7276  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7277  (eval $ac_compile) 2>&5
7278  ac_status=$?
7279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280  (exit $ac_status); }; then
7281   if test "$lt_cv_prog_gnu_ld" = yes; then
7282    case `/usr/bin/file conftest.$ac_objext` in
7283    *32-bit*)
7284      LD="${LD-ld} -melf32bsmip"
7285      ;;
7286    *N32*)
7287      LD="${LD-ld} -melf32bmipn32"
7288      ;;
7289    *64-bit*)
7290      LD="${LD-ld} -melf64bmip"
7291      ;;
7292    esac
7293   else
7294    case `/usr/bin/file conftest.$ac_objext` in
7295    *32-bit*)
7296      LD="${LD-ld} -32"
7297      ;;
7298    *N32*)
7299      LD="${LD-ld} -n32"
7300      ;;
7301    *64-bit*)
7302      LD="${LD-ld} -64"
7303      ;;
7304    esac
7305   fi
7306  fi
7307  rm -rf conftest*
7308  ;;
7309
7310x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7311  # Find out which ABI we are using.
7312  echo 'int i;' > conftest.$ac_ext
7313  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7314  (eval $ac_compile) 2>&5
7315  ac_status=$?
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); }; then
7318    case `/usr/bin/file conftest.o` in
7319    *32-bit*)
7320      case $host in
7321        x86_64-*linux*)
7322          LD="${LD-ld} -m elf_i386"
7323          ;;
7324        ppc64-*linux*|powerpc64-*linux*)
7325          LD="${LD-ld} -m elf32ppclinux"
7326          ;;
7327        s390x-*linux*)
7328          LD="${LD-ld} -m elf_s390"
7329          ;;
7330        sparc64-*linux*)
7331          LD="${LD-ld} -m elf32_sparc"
7332          ;;
7333      esac
7334      ;;
7335    *64-bit*)
7336      case $host in
7337        x86_64-*linux*)
7338          LD="${LD-ld} -m elf_x86_64"
7339          ;;
7340        ppc*-*linux*|powerpc*-*linux*)
7341          LD="${LD-ld} -m elf64ppc"
7342          ;;
7343        s390*-*linux*)
7344          LD="${LD-ld} -m elf64_s390"
7345          ;;
7346        sparc*-*linux*)
7347          LD="${LD-ld} -m elf64_sparc"
7348          ;;
7349      esac
7350      ;;
7351    esac
7352  fi
7353  rm -rf conftest*
7354  ;;
7355
7356*-*-sco3.2v5*)
7357  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7358  SAVE_CFLAGS="$CFLAGS"
7359  CFLAGS="$CFLAGS -belf"
7360  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7361echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7362if test "${lt_cv_cc_needs_belf+set}" = set; then
7363  echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365  ac_ext=c
7366ac_cpp='$CPP $CPPFLAGS'
7367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371     cat >conftest.$ac_ext <<_ACEOF
7372/* confdefs.h.  */
7373_ACEOF
7374cat confdefs.h >>conftest.$ac_ext
7375cat >>conftest.$ac_ext <<_ACEOF
7376/* end confdefs.h.  */
7377
7378#ifdef F77_DUMMY_MAIN
7379
7380#  ifdef __cplusplus
7381     extern "C"
7382#  endif
7383   int F77_DUMMY_MAIN() { return 1; }
7384
7385#endif
7386int
7387main ()
7388{
7389
7390  ;
7391  return 0;
7392}
7393_ACEOF
7394rm -f conftest.$ac_objext conftest$ac_exeext
7395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7396  (eval $ac_link) 2>conftest.er1
7397  ac_status=$?
7398  grep -v '^ *+' conftest.er1 >conftest.err
7399  rm -f conftest.er1
7400  cat conftest.err >&5
7401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402  (exit $ac_status); } &&
7403         { ac_try='test -z "$ac_c_werror_flag"
7404                         || test ! -s conftest.err'
7405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406  (eval $ac_try) 2>&5
7407  ac_status=$?
7408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409  (exit $ac_status); }; } &&
7410         { ac_try='test -s conftest$ac_exeext'
7411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412  (eval $ac_try) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); }; }; then
7416  lt_cv_cc_needs_belf=yes
7417else
7418  echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421lt_cv_cc_needs_belf=no
7422fi
7423rm -f conftest.err conftest.$ac_objext \
7424      conftest$ac_exeext conftest.$ac_ext
7425     ac_ext=c
7426ac_cpp='$CPP $CPPFLAGS'
7427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429ac_compiler_gnu=$ac_cv_c_compiler_gnu
7430
7431fi
7432echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7433echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7434  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7435    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7436    CFLAGS="$SAVE_CFLAGS"
7437  fi
7438  ;;
7439sparc*-*solaris*)
7440  # Find out which ABI we are using.
7441  echo 'int i;' > conftest.$ac_ext
7442  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443  (eval $ac_compile) 2>&5
7444  ac_status=$?
7445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446  (exit $ac_status); }; then
7447    case `/usr/bin/file conftest.o` in
7448    *64-bit*)
7449      case $lt_cv_prog_gnu_ld in
7450      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7451      *)    LD="${LD-ld} -64" ;;
7452      esac
7453      ;;
7454    esac
7455  fi
7456  rm -rf conftest*
7457  ;;
7458
7459
7460esac
7461
7462need_locks="$enable_libtool_lock"
7463
7464
7465ac_ext=c
7466ac_cpp='$CPP $CPPFLAGS'
7467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7471echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7472# On Suns, sometimes $CPP names a directory.
7473if test -n "$CPP" && test -d "$CPP"; then
7474  CPP=
7475fi
7476if test -z "$CPP"; then
7477  if test "${ac_cv_prog_CPP+set}" = set; then
7478  echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480      # Double quotes because CPP needs to be expanded
7481    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7482    do
7483      ac_preproc_ok=false
7484for ac_c_preproc_warn_flag in '' yes
7485do
7486  # Use a header file that comes with gcc, so configuring glibc
7487  # with a fresh cross-compiler works.
7488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7489  # <limits.h> exists even on freestanding compilers.
7490  # On the NeXT, cc -E runs the code through the compiler's parser,
7491  # not just through cpp. "Syntax error" is here to catch this case.
7492  cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h.  */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h.  */
7498#ifdef __STDC__
7499# include <limits.h>
7500#else
7501# include <assert.h>
7502#endif
7503                     Syntax error
7504_ACEOF
7505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7507  ac_status=$?
7508  grep -v '^ *+' conftest.er1 >conftest.err
7509  rm -f conftest.er1
7510  cat conftest.err >&5
7511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); } >/dev/null; then
7513  if test -s conftest.err; then
7514    ac_cpp_err=$ac_c_preproc_warn_flag
7515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7516  else
7517    ac_cpp_err=
7518  fi
7519else
7520  ac_cpp_err=yes
7521fi
7522if test -z "$ac_cpp_err"; then
7523  :
7524else
7525  echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528  # Broken: fails on valid input.
7529continue
7530fi
7531rm -f conftest.err conftest.$ac_ext
7532
7533  # OK, works on sane cases.  Now check whether non-existent headers
7534  # can be detected and how.
7535  cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h.  */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h.  */
7541#include <ac_nonexistent.h>
7542_ACEOF
7543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7545  ac_status=$?
7546  grep -v '^ *+' conftest.er1 >conftest.err
7547  rm -f conftest.er1
7548  cat conftest.err >&5
7549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550  (exit $ac_status); } >/dev/null; then
7551  if test -s conftest.err; then
7552    ac_cpp_err=$ac_c_preproc_warn_flag
7553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7554  else
7555    ac_cpp_err=
7556  fi
7557else
7558  ac_cpp_err=yes
7559fi
7560if test -z "$ac_cpp_err"; then
7561  # Broken: success on invalid input.
7562continue
7563else
7564  echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567  # Passes both tests.
7568ac_preproc_ok=:
7569break
7570fi
7571rm -f conftest.err conftest.$ac_ext
7572
7573done
7574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7575rm -f conftest.err conftest.$ac_ext
7576if $ac_preproc_ok; then
7577  break
7578fi
7579
7580    done
7581    ac_cv_prog_CPP=$CPP
7582
7583fi
7584  CPP=$ac_cv_prog_CPP
7585else
7586  ac_cv_prog_CPP=$CPP
7587fi
7588echo "$as_me:$LINENO: result: $CPP" >&5
7589echo "${ECHO_T}$CPP" >&6
7590ac_preproc_ok=false
7591for ac_c_preproc_warn_flag in '' yes
7592do
7593  # Use a header file that comes with gcc, so configuring glibc
7594  # with a fresh cross-compiler works.
7595  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7596  # <limits.h> exists even on freestanding compilers.
7597  # On the NeXT, cc -E runs the code through the compiler's parser,
7598  # not just through cpp. "Syntax error" is here to catch this case.
7599  cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h.  */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h.  */
7605#ifdef __STDC__
7606# include <limits.h>
7607#else
7608# include <assert.h>
7609#endif
7610                     Syntax error
7611_ACEOF
7612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7614  ac_status=$?
7615  grep -v '^ *+' conftest.er1 >conftest.err
7616  rm -f conftest.er1
7617  cat conftest.err >&5
7618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); } >/dev/null; then
7620  if test -s conftest.err; then
7621    ac_cpp_err=$ac_c_preproc_warn_flag
7622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7623  else
7624    ac_cpp_err=
7625  fi
7626else
7627  ac_cpp_err=yes
7628fi
7629if test -z "$ac_cpp_err"; then
7630  :
7631else
7632  echo "$as_me: failed program was:" >&5
7633sed 's/^/| /' conftest.$ac_ext >&5
7634
7635  # Broken: fails on valid input.
7636continue
7637fi
7638rm -f conftest.err conftest.$ac_ext
7639
7640  # OK, works on sane cases.  Now check whether non-existent headers
7641  # can be detected and how.
7642  cat >conftest.$ac_ext <<_ACEOF
7643/* confdefs.h.  */
7644_ACEOF
7645cat confdefs.h >>conftest.$ac_ext
7646cat >>conftest.$ac_ext <<_ACEOF
7647/* end confdefs.h.  */
7648#include <ac_nonexistent.h>
7649_ACEOF
7650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7651  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7652  ac_status=$?
7653  grep -v '^ *+' conftest.er1 >conftest.err
7654  rm -f conftest.er1
7655  cat conftest.err >&5
7656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657  (exit $ac_status); } >/dev/null; then
7658  if test -s conftest.err; then
7659    ac_cpp_err=$ac_c_preproc_warn_flag
7660    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7661  else
7662    ac_cpp_err=
7663  fi
7664else
7665  ac_cpp_err=yes
7666fi
7667if test -z "$ac_cpp_err"; then
7668  # Broken: success on invalid input.
7669continue
7670else
7671  echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674  # Passes both tests.
7675ac_preproc_ok=:
7676break
7677fi
7678rm -f conftest.err conftest.$ac_ext
7679
7680done
7681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7682rm -f conftest.err conftest.$ac_ext
7683if $ac_preproc_ok; then
7684  :
7685else
7686  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7687See \`config.log' for more details." >&5
7688echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7689See \`config.log' for more details." >&2;}
7690   { (exit 1); exit 1; }; }
7691fi
7692
7693ac_ext=c
7694ac_cpp='$CPP $CPPFLAGS'
7695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697ac_compiler_gnu=$ac_cv_c_compiler_gnu
7698
7699
7700echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7701echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7702if test "${ac_cv_header_stdc+set}" = set; then
7703  echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705  cat >conftest.$ac_ext <<_ACEOF
7706/* confdefs.h.  */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h.  */
7711#include <stdlib.h>
7712#include <stdarg.h>
7713#include <string.h>
7714#include <float.h>
7715
7716#ifdef F77_DUMMY_MAIN
7717
7718#  ifdef __cplusplus
7719     extern "C"
7720#  endif
7721   int F77_DUMMY_MAIN() { return 1; }
7722
7723#endif
7724int
7725main ()
7726{
7727
7728  ;
7729  return 0;
7730}
7731_ACEOF
7732rm -f conftest.$ac_objext
7733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7734  (eval $ac_compile) 2>conftest.er1
7735  ac_status=$?
7736  grep -v '^ *+' conftest.er1 >conftest.err
7737  rm -f conftest.er1
7738  cat conftest.err >&5
7739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740  (exit $ac_status); } &&
7741         { ac_try='test -z "$ac_c_werror_flag"
7742                         || test ! -s conftest.err'
7743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7744  (eval $ac_try) 2>&5
7745  ac_status=$?
7746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747  (exit $ac_status); }; } &&
7748         { ac_try='test -s conftest.$ac_objext'
7749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750  (eval $ac_try) 2>&5
7751  ac_status=$?
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); }; }; then
7754  ac_cv_header_stdc=yes
7755else
7756  echo "$as_me: failed program was:" >&5
7757sed 's/^/| /' conftest.$ac_ext >&5
7758
7759ac_cv_header_stdc=no
7760fi
7761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7762
7763if test $ac_cv_header_stdc = yes; then
7764  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7765  cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h.  */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h.  */
7771#include <string.h>
7772
7773_ACEOF
7774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7775  $EGREP "memchr" >/dev/null 2>&1; then
7776  :
7777else
7778  ac_cv_header_stdc=no
7779fi
7780rm -f conftest*
7781
7782fi
7783
7784if test $ac_cv_header_stdc = yes; then
7785  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7786  cat >conftest.$ac_ext <<_ACEOF
7787/* confdefs.h.  */
7788_ACEOF
7789cat confdefs.h >>conftest.$ac_ext
7790cat >>conftest.$ac_ext <<_ACEOF
7791/* end confdefs.h.  */
7792#include <stdlib.h>
7793
7794_ACEOF
7795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7796  $EGREP "free" >/dev/null 2>&1; then
7797  :
7798else
7799  ac_cv_header_stdc=no
7800fi
7801rm -f conftest*
7802
7803fi
7804
7805if test $ac_cv_header_stdc = yes; then
7806  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7807  if test "$cross_compiling" = yes; then
7808  :
7809else
7810  cat >conftest.$ac_ext <<_ACEOF
7811/* confdefs.h.  */
7812_ACEOF
7813cat confdefs.h >>conftest.$ac_ext
7814cat >>conftest.$ac_ext <<_ACEOF
7815/* end confdefs.h.  */
7816#include <ctype.h>
7817#if ((' ' & 0x0FF) == 0x020)
7818# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7819# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7820#else
7821# define ISLOWER(c) \
7822                   (('a' <= (c) && (c) <= 'i') \
7823                     || ('j' <= (c) && (c) <= 'r') \
7824                     || ('s' <= (c) && (c) <= 'z'))
7825# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7826#endif
7827
7828#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7829int
7830main ()
7831{
7832  int i;
7833  for (i = 0; i < 256; i++)
7834    if (XOR (islower (i), ISLOWER (i))
7835        || toupper (i) != TOUPPER (i))
7836      exit(2);
7837  exit (0);
7838}
7839_ACEOF
7840rm -f conftest$ac_exeext
7841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842  (eval $ac_link) 2>&5
7843  ac_status=$?
7844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847  (eval $ac_try) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); }; }; then
7851  :
7852else
7853  echo "$as_me: program exited with status $ac_status" >&5
7854echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857( exit $ac_status )
7858ac_cv_header_stdc=no
7859fi
7860rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7861fi
7862fi
7863fi
7864echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7865echo "${ECHO_T}$ac_cv_header_stdc" >&6
7866if test $ac_cv_header_stdc = yes; then
7867
7868cat >>confdefs.h <<\_ACEOF
7869#define STDC_HEADERS 1
7870_ACEOF
7871
7872fi
7873
7874# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7885                  inttypes.h stdint.h unistd.h
7886do
7887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7888echo "$as_me:$LINENO: checking for $ac_header" >&5
7889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7890if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  cat >conftest.$ac_ext <<_ACEOF
7894/* confdefs.h.  */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h.  */
7899$ac_includes_default
7900
7901#include <$ac_header>
7902_ACEOF
7903rm -f conftest.$ac_objext
7904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905  (eval $ac_compile) 2>conftest.er1
7906  ac_status=$?
7907  grep -v '^ *+' conftest.er1 >conftest.err
7908  rm -f conftest.er1
7909  cat conftest.err >&5
7910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911  (exit $ac_status); } &&
7912         { ac_try='test -z "$ac_c_werror_flag"
7913                         || test ! -s conftest.err'
7914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915  (eval $ac_try) 2>&5
7916  ac_status=$?
7917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918  (exit $ac_status); }; } &&
7919         { ac_try='test -s conftest.$ac_objext'
7920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921  (eval $ac_try) 2>&5
7922  ac_status=$?
7923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924  (exit $ac_status); }; }; then
7925  eval "$as_ac_Header=yes"
7926else
7927  echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930eval "$as_ac_Header=no"
7931fi
7932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7933fi
7934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7936if test `eval echo '${'$as_ac_Header'}'` = yes; then
7937  cat >>confdefs.h <<_ACEOF
7938#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7939_ACEOF
7940
7941fi
7942
7943done
7944
7945
7946
7947for ac_header in dlfcn.h
7948do
7949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950if eval "test \"\${$as_ac_Header+set}\" = set"; then
7951  echo "$as_me:$LINENO: checking for $ac_header" >&5
7952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954  echo $ECHO_N "(cached) $ECHO_C" >&6
7955fi
7956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958else
7959  # Is the header compilable?
7960echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7962cat >conftest.$ac_ext <<_ACEOF
7963/* confdefs.h.  */
7964_ACEOF
7965cat confdefs.h >>conftest.$ac_ext
7966cat >>conftest.$ac_ext <<_ACEOF
7967/* end confdefs.h.  */
7968$ac_includes_default
7969#include <$ac_header>
7970_ACEOF
7971rm -f conftest.$ac_objext
7972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973  (eval $ac_compile) 2>conftest.er1
7974  ac_status=$?
7975  grep -v '^ *+' conftest.er1 >conftest.err
7976  rm -f conftest.er1
7977  cat conftest.err >&5
7978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979  (exit $ac_status); } &&
7980         { ac_try='test -z "$ac_c_werror_flag"
7981                         || test ! -s conftest.err'
7982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983  (eval $ac_try) 2>&5
7984  ac_status=$?
7985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986  (exit $ac_status); }; } &&
7987         { ac_try='test -s conftest.$ac_objext'
7988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989  (eval $ac_try) 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); }; }; then
7993  ac_header_compiler=yes
7994else
7995  echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998ac_header_compiler=no
7999fi
8000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8002echo "${ECHO_T}$ac_header_compiler" >&6
8003
8004# Is the header present?
8005echo "$as_me:$LINENO: checking $ac_header presence" >&5
8006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8007cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h.  */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h.  */
8013#include <$ac_header>
8014_ACEOF
8015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8016  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8017  ac_status=$?
8018  grep -v '^ *+' conftest.er1 >conftest.err
8019  rm -f conftest.er1
8020  cat conftest.err >&5
8021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022  (exit $ac_status); } >/dev/null; then
8023  if test -s conftest.err; then
8024    ac_cpp_err=$ac_c_preproc_warn_flag
8025    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8026  else
8027    ac_cpp_err=
8028  fi
8029else
8030  ac_cpp_err=yes
8031fi
8032if test -z "$ac_cpp_err"; then
8033  ac_header_preproc=yes
8034else
8035  echo "$as_me: failed program was:" >&5
8036sed 's/^/| /' conftest.$ac_ext >&5
8037
8038  ac_header_preproc=no
8039fi
8040rm -f conftest.err conftest.$ac_ext
8041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042echo "${ECHO_T}$ac_header_preproc" >&6
8043
8044# So?  What about this header?
8045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8046  yes:no: )
8047    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8051    ac_header_preproc=yes
8052    ;;
8053  no:yes:* )
8054    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8056    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8057echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8058    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8060    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8061echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8062    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8066    (
8067      cat <<\_ASBOX
8068## --------------------------------------------------------------- ##
8069## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8070## --------------------------------------------------------------- ##
8071_ASBOX
8072    ) |
8073      sed "s/^/$as_me: WARNING:     /" >&2
8074    ;;
8075esac
8076echo "$as_me:$LINENO: checking for $ac_header" >&5
8077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081  eval "$as_ac_Header=\$ac_header_preproc"
8082fi
8083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8085
8086fi
8087if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088  cat >>confdefs.h <<_ACEOF
8089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090_ACEOF
8091
8092fi
8093
8094done
8095
8096ac_ext=cc
8097ac_cpp='$CXXCPP $CPPFLAGS'
8098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8101if test -n "$ac_tool_prefix"; then
8102  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8103  do
8104    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8106echo "$as_me:$LINENO: checking for $ac_word" >&5
8107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8108if test "${ac_cv_prog_CXX+set}" = set; then
8109  echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111  if test -n "$CXX"; then
8112  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8113else
8114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  test -z "$as_dir" && as_dir=.
8119  for ac_exec_ext in '' $ac_executable_extensions; do
8120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123    break 2
8124  fi
8125done
8126done
8127
8128fi
8129fi
8130CXX=$ac_cv_prog_CXX
8131if test -n "$CXX"; then
8132  echo "$as_me:$LINENO: result: $CXX" >&5
8133echo "${ECHO_T}$CXX" >&6
8134else
8135  echo "$as_me:$LINENO: result: no" >&5
8136echo "${ECHO_T}no" >&6
8137fi
8138
8139    test -n "$CXX" && break
8140  done
8141fi
8142if test -z "$CXX"; then
8143  ac_ct_CXX=$CXX
8144  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8145do
8146  # Extract the first word of "$ac_prog", so it can be a program name with args.
8147set dummy $ac_prog; ac_word=$2
8148echo "$as_me:$LINENO: checking for $ac_word" >&5
8149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8151  echo $ECHO_N "(cached) $ECHO_C" >&6
8152else
8153  if test -n "$ac_ct_CXX"; then
8154  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8155else
8156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157for as_dir in $PATH
8158do
8159  IFS=$as_save_IFS
8160  test -z "$as_dir" && as_dir=.
8161  for ac_exec_ext in '' $ac_executable_extensions; do
8162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163    ac_cv_prog_ac_ct_CXX="$ac_prog"
8164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165    break 2
8166  fi
8167done
8168done
8169
8170fi
8171fi
8172ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8173if test -n "$ac_ct_CXX"; then
8174  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8175echo "${ECHO_T}$ac_ct_CXX" >&6
8176else
8177  echo "$as_me:$LINENO: result: no" >&5
8178echo "${ECHO_T}no" >&6
8179fi
8180
8181  test -n "$ac_ct_CXX" && break
8182done
8183test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8184
8185  CXX=$ac_ct_CXX
8186fi
8187
8188
8189# Provide some information about the compiler.
8190echo "$as_me:$LINENO:" \
8191     "checking for C++ compiler version" >&5
8192ac_compiler=`set X $ac_compile; echo $2`
8193{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8194  (eval $ac_compiler --version </dev/null >&5) 2>&5
8195  ac_status=$?
8196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197  (exit $ac_status); }
8198{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8199  (eval $ac_compiler -v </dev/null >&5) 2>&5
8200  ac_status=$?
8201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202  (exit $ac_status); }
8203{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8204  (eval $ac_compiler -V </dev/null >&5) 2>&5
8205  ac_status=$?
8206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207  (exit $ac_status); }
8208
8209echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8210echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8211if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8212  echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214  cat >conftest.$ac_ext <<_ACEOF
8215/* confdefs.h.  */
8216_ACEOF
8217cat confdefs.h >>conftest.$ac_ext
8218cat >>conftest.$ac_ext <<_ACEOF
8219/* end confdefs.h.  */
8220
8221#ifdef F77_DUMMY_MAIN
8222
8223#  ifdef __cplusplus
8224     extern "C"
8225#  endif
8226   int F77_DUMMY_MAIN() { return 1; }
8227
8228#endif
8229int
8230main ()
8231{
8232#ifndef __GNUC__
8233       choke me
8234#endif
8235
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext
8241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242  (eval $ac_compile) 2>conftest.er1
8243  ac_status=$?
8244  grep -v '^ *+' conftest.er1 >conftest.err
8245  rm -f conftest.er1
8246  cat conftest.err >&5
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); } &&
8249         { ac_try='test -z "$ac_cxx_werror_flag"
8250                         || test ! -s conftest.err'
8251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252  (eval $ac_try) 2>&5
8253  ac_status=$?
8254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255  (exit $ac_status); }; } &&
8256         { ac_try='test -s conftest.$ac_objext'
8257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258  (eval $ac_try) 2>&5
8259  ac_status=$?
8260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261  (exit $ac_status); }; }; then
8262  ac_compiler_gnu=yes
8263else
8264  echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267ac_compiler_gnu=no
8268fi
8269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8270ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8271
8272fi
8273echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8274echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8275GXX=`test $ac_compiler_gnu = yes && echo yes`
8276ac_test_CXXFLAGS=${CXXFLAGS+set}
8277ac_save_CXXFLAGS=$CXXFLAGS
8278CXXFLAGS="-g"
8279echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8280echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8281if test "${ac_cv_prog_cxx_g+set}" = set; then
8282  echo $ECHO_N "(cached) $ECHO_C" >&6
8283else
8284  cat >conftest.$ac_ext <<_ACEOF
8285/* confdefs.h.  */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h.  */
8290
8291#ifdef F77_DUMMY_MAIN
8292
8293#  ifdef __cplusplus
8294     extern "C"
8295#  endif
8296   int F77_DUMMY_MAIN() { return 1; }
8297
8298#endif
8299int
8300main ()
8301{
8302
8303  ;
8304  return 0;
8305}
8306_ACEOF
8307rm -f conftest.$ac_objext
8308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8309  (eval $ac_compile) 2>conftest.er1
8310  ac_status=$?
8311  grep -v '^ *+' conftest.er1 >conftest.err
8312  rm -f conftest.er1
8313  cat conftest.err >&5
8314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315  (exit $ac_status); } &&
8316         { ac_try='test -z "$ac_cxx_werror_flag"
8317                         || test ! -s conftest.err'
8318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319  (eval $ac_try) 2>&5
8320  ac_status=$?
8321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322  (exit $ac_status); }; } &&
8323         { ac_try='test -s conftest.$ac_objext'
8324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325  (eval $ac_try) 2>&5
8326  ac_status=$?
8327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328  (exit $ac_status); }; }; then
8329  ac_cv_prog_cxx_g=yes
8330else
8331  echo "$as_me: failed program was:" >&5
8332sed 's/^/| /' conftest.$ac_ext >&5
8333
8334ac_cv_prog_cxx_g=no
8335fi
8336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8337fi
8338echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8339echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8340if test "$ac_test_CXXFLAGS" = set; then
8341  CXXFLAGS=$ac_save_CXXFLAGS
8342elif test $ac_cv_prog_cxx_g = yes; then
8343  if test "$GXX" = yes; then
8344    CXXFLAGS="-g -O2"
8345  else
8346    CXXFLAGS="-g"
8347  fi
8348else
8349  if test "$GXX" = yes; then
8350    CXXFLAGS="-O2"
8351  else
8352    CXXFLAGS=
8353  fi
8354fi
8355for ac_declaration in \
8356   '' \
8357   'extern "C" void std::exit (int) throw (); using std::exit;' \
8358   'extern "C" void std::exit (int); using std::exit;' \
8359   'extern "C" void exit (int) throw ();' \
8360   'extern "C" void exit (int);' \
8361   'void exit (int);'
8362do
8363  cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h.  */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h.  */
8369$ac_declaration
8370#include <stdlib.h>
8371#ifdef F77_DUMMY_MAIN
8372
8373#  ifdef __cplusplus
8374     extern "C"
8375#  endif
8376   int F77_DUMMY_MAIN() { return 1; }
8377
8378#endif
8379int
8380main ()
8381{
8382exit (42);
8383  ;
8384  return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext
8388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389  (eval $ac_compile) 2>conftest.er1
8390  ac_status=$?
8391  grep -v '^ *+' conftest.er1 >conftest.err
8392  rm -f conftest.er1
8393  cat conftest.err >&5
8394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395  (exit $ac_status); } &&
8396         { ac_try='test -z "$ac_cxx_werror_flag"
8397                         || test ! -s conftest.err'
8398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399  (eval $ac_try) 2>&5
8400  ac_status=$?
8401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402  (exit $ac_status); }; } &&
8403         { ac_try='test -s conftest.$ac_objext'
8404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405  (eval $ac_try) 2>&5
8406  ac_status=$?
8407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408  (exit $ac_status); }; }; then
8409  :
8410else
8411  echo "$as_me: failed program was:" >&5
8412sed 's/^/| /' conftest.$ac_ext >&5
8413
8414continue
8415fi
8416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8417  cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h.  */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h.  */
8423$ac_declaration
8424#ifdef F77_DUMMY_MAIN
8425
8426#  ifdef __cplusplus
8427     extern "C"
8428#  endif
8429   int F77_DUMMY_MAIN() { return 1; }
8430
8431#endif
8432int
8433main ()
8434{
8435exit (42);
8436  ;
8437  return 0;
8438}
8439_ACEOF
8440rm -f conftest.$ac_objext
8441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8442  (eval $ac_compile) 2>conftest.er1
8443  ac_status=$?
8444  grep -v '^ *+' conftest.er1 >conftest.err
8445  rm -f conftest.er1
8446  cat conftest.err >&5
8447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448  (exit $ac_status); } &&
8449         { ac_try='test -z "$ac_cxx_werror_flag"
8450                         || test ! -s conftest.err'
8451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452  (eval $ac_try) 2>&5
8453  ac_status=$?
8454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455  (exit $ac_status); }; } &&
8456         { ac_try='test -s conftest.$ac_objext'
8457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458  (eval $ac_try) 2>&5
8459  ac_status=$?
8460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461  (exit $ac_status); }; }; then
8462  break
8463else
8464  echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467fi
8468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469done
8470rm -f conftest*
8471if test -n "$ac_declaration"; then
8472  echo '#ifdef __cplusplus' >>confdefs.h
8473  echo $ac_declaration      >>confdefs.h
8474  echo '#endif'             >>confdefs.h
8475fi
8476
8477ac_ext=cc
8478ac_cpp='$CXXCPP $CPPFLAGS'
8479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8482
8483depcc="$CXX"  am_compiler_list=
8484
8485echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8486echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8487if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8488  echo $ECHO_N "(cached) $ECHO_C" >&6
8489else
8490  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8491  # We make a subdir and do the tests there.  Otherwise we can end up
8492  # making bogus files that we don't know about and never remove.  For
8493  # instance it was reported that on HP-UX the gcc test will end up
8494  # making a dummy file named `D' -- because `-MD' means `put the output
8495  # in D'.
8496  mkdir conftest.dir
8497  # Copy depcomp to subdir because otherwise we won't find it if we're
8498  # using a relative directory.
8499  cp "$am_depcomp" conftest.dir
8500  cd conftest.dir
8501  # We will build objects and dependencies in a subdirectory because
8502  # it helps to detect inapplicable dependency modes.  For instance
8503  # both Tru64's cc and ICC support -MD to output dependencies as a
8504  # side effect of compilation, but ICC will put the dependencies in
8505  # the current directory while Tru64 will put them in the object
8506  # directory.
8507  mkdir sub
8508
8509  am_cv_CXX_dependencies_compiler_type=none
8510  if test "$am_compiler_list" = ""; then
8511     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8512  fi
8513  for depmode in $am_compiler_list; do
8514    # Setup a source with many dependencies, because some compilers
8515    # like to wrap large dependency lists on column 80 (with \), and
8516    # we should not choose a depcomp mode which is confused by this.
8517    #
8518    # We need to recreate these files for each test, as the compiler may
8519    # overwrite some of them when testing with obscure command lines.
8520    # This happens at least with the AIX C compiler.
8521    : > sub/conftest.c
8522    for i in 1 2 3 4 5 6; do
8523      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8524      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8525      # Solaris 8's {/usr,}/bin/sh.
8526      touch sub/conftst$i.h
8527    done
8528    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8529
8530    case $depmode in
8531    nosideeffect)
8532      # after this tag, mechanisms are not by side-effect, so they'll
8533      # only be used when explicitly requested
8534      if test "x$enable_dependency_tracking" = xyes; then
8535        continue
8536      else
8537        break
8538      fi
8539      ;;
8540    none) break ;;
8541    esac
8542    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8543    # mode.  It turns out that the SunPro C++ compiler does not properly
8544    # handle `-M -o', and we need to detect this.
8545    if depmode=$depmode \
8546       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8547       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8548       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8549         >/dev/null 2>conftest.err &&
8550       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8551       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8552       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8553      # icc doesn't choke on unknown options, it will just issue warnings
8554      # or remarks (even with -Werror).  So we grep stderr for any message
8555      # that says an option was ignored or not supported.
8556      # When given -MP, icc 7.0 and 7.1 complain thusly:
8557      #   icc: Command line warning: ignoring option '-M'; no argument required
8558      # The diagnosis changed in icc 8.0:
8559      #   icc: Command line remark: option '-MP' not supported
8560      if (grep 'ignoring option' conftest.err ||
8561          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8562        am_cv_CXX_dependencies_compiler_type=$depmode
8563        break
8564      fi
8565    fi
8566  done
8567
8568  cd ..
8569  rm -rf conftest.dir
8570else
8571  am_cv_CXX_dependencies_compiler_type=none
8572fi
8573
8574fi
8575echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8576echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8577CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8578
8579
8580
8581if
8582  test "x$enable_dependency_tracking" != xno \
8583  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8584  am__fastdepCXX_TRUE=
8585  am__fastdepCXX_FALSE='#'
8586else
8587  am__fastdepCXX_TRUE='#'
8588  am__fastdepCXX_FALSE=
8589fi
8590
8591
8592depcc="$CXX"  am_compiler_list=
8593
8594echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8595echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8596if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8597  echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8600  # We make a subdir and do the tests there.  Otherwise we can end up
8601  # making bogus files that we don't know about and never remove.  For
8602  # instance it was reported that on HP-UX the gcc test will end up
8603  # making a dummy file named `D' -- because `-MD' means `put the output
8604  # in D'.
8605  mkdir conftest.dir
8606  # Copy depcomp to subdir because otherwise we won't find it if we're
8607  # using a relative directory.
8608  cp "$am_depcomp" conftest.dir
8609  cd conftest.dir
8610  # We will build objects and dependencies in a subdirectory because
8611  # it helps to detect inapplicable dependency modes.  For instance
8612  # both Tru64's cc and ICC support -MD to output dependencies as a
8613  # side effect of compilation, but ICC will put the dependencies in
8614  # the current directory while Tru64 will put them in the object
8615  # directory.
8616  mkdir sub
8617
8618  am_cv_CXX_dependencies_compiler_type=none
8619  if test "$am_compiler_list" = ""; then
8620     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8621  fi
8622  for depmode in $am_compiler_list; do
8623    # Setup a source with many dependencies, because some compilers
8624    # like to wrap large dependency lists on column 80 (with \), and
8625    # we should not choose a depcomp mode which is confused by this.
8626    #
8627    # We need to recreate these files for each test, as the compiler may
8628    # overwrite some of them when testing with obscure command lines.
8629    # This happens at least with the AIX C compiler.
8630    : > sub/conftest.c
8631    for i in 1 2 3 4 5 6; do
8632      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8633      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8634      # Solaris 8's {/usr,}/bin/sh.
8635      touch sub/conftst$i.h
8636    done
8637    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8638
8639    case $depmode in
8640    nosideeffect)
8641      # after this tag, mechanisms are not by side-effect, so they'll
8642      # only be used when explicitly requested
8643      if test "x$enable_dependency_tracking" = xyes; then
8644        continue
8645      else
8646        break
8647      fi
8648      ;;
8649    none) break ;;
8650    esac
8651    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8652    # mode.  It turns out that the SunPro C++ compiler does not properly
8653    # handle `-M -o', and we need to detect this.
8654    if depmode=$depmode \
8655       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8656       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8657       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8658         >/dev/null 2>conftest.err &&
8659       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8660       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8661       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8662      # icc doesn't choke on unknown options, it will just issue warnings
8663      # or remarks (even with -Werror).  So we grep stderr for any message
8664      # that says an option was ignored or not supported.
8665      # When given -MP, icc 7.0 and 7.1 complain thusly:
8666      #   icc: Command line warning: ignoring option '-M'; no argument required
8667      # The diagnosis changed in icc 8.0:
8668      #   icc: Command line remark: option '-MP' not supported
8669      if (grep 'ignoring option' conftest.err ||
8670          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8671        am_cv_CXX_dependencies_compiler_type=$depmode
8672        break
8673      fi
8674    fi
8675  done
8676
8677  cd ..
8678  rm -rf conftest.dir
8679else
8680  am_cv_CXX_dependencies_compiler_type=none
8681fi
8682
8683fi
8684echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8685echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8686CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8687
8688
8689
8690if
8691  test "x$enable_dependency_tracking" != xno \
8692  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8693  am__fastdepCXX_TRUE=
8694  am__fastdepCXX_FALSE='#'
8695else
8696  am__fastdepCXX_TRUE='#'
8697  am__fastdepCXX_FALSE=
8698fi
8699
8700
8701
8702
8703if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8704    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8705    (test "X$CXX" != "Xg++"))) ; then
8706  ac_ext=cc
8707ac_cpp='$CXXCPP $CPPFLAGS'
8708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8711echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8712echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8713if test -z "$CXXCPP"; then
8714  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8715  echo $ECHO_N "(cached) $ECHO_C" >&6
8716else
8717      # Double quotes because CXXCPP needs to be expanded
8718    for CXXCPP in "$CXX -E" "/lib/cpp"
8719    do
8720      ac_preproc_ok=false
8721for ac_cxx_preproc_warn_flag in '' yes
8722do
8723  # Use a header file that comes with gcc, so configuring glibc
8724  # with a fresh cross-compiler works.
8725  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8726  # <limits.h> exists even on freestanding compilers.
8727  # On the NeXT, cc -E runs the code through the compiler's parser,
8728  # not just through cpp. "Syntax error" is here to catch this case.
8729  cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h.  */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h.  */
8735#ifdef __STDC__
8736# include <limits.h>
8737#else
8738# include <assert.h>
8739#endif
8740                     Syntax error
8741_ACEOF
8742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8743  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8744  ac_status=$?
8745  grep -v '^ *+' conftest.er1 >conftest.err
8746  rm -f conftest.er1
8747  cat conftest.err >&5
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); } >/dev/null; then
8750  if test -s conftest.err; then
8751    ac_cpp_err=$ac_cxx_preproc_warn_flag
8752    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8753  else
8754    ac_cpp_err=
8755  fi
8756else
8757  ac_cpp_err=yes
8758fi
8759if test -z "$ac_cpp_err"; then
8760  :
8761else
8762  echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765  # Broken: fails on valid input.
8766continue
8767fi
8768rm -f conftest.err conftest.$ac_ext
8769
8770  # OK, works on sane cases.  Now check whether non-existent headers
8771  # can be detected and how.
8772  cat >conftest.$ac_ext <<_ACEOF
8773/* confdefs.h.  */
8774_ACEOF
8775cat confdefs.h >>conftest.$ac_ext
8776cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h.  */
8778#include <ac_nonexistent.h>
8779_ACEOF
8780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8781  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8782  ac_status=$?
8783  grep -v '^ *+' conftest.er1 >conftest.err
8784  rm -f conftest.er1
8785  cat conftest.err >&5
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); } >/dev/null; then
8788  if test -s conftest.err; then
8789    ac_cpp_err=$ac_cxx_preproc_warn_flag
8790    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8791  else
8792    ac_cpp_err=
8793  fi
8794else
8795  ac_cpp_err=yes
8796fi
8797if test -z "$ac_cpp_err"; then
8798  # Broken: success on invalid input.
8799continue
8800else
8801  echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804  # Passes both tests.
8805ac_preproc_ok=:
8806break
8807fi
8808rm -f conftest.err conftest.$ac_ext
8809
8810done
8811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812rm -f conftest.err conftest.$ac_ext
8813if $ac_preproc_ok; then
8814  break
8815fi
8816
8817    done
8818    ac_cv_prog_CXXCPP=$CXXCPP
8819
8820fi
8821  CXXCPP=$ac_cv_prog_CXXCPP
8822else
8823  ac_cv_prog_CXXCPP=$CXXCPP
8824fi
8825echo "$as_me:$LINENO: result: $CXXCPP" >&5
8826echo "${ECHO_T}$CXXCPP" >&6
8827ac_preproc_ok=false
8828for ac_cxx_preproc_warn_flag in '' yes
8829do
8830  # Use a header file that comes with gcc, so configuring glibc
8831  # with a fresh cross-compiler works.
8832  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833  # <limits.h> exists even on freestanding compilers.
8834  # On the NeXT, cc -E runs the code through the compiler's parser,
8835  # not just through cpp. "Syntax error" is here to catch this case.
8836  cat >conftest.$ac_ext <<_ACEOF
8837/* confdefs.h.  */
8838_ACEOF
8839cat confdefs.h >>conftest.$ac_ext
8840cat >>conftest.$ac_ext <<_ACEOF
8841/* end confdefs.h.  */
8842#ifdef __STDC__
8843# include <limits.h>
8844#else
8845# include <assert.h>
8846#endif
8847                     Syntax error
8848_ACEOF
8849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8850  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8851  ac_status=$?
8852  grep -v '^ *+' conftest.er1 >conftest.err
8853  rm -f conftest.er1
8854  cat conftest.err >&5
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); } >/dev/null; then
8857  if test -s conftest.err; then
8858    ac_cpp_err=$ac_cxx_preproc_warn_flag
8859    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8860  else
8861    ac_cpp_err=
8862  fi
8863else
8864  ac_cpp_err=yes
8865fi
8866if test -z "$ac_cpp_err"; then
8867  :
8868else
8869  echo "$as_me: failed program was:" >&5
8870sed 's/^/| /' conftest.$ac_ext >&5
8871
8872  # Broken: fails on valid input.
8873continue
8874fi
8875rm -f conftest.err conftest.$ac_ext
8876
8877  # OK, works on sane cases.  Now check whether non-existent headers
8878  # can be detected and how.
8879  cat >conftest.$ac_ext <<_ACEOF
8880/* confdefs.h.  */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h.  */
8885#include <ac_nonexistent.h>
8886_ACEOF
8887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8888  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8889  ac_status=$?
8890  grep -v '^ *+' conftest.er1 >conftest.err
8891  rm -f conftest.er1
8892  cat conftest.err >&5
8893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894  (exit $ac_status); } >/dev/null; then
8895  if test -s conftest.err; then
8896    ac_cpp_err=$ac_cxx_preproc_warn_flag
8897    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8898  else
8899    ac_cpp_err=
8900  fi
8901else
8902  ac_cpp_err=yes
8903fi
8904if test -z "$ac_cpp_err"; then
8905  # Broken: success on invalid input.
8906continue
8907else
8908  echo "$as_me: failed program was:" >&5
8909sed 's/^/| /' conftest.$ac_ext >&5
8910
8911  # Passes both tests.
8912ac_preproc_ok=:
8913break
8914fi
8915rm -f conftest.err conftest.$ac_ext
8916
8917done
8918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8919rm -f conftest.err conftest.$ac_ext
8920if $ac_preproc_ok; then
8921  :
8922else
8923  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8924See \`config.log' for more details." >&5
8925echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8926See \`config.log' for more details." >&2;}
8927   { (exit 1); exit 1; }; }
8928fi
8929
8930ac_ext=cc
8931ac_cpp='$CXXCPP $CPPFLAGS'
8932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8935
8936fi
8937
8938
8939
8940# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8941
8942# find the maximum length of command line arguments
8943echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8944echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8945if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8946  echo $ECHO_N "(cached) $ECHO_C" >&6
8947else
8948    i=0
8949  teststring="ABCD"
8950
8951  case $build_os in
8952  msdosdjgpp*)
8953    # On DJGPP, this test can blow up pretty badly due to problems in libc
8954    # (any single argument exceeding 2000 bytes causes a buffer overrun
8955    # during glob expansion).  Even if it were fixed, the result of this
8956    # check would be larger than it should be.
8957    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8958    ;;
8959
8960  gnu*)
8961    # Under GNU Hurd, this test is not required because there is
8962    # no limit to the length of command line arguments.
8963    # Libtool will interpret -1 as no limit whatsoever
8964    lt_cv_sys_max_cmd_len=-1;
8965    ;;
8966
8967  cygwin* | mingw*)
8968    # On Win9x/ME, this test blows up -- it succeeds, but takes
8969    # about 5 minutes as the teststring grows exponentially.
8970    # Worse, since 9x/ME are not pre-emptively multitasking,
8971    # you end up with a "frozen" computer, even though with patience
8972    # the test eventually succeeds (with a max line length of 256k).
8973    # Instead, let's just punt: use the minimum linelength reported by
8974    # all of the supported platforms: 8192 (on NT/2K/XP).
8975    lt_cv_sys_max_cmd_len=8192;
8976    ;;
8977
8978  amigaos*)
8979    # On AmigaOS with pdksh, this test takes hours, literally.
8980    # So we just punt and use a minimum line length of 8192.
8981    lt_cv_sys_max_cmd_len=8192;
8982    ;;
8983
8984  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8985    # This has been around since 386BSD, at least.  Likely further.
8986    if test -x /sbin/sysctl; then
8987      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8988    elif test -x /usr/sbin/sysctl; then
8989      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8990    else
8991      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8992    fi
8993    # And add a safety zone
8994    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8995    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8996    ;;
8997
8998  interix*)
8999    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9000    lt_cv_sys_max_cmd_len=196608
9001    ;;
9002
9003  osf*)
9004    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9005    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9006    # nice to cause kernel panics so lets avoid the loop below.
9007    # First set a reasonable default.
9008    lt_cv_sys_max_cmd_len=16384
9009    #
9010    if test -x /sbin/sysconfig; then
9011      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9012        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9013      esac
9014    fi
9015    ;;
9016  sco3.2v5*)
9017    lt_cv_sys_max_cmd_len=102400
9018    ;;
9019  sysv5* | sco5v6* | sysv4.2uw2*)
9020    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9021    if test -n "$kargmax"; then
9022      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
9023    else
9024      lt_cv_sys_max_cmd_len=32768
9025    fi
9026    ;;
9027  *)
9028    # If test is not a shell built-in, we'll probably end up computing a
9029    # maximum length that is only half of the actual maximum length, but
9030    # we can't tell.
9031    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9032    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9033               = "XX$teststring") >/dev/null 2>&1 &&
9034            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9035            lt_cv_sys_max_cmd_len=$new_result &&
9036            test $i != 17 # 1/2 MB should be enough
9037    do
9038      i=`expr $i + 1`
9039      teststring=$teststring$teststring
9040    done
9041    teststring=
9042    # Add a significant safety factor because C++ compilers can tack on massive
9043    # amounts of additional arguments before passing them to the linker.
9044    # It appears as though 1/2 is a usable value.
9045    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9046    ;;
9047  esac
9048
9049fi
9050
9051if test -n $lt_cv_sys_max_cmd_len ; then
9052  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9053echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9054else
9055  echo "$as_me:$LINENO: result: none" >&5
9056echo "${ECHO_T}none" >&6
9057fi
9058
9059
9060
9061
9062# Check for command to grab the raw symbol name followed by C symbol from nm.
9063echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9064echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9065if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9066  echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068
9069# These are sane defaults that work on at least a few old systems.
9070# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9071
9072# Character class describing NM global symbol codes.
9073symcode='[BCDEGRST]'
9074
9075# Regexp to match symbols that can be accessed directly from C.
9076sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9077
9078# Transform an extracted symbol line into a proper C declaration
9079lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9080
9081# Transform an extracted symbol line into symbol name and symbol address
9082lt_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'"
9083
9084# Define system-specific variables.
9085case $host_os in
9086aix*)
9087  symcode='[BCDT]'
9088  ;;
9089cygwin* | mingw* | pw32*)
9090  symcode='[ABCDGISTW]'
9091  ;;
9092hpux*) # Its linker distinguishes data from code symbols
9093  if test "$host_cpu" = ia64; then
9094    symcode='[ABCDEGRST]'
9095  fi
9096  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9097  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'"
9098  ;;
9099linux*)
9100  if test "$host_cpu" = ia64; then
9101    symcode='[ABCDGIRSTW]'
9102    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9103    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'"
9104  fi
9105  ;;
9106irix* | nonstopux*)
9107  symcode='[BCDEGRST]'
9108  ;;
9109osf*)
9110  symcode='[BCDEGQRST]'
9111  ;;
9112solaris*)
9113  symcode='[BDRT]'
9114  ;;
9115sco3.2v5*)
9116  symcode='[DT]'
9117  ;;
9118sysv4.2uw2*)
9119  symcode='[DT]'
9120  ;;
9121sysv5* | sco5v6* | unixware* | OpenUNIX*)
9122  symcode='[ABDT]'
9123  ;;
9124sysv4)
9125  symcode='[DFNSTU]'
9126  ;;
9127esac
9128
9129# Handle CRLF in mingw tool chain
9130opt_cr=
9131case $build_os in
9132mingw*)
9133  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9134  ;;
9135esac
9136
9137# If we're using GNU nm, then use its standard symbol codes.
9138case `$NM -V 2>&1` in
9139*GNU* | *'with BFD'*)
9140  symcode='[ABCDGIRSTW]' ;;
9141esac
9142
9143# Try without a prefix undercore, then with it.
9144for ac_symprfx in "" "_"; do
9145
9146  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9147  symxfrm="\\1 $ac_symprfx\\2 \\2"
9148
9149  # Write the raw and C identifiers.
9150  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9151
9152  # Check to see that the pipe works correctly.
9153  pipe_works=no
9154
9155  rm -f conftest*
9156  cat > conftest.$ac_ext <<EOF
9157#ifdef __cplusplus
9158extern "C" {
9159#endif
9160char nm_test_var;
9161void nm_test_func(){}
9162#ifdef __cplusplus
9163}
9164#endif
9165int main(){nm_test_var='a';nm_test_func();return(0);}
9166EOF
9167
9168  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169  (eval $ac_compile) 2>&5
9170  ac_status=$?
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); }; then
9173    # Now try to grab the symbols.
9174    nlist=conftest.nm
9175    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9176  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9177  ac_status=$?
9178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179  (exit $ac_status); } && test -s "$nlist"; then
9180      # Try sorting and uniquifying the output.
9181      if sort "$nlist" | uniq > "$nlist"T; then
9182        mv -f "$nlist"T "$nlist"
9183      else
9184        rm -f "$nlist"T
9185      fi
9186
9187      # Make sure that we snagged all the symbols we need.
9188      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9189        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9190          cat <<EOF > conftest.$ac_ext
9191#ifdef __cplusplus
9192extern "C" {
9193#endif
9194
9195EOF
9196          # Now generate the symbol file.
9197          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9198
9199          cat <<EOF >> conftest.$ac_ext
9200#if defined (__STDC__) && __STDC__
9201# define lt_ptr_t void *
9202#else
9203# define lt_ptr_t char *
9204# define const
9205#endif
9206
9207/* The mapping between symbol names and symbols. */
9208const struct {
9209  const char *name;
9210  lt_ptr_t address;
9211}
9212lt_preloaded_symbols[] =
9213{
9214EOF
9215          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9216          cat <<\EOF >> conftest.$ac_ext
9217  {0, (lt_ptr_t) 0}
9218};
9219
9220#ifdef __cplusplus
9221}
9222#endif
9223EOF
9224          # Now try linking the two files.
9225          mv conftest.$ac_objext conftstm.$ac_objext
9226          lt_save_LIBS="$LIBS"
9227          lt_save_CFLAGS="$CFLAGS"
9228          LIBS="conftstm.$ac_objext"
9229          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9230          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9231  (eval $ac_link) 2>&5
9232  ac_status=$?
9233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9235            pipe_works=yes
9236          fi
9237          LIBS="$lt_save_LIBS"
9238          CFLAGS="$lt_save_CFLAGS"
9239        else
9240          echo "cannot find nm_test_func in $nlist" >&5
9241        fi
9242      else
9243        echo "cannot find nm_test_var in $nlist" >&5
9244      fi
9245    else
9246      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9247    fi
9248  else
9249    echo "$progname: failed program was:" >&5
9250    cat conftest.$ac_ext >&5
9251  fi
9252  rm -f conftest* conftst*
9253
9254  # Do not use the global_symbol_pipe unless it works.
9255  if test "$pipe_works" = yes; then
9256    break
9257  else
9258    lt_cv_sys_global_symbol_pipe=
9259  fi
9260done
9261
9262fi
9263
9264if test -z "$lt_cv_sys_global_symbol_pipe"; then
9265  lt_cv_sys_global_symbol_to_cdecl=
9266fi
9267if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9268  echo "$as_me:$LINENO: result: failed" >&5
9269echo "${ECHO_T}failed" >&6
9270else
9271  echo "$as_me:$LINENO: result: ok" >&5
9272echo "${ECHO_T}ok" >&6
9273fi
9274
9275echo "$as_me:$LINENO: checking for objdir" >&5
9276echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9277if test "${lt_cv_objdir+set}" = set; then
9278  echo $ECHO_N "(cached) $ECHO_C" >&6
9279else
9280  rm -f .libs 2>/dev/null
9281mkdir .libs 2>/dev/null
9282if test -d .libs; then
9283  lt_cv_objdir=.libs
9284else
9285  # MS-DOS does not allow filenames that begin with a dot.
9286  lt_cv_objdir=_libs
9287fi
9288rmdir .libs 2>/dev/null
9289fi
9290echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9291echo "${ECHO_T}$lt_cv_objdir" >&6
9292objdir=$lt_cv_objdir
9293
9294
9295
9296
9297
9298case $host_os in
9299aix3*)
9300  # AIX sometimes has problems with the GCC collect2 program.  For some
9301  # reason, if we set the COLLECT_NAMES environment variable, the problems
9302  # vanish in a puff of smoke.
9303  if test "X${COLLECT_NAMES+set}" != Xset; then
9304    COLLECT_NAMES=
9305    export COLLECT_NAMES
9306  fi
9307  ;;
9308esac
9309
9310# Sed substitution that helps us do robust quoting.  It backslashifies
9311# metacharacters that are still active within double-quoted strings.
9312Xsed='sed -e 1s/^X//'
9313sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9314
9315# Same as above, but do not quote variable references.
9316double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9317
9318# Sed substitution to delay expansion of an escaped shell variable in a
9319# double_quote_subst'ed string.
9320delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9321
9322# Sed substitution to avoid accidental globbing in evaled expressions
9323no_glob_subst='s/\*/\\\*/g'
9324
9325# Constants:
9326rm="rm -f"
9327
9328# Global variables:
9329default_ofile=libtool
9330can_build_shared=yes
9331
9332# All known linkers require a `.a' archive for static linking (except MSVC,
9333# which needs '.lib').
9334libext=a
9335ltmain="$ac_aux_dir/ltmain.sh"
9336ofile="$default_ofile"
9337with_gnu_ld="$lt_cv_prog_gnu_ld"
9338
9339if test -n "$ac_tool_prefix"; then
9340  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9341set dummy ${ac_tool_prefix}ar; ac_word=$2
9342echo "$as_me:$LINENO: checking for $ac_word" >&5
9343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9344if test "${ac_cv_prog_AR+set}" = set; then
9345  echo $ECHO_N "(cached) $ECHO_C" >&6
9346else
9347  if test -n "$AR"; then
9348  ac_cv_prog_AR="$AR" # Let the user override the test.
9349else
9350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351for as_dir in $PATH
9352do
9353  IFS=$as_save_IFS
9354  test -z "$as_dir" && as_dir=.
9355  for ac_exec_ext in '' $ac_executable_extensions; do
9356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357    ac_cv_prog_AR="${ac_tool_prefix}ar"
9358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9359    break 2
9360  fi
9361done
9362done
9363
9364fi
9365fi
9366AR=$ac_cv_prog_AR
9367if test -n "$AR"; then
9368  echo "$as_me:$LINENO: result: $AR" >&5
9369echo "${ECHO_T}$AR" >&6
9370else
9371  echo "$as_me:$LINENO: result: no" >&5
9372echo "${ECHO_T}no" >&6
9373fi
9374
9375fi
9376if test -z "$ac_cv_prog_AR"; then
9377  ac_ct_AR=$AR
9378  # Extract the first word of "ar", so it can be a program name with args.
9379set dummy ar; ac_word=$2
9380echo "$as_me:$LINENO: checking for $ac_word" >&5
9381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9382if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9383  echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385  if test -n "$ac_ct_AR"; then
9386  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9387else
9388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391  IFS=$as_save_IFS
9392  test -z "$as_dir" && as_dir=.
9393  for ac_exec_ext in '' $ac_executable_extensions; do
9394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9395    ac_cv_prog_ac_ct_AR="ar"
9396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9397    break 2
9398  fi
9399done
9400done
9401
9402  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9403fi
9404fi
9405ac_ct_AR=$ac_cv_prog_ac_ct_AR
9406if test -n "$ac_ct_AR"; then
9407  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9408echo "${ECHO_T}$ac_ct_AR" >&6
9409else
9410  echo "$as_me:$LINENO: result: no" >&5
9411echo "${ECHO_T}no" >&6
9412fi
9413
9414  AR=$ac_ct_AR
9415else
9416  AR="$ac_cv_prog_AR"
9417fi
9418
9419if test -n "$ac_tool_prefix"; then
9420  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9421set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9422echo "$as_me:$LINENO: checking for $ac_word" >&5
9423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9424if test "${ac_cv_prog_RANLIB+set}" = set; then
9425  echo $ECHO_N "(cached) $ECHO_C" >&6
9426else
9427  if test -n "$RANLIB"; then
9428  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9429else
9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433  IFS=$as_save_IFS
9434  test -z "$as_dir" && as_dir=.
9435  for ac_exec_ext in '' $ac_executable_extensions; do
9436  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9439    break 2
9440  fi
9441done
9442done
9443
9444fi
9445fi
9446RANLIB=$ac_cv_prog_RANLIB
9447if test -n "$RANLIB"; then
9448  echo "$as_me:$LINENO: result: $RANLIB" >&5
9449echo "${ECHO_T}$RANLIB" >&6
9450else
9451  echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
9453fi
9454
9455fi
9456if test -z "$ac_cv_prog_RANLIB"; then
9457  ac_ct_RANLIB=$RANLIB
9458  # Extract the first word of "ranlib", so it can be a program name with args.
9459set dummy ranlib; ac_word=$2
9460echo "$as_me:$LINENO: checking for $ac_word" >&5
9461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9462if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9463  echo $ECHO_N "(cached) $ECHO_C" >&6
9464else
9465  if test -n "$ac_ct_RANLIB"; then
9466  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9467else
9468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469for as_dir in $PATH
9470do
9471  IFS=$as_save_IFS
9472  test -z "$as_dir" && as_dir=.
9473  for ac_exec_ext in '' $ac_executable_extensions; do
9474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9475    ac_cv_prog_ac_ct_RANLIB="ranlib"
9476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9477    break 2
9478  fi
9479done
9480done
9481
9482  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9483fi
9484fi
9485ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9486if test -n "$ac_ct_RANLIB"; then
9487  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9488echo "${ECHO_T}$ac_ct_RANLIB" >&6
9489else
9490  echo "$as_me:$LINENO: result: no" >&5
9491echo "${ECHO_T}no" >&6
9492fi
9493
9494  RANLIB=$ac_ct_RANLIB
9495else
9496  RANLIB="$ac_cv_prog_RANLIB"
9497fi
9498
9499if test -n "$ac_tool_prefix"; then
9500  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9501set dummy ${ac_tool_prefix}strip; ac_word=$2
9502echo "$as_me:$LINENO: checking for $ac_word" >&5
9503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9504if test "${ac_cv_prog_STRIP+set}" = set; then
9505  echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507  if test -n "$STRIP"; then
9508  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9509else
9510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511for as_dir in $PATH
9512do
9513  IFS=$as_save_IFS
9514  test -z "$as_dir" && as_dir=.
9515  for ac_exec_ext in '' $ac_executable_extensions; do
9516  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9518    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519    break 2
9520  fi
9521done
9522done
9523
9524fi
9525fi
9526STRIP=$ac_cv_prog_STRIP
9527if test -n "$STRIP"; then
9528  echo "$as_me:$LINENO: result: $STRIP" >&5
9529echo "${ECHO_T}$STRIP" >&6
9530else
9531  echo "$as_me:$LINENO: result: no" >&5
9532echo "${ECHO_T}no" >&6
9533fi
9534
9535fi
9536if test -z "$ac_cv_prog_STRIP"; then
9537  ac_ct_STRIP=$STRIP
9538  # Extract the first word of "strip", so it can be a program name with args.
9539set dummy strip; ac_word=$2
9540echo "$as_me:$LINENO: checking for $ac_word" >&5
9541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9542if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9543  echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545  if test -n "$ac_ct_STRIP"; then
9546  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9547else
9548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551  IFS=$as_save_IFS
9552  test -z "$as_dir" && as_dir=.
9553  for ac_exec_ext in '' $ac_executable_extensions; do
9554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555    ac_cv_prog_ac_ct_STRIP="strip"
9556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557    break 2
9558  fi
9559done
9560done
9561
9562  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9563fi
9564fi
9565ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9566if test -n "$ac_ct_STRIP"; then
9567  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9568echo "${ECHO_T}$ac_ct_STRIP" >&6
9569else
9570  echo "$as_me:$LINENO: result: no" >&5
9571echo "${ECHO_T}no" >&6
9572fi
9573
9574  STRIP=$ac_ct_STRIP
9575else
9576  STRIP="$ac_cv_prog_STRIP"
9577fi
9578
9579
9580old_CC="$CC"
9581old_CFLAGS="$CFLAGS"
9582
9583# Set sane defaults for various variables
9584test -z "$AR" && AR=ar
9585test -z "$AR_FLAGS" && AR_FLAGS=cru
9586test -z "$AS" && AS=as
9587test -z "$CC" && CC=cc
9588test -z "$LTCC" && LTCC=$CC
9589test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9590test -z "$DLLTOOL" && DLLTOOL=dlltool
9591test -z "$LD" && LD=ld
9592test -z "$LN_S" && LN_S="ln -s"
9593test -z "$MAGIC_CMD" && MAGIC_CMD=file
9594test -z "$NM" && NM=nm
9595test -z "$SED" && SED=sed
9596test -z "$OBJDUMP" && OBJDUMP=objdump
9597test -z "$RANLIB" && RANLIB=:
9598test -z "$STRIP" && STRIP=:
9599test -z "$ac_objext" && ac_objext=o
9600
9601# Determine commands to create old-style static archives.
9602old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9603old_postinstall_cmds='chmod 644 $oldlib'
9604old_postuninstall_cmds=
9605
9606if test -n "$RANLIB"; then
9607  case $host_os in
9608  openbsd*)
9609    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9610    ;;
9611  *)
9612    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9613    ;;
9614  esac
9615  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9616fi
9617
9618for cc_temp in $compiler""; do
9619  case $cc_temp in
9620    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9621    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9622    \-*) ;;
9623    *) break;;
9624  esac
9625done
9626cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9627
9628
9629# Only perform the check for file, if the check method requires it
9630case $deplibs_check_method in
9631file_magic*)
9632  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9633    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9634echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9635if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9636  echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638  case $MAGIC_CMD in
9639[\\/*] |  ?:[\\/]*)
9640  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9641  ;;
9642*)
9643  lt_save_MAGIC_CMD="$MAGIC_CMD"
9644  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9645  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9646  for ac_dir in $ac_dummy; do
9647    IFS="$lt_save_ifs"
9648    test -z "$ac_dir" && ac_dir=.
9649    if test -f $ac_dir/${ac_tool_prefix}file; then
9650      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9651      if test -n "$file_magic_test_file"; then
9652        case $deplibs_check_method in
9653        "file_magic "*)
9654          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9655          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9656          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9657            $EGREP "$file_magic_regex" > /dev/null; then
9658            :
9659          else
9660            cat <<EOF 1>&2
9661
9662*** Warning: the command libtool uses to detect shared libraries,
9663*** $file_magic_cmd, produces output that libtool cannot recognize.
9664*** The result is that libtool may fail to recognize shared libraries
9665*** as such.  This will affect the creation of libtool libraries that
9666*** depend on shared libraries, but programs linked with such libtool
9667*** libraries will work regardless of this problem.  Nevertheless, you
9668*** may want to report the problem to your system manager and/or to
9669*** bug-libtool@gnu.org
9670
9671EOF
9672          fi ;;
9673        esac
9674      fi
9675      break
9676    fi
9677  done
9678  IFS="$lt_save_ifs"
9679  MAGIC_CMD="$lt_save_MAGIC_CMD"
9680  ;;
9681esac
9682fi
9683
9684MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9685if test -n "$MAGIC_CMD"; then
9686  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9687echo "${ECHO_T}$MAGIC_CMD" >&6
9688else
9689  echo "$as_me:$LINENO: result: no" >&5
9690echo "${ECHO_T}no" >&6
9691fi
9692
9693if test -z "$lt_cv_path_MAGIC_CMD"; then
9694  if test -n "$ac_tool_prefix"; then
9695    echo "$as_me:$LINENO: checking for file" >&5
9696echo $ECHO_N "checking for file... $ECHO_C" >&6
9697if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9698  echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700  case $MAGIC_CMD in
9701[\\/*] |  ?:[\\/]*)
9702  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9703  ;;
9704*)
9705  lt_save_MAGIC_CMD="$MAGIC_CMD"
9706  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9707  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9708  for ac_dir in $ac_dummy; do
9709    IFS="$lt_save_ifs"
9710    test -z "$ac_dir" && ac_dir=.
9711    if test -f $ac_dir/file; then
9712      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9713      if test -n "$file_magic_test_file"; then
9714        case $deplibs_check_method in
9715        "file_magic "*)
9716          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9717          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9718          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9719            $EGREP "$file_magic_regex" > /dev/null; then
9720            :
9721          else
9722            cat <<EOF 1>&2
9723
9724*** Warning: the command libtool uses to detect shared libraries,
9725*** $file_magic_cmd, produces output that libtool cannot recognize.
9726*** The result is that libtool may fail to recognize shared libraries
9727*** as such.  This will affect the creation of libtool libraries that
9728*** depend on shared libraries, but programs linked with such libtool
9729*** libraries will work regardless of this problem.  Nevertheless, you
9730*** may want to report the problem to your system manager and/or to
9731*** bug-libtool@gnu.org
9732
9733EOF
9734          fi ;;
9735        esac
9736      fi
9737      break
9738    fi
9739  done
9740  IFS="$lt_save_ifs"
9741  MAGIC_CMD="$lt_save_MAGIC_CMD"
9742  ;;
9743esac
9744fi
9745
9746MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9747if test -n "$MAGIC_CMD"; then
9748  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9749echo "${ECHO_T}$MAGIC_CMD" >&6
9750else
9751  echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
9753fi
9754
9755  else
9756    MAGIC_CMD=:
9757  fi
9758fi
9759
9760  fi
9761  ;;
9762esac
9763
9764enable_dlopen=no
9765enable_win32_dll=no
9766
9767# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9768if test "${enable_libtool_lock+set}" = set; then
9769  enableval="$enable_libtool_lock"
9770
9771fi;
9772test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9773
9774
9775# Check whether --with-pic or --without-pic was given.
9776if test "${with_pic+set}" = set; then
9777  withval="$with_pic"
9778  pic_mode="$withval"
9779else
9780  pic_mode=default
9781fi;
9782test -z "$pic_mode" && pic_mode=default
9783
9784# Use C for the default configuration in the libtool script
9785tagname=
9786lt_save_CC="$CC"
9787ac_ext=c
9788ac_cpp='$CPP $CPPFLAGS'
9789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791ac_compiler_gnu=$ac_cv_c_compiler_gnu
9792
9793
9794# Source file extension for C test sources.
9795ac_ext=c
9796
9797# Object file extension for compiled C test sources.
9798objext=o
9799objext=$objext
9800
9801# Code to be used in simple compile tests
9802lt_simple_compile_test_code="int some_variable = 0;\n"
9803
9804# Code to be used in simple link tests
9805lt_simple_link_test_code='int main(){return(0);}\n'
9806
9807
9808# If no C compiler was specified, use CC.
9809LTCC=${LTCC-"$CC"}
9810
9811# If no C compiler flags were specified, use CFLAGS.
9812LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9813
9814# Allow CC to be a program name with arguments.
9815compiler=$CC
9816
9817
9818# save warnings/boilerplate of simple test code
9819ac_outfile=conftest.$ac_objext
9820printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9821eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9822_lt_compiler_boilerplate=`cat conftest.err`
9823$rm conftest*
9824
9825ac_outfile=conftest.$ac_objext
9826printf "$lt_simple_link_test_code" >conftest.$ac_ext
9827eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9828_lt_linker_boilerplate=`cat conftest.err`
9829$rm conftest*
9830
9831
9832## CAVEAT EMPTOR:
9833## There is no encapsulation within the following macros, do not change
9834## the running order or otherwise move them around unless you know exactly
9835## what you are doing...
9836
9837lt_prog_compiler_no_builtin_flag=
9838
9839if test "$GCC" = yes; then
9840  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9841
9842
9843echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9844echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9845if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9846  echo $ECHO_N "(cached) $ECHO_C" >&6
9847else
9848  lt_cv_prog_compiler_rtti_exceptions=no
9849  ac_outfile=conftest.$ac_objext
9850   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9851   lt_compiler_flag="-fno-rtti -fno-exceptions"
9852   # Insert the option either (1) after the last *FLAGS variable, or
9853   # (2) before a word containing "conftest.", or (3) at the end.
9854   # Note that $ac_compile itself does not contain backslashes and begins
9855   # with a dollar sign (not a hyphen), so the echo should work correctly.
9856   # The option is referenced via a variable to avoid confusing sed.
9857   lt_compile=`echo "$ac_compile" | $SED \
9858   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9859   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9860   -e 's:$: $lt_compiler_flag:'`
9861   (eval echo "\"\$as_me:9861: $lt_compile\"" >&5)
9862   (eval "$lt_compile" 2>conftest.err)
9863   ac_status=$?
9864   cat conftest.err >&5
9865   echo "$as_me:9865: \$? = $ac_status" >&5
9866   if (exit $ac_status) && test -s "$ac_outfile"; then
9867     # The compiler can only warn and ignore the option if not recognized
9868     # So say no if there are warnings other than the usual output.
9869     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9870     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9871     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9872       lt_cv_prog_compiler_rtti_exceptions=yes
9873     fi
9874   fi
9875   $rm conftest*
9876
9877fi
9878echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9879echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9880
9881if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9882    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9883else
9884    :
9885fi
9886
9887fi
9888
9889lt_prog_compiler_wl=
9890lt_prog_compiler_pic=
9891lt_prog_compiler_static=
9892
9893echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9894echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9895
9896  if test "$GCC" = yes; then
9897    lt_prog_compiler_wl='-Wl,'
9898    lt_prog_compiler_static='-static'
9899
9900    case $host_os in
9901      aix*)
9902      # All AIX code is PIC.
9903      if test "$host_cpu" = ia64; then
9904        # AIX 5 now supports IA64 processor
9905        lt_prog_compiler_static='-Bstatic'
9906      fi
9907      ;;
9908
9909    amigaos*)
9910      # FIXME: we need at least 68020 code to build shared libraries, but
9911      # adding the `-m68020' flag to GCC prevents building anything better,
9912      # like `-m68040'.
9913      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9914      ;;
9915
9916    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9917      # PIC is the default for these OSes.
9918      ;;
9919
9920    mingw* | pw32* | os2*)
9921      # This hack is so that the source file can tell whether it is being
9922      # built for inclusion in a dll (and should export symbols for example).
9923      lt_prog_compiler_pic='-DDLL_EXPORT'
9924      ;;
9925
9926    darwin* | rhapsody*)
9927      # PIC is the default on this platform
9928      # Common symbols not allowed in MH_DYLIB files
9929      lt_prog_compiler_pic='-fno-common'
9930      ;;
9931
9932    interix3*)
9933      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9934      # Instead, we relocate shared libraries at runtime.
9935      ;;
9936
9937    msdosdjgpp*)
9938      # Just because we use GCC doesn't mean we suddenly get shared libraries
9939      # on systems that don't support them.
9940      lt_prog_compiler_can_build_shared=no
9941      enable_shared=no
9942      ;;
9943
9944    sysv4*MP*)
9945      if test -d /usr/nec; then
9946        lt_prog_compiler_pic=-Kconform_pic
9947      fi
9948      ;;
9949
9950    hpux*)
9951      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9952      # not for PA HP-UX.
9953      case $host_cpu in
9954      hppa*64*|ia64*)
9955        # +Z the default
9956        ;;
9957      *)
9958        lt_prog_compiler_pic='-fPIC'
9959        ;;
9960      esac
9961      ;;
9962
9963    *)
9964      lt_prog_compiler_pic='-fPIC'
9965      ;;
9966    esac
9967  else
9968    # PORTME Check for flag to pass linker flags through the system compiler.
9969    case $host_os in
9970    aix*)
9971      lt_prog_compiler_wl='-Wl,'
9972      if test "$host_cpu" = ia64; then
9973        # AIX 5 now supports IA64 processor
9974        lt_prog_compiler_static='-Bstatic'
9975      else
9976        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9977      fi
9978      ;;
9979      darwin*)
9980        # PIC is the default on this platform
9981        # Common symbols not allowed in MH_DYLIB files
9982       case $cc_basename in
9983         xlc*)
9984         lt_prog_compiler_pic='-qnocommon'
9985         lt_prog_compiler_wl='-Wl,'
9986         ;;
9987       esac
9988       ;;
9989
9990    mingw* | pw32* | os2*)
9991      # This hack is so that the source file can tell whether it is being
9992      # built for inclusion in a dll (and should export symbols for example).
9993      lt_prog_compiler_pic='-DDLL_EXPORT'
9994      ;;
9995
9996    hpux9* | hpux10* | hpux11*)
9997      lt_prog_compiler_wl='-Wl,'
9998      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9999      # not for PA HP-UX.
10000      case $host_cpu in
10001      hppa*64*|ia64*)
10002        # +Z the default
10003        ;;
10004      *)
10005        lt_prog_compiler_pic='+Z'
10006        ;;
10007      esac
10008      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10009      lt_prog_compiler_static='${wl}-a ${wl}archive'
10010      ;;
10011
10012    irix5* | irix6* | nonstopux*)
10013      lt_prog_compiler_wl='-Wl,'
10014      # PIC (with -KPIC) is the default.
10015      lt_prog_compiler_static='-non_shared'
10016      ;;
10017
10018    newsos6)
10019      lt_prog_compiler_pic='-KPIC'
10020      lt_prog_compiler_static='-Bstatic'
10021      ;;
10022
10023    linux*)
10024      case $cc_basename in
10025      icc* | ecc*)
10026        lt_prog_compiler_wl='-Wl,'
10027        lt_prog_compiler_pic='-KPIC'
10028        lt_prog_compiler_static='-static'
10029        ;;
10030      pgcc* | pgf77* | pgf90* | pgf95*)
10031        # Portland Group compilers (*not* the Pentium gcc compiler,
10032        # which looks to be a dead project)
10033        lt_prog_compiler_wl='-Wl,'
10034        lt_prog_compiler_pic='-fpic'
10035        lt_prog_compiler_static='-Bstatic'
10036        ;;
10037      ccc*)
10038        lt_prog_compiler_wl='-Wl,'
10039        # All Alpha code is PIC.
10040        lt_prog_compiler_static='-non_shared'
10041        ;;
10042      esac
10043      ;;
10044
10045    osf3* | osf4* | osf5*)
10046      lt_prog_compiler_wl='-Wl,'
10047      # All OSF/1 code is PIC.
10048      lt_prog_compiler_static='-non_shared'
10049      ;;
10050
10051    solaris*)
10052      lt_prog_compiler_pic='-KPIC'
10053      lt_prog_compiler_static='-Bstatic'
10054      case $cc_basename in
10055      f77* | f90* | f95*)
10056        lt_prog_compiler_wl='-Qoption ld ';;
10057      *)
10058        lt_prog_compiler_wl='-Wl,';;
10059      esac
10060      ;;
10061
10062    sunos4*)
10063      lt_prog_compiler_wl='-Qoption ld '
10064      lt_prog_compiler_pic='-PIC'
10065      lt_prog_compiler_static='-Bstatic'
10066      ;;
10067
10068    sysv4 | sysv4.2uw2* | sysv4.3*)
10069      lt_prog_compiler_wl='-Wl,'
10070      lt_prog_compiler_pic='-KPIC'
10071      lt_prog_compiler_static='-Bstatic'
10072      ;;
10073
10074    sysv4*MP*)
10075      if test -d /usr/nec ;then
10076        lt_prog_compiler_pic='-Kconform_pic'
10077        lt_prog_compiler_static='-Bstatic'
10078      fi
10079      ;;
10080
10081    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10082      lt_prog_compiler_wl='-Wl,'
10083      lt_prog_compiler_pic='-KPIC'
10084      lt_prog_compiler_static='-Bstatic'
10085      ;;
10086
10087    unicos*)
10088      lt_prog_compiler_wl='-Wl,'
10089      lt_prog_compiler_can_build_shared=no
10090      ;;
10091
10092    uts4*)
10093      lt_prog_compiler_pic='-pic'
10094      lt_prog_compiler_static='-Bstatic'
10095      ;;
10096
10097    *)
10098      lt_prog_compiler_can_build_shared=no
10099      ;;
10100    esac
10101  fi
10102
10103echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10104echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10105
10106#
10107# Check to make sure the PIC flag actually works.
10108#
10109if test -n "$lt_prog_compiler_pic"; then
10110
10111echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10113if test "${lt_prog_compiler_pic_works+set}" = set; then
10114  echo $ECHO_N "(cached) $ECHO_C" >&6
10115else
10116  lt_prog_compiler_pic_works=no
10117  ac_outfile=conftest.$ac_objext
10118   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10119   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10120   # Insert the option either (1) after the last *FLAGS variable, or
10121   # (2) before a word containing "conftest.", or (3) at the end.
10122   # Note that $ac_compile itself does not contain backslashes and begins
10123   # with a dollar sign (not a hyphen), so the echo should work correctly.
10124   # The option is referenced via a variable to avoid confusing sed.
10125   lt_compile=`echo "$ac_compile" | $SED \
10126   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10127   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10128   -e 's:$: $lt_compiler_flag:'`
10129   (eval echo "\"\$as_me:10129: $lt_compile\"" >&5)
10130   (eval "$lt_compile" 2>conftest.err)
10131   ac_status=$?
10132   cat conftest.err >&5
10133   echo "$as_me:10133: \$? = $ac_status" >&5
10134   if (exit $ac_status) && test -s "$ac_outfile"; then
10135     # The compiler can only warn and ignore the option if not recognized
10136     # So say no if there are warnings other than the usual output.
10137     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10138     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10139     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10140       lt_prog_compiler_pic_works=yes
10141     fi
10142   fi
10143   $rm conftest*
10144
10145fi
10146echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10147echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10148
10149if test x"$lt_prog_compiler_pic_works" = xyes; then
10150    case $lt_prog_compiler_pic in
10151     "" | " "*) ;;
10152     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10153     esac
10154else
10155    lt_prog_compiler_pic=
10156     lt_prog_compiler_can_build_shared=no
10157fi
10158
10159fi
10160case $host_os in
10161  # For platforms which do not support PIC, -DPIC is meaningless:
10162  *djgpp*)
10163    lt_prog_compiler_pic=
10164    ;;
10165  *)
10166    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10167    ;;
10168esac
10169
10170#
10171# Check to make sure the static flag actually works.
10172#
10173wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10174echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10176if test "${lt_prog_compiler_static_works+set}" = set; then
10177  echo $ECHO_N "(cached) $ECHO_C" >&6
10178else
10179  lt_prog_compiler_static_works=no
10180   save_LDFLAGS="$LDFLAGS"
10181   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10182   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10183   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10184     # The linker can only warn and ignore the option if not recognized
10185     # So say no if there are warnings
10186     if test -s conftest.err; then
10187       # Append any errors to the config.log.
10188       cat conftest.err 1>&5
10189       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10190       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10191       if diff conftest.exp conftest.er2 >/dev/null; then
10192         lt_prog_compiler_static_works=yes
10193       fi
10194     else
10195       lt_prog_compiler_static_works=yes
10196     fi
10197   fi
10198   $rm conftest*
10199   LDFLAGS="$save_LDFLAGS"
10200
10201fi
10202echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10203echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10204
10205if test x"$lt_prog_compiler_static_works" = xyes; then
10206    :
10207else
10208    lt_prog_compiler_static=
10209fi
10210
10211
10212echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10214if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10215  echo $ECHO_N "(cached) $ECHO_C" >&6
10216else
10217  lt_cv_prog_compiler_c_o=no
10218   $rm -r conftest 2>/dev/null
10219   mkdir conftest
10220   cd conftest
10221   mkdir out
10222   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10223
10224   lt_compiler_flag="-o out/conftest2.$ac_objext"
10225   # Insert the option either (1) after the last *FLAGS variable, or
10226   # (2) before a word containing "conftest.", or (3) at the end.
10227   # Note that $ac_compile itself does not contain backslashes and begins
10228   # with a dollar sign (not a hyphen), so the echo should work correctly.
10229   lt_compile=`echo "$ac_compile" | $SED \
10230   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10231   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10232   -e 's:$: $lt_compiler_flag:'`
10233   (eval echo "\"\$as_me:10233: $lt_compile\"" >&5)
10234   (eval "$lt_compile" 2>out/conftest.err)
10235   ac_status=$?
10236   cat out/conftest.err >&5
10237   echo "$as_me:10237: \$? = $ac_status" >&5
10238   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10239   then
10240     # The compiler can only warn and ignore the option if not recognized
10241     # So say no if there are warnings
10242     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10243     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10244     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10245       lt_cv_prog_compiler_c_o=yes
10246     fi
10247   fi
10248   chmod u+w . 2>&5
10249   $rm conftest*
10250   # SGI C++ compiler will create directory out/ii_files/ for
10251   # template instantiation
10252   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10253   $rm out/* && rmdir out
10254   cd ..
10255   rmdir conftest
10256   $rm conftest*
10257
10258fi
10259echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10260echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10261
10262
10263hard_links="nottested"
10264if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10265  # do not overwrite the value of need_locks provided by the user
10266  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10268  hard_links=yes
10269  $rm conftest*
10270  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10271  touch conftest.a
10272  ln conftest.a conftest.b 2>&5 || hard_links=no
10273  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10274  echo "$as_me:$LINENO: result: $hard_links" >&5
10275echo "${ECHO_T}$hard_links" >&6
10276  if test "$hard_links" = no; then
10277    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10279    need_locks=warn
10280  fi
10281else
10282  need_locks=no
10283fi
10284
10285echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10287
10288  runpath_var=
10289  allow_undefined_flag=
10290  enable_shared_with_static_runtimes=no
10291  archive_cmds=
10292  archive_expsym_cmds=
10293  old_archive_From_new_cmds=
10294  old_archive_from_expsyms_cmds=
10295  export_dynamic_flag_spec=
10296  whole_archive_flag_spec=
10297  thread_safe_flag_spec=
10298  hardcode_libdir_flag_spec=
10299  hardcode_libdir_flag_spec_ld=
10300  hardcode_libdir_separator=
10301  hardcode_direct=no
10302  hardcode_minus_L=no
10303  hardcode_shlibpath_var=unsupported
10304  link_all_deplibs=unknown
10305  hardcode_automatic=no
10306  module_cmds=
10307  module_expsym_cmds=
10308  always_export_symbols=no
10309  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10310  # include_expsyms should be a list of space-separated symbols to be *always*
10311  # included in the symbol list
10312  include_expsyms=
10313  # exclude_expsyms can be an extended regexp of symbols to exclude
10314  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10315  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10316  # as well as any symbol that contains `d'.
10317  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10318  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10319  # platforms (ab)use it in PIC code, but their linkers get confused if
10320  # the symbol is explicitly referenced.  Since portable code cannot
10321  # rely on this symbol name, it's probably fine to never include it in
10322  # preloaded symbol tables.
10323  extract_expsyms_cmds=
10324  # Just being paranoid about ensuring that cc_basename is set.
10325  for cc_temp in $compiler""; do
10326  case $cc_temp in
10327    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10328    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10329    \-*) ;;
10330    *) break;;
10331  esac
10332done
10333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10334
10335  case $host_os in
10336  cygwin* | mingw* | pw32*)
10337    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10338    # When not using gcc, we currently assume that we are using
10339    # Microsoft Visual C++.
10340    if test "$GCC" != yes; then
10341      with_gnu_ld=no
10342    fi
10343    ;;
10344  interix*)
10345    # we just hope/assume this is gcc and not c89 (= MSVC++)
10346    with_gnu_ld=yes
10347    ;;
10348  openbsd*)
10349    with_gnu_ld=no
10350    ;;
10351  esac
10352
10353  ld_shlibs=yes
10354  if test "$with_gnu_ld" = yes; then
10355    # If archive_cmds runs LD, not CC, wlarc should be empty
10356    wlarc='${wl}'
10357
10358    # Set some defaults for GNU ld with shared library support. These
10359    # are reset later if shared libraries are not supported. Putting them
10360    # here allows them to be overridden if necessary.
10361    runpath_var=LD_RUN_PATH
10362    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10363    export_dynamic_flag_spec='${wl}--export-dynamic'
10364    # ancient GNU ld didn't support --whole-archive et. al.
10365    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10366        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10367      else
10368        whole_archive_flag_spec=
10369    fi
10370    supports_anon_versioning=no
10371    case `$LD -v 2>/dev/null` in
10372      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10373      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10374      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10375      *\ 2.11.*) ;; # other 2.11 versions
10376      *) supports_anon_versioning=yes ;;
10377    esac
10378
10379    # See if GNU ld supports shared libraries.
10380    case $host_os in
10381    aix3* | aix4* | aix5*)
10382      # On AIX/PPC, the GNU linker is very broken
10383      if test "$host_cpu" != ia64; then
10384        ld_shlibs=no
10385        cat <<EOF 1>&2
10386
10387*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10388*** to be unable to reliably create shared libraries on AIX.
10389*** Therefore, libtool is disabling shared libraries support.  If you
10390*** really care for shared libraries, you may want to modify your PATH
10391*** so that a non-GNU linker is found, and then restart.
10392
10393EOF
10394      fi
10395      ;;
10396
10397    amigaos*)
10398      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)'
10399      hardcode_libdir_flag_spec='-L$libdir'
10400      hardcode_minus_L=yes
10401
10402      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10403      # that the semantics of dynamic libraries on AmigaOS, at least up
10404      # to version 4, is to share data among multiple programs linked
10405      # with the same dynamic library.  Since this doesn't match the
10406      # behavior of shared libraries on other platforms, we can't use
10407      # them.
10408      ld_shlibs=no
10409      ;;
10410
10411    beos*)
10412      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10413        allow_undefined_flag=unsupported
10414        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10415        # support --undefined.  This deserves some investigation.  FIXME
10416        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10417      else
10418        ld_shlibs=no
10419      fi
10420      ;;
10421
10422    cygwin* | mingw* | pw32*)
10423      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10424      # as there is no search path for DLLs.
10425      hardcode_libdir_flag_spec='-L$libdir'
10426      allow_undefined_flag=unsupported
10427      always_export_symbols=no
10428      enable_shared_with_static_runtimes=yes
10429      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10430
10431      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10432        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10433        # If the export-symbols file already is a .def file (1st line
10434        # is EXPORTS), use it as is; otherwise, prepend...
10435        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10436          cp $export_symbols $output_objdir/$soname.def;
10437        else
10438          echo EXPORTS > $output_objdir/$soname.def;
10439          cat $export_symbols >> $output_objdir/$soname.def;
10440        fi~
10441        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10442      else
10443        ld_shlibs=no
10444      fi
10445      ;;
10446
10447    interix3*)
10448      hardcode_direct=no
10449      hardcode_shlibpath_var=no
10450      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10451      export_dynamic_flag_spec='${wl}-E'
10452      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10453      # Instead, shared libraries are loaded at an image base (0x10000000 by
10454      # default) and relocated if they conflict, which is a slow very memory
10455      # consuming and fragmenting process.  To avoid this, we pick a random,
10456      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10457      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10458      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10459      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'
10460      ;;
10461
10462    linux*)
10463      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10464        tmp_addflag=
10465        case $cc_basename,$host_cpu in
10466        pgcc*)                          # Portland Group C compiler
10467          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'
10468          tmp_addflag=' $pic_flag'
10469          ;;
10470        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10471          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'
10472          tmp_addflag=' $pic_flag -Mnomain' ;;
10473        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10474          tmp_addflag=' -i_dynamic' ;;
10475        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10476          tmp_addflag=' -i_dynamic -nofor_main' ;;
10477        ifc* | ifort*)                  # Intel Fortran compiler
10478          tmp_addflag=' -nofor_main' ;;
10479        esac
10480        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10481
10482        if test $supports_anon_versioning = yes; then
10483          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10484  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10485  $echo "local: *; };" >> $output_objdir/$libname.ver~
10486          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10487        fi
10488      else
10489        ld_shlibs=no
10490      fi
10491      ;;
10492
10493    netbsd*)
10494      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10495        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10496        wlarc=
10497      else
10498        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10499        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10500      fi
10501      ;;
10502
10503    solaris*)
10504      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10505        ld_shlibs=no
10506        cat <<EOF 1>&2
10507
10508*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10509*** create shared libraries on Solaris systems.  Therefore, libtool
10510*** is disabling shared libraries support.  We urge you to upgrade GNU
10511*** binutils to release 2.9.1 or newer.  Another option is to modify
10512*** your PATH or compiler configuration so that the native linker is
10513*** used, and then restart.
10514
10515EOF
10516      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10517        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10518        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10519      else
10520        ld_shlibs=no
10521      fi
10522      ;;
10523
10524    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10525      case `$LD -v 2>&1` in
10526        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10527        ld_shlibs=no
10528        cat <<_LT_EOF 1>&2
10529
10530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10531*** reliably create shared libraries on SCO systems.  Therefore, libtool
10532*** is disabling shared libraries support.  We urge you to upgrade GNU
10533*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10534*** your PATH or compiler configuration so that the native linker is
10535*** used, and then restart.
10536
10537_LT_EOF
10538        ;;
10539        *)
10540          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10541            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10542            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10543            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10544          else
10545            ld_shlibs=no
10546          fi
10547        ;;
10548      esac
10549      ;;
10550
10551    sunos4*)
10552      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10553      wlarc=
10554      hardcode_direct=yes
10555      hardcode_shlibpath_var=no
10556      ;;
10557
10558    *)
10559      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10560        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10562      else
10563        ld_shlibs=no
10564      fi
10565      ;;
10566    esac
10567
10568    if test "$ld_shlibs" = no; then
10569      runpath_var=
10570      hardcode_libdir_flag_spec=
10571      export_dynamic_flag_spec=
10572      whole_archive_flag_spec=
10573    fi
10574  else
10575    # PORTME fill in a description of your system's linker (not GNU ld)
10576    case $host_os in
10577    aix3*)
10578      allow_undefined_flag=unsupported
10579      always_export_symbols=yes
10580      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'
10581      # Note: this linker hardcodes the directories in LIBPATH if there
10582      # are no directories specified by -L.
10583      hardcode_minus_L=yes
10584      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10585        # Neither direct hardcoding nor static linking is supported with a
10586        # broken collect2.
10587        hardcode_direct=unsupported
10588      fi
10589      ;;
10590
10591    aix4* | aix5*)
10592      if test "$host_cpu" = ia64; then
10593        # On IA64, the linker does run time linking by default, so we don't
10594        # have to do anything special.
10595        aix_use_runtimelinking=no
10596        exp_sym_flag='-Bexport'
10597        no_entry_flag=""
10598      else
10599        # If we're using GNU nm, then we don't want the "-C" option.
10600        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10601        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10602          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'
10603        else
10604          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'
10605        fi
10606        aix_use_runtimelinking=no
10607
10608        # Test if we are trying to use run time linking or normal
10609        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10610        # need to do runtime linking.
10611        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10612          for ld_flag in $LDFLAGS; do
10613          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10614            aix_use_runtimelinking=yes
10615            break
10616          fi
10617          done
10618          ;;
10619        esac
10620
10621        exp_sym_flag='-bexport'
10622        no_entry_flag='-bnoentry'
10623      fi
10624
10625      # When large executables or shared objects are built, AIX ld can
10626      # have problems creating the table of contents.  If linking a library
10627      # or program results in "error TOC overflow" add -mminimal-toc to
10628      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10629      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10630
10631      archive_cmds=''
10632      hardcode_direct=yes
10633      hardcode_libdir_separator=':'
10634      link_all_deplibs=yes
10635
10636      if test "$GCC" = yes; then
10637        case $host_os in aix4.[012]|aix4.[012].*)
10638        # We only want to do this on AIX 4.2 and lower, the check
10639        # below for broken collect2 doesn't work under 4.3+
10640          collect2name=`${CC} -print-prog-name=collect2`
10641          if test -f "$collect2name" && \
10642           strings "$collect2name" | grep resolve_lib_name >/dev/null
10643          then
10644          # We have reworked collect2
10645          hardcode_direct=yes
10646          else
10647          # We have old collect2
10648          hardcode_direct=unsupported
10649          # It fails to find uninstalled libraries when the uninstalled
10650          # path is not listed in the libpath.  Setting hardcode_minus_L
10651          # to unsupported forces relinking
10652          hardcode_minus_L=yes
10653          hardcode_libdir_flag_spec='-L$libdir'
10654          hardcode_libdir_separator=
10655          fi
10656          ;;
10657        esac
10658        shared_flag='-shared'
10659        if test "$aix_use_runtimelinking" = yes; then
10660          shared_flag="$shared_flag "'${wl}-G'
10661        fi
10662      else
10663        # not using gcc
10664        if test "$host_cpu" = ia64; then
10665        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10666        # chokes on -Wl,-G. The following line is correct:
10667          shared_flag='-G'
10668        else
10669          if test "$aix_use_runtimelinking" = yes; then
10670            shared_flag='${wl}-G'
10671          else
10672            shared_flag='${wl}-bM:SRE'
10673          fi
10674        fi
10675      fi
10676
10677      # It seems that -bexpall does not export symbols beginning with
10678      # underscore (_), so it is better to generate a list of symbols to export.
10679      always_export_symbols=yes
10680      if test "$aix_use_runtimelinking" = yes; then
10681        # Warning - without using the other runtime loading flags (-brtl),
10682        # -berok will link without error, but may produce a broken library.
10683        allow_undefined_flag='-berok'
10684       # Determine the default libpath from the value encoded in an empty executable.
10685       cat >conftest.$ac_ext <<_ACEOF
10686/* confdefs.h.  */
10687_ACEOF
10688cat confdefs.h >>conftest.$ac_ext
10689cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h.  */
10691
10692#ifdef F77_DUMMY_MAIN
10693
10694#  ifdef __cplusplus
10695     extern "C"
10696#  endif
10697   int F77_DUMMY_MAIN() { return 1; }
10698
10699#endif
10700int
10701main ()
10702{
10703
10704  ;
10705  return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext conftest$ac_exeext
10709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10710  (eval $ac_link) 2>conftest.er1
10711  ac_status=$?
10712  grep -v '^ *+' conftest.er1 >conftest.err
10713  rm -f conftest.er1
10714  cat conftest.err >&5
10715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716  (exit $ac_status); } &&
10717         { ac_try='test -z "$ac_c_werror_flag"
10718                         || test ! -s conftest.err'
10719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720  (eval $ac_try) 2>&5
10721  ac_status=$?
10722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723  (exit $ac_status); }; } &&
10724         { ac_try='test -s conftest$ac_exeext'
10725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726  (eval $ac_try) 2>&5
10727  ac_status=$?
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); }; }; then
10730
10731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10732}'`
10733# Check for a 64-bit object if we didn't find anything.
10734if 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; }
10735}'`; fi
10736else
10737  echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
10739
10740fi
10741rm -f conftest.err conftest.$ac_objext \
10742      conftest$ac_exeext conftest.$ac_ext
10743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10744
10745       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10746        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"
10747       else
10748        if test "$host_cpu" = ia64; then
10749          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10750          allow_undefined_flag="-z nodefs"
10751          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"
10752        else
10753         # Determine the default libpath from the value encoded in an empty executable.
10754         cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h.  */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h.  */
10760
10761#ifdef F77_DUMMY_MAIN
10762
10763#  ifdef __cplusplus
10764     extern "C"
10765#  endif
10766   int F77_DUMMY_MAIN() { return 1; }
10767
10768#endif
10769int
10770main ()
10771{
10772
10773  ;
10774  return 0;
10775}
10776_ACEOF
10777rm -f conftest.$ac_objext conftest$ac_exeext
10778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10779  (eval $ac_link) 2>conftest.er1
10780  ac_status=$?
10781  grep -v '^ *+' conftest.er1 >conftest.err
10782  rm -f conftest.er1
10783  cat conftest.err >&5
10784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785  (exit $ac_status); } &&
10786         { ac_try='test -z "$ac_c_werror_flag"
10787                         || test ! -s conftest.err'
10788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789  (eval $ac_try) 2>&5
10790  ac_status=$?
10791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792  (exit $ac_status); }; } &&
10793         { ac_try='test -s conftest$ac_exeext'
10794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795  (eval $ac_try) 2>&5
10796  ac_status=$?
10797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798  (exit $ac_status); }; }; then
10799
10800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10801}'`
10802# Check for a 64-bit object if we didn't find anything.
10803if 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; }
10804}'`; fi
10805else
10806  echo "$as_me: failed program was:" >&5
10807sed 's/^/| /' conftest.$ac_ext >&5
10808
10809fi
10810rm -f conftest.err conftest.$ac_objext \
10811      conftest$ac_exeext conftest.$ac_ext
10812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10813
10814         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10815          # Warning - without using the other run time loading flags,
10816          # -berok will link without error, but may produce a broken library.
10817          no_undefined_flag=' ${wl}-bernotok'
10818          allow_undefined_flag=' ${wl}-berok'
10819          # Exported symbols can be pulled into shared objects from archives
10820          whole_archive_flag_spec='$convenience'
10821          archive_cmds_need_lc=yes
10822          # This is similar to how AIX traditionally builds its shared libraries.
10823          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'
10824        fi
10825      fi
10826      ;;
10827
10828    amigaos*)
10829      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)'
10830      hardcode_libdir_flag_spec='-L$libdir'
10831      hardcode_minus_L=yes
10832      # see comment about different semantics on the GNU ld section
10833      ld_shlibs=no
10834      ;;
10835
10836    bsdi[45]*)
10837      export_dynamic_flag_spec=-rdynamic
10838      ;;
10839
10840    cygwin* | mingw* | pw32*)
10841      # When not using gcc, we currently assume that we are using
10842      # Microsoft Visual C++.
10843      # hardcode_libdir_flag_spec is actually meaningless, as there is
10844      # no search path for DLLs.
10845      hardcode_libdir_flag_spec=' '
10846      allow_undefined_flag=unsupported
10847      # Tell ltmain to make .lib files, not .a files.