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

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

temporarily committing release candidate

File size: 771.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.3.1.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.3.1'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.3.1'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 1.3.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 1.3.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-filtersqp
1080                          compile project FilterSQP with debug compiler flags
1081
1082  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1083  --disable-pkg-config    disable use of pkg-config (if available)
1084  --disable-dependency-tracking  speeds up one-time build
1085  --enable-dependency-tracking   do not reject slow dependency extractors
1086  --enable-maintainer-mode  enable make rules and dependencies not useful
1087                          (and sometimes confusing) to the casual installer
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --disable-dependency-linking
1096                          disable linking library dependencies into shared
1097                          libraries
1098
1099Optional Packages:
1100  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1101  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1102  --with-filtersqp-verbosity
1103                          specify the debug verbosity level for project
1104                          FilterSQP
1105  --with-filtersqp-checklevel
1106                          specify the sanity check level for project FilterSQP
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  ADD_FFLAGS  Additional Fortran compiler options
1128  DBG_FFLAGS  Debug Fortran compiler options
1129  OPT_FFLAGS  Optimize Fortran compiler options
1130  F77         Fortran 77 compiler command
1131  FFLAGS      Fortran 77 compiler flags
1132  MPIF77      Fortran MPI Compiler
1133  PKG_CONFIG  path to pkg-config utility
1134  CPP         C preprocessor
1135  CXX         C++ compiler command
1136  CXXFLAGS    C++ compiler flags
1137  CXXCPP      C++ preprocessor
1138
1139Use these variables to override the choices made by `configure' or to help
1140it to find libraries and programs with nonstandard names/locations.
1141
1142Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1143_ACEOF
1144fi
1145
1146if test "$ac_init_help" = "recursive"; then
1147  # If there are subdirs, report their specific --help.
1148  ac_popdir=`pwd`
1149  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1150    test -d $ac_dir || continue
1151    ac_builddir=.
1152
1153if test "$ac_dir" != .; then
1154  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1155  # A "../" for each directory in $ac_dir_suffix.
1156  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1157else
1158  ac_dir_suffix= ac_top_builddir=
1159fi
1160
1161case $srcdir in
1162  .)  # No --srcdir option.  We are building in place.
1163    ac_srcdir=.
1164    if test -z "$ac_top_builddir"; then
1165       ac_top_srcdir=.
1166    else
1167       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1168    fi ;;
1169  [\\/]* | ?:[\\/]* )  # Absolute path.
1170    ac_srcdir=$srcdir$ac_dir_suffix;
1171    ac_top_srcdir=$srcdir ;;
1172  *) # Relative path.
1173    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1174    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1175esac
1176
1177# Do not use `cd foo && pwd` to compute absolute paths, because
1178# the directories may not exist.
1179case `pwd` in
1180.) ac_abs_builddir="$ac_dir";;
1181*)
1182  case "$ac_dir" in
1183  .) ac_abs_builddir=`pwd`;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1185  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_top_builddir=${ac_top_builddir}.;;
1190*)
1191  case ${ac_top_builddir}. in
1192  .) ac_abs_top_builddir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1194  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_srcdir=$ac_srcdir;;
1199*)
1200  case $ac_srcdir in
1201  .) ac_abs_srcdir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1203  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1204  esac;;
1205esac
1206case $ac_abs_builddir in
1207.) ac_abs_top_srcdir=$ac_top_srcdir;;
1208*)
1209  case $ac_top_srcdir in
1210  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1211  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1212  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1213  esac;;
1214esac
1215
1216    cd $ac_dir
1217    # Check for guested configure; otherwise get Cygnus style configure.
1218    if test -f $ac_srcdir/configure.gnu; then
1219      echo
1220      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1221    elif test -f $ac_srcdir/configure; then
1222      echo
1223      $SHELL $ac_srcdir/configure  --help=recursive
1224    elif test -f $ac_srcdir/configure.ac ||
1225           test -f $ac_srcdir/configure.in; then
1226      echo
1227      $ac_configure --help
1228    else
1229      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1230    fi
1231    cd $ac_popdir
1232  done
1233fi
1234
1235test -n "$ac_init_help" && exit 0
1236if $ac_init_version; then
1237  cat <<\_ACEOF
1238ThirdPartyFilterSQP configure 1.3.1
1239generated by GNU Autoconf 2.59
1240
1241Copyright (C) 2003 Free Software Foundation, Inc.
1242This configure script is free software; the Free Software Foundation
1243gives unlimited permission to copy, distribute and modify it.
1244
1245
1246Copyright 2006 International Business Machines and others.
1247All Rights Reserved.
1248This file is part of the open source package Coin which is distributed
1249under the Eclipse Public License.
1250_ACEOF
1251  exit 0
1252fi
1253exec 5>config.log
1254cat >&5 <<_ACEOF
1255This file contains any messages produced by compilers while
1256running configure, to aid debugging if configure makes a mistake.
1257
1258It was created by ThirdPartyFilterSQP $as_me 1.3.1, which was
1259generated by GNU Autoconf 2.59.  Invocation command line was
1260
1261  $ $0 $@
1262
1263_ACEOF
1264{
1265cat <<_ASUNAME
1266## --------- ##
1267## Platform. ##
1268## --------- ##
1269
1270hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1271uname -m = `(uname -m) 2>/dev/null || echo unknown`
1272uname -r = `(uname -r) 2>/dev/null || echo unknown`
1273uname -s = `(uname -s) 2>/dev/null || echo unknown`
1274uname -v = `(uname -v) 2>/dev/null || echo unknown`
1275
1276/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1277/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1278
1279/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1280/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1281/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1282hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1283/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1284/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1285/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1286
1287_ASUNAME
1288
1289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290for as_dir in $PATH
1291do
1292  IFS=$as_save_IFS
1293  test -z "$as_dir" && as_dir=.
1294  echo "PATH: $as_dir"
1295done
1296
1297} >&5
1298
1299cat >&5 <<_ACEOF
1300
1301
1302## ----------- ##
1303## Core tests. ##
1304## ----------- ##
1305
1306_ACEOF
1307
1308
1309# Keep a trace of the command line.
1310# Strip out --no-create and --no-recursion so they do not pile up.
1311# Strip out --silent because we don't want to record it for future runs.
1312# Also quote any args containing shell meta-characters.
1313# Make two passes to allow for proper duplicate-argument suppression.
1314ac_configure_args=
1315ac_configure_args0=
1316ac_configure_args1=
1317ac_sep=
1318ac_must_keep_next=false
1319for ac_pass in 1 2
1320do
1321  for ac_arg
1322  do
1323    case $ac_arg in
1324    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1325    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326    | -silent | --silent | --silen | --sile | --sil)
1327      continue ;;
1328    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1329      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1330    esac
1331    case $ac_pass in
1332    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1333    2)
1334      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1335      if test $ac_must_keep_next = true; then
1336        ac_must_keep_next=false # Got value, back to normal.
1337      else
1338        case $ac_arg in
1339          *=* | --config-cache | -C | -disable-* | --disable-* \
1340          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1341          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1342          | -with-* | --with-* | -without-* | --without-* | --x)
1343            case "$ac_configure_args0 " in
1344              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1345            esac
1346            ;;
1347          -* ) ac_must_keep_next=true ;;
1348        esac
1349      fi
1350      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1351      # Get rid of the leading space.
1352      ac_sep=" "
1353      ;;
1354    esac
1355  done
1356done
1357$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1358$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1359
1360# When interrupted or exit'd, cleanup temporary files, and complete
1361# config.log.  We remove comments because anyway the quotes in there
1362# would cause problems or look ugly.
1363# WARNING: Be sure not to use single quotes in there, as some shells,
1364# such as our DU 5.0 friend, will then `close' the trap.
1365trap 'exit_status=$?
1366  # Save into config.log some information that might help in debugging.
1367  {
1368    echo
1369
1370    cat <<\_ASBOX
1371## ---------------- ##
1372## Cache variables. ##
1373## ---------------- ##
1374_ASBOX
1375    echo
1376    # The following way of writing the cache mishandles newlines in values,
1377{
1378  (set) 2>&1 |
1379    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1380    *ac_space=\ *)
1381      sed -n \
1382        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1383          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1384      ;;
1385    *)
1386      sed -n \
1387        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1388      ;;
1389    esac;
1390}
1391    echo
1392
1393    cat <<\_ASBOX
1394## ----------------- ##
1395## Output variables. ##
1396## ----------------- ##
1397_ASBOX
1398    echo
1399    for ac_var in $ac_subst_vars
1400    do
1401      eval ac_val=$`echo $ac_var`
1402      echo "$ac_var='"'"'$ac_val'"'"'"
1403    done | sort
1404    echo
1405
1406    if test -n "$ac_subst_files"; then
1407      cat <<\_ASBOX
1408## ------------- ##
1409## Output files. ##
1410## ------------- ##
1411_ASBOX
1412      echo
1413      for ac_var in $ac_subst_files
1414      do
1415        eval ac_val=$`echo $ac_var`
1416        echo "$ac_var='"'"'$ac_val'"'"'"
1417      done | sort
1418      echo
1419    fi
1420
1421    if test -s confdefs.h; then
1422      cat <<\_ASBOX
1423## ----------- ##
1424## confdefs.h. ##
1425## ----------- ##
1426_ASBOX
1427      echo
1428      sed "/^$/d" confdefs.h | sort
1429      echo
1430    fi
1431    test "$ac_signal" != 0 &&
1432      echo "$as_me: caught signal $ac_signal"
1433    echo "$as_me: exit $exit_status"
1434  } >&5
1435  rm -f core *.core &&
1436  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1437    exit $exit_status
1438     ' 0
1439for ac_signal in 1 2 13 15; do
1440  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1441done
1442ac_signal=0
1443
1444# confdefs.h avoids OS command line length limits that DEFS can exceed.
1445rm -rf conftest* confdefs.h
1446# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1447echo >confdefs.h
1448
1449# Predefined preprocessor variables.
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_NAME "$PACKAGE_NAME"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_VERSION "$PACKAGE_VERSION"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_STRING "$PACKAGE_STRING"
1468_ACEOF
1469
1470
1471cat >>confdefs.h <<_ACEOF
1472#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1473_ACEOF
1474
1475
1476# Let the site file select an alternate cache file if it wants to.
1477# Prefer explicitly selected file to automatically selected ones.
1478if test -z "$CONFIG_SITE"; then
1479  if test "x$prefix" != xNONE; then
1480    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1481  else
1482    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1483  fi
1484fi
1485for ac_site_file in $CONFIG_SITE; do
1486  if test -r "$ac_site_file"; then
1487    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1488echo "$as_me: loading site script $ac_site_file" >&6;}
1489    sed 's/^/| /' "$ac_site_file" >&5
1490    . "$ac_site_file"
1491  fi
1492done
1493
1494if test -r "$cache_file"; then
1495  # Some versions of bash will fail to source /dev/null (special
1496  # files actually), so we avoid doing that.
1497  if test -f "$cache_file"; then
1498    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1499echo "$as_me: loading cache $cache_file" >&6;}
1500    case $cache_file in
1501      [\\/]* | ?:[\\/]* ) . $cache_file;;
1502      *)                      . ./$cache_file;;
1503    esac
1504  fi
1505else
1506  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1507echo "$as_me: creating cache $cache_file" >&6;}
1508  >$cache_file
1509fi
1510
1511# Check that the precious variables saved in the cache have kept the same
1512# value.
1513ac_cache_corrupted=false
1514for ac_var in `(set) 2>&1 |
1515               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1516  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1517  eval ac_new_set=\$ac_env_${ac_var}_set
1518  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1519  eval ac_new_val="\$ac_env_${ac_var}_value"
1520  case $ac_old_set,$ac_new_set in
1521    set,)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,set)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,);;
1530    *)
1531      if test "x$ac_old_val" != "x$ac_new_val"; then
1532        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1533echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1534        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1535echo "$as_me:   former value:  $ac_old_val" >&2;}
1536        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1537echo "$as_me:   current value: $ac_new_val" >&2;}
1538        ac_cache_corrupted=:
1539      fi;;
1540  esac
1541  # Pass precious variables to config.status.
1542  if test "$ac_new_set" = set; then
1543    case $ac_new_val in
1544    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1545      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1546    *) ac_arg=$ac_var=$ac_new_val ;;
1547    esac
1548    case " $ac_configure_args " in
1549      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1550      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1551    esac
1552  fi
1553done
1554if $ac_cache_corrupted; then
1555  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1556echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1557  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1558echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1559   { (exit 1); exit 1; }; }
1560fi
1561
1562ac_ext=c
1563ac_cpp='$CPP $CPPFLAGS'
1564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1566ac_compiler_gnu=$ac_cv_c_compiler_gnu
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597# List one file in the package so that the configure script can test
1598# whether the package is actually there
1599
1600
1601# Where should everything be installed by default?  Here, we want it
1602# to be installed directly in 'bin', 'lib', 'include' subdirectories
1603# of the directory where configure is run.  The default would be
1604# /usr/local.
1605
1606
1607
1608# As backup, we make sure we don't loose an FLIBS if it has been set
1609# by the user
1610save_FLIBS="$FLIBS"
1611
1612# A useful makefile conditional that is always false
1613
1614
1615if false; then
1616  ALWAYS_FALSE_TRUE=
1617  ALWAYS_FALSE_FALSE='#'
1618else
1619  ALWAYS_FALSE_TRUE='#'
1620  ALWAYS_FALSE_FALSE=
1621fi
1622
1623
1624# We set the following variable so that we know later in AC_COIN_FINALIZE
1625# that we are in a project main directory
1626coin_projectdir=yes
1627
1628# Set the project's version numbers
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1633_ACEOF
1634
1635
1636  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1637  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1638  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1639  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1640  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1641  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1642
1643cat >>confdefs.h <<_ACEOF
1644#define FILTERSQP_VERSION_MAJOR $coin_majorver
1645_ACEOF
1646
1647
1648cat >>confdefs.h <<_ACEOF
1649#define FILTERSQP_VERSION_MINOR $coin_minorver
1650_ACEOF
1651
1652
1653cat >>confdefs.h <<_ACEOF
1654#define FILTERSQP_VERSION_RELEASE $coin_releasever
1655_ACEOF
1656
1657
1658  # We use the following variable to have a string with the upper case
1659  # version of the project name
1660  COIN_PRJCT=FILTERSQP
1661
1662  # Set the project's SVN revision number. The complicated sed expression
1663  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1664  # as a single number.
1665  # Extract the first word of "svnversion", so it can be a program name with args.
1666set dummy svnversion; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_have_svnversion+set}" = set; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  if test -n "$have_svnversion"; then
1673  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1674else
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678  IFS=$as_save_IFS
1679  test -z "$as_dir" && as_dir=.
1680  for ac_exec_ext in '' $ac_executable_extensions; do
1681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682    ac_cv_prog_have_svnversion="yes"
1683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684    break 2
1685  fi
1686done
1687done
1688
1689  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1690fi
1691fi
1692have_svnversion=$ac_cv_prog_have_svnversion
1693if test -n "$have_svnversion"; then
1694  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1695echo "${ECHO_T}$have_svnversion" >&6
1696else
1697  echo "$as_me:$LINENO: result: no" >&5
1698echo "${ECHO_T}no" >&6
1699fi
1700
1701  if test "x$have_svnversion" = xyes; then
1702
1703    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1704    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1705      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1706
1707cat >>confdefs.h <<_ACEOF
1708#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1709_ACEOF
1710
1711    fi
1712  fi
1713
1714
1715
1716# Capture libtool library version, if given.
1717 coin_libversion=4:1:3
1718
1719
1720
1721
1722#############################################################################
1723#                         Standard build tool stuff                         #
1724#############################################################################
1725
1726# Get the system type
1727ac_aux_dir=
1728for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1729  if 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/install.sh; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/install.sh -c"
1736    break
1737  elif test -f $ac_dir/shtool; then
1738    ac_aux_dir=$ac_dir
1739    ac_install_sh="$ac_aux_dir/shtool install -c"
1740    break
1741  fi
1742done
1743if test -z "$ac_aux_dir"; then
1744  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1745echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1746   { (exit 1); exit 1; }; }
1747fi
1748ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1749ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1750ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1751
1752# Make sure we can run config.sub.
1753$ac_config_sub sun4 >/dev/null 2>&1 ||
1754  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1755echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1756   { (exit 1); exit 1; }; }
1757
1758echo "$as_me:$LINENO: checking build system type" >&5
1759echo $ECHO_N "checking build system type... $ECHO_C" >&6
1760if test "${ac_cv_build+set}" = set; then
1761  echo $ECHO_N "(cached) $ECHO_C" >&6
1762else
1763  ac_cv_build_alias=$build_alias
1764test -z "$ac_cv_build_alias" &&
1765  ac_cv_build_alias=`$ac_config_guess`
1766test -z "$ac_cv_build_alias" &&
1767  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1768echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1769   { (exit 1); exit 1; }; }
1770ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1771  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1772echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1773   { (exit 1); exit 1; }; }
1774
1775fi
1776echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1777echo "${ECHO_T}$ac_cv_build" >&6
1778build=$ac_cv_build
1779build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1782
1783
1784
1785# Check if user wants to produce debugging code
1786
1787echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1788echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1789
1790# Check whether --enable-debug or --disable-debug was given.
1791if test "${enable_debug+set}" = set; then
1792  enableval="$enable_debug"
1793  case "${enableval}" in
1794   yes) coin_debug_compile=true
1795        if test "${enable_shared+set}" = set; then :; else
1796          enable_shared=no
1797        fi
1798        ;;
1799   no)  coin_debug_compile=false
1800        ;;
1801   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1802echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1803   { (exit 1); exit 1; }; }
1804        ;;
1805esac
1806else
1807  coin_debug_compile=false
1808fi;
1809
1810# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1811if test "${enable_debug_filtersqp+set}" = set; then
1812  enableval="$enable_debug_filtersqp"
1813  case "${enableval}" in
1814    yes) coin_debug_compile=true
1815         ;;
1816    no)  coin_debug_compile=false
1817         ;;
1818    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1819echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1820   { (exit 1); exit 1; }; }
1821         ;;
1822 esac
1823else
1824  :
1825fi;
1826
1827 # m4_ifvaln([FilterSQP],
1828
1829if test $coin_debug_compile = true; then
1830  echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837
1838# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1839if test "${with_filtersqp_verbosity+set}" = set; then
1840  withval="$with_filtersqp_verbosity"
1841  if test "$withval" = yes; then
1842                withval=1
1843              fi
1844              coin_filtersqp_verbosity=$withval
1845else
1846  coin_filtersqp_verbosity=0
1847fi;
1848
1849cat >>confdefs.h <<_ACEOF
1850#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1851_ACEOF
1852
1853
1854
1855# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1856if test "${with_filtersqp_checklevel+set}" = set; then
1857  withval="$with_filtersqp_checklevel"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_filtersqp_checklevel=$withval
1862else
1863  coin_filtersqp_checklevel=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1868_ACEOF
1869
1870
1871 # m4_ifvaln([FilterSQP],
1872
1873
1874
1875# Get the name of the Fortran compiler and appropriate compiler options
1876
1877
1878  # for backward compatibility
1879  # Check whether --enable-doscompile or --disable-doscompile was given.
1880if test "${enable_doscompile+set}" = set; then
1881  enableval="$enable_doscompile"
1882  enable_doscompile=$enableval
1883else
1884  enable_doscompile=no
1885fi;
1886
1887  # Check whether --enable-msvc or --disable-msvc was given.
1888if test "${enable_msvc+set}" = set; then
1889  enableval="$enable_msvc"
1890  enable_msvc=$enableval
1891else
1892  enable_msvc=no
1893     if test "$enable_doscompile" = msvc ; then
1894       enable_msvc=yes
1895     elif test "$enable_doscompile" != no ; then
1896       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1897echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1898   { (exit 1); exit 1; }; }
1899     fi
1900
1901fi;
1902
1903  if test "$enable_msvc" = MD; then
1904    enable_shared=yes
1905    enable_msvc=yes
1906  fi
1907
1908  if test "$enable_msvc" = yes; then
1909    case $build in
1910      *-cygwin* | *-mingw*) ;;
1911      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1912echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1913   { (exit 1); exit 1; }; } ;;
1914    esac
1915  fi
1916
1917
1918
1919ac_ext=c
1920ac_cpp='$CPP $CPPFLAGS'
1921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923ac_compiler_gnu=$ac_cv_c_compiler_gnu
1924
1925
1926# For consistency, we set the C compiler to the same value of the C++
1927# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1928if test x"$CXX" != x; then
1929  case "$CXX" in
1930    clang* ) ;;
1931    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1932      if test x"$CC" = x; then
1933        CC="$CXX"
1934        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1935echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1936      fi
1937      ;;
1938  esac
1939fi
1940
1941
1942
1943
1944
1945
1946coin_has_cc=yes
1947
1948save_cflags="$CFLAGS"
1949
1950# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1951# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1952# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1953# compiler. In this case, put cc after gcc.
1954
1955case $build in
1956  *-cygwin* | *-mingw*)
1957             if test "$enable_msvc" = yes ; then
1958               comps="icl cl gcc"
1959             else
1960               comps="gcc icl cl"
1961             fi ;;
1962  *-*-solaris*)
1963             # Extract the first word of "cc", so it can be a program name with args.
1964set dummy cc; ac_word=$2
1965echo "$as_me:$LINENO: checking for $ac_word" >&5
1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1968  echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970  if test -n "$sol_cc_compiler"; then
1971  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1972else
1973  ac_prog_rejected=no
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  test -z "$as_dir" && as_dir=.
1979  for ac_exec_ext in '' $ac_executable_extensions; do
1980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982       ac_prog_rejected=yes
1983       continue
1984     fi
1985    ac_cv_prog_sol_cc_compiler="cc"
1986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987    break 2
1988  fi
1989done
1990done
1991
1992if test $ac_prog_rejected = yes; then
1993  # We found a bogon in the path, so make sure we never use it.
1994  set dummy $ac_cv_prog_sol_cc_compiler
1995  shift
1996  if test $# != 0; then
1997    # We chose a different compiler from the bogus one.
1998    # However, it has the same basename, so the bogon will be chosen
1999    # first if we set sol_cc_compiler to just the basename; use the full file name.
2000    shift
2001    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2002  fi
2003fi
2004fi
2005fi
2006sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2007if test -n "$sol_cc_compiler"; then
2008  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2009echo "${ECHO_T}$sol_cc_compiler" >&6
2010else
2011  echo "$as_me:$LINENO: result: no" >&5
2012echo "${ECHO_T}no" >&6
2013fi
2014
2015             if test "$sol_cc_compiler" = "cc" ; then
2016               comps="cc xlc gcc pgcc icc"
2017             else
2018               comps="xlc gcc pgcc icc cc"
2019             fi
2020             ;;
2021  *-*-darwin*) comps="clang gcc cc" ;;
2022  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2023  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2024  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2025esac
2026
2027# We delete the cached value, since the test might not have been
2028# performed with our choice of compilers earlier
2029$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2030# AC_MSG_NOTICE([C compiler candidates: $comps])
2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036if test -n "$ac_tool_prefix"; then
2037  for ac_prog in $comps
2038  do
2039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_CC+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$CC"; then
2047  ac_cv_prog_CC="$CC" # Let the user override the test.
2048else
2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050for as_dir in $PATH
2051do
2052  IFS=$as_save_IFS
2053  test -z "$as_dir" && as_dir=.
2054  for ac_exec_ext in '' $ac_executable_extensions; do
2055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058    break 2
2059  fi
2060done
2061done
2062
2063fi
2064fi
2065CC=$ac_cv_prog_CC
2066if test -n "$CC"; then
2067  echo "$as_me:$LINENO: result: $CC" >&5
2068echo "${ECHO_T}$CC" >&6
2069else
2070  echo "$as_me:$LINENO: result: no" >&5
2071echo "${ECHO_T}no" >&6
2072fi
2073
2074    test -n "$CC" && break
2075  done
2076fi
2077if test -z "$CC"; then
2078  ac_ct_CC=$CC
2079  for ac_prog in $comps
2080do
2081  # Extract the first word of "$ac_prog", so it can be a program name with args.
2082set dummy $ac_prog; ac_word=$2
2083echo "$as_me:$LINENO: checking for $ac_word" >&5
2084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086  echo $ECHO_N "(cached) $ECHO_C" >&6
2087else
2088  if test -n "$ac_ct_CC"; then
2089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090else
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096  for ac_exec_ext in '' $ac_executable_extensions; do
2097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098    ac_cv_prog_ac_ct_CC="$ac_prog"
2099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100    break 2
2101  fi
2102done
2103done
2104
2105fi
2106fi
2107ac_ct_CC=$ac_cv_prog_ac_ct_CC
2108if test -n "$ac_ct_CC"; then
2109  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2110echo "${ECHO_T}$ac_ct_CC" >&6
2111else
2112  echo "$as_me:$LINENO: result: no" >&5
2113echo "${ECHO_T}no" >&6
2114fi
2115
2116  test -n "$ac_ct_CC" && break
2117done
2118
2119  CC=$ac_ct_CC
2120fi
2121
2122
2123test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124See \`config.log' for more details." >&5
2125echo "$as_me: error: no acceptable C compiler found in \$PATH
2126See \`config.log' for more details." >&2;}
2127   { (exit 1); exit 1; }; }
2128
2129# Provide some information about the compiler.
2130echo "$as_me:$LINENO:" \
2131     "checking for C compiler version" >&5
2132ac_compiler=`set X $ac_compile; echo $2`
2133{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134  (eval $ac_compiler --version </dev/null >&5) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }
2138{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139  (eval $ac_compiler -v </dev/null >&5) 2>&5
2140  ac_status=$?
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); }
2143{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144  (eval $ac_compiler -V </dev/null >&5) 2>&5
2145  ac_status=$?
2146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147  (exit $ac_status); }
2148
2149cat >conftest.$ac_ext <<_ACEOF
2150/* confdefs.h.  */
2151_ACEOF
2152cat confdefs.h >>conftest.$ac_ext
2153cat >>conftest.$ac_ext <<_ACEOF
2154/* end confdefs.h.  */
2155
2156int
2157main ()
2158{
2159
2160  ;
2161  return 0;
2162}
2163_ACEOF
2164ac_clean_files_save=$ac_clean_files
2165ac_clean_files="$ac_clean_files a.out a.exe b.out"
2166# Try to create an executable without -o first, disregard a.out.
2167# It will help us diagnose broken compilers, and finding out an intuition
2168# of exeext.
2169echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173  (eval $ac_link_default) 2>&5
2174  ac_status=$?
2175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176  (exit $ac_status); }; then
2177  # Find the output, starting from the most likely.  This scheme is
2178# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179# resort.
2180
2181# Be careful to initialize this variable, since it used to be cached.
2182# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2183ac_cv_exeext=
2184# b.out is created by i960 compilers.
2185for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2186do
2187  test -f "$ac_file" || continue
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2190        ;;
2191    conftest.$ac_ext )
2192        # This is the source file.
2193        ;;
2194    [ab].out )
2195        # We found the default executable, but exeext='' is most
2196        # certainly right.
2197        break;;
2198    *.* )
2199        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200        # FIXME: I believe we export ac_cv_exeext for Libtool,
2201        # but it would be cool to find out if it's true.  Does anybody
2202        # maintain Libtool? --akim.
2203        export ac_cv_exeext
2204        break;;
2205    * )
2206        break;;
2207  esac
2208done
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214See \`config.log' for more details." >&5
2215echo "$as_me: error: C compiler cannot create executables
2216See \`config.log' for more details." >&2;}
2217   { (exit 77); exit 77; }; }
2218fi
2219
2220ac_exeext=$ac_cv_exeext
2221echo "$as_me:$LINENO: result: $ac_file" >&5
2222echo "${ECHO_T}$ac_file" >&6
2223
2224# Check the compiler produces executables we can run.  If not, either
2225# the compiler is broken, or we cross compile.
2226echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229# If not cross compiling, check that we can run a simple program.
2230if test "$cross_compiling" != yes; then
2231  if { ac_try='./$ac_file'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237    cross_compiling=no
2238  else
2239    if test "$cross_compiling" = maybe; then
2240        cross_compiling=yes
2241    else
2242        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot run C compiled programs.
2246If you meant to cross compile, use \`--host'.
2247See \`config.log' for more details." >&2;}
2248   { (exit 1); exit 1; }; }
2249    fi
2250  fi
2251fi
2252echo "$as_me:$LINENO: result: yes" >&5
2253echo "${ECHO_T}yes" >&6
2254
2255rm -f a.out a.exe conftest$ac_cv_exeext b.out
2256ac_clean_files=$ac_clean_files_save
2257# Check the compiler produces executables we can run.  If not, either
2258# the compiler is broken, or we cross compile.
2259echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262echo "${ECHO_T}$cross_compiling" >&6
2263
2264echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267  (eval $ac_link) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }; then
2271  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2273# work properly (i.e., refer to `conftest.exe'), while it won't with
2274# `rm'.
2275for ac_file in conftest.exe conftest conftest.*; do
2276  test -f "$ac_file" || continue
2277  case $ac_file in
2278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2279    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280          export ac_cv_exeext
2281          break;;
2282    * ) break;;
2283  esac
2284done
2285else
2286  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295echo "${ECHO_T}$ac_cv_exeext" >&6
2296
2297rm -f conftest.$ac_ext
2298EXEEXT=$ac_cv_exeext
2299ac_exeext=$EXEEXT
2300echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302if test "${ac_cv_objext+set}" = set; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  cat >conftest.$ac_ext <<_ACEOF
2306/* confdefs.h.  */
2307_ACEOF
2308cat confdefs.h >>conftest.$ac_ext
2309cat >>conftest.$ac_ext <<_ACEOF
2310/* end confdefs.h.  */
2311
2312int
2313main ()
2314{
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.o conftest.obj
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; then
2326  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2327  case $ac_file in
2328    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2329    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330       break;;
2331  esac
2332done
2333else
2334  echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338See \`config.log' for more details." >&5
2339echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340See \`config.log' for more details." >&2;}
2341   { (exit 1); exit 1; }; }
2342fi
2343
2344rm -f conftest.$ac_cv_objext conftest.$ac_ext
2345fi
2346echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347echo "${ECHO_T}$ac_cv_objext" >&6
2348OBJEXT=$ac_cv_objext
2349ac_objext=$OBJEXT
2350echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365#ifndef __GNUC__
2366       choke me
2367#endif
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>conftest.er1
2376  ac_status=$?
2377  grep -v '^ *+' conftest.er1 >conftest.err
2378  rm -f conftest.er1
2379  cat conftest.err >&5
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); } &&
2382         { ac_try='test -z "$ac_c_werror_flag"
2383                         || test ! -s conftest.err'
2384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385  (eval $ac_try) 2>&5
2386  ac_status=$?
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); }; } &&
2389         { ac_try='test -s conftest.$ac_objext'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; }; then
2395  ac_compiler_gnu=yes
2396else
2397  echo "$as_me: failed program was:" >&5
2398sed 's/^/| /' conftest.$ac_ext >&5
2399
2400ac_compiler_gnu=no
2401fi
2402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2403ac_cv_c_compiler_gnu=$ac_compiler_gnu
2404
2405fi
2406echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408GCC=`test $ac_compiler_gnu = yes && echo yes`
2409ac_test_CFLAGS=${CFLAGS+set}
2410ac_save_CFLAGS=$CFLAGS
2411CFLAGS="-g"
2412echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_g+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  cat >conftest.$ac_ext <<_ACEOF
2418/* confdefs.h.  */
2419_ACEOF
2420cat confdefs.h >>conftest.$ac_ext
2421cat >>conftest.$ac_ext <<_ACEOF
2422/* end confdefs.h.  */
2423
2424int
2425main ()
2426{
2427
2428  ;
2429  return 0;
2430}
2431_ACEOF
2432rm -f conftest.$ac_objext
2433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434  (eval $ac_compile) 2>conftest.er1
2435  ac_status=$?
2436  grep -v '^ *+' conftest.er1 >conftest.err
2437  rm -f conftest.er1
2438  cat conftest.err >&5
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); } &&
2441         { ac_try='test -z "$ac_c_werror_flag"
2442                         || test ! -s conftest.err'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; } &&
2448         { ac_try='test -s conftest.$ac_objext'
2449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450  (eval $ac_try) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); }; }; then
2454  ac_cv_prog_cc_g=yes
2455else
2456  echo "$as_me: failed program was:" >&5
2457sed 's/^/| /' conftest.$ac_ext >&5
2458
2459ac_cv_prog_cc_g=no
2460fi
2461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462fi
2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465if test "$ac_test_CFLAGS" = set; then
2466  CFLAGS=$ac_save_CFLAGS
2467elif test $ac_cv_prog_cc_g = yes; then
2468  if test "$GCC" = yes; then
2469    CFLAGS="-g -O2"
2470  else
2471    CFLAGS="-g"
2472  fi
2473else
2474  if test "$GCC" = yes; then
2475    CFLAGS="-O2"
2476  else
2477    CFLAGS=
2478  fi
2479fi
2480echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483  echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485  ac_cv_prog_cc_stdc=no
2486ac_save_CC=$CC
2487cat >conftest.$ac_ext <<_ACEOF
2488/* confdefs.h.  */
2489_ACEOF
2490cat confdefs.h >>conftest.$ac_ext
2491cat >>conftest.$ac_ext <<_ACEOF
2492/* end confdefs.h.  */
2493#include <stdarg.h>
2494#include <stdio.h>
2495#include <sys/types.h>
2496#include <sys/stat.h>
2497/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2498struct buf { int x; };
2499FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500static char *e (p, i)
2501     char **p;
2502     int i;
2503{
2504  return p[i];
2505}
2506static char *f (char * (*g) (char **, int), char **p, ...)
2507{
2508  char *s;
2509  va_list v;
2510  va_start (v,p);
2511  s = g (p, va_arg (v,int));
2512  va_end (v);
2513  return s;
2514}
2515
2516/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2517   function prototypes and stuff, but not '\xHH' hex character constants.
2518   These don't provoke an error unfortunately, instead are silently treated
2519   as 'x'.  The following induces an error, until -std1 is added to get
2520   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2521   array size at least.  It's necessary to write '\x00'==0 to get something
2522   that's true only with -std1.  */
2523int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524
2525int test (int i, double x);
2526struct s1 {int (*f) (int a);};
2527struct s2 {int (*f) (double a);};
2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2529int argc;
2530char **argv;
2531int
2532main ()
2533{
2534return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539# Don't try gcc -ansi; that turns off useful extensions and
2540# breaks some systems' header files.
2541# AIX                   -qlanglvl=ansi
2542# Ultrix and OSF/1      -std1
2543# HP-UX 10.20 and later -Ae
2544# HP-UX older versions  -Aa -D_HPUX_SOURCE
2545# SVR4                  -Xc -D__EXTENSIONS__
2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2547do
2548  CC="$ac_save_CC $ac_arg"
2549  rm -f conftest.$ac_objext
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551  (eval $ac_compile) 2>conftest.er1
2552  ac_status=$?
2553  grep -v '^ *+' conftest.er1 >conftest.err
2554  rm -f conftest.er1
2555  cat conftest.err >&5
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); } &&
2558         { ac_try='test -z "$ac_c_werror_flag"
2559                         || test ! -s conftest.err'
2560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561  (eval $ac_try) 2>&5
2562  ac_status=$?
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); }; } &&
2565         { ac_try='test -s conftest.$ac_objext'
2566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567  (eval $ac_try) 2>&5
2568  ac_status=$?
2569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570  (exit $ac_status); }; }; then
2571  ac_cv_prog_cc_stdc=$ac_arg
2572break
2573else
2574  echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577fi
2578rm -f conftest.err conftest.$ac_objext
2579done
2580rm -f conftest.$ac_ext conftest.$ac_objext
2581CC=$ac_save_CC
2582
2583fi
2584
2585case "x$ac_cv_prog_cc_stdc" in
2586  x|xno)
2587    echo "$as_me:$LINENO: result: none needed" >&5
2588echo "${ECHO_T}none needed" >&6 ;;
2589  *)
2590    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592    CC="$CC $ac_cv_prog_cc_stdc" ;;
2593esac
2594
2595# Some people use a C++ compiler to compile C.  Since we use `exit',
2596# in C++ we need to declare it.  In case someone uses the same compiler
2597# for both compiling C and C++ we need to have the C++ compiler decide
2598# the declaration of exit, since it's the most demanding environment.
2599cat >conftest.$ac_ext <<_ACEOF
2600#ifndef __cplusplus
2601  choke me
2602#endif
2603_ACEOF
2604rm -f conftest.$ac_objext
2605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606  (eval $ac_compile) 2>conftest.er1
2607  ac_status=$?
2608  grep -v '^ *+' conftest.er1 >conftest.err
2609  rm -f conftest.er1
2610  cat conftest.err >&5
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); } &&
2613         { ac_try='test -z "$ac_c_werror_flag"
2614                         || test ! -s conftest.err'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; } &&
2620         { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   '' \
2628   'extern "C" void std::exit (int) throw (); using std::exit;' \
2629   'extern "C" void std::exit (int); using std::exit;' \
2630   'extern "C" void exit (int) throw ();' \
2631   'extern "C" void exit (int);' \
2632   'void exit (int);'
2633do
2634  cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h.  */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>conftest.$ac_ext <<_ACEOF
2639/* end confdefs.h.  */
2640$ac_declaration
2641#include <stdlib.h>
2642int
2643main ()
2644{
2645exit (42);
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
2651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652  (eval $ac_compile) 2>conftest.er1
2653  ac_status=$?
2654  grep -v '^ *+' conftest.er1 >conftest.err
2655  rm -f conftest.er1
2656  cat conftest.err >&5
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); } &&
2659         { ac_try='test -z "$ac_c_werror_flag"
2660                         || test ! -s conftest.err'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; } &&
2666         { ac_try='test -s conftest.$ac_objext'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; }; then
2672  :
2673else
2674  echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677continue
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680  cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686$ac_declaration
2687int
2688main ()
2689{
2690exit (42);
2691  ;
2692  return 0;
2693}
2694_ACEOF
2695rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704         { ac_try='test -z "$ac_c_werror_flag"
2705                         || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711         { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  break
2718else
2719  echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724done
2725rm -f conftest*
2726if test -n "$ac_declaration"; then
2727  echo '#ifdef __cplusplus' >>confdefs.h
2728  echo $ac_declaration      >>confdefs.h
2729  echo '#endif'             >>confdefs.h
2730fi
2731
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736fi
2737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2738ac_ext=c
2739ac_cpp='$CPP $CPPFLAGS'
2740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743
2744if test -z "$CC" ; then
2745  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2746echo "$as_me: error: Failed to find a C compiler!" >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2750case "$CC" in
2751  clang* ) ;;
2752  cl* | */cl* | CL* | */CL* )
2753    if test "$ac_cv_prog_cc_g" = yes ; then
2754      ac_cv_prog_cc_g=no
2755      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2756echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2757    fi ;;
2758  * )
2759    if test x"$CYGPATH_W" = x ; then
2760      CYGPATH_W=echo
2761    fi
2762    ;;
2763esac
2764CFLAGS="$save_cflags"
2765
2766# add automake conditional so we can recognize cl compiler in makefile
2767coin_cc_is_cl=false
2768case "$CC" in
2769  clang* ) ;;
2770  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2771    coin_cc_is_cl=true
2772    ;;
2773esac
2774
2775
2776if test $coin_cc_is_cl = true; then
2777  COIN_CC_IS_CL_TRUE=
2778  COIN_CC_IS_CL_FALSE='#'
2779else
2780  COIN_CC_IS_CL_TRUE='#'
2781  COIN_CC_IS_CL_FALSE=
2782fi
2783
2784
2785# Check if a project specific CFLAGS variable has been set
2786if test x$COIN_PRJCT != x; then
2787  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2788  if test x$coin_tmp = xset; then
2789    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2790  fi
2791fi
2792
2793if test x"$CFLAGS" = x; then
2794
2795  coin_add_cflags=
2796  coin_opt_cflags=
2797  coin_dbg_cflags=
2798  coin_warn_cflags=
2799
2800  if test "$GCC" = "yes"; then
2801    case "$CC" in
2802      icc* | */icc*)
2803        ;;
2804      *)
2805        coin_opt_cflags="-O3"
2806        coin_add_cflags="-pipe"
2807        coin_dbg_cflags="-g -O0"
2808        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2809        case $build in
2810          *-darwin*)
2811            ;;
2812          *)
2813            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2814            ;;
2815        esac
2816    esac
2817  fi
2818  if test -z "$coin_opt_cflags"; then
2819    case $build in
2820      *-cygwin* | *-mingw*)
2821        case "$CC" in
2822          clang* ) ;;
2823          cl* | */cl* | CL* | */CL*)
2824            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2825              coin_opt_cflags='-MD -O2'
2826              coin_dbg_cflags='-MDd'
2827            else
2828              coin_opt_cflags='-MT -O2'
2829              coin_dbg_cflags='-MTd'
2830            fi
2831            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2832            ;;
2833          icl* | */icl* | ICL* | */ICL*)
2834            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2835              coin_opt_cflags='-MD -Ox'
2836              coin_dbg_cflags='-MDd -debug'
2837            else
2838              coin_opt_cflags='-MT -Ox'
2839              coin_dbg_cflags='-MTd -debug'
2840            fi
2841            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2842            ;;
2843        esac
2844        ;;
2845      *-linux-*)
2846        case "$CC" in
2847          icc* | */icc*)
2848            coin_opt_cflags="-O3 -ip -mp1"
2849            coin_add_cflags=""
2850            coin_dbg_cflags="-g"
2851            # Check if -i_dynamic is necessary (for new glibc library)
2852            CFLAGS=
2853            cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h.  */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h.  */
2859
2860int
2861main ()
2862{
2863int i=0; i++;
2864  ;
2865  return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext conftest$ac_exeext
2869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870  (eval $ac_link) 2>conftest.er1
2871  ac_status=$?
2872  grep -v '^ *+' conftest.er1 >conftest.err
2873  rm -f conftest.er1
2874  cat conftest.err >&5
2875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876  (exit $ac_status); } &&
2877         { ac_try='test -z "$ac_c_werror_flag"
2878                         || test ! -s conftest.err'
2879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880  (eval $ac_try) 2>&5
2881  ac_status=$?
2882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883  (exit $ac_status); }; } &&
2884         { ac_try='test -s conftest$ac_exeext'
2885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886  (eval $ac_try) 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }; }; then
2890  :
2891else
2892  echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895coin_add_cflags="-i_dynamic $coin_add_cflags"
2896fi
2897rm -f conftest.err conftest.$ac_objext \
2898      conftest$ac_exeext conftest.$ac_ext
2899            ;;
2900          pgcc* | */pgcc*)
2901            coin_opt_cflags="-fast"
2902            coin_add_cflags="-Kieee -pc 64"
2903            coin_dbg_cflags="-g"
2904            ;;
2905        esac
2906        ;;
2907      *-ibm-*)
2908        case "$CC" in
2909          xlc* | */xlc* | mpxlc* | */mpxlc*)
2910            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2911            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2912            coin_dbg_cflags="-g"
2913          ;;
2914        esac
2915        ;;
2916      *-hp-*)
2917        coin_opt_cflags="-O"
2918        coin_add_cflags="-Ae"
2919        coin_dbg_cflags="-g"
2920        ;;
2921      *-*-solaris*)
2922        coin_opt_cflags="-xO4"
2923        coin_dbg_cflags="-g"
2924        ;;
2925      *-sgi-*)
2926        coin_opt_cflags="-O -OPT:Olimit=0"
2927        coin_dbg_cflags="-g"
2928        ;;
2929    esac
2930  fi
2931
2932  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2933    coin_dbg_cflags="-g"
2934  fi
2935
2936  if test -z "$coin_opt_cflags"; then
2937    # Try if -O option works if nothing else is set
2938    CFLAGS="-O"
2939    cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949int i=0; i++;
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext conftest$ac_exeext
2955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2956  (eval $ac_link) 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } &&
2963         { ac_try='test -z "$ac_c_werror_flag"
2964                         || test ! -s conftest.err'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; } &&
2970         { ac_try='test -s conftest$ac_exeext'
2971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972  (eval $ac_try) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  coin_opt_cflags="-O"
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981fi
2982rm -f conftest.err conftest.$ac_objext \
2983      conftest$ac_exeext conftest.$ac_ext
2984  fi
2985
2986  # if PM doesn't want the warning messages, take them out
2987  if test x"$coin_skip_warn_cflags" = xyes; then
2988    coin_warn_cflags=
2989  fi
2990
2991  if test x${DBG_CFLAGS+set} != xset; then
2992    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2993  fi
2994  if test x${OPT_CFLAGS+set} != xset; then
2995    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2996  fi
2997
2998  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2999  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3000
3001  if test "$coin_debug_compile" = "true"; then
3002    CFLAGS="$DBG_CFLAGS"
3003  else
3004    CFLAGS="$OPT_CFLAGS"
3005  fi
3006else
3007  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3008  if test x${DBG_CFLAGS+set} != xset; then
3009    DBG_CFLAGS="$CFLAGS"
3010  fi
3011  if test x${OPT_CFLAGS+set} != xset; then
3012    OPT_CFLAGS="$CFLAGS"
3013  fi
3014fi
3015
3016# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3017if test x$COIN_PRJCT != x; then
3018  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3019fi
3020
3021# Try if CFLAGS works
3022save_CFLAGS="$CFLAGS"
3023cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h.  */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033int i=0; i++;
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext conftest$ac_exeext
3039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040  (eval $ac_link) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047         { ac_try='test -z "$ac_c_werror_flag"
3048                         || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054         { ac_try='test -s conftest$ac_exeext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  :
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065CFLAGS=
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069if test -z "$CFLAGS"; then
3070  { 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
3071echo "$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;}
3072  CFLAGS='-O'
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083int i=0; i++;
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext conftest$ac_exeext
3089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3090  (eval $ac_link) 2>conftest.er1
3091  ac_status=$?
3092  grep -v '^ *+' conftest.er1 >conftest.err
3093  rm -f conftest.er1
3094  cat conftest.err >&5
3095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096  (exit $ac_status); } &&
3097         { ac_try='test -z "$ac_c_werror_flag"
3098                         || test ! -s conftest.err'
3099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100  (eval $ac_try) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; } &&
3104         { ac_try='test -s conftest$ac_exeext'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; }; then
3110  :
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115CFLAGS=
3116fi
3117rm -f conftest.err conftest.$ac_objext \
3118      conftest$ac_exeext conftest.$ac_ext
3119  if test -z "$CFLAGS"; then
3120    { 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
3121echo "$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;}
3122  fi
3123fi
3124
3125{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3126echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3127
3128
3129if test x"$MPICC" = x; then :; else
3130  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3131echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3132  CC="$MPICC"
3133fi
3134
3135# Correct the LD variable if we are using the MS or Intel-windows compiler
3136case "$CC" in
3137  clang* ) ;;
3138  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3139    LD=link
3140    ;;
3141esac
3142
3143ac_ext=c
3144ac_cpp='$CPP $CPPFLAGS'
3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150case $build in
3151  *-cygwin* | *-mingw*)
3152     if test "$enable_msvc" = yes ; then
3153       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3154     else
3155       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3156     fi ;;
3157  *-*-solaris*)
3158     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3159  *-linux-gnu*)
3160     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3161  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3162 esac
3163
3164
3165
3166
3167
3168ac_ext=f
3169ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3170ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3172
3173
3174
3175
3176
3177
3178coin_has_f77=yes
3179
3180save_fflags="$FFLAGS"
3181
3182# We delete the cached value, since the test might not have been
3183# performed with our choice of compilers earlier
3184$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3185
3186# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3187# coin_f77_comps to see if there's a program that matches one of the names.
3188# If there's no such program, F77 = unavailable. If we match the name,
3189# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3190# compiler.
3191# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3192
3193
3194{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3195echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3196if test -n "$ac_tool_prefix"; then
3197  for ac_prog in $coin_f77_comps
3198  do
3199    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_F77+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  if test -n "$F77"; then
3207  ac_cv_prog_F77="$F77" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214  for ac_exec_ext in '' $ac_executable_extensions; do
3215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221done
3222
3223fi
3224fi
3225F77=$ac_cv_prog_F77
3226if test -n "$F77"; then
3227  echo "$as_me:$LINENO: result: $F77" >&5
3228echo "${ECHO_T}$F77" >&6
3229else
3230  echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232fi
3233
3234    test -n "$F77" && break
3235  done
3236fi
3237if test -z "$F77"; then
3238  ac_ct_F77=$F77
3239  for ac_prog in $coin_f77_comps
3240do
3241  # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  if test -n "$ac_ct_F77"; then
3249  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for ac_exec_ext in '' $ac_executable_extensions; do
3257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_ac_ct_F77="$ac_prog"
3259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263done
3264
3265fi
3266fi
3267ac_ct_F77=$ac_cv_prog_ac_ct_F77
3268if test -n "$ac_ct_F77"; then
3269  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3270echo "${ECHO_T}$ac_ct_F77" >&6
3271else
3272  echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274fi
3275
3276  test -n "$ac_ct_F77" && break
3277done
3278test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3279
3280  F77=$ac_ct_F77
3281fi
3282
3283
3284if test "$F77" != "unavailable" ; then
3285  ac_ext=f
3286ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3287ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3289if test -n "$ac_tool_prefix"; then
3290  for ac_prog in $coin_f77_comps
3291  do
3292    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3294echo "$as_me:$LINENO: checking for $ac_word" >&5
3295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296if test "${ac_cv_prog_F77+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  if test -n "$F77"; then
3300  ac_cv_prog_F77="$F77" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307  for ac_exec_ext in '' $ac_executable_extensions; do
3308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314done
3315
3316fi
3317fi
3318F77=$ac_cv_prog_F77
3319if test -n "$F77"; then
3320  echo "$as_me:$LINENO: result: $F77" >&5
3321echo "${ECHO_T}$F77" >&6
3322else
3323  echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325fi
3326
3327    test -n "$F77" && break
3328  done
3329fi
3330if test -z "$F77"; then
3331  ac_ct_F77=$F77
3332  for ac_prog in $coin_f77_comps
3333do
3334  # Extract the first word of "$ac_prog", so it can be a program name with args.
3335set dummy $ac_prog; ac_word=$2
3336echo "$as_me:$LINENO: checking for $ac_word" >&5
3337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3339  echo $ECHO_N "(cached) $ECHO_C" >&6
3340else
3341  if test -n "$ac_ct_F77"; then
3342  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3343else
3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349  for ac_exec_ext in '' $ac_executable_extensions; do
3350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3351    ac_cv_prog_ac_ct_F77="$ac_prog"
3352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353    break 2
3354  fi
3355done
3356done
3357
3358fi
3359fi
3360ac_ct_F77=$ac_cv_prog_ac_ct_F77
3361if test -n "$ac_ct_F77"; then
3362  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3363echo "${ECHO_T}$ac_ct_F77" >&6
3364else
3365  echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368
3369  test -n "$ac_ct_F77" && break
3370done
3371
3372  F77=$ac_ct_F77
3373fi
3374
3375
3376# Provide some information about the compiler.
3377echo "$as_me:3377:" \
3378     "checking for Fortran 77 compiler version" >&5
3379ac_compiler=`set X $ac_compile; echo $2`
3380{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3381  (eval $ac_compiler --version </dev/null >&5) 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); }
3385{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3386  (eval $ac_compiler -v </dev/null >&5) 2>&5
3387  ac_status=$?
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); }
3390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3391  (eval $ac_compiler -V </dev/null >&5) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }
3395rm -f a.out
3396
3397# If we don't use `.F' as extension, the preprocessor is not run on the
3398# input file.  (Note that this only needs to work for GNU compilers.)
3399ac_save_ext=$ac_ext
3400ac_ext=F
3401echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3402echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3403if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  cat >conftest.$ac_ext <<_ACEOF
3407      program main
3408#ifndef __GNUC__
3409       choke me
3410#endif
3411
3412      end
3413_ACEOF
3414rm -f conftest.$ac_objext
3415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3416  (eval $ac_compile) 2>conftest.er1
3417  ac_status=$?
3418  grep -v '^ *+' conftest.er1 >conftest.err
3419  rm -f conftest.er1
3420  cat conftest.err >&5
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); } &&
3423         { ac_try='test -z "$ac_f77_werror_flag"
3424                         || test ! -s conftest.err'
3425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426  (eval $ac_try) 2>&5
3427  ac_status=$?
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); }; } &&
3430         { ac_try='test -s conftest.$ac_objext'
3431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432  (eval $ac_try) 2>&5
3433  ac_status=$?
3434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435  (exit $ac_status); }; }; then
3436  ac_compiler_gnu=yes
3437else
3438  echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441ac_compiler_gnu=no
3442fi
3443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3444ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3445
3446fi
3447echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3448echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3449ac_ext=$ac_save_ext
3450ac_test_FFLAGS=${FFLAGS+set}
3451ac_save_FFLAGS=$FFLAGS
3452FFLAGS=
3453echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3454echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3455if test "${ac_cv_prog_f77_g+set}" = set; then
3456  echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458  FFLAGS=-g
3459cat >conftest.$ac_ext <<_ACEOF
3460      program main
3461
3462      end
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466  (eval $ac_compile) 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473         { ac_try='test -z "$ac_f77_werror_flag"
3474                         || test ! -s conftest.err'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; } &&
3480         { ac_try='test -s conftest.$ac_objext'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  ac_cv_prog_f77_g=yes
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491ac_cv_prog_f77_g=no
3492fi
3493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3497echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3498if test "$ac_test_FFLAGS" = set; then
3499  FFLAGS=$ac_save_FFLAGS
3500elif test $ac_cv_prog_f77_g = yes; then
3501  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3502    FFLAGS="-g -O2"
3503  else
3504    FFLAGS="-g"
3505  fi
3506else
3507  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3508    FFLAGS="-O2"
3509  else
3510    FFLAGS=
3511  fi
3512fi
3513
3514G77=`test $ac_compiler_gnu = yes && echo yes`
3515ac_ext=f
3516ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3517ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3519
3520else
3521  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3522echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3523fi
3524
3525FFLAGS="$save_fflags"
3526
3527# Check if a project specific FFLAGS variable has been set
3528if test x$COIN_PRJCT != x; then
3529  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3530  if test x$coin_tmp = xset; then
3531    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3532  fi
3533fi
3534
3535if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3536
3537  coin_add_fflags=
3538  coin_opt_fflags=
3539  coin_dbg_fflags=
3540  coin_warn_fflags=
3541
3542  if test "$G77" = "yes"; then
3543    coin_opt_fflags="-O3"
3544    coin_add_fflags="-pipe"
3545    coin_dbg_fflags="-g -O0"
3546  else
3547    case $build in
3548      *-cygwin* | *-mingw*)
3549        case $F77 in
3550          ifort* | */ifort* | IFORT* | */IFORT* )
3551            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3552              coin_opt_fflags='-MD -O3'
3553              coin_dbg_fflags='-MDd -debug'
3554            else
3555              coin_opt_fflags='-MT -O3'
3556              coin_dbg_fflags='-MTd -debug'
3557            fi
3558            coin_add_fflags='-fpp -nologo'
3559          ;;
3560          compile_f2c*)
3561            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3562              coin_opt_fflags='-MD -O2'
3563              coin_dbg_fflags='-MDd'
3564            else
3565              coin_opt_fflags='-MT -O2'
3566              coin_dbg_fflags='-MTd'
3567            fi
3568            coin_add_fflags='-nologo -wd4996'
3569          ;;
3570        esac
3571        ;;
3572      *-linux-*)
3573        case $F77 in
3574          ifc* | */ifc* | ifort* | */ifort*)
3575            coin_opt_fflags="-O3 -ip"
3576            coin_add_fflags="-cm -w90 -w95"
3577            coin_dbg_fflags="-g -CA -CB -CS"
3578            # Check if -i_dynamic is necessary (for new glibc library)
3579            FFLAGS=
3580            cat >conftest.$ac_ext <<_ACEOF
3581      program main
3582      write(*,*) 'Hello world'
3583      end
3584_ACEOF
3585rm -f conftest.$ac_objext conftest$ac_exeext
3586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3587  (eval $ac_link) 2>conftest.er1
3588  ac_status=$?
3589  grep -v '^ *+' conftest.er1 >conftest.err
3590  rm -f conftest.er1
3591  cat conftest.err >&5
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); } &&
3594         { ac_try='test -z "$ac_f77_werror_flag"
3595                         || test ! -s conftest.err'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; } &&
3601         { ac_try='test -s conftest$ac_exeext'
3602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603  (eval $ac_try) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; }; then
3607  :
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612coin_add_fflags="-i_dynamic $coin_add_fflags"
3613fi
3614rm -f conftest.err conftest.$ac_objext \
3615      conftest$ac_exeext conftest.$ac_ext
3616            ;;
3617          pgf77* | */pgf77* | pgf90* | */pgf90*)
3618            coin_opt_fflags="-fast"
3619            coin_add_fflags="-Kieee -pc 64"
3620            coin_dbg_fflags="-g"
3621          ;;
3622        esac
3623        ;;
3624      *-ibm-*)
3625        case "$F77" in
3626          xlf* | */xlf* | mpxlf* | */mpxlf* )
3627            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3628            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3629            coin_dbg_fflags="-g -C"
3630            ;;
3631        esac
3632        ;;
3633      *-hp-*)
3634        coin_opt_fflags="+O3"
3635        coin_add_fflags="+U77"
3636        coin_dbg_fflags="-C -g"
3637        ;;
3638      *-*-solaris*)
3639        coin_opt_fflags="-O4"
3640        coin_dbg_fflags="-g"
3641        ;;
3642      *-sgi-*)
3643        coin_opt_fflags="-O5 -OPT:Olimit=0"
3644        coin_dbg_fflags="-g"
3645        ;;
3646    esac
3647  fi
3648
3649  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3650    coin_dbg_fflags="-g"
3651  fi
3652
3653  if test -z "$coin_opt_fflags"; then
3654    # Try if -O option works if nothing else is set
3655    FFLAGS=-O
3656    cat >conftest.$ac_ext <<_ACEOF
3657      program main
3658      integer i
3659      end
3660_ACEOF
3661rm -f conftest.$ac_objext conftest$ac_exeext
3662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663  (eval $ac_link) 2>conftest.er1
3664  ac_status=$?
3665  grep -v '^ *+' conftest.er1 >conftest.err
3666  rm -f conftest.er1
3667  cat conftest.err >&5
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); } &&
3670         { ac_try='test -z "$ac_f77_werror_flag"
3671                         || test ! -s conftest.err'
3672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673  (eval $ac_try) 2>&5
3674  ac_status=$?
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); }; } &&
3677         { ac_try='test -s conftest$ac_exeext'
3678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679  (eval $ac_try) 2>&5
3680  ac_status=$?
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); }; }; then
3683  coin_opt_fflags="-O"
3684else
3685  echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688fi
3689rm -f conftest.err conftest.$ac_objext \
3690      conftest$ac_exeext conftest.$ac_ext
3691  fi
3692
3693  # if PM doesn't want the warning messages, take them out
3694  if test x"$coin_skip_warn_fflags" = xyes; then
3695    coin_warn_fflags=
3696  fi
3697
3698  if test x${DBG_FFLAGS+set} != xset; then
3699    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3700  fi
3701  if test x${OPT_FFLAGS+set} != xset; then
3702    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3703  fi
3704
3705  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3706  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3707
3708  if test "$coin_debug_compile" = "true"; then
3709    FFLAGS="$DBG_FFLAGS"
3710  else
3711    FFLAGS="$OPT_FFLAGS"
3712  fi
3713else
3714  FFLAGS="$FFLAGS $ADD_FFLAGS"
3715  if test x${DBG_FFLAGS+set} != xset; then
3716    DBG_FFLAGS="$FFLAGS"
3717  fi
3718  if test x${OPT_FFLAGS+set} != xset; then
3719    OPT_FFLAGS="$FFLAGS"
3720  fi
3721fi
3722
3723# Try if FFLAGS works
3724if test "$F77" != "unavailable" ; then
3725  cat >conftest.$ac_ext <<_ACEOF
3726      program main
3727      integer i
3728      end
3729_ACEOF
3730rm -f conftest.$ac_objext conftest$ac_exeext
3731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3732  (eval $ac_link) 2>conftest.er1
3733  ac_status=$?
3734  grep -v '^ *+' conftest.er1 >conftest.err
3735  rm -f conftest.er1
3736  cat conftest.err >&5
3737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738  (exit $ac_status); } &&
3739         { ac_try='test -z "$ac_f77_werror_flag"
3740                         || test ! -s conftest.err'
3741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3742  (eval $ac_try) 2>&5
3743  ac_status=$?
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); }; } &&
3746         { ac_try='test -s conftest$ac_exeext'
3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748  (eval $ac_try) 2>&5
3749  ac_status=$?
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); }; }; then
3752  :
3753else
3754  echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757FFLAGS=
3758fi
3759rm -f conftest.err conftest.$ac_objext \
3760      conftest$ac_exeext conftest.$ac_ext
3761  if test -z "$FFLAGS"; then
3762    { 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
3763echo "$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;}
3764    FFLAGS='-O'
3765    cat >conftest.$ac_ext <<_ACEOF
3766      program main
3767      integer i
3768      end
3769_ACEOF
3770rm -f conftest.$ac_objext conftest$ac_exeext
3771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772  (eval $ac_link) 2>conftest.er1
3773  ac_status=$?
3774  grep -v '^ *+' conftest.er1 >conftest.err
3775  rm -f conftest.er1
3776  cat conftest.err >&5
3777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778  (exit $ac_status); } &&
3779         { ac_try='test -z "$ac_f77_werror_flag"
3780                         || test ! -s conftest.err'
3781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782  (eval $ac_try) 2>&5
3783  ac_status=$?
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); }; } &&
3786         { ac_try='test -s conftest$ac_exeext'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; }; then
3792  :
3793else
3794  echo "$as_me: failed program was:" >&5
3795sed 's/^/| /' conftest.$ac_ext >&5
3796
3797FFLAGS=
3798fi
3799rm -f conftest.err conftest.$ac_objext \
3800      conftest$ac_exeext conftest.$ac_ext
3801    if test -z "$FFLAGS"; then
3802      { 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
3803echo "$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;}
3804    fi
3805  fi
3806fi
3807
3808{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3809echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3810
3811
3812if test x"$MPIF77" = x; then :; else
3813  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3814echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3815  F77="$MPIF77"
3816fi
3817
3818# correct the LD variable if we use the intel fortran compiler in windows
3819case "$F77" in
3820  ifort* | */ifort* | IFORT* | */IFORT*)
3821    LD=link
3822    ;;
3823esac
3824
3825ac_ext=c
3826ac_cpp='$CPP $CPPFLAGS'
3827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831
3832
3833# Get the linker flags (FLIBS) that are required for linking against this blas library
3834
3835# get FLIBS
3836ac_ext=f
3837ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3838ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3840echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3841echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3842if test "${ac_cv_prog_f77_v+set}" = set; then
3843  echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845  cat >conftest.$ac_ext <<_ACEOF
3846      program main
3847
3848      end
3849_ACEOF
3850rm -f conftest.$ac_objext
3851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852  (eval $ac_compile) 2>conftest.er1
3853  ac_status=$?
3854  grep -v '^ *+' conftest.er1 >conftest.err
3855  rm -f conftest.er1
3856  cat conftest.err >&5
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } &&
3859         { ac_try='test -z "$ac_f77_werror_flag"
3860                         || test ! -s conftest.err'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; } &&
3866         { ac_try='test -s conftest.$ac_objext'
3867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868  (eval $ac_try) 2>&5
3869  ac_status=$?
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); }; }; then
3872  ac_cv_prog_f77_v=
3873# Try some options frequently used verbose output
3874for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3875  cat >conftest.$ac_ext <<_ACEOF
3876      program main
3877
3878      end
3879_ACEOF
3880
3881# Compile and link our simple test program by passing a flag (argument
3882# 1 to this macro) to the Fortran compiler in order to get
3883# "verbose" output that we can then parse for the Fortran linker
3884# flags.
3885ac_save_FFLAGS=$FFLAGS
3886FFLAGS="$FFLAGS $ac_verb"
3887(eval echo $as_me:3887: \"$ac_link\") >&5
3888ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3889echo "$ac_f77_v_output" >&5
3890FFLAGS=$ac_save_FFLAGS
3891
3892rm -f conftest*
3893
3894# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3895# /foo, /bar, and /baz are search directories for the Fortran linker.
3896# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3897ac_f77_v_output="`echo $ac_f77_v_output |
3898        grep 'LPATH is:' |
3899        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3900
3901case $ac_f77_v_output in
3902  # If we are using xlf then replace all the commas with spaces.
3903  *xlfentry*)
3904    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3905
3906  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3907  # $LIBS confuse us, and the libraries appear later in the output anyway).
3908  *mGLOB_options_string*)
3909    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3910
3911  # If we are using Cray Fortran then delete quotes.
3912  # Use "\"" instead of '"' for font-lock-mode.
3913  # FIXME: a more general fix for quoted arguments with spaces?
3914  *cft90*)
3915    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3916esac
3917
3918
3919  # look for -l* and *.a constructs in the output
3920  for ac_arg in $ac_f77_v_output; do
3921     case $ac_arg in
3922        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3923          ac_cv_prog_f77_v=$ac_verb
3924          break 2 ;;
3925     esac
3926  done
3927done
3928if test -z "$ac_cv_prog_f77_v"; then
3929   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3930echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3931fi
3932else
3933  echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3937echo "$as_me: WARNING: compilation failed" >&2;}
3938fi
3939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3940
3941fi
3942echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3943echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3944echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3945echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3946if test "${ac_cv_f77_libs+set}" = set; then
3947  echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949  if test "x$FLIBS" != "x"; then
3950  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3951else
3952
3953cat >conftest.$ac_ext <<_ACEOF
3954      program main
3955
3956      end
3957_ACEOF
3958
3959# Compile and link our simple test program by passing a flag (argument
3960# 1 to this macro) to the Fortran compiler in order to get
3961# "verbose" output that we can then parse for the Fortran linker
3962# flags.
3963ac_save_FFLAGS=$FFLAGS
3964FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3965(eval echo $as_me:3965: \"$ac_link\") >&5
3966ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3967echo "$ac_f77_v_output" >&5
3968FFLAGS=$ac_save_FFLAGS
3969
3970rm -f conftest*
3971
3972# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3973# /foo, /bar, and /baz are search directories for the Fortran linker.
3974# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3975ac_f77_v_output="`echo $ac_f77_v_output |
3976        grep 'LPATH is:' |
3977        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3978
3979case $ac_f77_v_output in
3980  # If we are using xlf then replace all the commas with spaces.
3981  *xlfentry*)
3982    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3983
3984  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3985  # $LIBS confuse us, and the libraries appear later in the output anyway).
3986  *mGLOB_options_string*)
3987    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3988
3989  # If we are using Cray Fortran then delete quotes.
3990  # Use "\"" instead of '"' for font-lock-mode.
3991  # FIXME: a more general fix for quoted arguments with spaces?
3992  *cft90*)
3993    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3994esac
3995
3996
3997
3998ac_cv_f77_libs=
3999
4000# Save positional arguments (if any)
4001ac_save_positional="$@"
4002
4003set X $ac_f77_v_output
4004while test $# != 1; do
4005  shift
4006  ac_arg=$1
4007  case $ac_arg in
4008        [\\/]*.a | ?:[\\/]*.a)
4009            ac_exists=false
4010  for ac_i in $ac_cv_f77_libs; do
4011    if test x"$ac_arg" = x"$ac_i"; then
4012      ac_exists=true
4013      break
4014    fi
4015  done
4016
4017  if test x"$ac_exists" = xtrue; then
4018  :
4019else
4020  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4021fi
4022
4023          ;;
4024        -bI:*)
4025            ac_exists=false
4026  for ac_i in $ac_cv_f77_libs; do
4027    if test x"$ac_arg" = x"$ac_i"; then
4028      ac_exists=true
4029      break
4030    fi
4031  done
4032
4033  if test x"$ac_exists" = xtrue; then
4034  :
4035else
4036  if test "$ac_compiler_gnu" = yes; then
4037  for ac_link_opt in $ac_arg; do
4038    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4039  done
4040else
4041  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4042fi
4043fi
4044
4045          ;;
4046          # Ignore these flags.
4047        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4048          ;;
4049        -lkernel32)
4050          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4051          ;;
4052        -[LRuY])
4053          # These flags, when seen by themselves, take an argument.
4054          # We remove the space between option and argument and re-iterate
4055          # unless we find an empty arg or a new option (starting with -)
4056          case $2 in
4057             "" | -*);;
4058             *)
4059                ac_arg="$ac_arg$2"
4060                shift; shift
4061                set X $ac_arg "$@"
4062                ;;
4063          esac
4064          ;;
4065        -YP,*)
4066          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4067              ac_exists=false
4068  for ac_i in $ac_cv_f77_libs; do
4069    if test x"$ac_j" = x"$ac_i"; then
4070      ac_exists=true
4071      break
4072    fi
4073  done
4074
4075  if test x"$ac_exists" = xtrue; then
4076  :
4077else
4078  ac_arg="$ac_arg $ac_j"
4079                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4080fi
4081
4082          done
4083          ;;
4084        -[lLR]*)
4085            ac_exists=false
4086  for ac_i in $ac_cv_f77_libs; do
4087    if test x"$ac_arg" = x"$ac_i"; then
4088      ac_exists=true
4089      break
4090    fi
4091  done
4092
4093  if test x"$ac_exists" = xtrue; then
4094  :
4095else
4096  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4097fi
4098
4099          ;;
4100          # Ignore everything else.
4101  esac
4102done
4103# restore positional arguments
4104set X $ac_save_positional; shift
4105
4106# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4107# then we insist that the "run path" must be an absolute path (i.e. it
4108# must begin with a "/").
4109case `(uname -sr) 2>/dev/null` in
4110   "SunOS 5"*)
4111      ac_ld_run_path=`echo $ac_f77_v_output |
4112                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4113      test "x$ac_ld_run_path" != x &&
4114        if test "$ac_compiler_gnu" = yes; then
4115  for ac_link_opt in $ac_ld_run_path; do
4116    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4117  done
4118else
4119  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4120fi
4121      ;;
4122esac
4123fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4124
4125fi
4126echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4127echo "${ECHO_T}$ac_cv_f77_libs" >&6
4128FLIBS="$ac_cv_f77_libs"
4129
4130
4131ac_ext=c
4132ac_cpp='$CPP $CPPFLAGS'
4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137orig_FLIBS="$FLIBS"
4138
4139# If FLIBS has been set by the user, we just restore its value here
4140if test x"$save_FLIBS" != x; then
4141  FLIBS="$save_FLIBS"
4142else
4143  # This is to correct a missing exclusion in autoconf 2.59
4144  if test x"$FLIBS" != x; then
4145    my_flibs=
4146    for flag in $FLIBS; do
4147      case $flag in
4148        -lcrt*.o) ;;
4149        -lcygwin) ;;
4150        -lgcc*)   ;;
4151               *) my_flibs="$my_flibs $flag" ;;
4152      esac
4153    done
4154    FLIBS="$my_flibs"
4155  fi
4156
4157  case $build in
4158  # The following is a fix to define FLIBS for ifort on Windows
4159  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4160  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4161  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4162  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4163  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4164     *-cygwin* | *-mingw*)
4165       case "$F77" in
4166#         ifort* | */ifort* | IFORT* | */IFORT*)
4167#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4168#           if "$coin_debug_compile" = true ; then
4169#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4170#           else
4171#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4172#           fi
4173#           ;;
4174         compile_f2c*)
4175           FLIBS=`$F77 -FLIBS` ;;
4176       esac;;
4177     *-hp-*)
4178         FLIBS="$FLIBS -lm";;
4179     *-ibm-*)
4180         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4181     *-linux-*)
4182       case "$F77" in
4183         pgf77* | */pgf77* | pgf90* | */pgf90*)
4184# ask linker to go through the archives multiple times
4185# (the Fortran compiler seems to do that automatically...)
4186           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4187       esac
4188  esac
4189  ac_cv_f77_libs="$FLIBS"
4190fi
4191
4192if test "x$orig_FLIBS" != "x$FLIBS" ; then
4193  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4194echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4195fi
4196
4197ac_ext=f
4198ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4199ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4201
4202echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4203echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4204if test "${ac_cv_f77_dummy_main+set}" = set; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207  ac_f77_dm_save_LIBS=$LIBS
4208 LIBS="$LIBS $FLIBS"
4209 ac_fortran_dm_var=F77_DUMMY_MAIN
4210 ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216 # First, try linking without a dummy main:
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h.  */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h.  */
4223
4224#ifdef F77_DUMMY_MAIN
4225
4226#  ifdef __cplusplus
4227     extern "C"
4228#  endif
4229   int F77_DUMMY_MAIN() { return 1; }
4230
4231#endif
4232int
4233main ()
4234{
4235
4236  ;
4237  return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242  (eval $ac_link) 2>conftest.er1
4243  ac_status=$?
4244  grep -v '^ *+' conftest.er1 >conftest.err
4245  rm -f conftest.er1
4246  cat conftest.err >&5
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); } &&
4249         { ac_try='test -z "$ac_c_werror_flag"
4250                         || test ! -s conftest.err'
4251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252  (eval $ac_try) 2>&5
4253  ac_status=$?
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); }; } &&
4256         { ac_try='test -s conftest$ac_exeext'
4257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258  (eval $ac_try) 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }; }; then
4262  ac_cv_fortran_dummy_main=none
4263else
4264  echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267ac_cv_fortran_dummy_main=unknown
4268fi
4269rm -f conftest.err conftest.$ac_objext \
4270      conftest$ac_exeext conftest.$ac_ext
4271
4272 if test $ac_cv_fortran_dummy_main = unknown; then
4273   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4274     cat >conftest.$ac_ext <<_ACEOF
4275/* confdefs.h.  */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h.  */
4280#define $ac_fortran_dm_var $ac_func
4281#ifdef F77_DUMMY_MAIN
4282
4283#  ifdef __cplusplus
4284     extern "C"
4285#  endif
4286   int F77_DUMMY_MAIN() { return 1; }
4287
4288#endif
4289int
4290main ()
4291{
4292
4293  ;
4294  return 0;
4295}
4296_ACEOF
4297rm -f conftest.$ac_objext conftest$ac_exeext
4298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299  (eval $ac_link) 2>conftest.er1
4300  ac_status=$?
4301  grep -v '^ *+' conftest.er1 >conftest.err
4302  rm -f conftest.er1
4303  cat conftest.err >&5
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } &&
4306         { ac_try='test -z "$ac_c_werror_flag"
4307                         || test ! -s conftest.err'
4308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309  (eval $ac_try) 2>&5
4310  ac_status=$?
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); }; } &&
4313         { ac_try='test -s conftest$ac_exeext'
4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315  (eval $ac_try) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; }; then
4319  ac_cv_fortran_dummy_main=$ac_func; break
4320else
4321  echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
4324fi
4325rm -f conftest.err conftest.$ac_objext \
4326      conftest$ac_exeext conftest.$ac_ext
4327   done
4328 fi
4329 ac_ext=f
4330ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4331ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4333 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4334 rm -f conftest*
4335 LIBS=$ac_f77_dm_save_LIBS
4336
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4339echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4340F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4341if test "$F77_DUMMY_MAIN" != unknown; then
4342  if test $F77_DUMMY_MAIN != none; then
4343
4344cat >>confdefs.h <<_ACEOF
4345#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4346_ACEOF
4347
4348  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4349
4350cat >>confdefs.h <<\_ACEOF
4351#define FC_DUMMY_MAIN_EQ_F77 1
4352_ACEOF
4353
4354  fi
4355fi
4356else
4357  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4358See \`config.log' for more details." >&5
4359echo "$as_me: error: linking to Fortran libraries from C fails
4360See \`config.log' for more details." >&2;}
4361   { (exit 1); exit 1; }; }
4362fi
4363
4364
4365ac_ext=f
4366ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4367ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4368ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4369
4370ac_ext=f
4371ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4372ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4374echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4375echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4376if test "${ac_cv_f77_mangling+set}" = set; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379  cat >conftest.$ac_ext <<_ACEOF
4380      subroutine foobar()
4381      return
4382      end
4383      subroutine foo_bar()
4384      return
4385      end
4386_ACEOF
4387rm -f conftest.$ac_objext
4388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4389  (eval $ac_compile) 2>conftest.er1
4390  ac_status=$?
4391  grep -v '^ *+' conftest.er1 >conftest.err
4392  rm -f conftest.er1
4393  cat conftest.err >&5
4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); } &&
4396         { ac_try='test -z "$ac_f77_werror_flag"
4397                         || test ! -s conftest.err'
4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399  (eval $ac_try) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); }; } &&
4403         { ac_try='test -s conftest.$ac_objext'
4404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405  (eval $ac_try) 2>&5
4406  ac_status=$?
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); }; }; then
4409  mv conftest.$ac_objext cfortran_test.$ac_objext
4410
4411  ac_save_LIBS=$LIBS
4412  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4413
4414  ac_ext=c
4415ac_cpp='$CPP $CPPFLAGS'
4416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419  ac_success=no
4420  for ac_foobar in foobar FOOBAR; do
4421    for ac_underscore in "" "_"; do
4422      ac_func="$ac_foobar$ac_underscore"
4423      cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h.  */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h.  */
4429
4430/* Override any gcc2 internal prototype to avoid an error.  */
4431#ifdef __cplusplus
4432extern "C"
4433#endif
4434/* We use char because int might match the return type of a gcc2
4435   builtin and then its argument prototype would still apply.  */
4436char $ac_func ();
4437#ifdef F77_DUMMY_MAIN
4438
4439#  ifdef __cplusplus
4440     extern "C"
4441#  endif
4442   int F77_DUMMY_MAIN() { return 1; }
4443
4444#endif
4445int
4446main ()
4447{
4448$ac_func ();
4449  ;
4450  return 0;
4451}
4452_ACEOF
4453rm -f conftest.$ac_objext conftest$ac_exeext
4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455  (eval $ac_link) 2>conftest.er1
4456  ac_status=$?
4457  grep -v '^ *+' conftest.er1 >conftest.err
4458  rm -f conftest.er1
4459  cat conftest.err >&5
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462         { ac_try='test -z "$ac_c_werror_flag"
4463                         || test ! -s conftest.err'
4464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465  (eval $ac_try) 2>&5
4466  ac_status=$?
4467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468  (exit $ac_status); }; } &&
4469         { ac_try='test -s conftest$ac_exeext'
4470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471  (eval $ac_try) 2>&5
4472  ac_status=$?
4473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474  (exit $ac_status); }; }; then
4475  ac_success=yes; break 2
4476else
4477  echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480fi
4481rm -f conftest.err conftest.$ac_objext \
4482      conftest$ac_exeext conftest.$ac_ext
4483    done
4484  done
4485  ac_ext=f
4486ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4487ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4489
4490  if test "$ac_success" = "yes"; then
4491     case $ac_foobar in
4492        foobar)
4493           ac_case=lower
4494           ac_foo_bar=foo_bar
4495           ;;
4496        FOOBAR)
4497           ac_case=upper
4498           ac_foo_bar=FOO_BAR
4499           ;;
4500     esac
4501
4502     ac_ext=c
4503ac_cpp='$CPP $CPPFLAGS'
4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507     ac_success_extra=no
4508     for ac_extra in "" "_"; do
4509        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4510        cat >conftest.$ac_ext <<_ACEOF
4511/* confdefs.h.  */
4512_ACEOF
4513cat confdefs.h >>conftest.$ac_ext
4514cat >>conftest.$ac_ext <<_ACEOF
4515/* end confdefs.h.  */
4516
4517/* Override any gcc2 internal prototype to avoid an error.  */
4518#ifdef __cplusplus
4519extern "C"
4520#endif
4521/* We use char because int might match the return type of a gcc2
4522   builtin and then its argument prototype would still apply.  */
4523char $ac_func ();
4524#ifdef F77_DUMMY_MAIN
4525
4526#  ifdef __cplusplus
4527     extern "C"
4528#  endif
4529   int F77_DUMMY_MAIN() { return 1; }
4530
4531#endif
4532int
4533main ()
4534{
4535$ac_func ();
4536  ;
4537  return 0;
4538}
4539_ACEOF
4540rm -f conftest.$ac_objext conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542  (eval $ac_link) 2>conftest.er1
4543  ac_status=$?
4544  grep -v '^ *+' conftest.er1 >conftest.err
4545  rm -f conftest.er1
4546  cat conftest.err >&5
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); } &&
4549         { ac_try='test -z "$ac_c_werror_flag"
4550                         || test ! -s conftest.err'
4551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552  (eval $ac_try) 2>&5
4553  ac_status=$?
4554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555  (exit $ac_status); }; } &&
4556         { ac_try='test -s conftest$ac_exeext'
4557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558  (eval $ac_try) 2>&5
4559  ac_status=$?
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; }; then
4562  ac_success_extra=yes; break
4563else
4564  echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567fi
4568rm -f conftest.err conftest.$ac_objext \
4569      conftest$ac_exeext conftest.$ac_ext
4570     done
4571     ac_ext=f
4572ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4573ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4575
4576     if test "$ac_success_extra" = "yes"; then
4577        ac_cv_f77_mangling="$ac_case case"
4578        if test -z "$ac_underscore"; then
4579           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4580        else
4581           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4582        fi
4583        if test -z "$ac_extra"; then
4584           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4585        else
4586           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4587        fi
4588      else
4589        ac_cv_f77_mangling="unknown"
4590      fi
4591  else
4592     ac_cv_f77_mangling="unknown"
4593  fi
4594
4595  LIBS=$ac_save_LIBS
4596  rm -f cfortran_test* conftest*
4597else
4598  echo "$as_me: failed program was:" >&5
4599sed 's/^/| /' conftest.$ac_ext >&5
4600
4601{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4602See \`config.log' for more details." >&5
4603echo "$as_me: error: cannot compile a simple Fortran program
4604See \`config.log' for more details." >&2;}
4605   { (exit 1); exit 1; }; }
4606fi
4607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4608
4609fi
4610echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4611echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4612
4613ac_ext=f
4614ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4615ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4617
4618
4619ac_ext=f
4620ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4621ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4623
4624ac_ext=f
4625ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4626ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4628
4629
4630case $ac_cv_f77_mangling in
4631  "lower case, no underscore, no extra underscore")
4632          cat >>confdefs.h <<\_ACEOF
4633#define F77_FUNC(name,NAME) name
4634_ACEOF
4635
4636          cat >>confdefs.h <<\_ACEOF
4637#define F77_FUNC_(name,NAME) name
4638_ACEOF
4639 ;;
4640  "lower case, no underscore, extra underscore")
4641          cat >>confdefs.h <<\_ACEOF
4642#define F77_FUNC(name,NAME) name
4643_ACEOF
4644
4645          cat >>confdefs.h <<\_ACEOF
4646#define F77_FUNC_(name,NAME) name ## _
4647_ACEOF
4648 ;;
4649  "lower case, underscore, no extra underscore")
4650          cat >>confdefs.h <<\_ACEOF
4651#define F77_FUNC(name,NAME) name ## _
4652_ACEOF
4653
4654          cat >>confdefs.h <<\_ACEOF
4655#define F77_FUNC_(name,NAME) name ## _
4656_ACEOF
4657 ;;
4658  "lower case, underscore, extra underscore")
4659          cat >>confdefs.h <<\_ACEOF
4660#define F77_FUNC(name,NAME) name ## _
4661_ACEOF
4662
4663          cat >>confdefs.h <<\_ACEOF
4664#define F77_FUNC_(name,NAME) name ## __
4665_ACEOF
4666 ;;
4667  "upper case, no underscore, no extra underscore")
4668          cat >>confdefs.h <<\_ACEOF
4669#define F77_FUNC(name,NAME) NAME
4670_ACEOF
4671
4672          cat >>confdefs.h <<\_ACEOF
4673#define F77_FUNC_(name,NAME) NAME
4674_ACEOF
4675 ;;
4676  "upper case, no underscore, extra underscore")
4677          cat >>confdefs.h <<\_ACEOF
4678#define F77_FUNC(name,NAME) NAME
4679_ACEOF
4680
4681          cat >>confdefs.h <<\_ACEOF
4682#define F77_FUNC_(name,NAME) NAME ## _
4683_ACEOF
4684 ;;
4685  "upper case, underscore, no extra underscore")
4686          cat >>confdefs.h <<\_ACEOF
4687#define F77_FUNC(name,NAME) NAME ## _
4688_ACEOF
4689
4690          cat >>confdefs.h <<\_ACEOF
4691#define F77_FUNC_(name,NAME) NAME ## _
4692_ACEOF
4693 ;;
4694  "upper case, underscore, extra underscore")
4695          cat >>confdefs.h <<\_ACEOF
4696#define F77_FUNC(name,NAME) NAME ## _
4697_ACEOF
4698
4699          cat >>confdefs.h <<\_ACEOF
4700#define F77_FUNC_(name,NAME) NAME ## __
4701_ACEOF
4702 ;;
4703  *)
4704          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4705echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4706          ;;
4707esac
4708
4709ac_ext=f
4710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4713
4714ac_ext=c
4715ac_cpp='$CPP $CPPFLAGS'
4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719
4720
4721
4722
4723# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4724FILTERSQP_PCLIBS="$FLIBS"
4725
4726
4727# Check if pkg-config is available (to setup addlibs file)
4728
4729
4730# Check whether --enable-pkg-config or --disable-pkg-config was given.
4731if test "${enable_pkg_config+set}" = set; then
4732  enableval="$enable_pkg_config"
4733  use_pkgconfig="$enableval"
4734else
4735  if test x$coin_cc_is_cl = xtrue; then
4736     use_pkgconfig=no
4737   else
4738     use_pkgconfig=yes
4739   fi
4740fi;
4741
4742if test $use_pkgconfig = yes ; then
4743  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4744    if test -n "$ac_tool_prefix"; then
4745  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4746set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4747echo "$as_me:$LINENO: checking for $ac_word" >&5
4748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4749if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4750  echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752  if test -n "$PKG_CONFIG"; then
4753  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758  IFS=$as_save_IFS
4759  test -z "$as_dir" && as_dir=.
4760  for ac_exec_ext in '' $ac_executable_extensions; do
4761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764    break 2
4765  fi
4766done
4767done
4768
4769fi
4770fi
4771PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4772if test -n "$PKG_CONFIG"; then
4773  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4774echo "${ECHO_T}$PKG_CONFIG" >&6
4775else
4776  echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6
4778fi
4779
4780fi
4781if test -z "$ac_cv_prog_PKG_CONFIG"; then
4782  ac_ct_PKG_CONFIG=$PKG_CONFIG
4783  # Extract the first word of "pkg-config", so it can be a program name with args.
4784set dummy pkg-config; ac_word=$2
4785echo "$as_me:$LINENO: checking for $ac_word" >&5
4786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4787if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4788  echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790  if test -n "$ac_ct_PKG_CONFIG"; then
4791  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796  IFS=$as_save_IFS
4797  test -z "$as_dir" && as_dir=.
4798  for ac_exec_ext in '' $ac_executable_extensions; do
4799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802    break 2
4803  fi
4804done
4805done
4806
4807fi
4808fi
4809ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4810if test -n "$ac_ct_PKG_CONFIG"; then
4811  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4812echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4813else
4814  echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816fi
4817
4818  PKG_CONFIG=$ac_ct_PKG_CONFIG
4819else
4820  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4821fi
4822
4823  fi
4824  if test -n "$PKG_CONFIG"; then
4825    _pkg_min_version=0.16.0
4826    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4827echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4828    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4829      echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6
4831    else
4832      echo "$as_me:$LINENO: result: no" >&5
4833echo "${ECHO_T}no" >&6
4834      PKG_CONFIG=""
4835    fi
4836  fi
4837
4838  # check if pkg-config supports the short-errors flag
4839  if test -n "$PKG_CONFIG" && \
4840    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4841    pkg_short_errors=" --short-errors "
4842  else
4843    pkg_short_errors=""
4844  fi
4845fi
4846
4847
4848
4849if test -n "$PKG_CONFIG"; then
4850  COIN_HAS_PKGCONFIG_TRUE=
4851  COIN_HAS_PKGCONFIG_FALSE='#'
4852else
4853  COIN_HAS_PKGCONFIG_TRUE='#'
4854  COIN_HAS_PKGCONFIG_FALSE=
4855fi
4856
4857
4858
4859# assemble pkg-config search path for installed projects
4860COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4861
4862# 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
4863# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4864# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4865if test "x${prefix}" = xNONE ; then
4866  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4867else
4868  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4869fi
4870
4871
4872# Check whether --with-coin-instdir or --without-coin-instdir was given.
4873if test "${with_coin_instdir+set}" = set; then
4874  withval="$with_coin_instdir"
4875  if test -d "$withval"; then : ; else
4876     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4877echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4878   { (exit 1); exit 1; }; }
4879   fi
4880   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4881
4882fi;
4883
4884
4885
4886# assemble additional pkg-config search paths for uninstalled projects
4887if test x$coin_projectdir = xyes ; then
4888  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4889  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4890  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4891  # 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)
4892  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4893  if test -f ../coin_subdirs.txt ; then
4894    for i in `cat ../coin_subdirs.txt` ; do
4895      if test -d ../$i ; then
4896        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4897      fi
4898      if test -d ../$i/pkgconfig ; then
4899        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4900      fi
4901    done
4902  fi
4903
4904  if test -f ../../coin_subdirs.txt ; then
4905    for i in `cat ../../coin_subdirs.txt` ; do
4906      if test -d ../../$i ; then
4907        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4908      fi
4909      if test -d ../../$i/pkgconfig ; then
4910        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4911      fi
4912    done
4913  fi
4914
4915
4916fi
4917
4918if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4919  { 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
4920echo "$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;}
4921fi
4922
4923
4924
4925# Initialize automake
4926echo "$as_me:$LINENO: checking for egrep" >&5
4927echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4928if test "${ac_cv_prog_egrep+set}" = set; then
4929  echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4932    then ac_cv_prog_egrep='grep -E'
4933    else ac_cv_prog_egrep='egrep'
4934    fi
4935fi
4936echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4937echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4938 EGREP=$ac_cv_prog_egrep
4939
4940
4941echo "$as_me:$LINENO: checking whether ln -s works" >&5
4942echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4943LN_S=$as_ln_s
4944if test "$LN_S" = "ln -s"; then
4945  echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
4947else
4948  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4949echo "${ECHO_T}no, using $LN_S" >&6
4950fi
4951
4952am__api_version="1.9"
4953# Find a good install program.  We prefer a C program (faster),
4954# so one script is as good as another.  But avoid the broken or
4955# incompatible versions:
4956# SysV /etc/install, /usr/sbin/install
4957# SunOS /usr/etc/install
4958# IRIX /sbin/install
4959# AIX /bin/install
4960# AmigaOS /C/install, which installs bootblocks on floppy discs
4961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964# OS/2's system install, which has a completely different semantic
4965# ./install, which can be erroneously created by make from ./install.sh.
4966echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4967echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4968if test -z "$INSTALL"; then
4969if test "${ac_cv_path_install+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975  IFS=$as_save_IFS
4976  test -z "$as_dir" && as_dir=.
4977  # Account for people who put trailing slashes in PATH elements.
4978case $as_dir/ in
4979  ./ | .// | /cC/* | \
4980  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4981  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4982  /usr/ucb/* ) ;;
4983  *)
4984    # OSF1 and SCO ODT 3.0 have their own names for install.
4985    # Don't use installbsd from OSF since it installs stuff as root
4986    # by default.
4987    for ac_prog in ginstall scoinst install; do
4988      for ac_exec_ext in '' $ac_executable_extensions; do
4989        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4990          if test $ac_prog = install &&
4991            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4992            # AIX install.  It has an incompatible calling convention.
4993            :
4994          elif test $ac_prog = install &&
4995            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4996            # program-specific install script used by HP pwplus--don't use.
4997            :
4998          else
4999            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5000            break 3
5001          fi
5002        fi
5003      done
5004    done
5005    ;;
5006esac
5007done
5008
5009
5010fi
5011  if test "${ac_cv_path_install+set}" = set; then
5012    INSTALL=$ac_cv_path_install
5013  else
5014    # As a last resort, use the slow shell script.  We don't cache a
5015    # path for INSTALL within a source directory, because that will
5016    # break other packages using the cache if that directory is
5017    # removed, or if the path is relative.
5018    INSTALL=$ac_install_sh
5019  fi
5020fi
5021echo "$as_me:$LINENO: result: $INSTALL" >&5
5022echo "${ECHO_T}$INSTALL" >&6
5023
5024# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5025# It thinks the first close brace ends the variable substitution.
5026test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5027
5028test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5029
5030test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5031
5032echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5033echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5034# Just in case
5035sleep 1
5036echo timestamp > conftest.file
5037# Do `set' in a subshell so we don't clobber the current shell's
5038# arguments.  Must try -L first in case configure is actually a
5039# symlink; some systems play weird games with the mod time of symlinks
5040# (eg FreeBSD returns the mod time of the symlink's containing
5041# directory).
5042if (
5043   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5044   if test "$*" = "X"; then
5045      # -L didn't work.
5046      set X `ls -t $srcdir/configure conftest.file`
5047   fi
5048   rm -f conftest.file
5049   if test "$*" != "X $srcdir/configure conftest.file" \
5050      && test "$*" != "X conftest.file $srcdir/configure"; then
5051
5052      # If neither matched, then we have a broken ls.  This can happen
5053      # if, for instance, CONFIG_SHELL is bash and it inherits a
5054      # broken ls alias from the environment.  This has actually
5055      # happened.  Such a system could not be considered "sane".
5056      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5057alias in your environment" >&5
5058echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5059alias in your environment" >&2;}
5060   { (exit 1); exit 1; }; }
5061   fi
5062
5063   test "$2" = conftest.file
5064   )
5065then
5066   # Ok.
5067   :
5068else
5069   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5070Check your system clock" >&5
5071echo "$as_me: error: newly created file is older than distributed files!
5072Check your system clock" >&2;}
5073   { (exit 1); exit 1; }; }
5074fi
5075echo "$as_me:$LINENO: result: yes" >&5
5076echo "${ECHO_T}yes" >&6
5077test "$program_prefix" != NONE &&
5078  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5079# Use a double $ so make ignores it.
5080test "$program_suffix" != NONE &&
5081  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5082# Double any \ or $.  echo might interpret backslashes.
5083# By default was `s,x,x', remove it if useless.
5084cat <<\_ACEOF >conftest.sed
5085s/[\\$]/&&/g;s/;s,x,x,$//
5086_ACEOF
5087program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5088rm conftest.sed
5089
5090# expand $ac_aux_dir to an absolute path
5091am_aux_dir=`cd $ac_aux_dir && pwd`
5092
5093test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5094# Use eval to expand $SHELL
5095if eval "$MISSING --run true"; then
5096  am_missing_run="$MISSING --run "
5097else
5098  am_missing_run=
5099  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5100echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5101fi
5102
5103if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5104  # We used to keeping the `.' as first argument, in order to
5105  # allow $(mkdir_p) to be used without argument.  As in
5106  #   $(mkdir_p) $(somedir)
5107  # where $(somedir) is conditionally defined.  However this is wrong
5108  # for two reasons:
5109  #  1. if the package is installed by a user who cannot write `.'
5110  #     make install will fail,
5111  #  2. the above comment should most certainly read
5112  #     $(mkdir_p) $(DESTDIR)$(somedir)
5113  #     so it does not work when $(somedir) is undefined and
5114  #     $(DESTDIR) is not.
5115  #  To support the latter case, we have to write
5116  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5117  #  so the `.' trick is pointless.
5118  mkdir_p='mkdir -p --'
5119else
5120  # On NextStep and OpenStep, the `mkdir' command does not
5121  # recognize any option.  It will interpret all options as
5122  # directories to create, and then abort because `.' already
5123  # exists.
5124  for d in ./-p ./--version;
5125  do
5126    test -d $d && rmdir $d
5127  done
5128  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5129  if test -f "$ac_aux_dir/mkinstalldirs"; then
5130    mkdir_p='$(mkinstalldirs)'
5131  else
5132    mkdir_p='$(install_sh) -d'
5133  fi
5134fi
5135
5136for ac_prog in gawk mawk nawk awk
5137do
5138  # Extract the first word of "$ac_prog", so it can be a program name with args.
5139set dummy $ac_prog; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_AWK+set}" = set; then
5143  echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145  if test -n "$AWK"; then
5146  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151  IFS=$as_save_IFS
5152  test -z "$as_dir" && as_dir=.
5153  for ac_exec_ext in '' $ac_executable_extensions; do
5154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155    ac_cv_prog_AWK="$ac_prog"
5156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157    break 2
5158  fi
5159done
5160done
5161
5162fi
5163fi
5164AWK=$ac_cv_prog_AWK
5165if test -n "$AWK"; then
5166  echo "$as_me:$LINENO: result: $AWK" >&5
5167echo "${ECHO_T}$AWK" >&6
5168else
5169  echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
5171fi
5172
5173  test -n "$AWK" && break
5174done
5175
5176echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5177echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5178set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5179if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5180  echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182  cat >conftest.make <<\_ACEOF
5183all:
5184        @echo 'ac_maketemp="$(MAKE)"'
5185_ACEOF
5186# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5187eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5188if test -n "$ac_maketemp"; then
5189  eval ac_cv_prog_make_${ac_make}_set=yes
5190else
5191  eval ac_cv_prog_make_${ac_make}_set=no
5192fi
5193rm -f conftest.make
5194fi
5195if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5196  echo "$as_me:$LINENO: result: yes" >&5
5197echo "${ECHO_T}yes" >&6
5198  SET_MAKE=
5199else
5200  echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202  SET_MAKE="MAKE=${MAKE-make}"
5203fi
5204
5205rm -rf .tst 2>/dev/null
5206mkdir .tst 2>/dev/null
5207if test -d .tst; then
5208  am__leading_dot=.
5209else
5210  am__leading_dot=_
5211fi
5212rmdir .tst 2>/dev/null
5213
5214DEPDIR="${am__leading_dot}deps"
5215
5216          ac_config_commands="$ac_config_commands depfiles"
5217
5218
5219am_make=${MAKE-make}
5220cat > confinc << 'END'
5221am__doit:
5222        @echo done
5223.PHONY: am__doit
5224END
5225# If we don't find an include directive, just comment out the code.
5226echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5227echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5228am__include="#"
5229am__quote=
5230_am_result=none
5231# First try GNU make style include.
5232echo "include confinc" > confmf
5233# We grep out `Entering directory' and `Leaving directory'
5234# messages which can occur if `w' ends up in MAKEFLAGS.
5235# In particular we don't look at `^make:' because GNU make might
5236# be invoked under some other name (usually "gmake"), in which
5237# case it prints its new name instead of `make'.
5238if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5239   am__include=include
5240   am__quote=
5241   _am_result=GNU
5242fi
5243# Now try BSD make style include.
5244if test "$am__include" = "#"; then
5245   echo '.include "confinc"' > confmf
5246   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5247      am__include=.include
5248      am__quote="\""
5249      _am_result=BSD
5250   fi
5251fi
5252
5253
5254echo "$as_me:$LINENO: result: $_am_result" >&5
5255echo "${ECHO_T}$_am_result" >&6
5256rm -f confinc confmf
5257
5258# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5259if test "${enable_dependency_tracking+set}" = set; then
5260  enableval="$enable_dependency_tracking"
5261
5262fi;
5263if test "x$enable_dependency_tracking" != xno; then
5264  am_depcomp="$ac_aux_dir/depcomp"
5265  AMDEPBACKSLASH='\'
5266fi
5267
5268
5269if test "x$enable_dependency_tracking" != xno; then
5270  AMDEP_TRUE=
5271  AMDEP_FALSE='#'
5272else
5273  AMDEP_TRUE='#'
5274  AMDEP_FALSE=
5275fi
5276
5277
5278
5279
5280
5281
5282# AC_MSG_NOTICE([Beginning automake initialisation.])
5283# Stuff for automake
5284# test to see if srcdir already configured
5285if test "`cd $srcdir && pwd`" != "`pwd`" &&
5286   test -f $srcdir/config.status; then
5287  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5288echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5289   { (exit 1); exit 1; }; }
5290fi
5291
5292# test whether we have cygpath
5293if test -z "$CYGPATH_W"; then
5294  if (cygpath --version) >/dev/null 2>/dev/null; then
5295    CYGPATH_W='cygpath -w'
5296  else
5297    CYGPATH_W=echo
5298  fi
5299fi
5300
5301
5302# Define the identity of the package.
5303 PACKAGE='thirdpartyfiltersqp'
5304 VERSION='1.3.1'
5305
5306
5307cat >>confdefs.h <<_ACEOF
5308#define PACKAGE "$PACKAGE"
5309_ACEOF
5310
5311
5312cat >>confdefs.h <<_ACEOF
5313#define VERSION "$VERSION"
5314_ACEOF
5315
5316# Some tools Automake needs.
5317
5318ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5319
5320
5321AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5322
5323
5324AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5325
5326
5327AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5328
5329
5330MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5331
5332install_sh=${install_sh-"$am_aux_dir/install-sh"}
5333
5334# Installed binaries are usually stripped using `strip' when the user
5335# run `make install-strip'.  However `strip' might not be the right
5336# tool to use in cross-compilation environments, therefore Automake
5337# will honor the `STRIP' environment variable to overrule this program.
5338if test "$cross_compiling" != no; then
5339  if test -n "$ac_tool_prefix"; then
5340  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5341set dummy ${ac_tool_prefix}strip; ac_word=$2
5342echo "$as_me:$LINENO: checking for $ac_word" >&5
5343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5344if test "${ac_cv_prog_STRIP+set}" = set; then
5345  echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347  if test -n "$STRIP"; then
5348  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5349else
5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355  for ac_exec_ext in '' $ac_executable_extensions; do
5356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362done
5363
5364fi
5365fi
5366STRIP=$ac_cv_prog_STRIP
5367if test -n "$STRIP"; then
5368  echo "$as_me:$LINENO: result: $STRIP" >&5
5369echo "${ECHO_T}$STRIP" >&6
5370else
5371  echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375fi
5376if test -z "$ac_cv_prog_STRIP"; then
5377  ac_ct_STRIP=$STRIP
5378  # Extract the first word of "strip", so it can be a program name with args.
5379set dummy strip; ac_word=$2
5380echo "$as_me:$LINENO: checking for $ac_word" >&5
5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5383  echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385  if test -n "$ac_ct_STRIP"; then
5386  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5387else
5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391  IFS=$as_save_IFS
5392  test -z "$as_dir" && as_dir=.
5393  for ac_exec_ext in '' $ac_executable_extensions; do
5394  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395    ac_cv_prog_ac_ct_STRIP="strip"
5396    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397    break 2
5398  fi
5399done
5400done
5401
5402  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5403fi
5404fi
5405ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5406if test -n "$ac_ct_STRIP"; then
5407  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5408echo "${ECHO_T}$ac_ct_STRIP" >&6
5409else
5410  echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412fi
5413
5414  STRIP=$ac_ct_STRIP
5415else
5416  STRIP="$ac_cv_prog_STRIP"
5417fi
5418
5419fi
5420INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5421
5422# We need awk for the "check" target.  The system "awk" is bad on
5423# some platforms.
5424# Always define AMTAR for backward compatibility.
5425
5426AMTAR=${AMTAR-"${am_missing_run}tar"}
5427
5428am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5429
5430
5431
5432
5433depcc="$CC"   am_compiler_list=
5434
5435echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5436echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5437if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5441  # We make a subdir and do the tests there.  Otherwise we can end up
5442  # making bogus files that we don't know about and never remove.  For
5443  # instance it was reported that on HP-UX the gcc test will end up
5444  # making a dummy file named `D' -- because `-MD' means `put the output
5445  # in D'.
5446  mkdir conftest.dir
5447  # Copy depcomp to subdir because otherwise we won't find it if we're
5448  # using a relative directory.
5449  cp "$am_depcomp" conftest.dir
5450  cd conftest.dir
5451  # We will build objects and dependencies in a subdirectory because
5452  # it helps to detect inapplicable dependency modes.  For instance
5453  # both Tru64's cc and ICC support -MD to output dependencies as a
5454  # side effect of compilation, but ICC will put the dependencies in
5455  # the current directory while Tru64 will put them in the object
5456  # directory.
5457  mkdir sub
5458
5459  am_cv_CC_dependencies_compiler_type=none
5460  if test "$am_compiler_list" = ""; then
5461     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5462  fi
5463  for depmode in $am_compiler_list; do
5464    # Setup a source with many dependencies, because some compilers
5465    # like to wrap large dependency lists on column 80 (with \), and
5466    # we should not choose a depcomp mode which is confused by this.
5467    #
5468    # We need to recreate these files for each test, as the compiler may
5469    # overwrite some of them when testing with obscure command lines.
5470    # This happens at least with the AIX C compiler.
5471    : > sub/conftest.c
5472    for i in 1 2 3 4 5 6; do
5473      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5474      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5475      # Solaris 8's {/usr,}/bin/sh.
5476      touch sub/conftst$i.h
5477    done
5478    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5479
5480    case $depmode in
5481    nosideeffect)
5482      # after this tag, mechanisms are not by side-effect, so they'll
5483      # only be used when explicitly requested
5484      if test "x$enable_dependency_tracking" = xyes; then
5485        continue
5486      else
5487        break
5488      fi
5489      ;;
5490    none) break ;;
5491    esac
5492    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5493    # mode.  It turns out that the SunPro C++ compiler does not properly
5494    # handle `-M -o', and we need to detect this.
5495    if depmode=$depmode \
5496       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5497       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5498       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5499         >/dev/null 2>conftest.err &&
5500       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5501       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5502       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5503      # icc doesn't choke on unknown options, it will just issue warnings
5504      # or remarks (even with -Werror).  So we grep stderr for any message
5505      # that says an option was ignored or not supported.
5506      # When given -MP, icc 7.0 and 7.1 complain thusly:
5507      #   icc: Command line warning: ignoring option '-M'; no argument required
5508      # The diagnosis changed in icc 8.0:
5509      #   icc: Command line remark: option '-MP' not supported
5510      if (grep 'ignoring option' conftest.err ||
5511          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5512        am_cv_CC_dependencies_compiler_type=$depmode
5513        break
5514      fi
5515    fi
5516  done
5517
5518  cd ..
5519  rm -rf conftest.dir
5520else
5521  am_cv_CC_dependencies_compiler_type=none
5522fi
5523
5524fi
5525echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5526echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5527CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5528
5529
5530
5531if
5532  test "x$enable_dependency_tracking" != xno \
5533  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5534  am__fastdepCC_TRUE=
5535  am__fastdepCC_FALSE='#'
5536else
5537  am__fastdepCC_TRUE='#'
5538  am__fastdepCC_FALSE=
5539fi
5540
5541
5542
5543echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5544echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5545    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5546if test "${enable_maintainer_mode+set}" = set; then
5547  enableval="$enable_maintainer_mode"
5548  USE_MAINTAINER_MODE=$enableval
5549else
5550  USE_MAINTAINER_MODE=no
5551fi;
5552  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5553echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5554
5555
5556if test $USE_MAINTAINER_MODE = yes; then
5557  MAINTAINER_MODE_TRUE=
5558  MAINTAINER_MODE_FALSE='#'
5559else
5560  MAINTAINER_MODE_TRUE='#'
5561  MAINTAINER_MODE_FALSE=
5562fi
5563
5564  MAINT=$MAINTAINER_MODE_TRUE
5565
5566
5567
5568coin_have_externals=no
5569if test "$enable_maintainer_mode" = yes; then
5570
5571  # If maintainer mode is chosen, we make sure that the correct versions
5572  # of the tools are used, and that we know where libtool.m4 is (to
5573  # recreate acinclude.m4)
5574
5575
5576  LIBTOOLM4=
5577  # Normally, $HOME
5578  AUTOTOOLS_DFLT=$HOME
5579
5580  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5581echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5582if test "${ac_cv_use_correct_autotools+set}" = set; then
5583  echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585  ac_cv_use_correct_autotools=check
5586fi
5587echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5588echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5589
5590  if test $ac_cv_use_correct_autotools = check; then
5591    ac_cv_use_correct_autotools=yes
5592    # Check if we have autoconf
5593    # Extract the first word of "autoconf", so it can be a program name with args.
5594set dummy autoconf; ac_word=$2
5595echo "$as_me:$LINENO: checking for $ac_word" >&5
5596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5597if test "${ac_cv_prog_have_autoconf+set}" = set; then
5598  echo $ECHO_N "(cached) $ECHO_C" >&6
5599else
5600  if test -n "$have_autoconf"; then
5601  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5602else
5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604for as_dir in $PATH
5605do
5606  IFS=$as_save_IFS
5607  test -z "$as_dir" && as_dir=.
5608  for ac_exec_ext in '' $ac_executable_extensions; do
5609  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5610    ac_cv_prog_have_autoconf="yes"
5611    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612    break 2
5613  fi
5614done
5615done
5616
5617  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5618fi
5619fi
5620have_autoconf=$ac_cv_prog_have_autoconf
5621if test -n "$have_autoconf"; then
5622  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5623echo "${ECHO_T}$have_autoconf" >&6
5624else
5625  echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
5627fi
5628
5629    if test $have_autoconf = no; then
5630      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5631echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5632   { (exit 1); exit 1; }; }
5633    fi
5634
5635    # Check whether autoconf is the correct version
5636    correct_version='2.59'
5637    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5638    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5639echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5640    autoconf --version > confauto.out 2>&1
5641    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5642      echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644    else
5645      rm -f confauto.out
5646      echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6
5648      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5649echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5650   { (exit 1); exit 1; }; }
5651    fi
5652    rm -f confauto.out
5653
5654    # Check if the executable autoconf is picked up from the correct location
5655    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5656echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5657    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5658    autoconf_dir=`cd $autoconf_dir; pwd`
5659    if test x$AUTOTOOLS_DIR = x; then
5660      want_dir=$AUTOTOOLS_DFLT/bin
5661    else
5662      want_dir=$AUTOTOOLS_DIR/bin
5663    fi
5664    if test $autoconf_dir = `cd $want_dir; pwd`; then
5665      echo "$as_me:$LINENO: result: yes" >&5
5666echo "${ECHO_T}yes" >&6
5667    else
5668      rm -f confauto.out
5669      echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
5671      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5672echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5673   { (exit 1); exit 1; }; }
5674    fi
5675
5676    # Check if we have automake
5677    # Extract the first word of "automake", so it can be a program name with args.
5678set dummy automake; ac_word=$2
5679echo "$as_me:$LINENO: checking for $ac_word" >&5
5680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681if test "${ac_cv_prog_have_automake+set}" = set; then
5682  echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684  if test -n "$have_automake"; then
5685  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  test -z "$as_dir" && as_dir=.
5692  for ac_exec_ext in '' $ac_executable_extensions; do
5693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694    ac_cv_prog_have_automake="yes"
5695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696    break 2
5697  fi
5698done
5699done
5700
5701  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5702fi
5703fi
5704have_automake=$ac_cv_prog_have_automake
5705if test -n "$have_automake"; then
5706  echo "$as_me:$LINENO: result: $have_automake" >&5
5707echo "${ECHO_T}$have_automake" >&6
5708else
5709  echo "$as_me:$LINENO: result: no" >&5
5710echo "${ECHO_T}no" >&6
5711fi
5712
5713    if test $have_automake = no; then
5714      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5715echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5716   { (exit 1); exit 1; }; }
5717    fi
5718
5719    # Check whether automake is the correct version
5720    correct_version='1.9.6'
5721    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5722    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5723echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5724    automake --version > confauto.out 2>&1
5725    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5726      echo "$as_me:$LINENO: result: yes" >&5
5727echo "${ECHO_T}yes" >&6
5728    else
5729      rm -f confauto.out
5730      echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5733echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5734   { (exit 1); exit 1; }; }
5735    fi
5736    rm -f confauto.out
5737
5738    # Check if the executable automake is picked up from the correct location
5739    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5740echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5741    automake_dir=`which automake | sed -e 's=/automake=='`
5742    automake_dir=`cd $automake_dir; pwd`
5743    if test x$AUTOTOOLS_DIR = x; then
5744      want_dir=$AUTOTOOLS_DFLT/bin
5745    else
5746      want_dir=$AUTOTOOLS_DIR/bin
5747    fi
5748    if test $automake_dir = `cd $want_dir; pwd`; then
5749      echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751    else
5752      rm -f confauto.out
5753      echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5756echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5757   { (exit 1); exit 1; }; }
5758    fi
5759
5760    # Check if this is the correct version of libtool (with escaped dots)
5761    if test x$AUTOTOOLS_DIR = x; then
5762      want_dir=$AUTOTOOLS_DFLT/share
5763    else
5764      want_dir=$AUTOTOOLS_DIR/share
5765    fi
5766    correct_version='1.5.22'
5767    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5768    if test -r $want_dir/libtool/ltmain.sh; then
5769  have_ltmain=yes
5770  :
5771else
5772  have_ltmain=no
5773  :
5774fi
5775
5776    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5777echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5778    if test $have_ltmain = yes; then
5779    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5780        echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6
5782      else
5783        echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
5785        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5786echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5787   { (exit 1); exit 1; }; }
5788      fi
5789    else
5790      echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5793echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5794   { (exit 1); exit 1; }; }
5795    fi
5796  fi
5797
5798  # Check if we can find the libtool file
5799  if test x$AUTOTOOLS_DIR = x; then
5800    want_dir=$AUTOTOOLS_DFLT/share
5801  else
5802    want_dir=$AUTOTOOLS_DIR/share
5803  fi
5804  if test -r $want_dir/aclocal/libtool.m4; then
5805  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5806  :
5807else
5808  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5809echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5810   { (exit 1); exit 1; }; }
5811  :
5812fi
5813
5814
5815  # Check if we have an Dependencies file
5816  if test -r $srcdir/Dependencies; then
5817    coin_have_externals=yes
5818  fi
5819  # Check if subversion is installed and understands https
5820  # Extract the first word of "svn", so it can be a program name with args.
5821set dummy svn; ac_word=$2
5822echo "$as_me:$LINENO: checking for $ac_word" >&5
5823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824if test "${ac_cv_prog_have_svn+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  if test -n "$have_svn"; then
5828  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835  for ac_exec_ext in '' $ac_executable_extensions; do
5836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837    ac_cv_prog_have_svn="yes"
5838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839    break 2
5840  fi
5841done
5842done
5843
5844  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5845fi
5846fi
5847have_svn=$ac_cv_prog_have_svn
5848if test -n "$have_svn"; then
5849  echo "$as_me:$LINENO: result: $have_svn" >&5
5850echo "${ECHO_T}$have_svn" >&6
5851else
5852  echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6
5854fi
5855
5856  if test x$have_svn = xyes; then
5857    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5858echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5859if test "${ac_cv_svn_understands_https+set}" = set; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862  svn --version > confauto.out 2>&1
5863                    if $EGREP https confauto.out >/dev/null 2>&1; then
5864                      ac_cv_svn_understands_https=yes
5865                    else
5866                      ac_cv_svn_understands_https=no
5867                      have_svn=no
5868                      ac_cv_prog_have_svn=no
5869                    fi
5870                    rm -f confauto.out
5871fi
5872echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5873echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5874  fi
5875
5876  # Find the location of the BuildTools directory
5877  BUILDTOOLSDIR=
5878  if test -r $srcdir/BuildTools/coin.m4; then
5879    BUILDTOOLSDIR=$srcdir/BuildTools
5880  else
5881    if test -r $srcdir/../BuildTools/coin.m4; then
5882      BUILDTOOLSDIR=$srcdir/../BuildTools
5883    else
5884      if test -r $srcdir/../../BuildTools/coin.m4; then
5885        BUILDTOOLSDIR=$srcdir/../../BuildTools
5886      else
5887        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5888echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5889   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5890      fi
5891    fi
5892  fi
5893
5894
5895  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5896  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5897    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5898  fi
5899
5900  # The following variable is set to the name of the directory where
5901  # the autotool scripts are located
5902
5903  AUX_DIR=$ac_aux_dir
5904fi
5905
5906# helpful variable for the base directory of this package
5907abs_source_dir=`cd $srcdir; pwd`
5908
5909
5910# Stuff for example Makefiles
5911if test x$prefix = xNONE; then
5912  full_prefix=$ac_default_prefix
5913else
5914  full_prefix=$prefix
5915fi
5916full_prefix=`cd $full_prefix ; pwd`
5917
5918abs_lib_dir=$full_prefix/lib
5919
5920abs_include_dir=$full_prefix/include
5921
5922abs_bin_dir=$full_prefix/bin
5923
5924
5925
5926if test $coin_have_externals = yes && test x$have_svn = xyes; then
5927  HAVE_EXTERNALS_TRUE=
5928  HAVE_EXTERNALS_FALSE='#'
5929else
5930  HAVE_EXTERNALS_TRUE='#'
5931  HAVE_EXTERNALS_FALSE=
5932fi
5933
5934
5935# AC_MSG_NOTICE([End automake initialisation.])
5936
5937
5938
5939# Initialize automake
5940{
5941
5942
5943
5944# START
5945
5946coin_disable_shared=no
5947# Test if force_shared has been set
5948if test "x" = xforce_shared; then
5949  if test x$enable_shared = xno; then
5950    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5951echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5952   { (exit 1); exit 1; }; }
5953  fi
5954  enable_shared=yes;
5955else
5956  case $build in
5957    *-cygwin* | *-mingw*)
5958      coin_disable_shared=yes
5959      if test x"$enable_shared" = xyes; then
5960        case "$CC" in
5961          clang* )
5962            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5963echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5964            ;;
5965          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5966            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5967echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5968            ;;
5969          *gcc*)
5970            if test x"$enable_dependency_linking" = xyes; then
5971              coin_disable_shared=no
5972            else
5973              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5974echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5975            fi
5976            ;;
5977          *)
5978            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5979echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5980            ;;
5981        esac
5982      fi
5983    ;;
5984    *-aix*)
5985      coin_disable_shared=yes
5986      platform=AIX
5987      if test x"$enable_shared" = xyes; then
5988        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5989echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5990      fi
5991    ;;
5992  esac
5993fi
5994if test x"$coin_disable_shared" = xyes; then
5995  if test x"$enable_shared" = xyes; then
5996    :
5997  else
5998    # we don't disable shared, because it was not selected anyway
5999    coin_disable_shared=no
6000  fi
6001  enable_shared=no
6002fi
6003# By default, we only want the shared objects to be compiled
6004# Check whether --enable-static or --disable-static was given.
6005if test "${enable_static+set}" = set; then
6006  enableval="$enable_static"
6007  p=${PACKAGE-default}
6008    case $enableval in
6009    yes) enable_static=yes ;;
6010    no) enable_static=no ;;
6011    *)
6012     enable_static=no
6013      # Look at the argument we got.  We use all the common list separators.
6014      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6015      for pkg in $enableval; do
6016        IFS="$lt_save_ifs"
6017        if test "X$pkg" = "X$p"; then
6018          enable_static=yes
6019        fi
6020      done
6021      IFS="$lt_save_ifs"
6022      ;;
6023    esac
6024else
6025  enable_static=no
6026fi;
6027
6028
6029
6030
6031# Initialize automake
6032
6033
6034
6035# AC_MSG_NOTICE([Beginning automake initialisation.])
6036# Stuff for automake
6037# test to see if srcdir already configured
6038if test "`cd $srcdir && pwd`" != "`pwd`" &&
6039   test -f $srcdir/config.status; then
6040  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6041echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6042   { (exit 1); exit 1; }; }
6043fi
6044
6045# test whether we have cygpath
6046if test -z "$CYGPATH_W"; then
6047  if (cygpath --version) >/dev/null 2>/dev/null; then
6048    CYGPATH_W='cygpath -w'
6049  else
6050    CYGPATH_W=echo
6051  fi
6052fi
6053
6054
6055# Define the identity of the package.
6056 PACKAGE='thirdpartyfiltersqp'
6057 VERSION='1.3.1'
6058
6059
6060cat >>confdefs.h <<_ACEOF
6061#define PACKAGE "$PACKAGE"
6062_ACEOF
6063
6064
6065cat >>confdefs.h <<_ACEOF
6066#define VERSION "$VERSION"
6067_ACEOF
6068
6069# Some tools Automake needs.
6070
6071ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6072
6073
6074AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6075
6076
6077AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6078
6079
6080AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6081
6082
6083MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6084
6085install_sh=${install_sh-"$am_aux_dir/install-sh"}
6086
6087# Installed binaries are usually stripped using `strip' when the user
6088# run `make install-strip'.  However `strip' might not be the right
6089# tool to use in cross-compilation environments, therefore Automake
6090# will honor the `STRIP' environment variable to overrule this program.
6091if test "$cross_compiling" != no; then
6092  if test -n "$ac_tool_prefix"; then
6093  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6094set dummy ${ac_tool_prefix}strip; ac_word=$2
6095echo "$as_me:$LINENO: checking for $ac_word" >&5
6096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6097if test "${ac_cv_prog_STRIP+set}" = set; then
6098  echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100  if test -n "$STRIP"; then
6101  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6102else
6103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104for as_dir in $PATH
6105do
6106  IFS=$as_save_IFS
6107  test -z "$as_dir" && as_dir=.
6108  for ac_exec_ext in '' $ac_executable_extensions; do
6109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112    break 2
6113  fi
6114done
6115done
6116
6117fi
6118fi
6119STRIP=$ac_cv_prog_STRIP
6120if test -n "$STRIP"; then
6121  echo "$as_me:$LINENO: result: $STRIP" >&5
6122echo "${ECHO_T}$STRIP" >&6
6123else
6124  echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6
6126fi
6127
6128fi
6129if test -z "$ac_cv_prog_STRIP"; then
6130  ac_ct_STRIP=$STRIP
6131  # Extract the first word of "strip", so it can be a program name with args.
6132set dummy strip; ac_word=$2
6133echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6135if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6136  echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138  if test -n "$ac_ct_STRIP"; then
6139  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144  IFS=$as_save_IFS
6145  test -z "$as_dir" && as_dir=.
6146  for ac_exec_ext in '' $ac_executable_extensions; do
6147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148    ac_cv_prog_ac_ct_STRIP="strip"
6149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150    break 2
6151  fi
6152done
6153done
6154
6155  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6156fi
6157fi
6158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6159if test -n "$ac_ct_STRIP"; then
6160  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6161echo "${ECHO_T}$ac_ct_STRIP" >&6
6162else
6163  echo "$as_me:$LINENO: result: no" >&5
6164echo "${ECHO_T}no" >&6
6165fi
6166
6167  STRIP=$ac_ct_STRIP
6168else
6169  STRIP="$ac_cv_prog_STRIP"
6170fi
6171
6172fi
6173INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6174
6175# We need awk for the "check" target.  The system "awk" is bad on
6176# some platforms.
6177# Always define AMTAR for backward compatibility.
6178
6179AMTAR=${AMTAR-"${am_missing_run}tar"}
6180
6181am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6182
6183
6184
6185
6186depcc="$CC"   am_compiler_list=
6187
6188echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6189echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6190if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6191  echo $ECHO_N "(cached) $ECHO_C" >&6
6192else
6193  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6194  # We make a subdir and do the tests there.  Otherwise we can end up
6195  # making bogus files that we don't know about and never remove.  For
6196  # instance it was reported that on HP-UX the gcc test will end up
6197  # making a dummy file named `D' -- because `-MD' means `put the output
6198  # in D'.
6199  mkdir conftest.dir
6200  # Copy depcomp to subdir because otherwise we won't find it if we're
6201  # using a relative directory.
6202  cp "$am_depcomp" conftest.dir
6203  cd conftest.dir
6204  # We will build objects and dependencies in a subdirectory because
6205  # it helps to detect inapplicable dependency modes.  For instance
6206  # both Tru64's cc and ICC support -MD to output dependencies as a
6207  # side effect of compilation, but ICC will put the dependencies in
6208  # the current directory while Tru64 will put them in the object
6209  # directory.
6210  mkdir sub
6211
6212  am_cv_CC_dependencies_compiler_type=none
6213  if test "$am_compiler_list" = ""; then
6214     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6215  fi
6216  for depmode in $am_compiler_list; do
6217    # Setup a source with many dependencies, because some compilers
6218    # like to wrap large dependency lists on column 80 (with \), and
6219    # we should not choose a depcomp mode which is confused by this.
6220    #
6221    # We need to recreate these files for each test, as the compiler may
6222    # overwrite some of them when testing with obscure command lines.
6223    # This happens at least with the AIX C compiler.
6224    : > sub/conftest.c
6225    for i in 1 2 3 4 5 6; do
6226      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6227      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6228      # Solaris 8's {/usr,}/bin/sh.
6229      touch sub/conftst$i.h
6230    done
6231    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6232
6233    case $depmode in
6234    nosideeffect)
6235      # after this tag, mechanisms are not by side-effect, so they'll
6236      # only be used when explicitly requested
6237      if test "x$enable_dependency_tracking" = xyes; then
6238        continue
6239      else
6240        break
6241      fi
6242      ;;
6243    none) break ;;
6244    esac
6245    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6246    # mode.  It turns out that the SunPro C++ compiler does not properly
6247    # handle `-M -o', and we need to detect this.
6248    if depmode=$depmode \
6249       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6250       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6251       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6252         >/dev/null 2>conftest.err &&
6253       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6254       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6255       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6256      # icc doesn't choke on unknown options, it will just issue warnings
6257      # or remarks (even with -Werror).  So we grep stderr for any message
6258      # that says an option was ignored or not supported.
6259      # When given -MP, icc 7.0 and 7.1 complain thusly:
6260      #   icc: Command line warning: ignoring option '-M'; no argument required
6261      # The diagnosis changed in icc 8.0:
6262      #   icc: Command line remark: option '-MP' not supported
6263      if (grep 'ignoring option' conftest.err ||
6264          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6265        am_cv_CC_dependencies_compiler_type=$depmode
6266        break
6267      fi
6268    fi
6269  done
6270
6271  cd ..
6272  rm -rf conftest.dir
6273else
6274  am_cv_CC_dependencies_compiler_type=none
6275fi
6276
6277fi
6278echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6279echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6280CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6281
6282
6283
6284if
6285  test "x$enable_dependency_tracking" != xno \
6286  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6287  am__fastdepCC_TRUE=
6288  am__fastdepCC_FALSE='#'
6289else
6290  am__fastdepCC_TRUE='#'
6291  am__fastdepCC_FALSE=
6292fi
6293
6294
6295
6296echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6297echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6298    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6299if test "${enable_maintainer_mode+set}" = set; then
6300  enableval="$enable_maintainer_mode"
6301  USE_MAINTAINER_MODE=$enableval
6302else
6303  USE_MAINTAINER_MODE=no
6304fi;
6305  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6306echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6307
6308
6309if test $USE_MAINTAINER_MODE = yes; then
6310  MAINTAINER_MODE_TRUE=
6311  MAINTAINER_MODE_FALSE='#'
6312else
6313  MAINTAINER_MODE_TRUE='#'
6314  MAINTAINER_MODE_FALSE=
6315fi
6316
6317  MAINT=$MAINTAINER_MODE_TRUE
6318
6319
6320
6321coin_have_externals=no
6322if test "$enable_maintainer_mode" = yes; then
6323
6324  # If maintainer mode is chosen, we make sure that the correct versions
6325  # of the tools are used, and that we know where libtool.m4 is (to
6326  # recreate acinclude.m4)
6327
6328
6329  LIBTOOLM4=
6330  # Normally, $HOME
6331  AUTOTOOLS_DFLT=$HOME
6332
6333  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6334echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6335if test "${ac_cv_use_correct_autotools+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  ac_cv_use_correct_autotools=check
6339fi
6340echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6341echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6342
6343  if test $ac_cv_use_correct_autotools = check; then
6344    ac_cv_use_correct_autotools=yes
6345    # Check if we have autoconf
6346    # Extract the first word of "autoconf", so it can be a program name with args.
6347set dummy autoconf; ac_word=$2
6348echo "$as_me:$LINENO: checking for $ac_word" >&5
6349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6350if test "${ac_cv_prog_have_autoconf+set}" = set; then
6351  echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353  if test -n "$have_autoconf"; then
6354  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361  for ac_exec_ext in '' $ac_executable_extensions; do
6362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363    ac_cv_prog_have_autoconf="yes"
6364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368done
6369
6370  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6371fi
6372fi
6373have_autoconf=$ac_cv_prog_have_autoconf
6374if test -n "$have_autoconf"; then
6375  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6376echo "${ECHO_T}$have_autoconf" >&6
6377else
6378  echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380fi
6381
6382    if test $have_autoconf = no; then
6383      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6384echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6385   { (exit 1); exit 1; }; }
6386    fi
6387
6388    # Check whether autoconf is the correct version
6389    correct_version='2.59'
6390    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6391    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6392echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6393    autoconf --version > confauto.out 2>&1
6394    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6395      echo "$as_me:$LINENO: result: yes" >&5
6396echo "${ECHO_T}yes" >&6
6397    else
6398      rm -f confauto.out
6399      echo "$as_me:$LINENO: result: no" >&5
6400echo "${ECHO_T}no" >&6
6401      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6402echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6403   { (exit 1); exit 1; }; }
6404    fi
6405    rm -f confauto.out
6406
6407    # Check if the executable autoconf is picked up from the correct location
6408    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6409echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6410    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6411    autoconf_dir=`cd $autoconf_dir; pwd`
6412    if test x$AUTOTOOLS_DIR = x; then
6413      want_dir=$AUTOTOOLS_DFLT/bin
6414    else
6415      want_dir=$AUTOTOOLS_DIR/bin
6416    fi
6417    if test $autoconf_dir = `cd $want_dir; pwd`; then
6418      echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420    else
6421      rm -f confauto.out
6422      echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6
6424      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6425echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6426   { (exit 1); exit 1; }; }
6427    fi
6428
6429    # Check if we have automake
6430    # Extract the first word of "automake", so it can be a program name with args.
6431set dummy automake; ac_word=$2
6432echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6434if test "${ac_cv_prog_have_automake+set}" = set; then
6435  echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437  if test -n "$have_automake"; then
6438  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443  IFS=$as_save_IFS
6444  test -z "$as_dir" && as_dir=.
6445  for ac_exec_ext in '' $ac_executable_extensions; do
6446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447    ac_cv_prog_have_automake="yes"
6448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449    break 2
6450  fi
6451done
6452done
6453
6454  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6455fi
6456fi
6457have_automake=$ac_cv_prog_have_automake
6458if test -n "$have_automake"; then
6459  echo "$as_me:$LINENO: result: $have_automake" >&5
6460echo "${ECHO_T}$have_automake" >&6
6461else
6462  echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464fi
6465
6466    if test $have_automake = no; then
6467      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6468echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6469   { (exit 1); exit 1; }; }
6470    fi
6471
6472    # Check whether automake is the correct version
6473    correct_version='1.9.6'
6474    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6475    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6476echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6477    automake --version > confauto.out 2>&1
6478    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6479      echo "$as_me:$LINENO: result: yes" >&5
6480echo "${ECHO_T}yes" >&6
6481    else
6482      rm -f confauto.out
6483      echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
6485      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6486echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6487   { (exit 1); exit 1; }; }
6488    fi
6489    rm -f confauto.out
6490
6491    # Check if the executable automake is picked up from the correct location
6492    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6493echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6494    automake_dir=`which automake | sed -e 's=/automake=='`
6495    automake_dir=`cd $automake_dir; pwd`
6496    if test x$AUTOTOOLS_DIR = x; then
6497      want_dir=$AUTOTOOLS_DFLT/bin
6498    else
6499      want_dir=$AUTOTOOLS_DIR/bin
6500    fi
6501    if test $automake_dir = `cd $want_dir; pwd`; then
6502      echo "$as_me:$LINENO: result: yes" >&5
6503echo "${ECHO_T}yes" >&6
6504    else
6505      rm -f confauto.out
6506      echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6
6508      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6509echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6510   { (exit 1); exit 1; }; }
6511    fi
6512
6513    # Check if this is the correct version of libtool (with escaped dots)
6514    if test x$AUTOTOOLS_DIR = x; then
6515      want_dir=$AUTOTOOLS_DFLT/share
6516    else
6517      want_dir=$AUTOTOOLS_DIR/share
6518    fi
6519    correct_version='1.5.22'
6520    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6521    if test -r $want_dir/libtool/ltmain.sh; then
6522  have_ltmain=yes
6523  :
6524else
6525  have_ltmain=no
6526  :
6527fi
6528
6529    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6530echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6531    if test $have_ltmain = yes; then
6532    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6533        echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535      else
6536        echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6539echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6540   { (exit 1); exit 1; }; }
6541      fi
6542    else
6543      echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6546echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6547   { (exit 1); exit 1; }; }
6548    fi
6549  fi
6550
6551  # Check if we can find the libtool file
6552  if test x$AUTOTOOLS_DIR = x; then
6553    want_dir=$AUTOTOOLS_DFLT/share
6554  else
6555    want_dir=$AUTOTOOLS_DIR/share
6556  fi
6557  if test -r $want_dir/aclocal/libtool.m4; then
6558  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6559  :
6560else
6561  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6562echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6563   { (exit 1); exit 1; }; }
6564  :
6565fi
6566
6567
6568  # Check if we have an Dependencies file
6569  if test -r $srcdir/Dependencies; then
6570    coin_have_externals=yes
6571  fi
6572  # Check if subversion is installed and understands https
6573  # Extract the first word of "svn", so it can be a program name with args.
6574set dummy svn; ac_word=$2
6575echo "$as_me:$LINENO: checking for $ac_word" >&5
6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6577if test "${ac_cv_prog_have_svn+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  if test -n "$have_svn"; then
6581  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6582else
6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586  IFS=$as_save_IFS
6587  test -z "$as_dir" && as_dir=.
6588  for ac_exec_ext in '' $ac_executable_extensions; do
6589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590    ac_cv_prog_have_svn="yes"
6591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6592    break 2
6593  fi
6594done
6595done
6596
6597  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6598fi
6599fi
6600have_svn=$ac_cv_prog_have_svn
6601if test -n "$have_svn"; then
6602  echo "$as_me:$LINENO: result: $have_svn" >&5
6603echo "${ECHO_T}$have_svn" >&6
6604else
6605  echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
6607fi
6608
6609  if test x$have_svn = xyes; then
6610    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6611echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6612if test "${ac_cv_svn_understands_https+set}" = set; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615  svn --version > confauto.out 2>&1
6616                    if $EGREP https confauto.out >/dev/null 2>&1; then
6617                      ac_cv_svn_understands_https=yes
6618                    else
6619                      ac_cv_svn_understands_https=no
6620                      have_svn=no
6621                      ac_cv_prog_have_svn=no
6622                    fi
6623                    rm -f confauto.out
6624fi
6625echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6626echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6627  fi
6628
6629  # Find the location of the BuildTools directory
6630  BUILDTOOLSDIR=
6631  if test -r $srcdir/BuildTools/coin.m4; then
6632    BUILDTOOLSDIR=$srcdir/BuildTools
6633  else
6634    if test -r $srcdir/../BuildTools/coin.m4; then
6635      BUILDTOOLSDIR=$srcdir/../BuildTools
6636    else
6637      if test -r $srcdir/../../BuildTools/coin.m4; then
6638        BUILDTOOLSDIR=$srcdir/../../BuildTools
6639      else
6640        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6641echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6642   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6643      fi
6644    fi
6645  fi
6646
6647
6648  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6649  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6650    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6651  fi
6652
6653  # The following variable is set to the name of the directory where
6654  # the autotool scripts are located
6655
6656  AUX_DIR=$ac_aux_dir
6657fi
6658
6659# helpful variable for the base directory of this package
6660abs_source_dir=`cd $srcdir; pwd`
6661
6662
6663# Stuff for example Makefiles
6664if test x$prefix = xNONE; then
6665  full_prefix=$ac_default_prefix
6666else
6667  full_prefix=$prefix
6668fi
6669full_prefix=`cd $full_prefix ; pwd`
6670
6671abs_lib_dir=$full_prefix/lib
6672
6673abs_include_dir=$full_prefix/include
6674
6675abs_bin_dir=$full_prefix/bin
6676
6677
6678
6679if test $coin_have_externals = yes && test x$have_svn = xyes; then
6680  HAVE_EXTERNALS_TRUE=
6681  HAVE_EXTERNALS_FALSE='#'
6682else
6683  HAVE_EXTERNALS_TRUE='#'
6684  HAVE_EXTERNALS_FALSE=
6685fi
6686
6687
6688# AC_MSG_NOTICE([End automake initialisation.])
6689
6690
6691
6692LIBTOOL=
6693if test -f ../libtool; then
6694  coin_config_dir=..
6695  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6696fi
6697if test "x$LIBTOOL" = x; then
6698  if test -f ../../libtool; then
6699    coin_config_dir=../..
6700    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6701  fi
6702fi
6703
6704if test "x$LIBTOOL" = x; then
6705# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6706  # Stuff for libtool
6707  # Check whether --enable-shared or --disable-shared was given.
6708if test "${enable_shared+set}" = set; then
6709  enableval="$enable_shared"
6710  p=${PACKAGE-default}
6711    case $enableval in
6712    yes) enable_shared=yes ;;
6713    no) enable_shared=no ;;
6714    *)
6715      enable_shared=no
6716      # Look at the argument we got.  We use all the common list separators.
6717      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6718      for pkg in $enableval; do
6719        IFS="$lt_save_ifs"
6720        if test "X$pkg" = "X$p"; then
6721          enable_shared=yes
6722        fi
6723      done
6724      IFS="$lt_save_ifs"
6725      ;;
6726    esac
6727else
6728  enable_shared=yes
6729fi;
6730
6731# Check whether --enable-fast-install or --disable-fast-install was given.
6732if test "${enable_fast_install+set}" = set; then
6733  enableval="$enable_fast_install"
6734  p=${PACKAGE-default}
6735    case $enableval in
6736    yes) enable_fast_install=yes ;;
6737    no) enable_fast_install=no ;;
6738    *)
6739      enable_fast_install=no
6740      # Look at the argument we got.  We use all the common list separators.
6741      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6742      for pkg in $enableval; do
6743        IFS="$lt_save_ifs"
6744        if test "X$pkg" = "X$p"; then
6745          enable_fast_install=yes
6746        fi
6747      done
6748      IFS="$lt_save_ifs"
6749      ;;
6750    esac
6751else
6752  enable_fast_install=yes
6753fi;
6754
6755echo "$as_me:$LINENO: checking host system type" >&5
6756echo $ECHO_N "checking host system type... $ECHO_C" >&6
6757if test "${ac_cv_host+set}" = set; then
6758  echo $ECHO_N "(cached) $ECHO_C" >&6
6759else
6760  ac_cv_host_alias=$host_alias
6761test -z "$ac_cv_host_alias" &&
6762  ac_cv_host_alias=$ac_cv_build_alias
6763ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6764  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6765echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6766   { (exit 1); exit 1; }; }
6767
6768fi
6769echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6770echo "${ECHO_T}$ac_cv_host" >&6
6771host=$ac_cv_host
6772host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6773host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6774host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6775
6776
6777echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6778echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6779if test "${lt_cv_path_SED+set}" = set; then
6780  echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782  # Loop through the user's path and test for sed and gsed.
6783# Then use that list of sed's as ones to test for truncation.
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787  IFS=$as_save_IFS
6788  test -z "$as_dir" && as_dir=.
6789  for lt_ac_prog in sed gsed; do
6790    for ac_exec_ext in '' $ac_executable_extensions; do
6791      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6792        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6793      fi
6794    done
6795  done
6796done
6797lt_ac_max=0
6798lt_ac_count=0
6799# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6800# along with /bin/sed that truncates output.
6801for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6802  test ! -f $lt_ac_sed && continue
6803  cat /dev/null > conftest.in
6804  lt_ac_count=0
6805  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6806  # Check for GNU sed and select it if it is found.
6807  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6808    lt_cv_path_SED=$lt_ac_sed
6809    break
6810  fi
6811  while true; do
6812    cat conftest.in conftest.in >conftest.tmp
6813    mv conftest.tmp conftest.in
6814    cp conftest.in conftest.nl
6815    echo >>conftest.nl
6816    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6817    cmp -s conftest.out conftest.nl || break
6818    # 10000 chars as input seems more than enough
6819    test $lt_ac_count -gt 10 && break
6820    lt_ac_count=`expr $lt_ac_count + 1`
6821    if test $lt_ac_count -gt $lt_ac_max; then
6822      lt_ac_max=$lt_ac_count
6823      lt_cv_path_SED=$lt_ac_sed
6824    fi
6825  done
6826done
6827
6828fi
6829
6830SED=$lt_cv_path_SED
6831echo "$as_me:$LINENO: result: $SED" >&5
6832echo "${ECHO_T}$SED" >&6
6833
6834
6835# Check whether --with-gnu-ld or --without-gnu-ld was given.
6836if test "${with_gnu_ld+set}" = set; then
6837  withval="$with_gnu_ld"
6838  test "$withval" = no || with_gnu_ld=yes
6839else
6840  with_gnu_ld=no
6841fi;
6842ac_prog=ld
6843if test "$GCC" = yes; then
6844  # Check if gcc -print-prog-name=ld gives a path.
6845  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6846echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6847  case $host in
6848  *-*-mingw*)
6849    # gcc leaves a trailing carriage return which upsets mingw
6850    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6851  *)
6852    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6853  esac
6854  case $ac_prog in
6855    # Accept absolute paths.
6856    [\\/]* | ?:[\\/]*)
6857      re_direlt='/[^/][^/]*/\.\./'
6858      # Canonicalize the pathname of ld
6859      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6860      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6861        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6862      done
6863      test -z "$LD" && LD="$ac_prog"
6864      ;;
6865  "")
6866    # If it fails, then pretend we aren't using GCC.
6867    ac_prog=ld
6868    ;;
6869  *)
6870    # If it is relative, then search for the first ld in PATH.
6871    with_gnu_ld=unknown
6872    ;;
6873  esac
6874elif test "$with_gnu_ld" = yes; then
6875  echo "$as_me:$LINENO: checking for GNU ld" >&5
6876echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6877else
6878  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6879echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6880fi
6881if test "${lt_cv_path_LD+set}" = set; then
6882  echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884  if test -z "$LD"; then
6885  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6886  for ac_dir in $PATH; do
6887    IFS="$lt_save_ifs"
6888    test -z "$ac_dir" && ac_dir=.
6889    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6890      lt_cv_path_LD="$ac_dir/$ac_prog"
6891      # Check to see if the program is GNU ld.  I'd rather use --version,
6892      # but apparently some variants of GNU ld only accept -v.
6893      # Break only if it was the GNU/non-GNU ld that we prefer.
6894      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6895      *GNU* | *'with BFD'*)
6896        test "$with_gnu_ld" != no && break
6897        ;;
6898      *)
6899        test "$with_gnu_ld" != yes && break
6900        ;;
6901      esac
6902    fi
6903  done
6904  IFS="$lt_save_ifs"
6905else
6906  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6907fi
6908fi
6909
6910LD="$lt_cv_path_LD"
6911if test -n "$LD"; then
6912  echo "$as_me:$LINENO: result: $LD" >&5
6913echo "${ECHO_T}$LD" >&6
6914else
6915  echo "$as_me:$LINENO: result: no" >&5
6916echo "${ECHO_T}no" >&6
6917fi
6918test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6919echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6920   { (exit 1); exit 1; }; }
6921echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6922echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6923if test "${lt_cv_prog_gnu_ld+set}" = set; then
6924  echo $ECHO_N "(cached) $ECHO_C" >&6
6925else
6926  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6927case `$LD -v 2>&1 </dev/null` in
6928*GNU* | *'with BFD'*)
6929  lt_cv_prog_gnu_ld=yes
6930  ;;
6931*)
6932  lt_cv_prog_gnu_ld=no
6933  ;;
6934esac
6935fi
6936echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6937echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6938with_gnu_ld=$lt_cv_prog_gnu_ld
6939
6940
6941echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6942echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6943if test "${lt_cv_ld_reload_flag+set}" = set; then
6944  echo $ECHO_N "(cached) $ECHO_C" >&6
6945else
6946  lt_cv_ld_reload_flag='-r'
6947fi
6948echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6949echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6950reload_flag=$lt_cv_ld_reload_flag
6951case $reload_flag in
6952"" | " "*) ;;
6953*) reload_flag=" $reload_flag" ;;
6954esac
6955reload_cmds='$LD$reload_flag -o $output$reload_objs'
6956case $host_os in
6957  darwin*)
6958    if test "$GCC" = yes; then
6959      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6960    else
6961      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6962    fi
6963    ;;
6964esac
6965
6966echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6967echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6968if test "${lt_cv_path_NM+set}" = set; then
6969  echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971  if test -n "$NM"; then
6972  # Let the user override the test.
6973  lt_cv_path_NM="$NM"
6974else
6975  lt_nm_to_check="${ac_tool_prefix}nm"
6976  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6977    lt_nm_to_check="$lt_nm_to_check nm"
6978  fi
6979  for lt_tmp_nm in $lt_nm_to_check; do
6980    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6981    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6982      IFS="$lt_save_ifs"
6983      test -z "$ac_dir" && ac_dir=.
6984      tmp_nm="$ac_dir/$lt_tmp_nm"
6985      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6986        # Check to see if the nm accepts a BSD-compat flag.
6987        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6988        #   nm: unknown option "B" ignored
6989        # Tru64's nm complains that /dev/null is an invalid object file
6990        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6991        */dev/null* | *'Invalid file or object type'*)
6992          lt_cv_path_NM="$tmp_nm -B"
6993          break
6994          ;;
6995        *)
6996          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6997          */dev/null*)
6998            lt_cv_path_NM="$tmp_nm -p"
6999            break
7000            ;;
7001          *)
7002            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7003            continue # so that we can try to find one that supports BSD flags
7004            ;;
7005          esac
7006          ;;
7007        esac
7008      fi
7009    done
7010    IFS="$lt_save_ifs"
7011  done
7012  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7013fi
7014fi
7015echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7016echo "${ECHO_T}$lt_cv_path_NM" >&6
7017NM="$lt_cv_path_NM"
7018
7019echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7020echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7021if test "${lt_cv_deplibs_check_method+set}" = set; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024  lt_cv_file_magic_cmd='$MAGIC_CMD'
7025lt_cv_file_magic_test_file=
7026lt_cv_deplibs_check_method='unknown'
7027# Need to set the preceding variable on all platforms that support
7028# interlibrary dependencies.
7029# 'none' -- dependencies not supported.
7030# `unknown' -- same as none, but documents that we really don't know.
7031# 'pass_all' -- all dependencies passed with no checks.
7032# 'test_compile' -- check by making test program.
7033# 'file_magic [[regex]]' -- check by looking for files in library path
7034# which responds to the $file_magic_cmd with a given extended regex.
7035# If you have `file' or equivalent on your system and you're not sure
7036# whether `pass_all' will *always* work, you probably want this one.
7037
7038case $host_os in
7039aix4* | aix5*)
7040  lt_cv_deplibs_check_method=pass_all
7041  ;;
7042
7043beos*)
7044  lt_cv_deplibs_check_method=pass_all
7045  ;;
7046
7047bsdi[45]*)
7048  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7049  lt_cv_file_magic_cmd='/usr/bin/file -L'
7050  lt_cv_file_magic_test_file=/shlib/libc.so
7051  ;;
7052
7053cygwin*)
7054  # func_win32_libid is a shell function defined in ltmain.sh
7055  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7056  lt_cv_file_magic_cmd='func_win32_libid'
7057  ;;
7058
7059mingw* | pw32*)
7060  # Base MSYS/MinGW do not provide the 'file' command needed by
7061  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7062  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7063  lt_cv_file_magic_cmd='$OBJDUMP -f'
7064  ;;
7065
7066darwin* | rhapsody*)
7067  lt_cv_deplibs_check_method=pass_all
7068  ;;
7069
7070freebsd* | kfreebsd*-gnu | dragonfly*)
7071  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7072    case $host_cpu in
7073    i*86 )
7074      # Not sure whether the presence of OpenBSD here was a mistake.
7075      # Let's accept both of them until this is cleared up.
7076      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7077      lt_cv_file_magic_cmd=/usr/bin/file
7078      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7079      ;;
7080    esac
7081  else
7082    lt_cv_deplibs_check_method=pass_all
7083  fi
7084  ;;
7085
7086gnu*)
7087  lt_cv_deplibs_check_method=pass_all
7088  ;;
7089
7090hpux10.20* | hpux11*)
7091  lt_cv_file_magic_cmd=/usr/bin/file
7092  case $host_cpu in
7093  ia64*)
7094    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7095    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7096    ;;
7097  hppa*64*)
7098    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]'
7099    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7100    ;;
7101  *)
7102    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7103    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7104    ;;
7105  esac
7106  ;;
7107
7108interix3*)
7109  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7110  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7111  ;;
7112
7113irix5* | irix6* | nonstopux*)
7114  case $LD in
7115  *-32|*"-32 ") libmagic=32-bit;;
7116  *-n32|*"-n32 ") libmagic=N32;;
7117  *-64|*"-64 ") libmagic=64-bit;;
7118  *) libmagic=never-match;;
7119  esac
7120  lt_cv_deplibs_check_method=pass_all
7121  ;;
7122
7123# This must be Linux ELF.
7124linux*)
7125  lt_cv_deplibs_check_method=pass_all
7126  ;;
7127
7128netbsd*)
7129  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7130    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7131  else
7132    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7133  fi
7134  ;;
7135
7136newos6*)
7137  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7138  lt_cv_file_magic_cmd=/usr/bin/file
7139  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7140  ;;
7141
7142nto-qnx*)
7143  lt_cv_deplibs_check_method=unknown
7144  ;;
7145
7146openbsd*)
7147  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7148    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7149  else
7150    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7151  fi
7152  ;;
7153
7154osf3* | osf4* | osf5*)
7155  lt_cv_deplibs_check_method=pass_all
7156  ;;
7157
7158solaris*)
7159  lt_cv_deplibs_check_method=pass_all
7160  ;;
7161
7162sysv4 | sysv4.3*)
7163  case $host_vendor in
7164  motorola)
7165    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]'
7166    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7167    ;;
7168  ncr)
7169    lt_cv_deplibs_check_method=pass_all
7170    ;;
7171  sequent)
7172    lt_cv_file_magic_cmd='/bin/file'
7173    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7174    ;;
7175  sni)
7176    lt_cv_file_magic_cmd='/bin/file'
7177    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7178    lt_cv_file_magic_test_file=/lib/libc.so
7179    ;;
7180  siemens)
7181    lt_cv_deplibs_check_method=pass_all
7182    ;;
7183  pc)
7184    lt_cv_deplibs_check_method=pass_all
7185    ;;
7186  esac
7187  ;;
7188
7189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7190  lt_cv_deplibs_check_method=pass_all
7191  ;;
7192esac
7193
7194fi
7195echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7196echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7197file_magic_cmd=$lt_cv_file_magic_cmd
7198deplibs_check_method=$lt_cv_deplibs_check_method
7199test -z "$deplibs_check_method" && deplibs_check_method=unknown
7200
7201
7202
7203
7204# If no C compiler was specified, use CC.
7205LTCC=${LTCC-"$CC"}
7206
7207# If no C compiler flags were specified, use CFLAGS.
7208LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7209
7210# Allow CC to be a program name with arguments.
7211compiler=$CC
7212
7213# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7214if test "${enable_libtool_lock+set}" = set; then
7215  enableval="$enable_libtool_lock"
7216
7217fi;
7218test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7219
7220# Some flags need to be propagated to the compiler or linker for good
7221# libtool support.
7222case $host in
7223ia64-*-hpux*)
7224  # Find out which ABI we are using.
7225  echo 'int i;' > conftest.$ac_ext
7226  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227  (eval $ac_compile) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); }; then
7231    case `/usr/bin/file conftest.$ac_objext` in
7232    *ELF-32*)
7233      HPUX_IA64_MODE="32"
7234      ;;
7235    *ELF-64*)
7236      HPUX_IA64_MODE="64"
7237      ;;
7238    esac
7239  fi
7240  rm -rf conftest*
7241  ;;
7242*-*-irix6*)
7243  # Find out which ABI we are using.
7244  echo '#line 7244 "configure"' > conftest.$ac_ext
7245  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246  (eval $ac_compile) 2>&5
7247  ac_status=$?
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); }; then
7250   if test "$lt_cv_prog_gnu_ld" = yes; then
7251    case `/usr/bin/file conftest.$ac_objext` in
7252    *32-bit*)
7253      LD="${LD-ld} -melf32bsmip"
7254      ;;
7255    *N32*)
7256      LD="${LD-ld} -melf32bmipn32"
7257      ;;
7258    *64-bit*)
7259      LD="${LD-ld} -melf64bmip"
7260      ;;
7261    esac
7262   else
7263    case `/usr/bin/file conftest.$ac_objext` in
7264    *32-bit*)
7265      LD="${LD-ld} -32"
7266      ;;
7267    *N32*)
7268      LD="${LD-ld} -n32"
7269      ;;
7270    *64-bit*)
7271      LD="${LD-ld} -64"
7272      ;;
7273    esac
7274   fi
7275  fi
7276  rm -rf conftest*
7277  ;;
7278
7279x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7280  # Find out which ABI we are using.
7281  echo 'int i;' > conftest.$ac_ext
7282  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283  (eval $ac_compile) 2>&5
7284  ac_status=$?
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); }; then
7287    case `/usr/bin/file conftest.o` in
7288    *32-bit*)
7289      case $host in
7290        x86_64-*linux*)
7291          LD="${LD-ld} -m elf_i386"
7292          ;;
7293        ppc64-*linux*|powerpc64-*linux*)
7294          LD="${LD-ld} -m elf32ppclinux"
7295          ;;
7296        s390x-*linux*)
7297          LD="${LD-ld} -m elf_s390"
7298          ;;
7299        sparc64-*linux*)
7300          LD="${LD-ld} -m elf32_sparc"
7301          ;;
7302      esac
7303      ;;
7304    *64-bit*)
7305      case $host in
7306        x86_64-*linux*)
7307          LD="${LD-ld} -m elf_x86_64"
7308          ;;
7309        ppc*-*linux*|powerpc*-*linux*)
7310          LD="${LD-ld} -m elf64ppc"
7311          ;;
7312        s390*-*linux*)
7313          LD="${LD-ld} -m elf64_s390"
7314          ;;
7315        sparc*-*linux*)
7316          LD="${LD-ld} -m elf64_sparc"
7317          ;;
7318      esac
7319      ;;
7320    esac
7321  fi
7322  rm -rf conftest*
7323  ;;
7324
7325*-*-sco3.2v5*)
7326  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7327  SAVE_CFLAGS="$CFLAGS"
7328  CFLAGS="$CFLAGS -belf"
7329  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7330echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7331if test "${lt_cv_cc_needs_belf+set}" = set; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334  ac_ext=c
7335ac_cpp='$CPP $CPPFLAGS'
7336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340     cat >conftest.$ac_ext <<_ACEOF
7341/* confdefs.h.  */
7342_ACEOF
7343cat confdefs.h >>conftest.$ac_ext
7344cat >>conftest.$ac_ext <<_ACEOF
7345/* end confdefs.h.  */
7346
7347#ifdef F77_DUMMY_MAIN
7348
7349#  ifdef __cplusplus
7350     extern "C"
7351#  endif
7352   int F77_DUMMY_MAIN() { return 1; }
7353
7354#endif
7355int
7356main ()
7357{
7358
7359  ;
7360  return 0;
7361}
7362_ACEOF
7363rm -f conftest.$ac_objext conftest$ac_exeext
7364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365  (eval $ac_link) 2>conftest.er1
7366  ac_status=$?
7367  grep -v '^ *+' conftest.er1 >conftest.err
7368  rm -f conftest.er1
7369  cat conftest.err >&5
7370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371  (exit $ac_status); } &&
7372         { ac_try='test -z "$ac_c_werror_flag"
7373                         || test ! -s conftest.err'
7374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375  (eval $ac_try) 2>&5
7376  ac_status=$?
7377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378  (exit $ac_status); }; } &&
7379         { ac_try='test -s conftest$ac_exeext'
7380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381  (eval $ac_try) 2>&5
7382  ac_status=$?
7383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384  (exit $ac_status); }; }; then
7385  lt_cv_cc_needs_belf=yes
7386else
7387  echo "$as_me: failed program was:" >&5
7388sed 's/^/| /' conftest.$ac_ext >&5
7389
7390lt_cv_cc_needs_belf=no
7391fi
7392rm -f conftest.err conftest.$ac_objext \
7393      conftest$ac_exeext conftest.$ac_ext
7394     ac_ext=c
7395ac_cpp='$CPP $CPPFLAGS'
7396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400fi
7401echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7402echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7403  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7404    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7405    CFLAGS="$SAVE_CFLAGS"
7406  fi
7407  ;;
7408sparc*-*solaris*)
7409  # Find out which ABI we are using.
7410  echo 'int i;' > conftest.$ac_ext
7411  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7412  (eval $ac_compile) 2>&5
7413  ac_status=$?
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); }; then
7416    case `/usr/bin/file conftest.o` in
7417    *64-bit*)
7418      case $lt_cv_prog_gnu_ld in
7419      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7420      *)    LD="${LD-ld} -64" ;;
7421      esac
7422      ;;
7423    esac
7424  fi
7425  rm -rf conftest*
7426  ;;
7427
7428
7429esac
7430
7431need_locks="$enable_libtool_lock"
7432
7433
7434ac_ext=c
7435ac_cpp='$CPP $CPPFLAGS'
7436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7440echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7441# On Suns, sometimes $CPP names a directory.
7442if test -n "$CPP" && test -d "$CPP"; then
7443  CPP=
7444fi
7445if test -z "$CPP"; then
7446  if test "${ac_cv_prog_CPP+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449      # Double quotes because CPP needs to be expanded
7450    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7451    do
7452      ac_preproc_ok=false
7453for ac_c_preproc_warn_flag in '' yes
7454do
7455  # Use a header file that comes with gcc, so configuring glibc
7456  # with a fresh cross-compiler works.
7457  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458  # <limits.h> exists even on freestanding compilers.
7459  # On the NeXT, cc -E runs the code through the compiler's parser,
7460  # not just through cpp. "Syntax error" is here to catch this case.
7461  cat >conftest.$ac_ext <<_ACEOF
7462/* confdefs.h.  */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h.  */
7467#ifdef __STDC__
7468# include <limits.h>
7469#else
7470# include <assert.h>
7471#endif
7472                     Syntax error
7473_ACEOF
7474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7475  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7476  ac_status=$?
7477  grep -v '^ *+' conftest.er1 >conftest.err
7478  rm -f conftest.er1
7479  cat conftest.err >&5
7480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481  (exit $ac_status); } >/dev/null; then
7482  if test -s conftest.err; then
7483    ac_cpp_err=$ac_c_preproc_warn_flag
7484    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7485  else
7486    ac_cpp_err=
7487  fi
7488else
7489  ac_cpp_err=yes
7490fi
7491if test -z "$ac_cpp_err"; then
7492  :
7493else
7494  echo "$as_me: failed program was:" >&5
7495sed 's/^/| /' conftest.$ac_ext >&5
7496
7497  # Broken: fails on valid input.
7498continue
7499fi
7500rm -f conftest.err conftest.$ac_ext
7501
7502  # OK, works on sane cases.  Now check whether non-existent headers
7503  # can be detected and how.
7504  cat >conftest.$ac_ext <<_ACEOF
7505/* confdefs.h.  */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h.  */
7510#include <ac_nonexistent.h>
7511_ACEOF
7512if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7513  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7514  ac_status=$?
7515  grep -v '^ *+' conftest.er1 >conftest.err
7516  rm -f conftest.er1
7517  cat conftest.err >&5
7518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519  (exit $ac_status); } >/dev/null; then
7520  if test -s conftest.err; then
7521    ac_cpp_err=$ac_c_preproc_warn_flag
7522    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7523  else
7524    ac_cpp_err=
7525  fi
7526else
7527  ac_cpp_err=yes
7528fi
7529if test -z "$ac_cpp_err"; then
7530  # Broken: success on invalid input.
7531continue
7532else
7533  echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
7536  # Passes both tests.
7537ac_preproc_ok=:
7538break
7539fi
7540rm -f conftest.err conftest.$ac_ext
7541
7542done
7543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7544rm -f conftest.err conftest.$ac_ext
7545if $ac_preproc_ok; then
7546  break
7547fi
7548
7549    done
7550    ac_cv_prog_CPP=$CPP
7551
7552fi
7553  CPP=$ac_cv_prog_CPP
7554else
7555  ac_cv_prog_CPP=$CPP
7556fi
7557echo "$as_me:$LINENO: result: $CPP" >&5
7558echo "${ECHO_T}$CPP" >&6
7559ac_preproc_ok=false
7560for ac_c_preproc_warn_flag in '' yes
7561do
7562  # Use a header file that comes with gcc, so configuring glibc
7563  # with a fresh cross-compiler works.
7564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7565  # <limits.h> exists even on freestanding compilers.
7566  # On the NeXT, cc -E runs the code through the compiler's parser,
7567  # not just through cpp. "Syntax error" is here to catch this case.
7568  cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h.  */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h.  */
7574#ifdef __STDC__
7575# include <limits.h>
7576#else
7577# include <assert.h>
7578#endif
7579                     Syntax error
7580_ACEOF
7581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7583  ac_status=$?
7584  grep -v '^ *+' conftest.er1 >conftest.err
7585  rm -f conftest.er1
7586  cat conftest.err >&5
7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588  (exit $ac_status); } >/dev/null; then
7589  if test -s conftest.err; then
7590    ac_cpp_err=$ac_c_preproc_warn_flag
7591    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7592  else
7593    ac_cpp_err=
7594  fi
7595else
7596  ac_cpp_err=yes
7597fi
7598if test -z "$ac_cpp_err"; then
7599  :
7600else
7601  echo "$as_me: failed program was:" >&5
7602sed 's/^/| /' conftest.$ac_ext >&5
7603
7604  # Broken: fails on valid input.
7605continue
7606fi
7607rm -f conftest.err conftest.$ac_ext
7608
7609  # OK, works on sane cases.  Now check whether non-existent headers
7610  # can be detected and how.
7611  cat >conftest.$ac_ext <<_ACEOF
7612/* confdefs.h.  */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h.  */
7617#include <ac_nonexistent.h>
7618_ACEOF
7619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7620  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7621  ac_status=$?
7622  grep -v '^ *+' conftest.er1 >conftest.err
7623  rm -f conftest.er1
7624  cat conftest.err >&5
7625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626  (exit $ac_status); } >/dev/null; then
7627  if test -s conftest.err; then
7628    ac_cpp_err=$ac_c_preproc_warn_flag
7629    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7630  else
7631    ac_cpp_err=
7632  fi
7633else
7634  ac_cpp_err=yes
7635fi
7636if test -z "$ac_cpp_err"; then
7637  # Broken: success on invalid input.
7638continue
7639else
7640  echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643  # Passes both tests.
7644ac_preproc_ok=:
7645break
7646fi
7647rm -f conftest.err conftest.$ac_ext
7648
7649done
7650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7651rm -f conftest.err conftest.$ac_ext
7652if $ac_preproc_ok; then
7653  :
7654else
7655  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7656See \`config.log' for more details." >&5
7657echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7658See \`config.log' for more details." >&2;}
7659   { (exit 1); exit 1; }; }
7660fi
7661
7662ac_ext=c
7663ac_cpp='$CPP $CPPFLAGS'
7664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7666ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667
7668
7669echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7670echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7671if test "${ac_cv_header_stdc+set}" = set; then
7672  echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674  cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h.  */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h.  */
7680#include <stdlib.h>
7681#include <stdarg.h>
7682#include <string.h>
7683#include <float.h>
7684
7685#ifdef F77_DUMMY_MAIN
7686
7687#  ifdef __cplusplus
7688     extern "C"
7689#  endif
7690   int F77_DUMMY_MAIN() { return 1; }
7691
7692#endif
7693int
7694main ()
7695{
7696
7697  ;
7698  return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext
7702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703  (eval $ac_compile) 2>conftest.er1
7704  ac_status=$?
7705  grep -v '^ *+' conftest.er1 >conftest.err
7706  rm -f conftest.er1
7707  cat conftest.err >&5
7708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709  (exit $ac_status); } &&
7710         { ac_try='test -z "$ac_c_werror_flag"
7711                         || test ! -s conftest.err'
7712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713  (eval $ac_try) 2>&5
7714  ac_status=$?
7715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716  (exit $ac_status); }; } &&
7717         { ac_try='test -s conftest.$ac_objext'
7718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719  (eval $ac_try) 2>&5
7720  ac_status=$?
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); }; }; then
7723  ac_cv_header_stdc=yes
7724else
7725  echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728ac_cv_header_stdc=no
7729fi
7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731
7732if test $ac_cv_header_stdc = yes; then
7733  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7734  cat >conftest.$ac_ext <<_ACEOF
7735/* confdefs.h.  */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h.  */
7740#include <string.h>
7741
7742_ACEOF
7743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744  $EGREP "memchr" >/dev/null 2>&1; then
7745  :
7746else
7747  ac_cv_header_stdc=no
7748fi
7749rm -f conftest*
7750
7751fi
7752
7753if test $ac_cv_header_stdc = yes; then
7754  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7755  cat >conftest.$ac_ext <<_ACEOF
7756/* confdefs.h.  */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h.  */
7761#include <stdlib.h>
7762
7763_ACEOF
7764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7765  $EGREP "free" >/dev/null 2>&1; then
7766  :
7767else
7768  ac_cv_header_stdc=no
7769fi
7770rm -f conftest*
7771
7772fi
7773
7774if test $ac_cv_header_stdc = yes; then
7775  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7776  if test "$cross_compiling" = yes; then
7777  :
7778else
7779  cat >conftest.$ac_ext <<_ACEOF
7780/* confdefs.h.  */
7781_ACEOF
7782cat confdefs.h >>conftest.$ac_ext
7783cat >>conftest.$ac_ext <<_ACEOF
7784/* end confdefs.h.  */
7785#include <ctype.h>
7786#if ((' ' & 0x0FF) == 0x020)
7787# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7788# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7789#else
7790# define ISLOWER(c) \
7791                   (('a' <= (c) && (c) <= 'i') \
7792                     || ('j' <= (c) && (c) <= 'r') \
7793                     || ('s' <= (c) && (c) <= 'z'))
7794# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7795#endif
7796
7797#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7798int
7799main ()
7800{
7801  int i;
7802  for (i = 0; i < 256; i++)
7803    if (XOR (islower (i), ISLOWER (i))
7804        || toupper (i) != TOUPPER (i))
7805      exit(2);
7806  exit (0);
7807}
7808_ACEOF
7809rm -f conftest$ac_exeext
7810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811  (eval $ac_link) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816  (eval $ac_try) 2>&5
7817  ac_status=$?
7818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819  (exit $ac_status); }; }; then
7820  :
7821else
7822  echo "$as_me: program exited with status $ac_status" >&5
7823echo "$as_me: failed program was:" >&5
7824sed 's/^/| /' conftest.$ac_ext >&5
7825
7826( exit $ac_status )
7827ac_cv_header_stdc=no
7828fi
7829rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7830fi
7831fi
7832fi
7833echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7834echo "${ECHO_T}$ac_cv_header_stdc" >&6
7835if test $ac_cv_header_stdc = yes; then
7836
7837cat >>confdefs.h <<\_ACEOF
7838#define STDC_HEADERS 1
7839_ACEOF
7840
7841fi
7842
7843# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7854                  inttypes.h stdint.h unistd.h
7855do
7856as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857echo "$as_me:$LINENO: checking for $ac_header" >&5
7858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860  echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862  cat >conftest.$ac_ext <<_ACEOF
7863/* confdefs.h.  */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h.  */
7868$ac_includes_default
7869
7870#include <$ac_header>
7871_ACEOF
7872rm -f conftest.$ac_objext
7873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874  (eval $ac_compile) 2>conftest.er1
7875  ac_status=$?
7876  grep -v '^ *+' conftest.er1 >conftest.err
7877  rm -f conftest.er1
7878  cat conftest.err >&5
7879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880  (exit $ac_status); } &&
7881         { ac_try='test -z "$ac_c_werror_flag"
7882                         || test ! -s conftest.err'
7883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884  (eval $ac_try) 2>&5
7885  ac_status=$?
7886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887  (exit $ac_status); }; } &&
7888         { ac_try='test -s conftest.$ac_objext'
7889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890  (eval $ac_try) 2>&5
7891  ac_status=$?
7892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893  (exit $ac_status); }; }; then
7894  eval "$as_ac_Header=yes"
7895else
7896  echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899eval "$as_ac_Header=no"
7900fi
7901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7902fi
7903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7904echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7905if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906  cat >>confdefs.h <<_ACEOF
7907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908_ACEOF
7909
7910fi
7911
7912done
7913
7914
7915
7916for ac_header in dlfcn.h
7917do
7918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7919if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920  echo "$as_me:$LINENO: checking for $ac_header" >&5
7921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7922if eval "test \"\${$as_ac_Header+set}\" = set"; then
7923  echo $ECHO_N "(cached) $ECHO_C" >&6
7924fi
7925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7927else
7928  # Is the header compilable?
7929echo "$as_me:$LINENO: checking $ac_header usability" >&5
7930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7931cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h.  */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h.  */
7937$ac_includes_default
7938#include <$ac_header>
7939_ACEOF
7940rm -f conftest.$ac_objext
7941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942  (eval $ac_compile) 2>conftest.er1
7943  ac_status=$?
7944  grep -v '^ *+' conftest.er1 >conftest.err
7945  rm -f conftest.er1
7946  cat conftest.err >&5
7947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948  (exit $ac_status); } &&
7949         { ac_try='test -z "$ac_c_werror_flag"
7950                         || test ! -s conftest.err'
7951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952  (eval $ac_try) 2>&5
7953  ac_status=$?
7954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955  (exit $ac_status); }; } &&
7956         { ac_try='test -s conftest.$ac_objext'
7957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958  (eval $ac_try) 2>&5
7959  ac_status=$?
7960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961  (exit $ac_status); }; }; then
7962  ac_header_compiler=yes
7963else
7964  echo "$as_me: failed program was:" >&5
7965sed 's/^/| /' conftest.$ac_ext >&5
7966
7967ac_header_compiler=no
7968fi
7969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7971echo "${ECHO_T}$ac_header_compiler" >&6
7972
7973# Is the header present?
7974echo "$as_me:$LINENO: checking $ac_header presence" >&5
7975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7976cat >conftest.$ac_ext <<_ACEOF
7977/* confdefs.h.  */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h.  */
7982#include <$ac_header>
7983_ACEOF
7984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7985  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7986  ac_status=$?
7987  grep -v '^ *+' conftest.er1 >conftest.err
7988  rm -f conftest.er1
7989  cat conftest.err >&5
7990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991  (exit $ac_status); } >/dev/null; then
7992  if test -s conftest.err; then
7993    ac_cpp_err=$ac_c_preproc_warn_flag
7994    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7995  else
7996    ac_cpp_err=
7997  fi
7998else
7999  ac_cpp_err=yes
8000fi
8001if test -z "$ac_cpp_err"; then
8002  ac_header_preproc=yes
8003else
8004  echo "$as_me: failed program was:" >&5
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
8007  ac_header_preproc=no
8008fi
8009rm -f conftest.err conftest.$ac_ext
8010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8011echo "${ECHO_T}$ac_header_preproc" >&6
8012
8013# So?  What about this header?
8014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8015  yes:no: )
8016    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8018    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8020    ac_header_preproc=yes
8021    ;;
8022  no:yes:* )
8023    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8025    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8026echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8027    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8029    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8030echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8031    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8033    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8035    (
8036      cat <<\_ASBOX
8037## --------------------------------------------------------------- ##
8038## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8039## --------------------------------------------------------------- ##
8040_ASBOX
8041    ) |
8042      sed "s/^/$as_me: WARNING:     /" >&2
8043    ;;
8044esac
8045echo "$as_me:$LINENO: checking for $ac_header" >&5
8046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8047if eval "test \"\${$as_ac_Header+set}\" = set"; then
8048  echo $ECHO_N "(cached) $ECHO_C" >&6
8049else
8050  eval "$as_ac_Header=\$ac_header_preproc"
8051fi
8052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8054
8055fi
8056if test `eval echo '${'$as_ac_Header'}'` = yes; then
8057  cat >>confdefs.h <<_ACEOF
8058#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8059_ACEOF
8060
8061fi
8062
8063done
8064
8065ac_ext=cc
8066ac_cpp='$CXXCPP $CPPFLAGS'
8067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8070if test -n "$ac_tool_prefix"; then
8071  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8072  do
8073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8075echo "$as_me:$LINENO: checking for $ac_word" >&5
8076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8077if test "${ac_cv_prog_CXX+set}" = set; then
8078  echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080  if test -n "$CXX"; then
8081  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8082else
8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084for as_dir in $PATH
8085do
8086  IFS=$as_save_IFS
8087  test -z "$as_dir" && as_dir=.
8088  for ac_exec_ext in '' $ac_executable_extensions; do
8089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8092    break 2
8093  fi
8094done
8095done
8096
8097fi
8098fi
8099CXX=$ac_cv_prog_CXX
8100if test -n "$CXX"; then
8101  echo "$as_me:$LINENO: result: $CXX" >&5
8102echo "${ECHO_T}$CXX" >&6
8103else
8104  echo "$as_me:$LINENO: result: no" >&5
8105echo "${ECHO_T}no" >&6
8106fi
8107
8108    test -n "$CXX" && break
8109  done
8110fi
8111if test -z "$CXX"; then
8112  ac_ct_CXX=$CXX
8113  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8114do
8115  # Extract the first word of "$ac_prog", so it can be a program name with args.
8116set dummy $ac_prog; ac_word=$2
8117echo "$as_me:$LINENO: checking for $ac_word" >&5
8118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8119if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8120  echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122  if test -n "$ac_ct_CXX"; then
8123  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8124else
8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126for as_dir in $PATH
8127do
8128  IFS=$as_save_IFS
8129  test -z "$as_dir" && as_dir=.
8130  for ac_exec_ext in '' $ac_executable_extensions; do
8131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132    ac_cv_prog_ac_ct_CXX="$ac_prog"
8133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134    break 2
8135  fi
8136done
8137done
8138
8139fi
8140fi
8141ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8142if test -n "$ac_ct_CXX"; then
8143  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8144echo "${ECHO_T}$ac_ct_CXX" >&6
8145else
8146  echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
8148fi
8149
8150  test -n "$ac_ct_CXX" && break
8151done
8152test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8153
8154  CXX=$ac_ct_CXX
8155fi
8156
8157
8158# Provide some information about the compiler.
8159echo "$as_me:$LINENO:" \
8160     "checking for C++ compiler version" >&5
8161ac_compiler=`set X $ac_compile; echo $2`
8162{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8163  (eval $ac_compiler --version </dev/null >&5) 2>&5
8164  ac_status=$?
8165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166  (exit $ac_status); }
8167{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8168  (eval $ac_compiler -v </dev/null >&5) 2>&5
8169  ac_status=$?
8170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171  (exit $ac_status); }
8172{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8173  (eval $ac_compiler -V </dev/null >&5) 2>&5
8174  ac_status=$?
8175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176  (exit $ac_status); }
8177
8178echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8179echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8180if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8181  echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183  cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h.  */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h.  */
8189
8190#ifdef F77_DUMMY_MAIN
8191
8192#  ifdef __cplusplus
8193     extern "C"
8194#  endif
8195   int F77_DUMMY_MAIN() { return 1; }
8196
8197#endif
8198int
8199main ()
8200{
8201#ifndef __GNUC__
8202       choke me
8203#endif
8204
8205  ;
8206  return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext
8210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211  (eval $ac_compile) 2>conftest.er1
8212  ac_status=$?
8213  grep -v '^ *+' conftest.er1 >conftest.err
8214  rm -f conftest.er1
8215  cat conftest.err >&5
8216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217  (exit $ac_status); } &&
8218         { ac_try='test -z "$ac_cxx_werror_flag"
8219                         || test ! -s conftest.err'
8220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221  (eval $ac_try) 2>&5
8222  ac_status=$?
8223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224  (exit $ac_status); }; } &&
8225         { ac_try='test -s conftest.$ac_objext'
8226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227  (eval $ac_try) 2>&5
8228  ac_status=$?
8229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230  (exit $ac_status); }; }; then
8231  ac_compiler_gnu=yes
8232else
8233  echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236ac_compiler_gnu=no
8237fi
8238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8239ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8240
8241fi
8242echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8243echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8244GXX=`test $ac_compiler_gnu = yes && echo yes`
8245ac_test_CXXFLAGS=${CXXFLAGS+set}
8246ac_save_CXXFLAGS=$CXXFLAGS
8247CXXFLAGS="-g"
8248echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8249echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8250if test "${ac_cv_prog_cxx_g+set}" = set; then
8251  echo $ECHO_N "(cached) $ECHO_C" >&6
8252else
8253  cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h.  */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h.  */
8259
8260#ifdef F77_DUMMY_MAIN
8261
8262#  ifdef __cplusplus
8263     extern "C"
8264#  endif
8265   int F77_DUMMY_MAIN() { return 1; }
8266
8267#endif
8268int
8269main ()
8270{
8271
8272  ;
8273  return 0;
8274}
8275_ACEOF
8276rm -f conftest.$ac_objext
8277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8278  (eval $ac_compile) 2>conftest.er1
8279  ac_status=$?
8280  grep -v '^ *+' conftest.er1 >conftest.err
8281  rm -f conftest.er1
8282  cat conftest.err >&5
8283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284  (exit $ac_status); } &&
8285         { ac_try='test -z "$ac_cxx_werror_flag"
8286                         || test ! -s conftest.err'
8287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288  (eval $ac_try) 2>&5
8289  ac_status=$?
8290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291  (exit $ac_status); }; } &&
8292         { ac_try='test -s conftest.$ac_objext'
8293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294  (eval $ac_try) 2>&5
8295  ac_status=$?
8296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297  (exit $ac_status); }; }; then
8298  ac_cv_prog_cxx_g=yes
8299else
8300  echo "$as_me: failed program was:" >&5
8301sed 's/^/| /' conftest.$ac_ext >&5
8302
8303ac_cv_prog_cxx_g=no
8304fi
8305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306fi
8307echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8308echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8309if test "$ac_test_CXXFLAGS" = set; then
8310  CXXFLAGS=$ac_save_CXXFLAGS
8311elif test $ac_cv_prog_cxx_g = yes; then
8312  if test "$GXX" = yes; then
8313    CXXFLAGS="-g -O2"
8314  else
8315    CXXFLAGS="-g"
8316  fi
8317else
8318  if test "$GXX" = yes; then
8319    CXXFLAGS="-O2"
8320  else
8321    CXXFLAGS=
8322  fi
8323fi
8324for ac_declaration in \
8325   '' \
8326   'extern "C" void std::exit (int) throw (); using std::exit;' \
8327   'extern "C" void std::exit (int); using std::exit;' \
8328   'extern "C" void exit (int) throw ();' \
8329   'extern "C" void exit (int);' \
8330   'void exit (int);'
8331do
8332  cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h.  */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h.  */
8338$ac_declaration
8339#include <stdlib.h>
8340#ifdef F77_DUMMY_MAIN
8341
8342#  ifdef __cplusplus
8343     extern "C"
8344#  endif
8345   int F77_DUMMY_MAIN() { return 1; }
8346
8347#endif
8348int
8349main ()
8350{
8351exit (42);
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356rm -f conftest.$ac_objext
8357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358  (eval $ac_compile) 2>conftest.er1
8359  ac_status=$?
8360  grep -v '^ *+' conftest.er1 >conftest.err
8361  rm -f conftest.er1
8362  cat conftest.err >&5
8363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364  (exit $ac_status); } &&
8365         { ac_try='test -z "$ac_cxx_werror_flag"
8366                         || test ! -s conftest.err'
8367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368  (eval $ac_try) 2>&5
8369  ac_status=$?
8370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); }; } &&
8372         { ac_try='test -s conftest.$ac_objext'
8373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374  (eval $ac_try) 2>&5
8375  ac_status=$?
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); }; }; then
8378  :
8379else
8380  echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383continue
8384fi
8385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8386  cat >conftest.$ac_ext <<_ACEOF
8387/* confdefs.h.  */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h.  */
8392$ac_declaration
8393#ifdef F77_DUMMY_MAIN
8394
8395#  ifdef __cplusplus
8396     extern "C"
8397#  endif
8398   int F77_DUMMY_MAIN() { return 1; }
8399
8400#endif
8401int
8402main ()
8403{
8404exit (42);
8405  ;
8406  return 0;
8407}
8408_ACEOF
8409rm -f conftest.$ac_objext
8410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8411  (eval $ac_compile) 2>conftest.er1
8412  ac_status=$?
8413  grep -v '^ *+' conftest.er1 >conftest.err
8414  rm -f conftest.er1
8415  cat conftest.err >&5
8416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417  (exit $ac_status); } &&
8418         { ac_try='test -z "$ac_cxx_werror_flag"
8419                         || test ! -s conftest.err'
8420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421  (eval $ac_try) 2>&5
8422  ac_status=$?
8423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424  (exit $ac_status); }; } &&
8425         { ac_try='test -s conftest.$ac_objext'
8426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427  (eval $ac_try) 2>&5
8428  ac_status=$?
8429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430  (exit $ac_status); }; }; then
8431  break
8432else
8433  echo "$as_me: failed program was:" >&5
8434sed 's/^/| /' conftest.$ac_ext >&5
8435
8436fi
8437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8438done
8439rm -f conftest*
8440if test -n "$ac_declaration"; then
8441  echo '#ifdef __cplusplus' >>confdefs.h
8442  echo $ac_declaration      >>confdefs.h
8443  echo '#endif'             >>confdefs.h
8444fi
8445
8446ac_ext=cc
8447ac_cpp='$CXXCPP $CPPFLAGS'
8448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8451
8452depcc="$CXX"  am_compiler_list=
8453
8454echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8455echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8456if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8457  echo $ECHO_N "(cached) $ECHO_C" >&6
8458else
8459  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8460  # We make a subdir and do the tests there.  Otherwise we can end up
8461  # making bogus files that we don't know about and never remove.  For
8462  # instance it was reported that on HP-UX the gcc test will end up
8463  # making a dummy file named `D' -- because `-MD' means `put the output
8464  # in D'.
8465  mkdir conftest.dir
8466  # Copy depcomp to subdir because otherwise we won't find it if we're
8467  # using a relative directory.
8468  cp "$am_depcomp" conftest.dir
8469  cd conftest.dir
8470  # We will build objects and dependencies in a subdirectory because
8471  # it helps to detect inapplicable dependency modes.  For instance
8472  # both Tru64's cc and ICC support -MD to output dependencies as a
8473  # side effect of compilation, but ICC will put the dependencies in
8474  # the current directory while Tru64 will put them in the object
8475  # directory.
8476  mkdir sub
8477
8478  am_cv_CXX_dependencies_compiler_type=none
8479  if test "$am_compiler_list" = ""; then
8480     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8481  fi
8482  for depmode in $am_compiler_list; do
8483    # Setup a source with many dependencies, because some compilers
8484    # like to wrap large dependency lists on column 80 (with \), and
8485    # we should not choose a depcomp mode which is confused by this.
8486    #
8487    # We need to recreate these files for each test, as the compiler may
8488    # overwrite some of them when testing with obscure command lines.
8489    # This happens at least with the AIX C compiler.
8490    : > sub/conftest.c
8491    for i in 1 2 3 4 5 6; do
8492      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8493      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8494      # Solaris 8's {/usr,}/bin/sh.
8495      touch sub/conftst$i.h
8496    done
8497    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8498
8499    case $depmode in
8500    nosideeffect)
8501      # after this tag, mechanisms are not by side-effect, so they'll
8502      # only be used when explicitly requested
8503      if test "x$enable_dependency_tracking" = xyes; then
8504        continue
8505      else
8506        break
8507      fi
8508      ;;
8509    none) break ;;
8510    esac
8511    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8512    # mode.  It turns out that the SunPro C++ compiler does not properly
8513    # handle `-M -o', and we need to detect this.
8514    if depmode=$depmode \
8515       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8516       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8517       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8518         >/dev/null 2>conftest.err &&
8519       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8520       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8521       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8522      # icc doesn't choke on unknown options, it will just issue warnings
8523      # or remarks (even with -Werror).  So we grep stderr for any message
8524      # that says an option was ignored or not supported.
8525      # When given -MP, icc 7.0 and 7.1 complain thusly:
8526      #   icc: Command line warning: ignoring option '-M'; no argument required
8527      # The diagnosis changed in icc 8.0:
8528      #   icc: Command line remark: option '-MP' not supported
8529      if (grep 'ignoring option' conftest.err ||
8530          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8531        am_cv_CXX_dependencies_compiler_type=$depmode
8532        break
8533      fi
8534    fi
8535  done
8536
8537  cd ..
8538  rm -rf conftest.dir
8539else
8540  am_cv_CXX_dependencies_compiler_type=none
8541fi
8542
8543fi
8544echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8545echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8546CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8547
8548
8549
8550if
8551  test "x$enable_dependency_tracking" != xno \
8552  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8553  am__fastdepCXX_TRUE=
8554  am__fastdepCXX_FALSE='#'
8555else
8556  am__fastdepCXX_TRUE='#'
8557  am__fastdepCXX_FALSE=
8558fi
8559
8560
8561depcc="$CXX"  am_compiler_list=
8562
8563echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8564echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8565if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8566  echo $ECHO_N "(cached) $ECHO_C" >&6
8567else
8568  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8569  # We make a subdir and do the tests there.  Otherwise we can end up
8570  # making bogus files that we don't know about and never remove.  For
8571  # instance it was reported that on HP-UX the gcc test will end up
8572  # making a dummy file named `D' -- because `-MD' means `put the output
8573  # in D'.
8574  mkdir conftest.dir
8575  # Copy depcomp to subdir because otherwise we won't find it if we're
8576  # using a relative directory.
8577  cp "$am_depcomp" conftest.dir
8578  cd conftest.dir
8579  # We will build objects and dependencies in a subdirectory because
8580  # it helps to detect inapplicable dependency modes.  For instance
8581  # both Tru64's cc and ICC support -MD to output dependencies as a
8582  # side effect of compilation, but ICC will put the dependencies in
8583  # the current directory while Tru64 will put them in the object
8584  # directory.
8585  mkdir sub
8586
8587  am_cv_CXX_dependencies_compiler_type=none
8588  if test "$am_compiler_list" = ""; then
8589     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8590  fi
8591  for depmode in $am_compiler_list; do
8592    # Setup a source with many dependencies, because some compilers
8593    # like to wrap large dependency lists on column 80 (with \), and
8594    # we should not choose a depcomp mode which is confused by this.
8595    #
8596    # We need to recreate these files for each test, as the compiler may
8597    # overwrite some of them when testing with obscure command lines.
8598    # This happens at least with the AIX C compiler.
8599    : > sub/conftest.c
8600    for i in 1 2 3 4 5 6; do
8601      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8602      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8603      # Solaris 8's {/usr,}/bin/sh.
8604      touch sub/conftst$i.h
8605    done
8606    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8607
8608    case $depmode in
8609    nosideeffect)
8610      # after this tag, mechanisms are not by side-effect, so they'll
8611      # only be used when explicitly requested
8612      if test "x$enable_dependency_tracking" = xyes; then
8613        continue
8614      else
8615        break
8616      fi
8617      ;;
8618    none) break ;;
8619    esac
8620    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8621    # mode.  It turns out that the SunPro C++ compiler does not properly
8622    # handle `-M -o', and we need to detect this.
8623    if depmode=$depmode \
8624       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8625       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8626       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8627         >/dev/null 2>conftest.err &&
8628       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8629       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8630       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8631      # icc doesn't choke on unknown options, it will just issue warnings
8632      # or remarks (even with -Werror).  So we grep stderr for any message
8633      # that says an option was ignored or not supported.
8634      # When given -MP, icc 7.0 and 7.1 complain thusly:
8635      #   icc: Command line warning: ignoring option '-M'; no argument required
8636      # The diagnosis changed in icc 8.0:
8637      #   icc: Command line remark: option '-MP' not supported
8638      if (grep 'ignoring option' conftest.err ||
8639          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8640        am_cv_CXX_dependencies_compiler_type=$depmode
8641        break
8642      fi
8643    fi
8644  done
8645
8646  cd ..
8647  rm -rf conftest.dir
8648else
8649  am_cv_CXX_dependencies_compiler_type=none
8650fi
8651
8652fi
8653echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8654echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8655CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8656
8657
8658
8659if
8660  test "x$enable_dependency_tracking" != xno \
8661  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8662  am__fastdepCXX_TRUE=
8663  am__fastdepCXX_FALSE='#'
8664else
8665  am__fastdepCXX_TRUE='#'
8666  am__fastdepCXX_FALSE=
8667fi
8668
8669
8670
8671
8672if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8673    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8674    (test "X$CXX" != "Xg++"))) ; then
8675  ac_ext=cc
8676ac_cpp='$CXXCPP $CPPFLAGS'
8677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8680echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8681echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8682if test -z "$CXXCPP"; then
8683  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8684  echo $ECHO_N "(cached) $ECHO_C" >&6
8685else
8686      # Double quotes because CXXCPP needs to be expanded
8687    for CXXCPP in "$CXX -E" "/lib/cpp"
8688    do
8689      ac_preproc_ok=false
8690for ac_cxx_preproc_warn_flag in '' yes
8691do
8692  # Use a header file that comes with gcc, so configuring glibc
8693  # with a fresh cross-compiler works.
8694  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8695  # <limits.h> exists even on freestanding compilers.
8696  # On the NeXT, cc -E runs the code through the compiler's parser,
8697  # not just through cpp. "Syntax error" is here to catch this case.
8698  cat >conftest.$ac_ext <<_ACEOF
8699/* confdefs.h.  */
8700_ACEOF
8701cat confdefs.h >>conftest.$ac_ext
8702cat >>conftest.$ac_ext <<_ACEOF
8703/* end confdefs.h.  */
8704#ifdef __STDC__
8705# include <limits.h>
8706#else
8707# include <assert.h>
8708#endif
8709                     Syntax error
8710_ACEOF
8711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8712  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8713  ac_status=$?
8714  grep -v '^ *+' conftest.er1 >conftest.err
8715  rm -f conftest.er1
8716  cat conftest.err >&5
8717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718  (exit $ac_status); } >/dev/null; then
8719  if test -s conftest.err; then
8720    ac_cpp_err=$ac_cxx_preproc_warn_flag
8721    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8722  else
8723    ac_cpp_err=
8724  fi
8725else
8726  ac_cpp_err=yes
8727fi
8728if test -z "$ac_cpp_err"; then
8729  :
8730else
8731  echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734  # Broken: fails on valid input.
8735continue
8736fi
8737rm -f conftest.err conftest.$ac_ext
8738
8739  # OK, works on sane cases.  Now check whether non-existent headers
8740  # can be detected and how.
8741  cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h.  */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h.  */
8747#include <ac_nonexistent.h>
8748_ACEOF
8749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8750  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8751  ac_status=$?
8752  grep -v '^ *+' conftest.er1 >conftest.err
8753  rm -f conftest.er1
8754  cat conftest.err >&5
8755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756  (exit $ac_status); } >/dev/null; then
8757  if test -s conftest.err; then
8758    ac_cpp_err=$ac_cxx_preproc_warn_flag
8759    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8760  else
8761    ac_cpp_err=
8762  fi
8763else
8764  ac_cpp_err=yes
8765fi
8766if test -z "$ac_cpp_err"; then
8767  # Broken: success on invalid input.
8768continue
8769else
8770  echo "$as_me: failed program was:" >&5
8771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773  # Passes both tests.
8774ac_preproc_ok=:
8775break
8776fi
8777rm -f conftest.err conftest.$ac_ext
8778
8779done
8780# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8781rm -f conftest.err conftest.$ac_ext
8782if $ac_preproc_ok; then
8783  break
8784fi
8785
8786    done
8787    ac_cv_prog_CXXCPP=$CXXCPP
8788
8789fi
8790  CXXCPP=$ac_cv_prog_CXXCPP
8791else
8792  ac_cv_prog_CXXCPP=$CXXCPP
8793fi
8794echo "$as_me:$LINENO: result: $CXXCPP" >&5
8795echo "${ECHO_T}$CXXCPP" >&6
8796ac_preproc_ok=false
8797for ac_cxx_preproc_warn_flag in '' yes
8798do
8799  # Use a header file that comes with gcc, so configuring glibc
8800  # with a fresh cross-compiler works.
8801  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8802  # <limits.h> exists even on freestanding compilers.
8803  # On the NeXT, cc -E runs the code through the compiler's parser,
8804  # not just through cpp. "Syntax error" is here to catch this case.
8805  cat >conftest.$ac_ext <<_ACEOF
8806/* confdefs.h.  */
8807_ACEOF
8808cat confdefs.h >>conftest.$ac_ext
8809cat >>conftest.$ac_ext <<_ACEOF
8810/* end confdefs.h.  */
8811#ifdef __STDC__
8812# include <limits.h>
8813#else
8814# include <assert.h>
8815#endif
8816                     Syntax error
8817_ACEOF
8818if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8819  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8820  ac_status=$?
8821  grep -v '^ *+' conftest.er1 >conftest.err
8822  rm -f conftest.er1
8823  cat conftest.err >&5
8824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825  (exit $ac_status); } >/dev/null; then
8826  if test -s conftest.err; then
8827    ac_cpp_err=$ac_cxx_preproc_warn_flag
8828    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8829  else
8830    ac_cpp_err=
8831  fi
8832else
8833  ac_cpp_err=yes
8834fi
8835if test -z "$ac_cpp_err"; then
8836  :
8837else
8838  echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841  # Broken: fails on valid input.
8842continue
8843fi
8844rm -f conftest.err conftest.$ac_ext
8845
8846  # OK, works on sane cases.  Now check whether non-existent headers
8847  # can be detected and how.
8848  cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h.  */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h.  */
8854#include <ac_nonexistent.h>
8855_ACEOF
8856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8857  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8858  ac_status=$?
8859  grep -v '^ *+' conftest.er1 >conftest.err
8860  rm -f conftest.er1
8861  cat conftest.err >&5
8862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863  (exit $ac_status); } >/dev/null; then
8864  if test -s conftest.err; then
8865    ac_cpp_err=$ac_cxx_preproc_warn_flag
8866    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8867  else
8868    ac_cpp_err=
8869  fi
8870else
8871  ac_cpp_err=yes
8872fi
8873if test -z "$ac_cpp_err"; then
8874  # Broken: success on invalid input.
8875continue
8876else
8877  echo "$as_me: failed program was:" >&5
8878sed 's/^/| /' conftest.$ac_ext >&5
8879
8880  # Passes both tests.
8881ac_preproc_ok=:
8882break
8883fi
8884rm -f conftest.err conftest.$ac_ext
8885
8886done
8887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8888rm -f conftest.err conftest.$ac_ext
8889if $ac_preproc_ok; then
8890  :
8891else
8892  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8893See \`config.log' for more details." >&5
8894echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8895See \`config.log' for more details." >&2;}
8896   { (exit 1); exit 1; }; }
8897fi
8898
8899ac_ext=cc
8900ac_cpp='$CXXCPP $CPPFLAGS'
8901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8904
8905fi
8906
8907
8908
8909# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8910
8911# find the maximum length of command line arguments
8912echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8913echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8914if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8915  echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917    i=0
8918  teststring="ABCD"
8919
8920  case $build_os in
8921  msdosdjgpp*)
8922    # On DJGPP, this test can blow up pretty badly due to problems in libc
8923    # (any single argument exceeding 2000 bytes causes a buffer overrun
8924    # during glob expansion).  Even if it were fixed, the result of this
8925    # check would be larger than it should be.
8926    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8927    ;;
8928
8929  gnu*)
8930    # Under GNU Hurd, this test is not required because there is
8931    # no limit to the length of command line arguments.
8932    # Libtool will interpret -1 as no limit whatsoever
8933    lt_cv_sys_max_cmd_len=-1;
8934    ;;
8935
8936  cygwin* | mingw*)
8937    # On Win9x/ME, this test blows up -- it succeeds, but takes
8938    # about 5 minutes as the teststring grows exponentially.
8939    # Worse, since 9x/ME are not pre-emptively multitasking,
8940    # you end up with a "frozen" computer, even though with patience
8941    # the test eventually succeeds (with a max line length of 256k).
8942    # Instead, let's just punt: use the minimum linelength reported by
8943    # all of the supported platforms: 8192 (on NT/2K/XP).
8944    lt_cv_sys_max_cmd_len=8192;
8945    ;;
8946
8947  amigaos*)
8948    # On AmigaOS with pdksh, this test takes hours, literally.
8949    # So we just punt and use a minimum line length of 8192.
8950    lt_cv_sys_max_cmd_len=8192;
8951    ;;
8952
8953  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8954    # This has been around since 386BSD, at least.  Likely further.
8955    if test -x /sbin/sysctl; then
8956      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8957    elif test -x /usr/sbin/sysctl; then
8958      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8959    else
8960      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8961    fi
8962    # And add a safety zone
8963    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8964    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8965    ;;
8966
8967  interix*)
8968    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8969    lt_cv_sys_max_cmd_len=196608
8970    ;;
8971
8972  osf*)
8973    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8974    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8975    # nice to cause kernel panics so lets avoid the loop below.
8976    # First set a reasonable default.
8977    lt_cv_sys_max_cmd_len=16384
8978    #
8979    if test -x /sbin/sysconfig; then
8980      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8981        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8982      esac
8983    fi
8984    ;;
8985  sco3.2v5*)
8986    lt_cv_sys_max_cmd_len=102400
8987    ;;
8988  sysv5* | sco5v6* | sysv4.2uw2*)
8989    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8990    if test -n "$kargmax"; then
8991      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8992    else
8993      lt_cv_sys_max_cmd_len=32768
8994    fi
8995    ;;
8996  *)
8997    # If test is not a shell built-in, we'll probably end up computing a
8998    # maximum length that is only half of the actual maximum length, but
8999    # we can't tell.
9000    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9001    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9002               = "XX$teststring") >/dev/null 2>&1 &&
9003            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9004            lt_cv_sys_max_cmd_len=$new_result &&
9005            test $i != 17 # 1/2 MB should be enough
9006    do
9007      i=`expr $i + 1`
9008      teststring=$teststring$teststring
9009    done
9010    teststring=
9011    # Add a significant safety factor because C++ compilers can tack on massive
9012    # amounts of additional arguments before passing them to the linker.
9013    # It appears as though 1/2 is a usable value.
9014    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9015    ;;
9016  esac
9017
9018fi
9019
9020if test -n $lt_cv_sys_max_cmd_len ; then
9021  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9022echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9023else
9024  echo "$as_me:$LINENO: result: none" >&5
9025echo "${ECHO_T}none" >&6
9026fi
9027
9028
9029
9030
9031# Check for command to grab the raw symbol name followed by C symbol from nm.
9032echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9033echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9034if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9035  echo $ECHO_N "(cached) $ECHO_C" >&6
9036else
9037
9038# These are sane defaults that work on at least a few old systems.
9039# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9040
9041# Character class describing NM global symbol codes.
9042symcode='[BCDEGRST]'
9043
9044# Regexp to match symbols that can be accessed directly from C.
9045sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9046
9047# Transform an extracted symbol line into a proper C declaration
9048lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9049
9050# Transform an extracted symbol line into symbol name and symbol address
9051lt_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'"
9052
9053# Define system-specific variables.
9054case $host_os in
9055aix*)
9056  symcode='[BCDT]'
9057  ;;
9058cygwin* | mingw* | pw32*)
9059  symcode='[ABCDGISTW]'
9060  ;;
9061hpux*) # Its linker distinguishes data from code symbols
9062  if test "$host_cpu" = ia64; then
9063    symcode='[ABCDEGRST]'
9064  fi
9065  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9066  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'"
9067  ;;
9068linux*)
9069  if test "$host_cpu" = ia64; then
9070    symcode='[ABCDGIRSTW]'
9071    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9072    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'"
9073  fi
9074  ;;
9075irix* | nonstopux*)
9076  symcode='[BCDEGRST]'
9077  ;;
9078osf*)
9079  symcode='[BCDEGQRST]'
9080  ;;
9081solaris*)
9082  symcode='[BDRT]'
9083  ;;
9084sco3.2v5*)
9085  symcode='[DT]'
9086  ;;
9087sysv4.2uw2*)
9088  symcode='[DT]'
9089  ;;
9090sysv5* | sco5v6* | unixware* | OpenUNIX*)
9091  symcode='[ABDT]'
9092  ;;
9093sysv4)
9094  symcode='[DFNSTU]'
9095  ;;
9096esac
9097
9098# Handle CRLF in mingw tool chain
9099opt_cr=
9100case $build_os in
9101mingw*)
9102  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9103  ;;
9104esac
9105
9106# If we're using GNU nm, then use its standard symbol codes.
9107case `$NM -V 2>&1` in
9108*GNU* | *'with BFD'*)
9109  symcode='[ABCDGIRSTW]' ;;
9110esac
9111
9112# Try without a prefix undercore, then with it.
9113for ac_symprfx in "" "_"; do
9114
9115  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9116  symxfrm="\\1 $ac_symprfx\\2 \\2"
9117
9118  # Write the raw and C identifiers.
9119  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9120
9121  # Check to see that the pipe works correctly.
9122  pipe_works=no
9123
9124  rm -f conftest*
9125  cat > conftest.$ac_ext <<EOF
9126#ifdef __cplusplus
9127extern "C" {
9128#endif
9129char nm_test_var;
9130void nm_test_func(){}
9131#ifdef __cplusplus
9132}
9133#endif
9134int main(){nm_test_var='a';nm_test_func();return(0);}
9135EOF
9136
9137  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138  (eval $ac_compile) 2>&5
9139  ac_status=$?
9140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141  (exit $ac_status); }; then
9142    # Now try to grab the symbols.
9143    nlist=conftest.nm
9144    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9145  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9146  ac_status=$?
9147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148  (exit $ac_status); } && test -s "$nlist"; then
9149      # Try sorting and uniquifying the output.
9150      if sort "$nlist" | uniq > "$nlist"T; then
9151        mv -f "$nlist"T "$nlist"
9152      else
9153        rm -f "$nlist"T
9154      fi
9155
9156      # Make sure that we snagged all the symbols we need.
9157      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9158        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9159          cat <<EOF > conftest.$ac_ext
9160#ifdef __cplusplus
9161extern "C" {
9162#endif
9163
9164EOF
9165          # Now generate the symbol file.
9166          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9167
9168          cat <<EOF >> conftest.$ac_ext
9169#if defined (__STDC__) && __STDC__
9170# define lt_ptr_t void *
9171#else
9172# define lt_ptr_t char *
9173# define const
9174#endif
9175
9176/* The mapping between symbol names and symbols. */
9177const struct {
9178  const char *name;
9179  lt_ptr_t address;
9180}
9181lt_preloaded_symbols[] =
9182{
9183EOF
9184          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9185          cat <<\EOF >> conftest.$ac_ext
9186  {0, (lt_ptr_t) 0}
9187};
9188
9189#ifdef __cplusplus
9190}
9191#endif
9192EOF
9193          # Now try linking the two files.
9194          mv conftest.$ac_objext conftstm.$ac_objext
9195          lt_save_LIBS="$LIBS"
9196          lt_save_CFLAGS="$CFLAGS"
9197          LIBS="conftstm.$ac_objext"
9198          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9199          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200  (eval $ac_link) 2>&5
9201  ac_status=$?
9202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9204            pipe_works=yes
9205          fi
9206          LIBS="$lt_save_LIBS"
9207          CFLAGS="$lt_save_CFLAGS"
9208        else
9209          echo "cannot find nm_test_func in $nlist" >&5
9210        fi
9211      else
9212        echo "cannot find nm_test_var in $nlist" >&5
9213      fi
9214    else
9215      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9216    fi
9217  else
9218    echo "$progname: failed program was:" >&5
9219    cat conftest.$ac_ext >&5
9220  fi
9221  rm -f conftest* conftst*
9222
9223  # Do not use the global_symbol_pipe unless it works.
9224  if test "$pipe_works" = yes; then
9225    break
9226  else
9227    lt_cv_sys_global_symbol_pipe=
9228  fi
9229done
9230
9231fi
9232
9233if test -z "$lt_cv_sys_global_symbol_pipe"; then
9234  lt_cv_sys_global_symbol_to_cdecl=
9235fi
9236if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9237  echo "$as_me:$LINENO: result: failed" >&5
9238echo "${ECHO_T}failed" >&6
9239else
9240  echo "$as_me:$LINENO: result: ok" >&5
9241echo "${ECHO_T}ok" >&6
9242fi
9243
9244echo "$as_me:$LINENO: checking for objdir" >&5
9245echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9246if test "${lt_cv_objdir+set}" = set; then
9247  echo $ECHO_N "(cached) $ECHO_C" >&6
9248else
9249  rm -f .libs 2>/dev/null
9250mkdir .libs 2>/dev/null
9251if test -d .libs; then
9252  lt_cv_objdir=.libs
9253else
9254  # MS-DOS does not allow filenames that begin with a dot.
9255  lt_cv_objdir=_libs
9256fi
9257rmdir .libs 2>/dev/null
9258fi
9259echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9260echo "${ECHO_T}$lt_cv_objdir" >&6
9261objdir=$lt_cv_objdir
9262
9263
9264
9265
9266
9267case $host_os in
9268aix3*)
9269  # AIX sometimes has problems with the GCC collect2 program.  For some
9270  # reason, if we set the COLLECT_NAMES environment variable, the problems
9271  # vanish in a puff of smoke.
9272  if test "X${COLLECT_NAMES+set}" != Xset; then
9273    COLLECT_NAMES=
9274    export COLLECT_NAMES
9275  fi
9276  ;;
9277esac
9278
9279# Sed substitution that helps us do robust quoting.  It backslashifies
9280# metacharacters that are still active within double-quoted strings.
9281Xsed='sed -e 1s/^X//'
9282sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9283
9284# Same as above, but do not quote variable references.
9285double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9286
9287# Sed substitution to delay expansion of an escaped shell variable in a
9288# double_quote_subst'ed string.
9289delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9290
9291# Sed substitution to avoid accidental globbing in evaled expressions
9292no_glob_subst='s/\*/\\\*/g'
9293
9294# Constants:
9295rm="rm -f"
9296
9297# Global variables:
9298default_ofile=libtool
9299can_build_shared=yes
9300
9301# All known linkers require a `.a' archive for static linking (except MSVC,
9302# which needs '.lib').
9303libext=a
9304ltmain="$ac_aux_dir/ltmain.sh"
9305ofile="$default_ofile"
9306with_gnu_ld="$lt_cv_prog_gnu_ld"
9307
9308if test -n "$ac_tool_prefix"; then
9309  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9310set dummy ${ac_tool_prefix}ar; ac_word=$2
9311echo "$as_me:$LINENO: checking for $ac_word" >&5
9312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9313if test "${ac_cv_prog_AR+set}" = set; then
9314  echo $ECHO_N "(cached) $ECHO_C" >&6
9315else
9316  if test -n "$AR"; then
9317  ac_cv_prog_AR="$AR" # Let the user override the test.
9318else
9319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322  IFS=$as_save_IFS
9323  test -z "$as_dir" && as_dir=.
9324  for ac_exec_ext in '' $ac_executable_extensions; do
9325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9326    ac_cv_prog_AR="${ac_tool_prefix}ar"
9327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9328    break 2
9329  fi
9330done
9331done
9332
9333fi
9334fi
9335AR=$ac_cv_prog_AR
9336if test -n "$AR"; then
9337  echo "$as_me:$LINENO: result: $AR" >&5
9338echo "${ECHO_T}$AR" >&6
9339else
9340  echo "$as_me:$LINENO: result: no" >&5
9341echo "${ECHO_T}no" >&6
9342fi
9343
9344fi
9345if test -z "$ac_cv_prog_AR"; then
9346  ac_ct_AR=$AR
9347  # Extract the first word of "ar", so it can be a program name with args.
9348set dummy ar; ac_word=$2
9349echo "$as_me:$LINENO: checking for $ac_word" >&5
9350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9351if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9352  echo $ECHO_N "(cached) $ECHO_C" >&6
9353else
9354  if test -n "$ac_ct_AR"; then
9355  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9356else
9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360  IFS=$as_save_IFS
9361  test -z "$as_dir" && as_dir=.
9362  for ac_exec_ext in '' $ac_executable_extensions; do
9363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9364    ac_cv_prog_ac_ct_AR="ar"
9365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9366    break 2
9367  fi
9368done
9369done
9370
9371  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9372fi
9373fi
9374ac_ct_AR=$ac_cv_prog_ac_ct_AR
9375if test -n "$ac_ct_AR"; then
9376  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9377echo "${ECHO_T}$ac_ct_AR" >&6
9378else
9379  echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
9381fi
9382
9383  AR=$ac_ct_AR
9384else
9385  AR="$ac_cv_prog_AR"
9386fi
9387
9388if test -n "$ac_tool_prefix"; then
9389  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9390set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9391echo "$as_me:$LINENO: checking for $ac_word" >&5
9392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9393if test "${ac_cv_prog_RANLIB+set}" = set; then
9394  echo $ECHO_N "(cached) $ECHO_C" >&6
9395else
9396  if test -n "$RANLIB"; then
9397  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402  IFS=$as_save_IFS
9403  test -z "$as_dir" && as_dir=.
9404  for ac_exec_ext in '' $ac_executable_extensions; do
9405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9406    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9408    break 2
9409  fi
9410done
9411done
9412
9413fi
9414fi
9415RANLIB=$ac_cv_prog_RANLIB
9416if test -n "$RANLIB"; then
9417  echo "$as_me:$LINENO: result: $RANLIB" >&5
9418echo "${ECHO_T}$RANLIB" >&6
9419else
9420  echo "$as_me:$LINENO: result: no" >&5
9421echo "${ECHO_T}no" >&6
9422fi
9423
9424fi
9425if test -z "$ac_cv_prog_RANLIB"; then
9426  ac_ct_RANLIB=$RANLIB
9427  # Extract the first word of "ranlib", so it can be a program name with args.
9428set dummy ranlib; ac_word=$2
9429echo "$as_me:$LINENO: checking for $ac_word" >&5
9430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9431if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9432  echo $ECHO_N "(cached) $ECHO_C" >&6
9433else
9434  if test -n "$ac_ct_RANLIB"; then
9435  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9436else
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440  IFS=$as_save_IFS
9441  test -z "$as_dir" && as_dir=.
9442  for ac_exec_ext in '' $ac_executable_extensions; do
9443  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9444    ac_cv_prog_ac_ct_RANLIB="ranlib"
9445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446    break 2
9447  fi
9448done
9449done
9450
9451  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9452fi
9453fi
9454ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9455if test -n "$ac_ct_RANLIB"; then
9456  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9457echo "${ECHO_T}$ac_ct_RANLIB" >&6
9458else
9459  echo "$as_me:$LINENO: result: no" >&5
9460echo "${ECHO_T}no" >&6
9461fi
9462
9463  RANLIB=$ac_ct_RANLIB
9464else
9465  RANLIB="$ac_cv_prog_RANLIB"
9466fi
9467
9468if test -n "$ac_tool_prefix"; then
9469  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9470set dummy ${ac_tool_prefix}strip; ac_word=$2
9471echo "$as_me:$LINENO: checking for $ac_word" >&5
9472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9473if test "${ac_cv_prog_STRIP+set}" = set; then
9474  echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476  if test -n "$STRIP"; then
9477  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9478else
9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480for as_dir in $PATH
9481do
9482  IFS=$as_save_IFS
9483  test -z "$as_dir" && as_dir=.
9484  for ac_exec_ext in '' $ac_executable_extensions; do
9485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9486    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9488    break 2
9489  fi
9490done
9491done
9492
9493fi
9494fi
9495STRIP=$ac_cv_prog_STRIP
9496if test -n "$STRIP"; then
9497  echo "$as_me:$LINENO: result: $STRIP" >&5
9498echo "${ECHO_T}$STRIP" >&6
9499else
9500  echo "$as_me:$LINENO: result: no" >&5
9501echo "${ECHO_T}no" >&6
9502fi
9503
9504fi
9505if test -z "$ac_cv_prog_STRIP"; then
9506  ac_ct_STRIP=$STRIP
9507  # Extract the first word of "strip", so it can be a program name with args.
9508set dummy strip; ac_word=$2
9509echo "$as_me:$LINENO: checking for $ac_word" >&5
9510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9511if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9512  echo $ECHO_N "(cached) $ECHO_C" >&6
9513else
9514  if test -n "$ac_ct_STRIP"; then
9515  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9516else
9517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518for as_dir in $PATH
9519do
9520  IFS=$as_save_IFS
9521  test -z "$as_dir" && as_dir=.
9522  for ac_exec_ext in '' $ac_executable_extensions; do
9523  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9524    ac_cv_prog_ac_ct_STRIP="strip"
9525    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9526    break 2
9527  fi
9528done
9529done
9530
9531  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9532fi
9533fi
9534ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9535if test -n "$ac_ct_STRIP"; then
9536  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9537echo "${ECHO_T}$ac_ct_STRIP" >&6
9538else
9539  echo "$as_me:$LINENO: result: no" >&5
9540echo "${ECHO_T}no" >&6
9541fi
9542
9543  STRIP=$ac_ct_STRIP
9544else
9545  STRIP="$ac_cv_prog_STRIP"
9546fi
9547
9548
9549old_CC="$CC"
9550old_CFLAGS="$CFLAGS"
9551
9552# Set sane defaults for various variables
9553test -z "$AR" && AR=ar
9554test -z "$AR_FLAGS" && AR_FLAGS=cru
9555test -z "$AS" && AS=as
9556test -z "$CC" && CC=cc
9557test -z "$LTCC" && LTCC=$CC
9558test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9559test -z "$DLLTOOL" && DLLTOOL=dlltool
9560test -z "$LD" && LD=ld
9561test -z "$LN_S" && LN_S="ln -s"
9562test -z "$MAGIC_CMD" && MAGIC_CMD=file
9563test -z "$NM" && NM=nm
9564test -z "$SED" && SED=sed
9565test -z "$OBJDUMP" && OBJDUMP=objdump
9566test -z "$RANLIB" && RANLIB=:
9567test -z "$STRIP" && STRIP=:
9568test -z "$ac_objext" && ac_objext=o
9569
9570# Determine commands to create old-style static archives.
9571old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9572old_postinstall_cmds='chmod 644 $oldlib'
9573old_postuninstall_cmds=
9574
9575if test -n "$RANLIB"; then
9576  case $host_os in
9577  openbsd*)
9578    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9579    ;;
9580  *)
9581    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9582    ;;
9583  esac
9584  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9585fi
9586
9587for cc_temp in $compiler""; do
9588  case $cc_temp in
9589    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9590    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9591    \-*) ;;
9592    *) break;;
9593  esac
9594done
9595cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9596
9597
9598# Only perform the check for file, if the check method requires it
9599case $deplibs_check_method in
9600file_magic*)
9601  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9602    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9603echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9604if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9605  echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607  case $MAGIC_CMD in
9608[\\/*] |  ?:[\\/]*)
9609  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9610  ;;
9611*)
9612  lt_save_MAGIC_CMD="$MAGIC_CMD"
9613  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9614  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9615  for ac_dir in $ac_dummy; do
9616    IFS="$lt_save_ifs"
9617    test -z "$ac_dir" && ac_dir=.
9618    if test -f $ac_dir/${ac_tool_prefix}file; then
9619      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9620      if test -n "$file_magic_test_file"; then
9621        case $deplibs_check_method in
9622        "file_magic "*)
9623          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9624          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9625          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9626            $EGREP "$file_magic_regex" > /dev/null; then
9627            :
9628          else
9629            cat <<EOF 1>&2
9630
9631*** Warning: the command libtool uses to detect shared libraries,
9632*** $file_magic_cmd, produces output that libtool cannot recognize.
9633*** The result is that libtool may fail to recognize shared libraries
9634*** as such.  This will affect the creation of libtool libraries that
9635*** depend on shared libraries, but programs linked with such libtool
9636*** libraries will work regardless of this problem.  Nevertheless, you
9637*** may want to report the problem to your system manager and/or to
9638*** bug-libtool@gnu.org
9639
9640EOF
9641          fi ;;
9642        esac
9643      fi
9644      break
9645    fi
9646  done
9647  IFS="$lt_save_ifs"
9648  MAGIC_CMD="$lt_save_MAGIC_CMD"
9649  ;;
9650esac
9651fi
9652
9653MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9654if test -n "$MAGIC_CMD"; then
9655  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9656echo "${ECHO_T}$MAGIC_CMD" >&6
9657else
9658  echo "$as_me:$LINENO: result: no" >&5
9659echo "${ECHO_T}no" >&6
9660fi
9661
9662if test -z "$lt_cv_path_MAGIC_CMD"; then
9663  if test -n "$ac_tool_prefix"; then
9664    echo "$as_me:$LINENO: checking for file" >&5
9665echo $ECHO_N "checking for file... $ECHO_C" >&6
9666if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9667  echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669  case $MAGIC_CMD in
9670[\\/*] |  ?:[\\/]*)
9671  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9672  ;;
9673*)
9674  lt_save_MAGIC_CMD="$MAGIC_CMD"
9675  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9676  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9677  for ac_dir in $ac_dummy; do
9678    IFS="$lt_save_ifs"
9679    test -z "$ac_dir" && ac_dir=.
9680    if test -f $ac_dir/file; then
9681      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9682      if test -n "$file_magic_test_file"; then
9683        case $deplibs_check_method in
9684        "file_magic "*)
9685          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9686          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9687          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9688            $EGREP "$file_magic_regex" > /dev/null; then
9689            :
9690          else
9691            cat <<EOF 1>&2
9692
9693*** Warning: the command libtool uses to detect shared libraries,
9694*** $file_magic_cmd, produces output that libtool cannot recognize.
9695*** The result is that libtool may fail to recognize shared libraries
9696*** as such.  This will affect the creation of libtool libraries that
9697*** depend on shared libraries, but programs linked with such libtool
9698*** libraries will work regardless of this problem.  Nevertheless, you
9699*** may want to report the problem to your system manager and/or to
9700*** bug-libtool@gnu.org
9701
9702EOF
9703          fi ;;
9704        esac
9705      fi
9706      break
9707    fi
9708  done
9709  IFS="$lt_save_ifs"
9710  MAGIC_CMD="$lt_save_MAGIC_CMD"
9711  ;;
9712esac
9713fi
9714
9715MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9716if test -n "$MAGIC_CMD"; then
9717  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9718echo "${ECHO_T}$MAGIC_CMD" >&6
9719else
9720  echo "$as_me:$LINENO: result: no" >&5
9721echo "${ECHO_T}no" >&6
9722fi
9723
9724  else
9725    MAGIC_CMD=:
9726  fi
9727fi
9728
9729  fi
9730  ;;
9731esac
9732
9733enable_dlopen=no
9734enable_win32_dll=no
9735
9736# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9737if test "${enable_libtool_lock+set}" = set; then
9738  enableval="$enable_libtool_lock"
9739
9740fi;
9741test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9742
9743
9744# Check whether --with-pic or --without-pic was given.
9745if test "${with_pic+set}" = set; then
9746  withval="$with_pic"
9747  pic_mode="$withval"
9748else
9749  pic_mode=default
9750fi;
9751test -z "$pic_mode" && pic_mode=default
9752
9753# Use C for the default configuration in the libtool script
9754tagname=
9755lt_save_CC="$CC"
9756ac_ext=c
9757ac_cpp='$CPP $CPPFLAGS'
9758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9760ac_compiler_gnu=$ac_cv_c_compiler_gnu
9761
9762
9763# Source file extension for C test sources.
9764ac_ext=c
9765
9766# Object file extension for compiled C test sources.
9767objext=o
9768objext=$objext
9769
9770# Code to be used in simple compile tests
9771lt_simple_compile_test_code="int some_variable = 0;\n"
9772
9773# Code to be used in simple link tests
9774lt_simple_link_test_code='int main(){return(0);}\n'
9775
9776
9777# If no C compiler was specified, use CC.
9778LTCC=${LTCC-"$CC"}
9779
9780# If no C compiler flags were specified, use CFLAGS.
9781LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9782
9783# Allow CC to be a program name with arguments.
9784compiler=$CC
9785
9786
9787# save warnings/boilerplate of simple test code
9788ac_outfile=conftest.$ac_objext
9789printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9790eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9791_lt_compiler_boilerplate=`cat conftest.err`
9792$rm conftest*
9793
9794ac_outfile=conftest.$ac_objext
9795printf "$lt_simple_link_test_code" >conftest.$ac_ext
9796eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9797_lt_linker_boilerplate=`cat conftest.err`
9798$rm conftest*
9799
9800
9801## CAVEAT EMPTOR:
9802## There is no encapsulation within the following macros, do not change
9803## the running order or otherwise move them around unless you know exactly
9804## what you are doing...
9805
9806lt_prog_compiler_no_builtin_flag=
9807
9808if test "$GCC" = yes; then
9809  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9810
9811
9812echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9813echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9814if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9815  echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817  lt_cv_prog_compiler_rtti_exceptions=no
9818  ac_outfile=conftest.$ac_objext
9819   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9820   lt_compiler_flag="-fno-rtti -fno-exceptions"
9821   # Insert the option either (1) after the last *FLAGS variable, or
9822   # (2) before a word containing "conftest.", or (3) at the end.
9823   # Note that $ac_compile itself does not contain backslashes and begins
9824   # with a dollar sign (not a hyphen), so the echo should work correctly.
9825   # The option is referenced via a variable to avoid confusing sed.
9826   lt_compile=`echo "$ac_compile" | $SED \
9827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9829   -e 's:$: $lt_compiler_flag:'`
9830   (eval echo "\"\$as_me:9830: $lt_compile\"" >&5)
9831   (eval "$lt_compile" 2>conftest.err)
9832   ac_status=$?
9833   cat conftest.err >&5
9834   echo "$as_me:9834: \$? = $ac_status" >&5
9835   if (exit $ac_status) && test -s "$ac_outfile"; then
9836     # The compiler can only warn and ignore the option if not recognized
9837     # So say no if there are warnings other than the usual output.
9838     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9839     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9840     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9841       lt_cv_prog_compiler_rtti_exceptions=yes
9842     fi
9843   fi
9844   $rm conftest*
9845
9846fi
9847echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9848echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9849
9850if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9851    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9852else
9853    :
9854fi
9855
9856fi
9857
9858lt_prog_compiler_wl=
9859lt_prog_compiler_pic=
9860lt_prog_compiler_static=
9861
9862echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9863echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9864
9865  if test "$GCC" = yes; then
9866    lt_prog_compiler_wl='-Wl,'
9867    lt_prog_compiler_static='-static'
9868
9869    case $host_os in
9870      aix*)
9871      # All AIX code is PIC.
9872      if test "$host_cpu" = ia64; then
9873        # AIX 5 now supports IA64 processor
9874        lt_prog_compiler_static='-Bstatic'
9875      fi
9876      ;;
9877
9878    amigaos*)
9879      # FIXME: we need at least 68020 code to build shared libraries, but
9880      # adding the `-m68020' flag to GCC prevents building anything better,
9881      # like `-m68040'.
9882      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9883      ;;
9884
9885    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9886      # PIC is the default for these OSes.
9887      ;;
9888
9889    mingw* | pw32* | os2*)
9890      # This hack is so that the source file can tell whether it is being
9891      # built for inclusion in a dll (and should export symbols for example).
9892      lt_prog_compiler_pic='-DDLL_EXPORT'
9893      ;;
9894
9895    darwin* | rhapsody*)
9896      # PIC is the default on this platform
9897      # Common symbols not allowed in MH_DYLIB files
9898      lt_prog_compiler_pic='-fno-common'
9899      ;;
9900
9901    interix3*)
9902      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9903      # Instead, we relocate shared libraries at runtime.
9904      ;;
9905
9906    msdosdjgpp*)
9907      # Just because we use GCC doesn't mean we suddenly get shared libraries
9908      # on systems that don't support them.
9909      lt_prog_compiler_can_build_shared=no
9910      enable_shared=no
9911      ;;
9912
9913    sysv4*MP*)
9914      if test -d /usr/nec; then
9915        lt_prog_compiler_pic=-Kconform_pic
9916      fi
9917      ;;
9918
9919    hpux*)
9920      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9921      # not for PA HP-UX.
9922      case $host_cpu in
9923      hppa*64*|ia64*)
9924        # +Z the default
9925        ;;
9926      *)
9927        lt_prog_compiler_pic='-fPIC'
9928        ;;
9929      esac
9930      ;;
9931
9932    *)
9933      lt_prog_compiler_pic='-fPIC'
9934      ;;
9935    esac
9936  else
9937    # PORTME Check for flag to pass linker flags through the system compiler.
9938    case $host_os in
9939    aix*)
9940      lt_prog_compiler_wl='-Wl,'
9941      if test "$host_cpu" = ia64; then
9942        # AIX 5 now supports IA64 processor
9943        lt_prog_compiler_static='-Bstatic'
9944      else
9945        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9946      fi
9947      ;;
9948      darwin*)
9949        # PIC is the default on this platform
9950        # Common symbols not allowed in MH_DYLIB files
9951       case $cc_basename in
9952         xlc*)
9953         lt_prog_compiler_pic='-qnocommon'
9954         lt_prog_compiler_wl='-Wl,'
9955         ;;
9956       esac
9957       ;;
9958
9959    mingw* | pw32* | os2*)
9960      # This hack is so that the source file can tell whether it is being
9961      # built for inclusion in a dll (and should export symbols for example).
9962      lt_prog_compiler_pic='-DDLL_EXPORT'
9963      ;;
9964
9965    hpux9* | hpux10* | hpux11*)
9966      lt_prog_compiler_wl='-Wl,'
9967      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9968      # not for PA HP-UX.
9969      case $host_cpu in
9970      hppa*64*|ia64*)
9971        # +Z the default
9972        ;;
9973      *)
9974        lt_prog_compiler_pic='+Z'
9975        ;;
9976      esac
9977      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9978      lt_prog_compiler_static='${wl}-a ${wl}archive'
9979      ;;
9980
9981    irix5* | irix6* | nonstopux*)
9982      lt_prog_compiler_wl='-Wl,'
9983      # PIC (with -KPIC) is the default.
9984      lt_prog_compiler_static='-non_shared'
9985      ;;
9986
9987    newsos6)
9988      lt_prog_compiler_pic='-KPIC'
9989      lt_prog_compiler_static='-Bstatic'
9990      ;;
9991
9992    linux*)
9993      case $cc_basename in
9994      icc* | ecc*)
9995        lt_prog_compiler_wl='-Wl,'
9996        lt_prog_compiler_pic='-KPIC'
9997        lt_prog_compiler_static='-static'
9998        ;;
9999      pgcc* | pgf77* | pgf90* | pgf95*)
10000        # Portland Group compilers (*not* the Pentium gcc compiler,
10001        # which looks to be a dead project)
10002        lt_prog_compiler_wl='-Wl,'
10003        lt_prog_compiler_pic='-fpic'
10004        lt_prog_compiler_static='-Bstatic'
10005        ;;
10006      ccc*)
10007        lt_prog_compiler_wl='-Wl,'
10008        # All Alpha code is PIC.
10009        lt_prog_compiler_static='-non_shared'
10010        ;;
10011      esac
10012      ;;
10013
10014    osf3* | osf4* | osf5*)
10015      lt_prog_compiler_wl='-Wl,'
10016      # All OSF/1 code is PIC.
10017      lt_prog_compiler_static='-non_shared'
10018      ;;
10019
10020    solaris*)
10021      lt_prog_compiler_pic='-KPIC'
10022      lt_prog_compiler_static='-Bstatic'
10023      case $cc_basename in
10024      f77* | f90* | f95*)
10025        lt_prog_compiler_wl='-Qoption ld ';;
10026      *)
10027        lt_prog_compiler_wl='-Wl,';;
10028      esac
10029      ;;
10030
10031    sunos4*)
10032      lt_prog_compiler_wl='-Qoption ld '
10033      lt_prog_compiler_pic='-PIC'
10034      lt_prog_compiler_static='-Bstatic'
10035      ;;
10036
10037    sysv4 | sysv4.2uw2* | sysv4.3*)
10038      lt_prog_compiler_wl='-Wl,'
10039      lt_prog_compiler_pic='-KPIC'
10040      lt_prog_compiler_static='-Bstatic'
10041      ;;
10042
10043    sysv4*MP*)
10044      if test -d /usr/nec ;then
10045        lt_prog_compiler_pic='-Kconform_pic'
10046        lt_prog_compiler_static='-Bstatic'
10047      fi
10048      ;;
10049
10050    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10051      lt_prog_compiler_wl='-Wl,'
10052      lt_prog_compiler_pic='-KPIC'
10053      lt_prog_compiler_static='-Bstatic'
10054      ;;
10055
10056    unicos*)
10057      lt_prog_compiler_wl='-Wl,'
10058      lt_prog_compiler_can_build_shared=no
10059      ;;
10060
10061    uts4*)
10062      lt_prog_compiler_pic='-pic'
10063      lt_prog_compiler_static='-Bstatic'
10064      ;;
10065
10066    *)
10067      lt_prog_compiler_can_build_shared=no
10068      ;;
10069    esac
10070  fi
10071
10072echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10073echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10074
10075#
10076# Check to make sure the PIC flag actually works.
10077#
10078if test -n "$lt_prog_compiler_pic"; then
10079
10080echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10081echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10082if test "${lt_prog_compiler_pic_works+set}" = set; then
10083  echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085  lt_prog_compiler_pic_works=no
10086  ac_outfile=conftest.$ac_objext
10087   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10088   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10089   # Insert the option either (1) after the last *FLAGS variable, or
10090   # (2) before a word containing "conftest.", or (3) at the end.
10091   # Note that $ac_compile itself does not contain backslashes and begins
10092   # with a dollar sign (not a hyphen), so the echo should work correctly.
10093   # The option is referenced via a variable to avoid confusing sed.
10094   lt_compile=`echo "$ac_compile" | $SED \
10095   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10096   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10097   -e 's:$: $lt_compiler_flag:'`
10098   (eval echo "\"\$as_me:10098: $lt_compile\"" >&5)
10099   (eval "$lt_compile" 2>conftest.err)
10100   ac_status=$?
10101   cat conftest.err >&5
10102   echo "$as_me:10102: \$? = $ac_status" >&5
10103   if (exit $ac_status) && test -s "$ac_outfile"; then
10104     # The compiler can only warn and ignore the option if not recognized
10105     # So say no if there are warnings other than the usual output.
10106     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10107     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10109       lt_prog_compiler_pic_works=yes
10110     fi
10111   fi
10112   $rm conftest*
10113
10114fi
10115echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10116echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10117
10118if test x"$lt_prog_compiler_pic_works" = xyes; then
10119    case $lt_prog_compiler_pic in
10120     "" | " "*) ;;
10121     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10122     esac
10123else
10124    lt_prog_compiler_pic=
10125     lt_prog_compiler_can_build_shared=no
10126fi
10127
10128fi
10129case $host_os in
10130  # For platforms which do not support PIC, -DPIC is meaningless:
10131  *djgpp*)
10132    lt_prog_compiler_pic=
10133    ;;
10134  *)
10135    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10136    ;;
10137esac
10138
10139#
10140# Check to make sure the static flag actually works.
10141#
10142wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10143echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10144echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10145if test "${lt_prog_compiler_static_works+set}" = set; then
10146  echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148  lt_prog_compiler_static_works=no
10149   save_LDFLAGS="$LDFLAGS"
10150   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10151   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10152   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10153     # The linker can only warn and ignore the option if not recognized
10154     # So say no if there are warnings
10155     if test -s conftest.err; then
10156       # Append any errors to the config.log.
10157       cat conftest.err 1>&5
10158       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10159       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10160       if diff conftest.exp conftest.er2 >/dev/null; then
10161         lt_prog_compiler_static_works=yes
10162       fi
10163     else
10164       lt_prog_compiler_static_works=yes
10165     fi
10166   fi
10167   $rm conftest*
10168   LDFLAGS="$save_LDFLAGS"
10169
10170fi
10171echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10172echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10173
10174if test x"$lt_prog_compiler_static_works" = xyes; then
10175    :
10176else
10177    lt_prog_compiler_static=
10178fi
10179
10180
10181echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10182echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10183if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10184  echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186  lt_cv_prog_compiler_c_o=no
10187   $rm -r conftest 2>/dev/null
10188   mkdir conftest
10189   cd conftest
10190   mkdir out
10191   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10192
10193   lt_compiler_flag="-o out/conftest2.$ac_objext"
10194   # Insert the option either (1) after the last *FLAGS variable, or
10195   # (2) before a word containing "conftest.", or (3) at the end.
10196   # Note that $ac_compile itself does not contain backslashes and begins
10197   # with a dollar sign (not a hyphen), so the echo should work correctly.
10198   lt_compile=`echo "$ac_compile" | $SED \
10199   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10200   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10201   -e 's:$: $lt_compiler_flag:'`
10202   (eval echo "\"\$as_me:10202: $lt_compile\"" >&5)
10203   (eval "$lt_compile" 2>out/conftest.err)
10204   ac_status=$?
10205   cat out/conftest.err >&5
10206   echo "$as_me:10206: \$? = $ac_status" >&5
10207   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10208   then
10209     # The compiler can only warn and ignore the option if not recognized
10210     # So say no if there are warnings
10211     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10212     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10213     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10214       lt_cv_prog_compiler_c_o=yes
10215     fi
10216   fi
10217   chmod u+w . 2>&5
10218   $rm conftest*
10219   # SGI C++ compiler will create directory out/ii_files/ for
10220   # template instantiation
10221   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10222   $rm out/* && rmdir out
10223   cd ..
10224   rmdir conftest
10225   $rm conftest*
10226
10227fi
10228echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10229echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10230
10231
10232hard_links="nottested"
10233if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10234  # do not overwrite the value of need_locks provided by the user
10235  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10236echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10237  hard_links=yes
10238  $rm conftest*
10239  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10240  touch conftest.a
10241  ln conftest.a conftest.b 2>&5 || hard_links=no
10242  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10243  echo "$as_me:$LINENO: result: $hard_links" >&5
10244echo "${ECHO_T}$hard_links" >&6
10245  if test "$hard_links" = no; then
10246    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10247echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10248    need_locks=warn
10249  fi
10250else
10251  need_locks=no
10252fi
10253
10254echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10255echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10256
10257  runpath_var=
10258  allow_undefined_flag=
10259  enable_shared_with_static_runtimes=no
10260  archive_cmds=
10261  archive_expsym_cmds=
10262  old_archive_From_new_cmds=
10263  old_archive_from_expsyms_cmds=
10264  export_dynamic_flag_spec=
10265  whole_archive_flag_spec=
10266  thread_safe_flag_spec=
10267  hardcode_libdir_flag_spec=
10268  hardcode_libdir_flag_spec_ld=
10269  hardcode_libdir_separator=
10270  hardcode_direct=no
10271  hardcode_minus_L=no
10272  hardcode_shlibpath_var=unsupported
10273  link_all_deplibs=unknown
10274  hardcode_automatic=no
10275  module_cmds=
10276  module_expsym_cmds=
10277  always_export_symbols=no
10278  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10279  # include_expsyms should be a list of space-separated symbols to be *always*
10280  # included in the symbol list
10281  include_expsyms=
10282  # exclude_expsyms can be an extended regexp of symbols to exclude
10283  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10284  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10285  # as well as any symbol that contains `d'.
10286  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10287  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10288  # platforms (ab)use it in PIC code, but their linkers get confused if
10289  # the symbol is explicitly referenced.  Since portable code cannot
10290  # rely on this symbol name, it's probably fine to never include it in
10291  # preloaded symbol tables.
10292  extract_expsyms_cmds=
10293  # Just being paranoid about ensuring that cc_basename is set.
10294  for cc_temp in $compiler""; do
10295  case $cc_temp in
10296    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10297    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10298    \-*) ;;
10299    *) break;;
10300  esac
10301done
10302cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10303
10304  case $host_os in
10305  cygwin* | mingw* | pw32*)
10306    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10307    # When not using gcc, we currently assume that we are using
10308    # Microsoft Visual C++.
10309    if test "$GCC" != yes; then
10310      with_gnu_ld=no
10311    fi
10312    ;;
10313  interix*)
10314    # we just hope/assume this is gcc and not c89 (= MSVC++)
10315    with_gnu_ld=yes
10316    ;;
10317  openbsd*)
10318    with_gnu_ld=no
10319    ;;
10320  esac
10321
10322  ld_shlibs=yes
10323  if test "$with_gnu_ld" = yes; then
10324    # If archive_cmds runs LD, not CC, wlarc should be empty
10325    wlarc='${wl}'
10326
10327    # Set some defaults for GNU ld with shared library support. These
10328    # are reset later if shared libraries are not supported. Putting them
10329    # here allows them to be overridden if necessary.
10330    runpath_var=LD_RUN_PATH
10331    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10332    export_dynamic_flag_spec='${wl}--export-dynamic'
10333    # ancient GNU ld didn't support --whole-archive et. al.
10334    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10335        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10336      else
10337        whole_archive_flag_spec=
10338    fi
10339    supports_anon_versioning=no
10340    case `$LD -v 2>/dev/null` in
10341      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10342      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10343      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10344      *\ 2.11.*) ;; # other 2.11 versions
10345      *) supports_anon_versioning=yes ;;
10346    esac
10347
10348    # See if GNU ld supports shared libraries.
10349    case $host_os in
10350    aix3* | aix4* | aix5*)
10351      # On AIX/PPC, the GNU linker is very broken
10352      if test "$host_cpu" != ia64; then
10353        ld_shlibs=no
10354        cat <<EOF 1>&2
10355
10356*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10357*** to be unable to reliably create shared libraries on AIX.
10358*** Therefore, libtool is disabling shared libraries support.  If you
10359*** really care for shared libraries, you may want to modify your PATH
10360*** so that a non-GNU linker is found, and then restart.
10361
10362EOF
10363      fi
10364      ;;
10365
10366    amigaos*)
10367      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)'
10368      hardcode_libdir_flag_spec='-L$libdir'
10369      hardcode_minus_L=yes
10370
10371      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10372      # that the semantics of dynamic libraries on AmigaOS, at least up
10373      # to version 4, is to share data among multiple programs linked
10374      # with the same dynamic library.  Since this doesn't match the
10375      # behavior of shared libraries on other platforms, we can't use
10376      # them.
10377      ld_shlibs=no
10378      ;;
10379
10380    beos*)
10381      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10382        allow_undefined_flag=unsupported
10383        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10384        # support --undefined.  This deserves some investigation.  FIXME
10385        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386      else
10387        ld_shlibs=no
10388      fi
10389      ;;
10390
10391    cygwin* | mingw* | pw32*)
10392      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10393      # as there is no search path for DLLs.
10394      hardcode_libdir_flag_spec='-L$libdir'
10395      allow_undefined_flag=unsupported
10396      always_export_symbols=no
10397      enable_shared_with_static_runtimes=yes
10398      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10399
10400      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10401        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10402        # If the export-symbols file already is a .def file (1st line
10403        # is EXPORTS), use it as is; otherwise, prepend...
10404        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10405          cp $export_symbols $output_objdir/$soname.def;
10406        else
10407          echo EXPORTS > $output_objdir/$soname.def;
10408          cat $export_symbols >> $output_objdir/$soname.def;
10409        fi~
10410        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10411      else
10412        ld_shlibs=no
10413      fi
10414      ;;
10415
10416    interix3*)
10417      hardcode_direct=no
10418      hardcode_shlibpath_var=no
10419      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10420      export_dynamic_flag_spec='${wl}-E'
10421      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10422      # Instead, shared libraries are loaded at an image base (0x10000000 by
10423      # default) and relocated if they conflict, which is a slow very memory
10424      # consuming and fragmenting process.  To avoid this, we pick a random,
10425      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10426      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10427      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10428      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'
10429      ;;
10430
10431    linux*)
10432      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10433        tmp_addflag=
10434        case $cc_basename,$host_cpu in
10435        pgcc*)                          # Portland Group C compiler
10436          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'
10437          tmp_addflag=' $pic_flag'
10438          ;;
10439        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10440          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'
10441          tmp_addflag=' $pic_flag -Mnomain' ;;
10442        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10443          tmp_addflag=' -i_dynamic' ;;
10444        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10445          tmp_addflag=' -i_dynamic -nofor_main' ;;
10446        ifc* | ifort*)                  # Intel Fortran compiler
10447          tmp_addflag=' -nofor_main' ;;
10448        esac
10449        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450
10451        if test $supports_anon_versioning = yes; then
10452          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10453  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10454  $echo "local: *; };" >> $output_objdir/$libname.ver~
10455          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10456        fi
10457      else
10458        ld_shlibs=no
10459      fi
10460      ;;
10461
10462    netbsd*)
10463      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10464        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10465        wlarc=
10466      else
10467        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10469      fi
10470      ;;
10471
10472    solaris*)
10473      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10474        ld_shlibs=no
10475        cat <<EOF 1>&2
10476
10477*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10478*** create shared libraries on Solaris systems.  Therefore, libtool
10479*** is disabling shared libraries support.  We urge you to upgrade GNU
10480*** binutils to release 2.9.1 or newer.  Another option is to modify
10481*** your PATH or compiler configuration so that the native linker is
10482*** used, and then restart.
10483
10484EOF
10485      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10486        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10488      else
10489        ld_shlibs=no
10490      fi
10491      ;;
10492
10493    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10494      case `$LD -v 2>&1` in
10495        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10496        ld_shlibs=no
10497        cat <<_LT_EOF 1>&2
10498
10499*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10500*** reliably create shared libraries on SCO systems.  Therefore, libtool
10501*** is disabling shared libraries support.  We urge you to upgrade GNU
10502*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10503*** your PATH or compiler configuration so that the native linker is
10504*** used, and then restart.
10505
10506_LT_EOF
10507        ;;
10508        *)
10509          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10510            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10511            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10512            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10513          else
10514            ld_shlibs=no
10515          fi
10516        ;;
10517      esac
10518      ;;
10519
10520    sunos4*)
10521      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10522      wlarc=
10523      hardcode_direct=yes
10524      hardcode_shlibpath_var=no
10525      ;;
10526
10527    *)
10528      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10529        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10530        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10531      else
10532        ld_shlibs=no
10533      fi
10534      ;;
10535    esac
10536
10537    if test "$ld_shlibs" = no; then
10538      runpath_var=
10539      hardcode_libdir_flag_spec=
10540      export_dynamic_flag_spec=
10541      whole_archive_flag_spec=
10542    fi
10543  else
10544    # PORTME fill in a description of your system's linker (not GNU ld)
10545    case $host_os in
10546    aix3*)
10547      allow_undefined_flag=unsupported
10548      always_export_symbols=yes
10549      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'
10550      # Note: this linker hardcodes the directories in LIBPATH if there
10551      # are no directories specified by -L.
10552      hardcode_minus_L=yes
10553      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10554        # Neither direct hardcoding nor static linking is supported with a
10555        # broken collect2.
10556        hardcode_direct=unsupported
10557      fi
10558      ;;
10559
10560    aix4* | aix5*)
10561      if test "$host_cpu" = ia64; then
10562        # On IA64, the linker does run time linking by default, so we don't
10563        # have to do anything special.
10564        aix_use_runtimelinking=no
10565        exp_sym_flag='-Bexport'
10566        no_entry_flag=""
10567      else
10568        # If we're using GNU nm, then we don't want the "-C" option.
10569        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10570        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10571          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'
10572        else
10573          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'
10574        fi
10575        aix_use_runtimelinking=no
10576
10577        # Test if we are trying to use run time linking or normal
10578        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10579        # need to do runtime linking.
10580        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10581          for ld_flag in $LDFLAGS; do
10582          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10583            aix_use_runtimelinking=yes
10584            break
10585          fi
10586          done
10587          ;;
10588        esac
10589
10590        exp_sym_flag='-bexport'
10591        no_entry_flag='-bnoentry'
10592      fi
10593
10594      # When large executables or shared objects are built, AIX ld can
10595      # have problems creating the table of contents.  If linking a library
10596      # or program results in "error TOC overflow" add -mminimal-toc to
10597      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10598      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10599
10600      archive_cmds=''
10601      hardcode_direct=yes
10602      hardcode_libdir_separator=':'
10603      link_all_deplibs=yes
10604
10605      if test "$GCC" = yes; then
10606        case $host_os in aix4.[012]|aix4.[012].*)
10607        # We only want to do this on AIX 4.2 and lower, the check
10608        # below for broken collect2 doesn't work under 4.3+
10609          collect2name=`${CC} -print-prog-name=collect2`
10610          if test -f "$collect2name" && \
10611           strings "$collect2name" | grep resolve_lib_name >/dev/null
10612          then
10613          # We have reworked collect2
10614          hardcode_direct=yes
10615          else
10616          # We have old collect2
10617          hardcode_direct=unsupported
10618          # It fails to find uninstalled libraries when the uninstalled
10619          # path is not listed in the libpath.  Setting hardcode_minus_L
10620          # to unsupported forces relinking
10621          hardcode_minus_L=yes
10622          hardcode_libdir_flag_spec='-L$libdir'
10623          hardcode_libdir_separator=
10624          fi
10625          ;;
10626        esac
10627        shared_flag='-shared'
10628        if test "$aix_use_runtimelinking" = yes; then
10629          shared_flag="$shared_flag "'${wl}-G'
10630        fi
10631      else
10632        # not using gcc
10633        if test "$host_cpu" = ia64; then
10634        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10635        # chokes on -Wl,-G. The following line is correct:
10636          shared_flag='-G'
10637        else
10638          if test "$aix_use_runtimelinking" = yes; then
10639            shared_flag='${wl}-G'
10640          else
10641            shared_flag='${wl}-bM:SRE'
10642          fi
10643        fi
10644      fi
10645
10646      # It seems that -bexpall does not export symbols beginning with
10647      # underscore (_), so it is better to generate a list of symbols to export.
10648      always_export_symbols=yes
10649      if test "$aix_use_runtimelinking" = yes; then
10650        # Warning - without using the other runtime loading flags (-brtl),
10651        # -berok will link without error, but may produce a broken library.
10652        allow_undefined_flag='-berok'
10653       # Determine the default libpath from the value encoded in an empty executable.
10654       cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h.  */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h.  */
10660
10661#ifdef F77_DUMMY_MAIN
10662
10663#  ifdef __cplusplus
10664     extern "C"
10665#  endif
10666   int F77_DUMMY_MAIN() { return 1; }
10667
10668#endif
10669int
10670main ()
10671{
10672
10673  ;
10674  return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext conftest$ac_exeext
10678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679  (eval $ac_link) 2>conftest.er1
10680  ac_status=$?
10681  grep -v '^ *+' conftest.er1 >conftest.err
10682  rm -f conftest.er1
10683  cat conftest.err >&5
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); } &&
10686         { ac_try='test -z "$ac_c_werror_flag"
10687                         || test ! -s conftest.err'
10688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689  (eval $ac_try) 2>&5
10690  ac_status=$?
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); }; } &&
10693         { ac_try='test -s conftest$ac_exeext'
10694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695  (eval $ac_try) 2>&5
10696  ac_status=$?
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); }; }; then
10699
10700aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10701}'`
10702# Check for a 64-bit object if we didn't find anything.
10703if 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; }
10704}'`; fi
10705else
10706  echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709fi
10710rm -f conftest.err conftest.$ac_objext \
10711      conftest$ac_exeext conftest.$ac_ext
10712if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10713
10714       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10715        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"
10716       else
10717        if test "$host_cpu" = ia64; then
10718          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10719          allow_undefined_flag="-z nodefs"
10720          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"
10721        else
10722         # Determine the default libpath from the value encoded in an empty executable.
10723         cat >conftest.$ac_ext <<_ACEOF
10724/* confdefs.h.  */
10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h.  */
10729
10730#ifdef F77_DUMMY_MAIN
10731
10732#  ifdef __cplusplus
10733     extern "C"
10734#  endif
10735   int F77_DUMMY_MAIN() { return 1; }
10736
10737#endif
10738int
10739main ()
10740{
10741
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746rm -f conftest.$ac_objext conftest$ac_exeext
10747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10748  (eval $ac_link) 2>conftest.er1
10749  ac_status=$?
10750  grep -v '^ *+' conftest.er1 >conftest.err
10751  rm -f conftest.er1
10752  cat conftest.err >&5
10753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); } &&
10755         { ac_try='test -z "$ac_c_werror_flag"
10756                         || test ! -s conftest.err'
10757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758  (eval $ac_try) 2>&5
10759  ac_status=$?
10760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761  (exit $ac_status); }; } &&
10762         { ac_try='test -s conftest$ac_exeext'
10763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764  (eval $ac_try) 2>&5
10765  ac_status=$?
10766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767  (exit $ac_status); }; }; then
10768
10769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10770}'`
10771# Check for a 64-bit object if we didn't find anything.
10772if 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; }
10773}'`; fi
10774else
10775  echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
10777
10778fi
10779rm -f conftest.err conftest.$ac_objext \
10780      conftest$ac_exeext conftest.$ac_ext
10781if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10782
10783         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10784          # Warning - without using the other run time loading flags,
10785          # -berok will link without error, but may produce a broken library.
10786          no_undefined_flag=' ${wl}-bernotok'
10787          allow_undefined_flag=' ${wl}-berok'
10788          # Exported symbols can be pulled into shared objects from archives
10789          whole_archive_flag_spec='$convenience'
10790          archive_cmds_need_lc=yes
10791          # This is similar to how AIX traditionally builds its shared libraries.
10792          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'
10793        fi
10794      fi
10795      ;;
10796
10797    amigaos*)
10798      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)'
10799      hardcode_libdir_flag_spec='-L$libdir'
10800      hardcode_minus_L=yes
10801      # see comment about different semantics on the GNU ld section
10802      ld_shlibs=no
10803      ;;
10804
10805    bsdi[45]*)
10806      export_dynamic_flag_spec=-rdynamic
10807      ;;
10808
10809    cygwin* | mingw* | pw32*)
10810      # When not using gcc, we currently assume that we are using
10811      # Microsoft Visual C++.
10812      # hardcode_libdir_flag_spec is actually meaningless, as there is
10813      # no search path for DLLs.
10814      hardcode_libdir_flag_spec=' '
10815      allow_undefined_flag=unsupported
10816      # Tell ltmain to make .lib files, not .a files.
10817      libext=lib
10818      # Tell ltmain to make .dll files, not .so files.
10819      shrext_cmds=".dll"
10820      # FIXME: Setting linknames here is a bad hack.
10821      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10822      # The linker will automatically build a .lib file if we build a DLL.
10823      old_archive_From_new_cmds='true'
10824      # FIXME: Should let the user specify the lib program.
10825      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10826      fix_srcfile_path='`cygpath -w "$srcfile"`'
10827      enable_shared_with_static_runtimes=yes
10828      ;;
10829
10830    darwin* | rhapsody*)
10831      case $host_os in
10832        rhapsody* | darwin1.[012])
10833         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10834         ;;
10835       *) # Darwin 1.3 on
10836         if test -z ${MACOSX