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

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

restoring BuildTools/ThirdParty?/FilterSQP/stable/1.2

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