source: ThirdParty/FilterSQP/releases/1.2.8/configure @ 3347

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

temporarily committing release candidate

File size: 770.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.2.8.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.2.8'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.2.8'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 1.2.8 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 1.2.8:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078                          (implies --disable-shared)
1079  --enable-debug-filtersqp
1080                          compile project FilterSQP with debug compiler flags
1081
1082  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1083  --disable-pkg-config    disable use of pkg-config (if available)
1084  --disable-dependency-tracking  speeds up one-time build
1085  --enable-dependency-tracking   do not reject slow dependency extractors
1086  --enable-maintainer-mode  enable make rules and dependencies not useful
1087                          (and sometimes confusing) to the casual installer
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095
1096Optional Packages:
1097  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1098  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1099  --with-filtersqp-verbosity
1100                          specify the debug verbosity level for project
1101                          FilterSQP
1102  --with-filtersqp-checklevel
1103                          specify the sanity check level for project FilterSQP
1104  --with-coin-instdir     prefix of installation directory for precompiled
1105                          COIN packages
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111
1112Some influential environment variables:
1113  CDEFS       Additional -D flags to be used when compiling C code.
1114  ADD_CFLAGS  Additional C compiler options
1115  DBG_CFLAGS  Debug C compiler options
1116  OPT_CFLAGS  Optimize C compiler options
1117  CC          C compiler command
1118  CFLAGS      C compiler flags
1119  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1120              nonstandard directory <lib dir>
1121  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1122              headers in a nonstandard directory <include dir>
1123  MPICC       C MPI Compiler
1124  ADD_FFLAGS  Additional Fortran compiler options
1125  DBG_FFLAGS  Debug Fortran compiler options
1126  OPT_FFLAGS  Optimize Fortran compiler options
1127  F77         Fortran 77 compiler command
1128  FFLAGS      Fortran 77 compiler flags
1129  MPIF77      Fortran MPI Compiler
1130  PKG_CONFIG  path to pkg-config utility
1131  CPP         C preprocessor
1132  CXX         C++ compiler command
1133  CXXFLAGS    C++ compiler flags
1134  CXXCPP      C++ preprocessor
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235ThirdPartyFilterSQP configure 1.2.8
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Eclipse Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by ThirdPartyFilterSQP $as_me 1.2.8, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604
1605# As backup, we make sure we don't loose an FLIBS if it has been set
1606# by the user
1607save_FLIBS="$FLIBS"
1608
1609# A useful makefile conditional that is always false
1610
1611
1612if false; then
1613  ALWAYS_FALSE_TRUE=
1614  ALWAYS_FALSE_FALSE='#'
1615else
1616  ALWAYS_FALSE_TRUE='#'
1617  ALWAYS_FALSE_FALSE=
1618fi
1619
1620
1621# We set the following variable so that we know later in AC_COIN_FINALIZE
1622# that we are in a project main directory
1623coin_projectdir=yes
1624
1625# Set the project's version numbers
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1630_ACEOF
1631
1632
1633  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1634  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1636  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1637  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1638  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1639
1640cat >>confdefs.h <<_ACEOF
1641#define FILTERSQP_VERSION_MAJOR $coin_majorver
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define FILTERSQP_VERSION_MINOR $coin_minorver
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define FILTERSQP_VERSION_RELEASE $coin_releasever
1652_ACEOF
1653
1654
1655  # We use the following variable to have a string with the upper case
1656  # version of the project name
1657  COIN_PRJCT=FILTERSQP
1658
1659  # Set the project's SVN revision number. The complicated sed expression
1660  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1661  # as a single number.
1662  # Extract the first word of "svnversion", so it can be a program name with args.
1663set dummy svnversion; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_have_svnversion+set}" = set; then
1667  echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669  if test -n "$have_svnversion"; then
1670  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675  IFS=$as_save_IFS
1676  test -z "$as_dir" && as_dir=.
1677  for ac_exec_ext in '' $ac_executable_extensions; do
1678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679    ac_cv_prog_have_svnversion="yes"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1687fi
1688fi
1689have_svnversion=$ac_cv_prog_have_svnversion
1690if test -n "$have_svnversion"; then
1691  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1692echo "${ECHO_T}$have_svnversion" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698  if test "x$have_svnversion" = xyes; then
1699
1700    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1701    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1702      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1703
1704cat >>confdefs.h <<_ACEOF
1705#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1706_ACEOF
1707
1708    fi
1709  fi
1710
1711
1712
1713# Capture libtool library version, if given.
1714 coin_libversion=3:8:2
1715
1716
1717
1718
1719#############################################################################
1720#                         Standard build tool stuff                         #
1721#############################################################################
1722
1723# Get the system type
1724ac_aux_dir=
1725for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1726  if test -f $ac_dir/install-sh; then
1727    ac_aux_dir=$ac_dir
1728    ac_install_sh="$ac_aux_dir/install-sh -c"
1729    break
1730  elif test -f $ac_dir/install.sh; then
1731    ac_aux_dir=$ac_dir
1732    ac_install_sh="$ac_aux_dir/install.sh -c"
1733    break
1734  elif test -f $ac_dir/shtool; then
1735    ac_aux_dir=$ac_dir
1736    ac_install_sh="$ac_aux_dir/shtool install -c"
1737    break
1738  fi
1739done
1740if test -z "$ac_aux_dir"; then
1741  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1742echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1743   { (exit 1); exit 1; }; }
1744fi
1745ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1746ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1747ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1748
1749# Make sure we can run config.sub.
1750$ac_config_sub sun4 >/dev/null 2>&1 ||
1751  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1752echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1753   { (exit 1); exit 1; }; }
1754
1755echo "$as_me:$LINENO: checking build system type" >&5
1756echo $ECHO_N "checking build system type... $ECHO_C" >&6
1757if test "${ac_cv_build+set}" = set; then
1758  echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760  ac_cv_build_alias=$build_alias
1761test -z "$ac_cv_build_alias" &&
1762  ac_cv_build_alias=`$ac_config_guess`
1763test -z "$ac_cv_build_alias" &&
1764  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1765echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1766   { (exit 1); exit 1; }; }
1767ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1768  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1769echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1770   { (exit 1); exit 1; }; }
1771
1772fi
1773echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1774echo "${ECHO_T}$ac_cv_build" >&6
1775build=$ac_cv_build
1776build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779
1780
1781
1782# Check if user wants to produce debugging code
1783
1784echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1785echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1786
1787# Check whether --enable-debug or --disable-debug was given.
1788if test "${enable_debug+set}" = set; then
1789  enableval="$enable_debug"
1790  case "${enableval}" in
1791   yes) coin_debug_compile=true
1792        if test "${enable_shared+set}" = set; then :; else
1793          enable_shared=no
1794        fi
1795        ;;
1796   no)  coin_debug_compile=false
1797        ;;
1798   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1799echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1800   { (exit 1); exit 1; }; }
1801        ;;
1802esac
1803else
1804  coin_debug_compile=false
1805fi;
1806
1807# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1808if test "${enable_debug_filtersqp+set}" = set; then
1809  enableval="$enable_debug_filtersqp"
1810  case "${enableval}" in
1811    yes) coin_debug_compile=true
1812         ;;
1813    no)  coin_debug_compile=false
1814         ;;
1815    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1816echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1817   { (exit 1); exit 1; }; }
1818         ;;
1819 esac
1820else
1821  :
1822fi;
1823
1824 # m4_ifvaln([FilterSQP],
1825
1826if test $coin_debug_compile = true; then
1827  echo "$as_me:$LINENO: result: yes" >&5
1828echo "${ECHO_T}yes" >&6
1829else
1830  echo "$as_me:$LINENO: result: no" >&5
1831echo "${ECHO_T}no" >&6
1832fi
1833
1834
1835# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1836if test "${with_filtersqp_verbosity+set}" = set; then
1837  withval="$with_filtersqp_verbosity"
1838  if test "$withval" = yes; then
1839                withval=1
1840              fi
1841              coin_filtersqp_verbosity=$withval
1842else
1843  coin_filtersqp_verbosity=0
1844fi;
1845
1846cat >>confdefs.h <<_ACEOF
1847#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1848_ACEOF
1849
1850
1851
1852# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1853if test "${with_filtersqp_checklevel+set}" = set; then
1854  withval="$with_filtersqp_checklevel"
1855  if test "$withval" = yes; then
1856                withval=1
1857              fi
1858              coin_filtersqp_checklevel=$withval
1859else
1860  coin_filtersqp_checklevel=0
1861fi;
1862
1863cat >>confdefs.h <<_ACEOF
1864#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1865_ACEOF
1866
1867
1868 # m4_ifvaln([FilterSQP],
1869
1870
1871
1872# Get the name of the Fortran compiler and appropriate compiler options
1873
1874
1875  # for backward compatibility
1876  # Check whether --enable-doscompile or --disable-doscompile was given.
1877if test "${enable_doscompile+set}" = set; then
1878  enableval="$enable_doscompile"
1879  enable_doscompile=$enableval
1880else
1881  enable_doscompile=no
1882fi;
1883
1884  # Check whether --enable-msvc or --disable-msvc was given.
1885if test "${enable_msvc+set}" = set; then
1886  enableval="$enable_msvc"
1887  enable_msvc=$enableval
1888else
1889  enable_msvc=no
1890     if test "$enable_doscompile" = msvc ; then
1891       enable_msvc=yes
1892     elif test "$enable_doscompile" != no ; then
1893       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1894echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1895   { (exit 1); exit 1; }; }
1896     fi
1897
1898fi;
1899
1900  if test "$enable_msvc" = MD; then
1901    enable_shared=yes
1902    enable_msvc=yes
1903  fi
1904
1905  if test "$enable_msvc" = yes; then
1906    case $build in
1907      *-cygwin* | *-mingw*) ;;
1908      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1909echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1910   { (exit 1); exit 1; }; } ;;
1911    esac
1912  fi
1913
1914
1915
1916ac_ext=c
1917ac_cpp='$CPP $CPPFLAGS'
1918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923# For consistency, we set the C compiler to the same value of the C++
1924# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1925if test x"$CXX" != x; then
1926  case "$CXX" in
1927    clang* ) ;;
1928    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1929      if test x"$CC" = x; then
1930        CC="$CXX"
1931        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1932echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1933      fi
1934      ;;
1935  esac
1936fi
1937
1938
1939
1940
1941
1942
1943coin_has_cc=yes
1944
1945save_cflags="$CFLAGS"
1946
1947# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1948# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1949# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1950# compiler. In this case, put cc after gcc.
1951
1952case $build in
1953  *-cygwin* | *-mingw*)
1954             if test "$enable_msvc" = yes ; then
1955               comps="icl cl gcc"
1956             else
1957               comps="gcc icl cl"
1958             fi ;;
1959  *-*-solaris*)
1960             # Extract the first word of "cc", so it can be a program name with args.
1961set dummy cc; ac_word=$2
1962echo "$as_me:$LINENO: checking for $ac_word" >&5
1963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1965  echo $ECHO_N "(cached) $ECHO_C" >&6
1966else
1967  if test -n "$sol_cc_compiler"; then
1968  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1969else
1970  ac_prog_rejected=no
1971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972for as_dir in $PATH
1973do
1974  IFS=$as_save_IFS
1975  test -z "$as_dir" && as_dir=.
1976  for ac_exec_ext in '' $ac_executable_extensions; do
1977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1979       ac_prog_rejected=yes
1980       continue
1981     fi
1982    ac_cv_prog_sol_cc_compiler="cc"
1983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984    break 2
1985  fi
1986done
1987done
1988
1989if test $ac_prog_rejected = yes; then
1990  # We found a bogon in the path, so make sure we never use it.
1991  set dummy $ac_cv_prog_sol_cc_compiler
1992  shift
1993  if test $# != 0; then
1994    # We chose a different compiler from the bogus one.
1995    # However, it has the same basename, so the bogon will be chosen
1996    # first if we set sol_cc_compiler to just the basename; use the full file name.
1997    shift
1998    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1999  fi
2000fi
2001fi
2002fi
2003sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2004if test -n "$sol_cc_compiler"; then
2005  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2006echo "${ECHO_T}$sol_cc_compiler" >&6
2007else
2008  echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6
2010fi
2011
2012             if test "$sol_cc_compiler" = "cc" ; then
2013               comps="cc xlc gcc pgcc icc"
2014             else
2015               comps="xlc gcc pgcc icc cc"
2016             fi
2017             ;;
2018  *-*-darwin*) comps="clang gcc cc" ;;
2019  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2020  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2021  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2022esac
2023
2024# We delete the cached value, since the test might not have been
2025# performed with our choice of compilers earlier
2026$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2027# AC_MSG_NOTICE([C compiler candidates: $comps])
2028ac_ext=c
2029ac_cpp='$CPP $CPPFLAGS'
2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033if test -n "$ac_tool_prefix"; then
2034  for ac_prog in $comps
2035  do
2036    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2037set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_CC+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  if test -n "$CC"; then
2044  ac_cv_prog_CC="$CC" # Let the user override the test.
2045else
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049  IFS=$as_save_IFS
2050  test -z "$as_dir" && as_dir=.
2051  for ac_exec_ext in '' $ac_executable_extensions; do
2052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055    break 2
2056  fi
2057done
2058done
2059
2060fi
2061fi
2062CC=$ac_cv_prog_CC
2063if test -n "$CC"; then
2064  echo "$as_me:$LINENO: result: $CC" >&5
2065echo "${ECHO_T}$CC" >&6
2066else
2067  echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6
2069fi
2070
2071    test -n "$CC" && break
2072  done
2073fi
2074if test -z "$CC"; then
2075  ac_ct_CC=$CC
2076  for ac_prog in $comps
2077do
2078  # Extract the first word of "$ac_prog", so it can be a program name with args.
2079set dummy $ac_prog; ac_word=$2
2080echo "$as_me:$LINENO: checking for $ac_word" >&5
2081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083  echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085  if test -n "$ac_ct_CC"; then
2086  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2087else
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091  IFS=$as_save_IFS
2092  test -z "$as_dir" && as_dir=.
2093  for ac_exec_ext in '' $ac_executable_extensions; do
2094  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095    ac_cv_prog_ac_ct_CC="$ac_prog"
2096    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097    break 2
2098  fi
2099done
2100done
2101
2102fi
2103fi
2104ac_ct_CC=$ac_cv_prog_ac_ct_CC
2105if test -n "$ac_ct_CC"; then
2106  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2107echo "${ECHO_T}$ac_ct_CC" >&6
2108else
2109  echo "$as_me:$LINENO: result: no" >&5
2110echo "${ECHO_T}no" >&6
2111fi
2112
2113  test -n "$ac_ct_CC" && break
2114done
2115
2116  CC=$ac_ct_CC
2117fi
2118
2119
2120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121See \`config.log' for more details." >&5
2122echo "$as_me: error: no acceptable C compiler found in \$PATH
2123See \`config.log' for more details." >&2;}
2124   { (exit 1); exit 1; }; }
2125
2126# Provide some information about the compiler.
2127echo "$as_me:$LINENO:" \
2128     "checking for C compiler version" >&5
2129ac_compiler=`set X $ac_compile; echo $2`
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131  (eval $ac_compiler --version </dev/null >&5) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }
2135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136  (eval $ac_compiler -v </dev/null >&5) 2>&5
2137  ac_status=$?
2138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139  (exit $ac_status); }
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141  (eval $ac_compiler -V </dev/null >&5) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }
2145
2146cat >conftest.$ac_ext <<_ACEOF
2147/* confdefs.h.  */
2148_ACEOF
2149cat confdefs.h >>conftest.$ac_ext
2150cat >>conftest.$ac_ext <<_ACEOF
2151/* end confdefs.h.  */
2152
2153int
2154main ()
2155{
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161ac_clean_files_save=$ac_clean_files
2162ac_clean_files="$ac_clean_files a.out a.exe b.out"
2163# Try to create an executable without -o first, disregard a.out.
2164# It will help us diagnose broken compilers, and finding out an intuition
2165# of exeext.
2166echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170  (eval $ac_link_default) 2>&5
2171  ac_status=$?
2172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173  (exit $ac_status); }; then
2174  # Find the output, starting from the most likely.  This scheme is
2175# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176# resort.
2177
2178# Be careful to initialize this variable, since it used to be cached.
2179# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180ac_cv_exeext=
2181# b.out is created by i960 compilers.
2182for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183do
2184  test -f "$ac_file" || continue
2185  case $ac_file in
2186    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2187        ;;
2188    conftest.$ac_ext )
2189        # This is the source file.
2190        ;;
2191    [ab].out )
2192        # We found the default executable, but exeext='' is most
2193        # certainly right.
2194        break;;
2195    *.* )
2196        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197        # FIXME: I believe we export ac_cv_exeext for Libtool,
2198        # but it would be cool to find out if it's true.  Does anybody
2199        # maintain Libtool? --akim.
2200        export ac_cv_exeext
2201        break;;
2202    * )
2203        break;;
2204  esac
2205done
2206else
2207  echo "$as_me: failed program was:" >&5
2208sed 's/^/| /' conftest.$ac_ext >&5
2209
2210{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: C compiler cannot create executables
2213See \`config.log' for more details." >&2;}
2214   { (exit 77); exit 77; }; }
2215fi
2216
2217ac_exeext=$ac_cv_exeext
2218echo "$as_me:$LINENO: result: $ac_file" >&5
2219echo "${ECHO_T}$ac_file" >&6
2220
2221# Check the compiler produces executables we can run.  If not, either
2222# the compiler is broken, or we cross compile.
2223echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226# If not cross compiling, check that we can run a simple program.
2227if test "$cross_compiling" != yes; then
2228  if { ac_try='./$ac_file'
2229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230  (eval $ac_try) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }; }; then
2234    cross_compiling=no
2235  else
2236    if test "$cross_compiling" = maybe; then
2237        cross_compiling=yes
2238    else
2239        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240If you meant to cross compile, use \`--host'.
2241See \`config.log' for more details." >&5
2242echo "$as_me: error: cannot run C compiled programs.
2243If you meant to cross compile, use \`--host'.
2244See \`config.log' for more details." >&2;}
2245   { (exit 1); exit 1; }; }
2246    fi
2247  fi
2248fi
2249echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6
2251
2252rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253ac_clean_files=$ac_clean_files_save
2254# Check the compiler produces executables we can run.  If not, either
2255# the compiler is broken, or we cross compile.
2256echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259echo "${ECHO_T}$cross_compiling" >&6
2260
2261echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264  (eval $ac_link) 2>&5
2265  ac_status=$?
2266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267  (exit $ac_status); }; then
2268  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2270# work properly (i.e., refer to `conftest.exe'), while it won't with
2271# `rm'.
2272for ac_file in conftest.exe conftest conftest.*; do
2273  test -f "$ac_file" || continue
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2276    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277          export ac_cv_exeext
2278          break;;
2279    * ) break;;
2280  esac
2281done
2282else
2283  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286See \`config.log' for more details." >&2;}
2287   { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest$ac_cv_exeext
2291echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294rm -f conftest.$ac_ext
2295EXEEXT=$ac_cv_exeext
2296ac_exeext=$EXEEXT
2297echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299if test "${ac_cv_objext+set}" = set; then
2300  echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302  cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h.  */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h.  */
2308
2309int
2310main ()
2311{
2312
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317rm -f conftest.o conftest.obj
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319  (eval $ac_compile) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324  case $ac_file in
2325    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2326    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327       break;;
2328  esac
2329done
2330else
2331  echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335See \`config.log' for more details." >&5
2336echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337See \`config.log' for more details." >&2;}
2338   { (exit 1); exit 1; }; }
2339fi
2340
2341rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342fi
2343echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344echo "${ECHO_T}$ac_cv_objext" >&6
2345OBJEXT=$ac_cv_objext
2346ac_objext=$OBJEXT
2347echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  cat >conftest.$ac_ext <<_ACEOF
2353/* confdefs.h.  */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h.  */
2358
2359int
2360main ()
2361{
2362#ifndef __GNUC__
2363       choke me
2364#endif
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372  (eval $ac_compile) 2>conftest.er1
2373  ac_status=$?
2374  grep -v '^ *+' conftest.er1 >conftest.err
2375  rm -f conftest.er1
2376  cat conftest.err >&5
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); } &&
2379         { ac_try='test -z "$ac_c_werror_flag"
2380                         || test ! -s conftest.err'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; } &&
2386         { ac_try='test -s conftest.$ac_objext'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; }; then
2392  ac_compiler_gnu=yes
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397ac_compiler_gnu=no
2398fi
2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401
2402fi
2403echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405GCC=`test $ac_compiler_gnu = yes && echo yes`
2406ac_test_CFLAGS=${CFLAGS+set}
2407ac_save_CFLAGS=$CFLAGS
2408CFLAGS="-g"
2409echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411if test "${ac_cv_prog_cc_g+set}" = set; then
2412  echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414  cat >conftest.$ac_ext <<_ACEOF
2415/* confdefs.h.  */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h.  */
2420
2421int
2422main ()
2423{
2424
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431  (eval $ac_compile) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } &&
2438         { ac_try='test -z "$ac_c_werror_flag"
2439                         || test ! -s conftest.err'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; } &&
2445         { ac_try='test -s conftest.$ac_objext'
2446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447  (eval $ac_try) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; }; then
2451  ac_cv_prog_cc_g=yes
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456ac_cv_prog_cc_g=no
2457fi
2458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459fi
2460echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462if test "$ac_test_CFLAGS" = set; then
2463  CFLAGS=$ac_save_CFLAGS
2464elif test $ac_cv_prog_cc_g = yes; then
2465  if test "$GCC" = yes; then
2466    CFLAGS="-g -O2"
2467  else
2468    CFLAGS="-g"
2469  fi
2470else
2471  if test "$GCC" = yes; then
2472    CFLAGS="-O2"
2473  else
2474    CFLAGS=
2475  fi
2476fi
2477echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480  echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482  ac_cv_prog_cc_stdc=no
2483ac_save_CC=$CC
2484cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490#include <stdarg.h>
2491#include <stdio.h>
2492#include <sys/types.h>
2493#include <sys/stat.h>
2494/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2495struct buf { int x; };
2496FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497static char *e (p, i)
2498     char **p;
2499     int i;
2500{
2501  return p[i];
2502}
2503static char *f (char * (*g) (char **, int), char **p, ...)
2504{
2505  char *s;
2506  va_list v;
2507  va_start (v,p);
2508  s = g (p, va_arg (v,int));
2509  va_end (v);
2510  return s;
2511}
2512
2513/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2514   function prototypes and stuff, but not '\xHH' hex character constants.
2515   These don't provoke an error unfortunately, instead are silently treated
2516   as 'x'.  The following induces an error, until -std1 is added to get
2517   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2518   array size at least.  It's necessary to write '\x00'==0 to get something
2519   that's true only with -std1.  */
2520int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522int test (int i, double x);
2523struct s1 {int (*f) (int a);};
2524struct s2 {int (*f) (double a);};
2525int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526int argc;
2527char **argv;
2528int
2529main ()
2530{
2531return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536# Don't try gcc -ansi; that turns off useful extensions and
2537# breaks some systems' header files.
2538# AIX                   -qlanglvl=ansi
2539# Ultrix and OSF/1      -std1
2540# HP-UX 10.20 and later -Ae
2541# HP-UX older versions  -Aa -D_HPUX_SOURCE
2542# SVR4                  -Xc -D__EXTENSIONS__
2543for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544do
2545  CC="$ac_save_CC $ac_arg"
2546  rm -f conftest.$ac_objext
2547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548  (eval $ac_compile) 2>conftest.er1
2549  ac_status=$?
2550  grep -v '^ *+' conftest.er1 >conftest.err
2551  rm -f conftest.er1
2552  cat conftest.err >&5
2553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554  (exit $ac_status); } &&
2555         { ac_try='test -z "$ac_c_werror_flag"
2556                         || test ! -s conftest.err'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; } &&
2562         { ac_try='test -s conftest.$ac_objext'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; }; then
2568  ac_cv_prog_cc_stdc=$ac_arg
2569break
2570else
2571  echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574fi
2575rm -f conftest.err conftest.$ac_objext
2576done
2577rm -f conftest.$ac_ext conftest.$ac_objext
2578CC=$ac_save_CC
2579
2580fi
2581
2582case "x$ac_cv_prog_cc_stdc" in
2583  x|xno)
2584    echo "$as_me:$LINENO: result: none needed" >&5
2585echo "${ECHO_T}none needed" >&6 ;;
2586  *)
2587    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589    CC="$CC $ac_cv_prog_cc_stdc" ;;
2590esac
2591
2592# Some people use a C++ compiler to compile C.  Since we use `exit',
2593# in C++ we need to declare it.  In case someone uses the same compiler
2594# for both compiling C and C++ we need to have the C++ compiler decide
2595# the declaration of exit, since it's the most demanding environment.
2596cat >conftest.$ac_ext <<_ACEOF
2597#ifndef __cplusplus
2598  choke me
2599#endif
2600_ACEOF
2601rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610         { ac_try='test -z "$ac_c_werror_flag"
2611                         || test ! -s conftest.err'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; } &&
2617         { ac_try='test -s conftest.$ac_objext'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; }; then
2623  for ac_declaration in \
2624   '' \
2625   'extern "C" void std::exit (int) throw (); using std::exit;' \
2626   'extern "C" void std::exit (int); using std::exit;' \
2627   'extern "C" void exit (int) throw ();' \
2628   'extern "C" void exit (int);' \
2629   'void exit (int);'
2630do
2631  cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h.  */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h.  */
2637$ac_declaration
2638#include <stdlib.h>
2639int
2640main ()
2641{
2642exit (42);
2643  ;
2644  return 0;
2645}
2646_ACEOF
2647rm -f conftest.$ac_objext
2648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649  (eval $ac_compile) 2>conftest.er1
2650  ac_status=$?
2651  grep -v '^ *+' conftest.er1 >conftest.err
2652  rm -f conftest.er1
2653  cat conftest.err >&5
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); } &&
2656         { ac_try='test -z "$ac_c_werror_flag"
2657                         || test ! -s conftest.err'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; } &&
2663         { ac_try='test -s conftest.$ac_objext'
2664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665  (eval $ac_try) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); }; }; then
2669  :
2670else
2671  echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5
2673
2674continue
2675fi
2676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677  cat >conftest.$ac_ext <<_ACEOF
2678/* confdefs.h.  */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h.  */
2683$ac_declaration
2684int
2685main ()
2686{
2687exit (42);
2688  ;
2689  return 0;
2690}
2691_ACEOF
2692rm -f conftest.$ac_objext
2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694  (eval $ac_compile) 2>conftest.er1
2695  ac_status=$?
2696  grep -v '^ *+' conftest.er1 >conftest.err
2697  rm -f conftest.er1
2698  cat conftest.err >&5
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); } &&
2701         { ac_try='test -z "$ac_c_werror_flag"
2702                         || test ! -s conftest.err'
2703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704  (eval $ac_try) 2>&5
2705  ac_status=$?
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); }; } &&
2708         { ac_try='test -s conftest.$ac_objext'
2709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710  (eval $ac_try) 2>&5
2711  ac_status=$?
2712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713  (exit $ac_status); }; }; then
2714  break
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721done
2722rm -f conftest*
2723if test -n "$ac_declaration"; then
2724  echo '#ifdef __cplusplus' >>confdefs.h
2725  echo $ac_declaration      >>confdefs.h
2726  echo '#endif'             >>confdefs.h
2727fi
2728
2729else
2730  echo "$as_me: failed program was:" >&5
2731sed 's/^/| /' conftest.$ac_ext >&5
2732
2733fi
2734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735ac_ext=c
2736ac_cpp='$CPP $CPPFLAGS'
2737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741if test -z "$CC" ; then
2742  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2743echo "$as_me: error: Failed to find a C compiler!" >&2;}
2744   { (exit 1); exit 1; }; }
2745fi
2746# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2747case "$CC" in
2748  clang* ) ;;
2749  cl* | */cl* | CL* | */CL* )
2750    if test "$ac_cv_prog_cc_g" = yes ; then
2751      ac_cv_prog_cc_g=no
2752      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2753echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2754    fi ;;
2755  * )
2756    if test x"$CYGPATH_W" = x ; then
2757      CYGPATH_W=echo
2758    fi
2759    ;;
2760esac
2761CFLAGS="$save_cflags"
2762
2763# add automake conditional so we can recognize cl compiler in makefile
2764coin_cc_is_cl=false
2765case "$CC" in
2766  clang* ) ;;
2767  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2768    coin_cc_is_cl=true
2769    ;;
2770esac
2771
2772
2773if test $coin_cc_is_cl = true; then
2774  COIN_CC_IS_CL_TRUE=
2775  COIN_CC_IS_CL_FALSE='#'
2776else
2777  COIN_CC_IS_CL_TRUE='#'
2778  COIN_CC_IS_CL_FALSE=
2779fi
2780
2781
2782# Check if a project specific CFLAGS variable has been set
2783if test x$COIN_PRJCT != x; then
2784  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2785  if test x$coin_tmp = xset; then
2786    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2787  fi
2788fi
2789
2790if test x"$CFLAGS" = x; then
2791
2792  coin_add_cflags=
2793  coin_opt_cflags=
2794  coin_dbg_cflags=
2795  coin_warn_cflags=
2796
2797  if test "$GCC" = "yes"; then
2798    case "$CC" in
2799      icc* | */icc*)
2800        ;;
2801      *)
2802        coin_opt_cflags="-O3"
2803        coin_add_cflags="-pipe"
2804        coin_dbg_cflags="-g -O0"
2805        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2806        case $build in
2807          *-darwin*)
2808            ;;
2809          *)
2810            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2811            ;;
2812        esac
2813    esac
2814  fi
2815  if test -z "$coin_opt_cflags"; then
2816    case $build in
2817      *-cygwin* | *-mingw*)
2818        case "$CC" in
2819          clang* ) ;;
2820          cl* | */cl* | CL* | */CL*)
2821            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2822              coin_opt_cflags='-MD -O2'
2823              coin_dbg_cflags='-MDd'
2824            else
2825              coin_opt_cflags='-MT -O2'
2826              coin_dbg_cflags='-MTd'
2827            fi
2828            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2829            ;;
2830          icl* | */icl* | ICL* | */ICL*)
2831            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2832              coin_opt_cflags='-MD -Ox'
2833              coin_dbg_cflags='-MDd -debug'
2834            else
2835              coin_opt_cflags='-MT -Ox'
2836              coin_dbg_cflags='-MTd -debug'
2837            fi
2838            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2839            ;;
2840        esac
2841        ;;
2842      *-linux-*)
2843        case "$CC" in
2844          icc* | */icc*)
2845            coin_opt_cflags="-O3 -ip -mp1"
2846            coin_add_cflags=""
2847            coin_dbg_cflags="-g"
2848            # Check if -i_dynamic is necessary (for new glibc library)
2849            CFLAGS=
2850            cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h.  */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h.  */
2856
2857int
2858main ()
2859{
2860int i=0; i++;
2861  ;
2862  return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext conftest$ac_exeext
2866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2867  (eval $ac_link) 2>conftest.er1
2868  ac_status=$?
2869  grep -v '^ *+' conftest.er1 >conftest.err
2870  rm -f conftest.er1
2871  cat conftest.err >&5
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); } &&
2874         { ac_try='test -z "$ac_c_werror_flag"
2875                         || test ! -s conftest.err'
2876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877  (eval $ac_try) 2>&5
2878  ac_status=$?
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); }; } &&
2881         { ac_try='test -s conftest$ac_exeext'
2882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883  (eval $ac_try) 2>&5
2884  ac_status=$?
2885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886  (exit $ac_status); }; }; then
2887  :
2888else
2889  echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892coin_add_cflags="-i_dynamic $coin_add_cflags"
2893fi
2894rm -f conftest.err conftest.$ac_objext \
2895      conftest$ac_exeext conftest.$ac_ext
2896            ;;
2897          pgcc* | */pgcc*)
2898            coin_opt_cflags="-fast"
2899            coin_add_cflags="-Kieee -pc 64"
2900            coin_dbg_cflags="-g"
2901            ;;
2902        esac
2903        ;;
2904      *-ibm-*)
2905        case "$CC" in
2906          xlc* | */xlc* | mpxlc* | */mpxlc*)
2907            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2908            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2909            coin_dbg_cflags="-g"
2910          ;;
2911        esac
2912        ;;
2913      *-hp-*)
2914        coin_opt_cflags="-O"
2915        coin_add_cflags="-Ae"
2916        coin_dbg_cflags="-g"
2917        ;;
2918      *-*-solaris*)
2919        coin_opt_cflags="-xO4"
2920        coin_dbg_cflags="-g"
2921        ;;
2922      *-sgi-*)
2923        coin_opt_cflags="-O -OPT:Olimit=0"
2924        coin_dbg_cflags="-g"
2925        ;;
2926    esac
2927  fi
2928
2929  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2930    coin_dbg_cflags="-g"
2931  fi
2932
2933  if test -z "$coin_opt_cflags"; then
2934    # Try if -O option works if nothing else is set
2935    CFLAGS="-O"
2936    cat >conftest.$ac_ext <<_ACEOF
2937/* confdefs.h.  */
2938_ACEOF
2939cat confdefs.h >>conftest.$ac_ext
2940cat >>conftest.$ac_ext <<_ACEOF
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946int i=0; i++;
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951rm -f conftest.$ac_objext conftest$ac_exeext
2952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2953  (eval $ac_link) 2>conftest.er1
2954  ac_status=$?
2955  grep -v '^ *+' conftest.er1 >conftest.err
2956  rm -f conftest.er1
2957  cat conftest.err >&5
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); } &&
2960         { ac_try='test -z "$ac_c_werror_flag"
2961                         || test ! -s conftest.err'
2962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963  (eval $ac_try) 2>&5
2964  ac_status=$?
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); }; } &&
2967         { ac_try='test -s conftest$ac_exeext'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; }; then
2973  coin_opt_cflags="-O"
2974else
2975  echo "$as_me: failed program was:" >&5
2976sed 's/^/| /' conftest.$ac_ext >&5
2977
2978fi
2979rm -f conftest.err conftest.$ac_objext \
2980      conftest$ac_exeext conftest.$ac_ext
2981  fi
2982
2983  # if PM doesn't want the warning messages, take them out
2984  if test x"$coin_skip_warn_cflags" = xyes; then
2985    coin_warn_cflags=
2986  fi
2987
2988  if test x${DBG_CFLAGS+set} != xset; then
2989    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2990  fi
2991  if test x${OPT_CFLAGS+set} != xset; then
2992    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2993  fi
2994
2995  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2996  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2997
2998  if test "$coin_debug_compile" = "true"; then
2999    CFLAGS="$DBG_CFLAGS"
3000  else
3001    CFLAGS="$OPT_CFLAGS"
3002  fi
3003else
3004  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3005  if test x${DBG_CFLAGS+set} != xset; then
3006    DBG_CFLAGS="$CFLAGS"
3007  fi
3008  if test x${OPT_CFLAGS+set} != xset; then
3009    OPT_CFLAGS="$CFLAGS"
3010  fi
3011fi
3012
3013# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3014if test x$COIN_PRJCT != x; then
3015  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3016fi
3017
3018# Try if CFLAGS works
3019save_CFLAGS="$CFLAGS"
3020cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h.  */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h.  */
3026
3027int
3028main ()
3029{
3030int i=0; i++;
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext conftest$ac_exeext
3036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3037  (eval $ac_link) 2>conftest.er1
3038  ac_status=$?
3039  grep -v '^ *+' conftest.er1 >conftest.err
3040  rm -f conftest.er1
3041  cat conftest.err >&5
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); } &&
3044         { ac_try='test -z "$ac_c_werror_flag"
3045                         || test ! -s conftest.err'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; } &&
3051         { ac_try='test -s conftest$ac_exeext'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; }; then
3057  :
3058else
3059  echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062CFLAGS=
3063fi
3064rm -f conftest.err conftest.$ac_objext \
3065      conftest$ac_exeext conftest.$ac_ext
3066if test -z "$CFLAGS"; then
3067  { 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
3068echo "$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;}
3069  CFLAGS='-O'
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080int i=0; i++;
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext conftest$ac_exeext
3086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087  (eval $ac_link) 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } &&
3094         { ac_try='test -z "$ac_c_werror_flag"
3095                         || test ! -s conftest.err'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; } &&
3101         { ac_try='test -s conftest$ac_exeext'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; }; then
3107  :
3108else
3109  echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112CFLAGS=
3113fi
3114rm -f conftest.err conftest.$ac_objext \
3115      conftest$ac_exeext conftest.$ac_ext
3116  if test -z "$CFLAGS"; then
3117    { 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
3118echo "$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;}
3119  fi
3120fi
3121
3122{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3123echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3124
3125
3126if test x"$MPICC" = x; then :; else
3127  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3128echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3129  CC="$MPICC"
3130fi
3131
3132# Correct the LD variable if we are using the MS or Intel-windows compiler
3133case "$CC" in
3134  clang* ) ;;
3135  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3136    LD=link
3137    ;;
3138esac
3139
3140ac_ext=c
3141ac_cpp='$CPP $CPPFLAGS'
3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145
3146
3147case $build in
3148  *-cygwin* | *-mingw*)
3149     if test "$enable_msvc" = yes ; then
3150       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3151     else
3152       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3153     fi ;;
3154  *-*-solaris*)
3155     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3156  *-linux-gnu*)
3157     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3158  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3159 esac
3160
3161
3162
3163
3164
3165ac_ext=f
3166ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3167ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3169
3170
3171
3172
3173
3174
3175coin_has_f77=yes
3176
3177save_fflags="$FFLAGS"
3178
3179# We delete the cached value, since the test might not have been
3180# performed with our choice of compilers earlier
3181$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3182
3183# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3184# coin_f77_comps to see if there's a program that matches one of the names.
3185# If there's no such program, F77 = unavailable. If we match the name,
3186# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3187# compiler.
3188# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3189
3190
3191{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3192echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3193if test -n "$ac_tool_prefix"; then
3194  for ac_prog in $coin_f77_comps
3195  do
3196    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3197set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_prog_F77+set}" = set; then
3201  echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203  if test -n "$F77"; then
3204  ac_cv_prog_F77="$F77" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209  IFS=$as_save_IFS
3210  test -z "$as_dir" && as_dir=.
3211  for ac_exec_ext in '' $ac_executable_extensions; do
3212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215    break 2
3216  fi
3217done
3218done
3219
3220fi
3221fi
3222F77=$ac_cv_prog_F77
3223if test -n "$F77"; then
3224  echo "$as_me:$LINENO: result: $F77" >&5
3225echo "${ECHO_T}$F77" >&6
3226else
3227  echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6
3229fi
3230
3231    test -n "$F77" && break
3232  done
3233fi
3234if test -z "$F77"; then
3235  ac_ct_F77=$F77
3236  for ac_prog in $coin_f77_comps
3237do
3238  # Extract the first word of "$ac_prog", so it can be a program name with args.
3239set dummy $ac_prog; ac_word=$2
3240echo "$as_me:$LINENO: checking for $ac_word" >&5
3241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3242if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3243  echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245  if test -n "$ac_ct_F77"; then
3246  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3247else
3248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249for as_dir in $PATH
3250do
3251  IFS=$as_save_IFS
3252  test -z "$as_dir" && as_dir=.
3253  for ac_exec_ext in '' $ac_executable_extensions; do
3254  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255    ac_cv_prog_ac_ct_F77="$ac_prog"
3256    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257    break 2
3258  fi
3259done
3260done
3261
3262fi
3263fi
3264ac_ct_F77=$ac_cv_prog_ac_ct_F77
3265if test -n "$ac_ct_F77"; then
3266  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3267echo "${ECHO_T}$ac_ct_F77" >&6
3268else
3269  echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271fi
3272
3273  test -n "$ac_ct_F77" && break
3274done
3275test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3276
3277  F77=$ac_ct_F77
3278fi
3279
3280
3281if test "$F77" != "unavailable" ; then
3282  ac_ext=f
3283ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3284ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3286if test -n "$ac_tool_prefix"; then
3287  for ac_prog in $coin_f77_comps
3288  do
3289    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291echo "$as_me:$LINENO: checking for $ac_word" >&5
3292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3293if test "${ac_cv_prog_F77+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  if test -n "$F77"; then
3297  ac_cv_prog_F77="$F77" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302  IFS=$as_save_IFS
3303  test -z "$as_dir" && as_dir=.
3304  for ac_exec_ext in '' $ac_executable_extensions; do
3305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308    break 2
3309  fi
3310done
3311done
3312
3313fi
3314fi
3315F77=$ac_cv_prog_F77
3316if test -n "$F77"; then
3317  echo "$as_me:$LINENO: result: $F77" >&5
3318echo "${ECHO_T}$F77" >&6
3319else
3320  echo "$as_me:$LINENO: result: no" >&5
3321echo "${ECHO_T}no" >&6
3322fi
3323
3324    test -n "$F77" && break
3325  done
3326fi
3327if test -z "$F77"; then
3328  ac_ct_F77=$F77
3329  for ac_prog in $coin_f77_comps
3330do
3331  # Extract the first word of "$ac_prog", so it can be a program name with args.
3332set dummy $ac_prog; ac_word=$2
3333echo "$as_me:$LINENO: checking for $ac_word" >&5
3334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  if test -n "$ac_ct_F77"; then
3339  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344  IFS=$as_save_IFS
3345  test -z "$as_dir" && as_dir=.
3346  for ac_exec_ext in '' $ac_executable_extensions; do
3347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348    ac_cv_prog_ac_ct_F77="$ac_prog"
3349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350    break 2
3351  fi
3352done
3353done
3354
3355fi
3356fi
3357ac_ct_F77=$ac_cv_prog_ac_ct_F77
3358if test -n "$ac_ct_F77"; then
3359  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3360echo "${ECHO_T}$ac_ct_F77" >&6
3361else
3362  echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi
3365
3366  test -n "$ac_ct_F77" && break
3367done
3368
3369  F77=$ac_ct_F77
3370fi
3371
3372
3373# Provide some information about the compiler.
3374echo "$as_me:3374:" \
3375     "checking for Fortran 77 compiler version" >&5
3376ac_compiler=`set X $ac_compile; echo $2`
3377{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3378  (eval $ac_compiler --version </dev/null >&5) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }
3382{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3383  (eval $ac_compiler -v </dev/null >&5) 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }
3387{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3388  (eval $ac_compiler -V </dev/null >&5) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }
3392rm -f a.out
3393
3394# If we don't use `.F' as extension, the preprocessor is not run on the
3395# input file.  (Note that this only needs to work for GNU compilers.)
3396ac_save_ext=$ac_ext
3397ac_ext=F
3398echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3399echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3400if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3401  echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403  cat >conftest.$ac_ext <<_ACEOF
3404      program main
3405#ifndef __GNUC__
3406       choke me
3407#endif
3408
3409      end
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413  (eval $ac_compile) 2>conftest.er1
3414  ac_status=$?
3415  grep -v '^ *+' conftest.er1 >conftest.err
3416  rm -f conftest.er1
3417  cat conftest.err >&5
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); } &&
3420         { ac_try='test -z "$ac_f77_werror_flag"
3421                         || test ! -s conftest.err'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; } &&
3427         { ac_try='test -s conftest.$ac_objext'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; }; then
3433  ac_compiler_gnu=yes
3434else
3435  echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438ac_compiler_gnu=no
3439fi
3440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3442
3443fi
3444echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3445echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3446ac_ext=$ac_save_ext
3447ac_test_FFLAGS=${FFLAGS+set}
3448ac_save_FFLAGS=$FFLAGS
3449FFLAGS=
3450echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3451echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3452if test "${ac_cv_prog_f77_g+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  FFLAGS=-g
3456cat >conftest.$ac_ext <<_ACEOF
3457      program main
3458
3459      end
3460_ACEOF
3461rm -f conftest.$ac_objext
3462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463  (eval $ac_compile) 2>conftest.er1
3464  ac_status=$?
3465  grep -v '^ *+' conftest.er1 >conftest.err
3466  rm -f conftest.er1
3467  cat conftest.err >&5
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); } &&
3470         { ac_try='test -z "$ac_f77_werror_flag"
3471                         || test ! -s conftest.err'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; } &&
3477         { ac_try='test -s conftest.$ac_objext'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; }; then
3483  ac_cv_prog_f77_g=yes
3484else
3485  echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488ac_cv_prog_f77_g=no
3489fi
3490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491
3492fi
3493echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3494echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3495if test "$ac_test_FFLAGS" = set; then
3496  FFLAGS=$ac_save_FFLAGS
3497elif test $ac_cv_prog_f77_g = yes; then
3498  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3499    FFLAGS="-g -O2"
3500  else
3501    FFLAGS="-g"
3502  fi
3503else
3504  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3505    FFLAGS="-O2"
3506  else
3507    FFLAGS=
3508  fi
3509fi
3510
3511G77=`test $ac_compiler_gnu = yes && echo yes`
3512ac_ext=f
3513ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3514ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3516
3517else
3518  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3519echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3520fi
3521
3522FFLAGS="$save_fflags"
3523
3524# Check if a project specific FFLAGS variable has been set
3525if test x$COIN_PRJCT != x; then
3526  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3527  if test x$coin_tmp = xset; then
3528    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3529  fi
3530fi
3531
3532if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3533
3534  coin_add_fflags=
3535  coin_opt_fflags=
3536  coin_dbg_fflags=
3537  coin_warn_fflags=
3538
3539  if test "$G77" = "yes"; then
3540    coin_opt_fflags="-O3"
3541    coin_add_fflags="-pipe"
3542    coin_dbg_fflags="-g -O0"
3543  else
3544    case $build in
3545      *-cygwin* | *-mingw*)
3546        case $F77 in
3547          ifort* | */ifort* | IFORT* | */IFORT* )
3548            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3549              coin_opt_fflags='-MD -O3'
3550              coin_dbg_fflags='-MDd -debug'
3551            else
3552              coin_opt_fflags='-MT -O3'
3553              coin_dbg_fflags='-MTd -debug'
3554            fi
3555            coin_add_fflags='-fpp -nologo'
3556          ;;
3557          compile_f2c*)
3558            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3559              coin_opt_fflags='-MD -O2'
3560              coin_dbg_fflags='-MDd'
3561            else
3562              coin_opt_fflags='-MT -O2'
3563              coin_dbg_fflags='-MTd'
3564            fi
3565            coin_add_fflags='-nologo -wd4996'
3566          ;;
3567        esac
3568        ;;
3569      *-linux-*)
3570        case $F77 in
3571          ifc* | */ifc* | ifort* | */ifort*)
3572            coin_opt_fflags="-O3 -ip"
3573            coin_add_fflags="-cm -w90 -w95"
3574            coin_dbg_fflags="-g -CA -CB -CS"
3575            # Check if -i_dynamic is necessary (for new glibc library)
3576            FFLAGS=
3577            cat >conftest.$ac_ext <<_ACEOF
3578      program main
3579      write(*,*) 'Hello world'
3580      end
3581_ACEOF
3582rm -f conftest.$ac_objext conftest$ac_exeext
3583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3584  (eval $ac_link) 2>conftest.er1
3585  ac_status=$?
3586  grep -v '^ *+' conftest.er1 >conftest.err
3587  rm -f conftest.er1
3588  cat conftest.err >&5
3589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590  (exit $ac_status); } &&
3591         { ac_try='test -z "$ac_f77_werror_flag"
3592                         || test ! -s conftest.err'
3593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594  (eval $ac_try) 2>&5
3595  ac_status=$?
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); }; } &&
3598         { ac_try='test -s conftest$ac_exeext'
3599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600  (eval $ac_try) 2>&5
3601  ac_status=$?
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); }; }; then
3604  :
3605else
3606  echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609coin_add_fflags="-i_dynamic $coin_add_fflags"
3610fi
3611rm -f conftest.err conftest.$ac_objext \
3612      conftest$ac_exeext conftest.$ac_ext
3613            ;;
3614          pgf77* | */pgf77* | pgf90* | */pgf90*)
3615            coin_opt_fflags="-fast"
3616            coin_add_fflags="-Kieee -pc 64"
3617            coin_dbg_fflags="-g"
3618          ;;
3619        esac
3620        ;;
3621      *-ibm-*)
3622        case "$F77" in
3623          xlf* | */xlf* | mpxlf* | */mpxlf* )
3624            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3625            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3626            coin_dbg_fflags="-g -C"
3627            ;;
3628        esac
3629        ;;
3630      *-hp-*)
3631        coin_opt_fflags="+O3"
3632        coin_add_fflags="+U77"
3633        coin_dbg_fflags="-C -g"
3634        ;;
3635      *-*-solaris*)
3636        coin_opt_fflags="-O4"
3637        coin_dbg_fflags="-g"
3638        ;;
3639      *-sgi-*)
3640        coin_opt_fflags="-O5 -OPT:Olimit=0"
3641        coin_dbg_fflags="-g"
3642        ;;
3643    esac
3644  fi
3645
3646  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3647    coin_dbg_fflags="-g"
3648  fi
3649
3650  if test -z "$coin_opt_fflags"; then
3651    # Try if -O option works if nothing else is set
3652    FFLAGS=-O
3653    cat >conftest.$ac_ext <<_ACEOF
3654      program main
3655      integer i
3656      end
3657_ACEOF
3658rm -f conftest.$ac_objext conftest$ac_exeext
3659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3660  (eval $ac_link) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } &&
3667         { ac_try='test -z "$ac_f77_werror_flag"
3668                         || test ! -s conftest.err'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; } &&
3674         { ac_try='test -s conftest$ac_exeext'
3675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676  (eval $ac_try) 2>&5
3677  ac_status=$?
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); }; }; then
3680  coin_opt_fflags="-O"
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685fi
3686rm -f conftest.err conftest.$ac_objext \
3687      conftest$ac_exeext conftest.$ac_ext
3688  fi
3689
3690  # if PM doesn't want the warning messages, take them out
3691  if test x"$coin_skip_warn_fflags" = xyes; then
3692    coin_warn_fflags=
3693  fi
3694
3695  if test x${DBG_FFLAGS+set} != xset; then
3696    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3697  fi
3698  if test x${OPT_FFLAGS+set} != xset; then
3699    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3700  fi
3701
3702  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3703  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3704
3705  if test "$coin_debug_compile" = "true"; then
3706    FFLAGS="$DBG_FFLAGS"
3707  else
3708    FFLAGS="$OPT_FFLAGS"
3709  fi
3710else
3711  FFLAGS="$FFLAGS $ADD_FFLAGS"
3712  if test x${DBG_FFLAGS+set} != xset; then
3713    DBG_FFLAGS="$FFLAGS"
3714  fi
3715  if test x${OPT_FFLAGS+set} != xset; then
3716    OPT_FFLAGS="$FFLAGS"
3717  fi
3718fi
3719
3720# Try if FFLAGS works
3721if test "$F77" != "unavailable" ; then
3722  cat >conftest.$ac_ext <<_ACEOF
3723      program main
3724      integer i
3725      end
3726_ACEOF
3727rm -f conftest.$ac_objext conftest$ac_exeext
3728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729  (eval $ac_link) 2>conftest.er1
3730  ac_status=$?
3731  grep -v '^ *+' conftest.er1 >conftest.err
3732  rm -f conftest.er1
3733  cat conftest.err >&5
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } &&
3736         { ac_try='test -z "$ac_f77_werror_flag"
3737                         || test ! -s conftest.err'
3738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739  (eval $ac_try) 2>&5
3740  ac_status=$?
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); }; } &&
3743         { ac_try='test -s conftest$ac_exeext'
3744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745  (eval $ac_try) 2>&5
3746  ac_status=$?
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); }; }; then
3749  :
3750else
3751  echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754FFLAGS=
3755fi
3756rm -f conftest.err conftest.$ac_objext \
3757      conftest$ac_exeext conftest.$ac_ext
3758  if test -z "$FFLAGS"; then
3759    { 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
3760echo "$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;}
3761    FFLAGS='-O'
3762    cat >conftest.$ac_ext <<_ACEOF
3763      program main
3764      integer i
3765      end
3766_ACEOF
3767rm -f conftest.$ac_objext conftest$ac_exeext
3768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3769  (eval $ac_link) 2>conftest.er1
3770  ac_status=$?
3771  grep -v '^ *+' conftest.er1 >conftest.err
3772  rm -f conftest.er1
3773  cat conftest.err >&5
3774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775  (exit $ac_status); } &&
3776         { ac_try='test -z "$ac_f77_werror_flag"
3777                         || test ! -s conftest.err'
3778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779  (eval $ac_try) 2>&5
3780  ac_status=$?
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); }; } &&
3783         { ac_try='test -s conftest$ac_exeext'
3784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785  (eval $ac_try) 2>&5
3786  ac_status=$?
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); }; }; then
3789  :
3790else
3791  echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
3794FFLAGS=
3795fi
3796rm -f conftest.err conftest.$ac_objext \
3797      conftest$ac_exeext conftest.$ac_ext
3798    if test -z "$FFLAGS"; then
3799      { 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
3800echo "$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;}
3801    fi
3802  fi
3803fi
3804
3805{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3806echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3807
3808
3809if test x"$MPIF77" = x; then :; else
3810  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3811echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3812  F77="$MPIF77"
3813fi
3814
3815# correct the LD variable if we use the intel fortran compiler in windows
3816case "$F77" in
3817  ifort* | */ifort* | IFORT* | */IFORT*)
3818    LD=link
3819    ;;
3820esac
3821
3822ac_ext=c
3823ac_cpp='$CPP $CPPFLAGS'
3824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827
3828
3829
3830# Get the linker flags (FLIBS) that are required for linking against this blas library
3831
3832# get FLIBS
3833ac_ext=f
3834ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3835ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3837echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3838echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3839if test "${ac_cv_prog_f77_v+set}" = set; then
3840  echo $ECHO_N "(cached) $ECHO_C" >&6
3841else
3842  cat >conftest.$ac_ext <<_ACEOF
3843      program main
3844
3845      end
3846_ACEOF
3847rm -f conftest.$ac_objext
3848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3849  (eval $ac_compile) 2>conftest.er1
3850  ac_status=$?
3851  grep -v '^ *+' conftest.er1 >conftest.err
3852  rm -f conftest.er1
3853  cat conftest.err >&5
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); } &&
3856         { ac_try='test -z "$ac_f77_werror_flag"
3857                         || test ! -s conftest.err'
3858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859  (eval $ac_try) 2>&5
3860  ac_status=$?
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); }; } &&
3863         { ac_try='test -s conftest.$ac_objext'
3864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3865  (eval $ac_try) 2>&5
3866  ac_status=$?
3867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868  (exit $ac_status); }; }; then
3869  ac_cv_prog_f77_v=
3870# Try some options frequently used verbose output
3871for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3872  cat >conftest.$ac_ext <<_ACEOF
3873      program main
3874
3875      end
3876_ACEOF
3877
3878# Compile and link our simple test program by passing a flag (argument
3879# 1 to this macro) to the Fortran compiler in order to get
3880# "verbose" output that we can then parse for the Fortran linker
3881# flags.
3882ac_save_FFLAGS=$FFLAGS
3883FFLAGS="$FFLAGS $ac_verb"
3884(eval echo $as_me:3884: \"$ac_link\") >&5
3885ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3886echo "$ac_f77_v_output" >&5
3887FFLAGS=$ac_save_FFLAGS
3888
3889rm -f conftest*
3890
3891# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3892# /foo, /bar, and /baz are search directories for the Fortran linker.
3893# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3894ac_f77_v_output="`echo $ac_f77_v_output |
3895        grep 'LPATH is:' |
3896        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3897
3898case $ac_f77_v_output in
3899  # If we are using xlf then replace all the commas with spaces.
3900  *xlfentry*)
3901    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3902
3903  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3904  # $LIBS confuse us, and the libraries appear later in the output anyway).
3905  *mGLOB_options_string*)
3906    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3907
3908  # If we are using Cray Fortran then delete quotes.
3909  # Use "\"" instead of '"' for font-lock-mode.
3910  # FIXME: a more general fix for quoted arguments with spaces?
3911  *cft90*)
3912    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3913esac
3914
3915
3916  # look for -l* and *.a constructs in the output
3917  for ac_arg in $ac_f77_v_output; do
3918     case $ac_arg in
3919        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3920          ac_cv_prog_f77_v=$ac_verb
3921          break 2 ;;
3922     esac
3923  done
3924done
3925if test -z "$ac_cv_prog_f77_v"; then
3926   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3927echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3928fi
3929else
3930  echo "$as_me: failed program was:" >&5
3931sed 's/^/| /' conftest.$ac_ext >&5
3932
3933{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3934echo "$as_me: WARNING: compilation failed" >&2;}
3935fi
3936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937
3938fi
3939echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3940echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3941echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3942echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3943if test "${ac_cv_f77_libs+set}" = set; then
3944  echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946  if test "x$FLIBS" != "x"; then
3947  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3948else
3949
3950cat >conftest.$ac_ext <<_ACEOF
3951      program main
3952
3953      end
3954_ACEOF
3955
3956# Compile and link our simple test program by passing a flag (argument
3957# 1 to this macro) to the Fortran compiler in order to get
3958# "verbose" output that we can then parse for the Fortran linker
3959# flags.
3960ac_save_FFLAGS=$FFLAGS
3961FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3962(eval echo $as_me:3962: \"$ac_link\") >&5
3963ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3964echo "$ac_f77_v_output" >&5
3965FFLAGS=$ac_save_FFLAGS
3966
3967rm -f conftest*
3968
3969# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3970# /foo, /bar, and /baz are search directories for the Fortran linker.
3971# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3972ac_f77_v_output="`echo $ac_f77_v_output |
3973        grep 'LPATH is:' |
3974        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3975
3976case $ac_f77_v_output in
3977  # If we are using xlf then replace all the commas with spaces.
3978  *xlfentry*)
3979    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3980
3981  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3982  # $LIBS confuse us, and the libraries appear later in the output anyway).
3983  *mGLOB_options_string*)
3984    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3985
3986  # If we are using Cray Fortran then delete quotes.
3987  # Use "\"" instead of '"' for font-lock-mode.
3988  # FIXME: a more general fix for quoted arguments with spaces?
3989  *cft90*)
3990    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3991esac
3992
3993
3994
3995ac_cv_f77_libs=
3996
3997# Save positional arguments (if any)
3998ac_save_positional="$@"
3999
4000set X $ac_f77_v_output
4001while test $# != 1; do
4002  shift
4003  ac_arg=$1
4004  case $ac_arg in
4005        [\\/]*.a | ?:[\\/]*.a)
4006            ac_exists=false
4007  for ac_i in $ac_cv_f77_libs; do
4008    if test x"$ac_arg" = x"$ac_i"; then
4009      ac_exists=true
4010      break
4011    fi
4012  done
4013
4014  if test x"$ac_exists" = xtrue; then
4015  :
4016else
4017  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4018fi
4019
4020          ;;
4021        -bI:*)
4022            ac_exists=false
4023  for ac_i in $ac_cv_f77_libs; do
4024    if test x"$ac_arg" = x"$ac_i"; then
4025      ac_exists=true
4026      break
4027    fi
4028  done
4029
4030  if test x"$ac_exists" = xtrue; then
4031  :
4032else
4033  if test "$ac_compiler_gnu" = yes; then
4034  for ac_link_opt in $ac_arg; do
4035    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4036  done
4037else
4038  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4039fi
4040fi
4041
4042          ;;
4043          # Ignore these flags.
4044        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4045          ;;
4046        -lkernel32)
4047          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4048          ;;
4049        -[LRuY])
4050          # These flags, when seen by themselves, take an argument.
4051          # We remove the space between option and argument and re-iterate
4052          # unless we find an empty arg or a new option (starting with -)
4053          case $2 in
4054             "" | -*);;
4055             *)
4056                ac_arg="$ac_arg$2"
4057                shift; shift
4058                set X $ac_arg "$@"
4059                ;;
4060          esac
4061          ;;
4062        -YP,*)
4063          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4064              ac_exists=false
4065  for ac_i in $ac_cv_f77_libs; do
4066    if test x"$ac_j" = x"$ac_i"; then
4067      ac_exists=true
4068      break
4069    fi
4070  done
4071
4072  if test x"$ac_exists" = xtrue; then
4073  :
4074else
4075  ac_arg="$ac_arg $ac_j"
4076                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4077fi
4078
4079          done
4080          ;;
4081        -[lLR]*)
4082            ac_exists=false
4083  for ac_i in $ac_cv_f77_libs; do
4084    if test x"$ac_arg" = x"$ac_i"; then
4085      ac_exists=true
4086      break
4087    fi
4088  done
4089
4090  if test x"$ac_exists" = xtrue; then
4091  :
4092else
4093  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4094fi
4095
4096          ;;
4097          # Ignore everything else.
4098  esac
4099done
4100# restore positional arguments
4101set X $ac_save_positional; shift
4102
4103# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4104# then we insist that the "run path" must be an absolute path (i.e. it
4105# must begin with a "/").
4106case `(uname -sr) 2>/dev/null` in
4107   "SunOS 5"*)
4108      ac_ld_run_path=`echo $ac_f77_v_output |
4109                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4110      test "x$ac_ld_run_path" != x &&
4111        if test "$ac_compiler_gnu" = yes; then
4112  for ac_link_opt in $ac_ld_run_path; do
4113    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4114  done
4115else
4116  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4117fi
4118      ;;
4119esac
4120fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4121
4122fi
4123echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4124echo "${ECHO_T}$ac_cv_f77_libs" >&6
4125FLIBS="$ac_cv_f77_libs"
4126
4127
4128ac_ext=c
4129ac_cpp='$CPP $CPPFLAGS'
4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134orig_FLIBS="$FLIBS"
4135
4136# If FLIBS has been set by the user, we just restore its value here
4137if test x"$save_FLIBS" != x; then
4138  FLIBS="$save_FLIBS"
4139else
4140  # This is to correct a missing exclusion in autoconf 2.59
4141  if test x"$FLIBS" != x; then
4142    my_flibs=
4143    for flag in $FLIBS; do
4144      case $flag in
4145        -lcrt*.o) ;;
4146        -lcygwin) ;;
4147        -lgcc*)   ;;
4148               *) my_flibs="$my_flibs $flag" ;;
4149      esac
4150    done
4151    FLIBS="$my_flibs"
4152  fi
4153
4154  case $build in
4155  # The following is a fix to define FLIBS for ifort on Windows
4156  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4157  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4158  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4159  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4160  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4161     *-cygwin* | *-mingw*)
4162       case "$F77" in
4163#         ifort* | */ifort* | IFORT* | */IFORT*)
4164#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4165#           if "$coin_debug_compile" = true ; then
4166#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4167#           else
4168#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4169#           fi
4170#           ;;
4171         compile_f2c*)
4172           FLIBS=`$F77 -FLIBS` ;;
4173       esac;;
4174     *-hp-*)
4175         FLIBS="$FLIBS -lm";;
4176     *-ibm-*)
4177         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4178     *-linux-*)
4179       case "$F77" in
4180         pgf77* | */pgf77* | pgf90* | */pgf90*)
4181# ask linker to go through the archives multiple times
4182# (the Fortran compiler seems to do that automatically...)
4183           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4184       esac
4185  esac
4186  ac_cv_f77_libs="$FLIBS"
4187fi
4188
4189if test "x$orig_FLIBS" != "x$FLIBS" ; then
4190  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4191echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4192fi
4193
4194ac_ext=f
4195ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4196ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4198
4199echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4200echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4201if test "${ac_cv_f77_dummy_main+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  ac_f77_dm_save_LIBS=$LIBS
4205 LIBS="$LIBS $FLIBS"
4206 ac_fortran_dm_var=F77_DUMMY_MAIN
4207 ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 # First, try linking without a dummy main:
4214 cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h.  */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h.  */
4220
4221#ifdef F77_DUMMY_MAIN
4222
4223#  ifdef __cplusplus
4224     extern "C"
4225#  endif
4226   int F77_DUMMY_MAIN() { return 1; }
4227
4228#endif
4229int
4230main ()
4231{
4232
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237rm -f conftest.$ac_objext conftest$ac_exeext
4238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239  (eval $ac_link) 2>conftest.er1
4240  ac_status=$?
4241  grep -v '^ *+' conftest.er1 >conftest.err
4242  rm -f conftest.er1
4243  cat conftest.err >&5
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); } &&
4246         { ac_try='test -z "$ac_c_werror_flag"
4247                         || test ! -s conftest.err'
4248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249  (eval $ac_try) 2>&5
4250  ac_status=$?
4251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252  (exit $ac_status); }; } &&
4253         { ac_try='test -s conftest$ac_exeext'
4254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255  (eval $ac_try) 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }; }; then
4259  ac_cv_fortran_dummy_main=none
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264ac_cv_fortran_dummy_main=unknown
4265fi
4266rm -f conftest.err conftest.$ac_objext \
4267      conftest$ac_exeext conftest.$ac_ext
4268
4269 if test $ac_cv_fortran_dummy_main = unknown; then
4270   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4271     cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h.  */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h.  */
4277#define $ac_fortran_dm_var $ac_func
4278#ifdef F77_DUMMY_MAIN
4279
4280#  ifdef __cplusplus
4281     extern "C"
4282#  endif
4283   int F77_DUMMY_MAIN() { return 1; }
4284
4285#endif
4286int
4287main ()
4288{
4289
4290  ;
4291  return 0;
4292}
4293_ACEOF
4294rm -f conftest.$ac_objext conftest$ac_exeext
4295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4296  (eval $ac_link) 2>conftest.er1
4297  ac_status=$?
4298  grep -v '^ *+' conftest.er1 >conftest.err
4299  rm -f conftest.er1
4300  cat conftest.err >&5
4301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302  (exit $ac_status); } &&
4303         { ac_try='test -z "$ac_c_werror_flag"
4304                         || test ! -s conftest.err'
4305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306  (eval $ac_try) 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); }; } &&
4310         { ac_try='test -s conftest$ac_exeext'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; }; then
4316  ac_cv_fortran_dummy_main=$ac_func; break
4317else
4318  echo "$as_me: failed program was:" >&5
4319sed 's/^/| /' conftest.$ac_ext >&5
4320
4321fi
4322rm -f conftest.err conftest.$ac_objext \
4323      conftest$ac_exeext conftest.$ac_ext
4324   done
4325 fi
4326 ac_ext=f
4327ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4328ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4330 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4331 rm -f conftest*
4332 LIBS=$ac_f77_dm_save_LIBS
4333
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4336echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4337F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4338if test "$F77_DUMMY_MAIN" != unknown; then
4339  if test $F77_DUMMY_MAIN != none; then
4340
4341cat >>confdefs.h <<_ACEOF
4342#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4343_ACEOF
4344
4345  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4346
4347cat >>confdefs.h <<\_ACEOF
4348#define FC_DUMMY_MAIN_EQ_F77 1
4349_ACEOF
4350
4351  fi
4352fi
4353else
4354  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4355See \`config.log' for more details." >&5
4356echo "$as_me: error: linking to Fortran libraries from C fails
4357See \`config.log' for more details." >&2;}
4358   { (exit 1); exit 1; }; }
4359fi
4360
4361
4362ac_ext=f
4363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4366
4367ac_ext=f
4368ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4369ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4371echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4372echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4373if test "${ac_cv_f77_mangling+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  cat >conftest.$ac_ext <<_ACEOF
4377      subroutine foobar()
4378      return
4379      end
4380      subroutine foo_bar()
4381      return
4382      end
4383_ACEOF
4384rm -f conftest.$ac_objext
4385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4386  (eval $ac_compile) 2>conftest.er1
4387  ac_status=$?
4388  grep -v '^ *+' conftest.er1 >conftest.err
4389  rm -f conftest.er1
4390  cat conftest.err >&5
4391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392  (exit $ac_status); } &&
4393         { ac_try='test -z "$ac_f77_werror_flag"
4394                         || test ! -s conftest.err'
4395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396  (eval $ac_try) 2>&5
4397  ac_status=$?
4398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399  (exit $ac_status); }; } &&
4400         { ac_try='test -s conftest.$ac_objext'
4401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402  (eval $ac_try) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); }; }; then
4406  mv conftest.$ac_objext cfortran_test.$ac_objext
4407
4408  ac_save_LIBS=$LIBS
4409  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4410
4411  ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416  ac_success=no
4417  for ac_foobar in foobar FOOBAR; do
4418    for ac_underscore in "" "_"; do
4419      ac_func="$ac_foobar$ac_underscore"
4420      cat >conftest.$ac_ext <<_ACEOF
4421/* confdefs.h.  */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h.  */
4426
4427/* Override any gcc2 internal prototype to avoid an error.  */
4428#ifdef __cplusplus
4429extern "C"
4430#endif
4431/* We use char because int might match the return type of a gcc2
4432   builtin and then its argument prototype would still apply.  */
4433char $ac_func ();
4434#ifdef F77_DUMMY_MAIN
4435
4436#  ifdef __cplusplus
4437     extern "C"
4438#  endif
4439   int F77_DUMMY_MAIN() { return 1; }
4440
4441#endif
4442int
4443main ()
4444{
4445$ac_func ();
4446  ;
4447  return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext conftest$ac_exeext
4451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4452  (eval $ac_link) 2>conftest.er1
4453  ac_status=$?
4454  grep -v '^ *+' conftest.er1 >conftest.err
4455  rm -f conftest.er1
4456  cat conftest.err >&5
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); } &&
4459         { ac_try='test -z "$ac_c_werror_flag"
4460                         || test ! -s conftest.err'
4461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462  (eval $ac_try) 2>&5
4463  ac_status=$?
4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465  (exit $ac_status); }; } &&
4466         { ac_try='test -s conftest$ac_exeext'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; }; then
4472  ac_success=yes; break 2
4473else
4474  echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477fi
4478rm -f conftest.err conftest.$ac_objext \
4479      conftest$ac_exeext conftest.$ac_ext
4480    done
4481  done
4482  ac_ext=f
4483ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4484ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4486
4487  if test "$ac_success" = "yes"; then
4488     case $ac_foobar in
4489        foobar)
4490           ac_case=lower
4491           ac_foo_bar=foo_bar
4492           ;;
4493        FOOBAR)
4494           ac_case=upper
4495           ac_foo_bar=FOO_BAR
4496           ;;
4497     esac
4498
4499     ac_ext=c
4500ac_cpp='$CPP $CPPFLAGS'
4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504     ac_success_extra=no
4505     for ac_extra in "" "_"; do
4506        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4507        cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513
4514/* Override any gcc2 internal prototype to avoid an error.  */
4515#ifdef __cplusplus
4516extern "C"
4517#endif
4518/* We use char because int might match the return type of a gcc2
4519   builtin and then its argument prototype would still apply.  */
4520char $ac_func ();
4521#ifdef F77_DUMMY_MAIN
4522
4523#  ifdef __cplusplus
4524     extern "C"
4525#  endif
4526   int F77_DUMMY_MAIN() { return 1; }
4527
4528#endif
4529int
4530main ()
4531{
4532$ac_func ();
4533  ;
4534  return 0;
4535}
4536_ACEOF
4537rm -f conftest.$ac_objext conftest$ac_exeext
4538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539  (eval $ac_link) 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } &&
4546         { ac_try='test -z "$ac_c_werror_flag"
4547                         || test ! -s conftest.err'
4548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549  (eval $ac_try) 2>&5
4550  ac_status=$?
4551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552  (exit $ac_status); }; } &&
4553         { ac_try='test -s conftest$ac_exeext'
4554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555  (eval $ac_try) 2>&5
4556  ac_status=$?
4557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558  (exit $ac_status); }; }; then
4559  ac_success_extra=yes; break
4560else
4561  echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
4564fi
4565rm -f conftest.err conftest.$ac_objext \
4566      conftest$ac_exeext conftest.$ac_ext
4567     done
4568     ac_ext=f
4569ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4570ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4572
4573     if test "$ac_success_extra" = "yes"; then
4574        ac_cv_f77_mangling="$ac_case case"
4575        if test -z "$ac_underscore"; then
4576           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4577        else
4578           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4579        fi
4580        if test -z "$ac_extra"; then
4581           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4582        else
4583           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4584        fi
4585      else
4586        ac_cv_f77_mangling="unknown"
4587      fi
4588  else
4589     ac_cv_f77_mangling="unknown"
4590  fi
4591
4592  LIBS=$ac_save_LIBS
4593  rm -f cfortran_test* conftest*
4594else
4595  echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4599See \`config.log' for more details." >&5
4600echo "$as_me: error: cannot compile a simple Fortran program
4601See \`config.log' for more details." >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606fi
4607echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4608echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4609
4610ac_ext=f
4611ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4612ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4614
4615
4616ac_ext=f
4617ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4618ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4620
4621ac_ext=f
4622ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4623ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4625
4626
4627case $ac_cv_f77_mangling in
4628  "lower case, no underscore, no extra underscore")
4629          cat >>confdefs.h <<\_ACEOF
4630#define F77_FUNC(name,NAME) name
4631_ACEOF
4632
4633          cat >>confdefs.h <<\_ACEOF
4634#define F77_FUNC_(name,NAME) name
4635_ACEOF
4636 ;;
4637  "lower case, no underscore, extra underscore")
4638          cat >>confdefs.h <<\_ACEOF
4639#define F77_FUNC(name,NAME) name
4640_ACEOF
4641
4642          cat >>confdefs.h <<\_ACEOF
4643#define F77_FUNC_(name,NAME) name ## _
4644_ACEOF
4645 ;;
4646  "lower case, underscore, no extra underscore")
4647          cat >>confdefs.h <<\_ACEOF
4648#define F77_FUNC(name,NAME) name ## _
4649_ACEOF
4650
4651          cat >>confdefs.h <<\_ACEOF
4652#define F77_FUNC_(name,NAME) name ## _
4653_ACEOF
4654 ;;
4655  "lower case, underscore, extra underscore")
4656          cat >>confdefs.h <<\_ACEOF
4657#define F77_FUNC(name,NAME) name ## _
4658_ACEOF
4659
4660          cat >>confdefs.h <<\_ACEOF
4661#define F77_FUNC_(name,NAME) name ## __
4662_ACEOF
4663 ;;
4664  "upper case, no underscore, no extra underscore")
4665          cat >>confdefs.h <<\_ACEOF
4666#define F77_FUNC(name,NAME) NAME
4667_ACEOF
4668
4669          cat >>confdefs.h <<\_ACEOF
4670#define F77_FUNC_(name,NAME) NAME
4671_ACEOF
4672 ;;
4673  "upper case, no underscore, extra underscore")
4674          cat >>confdefs.h <<\_ACEOF
4675#define F77_FUNC(name,NAME) NAME
4676_ACEOF
4677
4678          cat >>confdefs.h <<\_ACEOF
4679#define F77_FUNC_(name,NAME) NAME ## _
4680_ACEOF
4681 ;;
4682  "upper case, underscore, no extra underscore")
4683          cat >>confdefs.h <<\_ACEOF
4684#define F77_FUNC(name,NAME) NAME ## _
4685_ACEOF
4686
4687          cat >>confdefs.h <<\_ACEOF
4688#define F77_FUNC_(name,NAME) NAME ## _
4689_ACEOF
4690 ;;
4691  "upper case, underscore, extra underscore")
4692          cat >>confdefs.h <<\_ACEOF
4693#define F77_FUNC(name,NAME) NAME ## _
4694_ACEOF
4695
4696          cat >>confdefs.h <<\_ACEOF
4697#define F77_FUNC_(name,NAME) NAME ## __
4698_ACEOF
4699 ;;
4700  *)
4701          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4702echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4703          ;;
4704esac
4705
4706ac_ext=f
4707ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4708ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4710
4711ac_ext=c
4712ac_cpp='$CPP $CPPFLAGS'
4713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717
4718
4719
4720# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4721FILTERSQP_PCLIBS="$FLIBS"
4722
4723
4724# Check if pkg-config is available (to setup addlibs file)
4725
4726
4727# Check whether --enable-pkg-config or --disable-pkg-config was given.
4728if test "${enable_pkg_config+set}" = set; then
4729  enableval="$enable_pkg_config"
4730  use_pkgconfig="$enableval"
4731else
4732  if test x$coin_cc_is_cl = xtrue; then
4733     use_pkgconfig=no
4734   else
4735     use_pkgconfig=yes
4736   fi
4737fi;
4738
4739if test $use_pkgconfig = yes ; then
4740  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4741    if test -n "$ac_tool_prefix"; then
4742  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4743set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4744echo "$as_me:$LINENO: checking for $ac_word" >&5
4745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4746if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4747  echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749  if test -n "$PKG_CONFIG"; then
4750  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757  for ac_exec_ext in '' $ac_executable_extensions; do
4758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764done
4765
4766fi
4767fi
4768PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4769if test -n "$PKG_CONFIG"; then
4770  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4771echo "${ECHO_T}$PKG_CONFIG" >&6
4772else
4773  echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775fi
4776
4777fi
4778if test -z "$ac_cv_prog_PKG_CONFIG"; then
4779  ac_ct_PKG_CONFIG=$PKG_CONFIG
4780  # Extract the first word of "pkg-config", so it can be a program name with args.
4781set dummy pkg-config; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4785  echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787  if test -n "$ac_ct_PKG_CONFIG"; then
4788  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793  IFS=$as_save_IFS
4794  test -z "$as_dir" && as_dir=.
4795  for ac_exec_ext in '' $ac_executable_extensions; do
4796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799    break 2
4800  fi
4801done
4802done
4803
4804fi
4805fi
4806ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4807if test -n "$ac_ct_PKG_CONFIG"; then
4808  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4809echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4810else
4811  echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813fi
4814
4815  PKG_CONFIG=$ac_ct_PKG_CONFIG
4816else
4817  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4818fi
4819
4820  fi
4821  if test -n "$PKG_CONFIG"; then
4822    _pkg_min_version=0.16.0
4823    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4824echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4825    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4826      echo "$as_me:$LINENO: result: yes" >&5
4827echo "${ECHO_T}yes" >&6
4828    else
4829      echo "$as_me:$LINENO: result: no" >&5
4830echo "${ECHO_T}no" >&6
4831      PKG_CONFIG=""
4832    fi
4833  fi
4834
4835  # check if pkg-config supports the short-errors flag
4836  if test -n "$PKG_CONFIG" && \
4837    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4838    pkg_short_errors=" --short-errors "
4839  else
4840    pkg_short_errors=""
4841  fi
4842fi
4843
4844
4845
4846if test -n "$PKG_CONFIG"; then
4847  COIN_HAS_PKGCONFIG_TRUE=
4848  COIN_HAS_PKGCONFIG_FALSE='#'
4849else
4850  COIN_HAS_PKGCONFIG_TRUE='#'
4851  COIN_HAS_PKGCONFIG_FALSE=
4852fi
4853
4854
4855
4856# assemble pkg-config search path for installed projects
4857COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4858
4859# 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
4860# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4861# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4862if test "x${prefix}" = xNONE ; then
4863  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4864else
4865  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4866fi
4867
4868
4869# Check whether --with-coin-instdir or --without-coin-instdir was given.
4870if test "${with_coin_instdir+set}" = set; then
4871  withval="$with_coin_instdir"
4872  if test -d "$withval"; then : ; else
4873     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4874echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4875   { (exit 1); exit 1; }; }
4876   fi
4877   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4878
4879fi;
4880
4881
4882
4883# assemble additional pkg-config search paths for uninstalled projects
4884if test x$coin_projectdir = xyes ; then
4885  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4886  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4887  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4888  # 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)
4889  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4890  if test -f ../coin_subdirs.txt ; then
4891    for i in `cat ../coin_subdirs.txt` ; do
4892      if test -d ../$i ; then
4893        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4894      fi
4895      if test -d ../$i/pkgconfig ; then
4896        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4897      fi
4898    done
4899  fi
4900
4901  if test -f ../../coin_subdirs.txt ; then
4902    for i in `cat ../../coin_subdirs.txt` ; do
4903      if test -d ../../$i ; then
4904        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4905      fi
4906      if test -d ../../$i/pkgconfig ; then
4907        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4908      fi
4909    done
4910  fi
4911
4912
4913fi
4914
4915if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4916  { 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
4917echo "$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;}
4918fi
4919
4920
4921
4922# Initialize automake
4923echo "$as_me:$LINENO: checking for egrep" >&5
4924echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4925if test "${ac_cv_prog_egrep+set}" = set; then
4926  echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4929    then ac_cv_prog_egrep='grep -E'
4930    else ac_cv_prog_egrep='egrep'
4931    fi
4932fi
4933echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4934echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4935 EGREP=$ac_cv_prog_egrep
4936
4937
4938echo "$as_me:$LINENO: checking whether ln -s works" >&5
4939echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4940LN_S=$as_ln_s
4941if test "$LN_S" = "ln -s"; then
4942  echo "$as_me:$LINENO: result: yes" >&5
4943echo "${ECHO_T}yes" >&6
4944else
4945  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4946echo "${ECHO_T}no, using $LN_S" >&6
4947fi
4948
4949am__api_version="1.9"
4950# Find a good install program.  We prefer a C program (faster),
4951# so one script is as good as another.  But avoid the broken or
4952# incompatible versions:
4953# SysV /etc/install, /usr/sbin/install
4954# SunOS /usr/etc/install
4955# IRIX /sbin/install
4956# AIX /bin/install
4957# AmigaOS /C/install, which installs bootblocks on floppy discs
4958# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4959# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4960# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4961# OS/2's system install, which has a completely different semantic
4962# ./install, which can be erroneously created by make from ./install.sh.
4963echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4964echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4965if test -z "$INSTALL"; then
4966if test "${ac_cv_path_install+set}" = set; then
4967  echo $ECHO_N "(cached) $ECHO_C" >&6
4968else
4969  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972  IFS=$as_save_IFS
4973  test -z "$as_dir" && as_dir=.
4974  # Account for people who put trailing slashes in PATH elements.
4975case $as_dir/ in
4976  ./ | .// | /cC/* | \
4977  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4978  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4979  /usr/ucb/* ) ;;
4980  *)
4981    # OSF1 and SCO ODT 3.0 have their own names for install.
4982    # Don't use installbsd from OSF since it installs stuff as root
4983    # by default.
4984    for ac_prog in ginstall scoinst install; do
4985      for ac_exec_ext in '' $ac_executable_extensions; do
4986        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4987          if test $ac_prog = install &&
4988            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989            # AIX install.  It has an incompatible calling convention.
4990            :
4991          elif test $ac_prog = install &&
4992            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4993            # program-specific install script used by HP pwplus--don't use.
4994            :
4995          else
4996            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4997            break 3
4998          fi
4999        fi
5000      done
5001    done
5002    ;;
5003esac
5004done
5005
5006
5007fi
5008  if test "${ac_cv_path_install+set}" = set; then
5009    INSTALL=$ac_cv_path_install
5010  else
5011    # As a last resort, use the slow shell script.  We don't cache a
5012    # path for INSTALL within a source directory, because that will
5013    # break other packages using the cache if that directory is
5014    # removed, or if the path is relative.
5015    INSTALL=$ac_install_sh
5016  fi
5017fi
5018echo "$as_me:$LINENO: result: $INSTALL" >&5
5019echo "${ECHO_T}$INSTALL" >&6
5020
5021# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5022# It thinks the first close brace ends the variable substitution.
5023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5024
5025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5026
5027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5028
5029echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5030echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5031# Just in case
5032sleep 1
5033echo timestamp > conftest.file
5034# Do `set' in a subshell so we don't clobber the current shell's
5035# arguments.  Must try -L first in case configure is actually a
5036# symlink; some systems play weird games with the mod time of symlinks
5037# (eg FreeBSD returns the mod time of the symlink's containing
5038# directory).
5039if (
5040   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5041   if test "$*" = "X"; then
5042      # -L didn't work.
5043      set X `ls -t $srcdir/configure conftest.file`
5044   fi
5045   rm -f conftest.file
5046   if test "$*" != "X $srcdir/configure conftest.file" \
5047      && test "$*" != "X conftest.file $srcdir/configure"; then
5048
5049      # If neither matched, then we have a broken ls.  This can happen
5050      # if, for instance, CONFIG_SHELL is bash and it inherits a
5051      # broken ls alias from the environment.  This has actually
5052      # happened.  Such a system could not be considered "sane".
5053      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5054alias in your environment" >&5
5055echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5056alias in your environment" >&2;}
5057   { (exit 1); exit 1; }; }
5058   fi
5059
5060   test "$2" = conftest.file
5061   )
5062then
5063   # Ok.
5064   :
5065else
5066   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5067Check your system clock" >&5
5068echo "$as_me: error: newly created file is older than distributed files!
5069Check your system clock" >&2;}
5070   { (exit 1); exit 1; }; }
5071fi
5072echo "$as_me:$LINENO: result: yes" >&5
5073echo "${ECHO_T}yes" >&6
5074test "$program_prefix" != NONE &&
5075  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5076# Use a double $ so make ignores it.
5077test "$program_suffix" != NONE &&
5078  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5079# Double any \ or $.  echo might interpret backslashes.
5080# By default was `s,x,x', remove it if useless.
5081cat <<\_ACEOF >conftest.sed
5082s/[\\$]/&&/g;s/;s,x,x,$//
5083_ACEOF
5084program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5085rm conftest.sed
5086
5087# expand $ac_aux_dir to an absolute path
5088am_aux_dir=`cd $ac_aux_dir && pwd`
5089
5090test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5091# Use eval to expand $SHELL
5092if eval "$MISSING --run true"; then
5093  am_missing_run="$MISSING --run "
5094else
5095  am_missing_run=
5096  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5097echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5098fi
5099
5100if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5101  # We used to keeping the `.' as first argument, in order to
5102  # allow $(mkdir_p) to be used without argument.  As in
5103  #   $(mkdir_p) $(somedir)
5104  # where $(somedir) is conditionally defined.  However this is wrong
5105  # for two reasons:
5106  #  1. if the package is installed by a user who cannot write `.'
5107  #     make install will fail,
5108  #  2. the above comment should most certainly read
5109  #     $(mkdir_p) $(DESTDIR)$(somedir)
5110  #     so it does not work when $(somedir) is undefined and
5111  #     $(DESTDIR) is not.
5112  #  To support the latter case, we have to write
5113  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5114  #  so the `.' trick is pointless.
5115  mkdir_p='mkdir -p --'
5116else
5117  # On NextStep and OpenStep, the `mkdir' command does not
5118  # recognize any option.  It will interpret all options as
5119  # directories to create, and then abort because `.' already
5120  # exists.
5121  for d in ./-p ./--version;
5122  do
5123    test -d $d && rmdir $d
5124  done
5125  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5126  if test -f "$ac_aux_dir/mkinstalldirs"; then
5127    mkdir_p='$(mkinstalldirs)'
5128  else
5129    mkdir_p='$(install_sh) -d'
5130  fi
5131fi
5132
5133for ac_prog in gawk mawk nawk awk
5134do
5135  # Extract the first word of "$ac_prog", so it can be a program name with args.
5136set dummy $ac_prog; ac_word=$2
5137echo "$as_me:$LINENO: checking for $ac_word" >&5
5138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5139if test "${ac_cv_prog_AWK+set}" = set; then
5140  echo $ECHO_N "(cached) $ECHO_C" >&6
5141else
5142  if test -n "$AWK"; then
5143  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5144else
5145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150  for ac_exec_ext in '' $ac_executable_extensions; do
5151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152    ac_cv_prog_AWK="$ac_prog"
5153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154    break 2
5155  fi
5156done
5157done
5158
5159fi
5160fi
5161AWK=$ac_cv_prog_AWK
5162if test -n "$AWK"; then
5163  echo "$as_me:$LINENO: result: $AWK" >&5
5164echo "${ECHO_T}$AWK" >&6
5165else
5166  echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168fi
5169
5170  test -n "$AWK" && break
5171done
5172
5173echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5174echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5175set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5176if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5177  echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179  cat >conftest.make <<\_ACEOF
5180all:
5181        @echo 'ac_maketemp="$(MAKE)"'
5182_ACEOF
5183# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5184eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5185if test -n "$ac_maketemp"; then
5186  eval ac_cv_prog_make_${ac_make}_set=yes
5187else
5188  eval ac_cv_prog_make_${ac_make}_set=no
5189fi
5190rm -f conftest.make
5191fi
5192if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5193  echo "$as_me:$LINENO: result: yes" >&5
5194echo "${ECHO_T}yes" >&6
5195  SET_MAKE=
5196else
5197  echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199  SET_MAKE="MAKE=${MAKE-make}"
5200fi
5201
5202rm -rf .tst 2>/dev/null
5203mkdir .tst 2>/dev/null
5204if test -d .tst; then
5205  am__leading_dot=.
5206else
5207  am__leading_dot=_
5208fi
5209rmdir .tst 2>/dev/null
5210
5211DEPDIR="${am__leading_dot}deps"
5212
5213          ac_config_commands="$ac_config_commands depfiles"
5214
5215
5216am_make=${MAKE-make}
5217cat > confinc << 'END'
5218am__doit:
5219        @echo done
5220.PHONY: am__doit
5221END
5222# If we don't find an include directive, just comment out the code.
5223echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5224echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5225am__include="#"
5226am__quote=
5227_am_result=none
5228# First try GNU make style include.
5229echo "include confinc" > confmf
5230# We grep out `Entering directory' and `Leaving directory'
5231# messages which can occur if `w' ends up in MAKEFLAGS.
5232# In particular we don't look at `^make:' because GNU make might
5233# be invoked under some other name (usually "gmake"), in which
5234# case it prints its new name instead of `make'.
5235if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5236   am__include=include
5237   am__quote=
5238   _am_result=GNU
5239fi
5240# Now try BSD make style include.
5241if test "$am__include" = "#"; then
5242   echo '.include "confinc"' > confmf
5243   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5244      am__include=.include
5245      am__quote="\""
5246      _am_result=BSD
5247   fi
5248fi
5249
5250
5251echo "$as_me:$LINENO: result: $_am_result" >&5
5252echo "${ECHO_T}$_am_result" >&6
5253rm -f confinc confmf
5254
5255# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5256if test "${enable_dependency_tracking+set}" = set; then
5257  enableval="$enable_dependency_tracking"
5258
5259fi;
5260if test "x$enable_dependency_tracking" != xno; then
5261  am_depcomp="$ac_aux_dir/depcomp"
5262  AMDEPBACKSLASH='\'
5263fi
5264
5265
5266if test "x$enable_dependency_tracking" != xno; then
5267  AMDEP_TRUE=
5268  AMDEP_FALSE='#'
5269else
5270  AMDEP_TRUE='#'
5271  AMDEP_FALSE=
5272fi
5273
5274
5275
5276
5277
5278
5279# AC_MSG_NOTICE([Beginning automake initialisation.])
5280# Stuff for automake
5281# test to see if srcdir already configured
5282if test "`cd $srcdir && pwd`" != "`pwd`" &&
5283   test -f $srcdir/config.status; then
5284  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5285echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5286   { (exit 1); exit 1; }; }
5287fi
5288
5289# test whether we have cygpath
5290if test -z "$CYGPATH_W"; then
5291  if (cygpath --version) >/dev/null 2>/dev/null; then
5292    CYGPATH_W='cygpath -w'
5293  else
5294    CYGPATH_W=echo
5295  fi
5296fi
5297
5298
5299# Define the identity of the package.
5300 PACKAGE='thirdpartyfiltersqp'
5301 VERSION='1.2.8'
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define PACKAGE "$PACKAGE"
5306_ACEOF
5307
5308
5309cat >>confdefs.h <<_ACEOF
5310#define VERSION "$VERSION"
5311_ACEOF
5312
5313# Some tools Automake needs.
5314
5315ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5316
5317
5318AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5319
5320
5321AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5322
5323
5324AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5325
5326
5327MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5328
5329install_sh=${install_sh-"$am_aux_dir/install-sh"}
5330
5331# Installed binaries are usually stripped using `strip' when the user
5332# run `make install-strip'.  However `strip' might not be the right
5333# tool to use in cross-compilation environments, therefore Automake
5334# will honor the `STRIP' environment variable to overrule this program.
5335if test "$cross_compiling" != no; then
5336  if test -n "$ac_tool_prefix"; then
5337  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5338set dummy ${ac_tool_prefix}strip; ac_word=$2
5339echo "$as_me:$LINENO: checking for $ac_word" >&5
5340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5341if test "${ac_cv_prog_STRIP+set}" = set; then
5342  echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344  if test -n "$STRIP"; then
5345  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352  for ac_exec_ext in '' $ac_executable_extensions; do
5353  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5355    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356    break 2
5357  fi
5358done
5359done
5360
5361fi
5362fi
5363STRIP=$ac_cv_prog_STRIP
5364if test -n "$STRIP"; then
5365  echo "$as_me:$LINENO: result: $STRIP" >&5
5366echo "${ECHO_T}$STRIP" >&6
5367else
5368  echo "$as_me:$LINENO: result: no" >&5
5369echo "${ECHO_T}no" >&6
5370fi
5371
5372fi
5373if test -z "$ac_cv_prog_STRIP"; then
5374  ac_ct_STRIP=$STRIP
5375  # Extract the first word of "strip", so it can be a program name with args.
5376set dummy strip; ac_word=$2
5377echo "$as_me:$LINENO: checking for $ac_word" >&5
5378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5379if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5380  echo $ECHO_N "(cached) $ECHO_C" >&6
5381else
5382  if test -n "$ac_ct_STRIP"; then
5383  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5384else
5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386for as_dir in $PATH
5387do
5388  IFS=$as_save_IFS
5389  test -z "$as_dir" && as_dir=.
5390  for ac_exec_ext in '' $ac_executable_extensions; do
5391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392    ac_cv_prog_ac_ct_STRIP="strip"
5393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394    break 2
5395  fi
5396done
5397done
5398
5399  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5400fi
5401fi
5402ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5403if test -n "$ac_ct_STRIP"; then
5404  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5405echo "${ECHO_T}$ac_ct_STRIP" >&6
5406else
5407  echo "$as_me:$LINENO: result: no" >&5
5408echo "${ECHO_T}no" >&6
5409fi
5410
5411  STRIP=$ac_ct_STRIP
5412else
5413  STRIP="$ac_cv_prog_STRIP"
5414fi
5415
5416fi
5417INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5418
5419# We need awk for the "check" target.  The system "awk" is bad on
5420# some platforms.
5421# Always define AMTAR for backward compatibility.
5422
5423AMTAR=${AMTAR-"${am_missing_run}tar"}
5424
5425am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5426
5427
5428
5429
5430depcc="$CC"   am_compiler_list=
5431
5432echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5433echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5434if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5435  echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5438  # We make a subdir and do the tests there.  Otherwise we can end up
5439  # making bogus files that we don't know about and never remove.  For
5440  # instance it was reported that on HP-UX the gcc test will end up
5441  # making a dummy file named `D' -- because `-MD' means `put the output
5442  # in D'.
5443  mkdir conftest.dir
5444  # Copy depcomp to subdir because otherwise we won't find it if we're
5445  # using a relative directory.
5446  cp "$am_depcomp" conftest.dir
5447  cd conftest.dir
5448  # We will build objects and dependencies in a subdirectory because
5449  # it helps to detect inapplicable dependency modes.  For instance
5450  # both Tru64's cc and ICC support -MD to output dependencies as a
5451  # side effect of compilation, but ICC will put the dependencies in
5452  # the current directory while Tru64 will put them in the object
5453  # directory.
5454  mkdir sub
5455
5456  am_cv_CC_dependencies_compiler_type=none
5457  if test "$am_compiler_list" = ""; then
5458     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5459  fi
5460  for depmode in $am_compiler_list; do
5461    # Setup a source with many dependencies, because some compilers
5462    # like to wrap large dependency lists on column 80 (with \), and
5463    # we should not choose a depcomp mode which is confused by this.
5464    #
5465    # We need to recreate these files for each test, as the compiler may
5466    # overwrite some of them when testing with obscure command lines.
5467    # This happens at least with the AIX C compiler.
5468    : > sub/conftest.c
5469    for i in 1 2 3 4 5 6; do
5470      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5471      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5472      # Solaris 8's {/usr,}/bin/sh.
5473      touch sub/conftst$i.h
5474    done
5475    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5476
5477    case $depmode in
5478    nosideeffect)
5479      # after this tag, mechanisms are not by side-effect, so they'll
5480      # only be used when explicitly requested
5481      if test "x$enable_dependency_tracking" = xyes; then
5482        continue
5483      else
5484        break
5485      fi
5486      ;;
5487    none) break ;;
5488    esac
5489    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5490    # mode.  It turns out that the SunPro C++ compiler does not properly
5491    # handle `-M -o', and we need to detect this.
5492    if depmode=$depmode \
5493       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5494       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5495       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5496         >/dev/null 2>conftest.err &&
5497       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5498       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5499       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5500      # icc doesn't choke on unknown options, it will just issue warnings
5501      # or remarks (even with -Werror).  So we grep stderr for any message
5502      # that says an option was ignored or not supported.
5503      # When given -MP, icc 7.0 and 7.1 complain thusly:
5504      #   icc: Command line warning: ignoring option '-M'; no argument required
5505      # The diagnosis changed in icc 8.0:
5506      #   icc: Command line remark: option '-MP' not supported
5507      if (grep 'ignoring option' conftest.err ||
5508          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5509        am_cv_CC_dependencies_compiler_type=$depmode
5510        break
5511      fi
5512    fi
5513  done
5514
5515  cd ..
5516  rm -rf conftest.dir
5517else
5518  am_cv_CC_dependencies_compiler_type=none
5519fi
5520
5521fi
5522echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5523echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5524CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5525
5526
5527
5528if
5529  test "x$enable_dependency_tracking" != xno \
5530  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5531  am__fastdepCC_TRUE=
5532  am__fastdepCC_FALSE='#'
5533else
5534  am__fastdepCC_TRUE='#'
5535  am__fastdepCC_FALSE=
5536fi
5537
5538
5539
5540echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5541echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5542    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5543if test "${enable_maintainer_mode+set}" = set; then
5544  enableval="$enable_maintainer_mode"
5545  USE_MAINTAINER_MODE=$enableval
5546else
5547  USE_MAINTAINER_MODE=no
5548fi;
5549  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5550echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5551
5552
5553if test $USE_MAINTAINER_MODE = yes; then
5554  MAINTAINER_MODE_TRUE=
5555  MAINTAINER_MODE_FALSE='#'
5556else
5557  MAINTAINER_MODE_TRUE='#'
5558  MAINTAINER_MODE_FALSE=
5559fi
5560
5561  MAINT=$MAINTAINER_MODE_TRUE
5562
5563
5564
5565coin_have_externals=no
5566if test "$enable_maintainer_mode" = yes; then
5567
5568  # If maintainer mode is chosen, we make sure that the correct versions
5569  # of the tools are used, and that we know where libtool.m4 is (to
5570  # recreate acinclude.m4)
5571
5572
5573  LIBTOOLM4=
5574  # Normally, $HOME
5575  AUTOTOOLS_DFLT=$HOME
5576
5577  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5578echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5579if test "${ac_cv_use_correct_autotools+set}" = set; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  ac_cv_use_correct_autotools=check
5583fi
5584echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5585echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5586
5587  if test $ac_cv_use_correct_autotools = check; then
5588    ac_cv_use_correct_autotools=yes
5589    # Check if we have autoconf
5590    # Extract the first word of "autoconf", so it can be a program name with args.
5591set dummy autoconf; ac_word=$2
5592echo "$as_me:$LINENO: checking for $ac_word" >&5
5593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5594if test "${ac_cv_prog_have_autoconf+set}" = set; then
5595  echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597  if test -n "$have_autoconf"; then
5598  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5599else
5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603  IFS=$as_save_IFS
5604  test -z "$as_dir" && as_dir=.
5605  for ac_exec_ext in '' $ac_executable_extensions; do
5606  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607    ac_cv_prog_have_autoconf="yes"
5608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609    break 2
5610  fi
5611done
5612done
5613
5614  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5615fi
5616fi
5617have_autoconf=$ac_cv_prog_have_autoconf
5618if test -n "$have_autoconf"; then
5619  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5620echo "${ECHO_T}$have_autoconf" >&6
5621else
5622  echo "$as_me:$LINENO: result: no" >&5
5623echo "${ECHO_T}no" >&6
5624fi
5625
5626    if test $have_autoconf = no; then
5627      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5628echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5629   { (exit 1); exit 1; }; }
5630    fi
5631
5632    # Check whether autoconf is the correct version
5633    correct_version='2.59'
5634    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5635    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5636echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5637    autoconf --version > confauto.out 2>&1
5638    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5639      echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641    else
5642      rm -f confauto.out
5643      echo "$as_me:$LINENO: result: no" >&5
5644echo "${ECHO_T}no" >&6
5645      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5646echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5647   { (exit 1); exit 1; }; }
5648    fi
5649    rm -f confauto.out
5650
5651    # Check if the executable autoconf is picked up from the correct location
5652    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5653echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5654    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5655    autoconf_dir=`cd $autoconf_dir; pwd`
5656    if test x$AUTOTOOLS_DIR = x; then
5657      want_dir=$AUTOTOOLS_DFLT/bin
5658    else
5659      want_dir=$AUTOTOOLS_DIR/bin
5660    fi
5661    if test $autoconf_dir = `cd $want_dir; pwd`; then
5662      echo "$as_me:$LINENO: result: yes" >&5
5663echo "${ECHO_T}yes" >&6
5664    else
5665      rm -f confauto.out
5666      echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6
5668      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5669echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5670   { (exit 1); exit 1; }; }
5671    fi
5672
5673    # Check if we have automake
5674    # Extract the first word of "automake", so it can be a program name with args.
5675set dummy automake; ac_word=$2
5676echo "$as_me:$LINENO: checking for $ac_word" >&5
5677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678if test "${ac_cv_prog_have_automake+set}" = set; then
5679  echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681  if test -n "$have_automake"; then
5682  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687  IFS=$as_save_IFS
5688  test -z "$as_dir" && as_dir=.
5689  for ac_exec_ext in '' $ac_executable_extensions; do
5690  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691    ac_cv_prog_have_automake="yes"
5692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693    break 2
5694  fi
5695done
5696done
5697
5698  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5699fi
5700fi
5701have_automake=$ac_cv_prog_have_automake
5702if test -n "$have_automake"; then
5703  echo "$as_me:$LINENO: result: $have_automake" >&5
5704echo "${ECHO_T}$have_automake" >&6
5705else
5706  echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6
5708fi
5709
5710    if test $have_automake = no; then
5711      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5712echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5713   { (exit 1); exit 1; }; }
5714    fi
5715
5716    # Check whether automake is the correct version
5717    correct_version='1.9.6'
5718    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5719    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5720echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5721    automake --version > confauto.out 2>&1
5722    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5723      echo "$as_me:$LINENO: result: yes" >&5
5724echo "${ECHO_T}yes" >&6
5725    else
5726      rm -f confauto.out
5727      echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5730echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5731   { (exit 1); exit 1; }; }
5732    fi
5733    rm -f confauto.out
5734
5735    # Check if the executable automake is picked up from the correct location
5736    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5737echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5738    automake_dir=`which automake | sed -e 's=/automake=='`
5739    automake_dir=`cd $automake_dir; pwd`
5740    if test x$AUTOTOOLS_DIR = x; then
5741      want_dir=$AUTOTOOLS_DFLT/bin
5742    else
5743      want_dir=$AUTOTOOLS_DIR/bin
5744    fi
5745    if test $automake_dir = `cd $want_dir; pwd`; then
5746      echo "$as_me:$LINENO: result: yes" >&5
5747echo "${ECHO_T}yes" >&6
5748    else
5749      rm -f confauto.out
5750      echo "$as_me:$LINENO: result: no" >&5
5751echo "${ECHO_T}no" >&6
5752      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5753echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5754   { (exit 1); exit 1; }; }
5755    fi
5756
5757    # Check if this is the correct version of libtool (with escaped dots)
5758    if test x$AUTOTOOLS_DIR = x; then
5759      want_dir=$AUTOTOOLS_DFLT/share
5760    else
5761      want_dir=$AUTOTOOLS_DIR/share
5762    fi
5763    correct_version='1.5.22'
5764    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5765    if test -r $want_dir/libtool/ltmain.sh; then
5766  have_ltmain=yes
5767  :
5768else
5769  have_ltmain=no
5770  :
5771fi
5772
5773    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5774echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5775    if test $have_ltmain = yes; then
5776    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5777        echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
5779      else
5780        echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5783echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5784   { (exit 1); exit 1; }; }
5785      fi
5786    else
5787      echo "$as_me:$LINENO: result: no" >&5
5788echo "${ECHO_T}no" >&6
5789      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5790echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5791   { (exit 1); exit 1; }; }
5792    fi
5793  fi
5794
5795  # Check if we can find the libtool file
5796  if test x$AUTOTOOLS_DIR = x; then
5797    want_dir=$AUTOTOOLS_DFLT/share
5798  else
5799    want_dir=$AUTOTOOLS_DIR/share
5800  fi
5801  if test -r $want_dir/aclocal/libtool.m4; then
5802  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5803  :
5804else
5805  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5806echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5807   { (exit 1); exit 1; }; }
5808  :
5809fi
5810
5811
5812  # Check if we have an Dependencies file
5813  if test -r $srcdir/Dependencies; then
5814    coin_have_externals=yes
5815  fi
5816  # Check if subversion is installed and understands https
5817  # Extract the first word of "svn", so it can be a program name with args.
5818set dummy svn; ac_word=$2
5819echo "$as_me:$LINENO: checking for $ac_word" >&5
5820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5821if test "${ac_cv_prog_have_svn+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824  if test -n "$have_svn"; then
5825  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5826else
5827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH
5829do
5830  IFS=$as_save_IFS
5831  test -z "$as_dir" && as_dir=.
5832  for ac_exec_ext in '' $ac_executable_extensions; do
5833  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5834    ac_cv_prog_have_svn="yes"
5835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836    break 2
5837  fi
5838done
5839done
5840
5841  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5842fi
5843fi
5844have_svn=$ac_cv_prog_have_svn
5845if test -n "$have_svn"; then
5846  echo "$as_me:$LINENO: result: $have_svn" >&5
5847echo "${ECHO_T}$have_svn" >&6
5848else
5849  echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
5851fi
5852
5853  if test x$have_svn = xyes; then
5854    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5855echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5856if test "${ac_cv_svn_understands_https+set}" = set; then
5857  echo $ECHO_N "(cached) $ECHO_C" >&6
5858else
5859  svn --version > confauto.out 2>&1
5860                    if $EGREP https confauto.out >/dev/null 2>&1; then
5861                      ac_cv_svn_understands_https=yes
5862                    else
5863                      ac_cv_svn_understands_https=no
5864                      have_svn=no
5865                      ac_cv_prog_have_svn=no
5866                    fi
5867                    rm -f confauto.out
5868fi
5869echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5870echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5871  fi
5872
5873  # Find the location of the BuildTools directory
5874  BUILDTOOLSDIR=
5875  if test -r $srcdir/BuildTools/coin.m4; then
5876    BUILDTOOLSDIR=$srcdir/BuildTools
5877  else
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        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5885echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5886   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5887      fi
5888    fi
5889  fi
5890
5891
5892  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5893  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5894    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5895  fi
5896
5897  # The following variable is set to the name of the directory where
5898  # the autotool scripts are located
5899
5900  AUX_DIR=$ac_aux_dir
5901fi
5902
5903# helpful variable for the base directory of this package
5904abs_source_dir=`cd $srcdir; pwd`
5905
5906
5907# Stuff for example Makefiles
5908if test x$prefix = xNONE; then
5909  full_prefix=$ac_default_prefix
5910else
5911  full_prefix=$prefix
5912fi
5913full_prefix=`cd $full_prefix ; pwd`
5914
5915abs_lib_dir=$full_prefix/lib
5916
5917abs_include_dir=$full_prefix/include
5918
5919abs_bin_dir=$full_prefix/bin
5920
5921
5922
5923if test $coin_have_externals = yes && test x$have_svn = xyes; then
5924  HAVE_EXTERNALS_TRUE=
5925  HAVE_EXTERNALS_FALSE='#'
5926else
5927  HAVE_EXTERNALS_TRUE='#'
5928  HAVE_EXTERNALS_FALSE=
5929fi
5930
5931
5932# AC_MSG_NOTICE([End automake initialisation.])
5933
5934
5935
5936# Initialize automake
5937{
5938
5939
5940
5941# START
5942
5943coin_disable_shared=no
5944# Test if force_shared has been set
5945if test "x" = xforce_shared; then
5946  if test x$enable_shared = xno; then
5947    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5948echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5949   { (exit 1); exit 1; }; }
5950  fi
5951  enable_shared=yes;
5952else
5953  # On Cygwin and AIX, building DLLs doesn't work
5954  case $build in
5955    *-cygwin* | *-mingw*)
5956      coin_disable_shared=yes
5957      if test x"$enable_shared" = xyes; then
5958        case "$CC" in
5959          clang* )
5960            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5961echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5962            ;;
5963          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5964            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
5965echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
5966            ;;
5967          *gcc*)
5968            if test x"$enable_dependency_linking" = xyes; then
5969              coin_disable_shared=no
5970            else
5971              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
5972echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
5973            fi
5974            ;;
5975          *)
5976            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
5977echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
5978            ;;
5979        esac
5980      fi
5981    ;;
5982    *-aix*)
5983      coin_disable_shared=yes
5984      platform=AIX
5985      if test x"$enable_shared" = xyes; then
5986        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
5987echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
5988      fi
5989    ;;
5990  esac
5991fi
5992if test x"$coin_disable_shared" = xyes; then
5993  if test x"$enable_shared" = xyes; then
5994    :
5995  else
5996    # we don't disable shared, because it was not selected anyway
5997    coin_disable_shared=no
5998  fi
5999  enable_shared=no
6000fi
6001# By default, we only want the shared objects to be compiled
6002# Check whether --enable-static or --disable-static was given.
6003if test "${enable_static+set}" = set; then
6004  enableval="$enable_static"
6005  p=${PACKAGE-default}
6006    case $enableval in
6007    yes) enable_static=yes ;;
6008    no) enable_static=no ;;
6009    *)
6010     enable_static=no
6011      # Look at the argument we got.  We use all the common list separators.
6012      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6013      for pkg in $enableval; do
6014        IFS="$lt_save_ifs"
6015        if test "X$pkg" = "X$p"; then
6016          enable_static=yes
6017        fi
6018      done
6019      IFS="$lt_save_ifs"
6020      ;;
6021    esac
6022else
6023  enable_static=no
6024fi;
6025
6026
6027
6028
6029# Initialize automake
6030
6031
6032
6033# AC_MSG_NOTICE([Beginning automake initialisation.])
6034# Stuff for automake
6035# test to see if srcdir already configured
6036if test "`cd $srcdir && pwd`" != "`pwd`" &&
6037   test -f $srcdir/config.status; then
6038  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6039echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6040   { (exit 1); exit 1; }; }
6041fi
6042
6043# test whether we have cygpath
6044if test -z "$CYGPATH_W"; then
6045  if (cygpath --version) >/dev/null 2>/dev/null; then
6046    CYGPATH_W='cygpath -w'
6047  else
6048    CYGPATH_W=echo
6049  fi
6050fi
6051
6052
6053# Define the identity of the package.
6054 PACKAGE='thirdpartyfiltersqp'
6055 VERSION='1.2.8'
6056
6057
6058cat >>confdefs.h <<_ACEOF
6059#define PACKAGE "$PACKAGE"
6060_ACEOF
6061
6062
6063cat >>confdefs.h <<_ACEOF
6064#define VERSION "$VERSION"
6065_ACEOF
6066
6067# Some tools Automake needs.
6068
6069ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6070
6071
6072AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6073
6074
6075AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6076
6077
6078AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6079
6080
6081MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6082
6083install_sh=${install_sh-"$am_aux_dir/install-sh"}
6084
6085# Installed binaries are usually stripped using `strip' when the user
6086# run `make install-strip'.  However `strip' might not be the right
6087# tool to use in cross-compilation environments, therefore Automake
6088# will honor the `STRIP' environment variable to overrule this program.
6089if test "$cross_compiling" != no; then
6090  if test -n "$ac_tool_prefix"; then
6091  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6092set dummy ${ac_tool_prefix}strip; ac_word=$2
6093echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6095if test "${ac_cv_prog_STRIP+set}" = set; then
6096  echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098  if test -n "$STRIP"; then
6099  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104  IFS=$as_save_IFS
6105  test -z "$as_dir" && as_dir=.
6106  for ac_exec_ext in '' $ac_executable_extensions; do
6107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110    break 2
6111  fi
6112done
6113done
6114
6115fi
6116fi
6117STRIP=$ac_cv_prog_STRIP
6118if test -n "$STRIP"; then
6119  echo "$as_me:$LINENO: result: $STRIP" >&5
6120echo "${ECHO_T}$STRIP" >&6
6121else
6122  echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6
6124fi
6125
6126fi
6127if test -z "$ac_cv_prog_STRIP"; then
6128  ac_ct_STRIP=$STRIP
6129  # Extract the first word of "strip", so it can be a program name with args.
6130set dummy strip; ac_word=$2
6131echo "$as_me:$LINENO: checking for $ac_word" >&5
6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6133if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6134  echo $ECHO_N "(cached) $ECHO_C" >&6
6135else
6136  if test -n "$ac_ct_STRIP"; then
6137  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6138else
6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140for as_dir in $PATH
6141do
6142  IFS=$as_save_IFS
6143  test -z "$as_dir" && as_dir=.
6144  for ac_exec_ext in '' $ac_executable_extensions; do
6145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146    ac_cv_prog_ac_ct_STRIP="strip"
6147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148    break 2
6149  fi
6150done
6151done
6152
6153  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6154fi
6155fi
6156ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6157if test -n "$ac_ct_STRIP"; then
6158  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6159echo "${ECHO_T}$ac_ct_STRIP" >&6
6160else
6161  echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6
6163fi
6164
6165  STRIP=$ac_ct_STRIP
6166else
6167  STRIP="$ac_cv_prog_STRIP"
6168fi
6169
6170fi
6171INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6172
6173# We need awk for the "check" target.  The system "awk" is bad on
6174# some platforms.
6175# Always define AMTAR for backward compatibility.
6176
6177AMTAR=${AMTAR-"${am_missing_run}tar"}
6178
6179am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6180
6181
6182
6183
6184depcc="$CC"   am_compiler_list=
6185
6186echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6187echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6188if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6189  echo $ECHO_N "(cached) $ECHO_C" >&6
6190else
6191  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6192  # We make a subdir and do the tests there.  Otherwise we can end up
6193  # making bogus files that we don't know about and never remove.  For
6194  # instance it was reported that on HP-UX the gcc test will end up
6195  # making a dummy file named `D' -- because `-MD' means `put the output
6196  # in D'.
6197  mkdir conftest.dir
6198  # Copy depcomp to subdir because otherwise we won't find it if we're
6199  # using a relative directory.
6200  cp "$am_depcomp" conftest.dir
6201  cd conftest.dir
6202  # We will build objects and dependencies in a subdirectory because
6203  # it helps to detect inapplicable dependency modes.  For instance
6204  # both Tru64's cc and ICC support -MD to output dependencies as a
6205  # side effect of compilation, but ICC will put the dependencies in
6206  # the current directory while Tru64 will put them in the object
6207  # directory.
6208  mkdir sub
6209
6210  am_cv_CC_dependencies_compiler_type=none
6211  if test "$am_compiler_list" = ""; then
6212     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6213  fi
6214  for depmode in $am_compiler_list; do
6215    # Setup a source with many dependencies, because some compilers
6216    # like to wrap large dependency lists on column 80 (with \), and
6217    # we should not choose a depcomp mode which is confused by this.
6218    #
6219    # We need to recreate these files for each test, as the compiler may
6220    # overwrite some of them when testing with obscure command lines.
6221    # This happens at least with the AIX C compiler.
6222    : > sub/conftest.c
6223    for i in 1 2 3 4 5 6; do
6224      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6225      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6226      # Solaris 8's {/usr,}/bin/sh.
6227      touch sub/conftst$i.h
6228    done
6229    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6230
6231    case $depmode in
6232    nosideeffect)
6233      # after this tag, mechanisms are not by side-effect, so they'll
6234      # only be used when explicitly requested
6235      if test "x$enable_dependency_tracking" = xyes; then
6236        continue
6237      else
6238        break
6239      fi
6240      ;;
6241    none) break ;;
6242    esac
6243    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6244    # mode.  It turns out that the SunPro C++ compiler does not properly
6245    # handle `-M -o', and we need to detect this.
6246    if depmode=$depmode \
6247       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6248       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6249       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6250         >/dev/null 2>conftest.err &&
6251       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6252       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6253       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6254      # icc doesn't choke on unknown options, it will just issue warnings
6255      # or remarks (even with -Werror).  So we grep stderr for any message
6256      # that says an option was ignored or not supported.
6257      # When given -MP, icc 7.0 and 7.1 complain thusly:
6258      #   icc: Command line warning: ignoring option '-M'; no argument required
6259      # The diagnosis changed in icc 8.0:
6260      #   icc: Command line remark: option '-MP' not supported
6261      if (grep 'ignoring option' conftest.err ||
6262          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6263        am_cv_CC_dependencies_compiler_type=$depmode
6264        break
6265      fi
6266    fi
6267  done
6268
6269  cd ..
6270  rm -rf conftest.dir
6271else
6272  am_cv_CC_dependencies_compiler_type=none
6273fi
6274
6275fi
6276echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6277echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6278CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6279
6280
6281
6282if
6283  test "x$enable_dependency_tracking" != xno \
6284  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6285  am__fastdepCC_TRUE=
6286  am__fastdepCC_FALSE='#'
6287else
6288  am__fastdepCC_TRUE='#'
6289  am__fastdepCC_FALSE=
6290fi
6291
6292
6293
6294echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6295echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6296    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6297if test "${enable_maintainer_mode+set}" = set; then
6298  enableval="$enable_maintainer_mode"
6299  USE_MAINTAINER_MODE=$enableval
6300else
6301  USE_MAINTAINER_MODE=no
6302fi;
6303  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6304echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6305
6306
6307if test $USE_MAINTAINER_MODE = yes; then
6308  MAINTAINER_MODE_TRUE=
6309  MAINTAINER_MODE_FALSE='#'
6310else
6311  MAINTAINER_MODE_TRUE='#'
6312  MAINTAINER_MODE_FALSE=
6313fi
6314
6315  MAINT=$MAINTAINER_MODE_TRUE
6316
6317
6318
6319coin_have_externals=no
6320if test "$enable_maintainer_mode" = yes; then
6321
6322  # If maintainer mode is chosen, we make sure that the correct versions
6323  # of the tools are used, and that we know where libtool.m4 is (to
6324  # recreate acinclude.m4)
6325
6326
6327  LIBTOOLM4=
6328  # Normally, $HOME
6329  AUTOTOOLS_DFLT=$HOME
6330
6331  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6332echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6333if test "${ac_cv_use_correct_autotools+set}" = set; then
6334  echo $ECHO_N "(cached) $ECHO_C" >&6
6335else
6336  ac_cv_use_correct_autotools=check
6337fi
6338echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6339echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6340
6341  if test $ac_cv_use_correct_autotools = check; then
6342    ac_cv_use_correct_autotools=yes
6343    # Check if we have autoconf
6344    # Extract the first word of "autoconf", so it can be a program name with args.
6345set dummy autoconf; ac_word=$2
6346echo "$as_me:$LINENO: checking for $ac_word" >&5
6347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6348if test "${ac_cv_prog_have_autoconf+set}" = set; then
6349  echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351  if test -n "$have_autoconf"; then
6352  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357  IFS=$as_save_IFS
6358  test -z "$as_dir" && as_dir=.
6359  for ac_exec_ext in '' $ac_executable_extensions; do
6360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361    ac_cv_prog_have_autoconf="yes"
6362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363    break 2
6364  fi
6365done
6366done
6367
6368  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6369fi
6370fi
6371have_autoconf=$ac_cv_prog_have_autoconf
6372if test -n "$have_autoconf"; then
6373  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6374echo "${ECHO_T}$have_autoconf" >&6
6375else
6376  echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378fi
6379
6380    if test $have_autoconf = no; then
6381      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6382echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6383   { (exit 1); exit 1; }; }
6384    fi
6385
6386    # Check whether autoconf is the correct version
6387    correct_version='2.59'
6388    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6389    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6390echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6391    autoconf --version > confauto.out 2>&1
6392    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6393      echo "$as_me:$LINENO: result: yes" >&5
6394echo "${ECHO_T}yes" >&6
6395    else
6396      rm -f confauto.out
6397      echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6400echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6401   { (exit 1); exit 1; }; }
6402    fi
6403    rm -f confauto.out
6404
6405    # Check if the executable autoconf is picked up from the correct location
6406    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6407echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6408    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6409    autoconf_dir=`cd $autoconf_dir; pwd`
6410    if test x$AUTOTOOLS_DIR = x; then
6411      want_dir=$AUTOTOOLS_DFLT/bin
6412    else
6413      want_dir=$AUTOTOOLS_DIR/bin
6414    fi
6415    if test $autoconf_dir = `cd $want_dir; pwd`; then
6416      echo "$as_me:$LINENO: result: yes" >&5
6417echo "${ECHO_T}yes" >&6
6418    else
6419      rm -f confauto.out
6420      echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6423echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6424   { (exit 1); exit 1; }; }
6425    fi
6426
6427    # Check if we have automake
6428    # Extract the first word of "automake", so it can be a program name with args.
6429set dummy automake; ac_word=$2
6430echo "$as_me:$LINENO: checking for $ac_word" >&5
6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6432if test "${ac_cv_prog_have_automake+set}" = set; then
6433  echo $ECHO_N "(cached) $ECHO_C" >&6
6434else
6435  if test -n "$have_automake"; then
6436  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6437else
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441  IFS=$as_save_IFS
6442  test -z "$as_dir" && as_dir=.
6443  for ac_exec_ext in '' $ac_executable_extensions; do
6444  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445    ac_cv_prog_have_automake="yes"
6446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447    break 2
6448  fi
6449done
6450done
6451
6452  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6453fi
6454fi
6455have_automake=$ac_cv_prog_have_automake
6456if test -n "$have_automake"; then
6457  echo "$as_me:$LINENO: result: $have_automake" >&5
6458echo "${ECHO_T}$have_automake" >&6
6459else
6460  echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462fi
6463
6464    if test $have_automake = no; then
6465      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6466echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6467   { (exit 1); exit 1; }; }
6468    fi
6469
6470    # Check whether automake is the correct version
6471    correct_version='1.9.6'
6472    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6473    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6474echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6475    automake --version > confauto.out 2>&1
6476    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6477      echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
6479    else
6480      rm -f confauto.out
6481      echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6
6483      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6484echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6485   { (exit 1); exit 1; }; }
6486    fi
6487    rm -f confauto.out
6488
6489    # Check if the executable automake is picked up from the correct location
6490    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6491echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6492    automake_dir=`which automake | sed -e 's=/automake=='`
6493    automake_dir=`cd $automake_dir; pwd`
6494    if test x$AUTOTOOLS_DIR = x; then
6495      want_dir=$AUTOTOOLS_DFLT/bin
6496    else
6497      want_dir=$AUTOTOOLS_DIR/bin
6498    fi
6499    if test $automake_dir = `cd $want_dir; pwd`; then
6500      echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502    else
6503      rm -f confauto.out
6504      echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6
6506      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6507echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6508   { (exit 1); exit 1; }; }
6509    fi
6510
6511    # Check if this is the correct version of libtool (with escaped dots)
6512    if test x$AUTOTOOLS_DIR = x; then
6513      want_dir=$AUTOTOOLS_DFLT/share
6514    else
6515      want_dir=$AUTOTOOLS_DIR/share
6516    fi
6517    correct_version='1.5.22'
6518    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6519    if test -r $want_dir/libtool/ltmain.sh; then
6520  have_ltmain=yes
6521  :
6522else
6523  have_ltmain=no
6524  :
6525fi
6526
6527    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6528echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6529    if test $have_ltmain = yes; then
6530    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6531        echo "$as_me:$LINENO: result: yes" >&5
6532echo "${ECHO_T}yes" >&6
6533      else
6534        echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
6536        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6537echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6538   { (exit 1); exit 1; }; }
6539      fi
6540    else
6541      echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6
6543      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6544echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6545   { (exit 1); exit 1; }; }
6546    fi
6547  fi
6548
6549  # Check if we can find the libtool file
6550  if test x$AUTOTOOLS_DIR = x; then
6551    want_dir=$AUTOTOOLS_DFLT/share
6552  else
6553    want_dir=$AUTOTOOLS_DIR/share
6554  fi
6555  if test -r $want_dir/aclocal/libtool.m4; then
6556  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6557  :
6558else
6559  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6560echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6561   { (exit 1); exit 1; }; }
6562  :
6563fi
6564
6565
6566  # Check if we have an Dependencies file
6567  if test -r $srcdir/Dependencies; then
6568    coin_have_externals=yes
6569  fi
6570  # Check if subversion is installed and understands https
6571  # Extract the first word of "svn", so it can be a program name with args.
6572set dummy svn; ac_word=$2
6573echo "$as_me:$LINENO: checking for $ac_word" >&5
6574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6575if test "${ac_cv_prog_have_svn+set}" = set; then
6576  echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578  if test -n "$have_svn"; then
6579  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584  IFS=$as_save_IFS
6585  test -z "$as_dir" && as_dir=.
6586  for ac_exec_ext in '' $ac_executable_extensions; do
6587  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588    ac_cv_prog_have_svn="yes"
6589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590    break 2
6591  fi
6592done
6593done
6594
6595  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6596fi
6597fi
6598have_svn=$ac_cv_prog_have_svn
6599if test -n "$have_svn"; then
6600  echo "$as_me:$LINENO: result: $have_svn" >&5
6601echo "${ECHO_T}$have_svn" >&6
6602else
6603  echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605fi
6606
6607  if test x$have_svn = xyes; then
6608    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6609echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6610if test "${ac_cv_svn_understands_https+set}" = set; then
6611  echo $ECHO_N "(cached) $ECHO_C" >&6
6612else
6613  svn --version > confauto.out 2>&1
6614                    if $EGREP https confauto.out >/dev/null 2>&1; then
6615                      ac_cv_svn_understands_https=yes
6616                    else
6617                      ac_cv_svn_understands_https=no
6618                      have_svn=no
6619                      ac_cv_prog_have_svn=no
6620                    fi
6621                    rm -f confauto.out
6622fi
6623echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6624echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6625  fi
6626
6627  # Find the location of the BuildTools directory
6628  BUILDTOOLSDIR=
6629  if test -r $srcdir/BuildTools/coin.m4; then
6630    BUILDTOOLSDIR=$srcdir/BuildTools
6631  else
6632    if test -r $srcdir/../BuildTools/coin.m4; then
6633      BUILDTOOLSDIR=$srcdir/../BuildTools
6634    else
6635      if test -r $srcdir/../../BuildTools/coin.m4; then
6636        BUILDTOOLSDIR=$srcdir/../../BuildTools
6637      else
6638        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6639echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6640   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6641      fi
6642    fi
6643  fi
6644
6645
6646  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6647  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6648    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6649  fi
6650
6651  # The following variable is set to the name of the directory where
6652  # the autotool scripts are located
6653
6654  AUX_DIR=$ac_aux_dir
6655fi
6656
6657# helpful variable for the base directory of this package
6658abs_source_dir=`cd $srcdir; pwd`
6659
6660
6661# Stuff for example Makefiles
6662if test x$prefix = xNONE; then
6663  full_prefix=$ac_default_prefix
6664else
6665  full_prefix=$prefix
6666fi
6667full_prefix=`cd $full_prefix ; pwd`
6668
6669abs_lib_dir=$full_prefix/lib
6670
6671abs_include_dir=$full_prefix/include
6672
6673abs_bin_dir=$full_prefix/bin
6674
6675
6676
6677if test $coin_have_externals = yes && test x$have_svn = xyes; then
6678  HAVE_EXTERNALS_TRUE=
6679  HAVE_EXTERNALS_FALSE='#'
6680else
6681  HAVE_EXTERNALS_TRUE='#'
6682  HAVE_EXTERNALS_FALSE=
6683fi
6684
6685
6686# AC_MSG_NOTICE([End automake initialisation.])
6687
6688
6689
6690LIBTOOL=
6691if test -f ../libtool; then
6692  coin_config_dir=..
6693  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6694fi
6695if test "x$LIBTOOL" = x; then
6696  if test -f ../../libtool; then
6697    coin_config_dir=../..
6698    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6699  fi
6700fi
6701
6702if test "x$LIBTOOL" = x; then
6703# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6704  # Stuff for libtool
6705  # Check whether --enable-shared or --disable-shared was given.
6706if test "${enable_shared+set}" = set; then
6707  enableval="$enable_shared"
6708  p=${PACKAGE-default}
6709    case $enableval in
6710    yes) enable_shared=yes ;;
6711    no) enable_shared=no ;;
6712    *)
6713      enable_shared=no
6714      # Look at the argument we got.  We use all the common list separators.
6715      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6716      for pkg in $enableval; do
6717        IFS="$lt_save_ifs"
6718        if test "X$pkg" = "X$p"; then
6719          enable_shared=yes
6720        fi
6721      done
6722      IFS="$lt_save_ifs"
6723      ;;
6724    esac
6725else
6726  enable_shared=yes
6727fi;
6728
6729# Check whether --enable-fast-install or --disable-fast-install was given.
6730if test "${enable_fast_install+set}" = set; then
6731  enableval="$enable_fast_install"
6732  p=${PACKAGE-default}
6733    case $enableval in
6734    yes) enable_fast_install=yes ;;
6735    no) enable_fast_install=no ;;
6736    *)
6737      enable_fast_install=no
6738      # Look at the argument we got.  We use all the common list separators.
6739      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6740      for pkg in $enableval; do
6741        IFS="$lt_save_ifs"
6742        if test "X$pkg" = "X$p"; then
6743          enable_fast_install=yes
6744        fi
6745      done
6746      IFS="$lt_save_ifs"
6747      ;;
6748    esac
6749else
6750  enable_fast_install=yes
6751fi;
6752
6753echo "$as_me:$LINENO: checking host system type" >&5
6754echo $ECHO_N "checking host system type... $ECHO_C" >&6
6755if test "${ac_cv_host+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  ac_cv_host_alias=$host_alias
6759test -z "$ac_cv_host_alias" &&
6760  ac_cv_host_alias=$ac_cv_build_alias
6761ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6762  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6763echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6764   { (exit 1); exit 1; }; }
6765
6766fi
6767echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6768echo "${ECHO_T}$ac_cv_host" >&6
6769host=$ac_cv_host
6770host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6771host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6772host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6773
6774
6775echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6776echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6777if test "${lt_cv_path_SED+set}" = set; then
6778  echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780  # Loop through the user's path and test for sed and gsed.
6781# Then use that list of sed's as ones to test for truncation.
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785  IFS=$as_save_IFS
6786  test -z "$as_dir" && as_dir=.
6787  for lt_ac_prog in sed gsed; do
6788    for ac_exec_ext in '' $ac_executable_extensions; do
6789      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6790        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6791      fi
6792    done
6793  done
6794done
6795lt_ac_max=0
6796lt_ac_count=0
6797# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6798# along with /bin/sed that truncates output.
6799for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6800  test ! -f $lt_ac_sed && continue
6801  cat /dev/null > conftest.in
6802  lt_ac_count=0
6803  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6804  # Check for GNU sed and select it if it is found.
6805  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6806    lt_cv_path_SED=$lt_ac_sed
6807    break
6808  fi
6809  while true; do
6810    cat conftest.in conftest.in >conftest.tmp
6811    mv conftest.tmp conftest.in
6812    cp conftest.in conftest.nl
6813    echo >>conftest.nl
6814    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6815    cmp -s conftest.out conftest.nl || break
6816    # 10000 chars as input seems more than enough
6817    test $lt_ac_count -gt 10 && break
6818    lt_ac_count=`expr $lt_ac_count + 1`
6819    if test $lt_ac_count -gt $lt_ac_max; then
6820      lt_ac_max=$lt_ac_count
6821      lt_cv_path_SED=$lt_ac_sed
6822    fi
6823  done
6824done
6825
6826fi
6827
6828SED=$lt_cv_path_SED
6829echo "$as_me:$LINENO: result: $SED" >&5
6830echo "${ECHO_T}$SED" >&6
6831
6832
6833# Check whether --with-gnu-ld or --without-gnu-ld was given.
6834if test "${with_gnu_ld+set}" = set; then
6835  withval="$with_gnu_ld"
6836  test "$withval" = no || with_gnu_ld=yes
6837else
6838  with_gnu_ld=no
6839fi;
6840ac_prog=ld
6841if test "$GCC" = yes; then
6842  # Check if gcc -print-prog-name=ld gives a path.
6843  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6844echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6845  case $host in
6846  *-*-mingw*)
6847    # gcc leaves a trailing carriage return which upsets mingw
6848    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6849  *)
6850    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6851  esac
6852  case $ac_prog in
6853    # Accept absolute paths.
6854    [\\/]* | ?:[\\/]*)
6855      re_direlt='/[^/][^/]*/\.\./'
6856      # Canonicalize the pathname of ld
6857      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6858      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6859        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6860      done
6861      test -z "$LD" && LD="$ac_prog"
6862      ;;
6863  "")
6864    # If it fails, then pretend we aren't using GCC.
6865    ac_prog=ld
6866    ;;
6867  *)
6868    # If it is relative, then search for the first ld in PATH.
6869    with_gnu_ld=unknown
6870    ;;
6871  esac
6872elif test "$with_gnu_ld" = yes; then
6873  echo "$as_me:$LINENO: checking for GNU ld" >&5
6874echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6875else
6876  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6877echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6878fi
6879if test "${lt_cv_path_LD+set}" = set; then
6880  echo $ECHO_N "(cached) $ECHO_C" >&6
6881else
6882  if test -z "$LD"; then
6883  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6884  for ac_dir in $PATH; do
6885    IFS="$lt_save_ifs"
6886    test -z "$ac_dir" && ac_dir=.
6887    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6888      lt_cv_path_LD="$ac_dir/$ac_prog"
6889      # Check to see if the program is GNU ld.  I'd rather use --version,
6890      # but apparently some variants of GNU ld only accept -v.
6891      # Break only if it was the GNU/non-GNU ld that we prefer.
6892      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6893      *GNU* | *'with BFD'*)
6894        test "$with_gnu_ld" != no && break
6895        ;;
6896      *)
6897        test "$with_gnu_ld" != yes && break
6898        ;;
6899      esac
6900    fi
6901  done
6902  IFS="$lt_save_ifs"
6903else
6904  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6905fi
6906fi
6907
6908LD="$lt_cv_path_LD"
6909if test -n "$LD"; then
6910  echo "$as_me:$LINENO: result: $LD" >&5
6911echo "${ECHO_T}$LD" >&6
6912else
6913  echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915fi
6916test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6917echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6918   { (exit 1); exit 1; }; }
6919echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6920echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6921if test "${lt_cv_prog_gnu_ld+set}" = set; then
6922  echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6925case `$LD -v 2>&1 </dev/null` in
6926*GNU* | *'with BFD'*)
6927  lt_cv_prog_gnu_ld=yes
6928  ;;
6929*)
6930  lt_cv_prog_gnu_ld=no
6931  ;;
6932esac
6933fi
6934echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6935echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6936with_gnu_ld=$lt_cv_prog_gnu_ld
6937
6938
6939echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6940echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6941if test "${lt_cv_ld_reload_flag+set}" = set; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  lt_cv_ld_reload_flag='-r'
6945fi
6946echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6947echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6948reload_flag=$lt_cv_ld_reload_flag
6949case $reload_flag in
6950"" | " "*) ;;
6951*) reload_flag=" $reload_flag" ;;
6952esac
6953reload_cmds='$LD$reload_flag -o $output$reload_objs'
6954case $host_os in
6955  darwin*)
6956    if test "$GCC" = yes; then
6957      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6958    else
6959      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6960    fi
6961    ;;
6962esac
6963
6964echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6965echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6966if test "${lt_cv_path_NM+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  if test -n "$NM"; then
6970  # Let the user override the test.
6971  lt_cv_path_NM="$NM"
6972else
6973  lt_nm_to_check="${ac_tool_prefix}nm"
6974  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6975    lt_nm_to_check="$lt_nm_to_check nm"
6976  fi
6977  for lt_tmp_nm in $lt_nm_to_check; do
6978    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6979    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6980      IFS="$lt_save_ifs"
6981      test -z "$ac_dir" && ac_dir=.
6982      tmp_nm="$ac_dir/$lt_tmp_nm"
6983      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6984        # Check to see if the nm accepts a BSD-compat flag.
6985        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6986        #   nm: unknown option "B" ignored
6987        # Tru64's nm complains that /dev/null is an invalid object file
6988        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6989        */dev/null* | *'Invalid file or object type'*)
6990          lt_cv_path_NM="$tmp_nm -B"
6991          break
6992          ;;
6993        *)
6994          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6995          */dev/null*)
6996            lt_cv_path_NM="$tmp_nm -p"
6997            break
6998            ;;
6999          *)
7000            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7001            continue # so that we can try to find one that supports BSD flags
7002            ;;
7003          esac
7004          ;;
7005        esac
7006      fi
7007    done
7008    IFS="$lt_save_ifs"
7009  done
7010  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7011fi
7012fi
7013echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7014echo "${ECHO_T}$lt_cv_path_NM" >&6
7015NM="$lt_cv_path_NM"
7016
7017echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7018echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7019if test "${lt_cv_deplibs_check_method+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  lt_cv_file_magic_cmd='$MAGIC_CMD'
7023lt_cv_file_magic_test_file=
7024lt_cv_deplibs_check_method='unknown'
7025# Need to set the preceding variable on all platforms that support
7026# interlibrary dependencies.
7027# 'none' -- dependencies not supported.
7028# `unknown' -- same as none, but documents that we really don't know.
7029# 'pass_all' -- all dependencies passed with no checks.
7030# 'test_compile' -- check by making test program.
7031# 'file_magic [[regex]]' -- check by looking for files in library path
7032# which responds to the $file_magic_cmd with a given extended regex.
7033# If you have `file' or equivalent on your system and you're not sure
7034# whether `pass_all' will *always* work, you probably want this one.
7035
7036case $host_os in
7037aix4* | aix5*)
7038  lt_cv_deplibs_check_method=pass_all
7039  ;;
7040
7041beos*)
7042  lt_cv_deplibs_check_method=pass_all
7043  ;;
7044
7045bsdi[45]*)
7046  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7047  lt_cv_file_magic_cmd='/usr/bin/file -L'
7048  lt_cv_file_magic_test_file=/shlib/libc.so
7049  ;;
7050
7051cygwin*)
7052  # func_win32_libid is a shell function defined in ltmain.sh
7053  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7054  lt_cv_file_magic_cmd='func_win32_libid'
7055  ;;
7056
7057mingw* | pw32*)
7058  # Base MSYS/MinGW do not provide the 'file' command needed by
7059  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7060  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7061  lt_cv_file_magic_cmd='$OBJDUMP -f'
7062  ;;
7063
7064darwin* | rhapsody*)
7065  lt_cv_deplibs_check_method=pass_all
7066  ;;
7067
7068freebsd* | kfreebsd*-gnu | dragonfly*)
7069  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7070    case $host_cpu in
7071    i*86 )
7072      # Not sure whether the presence of OpenBSD here was a mistake.
7073      # Let's accept both of them until this is cleared up.
7074      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7075      lt_cv_file_magic_cmd=/usr/bin/file
7076      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7077      ;;
7078    esac
7079  else
7080    lt_cv_deplibs_check_method=pass_all
7081  fi
7082  ;;
7083
7084gnu*)
7085  lt_cv_deplibs_check_method=pass_all
7086  ;;
7087
7088hpux10.20* | hpux11*)
7089  lt_cv_file_magic_cmd=/usr/bin/file
7090  case $host_cpu in
7091  ia64*)
7092    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7093    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7094    ;;
7095  hppa*64*)
7096    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]'
7097    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7098    ;;
7099  *)
7100    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7101    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7102    ;;
7103  esac
7104  ;;
7105
7106interix3*)
7107  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7108  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7109  ;;
7110
7111irix5* | irix6* | nonstopux*)
7112  case $LD in
7113  *-32|*"-32 ") libmagic=32-bit;;
7114  *-n32|*"-n32 ") libmagic=N32;;
7115  *-64|*"-64 ") libmagic=64-bit;;
7116  *) libmagic=never-match;;
7117  esac
7118  lt_cv_deplibs_check_method=pass_all
7119  ;;
7120
7121# This must be Linux ELF.
7122linux*)
7123  lt_cv_deplibs_check_method=pass_all
7124  ;;
7125
7126netbsd*)
7127  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7128    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129  else
7130    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7131  fi
7132  ;;
7133
7134newos6*)
7135  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7136  lt_cv_file_magic_cmd=/usr/bin/file
7137  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7138  ;;
7139
7140nto-qnx*)
7141  lt_cv_deplibs_check_method=unknown
7142  ;;
7143
7144openbsd*)
7145  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7146    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7147  else
7148    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7149  fi
7150  ;;
7151
7152osf3* | osf4* | osf5*)
7153  lt_cv_deplibs_check_method=pass_all
7154  ;;
7155
7156solaris*)
7157  lt_cv_deplibs_check_method=pass_all
7158  ;;
7159
7160sysv4 | sysv4.3*)
7161  case $host_vendor in
7162  motorola)
7163    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]'
7164    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7165    ;;
7166  ncr)
7167    lt_cv_deplibs_check_method=pass_all
7168    ;;
7169  sequent)
7170    lt_cv_file_magic_cmd='/bin/file'
7171    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7172    ;;
7173  sni)
7174    lt_cv_file_magic_cmd='/bin/file'
7175    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7176    lt_cv_file_magic_test_file=/lib/libc.so
7177    ;;
7178  siemens)
7179    lt_cv_deplibs_check_method=pass_all
7180    ;;
7181  pc)
7182    lt_cv_deplibs_check_method=pass_all
7183    ;;
7184  esac
7185  ;;
7186
7187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7188  lt_cv_deplibs_check_method=pass_all
7189  ;;
7190esac
7191
7192fi
7193echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7194echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7195file_magic_cmd=$lt_cv_file_magic_cmd
7196deplibs_check_method=$lt_cv_deplibs_check_method
7197test -z "$deplibs_check_method" && deplibs_check_method=unknown
7198
7199
7200
7201
7202# If no C compiler was specified, use CC.
7203LTCC=${LTCC-"$CC"}
7204
7205# If no C compiler flags were specified, use CFLAGS.
7206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7207
7208# Allow CC to be a program name with arguments.
7209compiler=$CC
7210
7211# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7212if test "${enable_libtool_lock+set}" = set; then
7213  enableval="$enable_libtool_lock"
7214
7215fi;
7216test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7217
7218# Some flags need to be propagated to the compiler or linker for good
7219# libtool support.
7220case $host in
7221ia64-*-hpux*)
7222  # Find out which ABI we are using.
7223  echo 'int i;' > conftest.$ac_ext
7224  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225  (eval $ac_compile) 2>&5
7226  ac_status=$?
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); }; then
7229    case `/usr/bin/file conftest.$ac_objext` in
7230    *ELF-32*)
7231      HPUX_IA64_MODE="32"
7232      ;;
7233    *ELF-64*)
7234      HPUX_IA64_MODE="64"
7235      ;;
7236    esac
7237  fi
7238  rm -rf conftest*
7239  ;;
7240*-*-irix6*)
7241  # Find out which ABI we are using.
7242  echo '#line 7242 "configure"' > conftest.$ac_ext
7243  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244  (eval $ac_compile) 2>&5
7245  ac_status=$?
7246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247  (exit $ac_status); }; then
7248   if test "$lt_cv_prog_gnu_ld" = yes; then
7249    case `/usr/bin/file conftest.$ac_objext` in
7250    *32-bit*)
7251      LD="${LD-ld} -melf32bsmip"
7252      ;;
7253    *N32*)
7254      LD="${LD-ld} -melf32bmipn32"
7255      ;;
7256    *64-bit*)
7257      LD="${LD-ld} -melf64bmip"
7258      ;;
7259    esac
7260   else
7261    case `/usr/bin/file conftest.$ac_objext` in
7262    *32-bit*)
7263      LD="${LD-ld} -32"
7264      ;;
7265    *N32*)
7266      LD="${LD-ld} -n32"
7267      ;;
7268    *64-bit*)
7269      LD="${LD-ld} -64"
7270      ;;
7271    esac
7272   fi
7273  fi
7274  rm -rf conftest*
7275  ;;
7276
7277x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7278  # Find out which ABI we are using.
7279  echo 'int i;' > conftest.$ac_ext
7280  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281  (eval $ac_compile) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; then
7285    case `/usr/bin/file conftest.o` in
7286    *32-bit*)
7287      case $host in
7288        x86_64-*linux*)
7289          LD="${LD-ld} -m elf_i386"
7290          ;;
7291        ppc64-*linux*|powerpc64-*linux*)
7292          LD="${LD-ld} -m elf32ppclinux"
7293          ;;
7294        s390x-*linux*)
7295          LD="${LD-ld} -m elf_s390"
7296          ;;
7297        sparc64-*linux*)
7298          LD="${LD-ld} -m elf32_sparc"
7299          ;;
7300      esac
7301      ;;
7302    *64-bit*)
7303      case $host in
7304        x86_64-*linux*)
7305          LD="${LD-ld} -m elf_x86_64"
7306          ;;
7307        ppc*-*linux*|powerpc*-*linux*)
7308          LD="${LD-ld} -m elf64ppc"
7309          ;;
7310        s390*-*linux*)
7311          LD="${LD-ld} -m elf64_s390"
7312          ;;
7313        sparc*-*linux*)
7314          LD="${LD-ld} -m elf64_sparc"
7315          ;;
7316      esac
7317      ;;
7318    esac
7319  fi
7320  rm -rf conftest*
7321  ;;
7322
7323*-*-sco3.2v5*)
7324  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325  SAVE_CFLAGS="$CFLAGS"
7326  CFLAGS="$CFLAGS -belf"
7327  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7328echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7329if test "${lt_cv_cc_needs_belf+set}" = set; then
7330  echo $ECHO_N "(cached) $ECHO_C" >&6
7331else
7332  ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338     cat >conftest.$ac_ext <<_ACEOF
7339/* confdefs.h.  */
7340_ACEOF
7341cat confdefs.h >>conftest.$ac_ext
7342cat >>conftest.$ac_ext <<_ACEOF
7343/* end confdefs.h.  */
7344
7345#ifdef F77_DUMMY_MAIN
7346
7347#  ifdef __cplusplus
7348     extern "C"
7349#  endif
7350   int F77_DUMMY_MAIN() { return 1; }
7351
7352#endif
7353int
7354main ()
7355{
7356
7357  ;
7358  return 0;
7359}
7360_ACEOF
7361rm -f conftest.$ac_objext conftest$ac_exeext
7362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363  (eval $ac_link) 2>conftest.er1
7364  ac_status=$?
7365  grep -v '^ *+' conftest.er1 >conftest.err
7366  rm -f conftest.er1
7367  cat conftest.err >&5
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); } &&
7370         { ac_try='test -z "$ac_c_werror_flag"
7371                         || test ! -s conftest.err'
7372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373  (eval $ac_try) 2>&5
7374  ac_status=$?
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); }; } &&
7377         { ac_try='test -s conftest$ac_exeext'
7378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379  (eval $ac_try) 2>&5
7380  ac_status=$?
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); }; }; then
7383  lt_cv_cc_needs_belf=yes
7384else
7385  echo "$as_me: failed program was:" >&5
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388lt_cv_cc_needs_belf=no
7389fi
7390rm -f conftest.err conftest.$ac_objext \
7391      conftest$ac_exeext conftest.$ac_ext
7392     ac_ext=c
7393ac_cpp='$CPP $CPPFLAGS'
7394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396ac_compiler_gnu=$ac_cv_c_compiler_gnu
7397
7398fi
7399echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7400echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7401  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7402    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7403    CFLAGS="$SAVE_CFLAGS"
7404  fi
7405  ;;
7406sparc*-*solaris*)
7407  # Find out which ABI we are using.
7408  echo 'int i;' > conftest.$ac_ext
7409  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410  (eval $ac_compile) 2>&5
7411  ac_status=$?
7412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413  (exit $ac_status); }; then
7414    case `/usr/bin/file conftest.o` in
7415    *64-bit*)
7416      case $lt_cv_prog_gnu_ld in
7417      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7418      *)    LD="${LD-ld} -64" ;;
7419      esac
7420      ;;
7421    esac
7422  fi
7423  rm -rf conftest*
7424  ;;
7425
7426
7427esac
7428
7429need_locks="$enable_libtool_lock"
7430
7431
7432ac_ext=c
7433ac_cpp='$CPP $CPPFLAGS'
7434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436ac_compiler_gnu=$ac_cv_c_compiler_gnu
7437echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7438echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7439# On Suns, sometimes $CPP names a directory.
7440if test -n "$CPP" && test -d "$CPP"; then
7441  CPP=
7442fi
7443if test -z "$CPP"; then
7444  if test "${ac_cv_prog_CPP+set}" = set; then
7445  echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447      # Double quotes because CPP needs to be expanded
7448    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7449    do
7450      ac_preproc_ok=false
7451for ac_c_preproc_warn_flag in '' yes
7452do
7453  # Use a header file that comes with gcc, so configuring glibc
7454  # with a fresh cross-compiler works.
7455  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7456  # <limits.h> exists even on freestanding compilers.
7457  # On the NeXT, cc -E runs the code through the compiler's parser,
7458  # not just through cpp. "Syntax error" is here to catch this case.
7459  cat >conftest.$ac_ext <<_ACEOF
7460/* confdefs.h.  */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h.  */
7465#ifdef __STDC__
7466# include <limits.h>
7467#else
7468# include <assert.h>
7469#endif
7470                     Syntax error
7471_ACEOF
7472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7474  ac_status=$?
7475  grep -v '^ *+' conftest.er1 >conftest.err
7476  rm -f conftest.er1
7477  cat conftest.err >&5
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } >/dev/null; then
7480  if test -s conftest.err; then
7481    ac_cpp_err=$ac_c_preproc_warn_flag
7482    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7483  else
7484    ac_cpp_err=
7485  fi
7486else
7487  ac_cpp_err=yes
7488fi
7489if test -z "$ac_cpp_err"; then
7490  :
7491else
7492  echo "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495  # Broken: fails on valid input.
7496continue
7497fi
7498rm -f conftest.err conftest.$ac_ext
7499
7500  # OK, works on sane cases.  Now check whether non-existent headers
7501  # can be detected and how.
7502  cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508#include <ac_nonexistent.h>
7509_ACEOF
7510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7512  ac_status=$?
7513  grep -v '^ *+' conftest.er1 >conftest.err
7514  rm -f conftest.er1
7515  cat conftest.err >&5
7516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517  (exit $ac_status); } >/dev/null; then
7518  if test -s conftest.err; then
7519    ac_cpp_err=$ac_c_preproc_warn_flag
7520    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7521  else
7522    ac_cpp_err=
7523  fi
7524else
7525  ac_cpp_err=yes
7526fi
7527if test -z "$ac_cpp_err"; then
7528  # Broken: success on invalid input.
7529continue
7530else
7531  echo "$as_me: failed program was:" >&5
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534  # Passes both tests.
7535ac_preproc_ok=:
7536break
7537fi
7538rm -f conftest.err conftest.$ac_ext
7539
7540done
7541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7542rm -f conftest.err conftest.$ac_ext
7543if $ac_preproc_ok; then
7544  break
7545fi
7546
7547    done
7548    ac_cv_prog_CPP=$CPP
7549
7550fi
7551  CPP=$ac_cv_prog_CPP
7552else
7553  ac_cv_prog_CPP=$CPP
7554fi
7555echo "$as_me:$LINENO: result: $CPP" >&5
7556echo "${ECHO_T}$CPP" >&6
7557ac_preproc_ok=false
7558for ac_c_preproc_warn_flag in '' yes
7559do
7560  # Use a header file that comes with gcc, so configuring glibc
7561  # with a fresh cross-compiler works.
7562  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7563  # <limits.h> exists even on freestanding compilers.
7564  # On the NeXT, cc -E runs the code through the compiler's parser,
7565  # not just through cpp. "Syntax error" is here to catch this case.
7566  cat >conftest.$ac_ext <<_ACEOF
7567/* confdefs.h.  */
7568_ACEOF
7569cat confdefs.h >>conftest.$ac_ext
7570cat >>conftest.$ac_ext <<_ACEOF
7571/* end confdefs.h.  */
7572#ifdef __STDC__
7573# include <limits.h>
7574#else
7575# include <assert.h>
7576#endif
7577                     Syntax error
7578_ACEOF
7579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7580  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } >/dev/null; then
7587  if test -s conftest.err; then
7588    ac_cpp_err=$ac_c_preproc_warn_flag
7589    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7590  else
7591    ac_cpp_err=
7592  fi
7593else
7594  ac_cpp_err=yes
7595fi
7596if test -z "$ac_cpp_err"; then
7597  :
7598else
7599  echo "$as_me: failed program was:" >&5
7600sed 's/^/| /' conftest.$ac_ext >&5
7601
7602  # Broken: fails on valid input.
7603continue
7604fi
7605rm -f conftest.err conftest.$ac_ext
7606
7607  # OK, works on sane cases.  Now check whether non-existent headers
7608  # can be detected and how.
7609  cat >conftest.$ac_ext <<_ACEOF
7610/* confdefs.h.  */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h.  */
7615#include <ac_nonexistent.h>
7616_ACEOF
7617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7619  ac_status=$?
7620  grep -v '^ *+' conftest.er1 >conftest.err
7621  rm -f conftest.er1
7622  cat conftest.err >&5
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); } >/dev/null; then
7625  if test -s conftest.err; then
7626    ac_cpp_err=$ac_c_preproc_warn_flag
7627    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7628  else
7629    ac_cpp_err=
7630  fi
7631else
7632  ac_cpp_err=yes
7633fi
7634if test -z "$ac_cpp_err"; then
7635  # Broken: success on invalid input.
7636continue
7637else
7638  echo "$as_me: failed program was:" >&5
7639sed 's/^/| /' conftest.$ac_ext >&5
7640
7641  # Passes both tests.
7642ac_preproc_ok=:
7643break
7644fi
7645rm -f conftest.err conftest.$ac_ext
7646
7647done
7648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649rm -f conftest.err conftest.$ac_ext
7650if $ac_preproc_ok; then
7651  :
7652else
7653  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7654See \`config.log' for more details." >&5
7655echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7656See \`config.log' for more details." >&2;}
7657   { (exit 1); exit 1; }; }
7658fi
7659
7660ac_ext=c
7661ac_cpp='$CPP $CPPFLAGS'
7662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665
7666
7667echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7668echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7669if test "${ac_cv_header_stdc+set}" = set; then
7670  echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672  cat >conftest.$ac_ext <<_ACEOF
7673/* confdefs.h.  */
7674_ACEOF
7675cat confdefs.h >>conftest.$ac_ext
7676cat >>conftest.$ac_ext <<_ACEOF
7677/* end confdefs.h.  */
7678#include <stdlib.h>
7679#include <stdarg.h>
7680#include <string.h>
7681#include <float.h>
7682
7683#ifdef F77_DUMMY_MAIN
7684
7685#  ifdef __cplusplus
7686     extern "C"
7687#  endif
7688   int F77_DUMMY_MAIN() { return 1; }
7689
7690#endif
7691int
7692main ()
7693{
7694
7695  ;
7696  return 0;
7697}
7698_ACEOF
7699rm -f conftest.$ac_objext
7700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7701  (eval $ac_compile) 2>conftest.er1
7702  ac_status=$?
7703  grep -v '^ *+' conftest.er1 >conftest.err
7704  rm -f conftest.er1
7705  cat conftest.err >&5
7706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707  (exit $ac_status); } &&
7708         { ac_try='test -z "$ac_c_werror_flag"
7709                         || test ! -s conftest.err'
7710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711  (eval $ac_try) 2>&5
7712  ac_status=$?
7713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714  (exit $ac_status); }; } &&
7715         { ac_try='test -s conftest.$ac_objext'
7716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717  (eval $ac_try) 2>&5
7718  ac_status=$?
7719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720  (exit $ac_status); }; }; then
7721  ac_cv_header_stdc=yes
7722else
7723  echo "$as_me: failed program was:" >&5
7724sed 's/^/| /' conftest.$ac_ext >&5
7725
7726ac_cv_header_stdc=no
7727fi
7728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7729
7730if test $ac_cv_header_stdc = yes; then
7731  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7732  cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h.  */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h.  */
7738#include <string.h>
7739
7740_ACEOF
7741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742  $EGREP "memchr" >/dev/null 2>&1; then
7743  :
7744else
7745  ac_cv_header_stdc=no
7746fi
7747rm -f conftest*
7748
7749fi
7750
7751if test $ac_cv_header_stdc = yes; then
7752  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7753  cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h.  */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h.  */
7759#include <stdlib.h>
7760
7761_ACEOF
7762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7763  $EGREP "free" >/dev/null 2>&1; then
7764  :
7765else
7766  ac_cv_header_stdc=no
7767fi
7768rm -f conftest*
7769
7770fi
7771
7772if test $ac_cv_header_stdc = yes; then
7773  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7774  if test "$cross_compiling" = yes; then
7775  :
7776else
7777  cat >conftest.$ac_ext <<_ACEOF
7778/* confdefs.h.  */
7779_ACEOF
7780cat confdefs.h >>conftest.$ac_ext
7781cat >>conftest.$ac_ext <<_ACEOF
7782/* end confdefs.h.  */
7783#include <ctype.h>
7784#if ((' ' & 0x0FF) == 0x020)
7785# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7786# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7787#else
7788# define ISLOWER(c) \
7789                   (('a' <= (c) && (c) <= 'i') \
7790                     || ('j' <= (c) && (c) <= 'r') \
7791                     || ('s' <= (c) && (c) <= 'z'))
7792# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7793#endif
7794
7795#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7796int
7797main ()
7798{
7799  int i;
7800  for (i = 0; i < 256; i++)
7801    if (XOR (islower (i), ISLOWER (i))
7802        || toupper (i) != TOUPPER (i))
7803      exit(2);
7804  exit (0);
7805}
7806_ACEOF
7807rm -f conftest$ac_exeext
7808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809  (eval $ac_link) 2>&5
7810  ac_status=$?
7811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814  (eval $ac_try) 2>&5
7815  ac_status=$?
7816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817  (exit $ac_status); }; }; then
7818  :
7819else
7820  echo "$as_me: program exited with status $ac_status" >&5
7821echo "$as_me: failed program was:" >&5
7822sed 's/^/| /' conftest.$ac_ext >&5
7823
7824( exit $ac_status )
7825ac_cv_header_stdc=no
7826fi
7827rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7828fi
7829fi
7830fi
7831echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7832echo "${ECHO_T}$ac_cv_header_stdc" >&6
7833if test $ac_cv_header_stdc = yes; then
7834
7835cat >>confdefs.h <<\_ACEOF
7836#define STDC_HEADERS 1
7837_ACEOF
7838
7839fi
7840
7841# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7852                  inttypes.h stdint.h unistd.h
7853do
7854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7855echo "$as_me:$LINENO: checking for $ac_header" >&5
7856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7857if eval "test \"\${$as_ac_Header+set}\" = set"; then
7858  echo $ECHO_N "(cached) $ECHO_C" >&6
7859else
7860  cat >conftest.$ac_ext <<_ACEOF
7861/* confdefs.h.  */
7862_ACEOF
7863cat confdefs.h >>conftest.$ac_ext
7864cat >>conftest.$ac_ext <<_ACEOF
7865/* end confdefs.h.  */
7866$ac_includes_default
7867
7868#include <$ac_header>
7869_ACEOF
7870rm -f conftest.$ac_objext
7871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7872  (eval $ac_compile) 2>conftest.er1
7873  ac_status=$?
7874  grep -v '^ *+' conftest.er1 >conftest.err
7875  rm -f conftest.er1
7876  cat conftest.err >&5
7877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878  (exit $ac_status); } &&
7879         { ac_try='test -z "$ac_c_werror_flag"
7880                         || test ! -s conftest.err'
7881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882  (eval $ac_try) 2>&5
7883  ac_status=$?
7884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885  (exit $ac_status); }; } &&
7886         { ac_try='test -s conftest.$ac_objext'
7887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888  (eval $ac_try) 2>&5
7889  ac_status=$?
7890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891  (exit $ac_status); }; }; then
7892  eval "$as_ac_Header=yes"
7893else
7894  echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897eval "$as_ac_Header=no"
7898fi
7899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900fi
7901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7903if test `eval echo '${'$as_ac_Header'}'` = yes; then
7904  cat >>confdefs.h <<_ACEOF
7905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7906_ACEOF
7907
7908fi
7909
7910done
7911
7912
7913
7914for ac_header in dlfcn.h
7915do
7916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918  echo "$as_me:$LINENO: checking for $ac_header" >&5
7919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922fi
7923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925else
7926  # Is the header compilable?
7927echo "$as_me:$LINENO: checking $ac_header usability" >&5
7928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7929cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h.  */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h.  */
7935$ac_includes_default
7936#include <$ac_header>
7937_ACEOF
7938rm -f conftest.$ac_objext
7939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7940  (eval $ac_compile) 2>conftest.er1
7941  ac_status=$?
7942  grep -v '^ *+' conftest.er1 >conftest.err
7943  rm -f conftest.er1
7944  cat conftest.err >&5
7945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946  (exit $ac_status); } &&
7947         { ac_try='test -z "$ac_c_werror_flag"
7948                         || test ! -s conftest.err'
7949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950  (eval $ac_try) 2>&5
7951  ac_status=$?
7952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953  (exit $ac_status); }; } &&
7954         { ac_try='test -s conftest.$ac_objext'
7955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956  (eval $ac_try) 2>&5
7957  ac_status=$?
7958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959  (exit $ac_status); }; }; then
7960  ac_header_compiler=yes
7961else
7962  echo "$as_me: failed program was:" >&5
7963sed 's/^/| /' conftest.$ac_ext >&5
7964
7965ac_header_compiler=no
7966fi
7967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7969echo "${ECHO_T}$ac_header_compiler" >&6
7970
7971# Is the header present?
7972echo "$as_me:$LINENO: checking $ac_header presence" >&5
7973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7974cat >conftest.$ac_ext <<_ACEOF
7975/* confdefs.h.  */
7976_ACEOF
7977cat confdefs.h >>conftest.$ac_ext
7978cat >>conftest.$ac_ext <<_ACEOF
7979/* end confdefs.h.  */
7980#include <$ac_header>
7981_ACEOF
7982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7983  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7984  ac_status=$?
7985  grep -v '^ *+' conftest.er1 >conftest.err
7986  rm -f conftest.er1
7987  cat conftest.err >&5
7988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989  (exit $ac_status); } >/dev/null; then
7990  if test -s conftest.err; then
7991    ac_cpp_err=$ac_c_preproc_warn_flag
7992    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7993  else
7994    ac_cpp_err=
7995  fi
7996else
7997  ac_cpp_err=yes
7998fi
7999if test -z "$ac_cpp_err"; then
8000  ac_header_preproc=yes
8001else
8002  echo "$as_me: failed program was:" >&5
8003sed 's/^/| /' conftest.$ac_ext >&5
8004
8005  ac_header_preproc=no
8006fi
8007rm -f conftest.err conftest.$ac_ext
8008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8009echo "${ECHO_T}$ac_header_preproc" >&6
8010
8011# So?  What about this header?
8012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8013  yes:no: )
8014    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8016    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8018    ac_header_preproc=yes
8019    ;;
8020  no:yes:* )
8021    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8023    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8024echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8025    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8027    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8028echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8031    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8033    (
8034      cat <<\_ASBOX
8035## --------------------------------------------------------------- ##
8036## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8037## --------------------------------------------------------------- ##
8038_ASBOX
8039    ) |
8040      sed "s/^/$as_me: WARNING:     /" >&2
8041    ;;
8042esac
8043echo "$as_me:$LINENO: checking for $ac_header" >&5
8044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8045if eval "test \"\${$as_ac_Header+set}\" = set"; then
8046  echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048  eval "$as_ac_Header=\$ac_header_preproc"
8049fi
8050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8052
8053fi
8054if test `eval echo '${'$as_ac_Header'}'` = yes; then
8055  cat >>confdefs.h <<_ACEOF
8056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8057_ACEOF
8058
8059fi
8060
8061done
8062
8063ac_ext=cc
8064ac_cpp='$CXXCPP $CPPFLAGS'
8065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8068if test -n "$ac_tool_prefix"; then
8069  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8070  do
8071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8073echo "$as_me:$LINENO: checking for $ac_word" >&5
8074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8075if test "${ac_cv_prog_CXX+set}" = set; then
8076  echo $ECHO_N "(cached) $ECHO_C" >&6
8077else
8078  if test -n "$CXX"; then
8079  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8080else
8081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082for as_dir in $PATH
8083do
8084  IFS=$as_save_IFS
8085  test -z "$as_dir" && as_dir=.
8086  for ac_exec_ext in '' $ac_executable_extensions; do
8087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8090    break 2
8091  fi
8092done
8093done
8094
8095fi
8096fi
8097CXX=$ac_cv_prog_CXX
8098if test -n "$CXX"; then
8099  echo "$as_me:$LINENO: result: $CXX" >&5
8100echo "${ECHO_T}$CXX" >&6
8101else
8102  echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6
8104fi
8105
8106    test -n "$CXX" && break
8107  done
8108fi
8109if test -z "$CXX"; then
8110  ac_ct_CXX=$CXX
8111  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8112do
8113  # Extract the first word of "$ac_prog", so it can be a program name with args.
8114set dummy $ac_prog; ac_word=$2
8115echo "$as_me:$LINENO: checking for $ac_word" >&5
8116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8117if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8118  echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120  if test -n "$ac_ct_CXX"; then
8121  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126  IFS=$as_save_IFS
8127  test -z "$as_dir" && as_dir=.
8128  for ac_exec_ext in '' $ac_executable_extensions; do
8129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130    ac_cv_prog_ac_ct_CXX="$ac_prog"
8131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132    break 2
8133  fi
8134done
8135done
8136
8137fi
8138fi
8139ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8140if test -n "$ac_ct_CXX"; then
8141  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8142echo "${ECHO_T}$ac_ct_CXX" >&6
8143else
8144  echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
8146fi
8147
8148  test -n "$ac_ct_CXX" && break
8149done
8150test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8151
8152  CXX=$ac_ct_CXX
8153fi
8154
8155
8156# Provide some information about the compiler.
8157echo "$as_me:$LINENO:" \
8158     "checking for C++ compiler version" >&5
8159ac_compiler=`set X $ac_compile; echo $2`
8160{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8161  (eval $ac_compiler --version </dev/null >&5) 2>&5
8162  ac_status=$?
8163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164  (exit $ac_status); }
8165{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8166  (eval $ac_compiler -v </dev/null >&5) 2>&5
8167  ac_status=$?
8168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169  (exit $ac_status); }
8170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8171  (eval $ac_compiler -V </dev/null >&5) 2>&5
8172  ac_status=$?
8173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174  (exit $ac_status); }
8175
8176echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8177echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8178if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8179  echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181  cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h.  */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h.  */
8187
8188#ifdef F77_DUMMY_MAIN
8189
8190#  ifdef __cplusplus
8191     extern "C"
8192#  endif
8193   int F77_DUMMY_MAIN() { return 1; }
8194
8195#endif
8196int
8197main ()
8198{
8199#ifndef __GNUC__
8200       choke me
8201#endif
8202
8203  ;
8204  return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext
8208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209  (eval $ac_compile) 2>conftest.er1
8210  ac_status=$?
8211  grep -v '^ *+' conftest.er1 >conftest.err
8212  rm -f conftest.er1
8213  cat conftest.err >&5
8214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215  (exit $ac_status); } &&
8216         { ac_try='test -z "$ac_cxx_werror_flag"
8217                         || test ! -s conftest.err'
8218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219  (eval $ac_try) 2>&5
8220  ac_status=$?
8221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222  (exit $ac_status); }; } &&
8223         { ac_try='test -s conftest.$ac_objext'
8224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225  (eval $ac_try) 2>&5
8226  ac_status=$?
8227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228  (exit $ac_status); }; }; then
8229  ac_compiler_gnu=yes
8230else
8231  echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234ac_compiler_gnu=no
8235fi
8236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8238
8239fi
8240echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8241echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8242GXX=`test $ac_compiler_gnu = yes && echo yes`
8243ac_test_CXXFLAGS=${CXXFLAGS+set}
8244ac_save_CXXFLAGS=$CXXFLAGS
8245CXXFLAGS="-g"
8246echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8247echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8248if test "${ac_cv_prog_cxx_g+set}" = set; then
8249  echo $ECHO_N "(cached) $ECHO_C" >&6
8250else
8251  cat >conftest.$ac_ext <<_ACEOF
8252/* confdefs.h.  */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h.  */
8257
8258#ifdef F77_DUMMY_MAIN
8259
8260#  ifdef __cplusplus
8261     extern "C"
8262#  endif
8263   int F77_DUMMY_MAIN() { return 1; }
8264
8265#endif
8266int
8267main ()
8268{
8269
8270  ;
8271  return 0;
8272}
8273_ACEOF
8274rm -f conftest.$ac_objext
8275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276  (eval $ac_compile) 2>conftest.er1
8277  ac_status=$?
8278  grep -v '^ *+' conftest.er1 >conftest.err
8279  rm -f conftest.er1
8280  cat conftest.err >&5
8281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282  (exit $ac_status); } &&
8283         { ac_try='test -z "$ac_cxx_werror_flag"
8284                         || test ! -s conftest.err'
8285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286  (eval $ac_try) 2>&5
8287  ac_status=$?
8288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289  (exit $ac_status); }; } &&
8290         { ac_try='test -s conftest.$ac_objext'
8291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292  (eval $ac_try) 2>&5
8293  ac_status=$?
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); }; }; then
8296  ac_cv_prog_cxx_g=yes
8297else
8298  echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
8301ac_cv_prog_cxx_g=no
8302fi
8303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8304fi
8305echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8306echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8307if test "$ac_test_CXXFLAGS" = set; then
8308  CXXFLAGS=$ac_save_CXXFLAGS
8309elif test $ac_cv_prog_cxx_g = yes; then
8310  if test "$GXX" = yes; then
8311    CXXFLAGS="-g -O2"
8312  else
8313    CXXFLAGS="-g"
8314  fi
8315else
8316  if test "$GXX" = yes; then
8317    CXXFLAGS="-O2"
8318  else
8319    CXXFLAGS=
8320  fi
8321fi
8322for ac_declaration in \
8323   '' \
8324   'extern "C" void std::exit (int) throw (); using std::exit;' \
8325   'extern "C" void std::exit (int); using std::exit;' \
8326   'extern "C" void exit (int) throw ();' \
8327   'extern "C" void exit (int);' \
8328   'void exit (int);'
8329do
8330  cat >conftest.$ac_ext <<_ACEOF
8331/* confdefs.h.  */
8332_ACEOF
8333cat confdefs.h >>conftest.$ac_ext
8334cat >>conftest.$ac_ext <<_ACEOF
8335/* end confdefs.h.  */
8336$ac_declaration
8337#include <stdlib.h>
8338#ifdef F77_DUMMY_MAIN
8339
8340#  ifdef __cplusplus
8341     extern "C"
8342#  endif
8343   int F77_DUMMY_MAIN() { return 1; }
8344
8345#endif
8346int
8347main ()
8348{
8349exit (42);
8350  ;
8351  return 0;
8352}
8353_ACEOF
8354rm -f conftest.$ac_objext
8355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8356  (eval $ac_compile) 2>conftest.er1
8357  ac_status=$?
8358  grep -v '^ *+' conftest.er1 >conftest.err
8359  rm -f conftest.er1
8360  cat conftest.err >&5
8361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362  (exit $ac_status); } &&
8363         { ac_try='test -z "$ac_cxx_werror_flag"
8364                         || test ! -s conftest.err'
8365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366  (eval $ac_try) 2>&5
8367  ac_status=$?
8368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369  (exit $ac_status); }; } &&
8370         { ac_try='test -s conftest.$ac_objext'
8371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372  (eval $ac_try) 2>&5
8373  ac_status=$?
8374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375  (exit $ac_status); }; }; then
8376  :
8377else
8378  echo "$as_me: failed program was:" >&5
8379sed 's/^/| /' conftest.$ac_ext >&5
8380
8381continue
8382fi
8383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8384  cat >conftest.$ac_ext <<_ACEOF
8385/* confdefs.h.  */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h.  */
8390$ac_declaration
8391#ifdef F77_DUMMY_MAIN
8392
8393#  ifdef __cplusplus
8394     extern "C"
8395#  endif
8396   int F77_DUMMY_MAIN() { return 1; }
8397
8398#endif
8399int
8400main ()
8401{
8402exit (42);
8403  ;
8404  return 0;
8405}
8406_ACEOF
8407rm -f conftest.$ac_objext
8408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8409  (eval $ac_compile) 2>conftest.er1
8410  ac_status=$?
8411  grep -v '^ *+' conftest.er1 >conftest.err
8412  rm -f conftest.er1
8413  cat conftest.err >&5
8414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415  (exit $ac_status); } &&
8416         { ac_try='test -z "$ac_cxx_werror_flag"
8417                         || test ! -s conftest.err'
8418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419  (eval $ac_try) 2>&5
8420  ac_status=$?
8421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422  (exit $ac_status); }; } &&
8423         { ac_try='test -s conftest.$ac_objext'
8424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425  (eval $ac_try) 2>&5
8426  ac_status=$?
8427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428  (exit $ac_status); }; }; then
8429  break
8430else
8431  echo "$as_me: failed program was:" >&5
8432sed 's/^/| /' conftest.$ac_ext >&5
8433
8434fi
8435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436done
8437rm -f conftest*
8438if test -n "$ac_declaration"; then
8439  echo '#ifdef __cplusplus' >>confdefs.h
8440  echo $ac_declaration      >>confdefs.h
8441  echo '#endif'             >>confdefs.h
8442fi
8443
8444ac_ext=cc
8445ac_cpp='$CXXCPP $CPPFLAGS'
8446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8449
8450depcc="$CXX"  am_compiler_list=
8451
8452echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8453echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8454if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8455  echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8458  # We make a subdir and do the tests there.  Otherwise we can end up
8459  # making bogus files that we don't know about and never remove.  For
8460  # instance it was reported that on HP-UX the gcc test will end up
8461  # making a dummy file named `D' -- because `-MD' means `put the output
8462  # in D'.
8463  mkdir conftest.dir
8464  # Copy depcomp to subdir because otherwise we won't find it if we're
8465  # using a relative directory.
8466  cp "$am_depcomp" conftest.dir
8467  cd conftest.dir
8468  # We will build objects and dependencies in a subdirectory because
8469  # it helps to detect inapplicable dependency modes.  For instance
8470  # both Tru64's cc and ICC support -MD to output dependencies as a
8471  # side effect of compilation, but ICC will put the dependencies in
8472  # the current directory while Tru64 will put them in the object
8473  # directory.
8474  mkdir sub
8475
8476  am_cv_CXX_dependencies_compiler_type=none
8477  if test "$am_compiler_list" = ""; then
8478     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8479  fi
8480  for depmode in $am_compiler_list; do
8481    # Setup a source with many dependencies, because some compilers
8482    # like to wrap large dependency lists on column 80 (with \), and
8483    # we should not choose a depcomp mode which is confused by this.
8484    #
8485    # We need to recreate these files for each test, as the compiler may
8486    # overwrite some of them when testing with obscure command lines.
8487    # This happens at least with the AIX C compiler.
8488    : > sub/conftest.c
8489    for i in 1 2 3 4 5 6; do
8490      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8491      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8492      # Solaris 8's {/usr,}/bin/sh.
8493      touch sub/conftst$i.h
8494    done
8495    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8496
8497    case $depmode in
8498    nosideeffect)
8499      # after this tag, mechanisms are not by side-effect, so they'll
8500      # only be used when explicitly requested
8501      if test "x$enable_dependency_tracking" = xyes; then
8502        continue
8503      else
8504        break
8505      fi
8506      ;;
8507    none) break ;;
8508    esac
8509    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8510    # mode.  It turns out that the SunPro C++ compiler does not properly
8511    # handle `-M -o', and we need to detect this.
8512    if depmode=$depmode \
8513       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8514       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8515       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8516         >/dev/null 2>conftest.err &&
8517       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8518       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8519       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8520      # icc doesn't choke on unknown options, it will just issue warnings
8521      # or remarks (even with -Werror).  So we grep stderr for any message
8522      # that says an option was ignored or not supported.
8523      # When given -MP, icc 7.0 and 7.1 complain thusly:
8524      #   icc: Command line warning: ignoring option '-M'; no argument required
8525      # The diagnosis changed in icc 8.0:
8526      #   icc: Command line remark: option '-MP' not supported
8527      if (grep 'ignoring option' conftest.err ||
8528          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8529        am_cv_CXX_dependencies_compiler_type=$depmode
8530        break
8531      fi
8532    fi
8533  done
8534
8535  cd ..
8536  rm -rf conftest.dir
8537else
8538  am_cv_CXX_dependencies_compiler_type=none
8539fi
8540
8541fi
8542echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8543echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8544CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8545
8546
8547
8548if
8549  test "x$enable_dependency_tracking" != xno \
8550  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8551  am__fastdepCXX_TRUE=
8552  am__fastdepCXX_FALSE='#'
8553else
8554  am__fastdepCXX_TRUE='#'
8555  am__fastdepCXX_FALSE=
8556fi
8557
8558
8559depcc="$CXX"  am_compiler_list=
8560
8561echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8562echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8563if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8564  echo $ECHO_N "(cached) $ECHO_C" >&6
8565else
8566  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8567  # We make a subdir and do the tests there.  Otherwise we can end up
8568  # making bogus files that we don't know about and never remove.  For
8569  # instance it was reported that on HP-UX the gcc test will end up
8570  # making a dummy file named `D' -- because `-MD' means `put the output
8571  # in D'.
8572  mkdir conftest.dir
8573  # Copy depcomp to subdir because otherwise we won't find it if we're
8574  # using a relative directory.
8575  cp "$am_depcomp" conftest.dir
8576  cd conftest.dir
8577  # We will build objects and dependencies in a subdirectory because
8578  # it helps to detect inapplicable dependency modes.  For instance
8579  # both Tru64's cc and ICC support -MD to output dependencies as a
8580  # side effect of compilation, but ICC will put the dependencies in
8581  # the current directory while Tru64 will put them in the object
8582  # directory.
8583  mkdir sub
8584
8585  am_cv_CXX_dependencies_compiler_type=none
8586  if test "$am_compiler_list" = ""; then
8587     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8588  fi
8589  for depmode in $am_compiler_list; do
8590    # Setup a source with many dependencies, because some compilers
8591    # like to wrap large dependency lists on column 80 (with \), and
8592    # we should not choose a depcomp mode which is confused by this.
8593    #
8594    # We need to recreate these files for each test, as the compiler may
8595    # overwrite some of them when testing with obscure command lines.
8596    # This happens at least with the AIX C compiler.
8597    : > sub/conftest.c
8598    for i in 1 2 3 4 5 6; do
8599      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8600      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8601      # Solaris 8's {/usr,}/bin/sh.
8602      touch sub/conftst$i.h
8603    done
8604    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8605
8606    case $depmode in
8607    nosideeffect)
8608      # after this tag, mechanisms are not by side-effect, so they'll
8609      # only be used when explicitly requested
8610      if test "x$enable_dependency_tracking" = xyes; then
8611        continue
8612      else
8613        break
8614      fi
8615      ;;
8616    none) break ;;
8617    esac
8618    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8619    # mode.  It turns out that the SunPro C++ compiler does not properly
8620    # handle `-M -o', and we need to detect this.
8621    if depmode=$depmode \
8622       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8623       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8624       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8625         >/dev/null 2>conftest.err &&
8626       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8627       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8628       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8629      # icc doesn't choke on unknown options, it will just issue warnings
8630      # or remarks (even with -Werror).  So we grep stderr for any message
8631      # that says an option was ignored or not supported.
8632      # When given -MP, icc 7.0 and 7.1 complain thusly:
8633      #   icc: Command line warning: ignoring option '-M'; no argument required
8634      # The diagnosis changed in icc 8.0:
8635      #   icc: Command line remark: option '-MP' not supported
8636      if (grep 'ignoring option' conftest.err ||
8637          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8638        am_cv_CXX_dependencies_compiler_type=$depmode
8639        break
8640      fi
8641    fi
8642  done
8643
8644  cd ..
8645  rm -rf conftest.dir
8646else
8647  am_cv_CXX_dependencies_compiler_type=none
8648fi
8649
8650fi
8651echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8652echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8653CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8654
8655
8656
8657if
8658  test "x$enable_dependency_tracking" != xno \
8659  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8660  am__fastdepCXX_TRUE=
8661  am__fastdepCXX_FALSE='#'
8662else
8663  am__fastdepCXX_TRUE='#'
8664  am__fastdepCXX_FALSE=
8665fi
8666
8667
8668
8669
8670if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8671    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8672    (test "X$CXX" != "Xg++"))) ; then
8673  ac_ext=cc
8674ac_cpp='$CXXCPP $CPPFLAGS'
8675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8678echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8679echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8680if test -z "$CXXCPP"; then
8681  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8682  echo $ECHO_N "(cached) $ECHO_C" >&6
8683else
8684      # Double quotes because CXXCPP needs to be expanded
8685    for CXXCPP in "$CXX -E" "/lib/cpp"
8686    do
8687      ac_preproc_ok=false
8688for ac_cxx_preproc_warn_flag in '' yes
8689do
8690  # Use a header file that comes with gcc, so configuring glibc
8691  # with a fresh cross-compiler works.
8692  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8693  # <limits.h> exists even on freestanding compilers.
8694  # On the NeXT, cc -E runs the code through the compiler's parser,
8695  # not just through cpp. "Syntax error" is here to catch this case.
8696  cat >conftest.$ac_ext <<_ACEOF
8697/* confdefs.h.  */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h.  */
8702#ifdef __STDC__
8703# include <limits.h>
8704#else
8705# include <assert.h>
8706#endif
8707                     Syntax error
8708_ACEOF
8709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8711  ac_status=$?
8712  grep -v '^ *+' conftest.er1 >conftest.err
8713  rm -f conftest.er1
8714  cat conftest.err >&5
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); } >/dev/null; then
8717  if test -s conftest.err; then
8718    ac_cpp_err=$ac_cxx_preproc_warn_flag
8719    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8720  else
8721    ac_cpp_err=
8722  fi
8723else
8724  ac_cpp_err=yes
8725fi
8726if test -z "$ac_cpp_err"; then
8727  :
8728else
8729  echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732  # Broken: fails on valid input.
8733continue
8734fi
8735rm -f conftest.err conftest.$ac_ext
8736
8737  # OK, works on sane cases.  Now check whether non-existent headers
8738  # can be detected and how.
8739  cat >conftest.$ac_ext <<_ACEOF
8740/* confdefs.h.  */
8741_ACEOF
8742cat confdefs.h >>conftest.$ac_ext
8743cat >>conftest.$ac_ext <<_ACEOF
8744/* end confdefs.h.  */
8745#include <ac_nonexistent.h>
8746_ACEOF
8747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8749  ac_status=$?
8750  grep -v '^ *+' conftest.er1 >conftest.err
8751  rm -f conftest.er1
8752  cat conftest.err >&5
8753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754  (exit $ac_status); } >/dev/null; then
8755  if test -s conftest.err; then
8756    ac_cpp_err=$ac_cxx_preproc_warn_flag
8757    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8758  else
8759    ac_cpp_err=
8760  fi
8761else
8762  ac_cpp_err=yes
8763fi
8764if test -z "$ac_cpp_err"; then
8765  # Broken: success on invalid input.
8766continue
8767else
8768  echo "$as_me: failed program was:" >&5
8769sed 's/^/| /' conftest.$ac_ext >&5
8770
8771  # Passes both tests.
8772ac_preproc_ok=:
8773break
8774fi
8775rm -f conftest.err conftest.$ac_ext
8776
8777done
8778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8779rm -f conftest.err conftest.$ac_ext
8780if $ac_preproc_ok; then
8781  break
8782fi
8783
8784    done
8785    ac_cv_prog_CXXCPP=$CXXCPP
8786
8787fi
8788  CXXCPP=$ac_cv_prog_CXXCPP
8789else
8790  ac_cv_prog_CXXCPP=$CXXCPP
8791fi
8792echo "$as_me:$LINENO: result: $CXXCPP" >&5
8793echo "${ECHO_T}$CXXCPP" >&6
8794ac_preproc_ok=false
8795for ac_cxx_preproc_warn_flag in '' yes
8796do
8797  # Use a header file that comes with gcc, so configuring glibc
8798  # with a fresh cross-compiler works.
8799  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800  # <limits.h> exists even on freestanding compilers.
8801  # On the NeXT, cc -E runs the code through the compiler's parser,
8802  # not just through cpp. "Syntax error" is here to catch this case.
8803  cat >conftest.$ac_ext <<_ACEOF
8804/* confdefs.h.  */
8805_ACEOF
8806cat confdefs.h >>conftest.$ac_ext
8807cat >>conftest.$ac_ext <<_ACEOF
8808/* end confdefs.h.  */
8809#ifdef __STDC__
8810# include <limits.h>
8811#else
8812# include <assert.h>
8813#endif
8814                     Syntax error
8815_ACEOF
8816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8818  ac_status=$?
8819  grep -v '^ *+' conftest.er1 >conftest.err
8820  rm -f conftest.er1
8821  cat conftest.err >&5
8822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823  (exit $ac_status); } >/dev/null; then
8824  if test -s conftest.err; then
8825    ac_cpp_err=$ac_cxx_preproc_warn_flag
8826    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8827  else
8828    ac_cpp_err=
8829  fi
8830else
8831  ac_cpp_err=yes
8832fi
8833if test -z "$ac_cpp_err"; then
8834  :
8835else
8836  echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839  # Broken: fails on valid input.
8840continue
8841fi
8842rm -f conftest.err conftest.$ac_ext
8843
8844  # OK, works on sane cases.  Now check whether non-existent headers
8845  # can be detected and how.
8846  cat >conftest.$ac_ext <<_ACEOF
8847/* confdefs.h.  */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h.  */
8852#include <ac_nonexistent.h>
8853_ACEOF
8854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8855  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8856  ac_status=$?
8857  grep -v '^ *+' conftest.er1 >conftest.err
8858  rm -f conftest.er1
8859  cat conftest.err >&5
8860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861  (exit $ac_status); } >/dev/null; then
8862  if test -s conftest.err; then
8863    ac_cpp_err=$ac_cxx_preproc_warn_flag
8864    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8865  else
8866    ac_cpp_err=
8867  fi
8868else
8869  ac_cpp_err=yes
8870fi
8871if test -z "$ac_cpp_err"; then
8872  # Broken: success on invalid input.
8873continue
8874else
8875  echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878  # Passes both tests.
8879ac_preproc_ok=:
8880break
8881fi
8882rm -f conftest.err conftest.$ac_ext
8883
8884done
8885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8886rm -f conftest.err conftest.$ac_ext
8887if $ac_preproc_ok; then
8888  :
8889else
8890  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8891See \`config.log' for more details." >&5
8892echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8893See \`config.log' for more details." >&2;}
8894   { (exit 1); exit 1; }; }
8895fi
8896
8897ac_ext=cc
8898ac_cpp='$CXXCPP $CPPFLAGS'
8899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8902
8903fi
8904
8905
8906
8907# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8908
8909# find the maximum length of command line arguments
8910echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8911echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8912if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915    i=0
8916  teststring="ABCD"
8917
8918  case $build_os in
8919  msdosdjgpp*)
8920    # On DJGPP, this test can blow up pretty badly due to problems in libc
8921    # (any single argument exceeding 2000 bytes causes a buffer overrun
8922    # during glob expansion).  Even if it were fixed, the result of this
8923    # check would be larger than it should be.
8924    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8925    ;;
8926
8927  gnu*)
8928    # Under GNU Hurd, this test is not required because there is
8929    # no limit to the length of command line arguments.
8930    # Libtool will interpret -1 as no limit whatsoever
8931    lt_cv_sys_max_cmd_len=-1;
8932    ;;
8933
8934  cygwin* | mingw*)
8935    # On Win9x/ME, this test blows up -- it succeeds, but takes
8936    # about 5 minutes as the teststring grows exponentially.
8937    # Worse, since 9x/ME are not pre-emptively multitasking,
8938    # you end up with a "frozen" computer, even though with patience
8939    # the test eventually succeeds (with a max line length of 256k).
8940    # Instead, let's just punt: use the minimum linelength reported by
8941    # all of the supported platforms: 8192 (on NT/2K/XP).
8942    lt_cv_sys_max_cmd_len=8192;
8943    ;;
8944
8945  amigaos*)
8946    # On AmigaOS with pdksh, this test takes hours, literally.
8947    # So we just punt and use a minimum line length of 8192.
8948    lt_cv_sys_max_cmd_len=8192;
8949    ;;
8950
8951  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8952    # This has been around since 386BSD, at least.  Likely further.
8953    if test -x /sbin/sysctl; then
8954      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8955    elif test -x /usr/sbin/sysctl; then
8956      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8957    else
8958      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8959    fi
8960    # And add a safety zone
8961    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8962    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8963    ;;
8964
8965  interix*)
8966    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8967    lt_cv_sys_max_cmd_len=196608
8968    ;;
8969
8970  osf*)
8971    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8972    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8973    # nice to cause kernel panics so lets avoid the loop below.
8974    # First set a reasonable default.
8975    lt_cv_sys_max_cmd_len=16384
8976    #
8977    if test -x /sbin/sysconfig; then
8978      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8979        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8980      esac
8981    fi
8982    ;;
8983  sco3.2v5*)
8984    lt_cv_sys_max_cmd_len=102400
8985    ;;
8986  sysv5* | sco5v6* | sysv4.2uw2*)
8987    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8988    if test -n "$kargmax"; then
8989      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8990    else
8991      lt_cv_sys_max_cmd_len=32768
8992    fi
8993    ;;
8994  *)
8995    # If test is not a shell built-in, we'll probably end up computing a
8996    # maximum length that is only half of the actual maximum length, but
8997    # we can't tell.
8998    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8999    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9000               = "XX$teststring") >/dev/null 2>&1 &&
9001            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9002            lt_cv_sys_max_cmd_len=$new_result &&
9003            test $i != 17 # 1/2 MB should be enough
9004    do
9005      i=`expr $i + 1`
9006      teststring=$teststring$teststring
9007    done
9008    teststring=
9009    # Add a significant safety factor because C++ compilers can tack on massive
9010    # amounts of additional arguments before passing them to the linker.
9011    # It appears as though 1/2 is a usable value.
9012    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9013    ;;
9014  esac
9015
9016fi
9017
9018if test -n $lt_cv_sys_max_cmd_len ; then
9019  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9020echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9021else
9022  echo "$as_me:$LINENO: result: none" >&5
9023echo "${ECHO_T}none" >&6
9024fi
9025
9026
9027
9028
9029# Check for command to grab the raw symbol name followed by C symbol from nm.
9030echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9031echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9032if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9033  echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035
9036# These are sane defaults that work on at least a few old systems.
9037# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9038
9039# Character class describing NM global symbol codes.
9040symcode='[BCDEGRST]'
9041
9042# Regexp to match symbols that can be accessed directly from C.
9043sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9044
9045# Transform an extracted symbol line into a proper C declaration
9046lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9047
9048# Transform an extracted symbol line into symbol name and symbol address
9049lt_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'"
9050
9051# Define system-specific variables.
9052case $host_os in
9053aix*)
9054  symcode='[BCDT]'
9055  ;;
9056cygwin* | mingw* | pw32*)
9057  symcode='[ABCDGISTW]'
9058  ;;
9059hpux*) # Its linker distinguishes data from code symbols
9060  if test "$host_cpu" = ia64; then
9061    symcode='[ABCDEGRST]'
9062  fi
9063  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9064  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'"
9065  ;;
9066linux*)
9067  if test "$host_cpu" = ia64; then
9068    symcode='[ABCDGIRSTW]'
9069    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9070    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'"
9071  fi
9072  ;;
9073irix* | nonstopux*)
9074  symcode='[BCDEGRST]'
9075  ;;
9076osf*)
9077  symcode='[BCDEGQRST]'
9078  ;;
9079solaris*)
9080  symcode='[BDRT]'
9081  ;;
9082sco3.2v5*)
9083  symcode='[DT]'
9084  ;;
9085sysv4.2uw2*)
9086  symcode='[DT]'
9087  ;;
9088sysv5* | sco5v6* | unixware* | OpenUNIX*)
9089  symcode='[ABDT]'
9090  ;;
9091sysv4)
9092  symcode='[DFNSTU]'
9093  ;;
9094esac
9095
9096# Handle CRLF in mingw tool chain
9097opt_cr=
9098case $build_os in
9099mingw*)
9100  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9101  ;;
9102esac
9103
9104# If we're using GNU nm, then use its standard symbol codes.
9105case `$NM -V 2>&1` in
9106*GNU* | *'with BFD'*)
9107  symcode='[ABCDGIRSTW]' ;;
9108esac
9109
9110# Try without a prefix undercore, then with it.
9111for ac_symprfx in "" "_"; do
9112
9113  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9114  symxfrm="\\1 $ac_symprfx\\2 \\2"
9115
9116  # Write the raw and C identifiers.
9117  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9118
9119  # Check to see that the pipe works correctly.
9120  pipe_works=no
9121
9122  rm -f conftest*
9123  cat > conftest.$ac_ext <<EOF
9124#ifdef __cplusplus
9125extern "C" {
9126#endif
9127char nm_test_var;
9128void nm_test_func(){}
9129#ifdef __cplusplus
9130}
9131#endif
9132int main(){nm_test_var='a';nm_test_func();return(0);}
9133EOF
9134
9135  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136  (eval $ac_compile) 2>&5
9137  ac_status=$?
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); }; then
9140    # Now try to grab the symbols.
9141    nlist=conftest.nm
9142    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9143  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); } && test -s "$nlist"; then
9147      # Try sorting and uniquifying the output.
9148      if sort "$nlist" | uniq > "$nlist"T; then
9149        mv -f "$nlist"T "$nlist"
9150      else
9151        rm -f "$nlist"T
9152      fi
9153
9154      # Make sure that we snagged all the symbols we need.
9155      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9156        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9157          cat <<EOF > conftest.$ac_ext
9158#ifdef __cplusplus
9159extern "C" {
9160#endif
9161
9162EOF
9163          # Now generate the symbol file.
9164          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9165
9166          cat <<EOF >> conftest.$ac_ext
9167#if defined (__STDC__) && __STDC__
9168# define lt_ptr_t void *
9169#else
9170# define lt_ptr_t char *
9171# define const
9172#endif
9173
9174/* The mapping between symbol names and symbols. */
9175const struct {
9176  const char *name;
9177  lt_ptr_t address;
9178}
9179lt_preloaded_symbols[] =
9180{
9181EOF
9182          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9183          cat <<\EOF >> conftest.$ac_ext
9184  {0, (lt_ptr_t) 0}
9185};
9186
9187#ifdef __cplusplus
9188}
9189#endif
9190EOF
9191          # Now try linking the two files.
9192          mv conftest.$ac_objext conftstm.$ac_objext
9193          lt_save_LIBS="$LIBS"
9194          lt_save_CFLAGS="$CFLAGS"
9195          LIBS="conftstm.$ac_objext"
9196          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9197          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9198  (eval $ac_link) 2>&5
9199  ac_status=$?
9200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9202            pipe_works=yes
9203          fi
9204          LIBS="$lt_save_LIBS"
9205          CFLAGS="$lt_save_CFLAGS"
9206        else
9207          echo "cannot find nm_test_func in $nlist" >&5
9208        fi
9209      else
9210        echo "cannot find nm_test_var in $nlist" >&5
9211      fi
9212    else
9213      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9214    fi
9215  else
9216    echo "$progname: failed program was:" >&5
9217    cat conftest.$ac_ext >&5
9218  fi
9219  rm -f conftest* conftst*
9220
9221  # Do not use the global_symbol_pipe unless it works.
9222  if test "$pipe_works" = yes; then
9223    break
9224  else
9225    lt_cv_sys_global_symbol_pipe=
9226  fi
9227done
9228
9229fi
9230
9231if test -z "$lt_cv_sys_global_symbol_pipe"; then
9232  lt_cv_sys_global_symbol_to_cdecl=
9233fi
9234if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9235  echo "$as_me:$LINENO: result: failed" >&5
9236echo "${ECHO_T}failed" >&6
9237else
9238  echo "$as_me:$LINENO: result: ok" >&5
9239echo "${ECHO_T}ok" >&6
9240fi
9241
9242echo "$as_me:$LINENO: checking for objdir" >&5
9243echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9244if test "${lt_cv_objdir+set}" = set; then
9245  echo $ECHO_N "(cached) $ECHO_C" >&6
9246else
9247  rm -f .libs 2>/dev/null
9248mkdir .libs 2>/dev/null
9249if test -d .libs; then
9250  lt_cv_objdir=.libs
9251else
9252  # MS-DOS does not allow filenames that begin with a dot.
9253  lt_cv_objdir=_libs
9254fi
9255rmdir .libs 2>/dev/null
9256fi
9257echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9258echo "${ECHO_T}$lt_cv_objdir" >&6
9259objdir=$lt_cv_objdir
9260
9261
9262
9263
9264
9265case $host_os in
9266aix3*)
9267  # AIX sometimes has problems with the GCC collect2 program.  For some
9268  # reason, if we set the COLLECT_NAMES environment variable, the problems
9269  # vanish in a puff of smoke.
9270  if test "X${COLLECT_NAMES+set}" != Xset; then
9271    COLLECT_NAMES=
9272    export COLLECT_NAMES
9273  fi
9274  ;;
9275esac
9276
9277# Sed substitution that helps us do robust quoting.  It backslashifies
9278# metacharacters that are still active within double-quoted strings.
9279Xsed='sed -e 1s/^X//'
9280sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9281
9282# Same as above, but do not quote variable references.
9283double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9284
9285# Sed substitution to delay expansion of an escaped shell variable in a
9286# double_quote_subst'ed string.
9287delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9288
9289# Sed substitution to avoid accidental globbing in evaled expressions
9290no_glob_subst='s/\*/\\\*/g'
9291
9292# Constants:
9293rm="rm -f"
9294
9295# Global variables:
9296default_ofile=libtool
9297can_build_shared=yes
9298
9299# All known linkers require a `.a' archive for static linking (except MSVC,
9300# which needs '.lib').
9301libext=a
9302ltmain="$ac_aux_dir/ltmain.sh"
9303ofile="$default_ofile"
9304with_gnu_ld="$lt_cv_prog_gnu_ld"
9305
9306if test -n "$ac_tool_prefix"; then
9307  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9308set dummy ${ac_tool_prefix}ar; ac_word=$2
9309echo "$as_me:$LINENO: checking for $ac_word" >&5
9310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9311if test "${ac_cv_prog_AR+set}" = set; then
9312  echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314  if test -n "$AR"; then
9315  ac_cv_prog_AR="$AR" # Let the user override the test.
9316else
9317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318for as_dir in $PATH
9319do
9320  IFS=$as_save_IFS
9321  test -z "$as_dir" && as_dir=.
9322  for ac_exec_ext in '' $ac_executable_extensions; do
9323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9324    ac_cv_prog_AR="${ac_tool_prefix}ar"
9325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9326    break 2
9327  fi
9328done
9329done
9330
9331fi
9332fi
9333AR=$ac_cv_prog_AR
9334if test -n "$AR"; then
9335  echo "$as_me:$LINENO: result: $AR" >&5
9336echo "${ECHO_T}$AR" >&6
9337else
9338  echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6
9340fi
9341
9342fi
9343if test -z "$ac_cv_prog_AR"; then
9344  ac_ct_AR=$AR
9345  # Extract the first word of "ar", so it can be a program name with args.
9346set dummy ar; ac_word=$2
9347echo "$as_me:$LINENO: checking for $ac_word" >&5
9348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9349if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9350  echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352  if test -n "$ac_ct_AR"; then
9353  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9354else
9355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356for as_dir in $PATH
9357do
9358  IFS=$as_save_IFS
9359  test -z "$as_dir" && as_dir=.
9360  for ac_exec_ext in '' $ac_executable_extensions; do
9361  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362    ac_cv_prog_ac_ct_AR="ar"
9363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9364    break 2
9365  fi
9366done
9367done
9368
9369  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9370fi
9371fi
9372ac_ct_AR=$ac_cv_prog_ac_ct_AR
9373if test -n "$ac_ct_AR"; then
9374  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9375echo "${ECHO_T}$ac_ct_AR" >&6
9376else
9377  echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
9379fi
9380
9381  AR=$ac_ct_AR
9382else
9383  AR="$ac_cv_prog_AR"
9384fi
9385
9386if test -n "$ac_tool_prefix"; then
9387  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9388set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9389echo "$as_me:$LINENO: checking for $ac_word" >&5
9390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9391if test "${ac_cv_prog_RANLIB+set}" = set; then
9392  echo $ECHO_N "(cached) $ECHO_C" >&6
9393else
9394  if test -n "$RANLIB"; then
9395  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9396else
9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398for as_dir in $PATH
9399do
9400  IFS=$as_save_IFS
9401  test -z "$as_dir" && as_dir=.
9402  for ac_exec_ext in '' $ac_executable_extensions; do
9403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9406    break 2
9407  fi
9408done
9409done
9410
9411fi
9412fi
9413RANLIB=$ac_cv_prog_RANLIB
9414if test -n "$RANLIB"; then
9415  echo "$as_me:$LINENO: result: $RANLIB" >&5
9416echo "${ECHO_T}$RANLIB" >&6
9417else
9418  echo "$as_me:$LINENO: result: no" >&5
9419echo "${ECHO_T}no" >&6
9420fi
9421
9422fi
9423if test -z "$ac_cv_prog_RANLIB"; then
9424  ac_ct_RANLIB=$RANLIB
9425  # Extract the first word of "ranlib", so it can be a program name with args.
9426set dummy ranlib; ac_word=$2
9427echo "$as_me:$LINENO: checking for $ac_word" >&5
9428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9429if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9430  echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432  if test -n "$ac_ct_RANLIB"; then
9433  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9434else
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438  IFS=$as_save_IFS
9439  test -z "$as_dir" && as_dir=.
9440  for ac_exec_ext in '' $ac_executable_extensions; do
9441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9442    ac_cv_prog_ac_ct_RANLIB="ranlib"
9443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9444    break 2
9445  fi
9446done
9447done
9448
9449  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9450fi
9451fi
9452ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9453if test -n "$ac_ct_RANLIB"; then
9454  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9455echo "${ECHO_T}$ac_ct_RANLIB" >&6
9456else
9457  echo "$as_me:$LINENO: result: no" >&5
9458echo "${ECHO_T}no" >&6
9459fi
9460
9461  RANLIB=$ac_ct_RANLIB
9462else
9463  RANLIB="$ac_cv_prog_RANLIB"
9464fi
9465
9466if test -n "$ac_tool_prefix"; then
9467  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9468set dummy ${ac_tool_prefix}strip; ac_word=$2
9469echo "$as_me:$LINENO: checking for $ac_word" >&5
9470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9471if test "${ac_cv_prog_STRIP+set}" = set; then
9472  echo $ECHO_N "(cached) $ECHO_C" >&6
9473else
9474  if test -n "$STRIP"; then
9475  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9476else
9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480  IFS=$as_save_IFS
9481  test -z "$as_dir" && as_dir=.
9482  for ac_exec_ext in '' $ac_executable_extensions; do
9483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9484    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9486    break 2
9487  fi
9488done
9489done
9490
9491fi
9492fi
9493STRIP=$ac_cv_prog_STRIP
9494if test -n "$STRIP"; then
9495  echo "$as_me:$LINENO: result: $STRIP" >&5
9496echo "${ECHO_T}$STRIP" >&6
9497else
9498  echo "$as_me:$LINENO: result: no" >&5
9499echo "${ECHO_T}no" >&6
9500fi
9501
9502fi
9503if test -z "$ac_cv_prog_STRIP"; then
9504  ac_ct_STRIP=$STRIP
9505  # Extract the first word of "strip", so it can be a program name with args.
9506set dummy strip; ac_word=$2
9507echo "$as_me:$LINENO: checking for $ac_word" >&5
9508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9509if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9510  echo $ECHO_N "(cached) $ECHO_C" >&6
9511else
9512  if test -n "$ac_ct_STRIP"; then
9513  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9514else
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518  IFS=$as_save_IFS
9519  test -z "$as_dir" && as_dir=.
9520  for ac_exec_ext in '' $ac_executable_extensions; do
9521  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522    ac_cv_prog_ac_ct_STRIP="strip"
9523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9524    break 2
9525  fi
9526done
9527done
9528
9529  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9530fi
9531fi
9532ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9533if test -n "$ac_ct_STRIP"; then
9534  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9535echo "${ECHO_T}$ac_ct_STRIP" >&6
9536else
9537  echo "$as_me:$LINENO: result: no" >&5
9538echo "${ECHO_T}no" >&6
9539fi
9540
9541  STRIP=$ac_ct_STRIP
9542else
9543  STRIP="$ac_cv_prog_STRIP"
9544fi
9545
9546
9547old_CC="$CC"
9548old_CFLAGS="$CFLAGS"
9549
9550# Set sane defaults for various variables
9551test -z "$AR" && AR=ar
9552test -z "$AR_FLAGS" && AR_FLAGS=cru
9553test -z "$AS" && AS=as
9554test -z "$CC" && CC=cc
9555test -z "$LTCC" && LTCC=$CC
9556test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9557test -z "$DLLTOOL" && DLLTOOL=dlltool
9558test -z "$LD" && LD=ld
9559test -z "$LN_S" && LN_S="ln -s"
9560test -z "$MAGIC_CMD" && MAGIC_CMD=file
9561test -z "$NM" && NM=nm
9562test -z "$SED" && SED=sed
9563test -z "$OBJDUMP" && OBJDUMP=objdump
9564test -z "$RANLIB" && RANLIB=:
9565test -z "$STRIP" && STRIP=:
9566test -z "$ac_objext" && ac_objext=o
9567
9568# Determine commands to create old-style static archives.
9569old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9570old_postinstall_cmds='chmod 644 $oldlib'
9571old_postuninstall_cmds=
9572
9573if test -n "$RANLIB"; then
9574  case $host_os in
9575  openbsd*)
9576    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9577    ;;
9578  *)
9579    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9580    ;;
9581  esac
9582  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9583fi
9584
9585for cc_temp in $compiler""; do
9586  case $cc_temp in
9587    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9588    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9589    \-*) ;;
9590    *) break;;
9591  esac
9592done
9593cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9594
9595
9596# Only perform the check for file, if the check method requires it
9597case $deplibs_check_method in
9598file_magic*)
9599  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9600    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9601echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9602if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9603  echo $ECHO_N "(cached) $ECHO_C" >&6
9604else
9605  case $MAGIC_CMD in
9606[\\/*] |  ?:[\\/]*)
9607  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9608  ;;
9609*)
9610  lt_save_MAGIC_CMD="$MAGIC_CMD"
9611  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9612  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9613  for ac_dir in $ac_dummy; do
9614    IFS="$lt_save_ifs"
9615    test -z "$ac_dir" && ac_dir=.
9616    if test -f $ac_dir/${ac_tool_prefix}file; then
9617      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9618      if test -n "$file_magic_test_file"; then
9619        case $deplibs_check_method in
9620        "file_magic "*)
9621          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9622          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9623          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9624            $EGREP "$file_magic_regex" > /dev/null; then
9625            :
9626          else
9627            cat <<EOF 1>&2
9628
9629*** Warning: the command libtool uses to detect shared libraries,
9630*** $file_magic_cmd, produces output that libtool cannot recognize.
9631*** The result is that libtool may fail to recognize shared libraries
9632*** as such.  This will affect the creation of libtool libraries that
9633*** depend on shared libraries, but programs linked with such libtool
9634*** libraries will work regardless of this problem.  Nevertheless, you
9635*** may want to report the problem to your system manager and/or to
9636*** bug-libtool@gnu.org
9637
9638EOF
9639          fi ;;
9640        esac
9641      fi
9642      break
9643    fi
9644  done
9645  IFS="$lt_save_ifs"
9646  MAGIC_CMD="$lt_save_MAGIC_CMD"
9647  ;;
9648esac
9649fi
9650
9651MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9652if test -n "$MAGIC_CMD"; then
9653  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9654echo "${ECHO_T}$MAGIC_CMD" >&6
9655else
9656  echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658fi
9659
9660if test -z "$lt_cv_path_MAGIC_CMD"; then
9661  if test -n "$ac_tool_prefix"; then
9662    echo "$as_me:$LINENO: checking for file" >&5
9663echo $ECHO_N "checking for file... $ECHO_C" >&6
9664if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9665  echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667  case $MAGIC_CMD in
9668[\\/*] |  ?:[\\/]*)
9669  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9670  ;;
9671*)
9672  lt_save_MAGIC_CMD="$MAGIC_CMD"
9673  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9674  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9675  for ac_dir in $ac_dummy; do
9676    IFS="$lt_save_ifs"
9677    test -z "$ac_dir" && ac_dir=.
9678    if test -f $ac_dir/file; then
9679      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9680      if test -n "$file_magic_test_file"; then
9681        case $deplibs_check_method in
9682        "file_magic "*)
9683          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9684          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9685          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9686            $EGREP "$file_magic_regex" > /dev/null; then
9687            :
9688          else
9689            cat <<EOF 1>&2
9690
9691*** Warning: the command libtool uses to detect shared libraries,
9692*** $file_magic_cmd, produces output that libtool cannot recognize.
9693*** The result is that libtool may fail to recognize shared libraries
9694*** as such.  This will affect the creation of libtool libraries that
9695*** depend on shared libraries, but programs linked with such libtool
9696*** libraries will work regardless of this problem.  Nevertheless, you
9697*** may want to report the problem to your system manager and/or to
9698*** bug-libtool@gnu.org
9699
9700EOF
9701          fi ;;
9702        esac
9703      fi
9704      break
9705    fi
9706  done
9707  IFS="$lt_save_ifs"
9708  MAGIC_CMD="$lt_save_MAGIC_CMD"
9709  ;;
9710esac
9711fi
9712
9713MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9714if test -n "$MAGIC_CMD"; then
9715  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9716echo "${ECHO_T}$MAGIC_CMD" >&6
9717else
9718  echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
9720fi
9721
9722  else
9723    MAGIC_CMD=:
9724  fi
9725fi
9726
9727  fi
9728  ;;
9729esac
9730
9731enable_dlopen=no
9732enable_win32_dll=no
9733
9734# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9735if test "${enable_libtool_lock+set}" = set; then
9736  enableval="$enable_libtool_lock"
9737
9738fi;
9739test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9740
9741
9742# Check whether --with-pic or --without-pic was given.
9743if test "${with_pic+set}" = set; then
9744  withval="$with_pic"
9745  pic_mode="$withval"
9746else
9747  pic_mode=default
9748fi;
9749test -z "$pic_mode" && pic_mode=default
9750
9751# Use C for the default configuration in the libtool script
9752tagname=
9753lt_save_CC="$CC"
9754ac_ext=c
9755ac_cpp='$CPP $CPPFLAGS'
9756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9758ac_compiler_gnu=$ac_cv_c_compiler_gnu
9759
9760
9761# Source file extension for C test sources.
9762ac_ext=c
9763
9764# Object file extension for compiled C test sources.
9765objext=o
9766objext=$objext
9767
9768# Code to be used in simple compile tests
9769lt_simple_compile_test_code="int some_variable = 0;\n"
9770
9771# Code to be used in simple link tests
9772lt_simple_link_test_code='int main(){return(0);}\n'
9773
9774
9775# If no C compiler was specified, use CC.
9776LTCC=${LTCC-"$CC"}
9777
9778# If no C compiler flags were specified, use CFLAGS.
9779LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9780
9781# Allow CC to be a program name with arguments.
9782compiler=$CC
9783
9784
9785# save warnings/boilerplate of simple test code
9786ac_outfile=conftest.$ac_objext
9787printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9789_lt_compiler_boilerplate=`cat conftest.err`
9790$rm conftest*
9791
9792ac_outfile=conftest.$ac_objext
9793printf "$lt_simple_link_test_code" >conftest.$ac_ext
9794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9795_lt_linker_boilerplate=`cat conftest.err`
9796$rm conftest*
9797
9798
9799## CAVEAT EMPTOR:
9800## There is no encapsulation within the following macros, do not change
9801## the running order or otherwise move them around unless you know exactly
9802## what you are doing...
9803
9804lt_prog_compiler_no_builtin_flag=
9805
9806if test "$GCC" = yes; then
9807  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9808
9809
9810echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9811echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9812if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9813  echo $ECHO_N "(cached) $ECHO_C" >&6
9814else
9815  lt_cv_prog_compiler_rtti_exceptions=no
9816  ac_outfile=conftest.$ac_objext
9817   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9818   lt_compiler_flag="-fno-rtti -fno-exceptions"
9819   # Insert the option either (1) after the last *FLAGS variable, or
9820   # (2) before a word containing "conftest.", or (3) at the end.
9821   # Note that $ac_compile itself does not contain backslashes and begins
9822   # with a dollar sign (not a hyphen), so the echo should work correctly.
9823   # The option is referenced via a variable to avoid confusing sed.
9824   lt_compile=`echo "$ac_compile" | $SED \
9825   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9826   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9827   -e 's:$: $lt_compiler_flag:'`
9828   (eval echo "\"\$as_me:9828: $lt_compile\"" >&5)
9829   (eval "$lt_compile" 2>conftest.err)
9830   ac_status=$?
9831   cat conftest.err >&5
9832   echo "$as_me:9832: \$? = $ac_status" >&5
9833   if (exit $ac_status) && test -s "$ac_outfile"; then
9834     # The compiler can only warn and ignore the option if not recognized
9835     # So say no if there are warnings other than the usual output.
9836     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9837     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9838     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9839       lt_cv_prog_compiler_rtti_exceptions=yes
9840     fi
9841   fi
9842   $rm conftest*
9843
9844fi
9845echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9846echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9847
9848if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9849    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9850else
9851    :
9852fi
9853
9854fi
9855
9856lt_prog_compiler_wl=
9857lt_prog_compiler_pic=
9858lt_prog_compiler_static=
9859
9860echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9861echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9862
9863  if test "$GCC" = yes; then
9864    lt_prog_compiler_wl='-Wl,'
9865    lt_prog_compiler_static='-static'
9866
9867    case $host_os in
9868      aix*)
9869      # All AIX code is PIC.
9870      if test "$host_cpu" = ia64; then
9871        # AIX 5 now supports IA64 processor
9872        lt_prog_compiler_static='-Bstatic'
9873      fi
9874      ;;
9875
9876    amigaos*)
9877      # FIXME: we need at least 68020 code to build shared libraries, but
9878      # adding the `-m68020' flag to GCC prevents building anything better,
9879      # like `-m68040'.
9880      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9881      ;;
9882
9883    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9884      # PIC is the default for these OSes.
9885      ;;
9886
9887    mingw* | pw32* | os2*)
9888      # This hack is so that the source file can tell whether it is being
9889      # built for inclusion in a dll (and should export symbols for example).
9890      lt_prog_compiler_pic='-DDLL_EXPORT'
9891      ;;
9892
9893    darwin* | rhapsody*)
9894      # PIC is the default on this platform
9895      # Common symbols not allowed in MH_DYLIB files
9896      lt_prog_compiler_pic='-fno-common'
9897      ;;
9898
9899    interix3*)
9900      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9901      # Instead, we relocate shared libraries at runtime.
9902      ;;
9903
9904    msdosdjgpp*)
9905      # Just because we use GCC doesn't mean we suddenly get shared libraries
9906      # on systems that don't support them.
9907      lt_prog_compiler_can_build_shared=no
9908      enable_shared=no
9909      ;;
9910
9911    sysv4*MP*)
9912      if test -d /usr/nec; then
9913        lt_prog_compiler_pic=-Kconform_pic
9914      fi
9915      ;;
9916
9917    hpux*)
9918      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9919      # not for PA HP-UX.
9920      case $host_cpu in
9921      hppa*64*|ia64*)
9922        # +Z the default
9923        ;;
9924      *)
9925        lt_prog_compiler_pic='-fPIC'
9926        ;;
9927      esac
9928      ;;
9929
9930    *)
9931      lt_prog_compiler_pic='-fPIC'
9932      ;;
9933    esac
9934  else
9935    # PORTME Check for flag to pass linker flags through the system compiler.
9936    case $host_os in
9937    aix*)
9938      lt_prog_compiler_wl='-Wl,'
9939      if test "$host_cpu" = ia64; then
9940        # AIX 5 now supports IA64 processor
9941        lt_prog_compiler_static='-Bstatic'
9942      else
9943        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9944      fi
9945      ;;
9946      darwin*)
9947        # PIC is the default on this platform
9948        # Common symbols not allowed in MH_DYLIB files
9949       case $cc_basename in
9950         xlc*)
9951         lt_prog_compiler_pic='-qnocommon'
9952         lt_prog_compiler_wl='-Wl,'
9953         ;;
9954       esac
9955       ;;
9956
9957    mingw* | pw32* | os2*)
9958      # This hack is so that the source file can tell whether it is being
9959      # built for inclusion in a dll (and should export symbols for example).
9960      lt_prog_compiler_pic='-DDLL_EXPORT'
9961      ;;
9962
9963    hpux9* | hpux10* | hpux11*)
9964      lt_prog_compiler_wl='-Wl,'
9965      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9966      # not for PA HP-UX.
9967      case $host_cpu in
9968      hppa*64*|ia64*)
9969        # +Z the default
9970        ;;
9971      *)
9972        lt_prog_compiler_pic='+Z'
9973        ;;
9974      esac
9975      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9976      lt_prog_compiler_static='${wl}-a ${wl}archive'
9977      ;;
9978
9979    irix5* | irix6* | nonstopux*)
9980      lt_prog_compiler_wl='-Wl,'
9981      # PIC (with -KPIC) is the default.
9982      lt_prog_compiler_static='-non_shared'
9983      ;;
9984
9985    newsos6)
9986      lt_prog_compiler_pic='-KPIC'
9987      lt_prog_compiler_static='-Bstatic'
9988      ;;
9989
9990    linux*)
9991      case $cc_basename in
9992      icc* | ecc*)
9993        lt_prog_compiler_wl='-Wl,'
9994        lt_prog_compiler_pic='-KPIC'
9995        lt_prog_compiler_static='-static'
9996        ;;
9997      pgcc* | pgf77* | pgf90* | pgf95*)
9998        # Portland Group compilers (*not* the Pentium gcc compiler,
9999        # which looks to be a dead project)
10000        lt_prog_compiler_wl='-Wl,'
10001        lt_prog_compiler_pic='-fpic'
10002        lt_prog_compiler_static='-Bstatic'
10003        ;;
10004      ccc*)
10005        lt_prog_compiler_wl='-Wl,'
10006        # All Alpha code is PIC.
10007        lt_prog_compiler_static='-non_shared'
10008        ;;
10009      esac
10010      ;;
10011
10012    osf3* | osf4* | osf5*)
10013      lt_prog_compiler_wl='-Wl,'
10014      # All OSF/1 code is PIC.
10015      lt_prog_compiler_static='-non_shared'
10016      ;;
10017
10018    solaris*)
10019      lt_prog_compiler_pic='-KPIC'
10020      lt_prog_compiler_static='-Bstatic'
10021      case $cc_basename in
10022      f77* | f90* | f95*)
10023        lt_prog_compiler_wl='-Qoption ld ';;
10024      *)
10025        lt_prog_compiler_wl='-Wl,';;
10026      esac
10027      ;;
10028
10029    sunos4*)
10030      lt_prog_compiler_wl='-Qoption ld '
10031      lt_prog_compiler_pic='-PIC'
10032      lt_prog_compiler_static='-Bstatic'
10033      ;;
10034
10035    sysv4 | sysv4.2uw2* | sysv4.3*)
10036      lt_prog_compiler_wl='-Wl,'
10037      lt_prog_compiler_pic='-KPIC'
10038      lt_prog_compiler_static='-Bstatic'
10039      ;;
10040
10041    sysv4*MP*)
10042      if test -d /usr/nec ;then
10043        lt_prog_compiler_pic='-Kconform_pic'
10044        lt_prog_compiler_static='-Bstatic'
10045      fi
10046      ;;
10047
10048    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10049      lt_prog_compiler_wl='-Wl,'
10050      lt_prog_compiler_pic='-KPIC'
10051      lt_prog_compiler_static='-Bstatic'
10052      ;;
10053
10054    unicos*)
10055      lt_prog_compiler_wl='-Wl,'
10056      lt_prog_compiler_can_build_shared=no
10057      ;;
10058
10059    uts4*)
10060      lt_prog_compiler_pic='-pic'
10061      lt_prog_compiler_static='-Bstatic'
10062      ;;
10063
10064    *)
10065      lt_prog_compiler_can_build_shared=no
10066      ;;
10067    esac
10068  fi
10069
10070echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10071echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10072
10073#
10074# Check to make sure the PIC flag actually works.
10075#
10076if test -n "$lt_prog_compiler_pic"; then
10077
10078echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10079echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10080if test "${lt_prog_compiler_pic_works+set}" = set; then
10081  echo $ECHO_N "(cached) $ECHO_C" >&6
10082else
10083  lt_prog_compiler_pic_works=no
10084  ac_outfile=conftest.$ac_objext
10085   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10086   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10087   # Insert the option either (1) after the last *FLAGS variable, or
10088   # (2) before a word containing "conftest.", or (3) at the end.
10089   # Note that $ac_compile itself does not contain backslashes and begins
10090   # with a dollar sign (not a hyphen), so the echo should work correctly.
10091   # The option is referenced via a variable to avoid confusing sed.
10092   lt_compile=`echo "$ac_compile" | $SED \
10093   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10094   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10095   -e 's:$: $lt_compiler_flag:'`
10096   (eval echo "\"\$as_me:10096: $lt_compile\"" >&5)
10097   (eval "$lt_compile" 2>conftest.err)
10098   ac_status=$?
10099   cat conftest.err >&5
10100   echo "$as_me:10100: \$? = $ac_status" >&5
10101   if (exit $ac_status) && test -s "$ac_outfile"; then
10102     # The compiler can only warn and ignore the option if not recognized
10103     # So say no if there are warnings other than the usual output.
10104     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10105     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10106     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10107       lt_prog_compiler_pic_works=yes
10108     fi
10109   fi
10110   $rm conftest*
10111
10112fi
10113echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10114echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10115
10116if test x"$lt_prog_compiler_pic_works" = xyes; then
10117    case $lt_prog_compiler_pic in
10118     "" | " "*) ;;
10119     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10120     esac
10121else
10122    lt_prog_compiler_pic=
10123     lt_prog_compiler_can_build_shared=no
10124fi
10125
10126fi
10127case $host_os in
10128  # For platforms which do not support PIC, -DPIC is meaningless:
10129  *djgpp*)
10130    lt_prog_compiler_pic=
10131    ;;
10132  *)
10133    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10134    ;;
10135esac
10136
10137#
10138# Check to make sure the static flag actually works.
10139#
10140wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10141echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10142echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10143if test "${lt_prog_compiler_static_works+set}" = set; then
10144  echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146  lt_prog_compiler_static_works=no
10147   save_LDFLAGS="$LDFLAGS"
10148   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10149   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10150   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10151     # The linker can only warn and ignore the option if not recognized
10152     # So say no if there are warnings
10153     if test -s conftest.err; then
10154       # Append any errors to the config.log.
10155       cat conftest.err 1>&5
10156       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10157       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10158       if diff conftest.exp conftest.er2 >/dev/null; then
10159         lt_prog_compiler_static_works=yes
10160       fi
10161     else
10162       lt_prog_compiler_static_works=yes
10163     fi
10164   fi
10165   $rm conftest*
10166   LDFLAGS="$save_LDFLAGS"
10167
10168fi
10169echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10170echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10171
10172if test x"$lt_prog_compiler_static_works" = xyes; then
10173    :
10174else
10175    lt_prog_compiler_static=
10176fi
10177
10178
10179echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10180echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10181if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10182  echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184  lt_cv_prog_compiler_c_o=no
10185   $rm -r conftest 2>/dev/null
10186   mkdir conftest
10187   cd conftest
10188   mkdir out
10189   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10190
10191   lt_compiler_flag="-o out/conftest2.$ac_objext"
10192   # Insert the option either (1) after the last *FLAGS variable, or
10193   # (2) before a word containing "conftest.", or (3) at the end.
10194   # Note that $ac_compile itself does not contain backslashes and begins
10195   # with a dollar sign (not a hyphen), so the echo should work correctly.
10196   lt_compile=`echo "$ac_compile" | $SED \
10197   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10198   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10199   -e 's:$: $lt_compiler_flag:'`
10200   (eval echo "\"\$as_me:10200: $lt_compile\"" >&5)
10201   (eval "$lt_compile" 2>out/conftest.err)
10202   ac_status=$?
10203   cat out/conftest.err >&5
10204   echo "$as_me:10204: \$? = $ac_status" >&5
10205   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10206   then
10207     # The compiler can only warn and ignore the option if not recognized
10208     # So say no if there are warnings
10209     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10210     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10211     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10212       lt_cv_prog_compiler_c_o=yes
10213     fi
10214   fi
10215   chmod u+w . 2>&5
10216   $rm conftest*
10217   # SGI C++ compiler will create directory out/ii_files/ for
10218   # template instantiation
10219   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10220   $rm out/* && rmdir out
10221   cd ..
10222   rmdir conftest
10223   $rm conftest*
10224
10225fi
10226echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10227echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10228
10229
10230hard_links="nottested"
10231if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10232  # do not overwrite the value of need_locks provided by the user
10233  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10234echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10235  hard_links=yes
10236  $rm conftest*
10237  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10238  touch conftest.a
10239  ln conftest.a conftest.b 2>&5 || hard_links=no
10240  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10241  echo "$as_me:$LINENO: result: $hard_links" >&5
10242echo "${ECHO_T}$hard_links" >&6
10243  if test "$hard_links" = no; then
10244    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10245echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10246    need_locks=warn
10247  fi
10248else
10249  need_locks=no
10250fi
10251
10252echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10253echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10254
10255  runpath_var=
10256  allow_undefined_flag=
10257  enable_shared_with_static_runtimes=no
10258  archive_cmds=
10259  archive_expsym_cmds=
10260  old_archive_From_new_cmds=
10261  old_archive_from_expsyms_cmds=
10262  export_dynamic_flag_spec=
10263  whole_archive_flag_spec=
10264  thread_safe_flag_spec=
10265  hardcode_libdir_flag_spec=
10266  hardcode_libdir_flag_spec_ld=
10267  hardcode_libdir_separator=
10268  hardcode_direct=no
10269  hardcode_minus_L=no
10270  hardcode_shlibpath_var=unsupported
10271  link_all_deplibs=unknown
10272  hardcode_automatic=no
10273  module_cmds=
10274  module_expsym_cmds=
10275  always_export_symbols=no
10276  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10277  # include_expsyms should be a list of space-separated symbols to be *always*
10278  # included in the symbol list
10279  include_expsyms=
10280  # exclude_expsyms can be an extended regexp of symbols to exclude
10281  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10282  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10283  # as well as any symbol that contains `d'.
10284  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10285  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10286  # platforms (ab)use it in PIC code, but their linkers get confused if
10287  # the symbol is explicitly referenced.  Since portable code cannot
10288  # rely on this symbol name, it's probably fine to never include it in
10289  # preloaded symbol tables.
10290  extract_expsyms_cmds=
10291  # Just being paranoid about ensuring that cc_basename is set.
10292  for cc_temp in $compiler""; do
10293  case $cc_temp in
10294    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10295    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10296    \-*) ;;
10297    *) break;;
10298  esac
10299done
10300cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10301
10302  case $host_os in
10303  cygwin* | mingw* | pw32*)
10304    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10305    # When not using gcc, we currently assume that we are using
10306    # Microsoft Visual C++.
10307    if test "$GCC" != yes; then
10308      with_gnu_ld=no
10309    fi
10310    ;;
10311  interix*)
10312    # we just hope/assume this is gcc and not c89 (= MSVC++)
10313    with_gnu_ld=yes
10314    ;;
10315  openbsd*)
10316    with_gnu_ld=no
10317    ;;
10318  esac
10319
10320  ld_shlibs=yes
10321  if test "$with_gnu_ld" = yes; then
10322    # If archive_cmds runs LD, not CC, wlarc should be empty
10323    wlarc='${wl}'
10324
10325    # Set some defaults for GNU ld with shared library support. These
10326    # are reset later if shared libraries are not supported. Putting them
10327    # here allows them to be overridden if necessary.
10328    runpath_var=LD_RUN_PATH
10329    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10330    export_dynamic_flag_spec='${wl}--export-dynamic'
10331    # ancient GNU ld didn't support --whole-archive et. al.
10332    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10333        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10334      else
10335        whole_archive_flag_spec=
10336    fi
10337    supports_anon_versioning=no
10338    case `$LD -v 2>/dev/null` in
10339      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10340      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10341      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10342      *\ 2.11.*) ;; # other 2.11 versions
10343      *) supports_anon_versioning=yes ;;
10344    esac
10345
10346    # See if GNU ld supports shared libraries.
10347    case $host_os in
10348    aix3* | aix4* | aix5*)
10349      # On AIX/PPC, the GNU linker is very broken
10350      if test "$host_cpu" != ia64; then
10351        ld_shlibs=no
10352        cat <<EOF 1>&2
10353
10354*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10355*** to be unable to reliably create shared libraries on AIX.
10356*** Therefore, libtool is disabling shared libraries support.  If you
10357*** really care for shared libraries, you may want to modify your PATH
10358*** so that a non-GNU linker is found, and then restart.
10359
10360EOF
10361      fi
10362      ;;
10363
10364    amigaos*)
10365      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)'
10366      hardcode_libdir_flag_spec='-L$libdir'
10367      hardcode_minus_L=yes
10368
10369      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10370      # that the semantics of dynamic libraries on AmigaOS, at least up
10371      # to version 4, is to share data among multiple programs linked
10372      # with the same dynamic library.  Since this doesn't match the
10373      # behavior of shared libraries on other platforms, we can't use
10374      # them.
10375      ld_shlibs=no
10376      ;;
10377
10378    beos*)
10379      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10380        allow_undefined_flag=unsupported
10381        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10382        # support --undefined.  This deserves some investigation.  FIXME
10383        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384      else
10385        ld_shlibs=no
10386      fi
10387      ;;
10388
10389    cygwin* | mingw* | pw32*)
10390      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10391      # as there is no search path for DLLs.
10392      hardcode_libdir_flag_spec='-L$libdir'
10393      allow_undefined_flag=unsupported
10394      always_export_symbols=no
10395      enable_shared_with_static_runtimes=yes
10396      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10397
10398      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10399        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10400        # If the export-symbols file already is a .def file (1st line
10401        # is EXPORTS), use it as is; otherwise, prepend...
10402        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10403          cp $export_symbols $output_objdir/$soname.def;
10404        else
10405          echo EXPORTS > $output_objdir/$soname.def;
10406          cat $export_symbols >> $output_objdir/$soname.def;
10407        fi~
10408        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10409      else
10410        ld_shlibs=no
10411      fi
10412      ;;
10413
10414    interix3*)
10415      hardcode_direct=no
10416      hardcode_shlibpath_var=no
10417      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10418      export_dynamic_flag_spec='${wl}-E'
10419      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10420      # Instead, shared libraries are loaded at an image base (0x10000000 by
10421      # default) and relocated if they conflict, which is a slow very memory
10422      # consuming and fragmenting process.  To avoid this, we pick a random,
10423      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10424      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10425      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10426      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'
10427      ;;
10428
10429    linux*)
10430      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10431        tmp_addflag=
10432        case $cc_basename,$host_cpu in
10433        pgcc*)                          # Portland Group C compiler
10434          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'
10435          tmp_addflag=' $pic_flag'
10436          ;;
10437        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10438          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'
10439          tmp_addflag=' $pic_flag -Mnomain' ;;
10440        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10441          tmp_addflag=' -i_dynamic' ;;
10442        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10443          tmp_addflag=' -i_dynamic -nofor_main' ;;
10444        ifc* | ifort*)                  # Intel Fortran compiler
10445          tmp_addflag=' -nofor_main' ;;
10446        esac
10447        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448
10449        if test $supports_anon_versioning = yes; then
10450          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10451  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10452  $echo "local: *; };" >> $output_objdir/$libname.ver~
10453          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10454        fi
10455      else
10456        ld_shlibs=no
10457      fi
10458      ;;
10459
10460    netbsd*)
10461      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10462        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10463        wlarc=
10464      else
10465        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10466        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10467      fi
10468      ;;
10469
10470    solaris*)
10471      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10472        ld_shlibs=no
10473        cat <<EOF 1>&2
10474
10475*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10476*** create shared libraries on Solaris systems.  Therefore, libtool
10477*** is disabling shared libraries support.  We urge you to upgrade GNU
10478*** binutils to release 2.9.1 or newer.  Another option is to modify
10479*** your PATH or compiler configuration so that the native linker is
10480*** used, and then restart.
10481
10482EOF
10483      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10484        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10485        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10486      else
10487        ld_shlibs=no
10488      fi
10489      ;;
10490
10491    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10492      case `$LD -v 2>&1` in
10493        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10494        ld_shlibs=no
10495        cat <<_LT_EOF 1>&2
10496
10497*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10498*** reliably create shared libraries on SCO systems.  Therefore, libtool
10499*** is disabling shared libraries support.  We urge you to upgrade GNU
10500*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10501*** your PATH or compiler configuration so that the native linker is
10502*** used, and then restart.
10503
10504_LT_EOF
10505        ;;
10506        *)
10507          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10508            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10509            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10510            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10511          else
10512            ld_shlibs=no
10513          fi
10514        ;;
10515      esac
10516      ;;
10517
10518    sunos4*)
10519      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10520      wlarc=
10521      hardcode_direct=yes
10522      hardcode_shlibpath_var=no
10523      ;;
10524
10525    *)
10526      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10527        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10529      else
10530        ld_shlibs=no
10531      fi
10532      ;;
10533    esac
10534
10535    if test "$ld_shlibs" = no; then
10536      runpath_var=
10537      hardcode_libdir_flag_spec=
10538      export_dynamic_flag_spec=
10539      whole_archive_flag_spec=
10540    fi
10541  else
10542    # PORTME fill in a description of your system's linker (not GNU ld)
10543    case $host_os in
10544    aix3*)
10545      allow_undefined_flag=unsupported
10546      always_export_symbols=yes
10547      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'
10548      # Note: this linker hardcodes the directories in LIBPATH if there
10549      # are no directories specified by -L.
10550      hardcode_minus_L=yes
10551      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10552        # Neither direct hardcoding nor static linking is supported with a
10553        # broken collect2.
10554        hardcode_direct=unsupported
10555      fi
10556      ;;
10557
10558    aix4* | aix5*)
10559      if test "$host_cpu" = ia64; then
10560        # On IA64, the linker does run time linking by default, so we don't
10561        # have to do anything special.
10562        aix_use_runtimelinking=no
10563        exp_sym_flag='-Bexport'
10564        no_entry_flag=""
10565      else
10566        # If we're using GNU nm, then we don't want the "-C" option.
10567        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10568        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10569          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'
10570        else
10571          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'
10572        fi
10573        aix_use_runtimelinking=no
10574
10575        # Test if we are trying to use run time linking or normal
10576        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10577        # need to do runtime linking.
10578        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10579          for ld_flag in $LDFLAGS; do
10580          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10581            aix_use_runtimelinking=yes
10582            break
10583          fi
10584          done
10585          ;;
10586        esac
10587
10588        exp_sym_flag='-bexport'
10589        no_entry_flag='-bnoentry'
10590      fi
10591
10592      # When large executables or shared objects are built, AIX ld can
10593      # have problems creating the table of contents.  If linking a library
10594      # or program results in "error TOC overflow" add -mminimal-toc to
10595      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10596      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10597
10598      archive_cmds=''
10599      hardcode_direct=yes
10600      hardcode_libdir_separator=':'
10601      link_all_deplibs=yes
10602
10603      if test "$GCC" = yes; then
10604        case $host_os in aix4.[012]|aix4.[012].*)
10605        # We only want to do this on AIX 4.2 and lower, the check
10606        # below for broken collect2 doesn't work under 4.3+
10607          collect2name=`${CC} -print-prog-name=collect2`
10608          if test -f "$collect2name" && \
10609           strings "$collect2name" | grep resolve_lib_name >/dev/null
10610          then
10611          # We have reworked collect2
10612          hardcode_direct=yes
10613          else
10614          # We have old collect2
10615          hardcode_direct=unsupported
10616          # It fails to find uninstalled libraries when the uninstalled
10617          # path is not listed in the libpath.  Setting hardcode_minus_L
10618          # to unsupported forces relinking
10619          hardcode_minus_L=yes
10620          hardcode_libdir_flag_spec='-L$libdir'
10621          hardcode_libdir_separator=
10622          fi
10623          ;;
10624        esac
10625        shared_flag='-shared'
10626        if test "$aix_use_runtimelinking" = yes; then
10627          shared_flag="$shared_flag "'${wl}-G'
10628        fi
10629      else
10630        # not using gcc
10631        if test "$host_cpu" = ia64; then
10632        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10633        # chokes on -Wl,-G. The following line is correct:
10634          shared_flag='-G'
10635        else
10636          if test "$aix_use_runtimelinking" = yes; then
10637            shared_flag='${wl}-G'
10638          else
10639            shared_flag='${wl}-bM:SRE'
10640          fi
10641        fi
10642      fi
10643
10644      # It seems that -bexpall does not export symbols beginning with
10645      # underscore (_), so it is better to generate a list of symbols to export.
10646      always_export_symbols=yes
10647      if test "$aix_use_runtimelinking" = yes; then
10648        # Warning - without using the other runtime loading flags (-brtl),
10649        # -berok will link without error, but may produce a broken library.
10650        allow_undefined_flag='-berok'
10651       # Determine the default libpath from the value encoded in an empty executable.
10652       cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h.  */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h.  */
10658
10659#ifdef F77_DUMMY_MAIN
10660
10661#  ifdef __cplusplus
10662     extern "C"
10663#  endif
10664   int F77_DUMMY_MAIN() { return 1; }
10665
10666#endif
10667int
10668main ()
10669{
10670
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675rm -f conftest.$ac_objext conftest$ac_exeext
10676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677  (eval $ac_link) 2>conftest.er1
10678  ac_status=$?
10679  grep -v '^ *+' conftest.er1 >conftest.err
10680  rm -f conftest.er1
10681  cat conftest.err >&5
10682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683  (exit $ac_status); } &&
10684         { ac_try='test -z "$ac_c_werror_flag"
10685                         || test ! -s conftest.err'
10686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687  (eval $ac_try) 2>&5
10688  ac_status=$?
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); }; } &&
10691         { ac_try='test -s conftest$ac_exeext'
10692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693  (eval $ac_try) 2>&5
10694  ac_status=$?
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); }; }; then
10697
10698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10699}'`
10700# Check for a 64-bit object if we didn't find anything.
10701if 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; }
10702}'`; fi
10703else
10704  echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707fi
10708rm -f conftest.err conftest.$ac_objext \
10709      conftest$ac_exeext conftest.$ac_ext
10710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10711
10712       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10713        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"
10714       else
10715        if test "$host_cpu" = ia64; then
10716          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10717          allow_undefined_flag="-z nodefs"
10718          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"
10719        else
10720         # Determine the default libpath from the value encoded in an empty executable.
10721         cat >conftest.$ac_ext <<_ACEOF
10722/* confdefs.h.  */
10723_ACEOF
10724cat confdefs.h >>conftest.$ac_ext
10725cat >>conftest.$ac_ext <<_ACEOF
10726/* end confdefs.h.  */
10727
10728#ifdef F77_DUMMY_MAIN
10729
10730#  ifdef __cplusplus
10731     extern "C"
10732#  endif
10733   int F77_DUMMY_MAIN() { return 1; }
10734
10735#endif
10736int
10737main ()
10738{
10739
10740  ;
10741  return 0;
10742}
10743_ACEOF
10744rm -f conftest.$ac_objext conftest$ac_exeext
10745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10746  (eval $ac_link) 2>conftest.er1
10747  ac_status=$?
10748  grep -v '^ *+' conftest.er1 >conftest.err
10749  rm -f conftest.er1
10750  cat conftest.err >&5
10751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752  (exit $ac_status); } &&
10753         { ac_try='test -z "$ac_c_werror_flag"
10754                         || test ! -s conftest.err'
10755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756  (eval $ac_try) 2>&5
10757  ac_status=$?
10758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759  (exit $ac_status); }; } &&
10760         { ac_try='test -s conftest$ac_exeext'
10761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762  (eval $ac_try) 2>&5
10763  ac_status=$?
10764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765  (exit $ac_status); }; }; then
10766
10767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10768}'`
10769# Check for a 64-bit object if we didn't find anything.
10770if 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; }
10771}'`; fi
10772else
10773  echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776fi
10777rm -f conftest.err conftest.$ac_objext \
10778      conftest$ac_exeext conftest.$ac_ext
10779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10780
10781         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10782          # Warning - without using the other run time loading flags,
10783          # -berok will link without error, but may produce a broken library.
10784          no_undefined_flag=' ${wl}-bernotok'
10785          allow_undefined_flag=' ${wl}-berok'
10786          # Exported symbols can be pulled into shared objects from archives
10787          whole_archive_flag_spec='$convenience'
10788          archive_cmds_need_lc=yes
10789          # This is similar to how AIX traditionally builds its shared libraries.
10790          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'
10791        fi
10792      fi
10793      ;;
10794
10795    amigaos*)
10796      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)'
10797      hardcode_libdir_flag_spec='-L$libdir'
10798      hardcode_minus_L=yes
10799      # see comment about different semantics on the GNU ld section
10800      ld_shlibs=no
10801      ;;
10802
10803    bsdi[45]*)
10804      export_dynamic_flag_spec=-rdynamic
10805      ;;
10806
10807    cygwin* | mingw* | pw32*)
10808      # When not using gcc, we currently assume that we are using
10809      # Microsoft Visual C++.
10810      # hardcode_libdir_flag_spec is actually meaningless, as there is
10811      # no search path for DLLs.
10812      hardcode_libdir_flag_spec=' '
10813      allow_undefined_flag=unsupported
10814      # Tell ltmain to make .lib files, not .a files.
10815      libext=lib
10816      # Tell ltmain to make .dll files, not .so files.
10817      shrext_cmds=".dll"
10818      # FIXME: Setting linknames here is a bad hack.
10819      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10820      # The linker will automatically build a .lib file if we build a DLL.
10821      old_archive_From_new_cmds='true'
10822      # FIXME: Should let the user specify the lib program.
10823      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10824      fix_srcfile_path='`cygpath -w "$srcfile"`'
10825      enable_shared_with_static_runtimes=yes
10826      ;;
10827
10828    darwin* | rhapsody*)
10829      case $host_os in
10830        rhapsody* | darwin1.[012])
10831         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10832         ;;
10833       *) # Darwin 1.3 on
10834         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10835           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefi