source: ThirdParty/FilterSQP/trunk/configure @ 3293

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

temporarily committing stable candidate

File size: 771.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 1.3.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='ThirdPartyFilterSQP 1.3'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion FILTERSQP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS FILTERSQP_PCLIBS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyFilterSQP 1.3 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 1.3:";;
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.3
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.3, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604
1605# As backup, we make sure we don't loose an FLIBS if it has been set
1606# by the user
1607save_FLIBS="$FLIBS"
1608
1609# A useful makefile conditional that is always false
1610
1611
1612if false; then
1613  ALWAYS_FALSE_TRUE=
1614  ALWAYS_FALSE_FALSE='#'
1615else
1616  ALWAYS_FALSE_TRUE='#'
1617  ALWAYS_FALSE_FALSE=
1618fi
1619
1620
1621# We set the following variable so that we know later in AC_COIN_FINALIZE
1622# that we are in a project main directory
1623coin_projectdir=yes
1624
1625# Set the project's version numbers
1626
1627
1628cat >>confdefs.h <<_ACEOF
1629#define FILTERSQP_VERSION "$PACKAGE_VERSION"
1630_ACEOF
1631
1632
1633  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1634  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1635  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1636  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1637  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1638  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1639
1640cat >>confdefs.h <<_ACEOF
1641#define FILTERSQP_VERSION_MAJOR $coin_majorver
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define FILTERSQP_VERSION_MINOR $coin_minorver
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define FILTERSQP_VERSION_RELEASE $coin_releasever
1652_ACEOF
1653
1654
1655  # We use the following variable to have a string with the upper case
1656  # version of the project name
1657  COIN_PRJCT=FILTERSQP
1658
1659  # Set the project's SVN revision number. The complicated sed expression
1660  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1661  # as a single number.
1662  # Extract the first word of "svnversion", so it can be a program name with args.
1663set dummy svnversion; ac_word=$2
1664echo "$as_me:$LINENO: checking for $ac_word" >&5
1665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666if test "${ac_cv_prog_have_svnversion+set}" = set; then
1667  echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669  if test -n "$have_svnversion"; then
1670  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1671else
1672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673for as_dir in $PATH
1674do
1675  IFS=$as_save_IFS
1676  test -z "$as_dir" && as_dir=.
1677  for ac_exec_ext in '' $ac_executable_extensions; do
1678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679    ac_cv_prog_have_svnversion="yes"
1680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681    break 2
1682  fi
1683done
1684done
1685
1686  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1687fi
1688fi
1689have_svnversion=$ac_cv_prog_have_svnversion
1690if test -n "$have_svnversion"; then
1691  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1692echo "${ECHO_T}$have_svnversion" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698  if test "x$have_svnversion" = xyes; then
1699
1700    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1701    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1702      FILTERSQP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1703
1704cat >>confdefs.h <<_ACEOF
1705#define FILTERSQP_SVN_REV $FILTERSQP_SVN_REV
1706_ACEOF
1707
1708    fi
1709  fi
1710
1711
1712
1713# Capture libtool library version, if given.
1714
1715
1716
1717
1718#############################################################################
1719#                         Standard build tool stuff                         #
1720#############################################################################
1721
1722# Get the system type
1723ac_aux_dir=
1724for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1725  if test -f $ac_dir/install-sh; then
1726    ac_aux_dir=$ac_dir
1727    ac_install_sh="$ac_aux_dir/install-sh -c"
1728    break
1729  elif test -f $ac_dir/install.sh; then
1730    ac_aux_dir=$ac_dir
1731    ac_install_sh="$ac_aux_dir/install.sh -c"
1732    break
1733  elif test -f $ac_dir/shtool; then
1734    ac_aux_dir=$ac_dir
1735    ac_install_sh="$ac_aux_dir/shtool install -c"
1736    break
1737  fi
1738done
1739if test -z "$ac_aux_dir"; then
1740  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1741echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1742   { (exit 1); exit 1; }; }
1743fi
1744ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1745ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1746ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1747
1748# Make sure we can run config.sub.
1749$ac_config_sub sun4 >/dev/null 2>&1 ||
1750  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1751echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1752   { (exit 1); exit 1; }; }
1753
1754echo "$as_me:$LINENO: checking build system type" >&5
1755echo $ECHO_N "checking build system type... $ECHO_C" >&6
1756if test "${ac_cv_build+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  ac_cv_build_alias=$build_alias
1760test -z "$ac_cv_build_alias" &&
1761  ac_cv_build_alias=`$ac_config_guess`
1762test -z "$ac_cv_build_alias" &&
1763  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1764echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1765   { (exit 1); exit 1; }; }
1766ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1767  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1768echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1769   { (exit 1); exit 1; }; }
1770
1771fi
1772echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1773echo "${ECHO_T}$ac_cv_build" >&6
1774build=$ac_cv_build
1775build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1776build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1777build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1778
1779
1780
1781# Check if user wants to produce debugging code
1782
1783echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1784echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1785
1786# Check whether --enable-debug or --disable-debug was given.
1787if test "${enable_debug+set}" = set; then
1788  enableval="$enable_debug"
1789  case "${enableval}" in
1790   yes) coin_debug_compile=true
1791        if test "${enable_shared+set}" = set; then :; else
1792          enable_shared=no
1793        fi
1794        ;;
1795   no)  coin_debug_compile=false
1796        ;;
1797   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1798echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1799   { (exit 1); exit 1; }; }
1800        ;;
1801esac
1802else
1803  coin_debug_compile=false
1804fi;
1805
1806# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1807if test "${enable_debug_filtersqp+set}" = set; then
1808  enableval="$enable_debug_filtersqp"
1809  case "${enableval}" in
1810    yes) coin_debug_compile=true
1811         ;;
1812    no)  coin_debug_compile=false
1813         ;;
1814    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1815echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1816   { (exit 1); exit 1; }; }
1817         ;;
1818 esac
1819else
1820  :
1821fi;
1822
1823 # m4_ifvaln([FilterSQP],
1824
1825if test $coin_debug_compile = true; then
1826  echo "$as_me:$LINENO: result: yes" >&5
1827echo "${ECHO_T}yes" >&6
1828else
1829  echo "$as_me:$LINENO: result: no" >&5
1830echo "${ECHO_T}no" >&6
1831fi
1832
1833
1834# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1835if test "${with_filtersqp_verbosity+set}" = set; then
1836  withval="$with_filtersqp_verbosity"
1837  if test "$withval" = yes; then
1838                withval=1
1839              fi
1840              coin_filtersqp_verbosity=$withval
1841else
1842  coin_filtersqp_verbosity=0
1843fi;
1844
1845cat >>confdefs.h <<_ACEOF
1846#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1847_ACEOF
1848
1849
1850
1851# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1852if test "${with_filtersqp_checklevel+set}" = set; then
1853  withval="$with_filtersqp_checklevel"
1854  if test "$withval" = yes; then
1855                withval=1
1856              fi
1857              coin_filtersqp_checklevel=$withval
1858else
1859  coin_filtersqp_checklevel=0
1860fi;
1861
1862cat >>confdefs.h <<_ACEOF
1863#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1864_ACEOF
1865
1866
1867 # m4_ifvaln([FilterSQP],
1868
1869
1870
1871# Get the name of the Fortran compiler and appropriate compiler options
1872
1873
1874  # for backward compatibility
1875  # Check whether --enable-doscompile or --disable-doscompile was given.
1876if test "${enable_doscompile+set}" = set; then
1877  enableval="$enable_doscompile"
1878  enable_doscompile=$enableval
1879else
1880  enable_doscompile=no
1881fi;
1882
1883  # Check whether --enable-msvc or --disable-msvc was given.
1884if test "${enable_msvc+set}" = set; then
1885  enableval="$enable_msvc"
1886  enable_msvc=$enableval
1887else
1888  enable_msvc=no
1889     if test "$enable_doscompile" = msvc ; then
1890       enable_msvc=yes
1891     elif test "$enable_doscompile" != no ; then
1892       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1893echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1894   { (exit 1); exit 1; }; }
1895     fi
1896
1897fi;
1898
1899  if test "$enable_msvc" = MD; then
1900    enable_shared=yes
1901    enable_msvc=yes
1902  fi
1903
1904  if test "$enable_msvc" = yes; then
1905    case $build in
1906      *-cygwin* | *-mingw*) ;;
1907      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1908echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1909   { (exit 1); exit 1; }; } ;;
1910    esac
1911  fi
1912
1913
1914
1915ac_ext=c
1916ac_cpp='$CPP $CPPFLAGS'
1917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1919ac_compiler_gnu=$ac_cv_c_compiler_gnu
1920
1921
1922# For consistency, we set the C compiler to the same value of the C++
1923# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1924if test x"$CXX" != x; then
1925  case "$CXX" in
1926    clang* ) ;;
1927    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1928      if test x"$CC" = x; then
1929        CC="$CXX"
1930        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1931echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1932      fi
1933      ;;
1934  esac
1935fi
1936
1937
1938
1939
1940
1941
1942coin_has_cc=yes
1943
1944save_cflags="$CFLAGS"
1945
1946# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1947# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1948# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1949# compiler. In this case, put cc after gcc.
1950
1951case $build in
1952  *-cygwin* | *-mingw*)
1953             if test "$enable_msvc" = yes ; then
1954               comps="icl cl gcc"
1955             else
1956               comps="gcc icl cl"
1957             fi ;;
1958  *-*-solaris*)
1959             # Extract the first word of "cc", so it can be a program name with args.
1960set dummy cc; ac_word=$2
1961echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  if test -n "$sol_cc_compiler"; then
1967  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1968else
1969  ac_prog_rejected=no
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973  IFS=$as_save_IFS
1974  test -z "$as_dir" && as_dir=.
1975  for ac_exec_ext in '' $ac_executable_extensions; do
1976  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1978       ac_prog_rejected=yes
1979       continue
1980     fi
1981    ac_cv_prog_sol_cc_compiler="cc"
1982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983    break 2
1984  fi
1985done
1986done
1987
1988if test $ac_prog_rejected = yes; then
1989  # We found a bogon in the path, so make sure we never use it.
1990  set dummy $ac_cv_prog_sol_cc_compiler
1991  shift
1992  if test $# != 0; then
1993    # We chose a different compiler from the bogus one.
1994    # However, it has the same basename, so the bogon will be chosen
1995    # first if we set sol_cc_compiler to just the basename; use the full file name.
1996    shift
1997    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1998  fi
1999fi
2000fi
2001fi
2002sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2003if test -n "$sol_cc_compiler"; then
2004  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2005echo "${ECHO_T}$sol_cc_compiler" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011             if test "$sol_cc_compiler" = "cc" ; then
2012               comps="cc xlc gcc pgcc icc"
2013             else
2014               comps="xlc gcc pgcc icc cc"
2015             fi
2016             ;;
2017  *-*-darwin*) comps="clang gcc cc" ;;
2018  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2019  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2020  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2021esac
2022
2023# We delete the cached value, since the test might not have been
2024# performed with our choice of compilers earlier
2025$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2026# AC_MSG_NOTICE([C compiler candidates: $comps])
2027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS'
2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032if test -n "$ac_tool_prefix"; then
2033  for ac_prog in $comps
2034  do
2035    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039if test "${ac_cv_prog_CC+set}" = set; then
2040  echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042  if test -n "$CC"; then
2043  ac_cv_prog_CC="$CC" # Let the user override the test.
2044else
2045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048  IFS=$as_save_IFS
2049  test -z "$as_dir" && as_dir=.
2050  for ac_exec_ext in '' $ac_executable_extensions; do
2051  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2053    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054    break 2
2055  fi
2056done
2057done
2058
2059fi
2060fi
2061CC=$ac_cv_prog_CC
2062if test -n "$CC"; then
2063  echo "$as_me:$LINENO: result: $CC" >&5
2064echo "${ECHO_T}$CC" >&6
2065else
2066  echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6
2068fi
2069
2070    test -n "$CC" && break
2071  done
2072fi
2073if test -z "$CC"; then
2074  ac_ct_CC=$CC
2075  for ac_prog in $comps
2076do
2077  # Extract the first word of "$ac_prog", so it can be a program name with args.
2078set dummy $ac_prog; ac_word=$2
2079echo "$as_me:$LINENO: checking for $ac_word" >&5
2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082  echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084  if test -n "$ac_ct_CC"; then
2085  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086else
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090  IFS=$as_save_IFS
2091  test -z "$as_dir" && as_dir=.
2092  for ac_exec_ext in '' $ac_executable_extensions; do
2093  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094    ac_cv_prog_ac_ct_CC="$ac_prog"
2095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096    break 2
2097  fi
2098done
2099done
2100
2101fi
2102fi
2103ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104if test -n "$ac_ct_CC"; then
2105  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106echo "${ECHO_T}$ac_ct_CC" >&6
2107else
2108  echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6
2110fi
2111
2112  test -n "$ac_ct_CC" && break
2113done
2114
2115  CC=$ac_ct_CC
2116fi
2117
2118
2119test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&2;}
2123   { (exit 1); exit 1; }; }
2124
2125# Provide some information about the compiler.
2126echo "$as_me:$LINENO:" \
2127     "checking for C compiler version" >&5
2128ac_compiler=`set X $ac_compile; echo $2`
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130  (eval $ac_compiler --version </dev/null >&5) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135  (eval $ac_compiler -v </dev/null >&5) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140  (eval $ac_compiler -V </dev/null >&5) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }
2144
2145cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160ac_clean_files_save=$ac_clean_files
2161ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162# Try to create an executable without -o first, disregard a.out.
2163# It will help us diagnose broken compilers, and finding out an intuition
2164# of exeext.
2165echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169  (eval $ac_link_default) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }; then
2173  # Find the output, starting from the most likely.  This scheme is
2174# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175# resort.
2176
2177# Be careful to initialize this variable, since it used to be cached.
2178# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179ac_cv_exeext=
2180# b.out is created by i960 compilers.
2181for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182do
2183  test -f "$ac_file" || continue
2184  case $ac_file in
2185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186        ;;
2187    conftest.$ac_ext )
2188        # This is the source file.
2189        ;;
2190    [ab].out )
2191        # We found the default executable, but exeext='' is most
2192        # certainly right.
2193        break;;
2194    *.* )
2195        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196        # FIXME: I believe we export ac_cv_exeext for Libtool,
2197        # but it would be cool to find out if it's true.  Does anybody
2198        # maintain Libtool? --akim.
2199        export ac_cv_exeext
2200        break;;
2201    * )
2202        break;;
2203  esac
2204done
2205else
2206  echo "$as_me: failed program was:" >&5
2207sed 's/^/| /' conftest.$ac_ext >&5
2208
2209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210See \`config.log' for more details." >&5
2211echo "$as_me: error: C compiler cannot create executables
2212See \`config.log' for more details." >&2;}
2213   { (exit 77); exit 77; }; }
2214fi
2215
2216ac_exeext=$ac_cv_exeext
2217echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6
2219
2220# Check the compiler produces executables we can run.  If not, either
2221# the compiler is broken, or we cross compile.
2222echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227  if { ac_try='./$ac_file'
2228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229  (eval $ac_try) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }; }; then
2233    cross_compiling=no
2234  else
2235    if test "$cross_compiling" = maybe; then
2236        cross_compiling=yes
2237    else
2238        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
2241echo "$as_me: error: cannot run C compiled programs.
2242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
2244   { (exit 1); exit 1; }; }
2245    fi
2246  fi
2247fi
2248echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6
2250
2251rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252ac_clean_files=$ac_clean_files_save
2253# Check the compiler produces executables we can run.  If not, either
2254# the compiler is broken, or we cross compile.
2255echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6
2259
2260echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263  (eval $ac_link) 2>&5
2264  ac_status=$?
2265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266  (exit $ac_status); }; then
2267  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
2271for ac_file in conftest.exe conftest conftest.*; do
2272  test -f "$ac_file" || continue
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276          export ac_cv_exeext
2277          break;;
2278    * ) break;;
2279  esac
2280done
2281else
2282  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287fi
2288
2289rm -f conftest$ac_cv_exeext
2290echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
2296echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298if test "${ac_cv_objext+set}" = set; then
2299  echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301  cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h.  */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h.  */
2307
2308int
2309main ()
2310{
2311
2312  ;
2313  return 0;
2314}
2315_ACEOF
2316rm -f conftest.o conftest.obj
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318  (eval $ac_compile) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; then
2322  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323  case $ac_file in
2324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326       break;;
2327  esac
2328done
2329else
2330  echo "$as_me: failed program was:" >&5
2331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&2;}
2337   { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341fi
2342echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343echo "${ECHO_T}$ac_cv_objext" >&6
2344OBJEXT=$ac_cv_objext
2345ac_objext=$OBJEXT
2346echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  cat >conftest.$ac_ext <<_ACEOF
2352/* confdefs.h.  */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h.  */
2357
2358int
2359main ()
2360{
2361#ifndef __GNUC__
2362       choke me
2363#endif
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371  (eval $ac_compile) 2>conftest.er1
2372  ac_status=$?
2373  grep -v '^ *+' conftest.er1 >conftest.err
2374  rm -f conftest.er1
2375  cat conftest.err >&5
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); } &&
2378         { ac_try='test -z "$ac_c_werror_flag"
2379                         || test ! -s conftest.err'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; } &&
2385         { ac_try='test -s conftest.$ac_objext'
2386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387  (eval $ac_try) 2>&5
2388  ac_status=$?
2389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390  (exit $ac_status); }; }; then
2391  ac_compiler_gnu=yes
2392else
2393  echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396ac_compiler_gnu=no
2397fi
2398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401fi
2402echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404GCC=`test $ac_compiler_gnu = yes && echo yes`
2405ac_test_CFLAGS=${CFLAGS+set}
2406ac_save_CFLAGS=$CFLAGS
2407CFLAGS="-g"
2408echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410if test "${ac_cv_prog_cc_g+set}" = set; then
2411  echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413  cat >conftest.$ac_ext <<_ACEOF
2414/* confdefs.h.  */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h.  */
2419
2420int
2421main ()
2422{
2423
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430  (eval $ac_compile) 2>conftest.er1
2431  ac_status=$?
2432  grep -v '^ *+' conftest.er1 >conftest.err
2433  rm -f conftest.er1
2434  cat conftest.err >&5
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); } &&
2437         { ac_try='test -z "$ac_c_werror_flag"
2438                         || test ! -s conftest.err'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; } &&
2444         { ac_try='test -s conftest.$ac_objext'
2445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446  (eval $ac_try) 2>&5
2447  ac_status=$?
2448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449  (exit $ac_status); }; }; then
2450  ac_cv_prog_cc_g=yes
2451else
2452  echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455ac_cv_prog_cc_g=no
2456fi
2457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461if test "$ac_test_CFLAGS" = set; then
2462  CFLAGS=$ac_save_CFLAGS
2463elif test $ac_cv_prog_cc_g = yes; then
2464  if test "$GCC" = yes; then
2465    CFLAGS="-g -O2"
2466  else
2467    CFLAGS="-g"
2468  fi
2469else
2470  if test "$GCC" = yes; then
2471    CFLAGS="-O2"
2472  else
2473    CFLAGS=
2474  fi
2475fi
2476echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479  echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481  ac_cv_prog_cc_stdc=no
2482ac_save_CC=$CC
2483cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h.  */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h.  */
2489#include <stdarg.h>
2490#include <stdio.h>
2491#include <sys/types.h>
2492#include <sys/stat.h>
2493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494struct buf { int x; };
2495FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496static char *e (p, i)
2497     char **p;
2498     int i;
2499{
2500  return p[i];
2501}
2502static char *f (char * (*g) (char **, int), char **p, ...)
2503{
2504  char *s;
2505  va_list v;
2506  va_start (v,p);
2507  s = g (p, va_arg (v,int));
2508  va_end (v);
2509  return s;
2510}
2511
2512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513   function prototypes and stuff, but not '\xHH' hex character constants.
2514   These don't provoke an error unfortunately, instead are silently treated
2515   as 'x'.  The following induces an error, until -std1 is added to get
2516   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517   array size at least.  It's necessary to write '\x00'==0 to get something
2518   that's true only with -std1.  */
2519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521int test (int i, double x);
2522struct s1 {int (*f) (int a);};
2523struct s2 {int (*f) (double a);};
2524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525int argc;
2526char **argv;
2527int
2528main ()
2529{
2530return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535# Don't try gcc -ansi; that turns off useful extensions and
2536# breaks some systems' header files.
2537# AIX                   -qlanglvl=ansi
2538# Ultrix and OSF/1      -std1
2539# HP-UX 10.20 and later -Ae
2540# HP-UX older versions  -Aa -D_HPUX_SOURCE
2541# SVR4                  -Xc -D__EXTENSIONS__
2542for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543do
2544  CC="$ac_save_CC $ac_arg"
2545  rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547  (eval $ac_compile) 2>conftest.er1
2548  ac_status=$?
2549  grep -v '^ *+' conftest.er1 >conftest.err
2550  rm -f conftest.er1
2551  cat conftest.err >&5
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); } &&
2554         { ac_try='test -z "$ac_c_werror_flag"
2555                         || test ! -s conftest.err'
2556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557  (eval $ac_try) 2>&5
2558  ac_status=$?
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); }; } &&
2561         { ac_try='test -s conftest.$ac_objext'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; }; then
2567  ac_cv_prog_cc_stdc=$ac_arg
2568break
2569else
2570  echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573fi
2574rm -f conftest.err conftest.$ac_objext
2575done
2576rm -f conftest.$ac_ext conftest.$ac_objext
2577CC=$ac_save_CC
2578
2579fi
2580
2581case "x$ac_cv_prog_cc_stdc" in
2582  x|xno)
2583    echo "$as_me:$LINENO: result: none needed" >&5
2584echo "${ECHO_T}none needed" >&6 ;;
2585  *)
2586    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588    CC="$CC $ac_cv_prog_cc_stdc" ;;
2589esac
2590
2591# Some people use a C++ compiler to compile C.  Since we use `exit',
2592# in C++ we need to declare it.  In case someone uses the same compiler
2593# for both compiling C and C++ we need to have the C++ compiler decide
2594# the declaration of exit, since it's the most demanding environment.
2595cat >conftest.$ac_ext <<_ACEOF
2596#ifndef __cplusplus
2597  choke me
2598#endif
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602  (eval $ac_compile) 2>conftest.er1
2603  ac_status=$?
2604  grep -v '^ *+' conftest.er1 >conftest.err
2605  rm -f conftest.er1
2606  cat conftest.err >&5
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); } &&
2609         { ac_try='test -z "$ac_c_werror_flag"
2610                         || test ! -s conftest.err'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; } &&
2616         { ac_try='test -s conftest.$ac_objext'
2617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618  (eval $ac_try) 2>&5
2619  ac_status=$?
2620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621  (exit $ac_status); }; }; then
2622  for ac_declaration in \
2623   '' \
2624   'extern "C" void std::exit (int) throw (); using std::exit;' \
2625   'extern "C" void std::exit (int); using std::exit;' \
2626   'extern "C" void exit (int) throw ();' \
2627   'extern "C" void exit (int);' \
2628   'void exit (int);'
2629do
2630  cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636$ac_declaration
2637#include <stdlib.h>
2638int
2639main ()
2640{
2641exit (42);
2642  ;
2643  return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648  (eval $ac_compile) 2>conftest.er1
2649  ac_status=$?
2650  grep -v '^ *+' conftest.er1 >conftest.err
2651  rm -f conftest.er1
2652  cat conftest.err >&5
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); } &&
2655         { ac_try='test -z "$ac_c_werror_flag"
2656                         || test ! -s conftest.err'
2657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658  (eval $ac_try) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; } &&
2662         { ac_try='test -s conftest.$ac_objext'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; }; then
2668  :
2669else
2670  echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
2673continue
2674fi
2675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676  cat >conftest.$ac_ext <<_ACEOF
2677/* confdefs.h.  */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h.  */
2682$ac_declaration
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700         { ac_try='test -z "$ac_c_werror_flag"
2701                         || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707         { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  break
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720done
2721rm -f conftest*
2722if test -n "$ac_declaration"; then
2723  echo '#ifdef __cplusplus' >>confdefs.h
2724  echo $ac_declaration      >>confdefs.h
2725  echo '#endif'             >>confdefs.h
2726fi
2727
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740if test -z "$CC" ; then
2741  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2742echo "$as_me: error: Failed to find a C compiler!" >&2;}
2743   { (exit 1); exit 1; }; }
2744fi
2745# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2746case "$CC" in
2747  clang* ) ;;
2748  cl* | */cl* | CL* | */CL* )
2749    if test "$ac_cv_prog_cc_g" = yes ; then
2750      ac_cv_prog_cc_g=no
2751      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2752echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2753    fi ;;
2754  * )
2755    if test x"$CYGPATH_W" = x ; then
2756      CYGPATH_W=echo
2757    fi
2758    ;;
2759esac
2760CFLAGS="$save_cflags"
2761
2762# add automake conditional so we can recognize cl compiler in makefile
2763coin_cc_is_cl=false
2764case "$CC" in
2765  clang* ) ;;
2766  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2767    coin_cc_is_cl=true
2768    ;;
2769esac
2770
2771
2772if test $coin_cc_is_cl = true; then
2773  COIN_CC_IS_CL_TRUE=
2774  COIN_CC_IS_CL_FALSE='#'
2775else
2776  COIN_CC_IS_CL_TRUE='#'
2777  COIN_CC_IS_CL_FALSE=
2778fi
2779
2780
2781# Check if a project specific CFLAGS variable has been set
2782if test x$COIN_PRJCT != x; then
2783  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2784  if test x$coin_tmp = xset; then
2785    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2786  fi
2787fi
2788
2789if test x"$CFLAGS" = x; then
2790
2791  coin_add_cflags=
2792  coin_opt_cflags=
2793  coin_dbg_cflags=
2794  coin_warn_cflags=
2795
2796  if test "$GCC" = "yes"; then
2797    case "$CC" in
2798      icc* | */icc*)
2799        ;;
2800      *)
2801        coin_opt_cflags="-O3"
2802        coin_add_cflags="-pipe"
2803        coin_dbg_cflags="-g -O0"
2804        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2805        case $build in
2806          *-darwin*)
2807            ;;
2808          *)
2809            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2810            ;;
2811        esac
2812    esac
2813  fi
2814  if test -z "$coin_opt_cflags"; then
2815    case $build in
2816      *-cygwin* | *-mingw*)
2817        case "$CC" in
2818          clang* ) ;;
2819          cl* | */cl* | CL* | */CL*)
2820            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2821              coin_opt_cflags='-MD -O2'
2822              coin_dbg_cflags='-MDd'
2823            else
2824              coin_opt_cflags='-MT -O2'
2825              coin_dbg_cflags='-MTd'
2826            fi
2827            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2828            ;;
2829          icl* | */icl* | ICL* | */ICL*)
2830            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2831              coin_opt_cflags='-MD -Ox'
2832              coin_dbg_cflags='-MDd -debug'
2833            else
2834              coin_opt_cflags='-MT -Ox'
2835              coin_dbg_cflags='-MTd -debug'
2836            fi
2837            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2838            ;;
2839        esac
2840        ;;
2841      *-linux-*)
2842        case "$CC" in
2843          icc* | */icc*)
2844            coin_opt_cflags="-O3 -ip -mp1"
2845            coin_add_cflags=""
2846            coin_dbg_cflags="-g"
2847            # Check if -i_dynamic is necessary (for new glibc library)
2848            CFLAGS=
2849            cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859int i=0; i++;
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext conftest$ac_exeext
2865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2866  (eval $ac_link) 2>conftest.er1
2867  ac_status=$?
2868  grep -v '^ *+' conftest.er1 >conftest.err
2869  rm -f conftest.er1
2870  cat conftest.err >&5
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); } &&
2873         { ac_try='test -z "$ac_c_werror_flag"
2874                         || test ! -s conftest.err'
2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876  (eval $ac_try) 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; } &&
2880         { ac_try='test -s conftest$ac_exeext'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; }; then
2886  :
2887else
2888  echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891coin_add_cflags="-i_dynamic $coin_add_cflags"
2892fi
2893rm -f conftest.err conftest.$ac_objext \
2894      conftest$ac_exeext conftest.$ac_ext
2895            ;;
2896          pgcc* | */pgcc*)
2897            coin_opt_cflags="-fast"
2898            coin_add_cflags="-Kieee -pc 64"
2899            coin_dbg_cflags="-g"
2900            ;;
2901        esac
2902        ;;
2903      *-ibm-*)
2904        case "$CC" in
2905          xlc* | */xlc* | mpxlc* | */mpxlc*)
2906            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2907            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2908            coin_dbg_cflags="-g"
2909          ;;
2910        esac
2911        ;;
2912      *-hp-*)
2913        coin_opt_cflags="-O"
2914        coin_add_cflags="-Ae"
2915        coin_dbg_cflags="-g"
2916        ;;
2917      *-*-solaris*)
2918        coin_opt_cflags="-xO4"
2919        coin_dbg_cflags="-g"
2920        ;;
2921      *-sgi-*)
2922        coin_opt_cflags="-O -OPT:Olimit=0"
2923        coin_dbg_cflags="-g"
2924        ;;
2925    esac
2926  fi
2927
2928  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2929    coin_dbg_cflags="-g"
2930  fi
2931
2932  if test -z "$coin_opt_cflags"; then
2933    # Try if -O option works if nothing else is set
2934    CFLAGS="-O"
2935    cat >conftest.$ac_ext <<_ACEOF
2936/* confdefs.h.  */
2937_ACEOF
2938cat confdefs.h >>conftest.$ac_ext
2939cat >>conftest.$ac_ext <<_ACEOF
2940/* end confdefs.h.  */
2941
2942int
2943main ()
2944{
2945int i=0; i++;
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext conftest$ac_exeext
2951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2952  (eval $ac_link) 2>conftest.er1
2953  ac_status=$?
2954  grep -v '^ *+' conftest.er1 >conftest.err
2955  rm -f conftest.er1
2956  cat conftest.err >&5
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); } &&
2959         { ac_try='test -z "$ac_c_werror_flag"
2960                         || test ! -s conftest.err'
2961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962  (eval $ac_try) 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; } &&
2966         { ac_try='test -s conftest$ac_exeext'
2967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968  (eval $ac_try) 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; }; then
2972  coin_opt_cflags="-O"
2973else
2974  echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977fi
2978rm -f conftest.err conftest.$ac_objext \
2979      conftest$ac_exeext conftest.$ac_ext
2980  fi
2981
2982  # if PM doesn't want the warning messages, take them out
2983  if test x"$coin_skip_warn_cflags" = xyes; then
2984    coin_warn_cflags=
2985  fi
2986
2987  if test x${DBG_CFLAGS+set} != xset; then
2988    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2989  fi
2990  if test x${OPT_CFLAGS+set} != xset; then
2991    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2992  fi
2993
2994  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2995  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2996
2997  if test "$coin_debug_compile" = "true"; then
2998    CFLAGS="$DBG_CFLAGS"
2999  else
3000    CFLAGS="$OPT_CFLAGS"
3001  fi
3002else
3003  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3004  if test x${DBG_CFLAGS+set} != xset; then
3005    DBG_CFLAGS="$CFLAGS"
3006  fi
3007  if test x${OPT_CFLAGS+set} != xset; then
3008    OPT_CFLAGS="$CFLAGS"
3009  fi
3010fi
3011
3012# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3013if test x$COIN_PRJCT != x; then
3014  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3015fi
3016
3017# Try if CFLAGS works
3018save_CFLAGS="$CFLAGS"
3019cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h.  */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h.  */
3025
3026int
3027main ()
3028{
3029int i=0; i++;
3030  ;
3031  return 0;
3032}
3033_ACEOF
3034rm -f conftest.$ac_objext conftest$ac_exeext
3035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3036  (eval $ac_link) 2>conftest.er1
3037  ac_status=$?
3038  grep -v '^ *+' conftest.er1 >conftest.err
3039  rm -f conftest.er1
3040  cat conftest.err >&5
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); } &&
3043         { ac_try='test -z "$ac_c_werror_flag"
3044                         || test ! -s conftest.err'
3045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046  (eval $ac_try) 2>&5
3047  ac_status=$?
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); }; } &&
3050         { ac_try='test -s conftest$ac_exeext'
3051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052  (eval $ac_try) 2>&5
3053  ac_status=$?
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); }; }; then
3056  :
3057else
3058  echo "$as_me: failed program was:" >&5
3059sed 's/^/| /' conftest.$ac_ext >&5
3060
3061CFLAGS=
3062fi
3063rm -f conftest.err conftest.$ac_objext \
3064      conftest$ac_exeext conftest.$ac_ext
3065if test -z "$CFLAGS"; then
3066  { 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
3067echo "$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;}
3068  CFLAGS='-O'
3069  cat >conftest.$ac_ext <<_ACEOF
3070/* confdefs.h.  */
3071_ACEOF
3072cat confdefs.h >>conftest.$ac_ext
3073cat >>conftest.$ac_ext <<_ACEOF
3074/* end confdefs.h.  */
3075
3076int
3077main ()
3078{
3079int i=0; i++;
3080  ;
3081  return 0;
3082}
3083_ACEOF
3084rm -f conftest.$ac_objext conftest$ac_exeext
3085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086  (eval $ac_link) 2>conftest.er1
3087  ac_status=$?
3088  grep -v '^ *+' conftest.er1 >conftest.err
3089  rm -f conftest.er1
3090  cat conftest.err >&5
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); } &&
3093         { ac_try='test -z "$ac_c_werror_flag"
3094                         || test ! -s conftest.err'
3095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096  (eval $ac_try) 2>&5
3097  ac_status=$?
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }; } &&
3100         { ac_try='test -s conftest$ac_exeext'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; }; then
3106  :
3107else
3108  echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111CFLAGS=
3112fi
3113rm -f conftest.err conftest.$ac_objext \
3114      conftest$ac_exeext conftest.$ac_ext
3115  if test -z "$CFLAGS"; then
3116    { 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
3117echo "$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;}
3118  fi
3119fi
3120
3121{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3122echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3123
3124
3125if test x"$MPICC" = x; then :; else
3126  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3127echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3128  CC="$MPICC"
3129fi
3130
3131# Correct the LD variable if we are using the MS or Intel-windows compiler
3132case "$CC" in
3133  clang* ) ;;
3134  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3135    LD=link
3136    ;;
3137esac
3138
3139ac_ext=c
3140ac_cpp='$CPP $CPPFLAGS'
3141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143ac_compiler_gnu=$ac_cv_c_compiler_gnu
3144
3145
3146case $build in
3147  *-cygwin* | *-mingw*)
3148     if test "$enable_msvc" = yes ; then
3149       coin_f77_comps="ifort fl32 compile_f2c gfortran g95 g77"
3150     else
3151       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3152     fi ;;
3153  *-*-solaris*)
3154     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3155  *-linux-gnu*)
3156     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3157  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3158 esac
3159
3160
3161
3162
3163
3164ac_ext=f
3165ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3166ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3168
3169
3170
3171
3172
3173
3174coin_has_f77=yes
3175
3176save_fflags="$FFLAGS"
3177
3178# We delete the cached value, since the test might not have been
3179# performed with our choice of compilers earlier
3180$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3181
3182# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3183# coin_f77_comps to see if there's a program that matches one of the names.
3184# If there's no such program, F77 = unavailable. If we match the name,
3185# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3186# compiler.
3187# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3188
3189
3190{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3191echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3192if test -n "$ac_tool_prefix"; then
3193  for ac_prog in $coin_f77_comps
3194  do
3195    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3197echo "$as_me:$LINENO: checking for $ac_word" >&5
3198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199if test "${ac_cv_prog_F77+set}" = set; then
3200  echo $ECHO_N "(cached) $ECHO_C" >&6
3201else
3202  if test -n "$F77"; then
3203  ac_cv_prog_F77="$F77" # Let the user override the test.
3204else
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208  IFS=$as_save_IFS
3209  test -z "$as_dir" && as_dir=.
3210  for ac_exec_ext in '' $ac_executable_extensions; do
3211  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214    break 2
3215  fi
3216done
3217done
3218
3219fi
3220fi
3221F77=$ac_cv_prog_F77
3222if test -n "$F77"; then
3223  echo "$as_me:$LINENO: result: $F77" >&5
3224echo "${ECHO_T}$F77" >&6
3225else
3226  echo "$as_me:$LINENO: result: no" >&5
3227echo "${ECHO_T}no" >&6
3228fi
3229
3230    test -n "$F77" && break
3231  done
3232fi
3233if test -z "$F77"; then
3234  ac_ct_F77=$F77
3235  for ac_prog in $coin_f77_comps
3236do
3237  # Extract the first word of "$ac_prog", so it can be a program name with args.
3238set dummy $ac_prog; ac_word=$2
3239echo "$as_me:$LINENO: checking for $ac_word" >&5
3240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3242  echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244  if test -n "$ac_ct_F77"; then
3245  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3246else
3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248for as_dir in $PATH
3249do
3250  IFS=$as_save_IFS
3251  test -z "$as_dir" && as_dir=.
3252  for ac_exec_ext in '' $ac_executable_extensions; do
3253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254    ac_cv_prog_ac_ct_F77="$ac_prog"
3255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256    break 2
3257  fi
3258done
3259done
3260
3261fi
3262fi
3263ac_ct_F77=$ac_cv_prog_ac_ct_F77
3264if test -n "$ac_ct_F77"; then
3265  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3266echo "${ECHO_T}$ac_ct_F77" >&6
3267else
3268  echo "$as_me:$LINENO: result: no" >&5
3269echo "${ECHO_T}no" >&6
3270fi
3271
3272  test -n "$ac_ct_F77" && break
3273done
3274test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
3275
3276  F77=$ac_ct_F77
3277fi
3278
3279
3280if test "$F77" != "unavailable" ; then
3281  ac_ext=f
3282ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3283ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3285if test -n "$ac_tool_prefix"; then
3286  for ac_prog in $coin_f77_comps
3287  do
3288    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3290echo "$as_me:$LINENO: checking for $ac_word" >&5
3291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292if test "${ac_cv_prog_F77+set}" = set; then
3293  echo $ECHO_N "(cached) $ECHO_C" >&6
3294else
3295  if test -n "$F77"; then
3296  ac_cv_prog_F77="$F77" # Let the user override the test.
3297else
3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303  for ac_exec_ext in '' $ac_executable_extensions; do
3304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307    break 2
3308  fi
3309done
3310done
3311
3312fi
3313fi
3314F77=$ac_cv_prog_F77
3315if test -n "$F77"; then
3316  echo "$as_me:$LINENO: result: $F77" >&5
3317echo "${ECHO_T}$F77" >&6
3318else
3319  echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321fi
3322
3323    test -n "$F77" && break
3324  done
3325fi
3326if test -z "$F77"; then
3327  ac_ct_F77=$F77
3328  for ac_prog in $coin_f77_comps
3329do
3330  # Extract the first word of "$ac_prog", so it can be a program name with args.
3331set dummy $ac_prog; ac_word=$2
3332echo "$as_me:$LINENO: checking for $ac_word" >&5
3333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3335  echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337  if test -n "$ac_ct_F77"; then
3338  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345  for ac_exec_ext in '' $ac_executable_extensions; do
3346  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_ac_ct_F77="$ac_prog"
3348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352done
3353
3354fi
3355fi
3356ac_ct_F77=$ac_cv_prog_ac_ct_F77
3357if test -n "$ac_ct_F77"; then
3358  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3359echo "${ECHO_T}$ac_ct_F77" >&6
3360else
3361  echo "$as_me:$LINENO: result: no" >&5
3362echo "${ECHO_T}no" >&6
3363fi
3364
3365  test -n "$ac_ct_F77" && break
3366done
3367
3368  F77=$ac_ct_F77
3369fi
3370
3371
3372# Provide some information about the compiler.
3373echo "$as_me:3373:" \
3374     "checking for Fortran 77 compiler version" >&5
3375ac_compiler=`set X $ac_compile; echo $2`
3376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3377  (eval $ac_compiler --version </dev/null >&5) 2>&5
3378  ac_status=$?
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }
3381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3382  (eval $ac_compiler -v </dev/null >&5) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }
3386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3387  (eval $ac_compiler -V </dev/null >&5) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }
3391rm -f a.out
3392
3393# If we don't use `.F' as extension, the preprocessor is not run on the
3394# input file.  (Note that this only needs to work for GNU compilers.)
3395ac_save_ext=$ac_ext
3396ac_ext=F
3397echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3398echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3399if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3400  echo $ECHO_N "(cached) $ECHO_C" >&6
3401else
3402  cat >conftest.$ac_ext <<_ACEOF
3403      program main
3404#ifndef __GNUC__
3405       choke me
3406#endif
3407
3408      end
3409_ACEOF
3410rm -f conftest.$ac_objext
3411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412  (eval $ac_compile) 2>conftest.er1
3413  ac_status=$?
3414  grep -v '^ *+' conftest.er1 >conftest.err
3415  rm -f conftest.er1
3416  cat conftest.err >&5
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); } &&
3419         { ac_try='test -z "$ac_f77_werror_flag"
3420                         || test ! -s conftest.err'
3421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422  (eval $ac_try) 2>&5
3423  ac_status=$?
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); }; } &&
3426         { ac_try='test -s conftest.$ac_objext'
3427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428  (eval $ac_try) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; }; then
3432  ac_compiler_gnu=yes
3433else
3434  echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437ac_compiler_gnu=no
3438fi
3439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3441
3442fi
3443echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3444echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3445ac_ext=$ac_save_ext
3446ac_test_FFLAGS=${FFLAGS+set}
3447ac_save_FFLAGS=$FFLAGS
3448FFLAGS=
3449echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3450echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3451if test "${ac_cv_prog_f77_g+set}" = set; then
3452  echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454  FFLAGS=-g
3455cat >conftest.$ac_ext <<_ACEOF
3456      program main
3457
3458      end
3459_ACEOF
3460rm -f conftest.$ac_objext
3461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462  (eval $ac_compile) 2>conftest.er1
3463  ac_status=$?
3464  grep -v '^ *+' conftest.er1 >conftest.err
3465  rm -f conftest.er1
3466  cat conftest.err >&5
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); } &&
3469         { ac_try='test -z "$ac_f77_werror_flag"
3470                         || test ! -s conftest.err'
3471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472  (eval $ac_try) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; } &&
3476         { ac_try='test -s conftest.$ac_objext'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; }; then
3482  ac_cv_prog_f77_g=yes
3483else
3484  echo "$as_me: failed program was:" >&5
3485sed 's/^/| /' conftest.$ac_ext >&5
3486
3487ac_cv_prog_f77_g=no
3488fi
3489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490
3491fi
3492echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3493echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3494if test "$ac_test_FFLAGS" = set; then
3495  FFLAGS=$ac_save_FFLAGS
3496elif test $ac_cv_prog_f77_g = yes; then
3497  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3498    FFLAGS="-g -O2"
3499  else
3500    FFLAGS="-g"
3501  fi
3502else
3503  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3504    FFLAGS="-O2"
3505  else
3506    FFLAGS=
3507  fi
3508fi
3509
3510G77=`test $ac_compiler_gnu = yes && echo yes`
3511ac_ext=f
3512ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3513ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3515
3516else
3517  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3518echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3519fi
3520
3521FFLAGS="$save_fflags"
3522
3523# Check if a project specific FFLAGS variable has been set
3524if test x$COIN_PRJCT != x; then
3525  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3526  if test x$coin_tmp = xset; then
3527    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3528  fi
3529fi
3530
3531if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3532
3533  coin_add_fflags=
3534  coin_opt_fflags=
3535  coin_dbg_fflags=
3536  coin_warn_fflags=
3537
3538  if test "$G77" = "yes"; then
3539    coin_opt_fflags="-O3"
3540    coin_add_fflags="-pipe"
3541    coin_dbg_fflags="-g -O0"
3542  else
3543    case $build in
3544      *-cygwin* | *-mingw*)
3545        case $F77 in
3546          ifort* | */ifort* | IFORT* | */IFORT* )
3547            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3548              coin_opt_fflags='-MD -O3'
3549              coin_dbg_fflags='-MDd -debug'
3550            else
3551              coin_opt_fflags='-MT -O3'
3552              coin_dbg_fflags='-MTd -debug'
3553            fi
3554            coin_add_fflags='-fpp -nologo'
3555          ;;
3556          compile_f2c*)
3557            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3558              coin_opt_fflags='-MD -O2'
3559              coin_dbg_fflags='-MDd'
3560            else
3561              coin_opt_fflags='-MT -O2'
3562              coin_dbg_fflags='-MTd'
3563            fi
3564            coin_add_fflags='-nologo -wd4996'
3565          ;;
3566        esac
3567        ;;
3568      *-linux-*)
3569        case $F77 in
3570          ifc* | */ifc* | ifort* | */ifort*)
3571            coin_opt_fflags="-O3 -ip"
3572            coin_add_fflags="-cm -w90 -w95"
3573            coin_dbg_fflags="-g -CA -CB -CS"
3574            # Check if -i_dynamic is necessary (for new glibc library)
3575            FFLAGS=
3576            cat >conftest.$ac_ext <<_ACEOF
3577      program main
3578      write(*,*) 'Hello world'
3579      end
3580_ACEOF
3581rm -f conftest.$ac_objext conftest$ac_exeext
3582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583  (eval $ac_link) 2>conftest.er1
3584  ac_status=$?
3585  grep -v '^ *+' conftest.er1 >conftest.err
3586  rm -f conftest.er1
3587  cat conftest.err >&5
3588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589  (exit $ac_status); } &&
3590         { ac_try='test -z "$ac_f77_werror_flag"
3591                         || test ! -s conftest.err'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; } &&
3597         { ac_try='test -s conftest$ac_exeext'
3598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599  (eval $ac_try) 2>&5
3600  ac_status=$?
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); }; }; then
3603  :
3604else
3605  echo "$as_me: failed program was:" >&5
3606sed 's/^/| /' conftest.$ac_ext >&5
3607
3608coin_add_fflags="-i_dynamic $coin_add_fflags"
3609fi
3610rm -f conftest.err conftest.$ac_objext \
3611      conftest$ac_exeext conftest.$ac_ext
3612            ;;
3613          pgf77* | */pgf77* | pgf90* | */pgf90*)
3614            coin_opt_fflags="-fast"
3615            coin_add_fflags="-Kieee -pc 64"
3616            coin_dbg_fflags="-g"
3617          ;;
3618        esac
3619        ;;
3620      *-ibm-*)
3621        case "$F77" in
3622          xlf* | */xlf* | mpxlf* | */mpxlf* )
3623            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3624            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3625            coin_dbg_fflags="-g -C"
3626            ;;
3627        esac
3628        ;;
3629      *-hp-*)
3630        coin_opt_fflags="+O3"
3631        coin_add_fflags="+U77"
3632        coin_dbg_fflags="-C -g"
3633        ;;
3634      *-*-solaris*)
3635        coin_opt_fflags="-O4"
3636        coin_dbg_fflags="-g"
3637        ;;
3638      *-sgi-*)
3639        coin_opt_fflags="-O5 -OPT:Olimit=0"
3640        coin_dbg_fflags="-g"
3641        ;;
3642    esac
3643  fi
3644
3645  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3646    coin_dbg_fflags="-g"
3647  fi
3648
3649  if test -z "$coin_opt_fflags"; then
3650    # Try if -O option works if nothing else is set
3651    FFLAGS=-O
3652    cat >conftest.$ac_ext <<_ACEOF
3653      program main
3654      integer i
3655      end
3656_ACEOF
3657rm -f conftest.$ac_objext conftest$ac_exeext
3658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659  (eval $ac_link) 2>conftest.er1
3660  ac_status=$?
3661  grep -v '^ *+' conftest.er1 >conftest.err
3662  rm -f conftest.er1
3663  cat conftest.err >&5
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); } &&
3666         { ac_try='test -z "$ac_f77_werror_flag"
3667                         || test ! -s conftest.err'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; } &&
3673         { ac_try='test -s conftest$ac_exeext'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; }; then
3679  coin_opt_fflags="-O"
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684fi
3685rm -f conftest.err conftest.$ac_objext \
3686      conftest$ac_exeext conftest.$ac_ext
3687  fi
3688
3689  # if PM doesn't want the warning messages, take them out
3690  if test x"$coin_skip_warn_fflags" = xyes; then
3691    coin_warn_fflags=
3692  fi
3693
3694  if test x${DBG_FFLAGS+set} != xset; then
3695    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3696  fi
3697  if test x${OPT_FFLAGS+set} != xset; then
3698    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3699  fi
3700
3701  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3702  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3703
3704  if test "$coin_debug_compile" = "true"; then
3705    FFLAGS="$DBG_FFLAGS"
3706  else
3707    FFLAGS="$OPT_FFLAGS"
3708  fi
3709else
3710  FFLAGS="$FFLAGS $ADD_FFLAGS"
3711  if test x${DBG_FFLAGS+set} != xset; then
3712    DBG_FFLAGS="$FFLAGS"
3713  fi
3714  if test x${OPT_FFLAGS+set} != xset; then
3715    OPT_FFLAGS="$FFLAGS"
3716  fi
3717fi
3718
3719# Try if FFLAGS works
3720if test "$F77" != "unavailable" ; then
3721  cat >conftest.$ac_ext <<_ACEOF
3722      program main
3723      integer i
3724      end
3725_ACEOF
3726rm -f conftest.$ac_objext conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728  (eval $ac_link) 2>conftest.er1
3729  ac_status=$?
3730  grep -v '^ *+' conftest.er1 >conftest.err
3731  rm -f conftest.er1
3732  cat conftest.err >&5
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); } &&
3735         { ac_try='test -z "$ac_f77_werror_flag"
3736                         || test ! -s conftest.err'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; } &&
3742         { ac_try='test -s conftest$ac_exeext'
3743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744  (eval $ac_try) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); }; }; then
3748  :
3749else
3750  echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753FFLAGS=
3754fi
3755rm -f conftest.err conftest.$ac_objext \
3756      conftest$ac_exeext conftest.$ac_ext
3757  if test -z "$FFLAGS"; then
3758    { 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
3759echo "$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;}
3760    FFLAGS='-O'
3761    cat >conftest.$ac_ext <<_ACEOF
3762      program main
3763      integer i
3764      end
3765_ACEOF
3766rm -f conftest.$ac_objext conftest$ac_exeext
3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3768  (eval $ac_link) 2>conftest.er1
3769  ac_status=$?
3770  grep -v '^ *+' conftest.er1 >conftest.err
3771  rm -f conftest.er1
3772  cat conftest.err >&5
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); } &&
3775         { ac_try='test -z "$ac_f77_werror_flag"
3776                         || test ! -s conftest.err'
3777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778  (eval $ac_try) 2>&5
3779  ac_status=$?
3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781  (exit $ac_status); }; } &&
3782         { ac_try='test -s conftest$ac_exeext'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; }; then
3788  :
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793FFLAGS=
3794fi
3795rm -f conftest.err conftest.$ac_objext \
3796      conftest$ac_exeext conftest.$ac_ext
3797    if test -z "$FFLAGS"; then
3798      { 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
3799echo "$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;}
3800    fi
3801  fi
3802fi
3803
3804{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3805echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3806
3807
3808if test x"$MPIF77" = x; then :; else
3809  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3810echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3811  F77="$MPIF77"
3812fi
3813
3814# correct the LD variable if we use the intel fortran compiler in windows
3815case "$F77" in
3816  ifort* | */ifort* | IFORT* | */IFORT*)
3817    LD=link
3818    ;;
3819esac
3820
3821ac_ext=c
3822ac_cpp='$CPP $CPPFLAGS'
3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827
3828
3829# Get the linker flags (FLIBS) that are required for linking against this blas library
3830
3831# get FLIBS
3832ac_ext=f
3833ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3834ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3836echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3837echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3838if test "${ac_cv_prog_f77_v+set}" = set; then
3839  echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841  cat >conftest.$ac_ext <<_ACEOF
3842      program main
3843
3844      end
3845_ACEOF
3846rm -f conftest.$ac_objext
3847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848  (eval $ac_compile) 2>conftest.er1
3849  ac_status=$?
3850  grep -v '^ *+' conftest.er1 >conftest.err
3851  rm -f conftest.er1
3852  cat conftest.err >&5
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); } &&
3855         { ac_try='test -z "$ac_f77_werror_flag"
3856                         || test ! -s conftest.err'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; } &&
3862         { ac_try='test -s conftest.$ac_objext'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; }; then
3868  ac_cv_prog_f77_v=
3869# Try some options frequently used verbose output
3870for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3871  cat >conftest.$ac_ext <<_ACEOF
3872      program main
3873
3874      end
3875_ACEOF
3876
3877# Compile and link our simple test program by passing a flag (argument
3878# 1 to this macro) to the Fortran compiler in order to get
3879# "verbose" output that we can then parse for the Fortran linker
3880# flags.
3881ac_save_FFLAGS=$FFLAGS
3882FFLAGS="$FFLAGS $ac_verb"
3883(eval echo $as_me:3883: \"$ac_link\") >&5
3884ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3885echo "$ac_f77_v_output" >&5
3886FFLAGS=$ac_save_FFLAGS
3887
3888rm -f conftest*
3889
3890# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3891# /foo, /bar, and /baz are search directories for the Fortran linker.
3892# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3893ac_f77_v_output="`echo $ac_f77_v_output |
3894        grep 'LPATH is:' |
3895        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3896
3897case $ac_f77_v_output in
3898  # If we are using xlf then replace all the commas with spaces.
3899  *xlfentry*)
3900    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3901
3902  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3903  # $LIBS confuse us, and the libraries appear later in the output anyway).
3904  *mGLOB_options_string*)
3905    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3906
3907  # If we are using Cray Fortran then delete quotes.
3908  # Use "\"" instead of '"' for font-lock-mode.
3909  # FIXME: a more general fix for quoted arguments with spaces?
3910  *cft90*)
3911    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3912esac
3913
3914
3915  # look for -l* and *.a constructs in the output
3916  for ac_arg in $ac_f77_v_output; do
3917     case $ac_arg in
3918        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3919          ac_cv_prog_f77_v=$ac_verb
3920          break 2 ;;
3921     esac
3922  done
3923done
3924if test -z "$ac_cv_prog_f77_v"; then
3925   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3926echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3927fi
3928else
3929  echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3933echo "$as_me: WARNING: compilation failed" >&2;}
3934fi
3935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936
3937fi
3938echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3939echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3940echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3941echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3942if test "${ac_cv_f77_libs+set}" = set; then
3943  echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945  if test "x$FLIBS" != "x"; then
3946  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3947else
3948
3949cat >conftest.$ac_ext <<_ACEOF
3950      program main
3951
3952      end
3953_ACEOF
3954
3955# Compile and link our simple test program by passing a flag (argument
3956# 1 to this macro) to the Fortran compiler in order to get
3957# "verbose" output that we can then parse for the Fortran linker
3958# flags.
3959ac_save_FFLAGS=$FFLAGS
3960FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3961(eval echo $as_me:3961: \"$ac_link\") >&5
3962ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3963echo "$ac_f77_v_output" >&5
3964FFLAGS=$ac_save_FFLAGS
3965
3966rm -f conftest*
3967
3968# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3969# /foo, /bar, and /baz are search directories for the Fortran linker.
3970# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3971ac_f77_v_output="`echo $ac_f77_v_output |
3972        grep 'LPATH is:' |
3973        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3974
3975case $ac_f77_v_output in
3976  # If we are using xlf then replace all the commas with spaces.
3977  *xlfentry*)
3978    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3979
3980  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3981  # $LIBS confuse us, and the libraries appear later in the output anyway).
3982  *mGLOB_options_string*)
3983    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3984
3985  # If we are using Cray Fortran then delete quotes.
3986  # Use "\"" instead of '"' for font-lock-mode.
3987  # FIXME: a more general fix for quoted arguments with spaces?
3988  *cft90*)
3989    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3990esac
3991
3992
3993
3994ac_cv_f77_libs=
3995
3996# Save positional arguments (if any)
3997ac_save_positional="$@"
3998
3999set X $ac_f77_v_output
4000while test $# != 1; do
4001  shift
4002  ac_arg=$1
4003  case $ac_arg in
4004        [\\/]*.a | ?:[\\/]*.a)
4005            ac_exists=false
4006  for ac_i in $ac_cv_f77_libs; do
4007    if test x"$ac_arg" = x"$ac_i"; then
4008      ac_exists=true
4009      break
4010    fi
4011  done
4012
4013  if test x"$ac_exists" = xtrue; then
4014  :
4015else
4016  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4017fi
4018
4019          ;;
4020        -bI:*)
4021            ac_exists=false
4022  for ac_i in $ac_cv_f77_libs; do
4023    if test x"$ac_arg" = x"$ac_i"; then
4024      ac_exists=true
4025      break
4026    fi
4027  done
4028
4029  if test x"$ac_exists" = xtrue; then
4030  :
4031else
4032  if test "$ac_compiler_gnu" = yes; then
4033  for ac_link_opt in $ac_arg; do
4034    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4035  done
4036else
4037  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4038fi
4039fi
4040
4041          ;;
4042          # Ignore these flags.
4043        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4044          ;;
4045        -lkernel32)
4046          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4047          ;;
4048        -[LRuY])
4049          # These flags, when seen by themselves, take an argument.
4050          # We remove the space between option and argument and re-iterate
4051          # unless we find an empty arg or a new option (starting with -)
4052          case $2 in
4053             "" | -*);;
4054             *)
4055                ac_arg="$ac_arg$2"
4056                shift; shift
4057                set X $ac_arg "$@"
4058                ;;
4059          esac
4060          ;;
4061        -YP,*)
4062          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4063              ac_exists=false
4064  for ac_i in $ac_cv_f77_libs; do
4065    if test x"$ac_j" = x"$ac_i"; then
4066      ac_exists=true
4067      break
4068    fi
4069  done
4070
4071  if test x"$ac_exists" = xtrue; then
4072  :
4073else
4074  ac_arg="$ac_arg $ac_j"
4075                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4076fi
4077
4078          done
4079          ;;
4080        -[lLR]*)
4081            ac_exists=false
4082  for ac_i in $ac_cv_f77_libs; do
4083    if test x"$ac_arg" = x"$ac_i"; then
4084      ac_exists=true
4085      break
4086    fi
4087  done
4088
4089  if test x"$ac_exists" = xtrue; then
4090  :
4091else
4092  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4093fi
4094
4095          ;;
4096          # Ignore everything else.
4097  esac
4098done
4099# restore positional arguments
4100set X $ac_save_positional; shift
4101
4102# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4103# then we insist that the "run path" must be an absolute path (i.e. it
4104# must begin with a "/").
4105case `(uname -sr) 2>/dev/null` in
4106   "SunOS 5"*)
4107      ac_ld_run_path=`echo $ac_f77_v_output |
4108                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4109      test "x$ac_ld_run_path" != x &&
4110        if test "$ac_compiler_gnu" = yes; then
4111  for ac_link_opt in $ac_ld_run_path; do
4112    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4113  done
4114else
4115  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4116fi
4117      ;;
4118esac
4119fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4120
4121fi
4122echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4123echo "${ECHO_T}$ac_cv_f77_libs" >&6
4124FLIBS="$ac_cv_f77_libs"
4125
4126
4127ac_ext=c
4128ac_cpp='$CPP $CPPFLAGS'
4129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132
4133orig_FLIBS="$FLIBS"
4134
4135# If FLIBS has been set by the user, we just restore its value here
4136if test x"$save_FLIBS" != x; then
4137  FLIBS="$save_FLIBS"
4138else
4139  # This is to correct a missing exclusion in autoconf 2.59
4140  if test x"$FLIBS" != x; then
4141    my_flibs=
4142    for flag in $FLIBS; do
4143      case $flag in
4144        -lcrt*.o) ;;
4145        -lcygwin) ;;
4146        -lgcc*)   ;;
4147               *) my_flibs="$my_flibs $flag" ;;
4148      esac
4149    done
4150    FLIBS="$my_flibs"
4151  fi
4152
4153  case $build in
4154  # The following is a fix to define FLIBS for ifort on Windows
4155  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4156  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4157  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4158  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
4159  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
4160     *-cygwin* | *-mingw*)
4161       case "$F77" in
4162#         ifort* | */ifort* | IFORT* | */IFORT*)
4163#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4164#           if "$coin_debug_compile" = true ; then
4165#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4166#           else
4167#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4168#           fi
4169#           ;;
4170         compile_f2c*)
4171           FLIBS=`$F77 -FLIBS` ;;
4172       esac;;
4173     *-hp-*)
4174         FLIBS="$FLIBS -lm";;
4175     *-ibm-*)
4176         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4177     *-linux-*)
4178       case "$F77" in
4179         pgf77* | */pgf77* | pgf90* | */pgf90*)
4180# ask linker to go through the archives multiple times
4181# (the Fortran compiler seems to do that automatically...)
4182           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4183       esac
4184  esac
4185  ac_cv_f77_libs="$FLIBS"
4186fi
4187
4188if test "x$orig_FLIBS" != "x$FLIBS" ; then
4189  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
4190echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
4191fi
4192
4193ac_ext=f
4194ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4195ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4197
4198echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4199echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4200if test "${ac_cv_f77_dummy_main+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  ac_f77_dm_save_LIBS=$LIBS
4204 LIBS="$LIBS $FLIBS"
4205 ac_fortran_dm_var=F77_DUMMY_MAIN
4206 ac_ext=c
4207ac_cpp='$CPP $CPPFLAGS'
4208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211
4212 # First, try linking without a dummy main:
4213 cat >conftest.$ac_ext <<_ACEOF
4214/* confdefs.h.  */
4215_ACEOF
4216cat confdefs.h >>conftest.$ac_ext
4217cat >>conftest.$ac_ext <<_ACEOF
4218/* end confdefs.h.  */
4219
4220#ifdef F77_DUMMY_MAIN
4221
4222#  ifdef __cplusplus
4223     extern "C"
4224#  endif
4225   int F77_DUMMY_MAIN() { return 1; }
4226
4227#endif
4228int
4229main ()
4230{
4231
4232  ;
4233  return 0;
4234}
4235_ACEOF
4236rm -f conftest.$ac_objext conftest$ac_exeext
4237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4238  (eval $ac_link) 2>conftest.er1
4239  ac_status=$?
4240  grep -v '^ *+' conftest.er1 >conftest.err
4241  rm -f conftest.er1
4242  cat conftest.err >&5
4243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244  (exit $ac_status); } &&
4245         { ac_try='test -z "$ac_c_werror_flag"
4246                         || test ! -s conftest.err'
4247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248  (eval $ac_try) 2>&5
4249  ac_status=$?
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); }; } &&
4252         { ac_try='test -s conftest$ac_exeext'
4253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254  (eval $ac_try) 2>&5
4255  ac_status=$?
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); }; }; then
4258  ac_cv_fortran_dummy_main=none
4259else
4260  echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263ac_cv_fortran_dummy_main=unknown
4264fi
4265rm -f conftest.err conftest.$ac_objext \
4266      conftest$ac_exeext conftest.$ac_ext
4267
4268 if test $ac_cv_fortran_dummy_main = unknown; then
4269   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4270     cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h.  */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h.  */
4276#define $ac_fortran_dm_var $ac_func
4277#ifdef F77_DUMMY_MAIN
4278
4279#  ifdef __cplusplus
4280     extern "C"
4281#  endif
4282   int F77_DUMMY_MAIN() { return 1; }
4283
4284#endif
4285int
4286main ()
4287{
4288
4289  ;
4290  return 0;
4291}
4292_ACEOF
4293rm -f conftest.$ac_objext conftest$ac_exeext
4294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295  (eval $ac_link) 2>conftest.er1
4296  ac_status=$?
4297  grep -v '^ *+' conftest.er1 >conftest.err
4298  rm -f conftest.er1
4299  cat conftest.err >&5
4300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301  (exit $ac_status); } &&
4302         { ac_try='test -z "$ac_c_werror_flag"
4303                         || test ! -s conftest.err'
4304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305  (eval $ac_try) 2>&5
4306  ac_status=$?
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); }; } &&
4309         { ac_try='test -s conftest$ac_exeext'
4310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311  (eval $ac_try) 2>&5
4312  ac_status=$?
4313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314  (exit $ac_status); }; }; then
4315  ac_cv_fortran_dummy_main=$ac_func; break
4316else
4317  echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320fi
4321rm -f conftest.err conftest.$ac_objext \
4322      conftest$ac_exeext conftest.$ac_ext
4323   done
4324 fi
4325 ac_ext=f
4326ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4327ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4329 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4330 rm -f conftest*
4331 LIBS=$ac_f77_dm_save_LIBS
4332
4333fi
4334echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4335echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4336F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4337if test "$F77_DUMMY_MAIN" != unknown; then
4338  if test $F77_DUMMY_MAIN != none; then
4339
4340cat >>confdefs.h <<_ACEOF
4341#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4342_ACEOF
4343
4344  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4345
4346cat >>confdefs.h <<\_ACEOF
4347#define FC_DUMMY_MAIN_EQ_F77 1
4348_ACEOF
4349
4350  fi
4351fi
4352else
4353  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4354See \`config.log' for more details." >&5
4355echo "$as_me: error: linking to Fortran libraries from C fails
4356See \`config.log' for more details." >&2;}
4357   { (exit 1); exit 1; }; }
4358fi
4359
4360
4361ac_ext=f
4362ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4363ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4365
4366ac_ext=f
4367ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4368ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4370echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4371echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4372if test "${ac_cv_f77_mangling+set}" = set; then
4373  echo $ECHO_N "(cached) $ECHO_C" >&6
4374else
4375  cat >conftest.$ac_ext <<_ACEOF
4376      subroutine foobar()
4377      return
4378      end
4379      subroutine foo_bar()
4380      return
4381      end
4382_ACEOF
4383rm -f conftest.$ac_objext
4384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385  (eval $ac_compile) 2>conftest.er1
4386  ac_status=$?
4387  grep -v '^ *+' conftest.er1 >conftest.err
4388  rm -f conftest.er1
4389  cat conftest.err >&5
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); } &&
4392         { ac_try='test -z "$ac_f77_werror_flag"
4393                         || test ! -s conftest.err'
4394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395  (eval $ac_try) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }; } &&
4399         { ac_try='test -s conftest.$ac_objext'
4400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401  (eval $ac_try) 2>&5
4402  ac_status=$?
4403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404  (exit $ac_status); }; }; then
4405  mv conftest.$ac_objext cfortran_test.$ac_objext
4406
4407  ac_save_LIBS=$LIBS
4408  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4409
4410  ac_ext=c
4411ac_cpp='$CPP $CPPFLAGS'
4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415  ac_success=no
4416  for ac_foobar in foobar FOOBAR; do
4417    for ac_underscore in "" "_"; do
4418      ac_func="$ac_foobar$ac_underscore"
4419      cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425
4426/* Override any gcc2 internal prototype to avoid an error.  */
4427#ifdef __cplusplus
4428extern "C"
4429#endif
4430/* We use char because int might match the return type of a gcc2
4431   builtin and then its argument prototype would still apply.  */
4432char $ac_func ();
4433#ifdef F77_DUMMY_MAIN
4434
4435#  ifdef __cplusplus
4436     extern "C"
4437#  endif
4438   int F77_DUMMY_MAIN() { return 1; }
4439
4440#endif
4441int
4442main ()
4443{
4444$ac_func ();
4445  ;
4446  return 0;
4447}
4448_ACEOF
4449rm -f conftest.$ac_objext conftest$ac_exeext
4450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451  (eval $ac_link) 2>conftest.er1
4452  ac_status=$?
4453  grep -v '^ *+' conftest.er1 >conftest.err
4454  rm -f conftest.er1
4455  cat conftest.err >&5
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); } &&
4458         { ac_try='test -z "$ac_c_werror_flag"
4459                         || test ! -s conftest.err'
4460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461  (eval $ac_try) 2>&5
4462  ac_status=$?
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); }; } &&
4465         { ac_try='test -s conftest$ac_exeext'
4466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467  (eval $ac_try) 2>&5
4468  ac_status=$?
4469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470  (exit $ac_status); }; }; then
4471  ac_success=yes; break 2
4472else
4473  echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476fi
4477rm -f conftest.err conftest.$ac_objext \
4478      conftest$ac_exeext conftest.$ac_ext
4479    done
4480  done
4481  ac_ext=f
4482ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4483ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4485
4486  if test "$ac_success" = "yes"; then
4487     case $ac_foobar in
4488        foobar)
4489           ac_case=lower
4490           ac_foo_bar=foo_bar
4491           ;;
4492        FOOBAR)
4493           ac_case=upper
4494           ac_foo_bar=FOO_BAR
4495           ;;
4496     esac
4497
4498     ac_ext=c
4499ac_cpp='$CPP $CPPFLAGS'
4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503     ac_success_extra=no
4504     for ac_extra in "" "_"; do
4505        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4506        cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h.  */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h.  */
4512
4513/* Override any gcc2 internal prototype to avoid an error.  */
4514#ifdef __cplusplus
4515extern "C"
4516#endif
4517/* We use char because int might match the return type of a gcc2
4518   builtin and then its argument prototype would still apply.  */
4519char $ac_func ();
4520#ifdef F77_DUMMY_MAIN
4521
4522#  ifdef __cplusplus
4523     extern "C"
4524#  endif
4525   int F77_DUMMY_MAIN() { return 1; }
4526
4527#endif
4528int
4529main ()
4530{
4531$ac_func ();
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536rm -f conftest.$ac_objext conftest$ac_exeext
4537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4538  (eval $ac_link) 2>conftest.er1
4539  ac_status=$?
4540  grep -v '^ *+' conftest.er1 >conftest.err
4541  rm -f conftest.er1
4542  cat conftest.err >&5
4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544  (exit $ac_status); } &&
4545         { ac_try='test -z "$ac_c_werror_flag"
4546                         || test ! -s conftest.err'
4547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548  (eval $ac_try) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; } &&
4552         { ac_try='test -s conftest$ac_exeext'
4553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554  (eval $ac_try) 2>&5
4555  ac_status=$?
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); }; }; then
4558  ac_success_extra=yes; break
4559else
4560  echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563fi
4564rm -f conftest.err conftest.$ac_objext \
4565      conftest$ac_exeext conftest.$ac_ext
4566     done
4567     ac_ext=f
4568ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4569ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4571
4572     if test "$ac_success_extra" = "yes"; then
4573        ac_cv_f77_mangling="$ac_case case"
4574        if test -z "$ac_underscore"; then
4575           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4576        else
4577           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4578        fi
4579        if test -z "$ac_extra"; then
4580           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4581        else
4582           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4583        fi
4584      else
4585        ac_cv_f77_mangling="unknown"
4586      fi
4587  else
4588     ac_cv_f77_mangling="unknown"
4589  fi
4590
4591  LIBS=$ac_save_LIBS
4592  rm -f cfortran_test* conftest*
4593else
4594  echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4598See \`config.log' for more details." >&5
4599echo "$as_me: error: cannot compile a simple Fortran program
4600See \`config.log' for more details." >&2;}
4601   { (exit 1); exit 1; }; }
4602fi
4603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604
4605fi
4606echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4607echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4608
4609ac_ext=f
4610ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4611ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4613
4614
4615ac_ext=f
4616ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4617ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4619
4620ac_ext=f
4621ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4622ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4624
4625
4626case $ac_cv_f77_mangling in
4627  "lower case, no underscore, no extra underscore")
4628          cat >>confdefs.h <<\_ACEOF
4629#define F77_FUNC(name,NAME) name
4630_ACEOF
4631
4632          cat >>confdefs.h <<\_ACEOF
4633#define F77_FUNC_(name,NAME) name
4634_ACEOF
4635 ;;
4636  "lower case, no underscore, extra underscore")
4637          cat >>confdefs.h <<\_ACEOF
4638#define F77_FUNC(name,NAME) name
4639_ACEOF
4640
4641          cat >>confdefs.h <<\_ACEOF
4642#define F77_FUNC_(name,NAME) name ## _
4643_ACEOF
4644 ;;
4645  "lower case, underscore, no extra underscore")
4646          cat >>confdefs.h <<\_ACEOF
4647#define F77_FUNC(name,NAME) name ## _
4648_ACEOF
4649
4650          cat >>confdefs.h <<\_ACEOF
4651#define F77_FUNC_(name,NAME) name ## _
4652_ACEOF
4653 ;;
4654  "lower case, underscore, extra underscore")
4655          cat >>confdefs.h <<\_ACEOF
4656#define F77_FUNC(name,NAME) name ## _
4657_ACEOF
4658
4659          cat >>confdefs.h <<\_ACEOF
4660#define F77_FUNC_(name,NAME) name ## __
4661_ACEOF
4662 ;;
4663  "upper case, no underscore, no extra underscore")
4664          cat >>confdefs.h <<\_ACEOF
4665#define F77_FUNC(name,NAME) NAME
4666_ACEOF
4667
4668          cat >>confdefs.h <<\_ACEOF
4669#define F77_FUNC_(name,NAME) NAME
4670_ACEOF
4671 ;;
4672  "upper case, no underscore, extra underscore")
4673          cat >>confdefs.h <<\_ACEOF
4674#define F77_FUNC(name,NAME) NAME
4675_ACEOF
4676
4677          cat >>confdefs.h <<\_ACEOF
4678#define F77_FUNC_(name,NAME) NAME ## _
4679_ACEOF
4680 ;;
4681  "upper case, underscore, no extra underscore")
4682          cat >>confdefs.h <<\_ACEOF
4683#define F77_FUNC(name,NAME) NAME ## _
4684_ACEOF
4685
4686          cat >>confdefs.h <<\_ACEOF
4687#define F77_FUNC_(name,NAME) NAME ## _
4688_ACEOF
4689 ;;
4690  "upper case, underscore, extra underscore")
4691          cat >>confdefs.h <<\_ACEOF
4692#define F77_FUNC(name,NAME) NAME ## _
4693_ACEOF
4694
4695          cat >>confdefs.h <<\_ACEOF
4696#define F77_FUNC_(name,NAME) NAME ## __
4697_ACEOF
4698 ;;
4699  *)
4700          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4701echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4702          ;;
4703esac
4704
4705ac_ext=f
4706ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4707ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4709
4710ac_ext=c
4711ac_cpp='$CPP $CPPFLAGS'
4712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715
4716
4717
4718
4719# Add FLIBS to FILTERSQP_PCLIBS, so that they get into the .pc files
4720FILTERSQP_PCLIBS="$FLIBS"
4721
4722
4723# Check if pkg-config is available (to setup addlibs file)
4724
4725
4726# Check whether --enable-pkg-config or --disable-pkg-config was given.
4727if test "${enable_pkg_config+set}" = set; then
4728  enableval="$enable_pkg_config"
4729  use_pkgconfig="$enableval"
4730else
4731  if test x$coin_cc_is_cl = xtrue; then
4732     use_pkgconfig=no
4733   else
4734     use_pkgconfig=yes
4735   fi
4736fi;
4737
4738if test $use_pkgconfig = yes ; then
4739  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4740    if test -n "$ac_tool_prefix"; then
4741  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4742set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4743echo "$as_me:$LINENO: checking for $ac_word" >&5
4744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4746  echo $ECHO_N "(cached) $ECHO_C" >&6
4747else
4748  if test -n "$PKG_CONFIG"; then
4749  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754  IFS=$as_save_IFS
4755  test -z "$as_dir" && as_dir=.
4756  for ac_exec_ext in '' $ac_executable_extensions; do
4757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760    break 2
4761  fi
4762done
4763done
4764
4765fi
4766fi
4767PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4768if test -n "$PKG_CONFIG"; then
4769  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4770echo "${ECHO_T}$PKG_CONFIG" >&6
4771else
4772  echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774fi
4775
4776fi
4777if test -z "$ac_cv_prog_PKG_CONFIG"; then
4778  ac_ct_PKG_CONFIG=$PKG_CONFIG
4779  # Extract the first word of "pkg-config", so it can be a program name with args.
4780set dummy pkg-config; ac_word=$2
4781echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  if test -n "$ac_ct_PKG_CONFIG"; then
4787  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794  for ac_exec_ext in '' $ac_executable_extensions; do
4795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801done
4802
4803fi
4804fi
4805ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4806if test -n "$ac_ct_PKG_CONFIG"; then
4807  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4808echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4809else
4810  echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
4814  PKG_CONFIG=$ac_ct_PKG_CONFIG
4815else
4816  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4817fi
4818
4819  fi
4820  if test -n "$PKG_CONFIG"; then
4821    _pkg_min_version=0.16.0
4822    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4823echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4824    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4825      echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827    else
4828      echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830      PKG_CONFIG=""
4831    fi
4832  fi
4833
4834  # check if pkg-config supports the short-errors flag
4835  if test -n "$PKG_CONFIG" && \
4836    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4837    pkg_short_errors=" --short-errors "
4838  else
4839    pkg_short_errors=""
4840  fi
4841fi
4842
4843
4844
4845if test -n "$PKG_CONFIG"; then
4846  COIN_HAS_PKGCONFIG_TRUE=
4847  COIN_HAS_PKGCONFIG_FALSE='#'
4848else
4849  COIN_HAS_PKGCONFIG_TRUE='#'
4850  COIN_HAS_PKGCONFIG_FALSE=
4851fi
4852
4853
4854
4855# assemble pkg-config search path for installed projects
4856COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4857
4858# 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
4859# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4860# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4861if test "x${prefix}" = xNONE ; then
4862  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4863else
4864  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4865fi
4866
4867
4868# Check whether --with-coin-instdir or --without-coin-instdir was given.
4869if test "${with_coin_instdir+set}" = set; then
4870  withval="$with_coin_instdir"
4871  if test -d "$withval"; then : ; else
4872     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4873echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4874   { (exit 1); exit 1; }; }
4875   fi
4876   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4877
4878fi;
4879
4880
4881
4882# assemble additional pkg-config search paths for uninstalled projects
4883if test x$coin_projectdir = xyes ; then
4884  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4885  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4886  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4887  # 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)
4888  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4889  if test -f ../coin_subdirs.txt ; then
4890    for i in `cat ../coin_subdirs.txt` ; do
4891      if test -d ../$i ; then
4892        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4893      fi
4894      if test -d ../$i/pkgconfig ; then
4895        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4896      fi
4897    done
4898  fi
4899
4900  if test -f ../../coin_subdirs.txt ; then
4901    for i in `cat ../../coin_subdirs.txt` ; do
4902      if test -d ../../$i ; then
4903        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4904      fi
4905      if test -d ../../$i/pkgconfig ; then
4906        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4907      fi
4908    done
4909  fi
4910
4911
4912fi
4913
4914if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4915  { 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
4916echo "$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;}
4917fi
4918
4919
4920
4921# Initialize automake
4922echo "$as_me:$LINENO: checking for egrep" >&5
4923echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4924if test "${ac_cv_prog_egrep+set}" = set; then
4925  echo $ECHO_N "(cached) $ECHO_C" >&6
4926else
4927  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4928    then ac_cv_prog_egrep='grep -E'
4929    else ac_cv_prog_egrep='egrep'
4930    fi
4931fi
4932echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4933echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4934 EGREP=$ac_cv_prog_egrep
4935
4936
4937echo "$as_me:$LINENO: checking whether ln -s works" >&5
4938echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4939LN_S=$as_ln_s
4940if test "$LN_S" = "ln -s"; then
4941  echo "$as_me:$LINENO: result: yes" >&5
4942echo "${ECHO_T}yes" >&6
4943else
4944  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4945echo "${ECHO_T}no, using $LN_S" >&6
4946fi
4947
4948am__api_version="1.9"
4949# Find a good install program.  We prefer a C program (faster),
4950# so one script is as good as another.  But avoid the broken or
4951# incompatible versions:
4952# SysV /etc/install, /usr/sbin/install
4953# SunOS /usr/etc/install
4954# IRIX /sbin/install
4955# AIX /bin/install
4956# AmigaOS /C/install, which installs bootblocks on floppy discs
4957# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4958# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4959# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4960# OS/2's system install, which has a completely different semantic
4961# ./install, which can be erroneously created by make from ./install.sh.
4962echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4963echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4964if test -z "$INSTALL"; then
4965if test "${ac_cv_path_install+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971  IFS=$as_save_IFS
4972  test -z "$as_dir" && as_dir=.
4973  # Account for people who put trailing slashes in PATH elements.
4974case $as_dir/ in
4975  ./ | .// | /cC/* | \
4976  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4977  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4978  /usr/ucb/* ) ;;
4979  *)
4980    # OSF1 and SCO ODT 3.0 have their own names for install.
4981    # Don't use installbsd from OSF since it installs stuff as root
4982    # by default.
4983    for ac_prog in ginstall scoinst install; do
4984      for ac_exec_ext in '' $ac_executable_extensions; do
4985        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4986          if test $ac_prog = install &&
4987            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4988            # AIX install.  It has an incompatible calling convention.
4989            :
4990          elif test $ac_prog = install &&
4991            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4992            # program-specific install script used by HP pwplus--don't use.
4993            :
4994          else
4995            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4996            break 3
4997          fi
4998        fi
4999      done
5000    done
5001    ;;
5002esac
5003done
5004
5005
5006fi
5007  if test "${ac_cv_path_install+set}" = set; then
5008    INSTALL=$ac_cv_path_install
5009  else
5010    # As a last resort, use the slow shell script.  We don't cache a
5011    # path for INSTALL within a source directory, because that will
5012    # break other packages using the cache if that directory is
5013    # removed, or if the path is relative.
5014    INSTALL=$ac_install_sh
5015  fi
5016fi
5017echo "$as_me:$LINENO: result: $INSTALL" >&5
5018echo "${ECHO_T}$INSTALL" >&6
5019
5020# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5021# It thinks the first close brace ends the variable substitution.
5022test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5023
5024test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5025
5026test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5027
5028echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5029echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5030# Just in case
5031sleep 1
5032echo timestamp > conftest.file
5033# Do `set' in a subshell so we don't clobber the current shell's
5034# arguments.  Must try -L first in case configure is actually a
5035# symlink; some systems play weird games with the mod time of symlinks
5036# (eg FreeBSD returns the mod time of the symlink's containing
5037# directory).
5038if (
5039   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5040   if test "$*" = "X"; then
5041      # -L didn't work.
5042      set X `ls -t $srcdir/configure conftest.file`
5043   fi
5044   rm -f conftest.file
5045   if test "$*" != "X $srcdir/configure conftest.file" \
5046      && test "$*" != "X conftest.file $srcdir/configure"; then
5047
5048      # If neither matched, then we have a broken ls.  This can happen
5049      # if, for instance, CONFIG_SHELL is bash and it inherits a
5050      # broken ls alias from the environment.  This has actually
5051      # happened.  Such a system could not be considered "sane".
5052      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5053alias in your environment" >&5
5054echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5055alias in your environment" >&2;}
5056   { (exit 1); exit 1; }; }
5057   fi
5058
5059   test "$2" = conftest.file
5060   )
5061then
5062   # Ok.
5063   :
5064else
5065   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5066Check your system clock" >&5
5067echo "$as_me: error: newly created file is older than distributed files!
5068Check your system clock" >&2;}
5069   { (exit 1); exit 1; }; }
5070fi
5071echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073test "$program_prefix" != NONE &&
5074  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5075# Use a double $ so make ignores it.
5076test "$program_suffix" != NONE &&
5077  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5078# Double any \ or $.  echo might interpret backslashes.
5079# By default was `s,x,x', remove it if useless.
5080cat <<\_ACEOF >conftest.sed
5081s/[\\$]/&&/g;s/;s,x,x,$//
5082_ACEOF
5083program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5084rm conftest.sed
5085
5086# expand $ac_aux_dir to an absolute path
5087am_aux_dir=`cd $ac_aux_dir && pwd`
5088
5089test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5090# Use eval to expand $SHELL
5091if eval "$MISSING --run true"; then
5092  am_missing_run="$MISSING --run "
5093else
5094  am_missing_run=
5095  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5096echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5097fi
5098
5099if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5100  # We used to keeping the `.' as first argument, in order to
5101  # allow $(mkdir_p) to be used without argument.  As in
5102  #   $(mkdir_p) $(somedir)
5103  # where $(somedir) is conditionally defined.  However this is wrong
5104  # for two reasons:
5105  #  1. if the package is installed by a user who cannot write `.'
5106  #     make install will fail,
5107  #  2. the above comment should most certainly read
5108  #     $(mkdir_p) $(DESTDIR)$(somedir)
5109  #     so it does not work when $(somedir) is undefined and
5110  #     $(DESTDIR) is not.
5111  #  To support the latter case, we have to write
5112  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5113  #  so the `.' trick is pointless.
5114  mkdir_p='mkdir -p --'
5115else
5116  # On NextStep and OpenStep, the `mkdir' command does not
5117  # recognize any option.  It will interpret all options as
5118  # directories to create, and then abort because `.' already
5119  # exists.
5120  for d in ./-p ./--version;
5121  do
5122    test -d $d && rmdir $d
5123  done
5124  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5125  if test -f "$ac_aux_dir/mkinstalldirs"; then
5126    mkdir_p='$(mkinstalldirs)'
5127  else
5128    mkdir_p='$(install_sh) -d'
5129  fi
5130fi
5131
5132for ac_prog in gawk mawk nawk awk
5133do
5134  # Extract the first word of "$ac_prog", so it can be a program name with args.
5135set dummy $ac_prog; ac_word=$2
5136echo "$as_me:$LINENO: checking for $ac_word" >&5
5137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138if test "${ac_cv_prog_AWK+set}" = set; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  if test -n "$AWK"; then
5142  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5143else
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  test -z "$as_dir" && as_dir=.
5149  for ac_exec_ext in '' $ac_executable_extensions; do
5150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151    ac_cv_prog_AWK="$ac_prog"
5152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153    break 2
5154  fi
5155done
5156done
5157
5158fi
5159fi
5160AWK=$ac_cv_prog_AWK
5161if test -n "$AWK"; then
5162  echo "$as_me:$LINENO: result: $AWK" >&5
5163echo "${ECHO_T}$AWK" >&6
5164else
5165  echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167fi
5168
5169  test -n "$AWK" && break
5170done
5171
5172echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5173echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5174set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5175if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  cat >conftest.make <<\_ACEOF
5179all:
5180        @echo 'ac_maketemp="$(MAKE)"'
5181_ACEOF
5182# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5183eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5184if test -n "$ac_maketemp"; then
5185  eval ac_cv_prog_make_${ac_make}_set=yes
5186else
5187  eval ac_cv_prog_make_${ac_make}_set=no
5188fi
5189rm -f conftest.make
5190fi
5191if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5192  echo "$as_me:$LINENO: result: yes" >&5
5193echo "${ECHO_T}yes" >&6
5194  SET_MAKE=
5195else
5196  echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6
5198  SET_MAKE="MAKE=${MAKE-make}"
5199fi
5200
5201rm -rf .tst 2>/dev/null
5202mkdir .tst 2>/dev/null
5203if test -d .tst; then
5204  am__leading_dot=.
5205else
5206  am__leading_dot=_
5207fi
5208rmdir .tst 2>/dev/null
5209
5210DEPDIR="${am__leading_dot}deps"
5211
5212          ac_config_commands="$ac_config_commands depfiles"
5213
5214
5215am_make=${MAKE-make}
5216cat > confinc << 'END'
5217am__doit:
5218        @echo done
5219.PHONY: am__doit
5220END
5221# If we don't find an include directive, just comment out the code.
5222echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5223echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5224am__include="#"
5225am__quote=
5226_am_result=none
5227# First try GNU make style include.
5228echo "include confinc" > confmf
5229# We grep out `Entering directory' and `Leaving directory'
5230# messages which can occur if `w' ends up in MAKEFLAGS.
5231# In particular we don't look at `^make:' because GNU make might
5232# be invoked under some other name (usually "gmake"), in which
5233# case it prints its new name instead of `make'.
5234if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5235   am__include=include
5236   am__quote=
5237   _am_result=GNU
5238fi
5239# Now try BSD make style include.
5240if test "$am__include" = "#"; then
5241   echo '.include "confinc"' > confmf
5242   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5243      am__include=.include
5244      am__quote="\""
5245      _am_result=BSD
5246   fi
5247fi
5248
5249
5250echo "$as_me:$LINENO: result: $_am_result" >&5
5251echo "${ECHO_T}$_am_result" >&6
5252rm -f confinc confmf
5253
5254# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5255if test "${enable_dependency_tracking+set}" = set; then
5256  enableval="$enable_dependency_tracking"
5257
5258fi;
5259if test "x$enable_dependency_tracking" != xno; then
5260  am_depcomp="$ac_aux_dir/depcomp"
5261  AMDEPBACKSLASH='\'
5262fi
5263
5264
5265if test "x$enable_dependency_tracking" != xno; then
5266  AMDEP_TRUE=
5267  AMDEP_FALSE='#'
5268else
5269  AMDEP_TRUE='#'
5270  AMDEP_FALSE=
5271fi
5272
5273
5274
5275
5276
5277
5278# AC_MSG_NOTICE([Beginning automake initialisation.])
5279# Stuff for automake
5280# test to see if srcdir already configured
5281if test "`cd $srcdir && pwd`" != "`pwd`" &&
5282   test -f $srcdir/config.status; then
5283  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5284echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5285   { (exit 1); exit 1; }; }
5286fi
5287
5288# test whether we have cygpath
5289if test -z "$CYGPATH_W"; then
5290  if (cygpath --version) >/dev/null 2>/dev/null; then
5291    CYGPATH_W='cygpath -w'
5292  else
5293    CYGPATH_W=echo
5294  fi
5295fi
5296
5297
5298# Define the identity of the package.
5299 PACKAGE='thirdpartyfiltersqp'
5300 VERSION='1.3'
5301
5302
5303cat >>confdefs.h <<_ACEOF
5304#define PACKAGE "$PACKAGE"
5305_ACEOF
5306
5307
5308cat >>confdefs.h <<_ACEOF
5309#define VERSION "$VERSION"
5310_ACEOF
5311
5312# Some tools Automake needs.
5313
5314ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5315
5316
5317AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5318
5319
5320AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5321
5322
5323AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5324
5325
5326MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5327
5328install_sh=${install_sh-"$am_aux_dir/install-sh"}
5329
5330# Installed binaries are usually stripped using `strip' when the user
5331# run `make install-strip'.  However `strip' might not be the right
5332# tool to use in cross-compilation environments, therefore Automake
5333# will honor the `STRIP' environment variable to overrule this program.
5334if test "$cross_compiling" != no; then
5335  if test -n "$ac_tool_prefix"; then
5336  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5337set dummy ${ac_tool_prefix}strip; ac_word=$2
5338echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340if test "${ac_cv_prog_STRIP+set}" = set; then
5341  echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343  if test -n "$STRIP"; then
5344  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349  IFS=$as_save_IFS
5350  test -z "$as_dir" && as_dir=.
5351  for ac_exec_ext in '' $ac_executable_extensions; do
5352  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355    break 2
5356  fi
5357done
5358done
5359
5360fi
5361fi
5362STRIP=$ac_cv_prog_STRIP
5363if test -n "$STRIP"; then
5364  echo "$as_me:$LINENO: result: $STRIP" >&5
5365echo "${ECHO_T}$STRIP" >&6
5366else
5367  echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369fi
5370
5371fi
5372if test -z "$ac_cv_prog_STRIP"; then
5373  ac_ct_STRIP=$STRIP
5374  # Extract the first word of "strip", so it can be a program name with args.
5375set dummy strip; ac_word=$2
5376echo "$as_me:$LINENO: checking for $ac_word" >&5
5377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5379  echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381  if test -n "$ac_ct_STRIP"; then
5382  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387  IFS=$as_save_IFS
5388  test -z "$as_dir" && as_dir=.
5389  for ac_exec_ext in '' $ac_executable_extensions; do
5390  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391    ac_cv_prog_ac_ct_STRIP="strip"
5392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393    break 2
5394  fi
5395done
5396done
5397
5398  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5399fi
5400fi
5401ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5402if test -n "$ac_ct_STRIP"; then
5403  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5404echo "${ECHO_T}$ac_ct_STRIP" >&6
5405else
5406  echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
5408fi
5409
5410  STRIP=$ac_ct_STRIP
5411else
5412  STRIP="$ac_cv_prog_STRIP"
5413fi
5414
5415fi
5416INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5417
5418# We need awk for the "check" target.  The system "awk" is bad on
5419# some platforms.
5420# Always define AMTAR for backward compatibility.
5421
5422AMTAR=${AMTAR-"${am_missing_run}tar"}
5423
5424am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5425
5426
5427
5428
5429depcc="$CC"   am_compiler_list=
5430
5431echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5432echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5433if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5437  # We make a subdir and do the tests there.  Otherwise we can end up
5438  # making bogus files that we don't know about and never remove.  For
5439  # instance it was reported that on HP-UX the gcc test will end up
5440  # making a dummy file named `D' -- because `-MD' means `put the output
5441  # in D'.
5442  mkdir conftest.dir
5443  # Copy depcomp to subdir because otherwise we won't find it if we're
5444  # using a relative directory.
5445  cp "$am_depcomp" conftest.dir
5446  cd conftest.dir
5447  # We will build objects and dependencies in a subdirectory because
5448  # it helps to detect inapplicable dependency modes.  For instance
5449  # both Tru64's cc and ICC support -MD to output dependencies as a
5450  # side effect of compilation, but ICC will put the dependencies in
5451  # the current directory while Tru64 will put them in the object
5452  # directory.
5453  mkdir sub
5454
5455  am_cv_CC_dependencies_compiler_type=none
5456  if test "$am_compiler_list" = ""; then
5457     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5458  fi
5459  for depmode in $am_compiler_list; do
5460    # Setup a source with many dependencies, because some compilers
5461    # like to wrap large dependency lists on column 80 (with \), and
5462    # we should not choose a depcomp mode which is confused by this.
5463    #
5464    # We need to recreate these files for each test, as the compiler may
5465    # overwrite some of them when testing with obscure command lines.
5466    # This happens at least with the AIX C compiler.
5467    : > sub/conftest.c
5468    for i in 1 2 3 4 5 6; do
5469      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5470      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5471      # Solaris 8's {/usr,}/bin/sh.
5472      touch sub/conftst$i.h
5473    done
5474    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5475
5476    case $depmode in
5477    nosideeffect)
5478      # after this tag, mechanisms are not by side-effect, so they'll
5479      # only be used when explicitly requested
5480      if test "x$enable_dependency_tracking" = xyes; then
5481        continue
5482      else
5483        break
5484      fi
5485      ;;
5486    none) break ;;
5487    esac
5488    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5489    # mode.  It turns out that the SunPro C++ compiler does not properly
5490    # handle `-M -o', and we need to detect this.
5491    if depmode=$depmode \
5492       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5493       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5494       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5495         >/dev/null 2>conftest.err &&
5496       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5497       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5498       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5499      # icc doesn't choke on unknown options, it will just issue warnings
5500      # or remarks (even with -Werror).  So we grep stderr for any message
5501      # that says an option was ignored or not supported.
5502      # When given -MP, icc 7.0 and 7.1 complain thusly:
5503      #   icc: Command line warning: ignoring option '-M'; no argument required
5504      # The diagnosis changed in icc 8.0:
5505      #   icc: Command line remark: option '-MP' not supported
5506      if (grep 'ignoring option' conftest.err ||
5507          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5508        am_cv_CC_dependencies_compiler_type=$depmode
5509        break
5510      fi
5511    fi
5512  done
5513
5514  cd ..
5515  rm -rf conftest.dir
5516else
5517  am_cv_CC_dependencies_compiler_type=none
5518fi
5519
5520fi
5521echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5522echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5523CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5524
5525
5526
5527if
5528  test "x$enable_dependency_tracking" != xno \
5529  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5530  am__fastdepCC_TRUE=
5531  am__fastdepCC_FALSE='#'
5532else
5533  am__fastdepCC_TRUE='#'
5534  am__fastdepCC_FALSE=
5535fi
5536
5537
5538
5539echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5540echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5541    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5542if test "${enable_maintainer_mode+set}" = set; then
5543  enableval="$enable_maintainer_mode"
5544  USE_MAINTAINER_MODE=$enableval
5545else
5546  USE_MAINTAINER_MODE=no
5547fi;
5548  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5549echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5550
5551
5552if test $USE_MAINTAINER_MODE = yes; then
5553  MAINTAINER_MODE_TRUE=
5554  MAINTAINER_MODE_FALSE='#'
5555else
5556  MAINTAINER_MODE_TRUE='#'
5557  MAINTAINER_MODE_FALSE=
5558fi
5559
5560  MAINT=$MAINTAINER_MODE_TRUE
5561
5562
5563
5564coin_have_externals=no
5565if test "$enable_maintainer_mode" = yes; then
5566
5567  # If maintainer mode is chosen, we make sure that the correct versions
5568  # of the tools are used, and that we know where libtool.m4 is (to
5569  # recreate acinclude.m4)
5570
5571
5572  LIBTOOLM4=
5573  # Normally, $HOME
5574  AUTOTOOLS_DFLT=$HOME
5575
5576  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5577echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5578if test "${ac_cv_use_correct_autotools+set}" = set; then
5579  echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581  ac_cv_use_correct_autotools=check
5582fi
5583echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5584echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5585
5586  if test $ac_cv_use_correct_autotools = check; then
5587    ac_cv_use_correct_autotools=yes
5588    # Check if we have autoconf
5589    # Extract the first word of "autoconf", so it can be a program name with args.
5590set dummy autoconf; ac_word=$2
5591echo "$as_me:$LINENO: checking for $ac_word" >&5
5592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5593if test "${ac_cv_prog_have_autoconf+set}" = set; then
5594  echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596  if test -n "$have_autoconf"; then
5597  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602  IFS=$as_save_IFS
5603  test -z "$as_dir" && as_dir=.
5604  for ac_exec_ext in '' $ac_executable_extensions; do
5605  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606    ac_cv_prog_have_autoconf="yes"
5607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608    break 2
5609  fi
5610done
5611done
5612
5613  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5614fi
5615fi
5616have_autoconf=$ac_cv_prog_have_autoconf
5617if test -n "$have_autoconf"; then
5618  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5619echo "${ECHO_T}$have_autoconf" >&6
5620else
5621  echo "$as_me:$LINENO: result: no" >&5
5622echo "${ECHO_T}no" >&6
5623fi
5624
5625    if test $have_autoconf = no; then
5626      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5627echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5628   { (exit 1); exit 1; }; }
5629    fi
5630
5631    # Check whether autoconf is the correct version
5632    correct_version='2.59'
5633    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5634    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5635echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5636    autoconf --version > confauto.out 2>&1
5637    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5638      echo "$as_me:$LINENO: result: yes" >&5
5639echo "${ECHO_T}yes" >&6
5640    else
5641      rm -f confauto.out
5642      echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5645echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5646   { (exit 1); exit 1; }; }
5647    fi
5648    rm -f confauto.out
5649
5650    # Check if the executable autoconf is picked up from the correct location
5651    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5652echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5653    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5654    autoconf_dir=`cd $autoconf_dir; pwd`
5655    if test x$AUTOTOOLS_DIR = x; then
5656      want_dir=$AUTOTOOLS_DFLT/bin
5657    else
5658      want_dir=$AUTOTOOLS_DIR/bin
5659    fi
5660    if test $autoconf_dir = `cd $want_dir; pwd`; then
5661      echo "$as_me:$LINENO: result: yes" >&5
5662echo "${ECHO_T}yes" >&6
5663    else
5664      rm -f confauto.out
5665      echo "$as_me:$LINENO: result: no" >&5
5666echo "${ECHO_T}no" >&6
5667      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5668echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5669   { (exit 1); exit 1; }; }
5670    fi
5671
5672    # Check if we have automake
5673    # Extract the first word of "automake", so it can be a program name with args.
5674set dummy automake; ac_word=$2
5675echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5677if test "${ac_cv_prog_have_automake+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680  if test -n "$have_automake"; then
5681  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688  for ac_exec_ext in '' $ac_executable_extensions; do
5689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690    ac_cv_prog_have_automake="yes"
5691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695done
5696
5697  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5698fi
5699fi
5700have_automake=$ac_cv_prog_have_automake
5701if test -n "$have_automake"; then
5702  echo "$as_me:$LINENO: result: $have_automake" >&5
5703echo "${ECHO_T}$have_automake" >&6
5704else
5705  echo "$as_me:$LINENO: result: no" >&5
5706echo "${ECHO_T}no" >&6
5707fi
5708
5709    if test $have_automake = no; then
5710      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5711echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5712   { (exit 1); exit 1; }; }
5713    fi
5714
5715    # Check whether automake is the correct version
5716    correct_version='1.9.6'
5717    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5718    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5719echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5720    automake --version > confauto.out 2>&1
5721    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5722      echo "$as_me:$LINENO: result: yes" >&5
5723echo "${ECHO_T}yes" >&6
5724    else
5725      rm -f confauto.out
5726      echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5729echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5730   { (exit 1); exit 1; }; }
5731    fi
5732    rm -f confauto.out
5733
5734    # Check if the executable automake is picked up from the correct location
5735    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5736echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5737    automake_dir=`which automake | sed -e 's=/automake=='`
5738    automake_dir=`cd $automake_dir; pwd`
5739    if test x$AUTOTOOLS_DIR = x; then
5740      want_dir=$AUTOTOOLS_DFLT/bin
5741    else
5742      want_dir=$AUTOTOOLS_DIR/bin
5743    fi
5744    if test $automake_dir = `cd $want_dir; pwd`; then
5745      echo "$as_me:$LINENO: result: yes" >&5
5746echo "${ECHO_T}yes" >&6
5747    else
5748      rm -f confauto.out
5749      echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5752echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5753   { (exit 1); exit 1; }; }
5754    fi
5755
5756    # Check if this is the correct version of libtool (with escaped dots)
5757    if test x$AUTOTOOLS_DIR = x; then
5758      want_dir=$AUTOTOOLS_DFLT/share
5759    else
5760      want_dir=$AUTOTOOLS_DIR/share
5761    fi
5762    correct_version='1.5.22'
5763    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5764    if test -r $want_dir/libtool/ltmain.sh; then
5765  have_ltmain=yes
5766  :
5767else
5768  have_ltmain=no
5769  :
5770fi
5771
5772    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5773echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5774    if test $have_ltmain = yes; then
5775    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5776        echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
5778      else
5779        echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5782echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5783   { (exit 1); exit 1; }; }
5784      fi
5785    else
5786      echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
5788      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5789echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5790   { (exit 1); exit 1; }; }
5791    fi
5792  fi
5793
5794  # Check if we can find the libtool file
5795  if test x$AUTOTOOLS_DIR = x; then
5796    want_dir=$AUTOTOOLS_DFLT/share
5797  else
5798    want_dir=$AUTOTOOLS_DIR/share
5799  fi
5800  if test -r $want_dir/aclocal/libtool.m4; then
5801  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5802  :
5803else
5804  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5805echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5806   { (exit 1); exit 1; }; }
5807  :
5808fi
5809
5810
5811  # Check if we have an Dependencies file
5812  if test -r $srcdir/Dependencies; then
5813    coin_have_externals=yes
5814  fi
5815  # Check if subversion is installed and understands https
5816  # Extract the first word of "svn", so it can be a program name with args.
5817set dummy svn; ac_word=$2
5818echo "$as_me:$LINENO: checking for $ac_word" >&5
5819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820if test "${ac_cv_prog_have_svn+set}" = set; then
5821  echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823  if test -n "$have_svn"; then
5824  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831  for ac_exec_ext in '' $ac_executable_extensions; do
5832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833    ac_cv_prog_have_svn="yes"
5834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838done
5839
5840  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5841fi
5842fi
5843have_svn=$ac_cv_prog_have_svn
5844if test -n "$have_svn"; then
5845  echo "$as_me:$LINENO: result: $have_svn" >&5
5846echo "${ECHO_T}$have_svn" >&6
5847else
5848  echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6
5850fi
5851
5852  if test x$have_svn = xyes; then
5853    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5854echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5855if test "${ac_cv_svn_understands_https+set}" = set; then
5856  echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858  svn --version > confauto.out 2>&1
5859                    if $EGREP https confauto.out >/dev/null 2>&1; then
5860                      ac_cv_svn_understands_https=yes
5861                    else
5862                      ac_cv_svn_understands_https=no
5863                      have_svn=no
5864                      ac_cv_prog_have_svn=no
5865                    fi
5866                    rm -f confauto.out
5867fi
5868echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5869echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5870  fi
5871
5872  # Find the location of the BuildTools directory
5873  BUILDTOOLSDIR=
5874  if test -r $srcdir/BuildTools/coin.m4; then
5875    BUILDTOOLSDIR=$srcdir/BuildTools
5876  else
5877    if test -r $srcdir/../BuildTools/coin.m4; then
5878      BUILDTOOLSDIR=$srcdir/../BuildTools
5879    else
5880      if test -r $srcdir/../../BuildTools/coin.m4; then
5881        BUILDTOOLSDIR=$srcdir/../../BuildTools
5882      else
5883        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5884echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5885   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5886      fi
5887    fi
5888  fi
5889
5890
5891  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5892  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5893    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5894  fi
5895
5896  # The following variable is set to the name of the directory where
5897  # the autotool scripts are located
5898
5899  AUX_DIR=$ac_aux_dir
5900fi
5901
5902# helpful variable for the base directory of this package
5903abs_source_dir=`cd $srcdir; pwd`
5904
5905
5906# Stuff for example Makefiles
5907if test x$prefix = xNONE; then
5908  full_prefix=$ac_default_prefix
5909else
5910  full_prefix=$prefix
5911fi
5912full_prefix=`cd $full_prefix ; pwd`
5913
5914abs_lib_dir=$full_prefix/lib
5915
5916abs_include_dir=$full_prefix/include
5917
5918abs_bin_dir=$full_prefix/bin
5919
5920
5921
5922if test $coin_have_externals = yes && test x$have_svn = xyes; then
5923  HAVE_EXTERNALS_TRUE=
5924  HAVE_EXTERNALS_FALSE='#'
5925else
5926  HAVE_EXTERNALS_TRUE='#'
5927  HAVE_EXTERNALS_FALSE=
5928fi
5929
5930
5931# AC_MSG_NOTICE([End automake initialisation.])
5932
5933
5934
5935# Initialize automake
5936{
5937
5938
5939
5940# START
5941
5942coin_disable_shared=no
5943# Test if force_shared has been set
5944if test "x" = xforce_shared; then
5945  if test x$enable_shared = xno; then
5946    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5947echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5948   { (exit 1); exit 1; }; }
5949  fi
5950  enable_shared=yes;
5951else
5952  case $build in
5953    *-cygwin* | *-mingw*)
5954      coin_disable_shared=yes
5955      if test x"$enable_shared" = xyes; then
5956        case "$CC" in
5957          clang* )
5958            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5959echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5960            ;;
5961          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5962            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5963echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5964            ;;
5965          *gcc*)
5966            if test x"$enable_dependency_linking" = xyes; then
5967              coin_disable_shared=no
5968            else
5969              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5970echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5971            fi
5972            ;;
5973          *)
5974            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5975echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5976            ;;
5977        esac
5978      fi
5979    ;;
5980    *-aix*)
5981      coin_disable_shared=yes
5982      platform=AIX
5983      if test x"$enable_shared" = xyes; then
5984        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5985echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5986      fi
5987    ;;
5988  esac
5989fi
5990if test x"$coin_disable_shared" = xyes; then
5991  if test x"$enable_shared" = xyes; then
5992    :
5993  else
5994    # we don't disable shared, because it was not selected anyway
5995    coin_disable_shared=no
5996  fi
5997  enable_shared=no
5998fi
5999# By default, we only want the shared objects to be compiled
6000# Check whether --enable-static or --disable-static was given.
6001if test "${enable_static+set}" = set; then
6002  enableval="$enable_static"
6003  p=${PACKAGE-default}
6004    case $enableval in
6005    yes) enable_static=yes ;;
6006    no) enable_static=no ;;
6007    *)
6008     enable_static=no
6009      # Look at the argument we got.  We use all the common list separators.
6010      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6011      for pkg in $enableval; do
6012        IFS="$lt_save_ifs"
6013        if test "X$pkg" = "X$p"; then
6014          enable_static=yes
6015        fi
6016      done
6017      IFS="$lt_save_ifs"
6018      ;;
6019    esac
6020else
6021  enable_static=no
6022fi;
6023
6024
6025
6026
6027# Initialize automake
6028
6029
6030
6031# AC_MSG_NOTICE([Beginning automake initialisation.])
6032# Stuff for automake
6033# test to see if srcdir already configured
6034if test "`cd $srcdir && pwd`" != "`pwd`" &&
6035   test -f $srcdir/config.status; then
6036  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6037echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6038   { (exit 1); exit 1; }; }
6039fi
6040
6041# test whether we have cygpath
6042if test -z "$CYGPATH_W"; then
6043  if (cygpath --version) >/dev/null 2>/dev/null; then
6044    CYGPATH_W='cygpath -w'
6045  else
6046    CYGPATH_W=echo
6047  fi
6048fi
6049
6050
6051# Define the identity of the package.
6052 PACKAGE='thirdpartyfiltersqp'
6053 VERSION='1.3'
6054
6055
6056cat >>confdefs.h <<_ACEOF
6057#define PACKAGE "$PACKAGE"
6058_ACEOF
6059
6060
6061cat >>confdefs.h <<_ACEOF
6062#define VERSION "$VERSION"
6063_ACEOF
6064
6065# Some tools Automake needs.
6066
6067ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6068
6069
6070AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6071
6072
6073AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6074
6075
6076AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6077
6078
6079MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6080
6081install_sh=${install_sh-"$am_aux_dir/install-sh"}
6082
6083# Installed binaries are usually stripped using `strip' when the user
6084# run `make install-strip'.  However `strip' might not be the right
6085# tool to use in cross-compilation environments, therefore Automake
6086# will honor the `STRIP' environment variable to overrule this program.
6087if test "$cross_compiling" != no; then
6088  if test -n "$ac_tool_prefix"; then
6089  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6090set dummy ${ac_tool_prefix}strip; ac_word=$2
6091echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093if test "${ac_cv_prog_STRIP+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  if test -n "$STRIP"; then
6097  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104  for ac_exec_ext in '' $ac_executable_extensions; do
6105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111done
6112
6113fi
6114fi
6115STRIP=$ac_cv_prog_STRIP
6116if test -n "$STRIP"; then
6117  echo "$as_me:$LINENO: result: $STRIP" >&5
6118echo "${ECHO_T}$STRIP" >&6
6119else
6120  echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6
6122fi
6123
6124fi
6125if test -z "$ac_cv_prog_STRIP"; then
6126  ac_ct_STRIP=$STRIP
6127  # Extract the first word of "strip", so it can be a program name with args.
6128set dummy strip; ac_word=$2
6129echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  if test -n "$ac_ct_STRIP"; then
6135  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  test -z "$as_dir" && as_dir=.
6142  for ac_exec_ext in '' $ac_executable_extensions; do
6143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144    ac_cv_prog_ac_ct_STRIP="strip"
6145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149done
6150
6151  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6152fi
6153fi
6154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6155if test -n "$ac_ct_STRIP"; then
6156  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6157echo "${ECHO_T}$ac_ct_STRIP" >&6
6158else
6159  echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6
6161fi
6162
6163  STRIP=$ac_ct_STRIP
6164else
6165  STRIP="$ac_cv_prog_STRIP"
6166fi
6167
6168fi
6169INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6170
6171# We need awk for the "check" target.  The system "awk" is bad on
6172# some platforms.
6173# Always define AMTAR for backward compatibility.
6174
6175AMTAR=${AMTAR-"${am_missing_run}tar"}
6176
6177am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6178
6179
6180
6181
6182depcc="$CC"   am_compiler_list=
6183
6184echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6185echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6186if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6187  echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6190  # We make a subdir and do the tests there.  Otherwise we can end up
6191  # making bogus files that we don't know about and never remove.  For
6192  # instance it was reported that on HP-UX the gcc test will end up
6193  # making a dummy file named `D' -- because `-MD' means `put the output
6194  # in D'.
6195  mkdir conftest.dir
6196  # Copy depcomp to subdir because otherwise we won't find it if we're
6197  # using a relative directory.
6198  cp "$am_depcomp" conftest.dir
6199  cd conftest.dir
6200  # We will build objects and dependencies in a subdirectory because
6201  # it helps to detect inapplicable dependency modes.  For instance
6202  # both Tru64's cc and ICC support -MD to output dependencies as a
6203  # side effect of compilation, but ICC will put the dependencies in
6204  # the current directory while Tru64 will put them in the object
6205  # directory.
6206  mkdir sub
6207
6208  am_cv_CC_dependencies_compiler_type=none
6209  if test "$am_compiler_list" = ""; then
6210     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6211  fi
6212  for depmode in $am_compiler_list; do
6213    # Setup a source with many dependencies, because some compilers
6214    # like to wrap large dependency lists on column 80 (with \), and
6215    # we should not choose a depcomp mode which is confused by this.
6216    #
6217    # We need to recreate these files for each test, as the compiler may
6218    # overwrite some of them when testing with obscure command lines.
6219    # This happens at least with the AIX C compiler.
6220    : > sub/conftest.c
6221    for i in 1 2 3 4 5 6; do
6222      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6223      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6224      # Solaris 8's {/usr,}/bin/sh.
6225      touch sub/conftst$i.h
6226    done
6227    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6228
6229    case $depmode in
6230    nosideeffect)
6231      # after this tag, mechanisms are not by side-effect, so they'll
6232      # only be used when explicitly requested
6233      if test "x$enable_dependency_tracking" = xyes; then
6234        continue
6235      else
6236        break
6237      fi
6238      ;;
6239    none) break ;;
6240    esac
6241    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6242    # mode.  It turns out that the SunPro C++ compiler does not properly
6243    # handle `-M -o', and we need to detect this.
6244    if depmode=$depmode \
6245       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6246       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6247       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6248         >/dev/null 2>conftest.err &&
6249       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6250       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6251       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6252      # icc doesn't choke on unknown options, it will just issue warnings
6253      # or remarks (even with -Werror).  So we grep stderr for any message
6254      # that says an option was ignored or not supported.
6255      # When given -MP, icc 7.0 and 7.1 complain thusly:
6256      #   icc: Command line warning: ignoring option '-M'; no argument required
6257      # The diagnosis changed in icc 8.0:
6258      #   icc: Command line remark: option '-MP' not supported
6259      if (grep 'ignoring option' conftest.err ||
6260          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6261        am_cv_CC_dependencies_compiler_type=$depmode
6262        break
6263      fi
6264    fi
6265  done
6266
6267  cd ..
6268  rm -rf conftest.dir
6269else
6270  am_cv_CC_dependencies_compiler_type=none
6271fi
6272
6273fi
6274echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6275echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6276CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6277
6278
6279
6280if
6281  test "x$enable_dependency_tracking" != xno \
6282  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6283  am__fastdepCC_TRUE=
6284  am__fastdepCC_FALSE='#'
6285else
6286  am__fastdepCC_TRUE='#'
6287  am__fastdepCC_FALSE=
6288fi
6289
6290
6291
6292echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6293echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6294    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6295if test "${enable_maintainer_mode+set}" = set; then
6296  enableval="$enable_maintainer_mode"
6297  USE_MAINTAINER_MODE=$enableval
6298else
6299  USE_MAINTAINER_MODE=no
6300fi;
6301  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6302echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6303
6304
6305if test $USE_MAINTAINER_MODE = yes; then
6306  MAINTAINER_MODE_TRUE=
6307  MAINTAINER_MODE_FALSE='#'
6308else
6309  MAINTAINER_MODE_TRUE='#'
6310  MAINTAINER_MODE_FALSE=
6311fi
6312
6313  MAINT=$MAINTAINER_MODE_TRUE
6314
6315
6316
6317coin_have_externals=no
6318if test "$enable_maintainer_mode" = yes; then
6319
6320  # If maintainer mode is chosen, we make sure that the correct versions
6321  # of the tools are used, and that we know where libtool.m4 is (to
6322  # recreate acinclude.m4)
6323
6324
6325  LIBTOOLM4=
6326  # Normally, $HOME
6327  AUTOTOOLS_DFLT=$HOME
6328
6329  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6330echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6331if test "${ac_cv_use_correct_autotools+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  ac_cv_use_correct_autotools=check
6335fi
6336echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6337echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6338
6339  if test $ac_cv_use_correct_autotools = check; then
6340    ac_cv_use_correct_autotools=yes
6341    # Check if we have autoconf
6342    # Extract the first word of "autoconf", so it can be a program name with args.
6343set dummy autoconf; ac_word=$2
6344echo "$as_me:$LINENO: checking for $ac_word" >&5
6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6346if test "${ac_cv_prog_have_autoconf+set}" = set; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  if test -n "$have_autoconf"; then
6350  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355  IFS=$as_save_IFS
6356  test -z "$as_dir" && as_dir=.
6357  for ac_exec_ext in '' $ac_executable_extensions; do
6358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359    ac_cv_prog_have_autoconf="yes"
6360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361    break 2
6362  fi
6363done
6364done
6365
6366  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6367fi
6368fi
6369have_autoconf=$ac_cv_prog_have_autoconf
6370if test -n "$have_autoconf"; then
6371  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6372echo "${ECHO_T}$have_autoconf" >&6
6373else
6374  echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
6376fi
6377
6378    if test $have_autoconf = no; then
6379      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6380echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6381   { (exit 1); exit 1; }; }
6382    fi
6383
6384    # Check whether autoconf is the correct version
6385    correct_version='2.59'
6386    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6387    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6388echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6389    autoconf --version > confauto.out 2>&1
6390    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6391      echo "$as_me:$LINENO: result: yes" >&5
6392echo "${ECHO_T}yes" >&6
6393    else
6394      rm -f confauto.out
6395      echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6398echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6399   { (exit 1); exit 1; }; }
6400    fi
6401    rm -f confauto.out
6402
6403    # Check if the executable autoconf is picked up from the correct location
6404    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6405echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6406    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6407    autoconf_dir=`cd $autoconf_dir; pwd`
6408    if test x$AUTOTOOLS_DIR = x; then
6409      want_dir=$AUTOTOOLS_DFLT/bin
6410    else
6411      want_dir=$AUTOTOOLS_DIR/bin
6412    fi
6413    if test $autoconf_dir = `cd $want_dir; pwd`; then
6414      echo "$as_me:$LINENO: result: yes" >&5
6415echo "${ECHO_T}yes" >&6
6416    else
6417      rm -f confauto.out
6418      echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6
6420      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6421echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6422   { (exit 1); exit 1; }; }
6423    fi
6424
6425    # Check if we have automake
6426    # Extract the first word of "automake", so it can be a program name with args.
6427set dummy automake; ac_word=$2
6428echo "$as_me:$LINENO: checking for $ac_word" >&5
6429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6430if test "${ac_cv_prog_have_automake+set}" = set; then
6431  echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433  if test -n "$have_automake"; then
6434  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6435else
6436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437for as_dir in $PATH
6438do
6439  IFS=$as_save_IFS
6440  test -z "$as_dir" && as_dir=.
6441  for ac_exec_ext in '' $ac_executable_extensions; do
6442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443    ac_cv_prog_have_automake="yes"
6444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445    break 2
6446  fi
6447done
6448done
6449
6450  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6451fi
6452fi
6453have_automake=$ac_cv_prog_have_automake
6454if test -n "$have_automake"; then
6455  echo "$as_me:$LINENO: result: $have_automake" >&5
6456echo "${ECHO_T}$have_automake" >&6
6457else
6458  echo "$as_me:$LINENO: result: no" >&5
6459echo "${ECHO_T}no" >&6
6460fi
6461
6462    if test $have_automake = no; then
6463      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6464echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6465   { (exit 1); exit 1; }; }
6466    fi
6467
6468    # Check whether automake is the correct version
6469    correct_version='1.9.6'
6470    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6471    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6472echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6473    automake --version > confauto.out 2>&1
6474    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6475      echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6
6477    else
6478      rm -f confauto.out
6479      echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6482echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6483   { (exit 1); exit 1; }; }
6484    fi
6485    rm -f confauto.out
6486
6487    # Check if the executable automake is picked up from the correct location
6488    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6489echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6490    automake_dir=`which automake | sed -e 's=/automake=='`
6491    automake_dir=`cd $automake_dir; pwd`
6492    if test x$AUTOTOOLS_DIR = x; then
6493      want_dir=$AUTOTOOLS_DFLT/bin
6494    else
6495      want_dir=$AUTOTOOLS_DIR/bin
6496    fi
6497    if test $automake_dir = `cd $want_dir; pwd`; then
6498      echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
6500    else
6501      rm -f confauto.out
6502      echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6505echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6506   { (exit 1); exit 1; }; }
6507    fi
6508
6509    # Check if this is the correct version of libtool (with escaped dots)
6510    if test x$AUTOTOOLS_DIR = x; then
6511      want_dir=$AUTOTOOLS_DFLT/share
6512    else
6513      want_dir=$AUTOTOOLS_DIR/share
6514    fi
6515    correct_version='1.5.22'
6516    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6517    if test -r $want_dir/libtool/ltmain.sh; then
6518  have_ltmain=yes
6519  :
6520else
6521  have_ltmain=no
6522  :
6523fi
6524
6525    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6526echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6527    if test $have_ltmain = yes; then
6528    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6529        echo "$as_me:$LINENO: result: yes" >&5
6530echo "${ECHO_T}yes" >&6
6531      else
6532        echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6535echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6536   { (exit 1); exit 1; }; }
6537      fi
6538    else
6539      echo "$as_me:$LINENO: result: no" >&5
6540echo "${ECHO_T}no" >&6
6541      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6542echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6543   { (exit 1); exit 1; }; }
6544    fi
6545  fi
6546
6547  # Check if we can find the libtool file
6548  if test x$AUTOTOOLS_DIR = x; then
6549    want_dir=$AUTOTOOLS_DFLT/share
6550  else
6551    want_dir=$AUTOTOOLS_DIR/share
6552  fi
6553  if test -r $want_dir/aclocal/libtool.m4; then
6554  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6555  :
6556else
6557  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6558echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6559   { (exit 1); exit 1; }; }
6560  :
6561fi
6562
6563
6564  # Check if we have an Dependencies file
6565  if test -r $srcdir/Dependencies; then
6566    coin_have_externals=yes
6567  fi
6568  # Check if subversion is installed and understands https
6569  # Extract the first word of "svn", so it can be a program name with args.
6570set dummy svn; ac_word=$2
6571echo "$as_me:$LINENO: checking for $ac_word" >&5
6572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6573if test "${ac_cv_prog_have_svn+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576  if test -n "$have_svn"; then
6577  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6578else
6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582  IFS=$as_save_IFS
6583  test -z "$as_dir" && as_dir=.
6584  for ac_exec_ext in '' $ac_executable_extensions; do
6585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586    ac_cv_prog_have_svn="yes"
6587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588    break 2
6589  fi
6590done
6591done
6592
6593  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6594fi
6595fi
6596have_svn=$ac_cv_prog_have_svn
6597if test -n "$have_svn"; then
6598  echo "$as_me:$LINENO: result: $have_svn" >&5
6599echo "${ECHO_T}$have_svn" >&6
6600else
6601  echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
6603fi
6604
6605  if test x$have_svn = xyes; then
6606    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6607echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6608if test "${ac_cv_svn_understands_https+set}" = set; then
6609  echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611  svn --version > confauto.out 2>&1
6612                    if $EGREP https confauto.out >/dev/null 2>&1; then
6613                      ac_cv_svn_understands_https=yes
6614                    else
6615                      ac_cv_svn_understands_https=no
6616                      have_svn=no
6617                      ac_cv_prog_have_svn=no
6618                    fi
6619                    rm -f confauto.out
6620fi
6621echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6622echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6623  fi
6624
6625  # Find the location of the BuildTools directory
6626  BUILDTOOLSDIR=
6627  if test -r $srcdir/BuildTools/coin.m4; then
6628    BUILDTOOLSDIR=$srcdir/BuildTools
6629  else
6630    if test -r $srcdir/../BuildTools/coin.m4; then
6631      BUILDTOOLSDIR=$srcdir/../BuildTools
6632    else
6633      if test -r $srcdir/../../BuildTools/coin.m4; then
6634        BUILDTOOLSDIR=$srcdir/../../BuildTools
6635      else
6636        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6637echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6638   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6639      fi
6640    fi
6641  fi
6642
6643
6644  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6645  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6646    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6647  fi
6648
6649  # The following variable is set to the name of the directory where
6650  # the autotool scripts are located
6651
6652  AUX_DIR=$ac_aux_dir
6653fi
6654
6655# helpful variable for the base directory of this package
6656abs_source_dir=`cd $srcdir; pwd`
6657
6658
6659# Stuff for example Makefiles
6660if test x$prefix = xNONE; then
6661  full_prefix=$ac_default_prefix
6662else
6663  full_prefix=$prefix
6664fi
6665full_prefix=`cd $full_prefix ; pwd`
6666
6667abs_lib_dir=$full_prefix/lib
6668
6669abs_include_dir=$full_prefix/include
6670
6671abs_bin_dir=$full_prefix/bin
6672
6673
6674
6675if test $coin_have_externals = yes && test x$have_svn = xyes; then
6676  HAVE_EXTERNALS_TRUE=
6677  HAVE_EXTERNALS_FALSE='#'
6678else
6679  HAVE_EXTERNALS_TRUE='#'
6680  HAVE_EXTERNALS_FALSE=
6681fi
6682
6683
6684# AC_MSG_NOTICE([End automake initialisation.])
6685
6686
6687
6688LIBTOOL=
6689if test -f ../libtool; then
6690  coin_config_dir=..
6691  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6692fi
6693if test "x$LIBTOOL" = x; then
6694  if test -f ../../libtool; then
6695    coin_config_dir=../..
6696    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6697  fi
6698fi
6699
6700if test "x$LIBTOOL" = x; then
6701# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6702  # Stuff for libtool
6703  # Check whether --enable-shared or --disable-shared was given.
6704if test "${enable_shared+set}" = set; then
6705  enableval="$enable_shared"
6706  p=${PACKAGE-default}
6707    case $enableval in
6708    yes) enable_shared=yes ;;
6709    no) enable_shared=no ;;
6710    *)
6711      enable_shared=no
6712      # Look at the argument we got.  We use all the common list separators.
6713      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6714      for pkg in $enableval; do
6715        IFS="$lt_save_ifs"
6716        if test "X$pkg" = "X$p"; then
6717          enable_shared=yes
6718        fi
6719      done
6720      IFS="$lt_save_ifs"
6721      ;;
6722    esac
6723else
6724  enable_shared=yes
6725fi;
6726
6727# Check whether --enable-fast-install or --disable-fast-install was given.
6728if test "${enable_fast_install+set}" = set; then
6729  enableval="$enable_fast_install"
6730  p=${PACKAGE-default}
6731    case $enableval in
6732    yes) enable_fast_install=yes ;;
6733    no) enable_fast_install=no ;;
6734    *)
6735      enable_fast_install=no
6736      # Look at the argument we got.  We use all the common list separators.
6737      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6738      for pkg in $enableval; do
6739        IFS="$lt_save_ifs"
6740        if test "X$pkg" = "X$p"; then
6741          enable_fast_install=yes
6742        fi
6743      done
6744      IFS="$lt_save_ifs"
6745      ;;
6746    esac
6747else
6748  enable_fast_install=yes
6749fi;
6750
6751echo "$as_me:$LINENO: checking host system type" >&5
6752echo $ECHO_N "checking host system type... $ECHO_C" >&6
6753if test "${ac_cv_host+set}" = set; then
6754  echo $ECHO_N "(cached) $ECHO_C" >&6
6755else
6756  ac_cv_host_alias=$host_alias
6757test -z "$ac_cv_host_alias" &&
6758  ac_cv_host_alias=$ac_cv_build_alias
6759ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6760  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6761echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6762   { (exit 1); exit 1; }; }
6763
6764fi
6765echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6766echo "${ECHO_T}$ac_cv_host" >&6
6767host=$ac_cv_host
6768host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6769host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6770host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6771
6772
6773echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6774echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6775if test "${lt_cv_path_SED+set}" = set; then
6776  echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778  # Loop through the user's path and test for sed and gsed.
6779# Then use that list of sed's as ones to test for truncation.
6780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781for as_dir in $PATH
6782do
6783  IFS=$as_save_IFS
6784  test -z "$as_dir" && as_dir=.
6785  for lt_ac_prog in sed gsed; do
6786    for ac_exec_ext in '' $ac_executable_extensions; do
6787      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6788        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6789      fi
6790    done
6791  done
6792done
6793lt_ac_max=0
6794lt_ac_count=0
6795# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6796# along with /bin/sed that truncates output.
6797for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6798  test ! -f $lt_ac_sed && continue
6799  cat /dev/null > conftest.in
6800  lt_ac_count=0
6801  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6802  # Check for GNU sed and select it if it is found.
6803  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6804    lt_cv_path_SED=$lt_ac_sed
6805    break
6806  fi
6807  while true; do
6808    cat conftest.in conftest.in >conftest.tmp
6809    mv conftest.tmp conftest.in
6810    cp conftest.in conftest.nl
6811    echo >>conftest.nl
6812    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6813    cmp -s conftest.out conftest.nl || break
6814    # 10000 chars as input seems more than enough
6815    test $lt_ac_count -gt 10 && break
6816    lt_ac_count=`expr $lt_ac_count + 1`
6817    if test $lt_ac_count -gt $lt_ac_max; then
6818      lt_ac_max=$lt_ac_count
6819      lt_cv_path_SED=$lt_ac_sed
6820    fi
6821  done
6822done
6823
6824fi
6825
6826SED=$lt_cv_path_SED
6827echo "$as_me:$LINENO: result: $SED" >&5
6828echo "${ECHO_T}$SED" >&6
6829
6830
6831# Check whether --with-gnu-ld or --without-gnu-ld was given.
6832if test "${with_gnu_ld+set}" = set; then
6833  withval="$with_gnu_ld"
6834  test "$withval" = no || with_gnu_ld=yes
6835else
6836  with_gnu_ld=no
6837fi;
6838ac_prog=ld
6839if test "$GCC" = yes; then
6840  # Check if gcc -print-prog-name=ld gives a path.
6841  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6842echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6843  case $host in
6844  *-*-mingw*)
6845    # gcc leaves a trailing carriage return which upsets mingw
6846    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6847  *)
6848    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6849  esac
6850  case $ac_prog in
6851    # Accept absolute paths.
6852    [\\/]* | ?:[\\/]*)
6853      re_direlt='/[^/][^/]*/\.\./'
6854      # Canonicalize the pathname of ld
6855      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6856      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6857        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6858      done
6859      test -z "$LD" && LD="$ac_prog"
6860      ;;
6861  "")
6862    # If it fails, then pretend we aren't using GCC.
6863    ac_prog=ld
6864    ;;
6865  *)
6866    # If it is relative, then search for the first ld in PATH.
6867    with_gnu_ld=unknown
6868    ;;
6869  esac
6870elif test "$with_gnu_ld" = yes; then
6871  echo "$as_me:$LINENO: checking for GNU ld" >&5
6872echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6873else
6874  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6875echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6876fi
6877if test "${lt_cv_path_LD+set}" = set; then
6878  echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880  if test -z "$LD"; then
6881  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6882  for ac_dir in $PATH; do
6883    IFS="$lt_save_ifs"
6884    test -z "$ac_dir" && ac_dir=.
6885    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6886      lt_cv_path_LD="$ac_dir/$ac_prog"
6887      # Check to see if the program is GNU ld.  I'd rather use --version,
6888      # but apparently some variants of GNU ld only accept -v.
6889      # Break only if it was the GNU/non-GNU ld that we prefer.
6890      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6891      *GNU* | *'with BFD'*)
6892        test "$with_gnu_ld" != no && break
6893        ;;
6894      *)
6895        test "$with_gnu_ld" != yes && break
6896        ;;
6897      esac
6898    fi
6899  done
6900  IFS="$lt_save_ifs"
6901else
6902  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6903fi
6904fi
6905
6906LD="$lt_cv_path_LD"
6907if test -n "$LD"; then
6908  echo "$as_me:$LINENO: result: $LD" >&5
6909echo "${ECHO_T}$LD" >&6
6910else
6911  echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6
6913fi
6914test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6915echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6916   { (exit 1); exit 1; }; }
6917echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6918echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6919if test "${lt_cv_prog_gnu_ld+set}" = set; then
6920  echo $ECHO_N "(cached) $ECHO_C" >&6
6921else
6922  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6923case `$LD -v 2>&1 </dev/null` in
6924*GNU* | *'with BFD'*)
6925  lt_cv_prog_gnu_ld=yes
6926  ;;
6927*)
6928  lt_cv_prog_gnu_ld=no
6929  ;;
6930esac
6931fi
6932echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6933echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6934with_gnu_ld=$lt_cv_prog_gnu_ld
6935
6936
6937echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6938echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6939if test "${lt_cv_ld_reload_flag+set}" = set; then
6940  echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942  lt_cv_ld_reload_flag='-r'
6943fi
6944echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6945echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6946reload_flag=$lt_cv_ld_reload_flag
6947case $reload_flag in
6948"" | " "*) ;;
6949*) reload_flag=" $reload_flag" ;;
6950esac
6951reload_cmds='$LD$reload_flag -o $output$reload_objs'
6952case $host_os in
6953  darwin*)
6954    if test "$GCC" = yes; then
6955      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6956    else
6957      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6958    fi
6959    ;;
6960esac
6961
6962echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6963echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6964if test "${lt_cv_path_NM+set}" = set; then
6965  echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967  if test -n "$NM"; then
6968  # Let the user override the test.
6969  lt_cv_path_NM="$NM"
6970else
6971  lt_nm_to_check="${ac_tool_prefix}nm"
6972  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6973    lt_nm_to_check="$lt_nm_to_check nm"
6974  fi
6975  for lt_tmp_nm in $lt_nm_to_check; do
6976    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6977    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6978      IFS="$lt_save_ifs"
6979      test -z "$ac_dir" && ac_dir=.
6980      tmp_nm="$ac_dir/$lt_tmp_nm"
6981      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6982        # Check to see if the nm accepts a BSD-compat flag.
6983        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6984        #   nm: unknown option "B" ignored
6985        # Tru64's nm complains that /dev/null is an invalid object file
6986        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6987        */dev/null* | *'Invalid file or object type'*)
6988          lt_cv_path_NM="$tmp_nm -B"
6989          break
6990          ;;
6991        *)
6992          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6993          */dev/null*)
6994            lt_cv_path_NM="$tmp_nm -p"
6995            break
6996            ;;
6997          *)
6998            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6999            continue # so that we can try to find one that supports BSD flags
7000            ;;
7001          esac
7002          ;;
7003        esac
7004      fi
7005    done
7006    IFS="$lt_save_ifs"
7007  done
7008  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7009fi
7010fi
7011echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7012echo "${ECHO_T}$lt_cv_path_NM" >&6
7013NM="$lt_cv_path_NM"
7014
7015echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7016echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7017if test "${lt_cv_deplibs_check_method+set}" = set; then
7018  echo $ECHO_N "(cached) $ECHO_C" >&6
7019else
7020  lt_cv_file_magic_cmd='$MAGIC_CMD'
7021lt_cv_file_magic_test_file=
7022lt_cv_deplibs_check_method='unknown'
7023# Need to set the preceding variable on all platforms that support
7024# interlibrary dependencies.
7025# 'none' -- dependencies not supported.
7026# `unknown' -- same as none, but documents that we really don't know.
7027# 'pass_all' -- all dependencies passed with no checks.
7028# 'test_compile' -- check by making test program.
7029# 'file_magic [[regex]]' -- check by looking for files in library path
7030# which responds to the $file_magic_cmd with a given extended regex.
7031# If you have `file' or equivalent on your system and you're not sure
7032# whether `pass_all' will *always* work, you probably want this one.
7033
7034case $host_os in
7035aix4* | aix5*)
7036  lt_cv_deplibs_check_method=pass_all
7037  ;;
7038
7039beos*)
7040  lt_cv_deplibs_check_method=pass_all
7041  ;;
7042
7043bsdi[45]*)
7044  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7045  lt_cv_file_magic_cmd='/usr/bin/file -L'
7046  lt_cv_file_magic_test_file=/shlib/libc.so
7047  ;;
7048
7049cygwin*)
7050  # func_win32_libid is a shell function defined in ltmain.sh
7051  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7052  lt_cv_file_magic_cmd='func_win32_libid'
7053  ;;
7054
7055mingw* | pw32*)
7056  # Base MSYS/MinGW do not provide the 'file' command needed by
7057  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7058  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7059  lt_cv_file_magic_cmd='$OBJDUMP -f'
7060  ;;
7061
7062darwin* | rhapsody*)
7063  lt_cv_deplibs_check_method=pass_all
7064  ;;
7065
7066freebsd* | kfreebsd*-gnu | dragonfly*)
7067  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7068    case $host_cpu in
7069    i*86 )
7070      # Not sure whether the presence of OpenBSD here was a mistake.
7071      # Let's accept both of them until this is cleared up.
7072      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7073      lt_cv_file_magic_cmd=/usr/bin/file
7074      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7075      ;;
7076    esac
7077  else
7078    lt_cv_deplibs_check_method=pass_all
7079  fi
7080  ;;
7081
7082gnu*)
7083  lt_cv_deplibs_check_method=pass_all
7084  ;;
7085
7086hpux10.20* | hpux11*)
7087  lt_cv_file_magic_cmd=/usr/bin/file
7088  case $host_cpu in
7089  ia64*)
7090    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7091    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7092    ;;
7093  hppa*64*)
7094    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]'
7095    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7096    ;;
7097  *)
7098    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7099    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7100    ;;
7101  esac
7102  ;;
7103
7104interix3*)
7105  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7106  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7107  ;;
7108
7109irix5* | irix6* | nonstopux*)
7110  case $LD in
7111  *-32|*"-32 ") libmagic=32-bit;;
7112  *-n32|*"-n32 ") libmagic=N32;;
7113  *-64|*"-64 ") libmagic=64-bit;;
7114  *) libmagic=never-match;;
7115  esac
7116  lt_cv_deplibs_check_method=pass_all
7117  ;;
7118
7119# This must be Linux ELF.
7120linux*)
7121  lt_cv_deplibs_check_method=pass_all
7122  ;;
7123
7124netbsd*)
7125  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7126    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7127  else
7128    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7129  fi
7130  ;;
7131
7132newos6*)
7133  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7134  lt_cv_file_magic_cmd=/usr/bin/file
7135  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7136  ;;
7137
7138nto-qnx*)
7139  lt_cv_deplibs_check_method=unknown
7140  ;;
7141
7142openbsd*)
7143  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7144    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7145  else
7146    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7147  fi
7148  ;;
7149
7150osf3* | osf4* | osf5*)
7151  lt_cv_deplibs_check_method=pass_all
7152  ;;
7153
7154solaris*)
7155  lt_cv_deplibs_check_method=pass_all
7156  ;;
7157
7158sysv4 | sysv4.3*)
7159  case $host_vendor in
7160  motorola)
7161    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]'
7162    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7163    ;;
7164  ncr)
7165    lt_cv_deplibs_check_method=pass_all
7166    ;;
7167  sequent)
7168    lt_cv_file_magic_cmd='/bin/file'
7169    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7170    ;;
7171  sni)
7172    lt_cv_file_magic_cmd='/bin/file'
7173    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7174    lt_cv_file_magic_test_file=/lib/libc.so
7175    ;;
7176  siemens)
7177    lt_cv_deplibs_check_method=pass_all
7178    ;;
7179  pc)
7180    lt_cv_deplibs_check_method=pass_all
7181    ;;
7182  esac
7183  ;;
7184
7185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7186  lt_cv_deplibs_check_method=pass_all
7187  ;;
7188esac
7189
7190fi
7191echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7192echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7193file_magic_cmd=$lt_cv_file_magic_cmd
7194deplibs_check_method=$lt_cv_deplibs_check_method
7195test -z "$deplibs_check_method" && deplibs_check_method=unknown
7196
7197
7198
7199
7200# If no C compiler was specified, use CC.
7201LTCC=${LTCC-"$CC"}
7202
7203# If no C compiler flags were specified, use CFLAGS.
7204LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7205
7206# Allow CC to be a program name with arguments.
7207compiler=$CC
7208
7209# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7210if test "${enable_libtool_lock+set}" = set; then
7211  enableval="$enable_libtool_lock"
7212
7213fi;
7214test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7215
7216# Some flags need to be propagated to the compiler or linker for good
7217# libtool support.
7218case $host in
7219ia64-*-hpux*)
7220  # Find out which ABI we are using.
7221  echo 'int i;' > conftest.$ac_ext
7222  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223  (eval $ac_compile) 2>&5
7224  ac_status=$?
7225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226  (exit $ac_status); }; then
7227    case `/usr/bin/file conftest.$ac_objext` in
7228    *ELF-32*)
7229      HPUX_IA64_MODE="32"
7230      ;;
7231    *ELF-64*)
7232      HPUX_IA64_MODE="64"
7233      ;;
7234    esac
7235  fi
7236  rm -rf conftest*
7237  ;;
7238*-*-irix6*)
7239  # Find out which ABI we are using.
7240  echo '#line 7240 "configure"' > conftest.$ac_ext
7241  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242  (eval $ac_compile) 2>&5
7243  ac_status=$?
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); }; then
7246   if test "$lt_cv_prog_gnu_ld" = yes; then
7247    case `/usr/bin/file conftest.$ac_objext` in
7248    *32-bit*)
7249      LD="${LD-ld} -melf32bsmip"
7250      ;;
7251    *N32*)
7252      LD="${LD-ld} -melf32bmipn32"
7253      ;;
7254    *64-bit*)
7255      LD="${LD-ld} -melf64bmip"
7256      ;;
7257    esac
7258   else
7259    case `/usr/bin/file conftest.$ac_objext` in
7260    *32-bit*)
7261      LD="${LD-ld} -32"
7262      ;;
7263    *N32*)
7264      LD="${LD-ld} -n32"
7265      ;;
7266    *64-bit*)
7267      LD="${LD-ld} -64"
7268      ;;
7269    esac
7270   fi
7271  fi
7272  rm -rf conftest*
7273  ;;
7274
7275x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7276  # Find out which ABI we are using.
7277  echo 'int i;' > conftest.$ac_ext
7278  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7279  (eval $ac_compile) 2>&5
7280  ac_status=$?
7281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282  (exit $ac_status); }; then
7283    case `/usr/bin/file conftest.o` in
7284    *32-bit*)
7285      case $host in
7286        x86_64-*linux*)
7287          LD="${LD-ld} -m elf_i386"
7288          ;;
7289        ppc64-*linux*|powerpc64-*linux*)
7290          LD="${LD-ld} -m elf32ppclinux"
7291          ;;
7292        s390x-*linux*)
7293          LD="${LD-ld} -m elf_s390"
7294          ;;
7295        sparc64-*linux*)
7296          LD="${LD-ld} -m elf32_sparc"
7297          ;;
7298      esac
7299      ;;
7300    *64-bit*)
7301      case $host in
7302        x86_64-*linux*)
7303          LD="${LD-ld} -m elf_x86_64"
7304          ;;
7305        ppc*-*linux*|powerpc*-*linux*)
7306          LD="${LD-ld} -m elf64ppc"
7307          ;;
7308        s390*-*linux*)
7309          LD="${LD-ld} -m elf64_s390"
7310          ;;
7311        sparc*-*linux*)
7312          LD="${LD-ld} -m elf64_sparc"
7313          ;;
7314      esac
7315      ;;
7316    esac
7317  fi
7318  rm -rf conftest*
7319  ;;
7320
7321*-*-sco3.2v5*)
7322  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7323  SAVE_CFLAGS="$CFLAGS"
7324  CFLAGS="$CFLAGS -belf"
7325  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7326echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7327if test "${lt_cv_cc_needs_belf+set}" = set; then
7328  echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330  ac_ext=c
7331ac_cpp='$CPP $CPPFLAGS'
7332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334ac_compiler_gnu=$ac_cv_c_compiler_gnu
7335
7336     cat >conftest.$ac_ext <<_ACEOF
7337/* confdefs.h.  */
7338_ACEOF
7339cat confdefs.h >>conftest.$ac_ext
7340cat >>conftest.$ac_ext <<_ACEOF
7341/* end confdefs.h.  */
7342
7343#ifdef F77_DUMMY_MAIN
7344
7345#  ifdef __cplusplus
7346     extern "C"
7347#  endif
7348   int F77_DUMMY_MAIN() { return 1; }
7349
7350#endif
7351int
7352main ()
7353{
7354
7355  ;
7356  return 0;
7357}
7358_ACEOF
7359rm -f conftest.$ac_objext conftest$ac_exeext
7360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7361  (eval $ac_link) 2>conftest.er1
7362  ac_status=$?
7363  grep -v '^ *+' conftest.er1 >conftest.err
7364  rm -f conftest.er1
7365  cat conftest.err >&5
7366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367  (exit $ac_status); } &&
7368         { ac_try='test -z "$ac_c_werror_flag"
7369                         || test ! -s conftest.err'
7370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371  (eval $ac_try) 2>&5
7372  ac_status=$?
7373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374  (exit $ac_status); }; } &&
7375         { ac_try='test -s conftest$ac_exeext'
7376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377  (eval $ac_try) 2>&5
7378  ac_status=$?
7379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380  (exit $ac_status); }; }; then
7381  lt_cv_cc_needs_belf=yes
7382else
7383  echo "$as_me: failed program was:" >&5
7384sed 's/^/| /' conftest.$ac_ext >&5
7385
7386lt_cv_cc_needs_belf=no
7387fi
7388rm -f conftest.err conftest.$ac_objext \
7389      conftest$ac_exeext conftest.$ac_ext
7390     ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396fi
7397echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7398echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7399  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7400    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7401    CFLAGS="$SAVE_CFLAGS"
7402  fi
7403  ;;
7404sparc*-*solaris*)
7405  # Find out which ABI we are using.
7406  echo 'int i;' > conftest.$ac_ext
7407  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408  (eval $ac_compile) 2>&5
7409  ac_status=$?
7410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411  (exit $ac_status); }; then
7412    case `/usr/bin/file conftest.o` in
7413    *64-bit*)
7414      case $lt_cv_prog_gnu_ld in
7415      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7416      *)    LD="${LD-ld} -64" ;;
7417      esac
7418      ;;
7419    esac
7420  fi
7421  rm -rf conftest*
7422  ;;
7423
7424
7425esac
7426
7427need_locks="$enable_libtool_lock"
7428
7429
7430ac_ext=c
7431ac_cpp='$CPP $CPPFLAGS'
7432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7436echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7437# On Suns, sometimes $CPP names a directory.
7438if test -n "$CPP" && test -d "$CPP"; then
7439  CPP=
7440fi
7441if test -z "$CPP"; then
7442  if test "${ac_cv_prog_CPP+set}" = set; then
7443  echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445      # Double quotes because CPP needs to be expanded
7446    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7447    do
7448      ac_preproc_ok=false
7449for ac_c_preproc_warn_flag in '' yes
7450do
7451  # Use a header file that comes with gcc, so configuring glibc
7452  # with a fresh cross-compiler works.
7453  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454  # <limits.h> exists even on freestanding compilers.
7455  # On the NeXT, cc -E runs the code through the compiler's parser,
7456  # not just through cpp. "Syntax error" is here to catch this case.
7457  cat >conftest.$ac_ext <<_ACEOF
7458/* confdefs.h.  */
7459_ACEOF
7460cat confdefs.h >>conftest.$ac_ext
7461cat >>conftest.$ac_ext <<_ACEOF
7462/* end confdefs.h.  */
7463#ifdef __STDC__
7464# include <limits.h>
7465#else
7466# include <assert.h>
7467#endif
7468                     Syntax error
7469_ACEOF
7470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7472  ac_status=$?
7473  grep -v '^ *+' conftest.er1 >conftest.err
7474  rm -f conftest.er1
7475  cat conftest.err >&5
7476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477  (exit $ac_status); } >/dev/null; then
7478  if test -s conftest.err; then
7479    ac_cpp_err=$ac_c_preproc_warn_flag
7480    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7481  else
7482    ac_cpp_err=
7483  fi
7484else
7485  ac_cpp_err=yes
7486fi
7487if test -z "$ac_cpp_err"; then
7488  :
7489else
7490  echo "$as_me: failed program was:" >&5
7491sed 's/^/| /' conftest.$ac_ext >&5
7492
7493  # Broken: fails on valid input.
7494continue
7495fi
7496rm -f conftest.err conftest.$ac_ext
7497
7498  # OK, works on sane cases.  Now check whether non-existent headers
7499  # can be detected and how.
7500  cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h.  */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h.  */
7506#include <ac_nonexistent.h>
7507_ACEOF
7508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7510  ac_status=$?
7511  grep -v '^ *+' conftest.er1 >conftest.err
7512  rm -f conftest.er1
7513  cat conftest.err >&5
7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515  (exit $ac_status); } >/dev/null; then
7516  if test -s conftest.err; then
7517    ac_cpp_err=$ac_c_preproc_warn_flag
7518    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7519  else
7520    ac_cpp_err=
7521  fi
7522else
7523  ac_cpp_err=yes
7524fi
7525if test -z "$ac_cpp_err"; then
7526  # Broken: success on invalid input.
7527continue
7528else
7529  echo "$as_me: failed program was:" >&5
7530sed 's/^/| /' conftest.$ac_ext >&5
7531
7532  # Passes both tests.
7533ac_preproc_ok=:
7534break
7535fi
7536rm -f conftest.err conftest.$ac_ext
7537
7538done
7539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7540rm -f conftest.err conftest.$ac_ext
7541if $ac_preproc_ok; then
7542  break
7543fi
7544
7545    done
7546    ac_cv_prog_CPP=$CPP
7547
7548fi
7549  CPP=$ac_cv_prog_CPP
7550else
7551  ac_cv_prog_CPP=$CPP
7552fi
7553echo "$as_me:$LINENO: result: $CPP" >&5
7554echo "${ECHO_T}$CPP" >&6
7555ac_preproc_ok=false
7556for ac_c_preproc_warn_flag in '' yes
7557do
7558  # Use a header file that comes with gcc, so configuring glibc
7559  # with a fresh cross-compiler works.
7560  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7561  # <limits.h> exists even on freestanding compilers.
7562  # On the NeXT, cc -E runs the code through the compiler's parser,
7563  # not just through cpp. "Syntax error" is here to catch this case.
7564  cat >conftest.$ac_ext <<_ACEOF
7565/* confdefs.h.  */
7566_ACEOF
7567cat confdefs.h >>conftest.$ac_ext
7568cat >>conftest.$ac_ext <<_ACEOF
7569/* end confdefs.h.  */
7570#ifdef __STDC__
7571# include <limits.h>
7572#else
7573# include <assert.h>
7574#endif
7575                     Syntax error
7576_ACEOF
7577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7578  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7579  ac_status=$?
7580  grep -v '^ *+' conftest.er1 >conftest.err
7581  rm -f conftest.er1
7582  cat conftest.err >&5
7583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584  (exit $ac_status); } >/dev/null; then
7585  if test -s conftest.err; then
7586    ac_cpp_err=$ac_c_preproc_warn_flag
7587    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7588  else
7589    ac_cpp_err=
7590  fi
7591else
7592  ac_cpp_err=yes
7593fi
7594if test -z "$ac_cpp_err"; then
7595  :
7596else
7597  echo "$as_me: failed program was:" >&5
7598sed 's/^/| /' conftest.$ac_ext >&5
7599
7600  # Broken: fails on valid input.
7601continue
7602fi
7603rm -f conftest.err conftest.$ac_ext
7604
7605  # OK, works on sane cases.  Now check whether non-existent headers
7606  # can be detected and how.
7607  cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h.  */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h.  */
7613#include <ac_nonexistent.h>
7614_ACEOF
7615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7617  ac_status=$?
7618  grep -v '^ *+' conftest.er1 >conftest.err
7619  rm -f conftest.er1
7620  cat conftest.err >&5
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); } >/dev/null; then
7623  if test -s conftest.err; then
7624    ac_cpp_err=$ac_c_preproc_warn_flag
7625    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7626  else
7627    ac_cpp_err=
7628  fi
7629else
7630  ac_cpp_err=yes
7631fi
7632if test -z "$ac_cpp_err"; then
7633  # Broken: success on invalid input.
7634continue
7635else
7636  echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639  # Passes both tests.
7640ac_preproc_ok=:
7641break
7642fi
7643rm -f conftest.err conftest.$ac_ext
7644
7645done
7646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7647rm -f conftest.err conftest.$ac_ext
7648if $ac_preproc_ok; then
7649  :
7650else
7651  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7652See \`config.log' for more details." >&5
7653echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7654See \`config.log' for more details." >&2;}
7655   { (exit 1); exit 1; }; }
7656fi
7657
7658ac_ext=c
7659ac_cpp='$CPP $CPPFLAGS'
7660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7662ac_compiler_gnu=$ac_cv_c_compiler_gnu
7663
7664
7665echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7666echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7667if test "${ac_cv_header_stdc+set}" = set; then
7668  echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670  cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h.  */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h.  */
7676#include <stdlib.h>
7677#include <stdarg.h>
7678#include <string.h>
7679#include <float.h>
7680
7681#ifdef F77_DUMMY_MAIN
7682
7683#  ifdef __cplusplus
7684     extern "C"
7685#  endif
7686   int F77_DUMMY_MAIN() { return 1; }
7687
7688#endif
7689int
7690main ()
7691{
7692
7693  ;
7694  return 0;
7695}
7696_ACEOF
7697rm -f conftest.$ac_objext
7698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699  (eval $ac_compile) 2>conftest.er1
7700  ac_status=$?
7701  grep -v '^ *+' conftest.er1 >conftest.err
7702  rm -f conftest.er1
7703  cat conftest.err >&5
7704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705  (exit $ac_status); } &&
7706         { ac_try='test -z "$ac_c_werror_flag"
7707                         || test ! -s conftest.err'
7708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709  (eval $ac_try) 2>&5
7710  ac_status=$?
7711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712  (exit $ac_status); }; } &&
7713         { ac_try='test -s conftest.$ac_objext'
7714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715  (eval $ac_try) 2>&5
7716  ac_status=$?
7717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718  (exit $ac_status); }; }; then
7719  ac_cv_header_stdc=yes
7720else
7721  echo "$as_me: failed program was:" >&5
7722sed 's/^/| /' conftest.$ac_ext >&5
7723
7724ac_cv_header_stdc=no
7725fi
7726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727
7728if test $ac_cv_header_stdc = yes; then
7729  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7730  cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h.  */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h.  */
7736#include <string.h>
7737
7738_ACEOF
7739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7740  $EGREP "memchr" >/dev/null 2>&1; then
7741  :
7742else
7743  ac_cv_header_stdc=no
7744fi
7745rm -f conftest*
7746
7747fi
7748
7749if test $ac_cv_header_stdc = yes; then
7750  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7751  cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h.  */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h.  */
7757#include <stdlib.h>
7758
7759_ACEOF
7760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7761  $EGREP "free" >/dev/null 2>&1; then
7762  :
7763else
7764  ac_cv_header_stdc=no
7765fi
7766rm -f conftest*
7767
7768fi
7769
7770if test $ac_cv_header_stdc = yes; then
7771  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7772  if test "$cross_compiling" = yes; then
7773  :
7774else
7775  cat >conftest.$ac_ext <<_ACEOF
7776/* confdefs.h.  */
7777_ACEOF
7778cat confdefs.h >>conftest.$ac_ext
7779cat >>conftest.$ac_ext <<_ACEOF
7780/* end confdefs.h.  */
7781#include <ctype.h>
7782#if ((' ' & 0x0FF) == 0x020)
7783# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7784# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7785#else
7786# define ISLOWER(c) \
7787                   (('a' <= (c) && (c) <= 'i') \
7788                     || ('j' <= (c) && (c) <= 'r') \
7789                     || ('s' <= (c) && (c) <= 'z'))
7790# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7791#endif
7792
7793#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7794int
7795main ()
7796{
7797  int i;
7798  for (i = 0; i < 256; i++)
7799    if (XOR (islower (i), ISLOWER (i))
7800        || toupper (i) != TOUPPER (i))
7801      exit(2);
7802  exit (0);
7803}
7804_ACEOF
7805rm -f conftest$ac_exeext
7806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807  (eval $ac_link) 2>&5
7808  ac_status=$?
7809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812  (eval $ac_try) 2>&5
7813  ac_status=$?
7814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815  (exit $ac_status); }; }; then
7816  :
7817else
7818  echo "$as_me: program exited with status $ac_status" >&5
7819echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
7822( exit $ac_status )
7823ac_cv_header_stdc=no
7824fi
7825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7826fi
7827fi
7828fi
7829echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7830echo "${ECHO_T}$ac_cv_header_stdc" >&6
7831if test $ac_cv_header_stdc = yes; then
7832
7833cat >>confdefs.h <<\_ACEOF
7834#define STDC_HEADERS 1
7835_ACEOF
7836
7837fi
7838
7839# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7850                  inttypes.h stdint.h unistd.h
7851do
7852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7853echo "$as_me:$LINENO: checking for $ac_header" >&5
7854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7855if eval "test \"\${$as_ac_Header+set}\" = set"; then
7856  echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858  cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h.  */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h.  */
7864$ac_includes_default
7865
7866#include <$ac_header>
7867_ACEOF
7868rm -f conftest.$ac_objext
7869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7870  (eval $ac_compile) 2>conftest.er1
7871  ac_status=$?
7872  grep -v '^ *+' conftest.er1 >conftest.err
7873  rm -f conftest.er1
7874  cat conftest.err >&5
7875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876  (exit $ac_status); } &&
7877         { ac_try='test -z "$ac_c_werror_flag"
7878                         || test ! -s conftest.err'
7879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880  (eval $ac_try) 2>&5
7881  ac_status=$?
7882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883  (exit $ac_status); }; } &&
7884         { ac_try='test -s conftest.$ac_objext'
7885  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886  (eval $ac_try) 2>&5
7887  ac_status=$?
7888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889  (exit $ac_status); }; }; then
7890  eval "$as_ac_Header=yes"
7891else
7892  echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895eval "$as_ac_Header=no"
7896fi
7897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7898fi
7899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7901if test `eval echo '${'$as_ac_Header'}'` = yes; then
7902  cat >>confdefs.h <<_ACEOF
7903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7904_ACEOF
7905
7906fi
7907
7908done
7909
7910
7911
7912for ac_header in dlfcn.h
7913do
7914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7915if eval "test \"\${$as_ac_Header+set}\" = set"; then
7916  echo "$as_me:$LINENO: checking for $ac_header" >&5
7917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7918if eval "test \"\${$as_ac_Header+set}\" = set"; then
7919  echo $ECHO_N "(cached) $ECHO_C" >&6
7920fi
7921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7923else
7924  # Is the header compilable?
7925echo "$as_me:$LINENO: checking $ac_header usability" >&5
7926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7927cat >conftest.$ac_ext <<_ACEOF
7928/* confdefs.h.  */
7929_ACEOF
7930cat confdefs.h >>conftest.$ac_ext
7931cat >>conftest.$ac_ext <<_ACEOF
7932/* end confdefs.h.  */
7933$ac_includes_default
7934#include <$ac_header>
7935_ACEOF
7936rm -f conftest.$ac_objext
7937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938  (eval $ac_compile) 2>conftest.er1
7939  ac_status=$?
7940  grep -v '^ *+' conftest.er1 >conftest.err
7941  rm -f conftest.er1
7942  cat conftest.err >&5
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); } &&
7945         { ac_try='test -z "$ac_c_werror_flag"
7946                         || test ! -s conftest.err'
7947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948  (eval $ac_try) 2>&5
7949  ac_status=$?
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); }; } &&
7952         { ac_try='test -s conftest.$ac_objext'
7953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954  (eval $ac_try) 2>&5
7955  ac_status=$?
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); }; }; then
7958  ac_header_compiler=yes
7959else
7960  echo "$as_me: failed program was:" >&5
7961sed 's/^/| /' conftest.$ac_ext >&5
7962
7963ac_header_compiler=no
7964fi
7965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7967echo "${ECHO_T}$ac_header_compiler" >&6
7968
7969# Is the header present?
7970echo "$as_me:$LINENO: checking $ac_header presence" >&5
7971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7972cat >conftest.$ac_ext <<_ACEOF
7973/* confdefs.h.  */
7974_ACEOF
7975cat confdefs.h >>conftest.$ac_ext
7976cat >>conftest.$ac_ext <<_ACEOF
7977/* end confdefs.h.  */
7978#include <$ac_header>
7979_ACEOF
7980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7981  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7982  ac_status=$?
7983  grep -v '^ *+' conftest.er1 >conftest.err
7984  rm -f conftest.er1
7985  cat conftest.err >&5
7986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987  (exit $ac_status); } >/dev/null; then
7988  if test -s conftest.err; then
7989    ac_cpp_err=$ac_c_preproc_warn_flag
7990    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7991  else
7992    ac_cpp_err=
7993  fi
7994else
7995  ac_cpp_err=yes
7996fi
7997if test -z "$ac_cpp_err"; then
7998  ac_header_preproc=yes
7999else
8000  echo "$as_me: failed program was:" >&5
8001sed 's/^/| /' conftest.$ac_ext >&5
8002
8003  ac_header_preproc=no
8004fi
8005rm -f conftest.err conftest.$ac_ext
8006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8007echo "${ECHO_T}$ac_header_preproc" >&6
8008
8009# So?  What about this header?
8010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8011  yes:no: )
8012    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8014    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8016    ac_header_preproc=yes
8017    ;;
8018  no:yes:* )
8019    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8021    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8022echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8023    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8025    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8026echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8029    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8031    (
8032      cat <<\_ASBOX
8033## --------------------------------------------------------------- ##
8034## Report this to http://projects.coin-or.org/BuildTools/newticket ##
8035## --------------------------------------------------------------- ##
8036_ASBOX
8037    ) |
8038      sed "s/^/$as_me: WARNING:     /" >&2
8039    ;;
8040esac
8041echo "$as_me:$LINENO: checking for $ac_header" >&5
8042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8043if eval "test \"\${$as_ac_Header+set}\" = set"; then
8044  echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046  eval "$as_ac_Header=\$ac_header_preproc"
8047fi
8048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8050
8051fi
8052if test `eval echo '${'$as_ac_Header'}'` = yes; then
8053  cat >>confdefs.h <<_ACEOF
8054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8055_ACEOF
8056
8057fi
8058
8059done
8060
8061ac_ext=cc
8062ac_cpp='$CXXCPP $CPPFLAGS'
8063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8066if test -n "$ac_tool_prefix"; then
8067  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8068  do
8069    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8071echo "$as_me:$LINENO: checking for $ac_word" >&5
8072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8073if test "${ac_cv_prog_CXX+set}" = set; then
8074  echo $ECHO_N "(cached) $ECHO_C" >&6
8075else
8076  if test -n "$CXX"; then
8077  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082  IFS=$as_save_IFS
8083  test -z "$as_dir" && as_dir=.
8084  for ac_exec_ext in '' $ac_executable_extensions; do
8085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088    break 2
8089  fi
8090done
8091done
8092
8093fi
8094fi
8095CXX=$ac_cv_prog_CXX
8096if test -n "$CXX"; then
8097  echo "$as_me:$LINENO: result: $CXX" >&5
8098echo "${ECHO_T}$CXX" >&6
8099else
8100  echo "$as_me:$LINENO: result: no" >&5
8101echo "${ECHO_T}no" >&6
8102fi
8103
8104    test -n "$CXX" && break
8105  done
8106fi
8107if test -z "$CXX"; then
8108  ac_ct_CXX=$CXX
8109  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8110do
8111  # Extract the first word of "$ac_prog", so it can be a program name with args.
8112set dummy $ac_prog; ac_word=$2
8113echo "$as_me:$LINENO: checking for $ac_word" >&5
8114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8115if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8116  echo $ECHO_N "(cached) $ECHO_C" >&6
8117else
8118  if test -n "$ac_ct_CXX"; then
8119  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124  IFS=$as_save_IFS
8125  test -z "$as_dir" && as_dir=.
8126  for ac_exec_ext in '' $ac_executable_extensions; do
8127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128    ac_cv_prog_ac_ct_CXX="$ac_prog"
8129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8130    break 2
8131  fi
8132done
8133done
8134
8135fi
8136fi
8137ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8138if test -n "$ac_ct_CXX"; then
8139  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8140echo "${ECHO_T}$ac_ct_CXX" >&6
8141else
8142  echo "$as_me:$LINENO: result: no" >&5
8143echo "${ECHO_T}no" >&6
8144fi
8145
8146  test -n "$ac_ct_CXX" && break
8147done
8148test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8149
8150  CXX=$ac_ct_CXX
8151fi
8152
8153
8154# Provide some information about the compiler.
8155echo "$as_me:$LINENO:" \
8156     "checking for C++ compiler version" >&5
8157ac_compiler=`set X $ac_compile; echo $2`
8158{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8159  (eval $ac_compiler --version </dev/null >&5) 2>&5
8160  ac_status=$?
8161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162  (exit $ac_status); }
8163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8164  (eval $ac_compiler -v </dev/null >&5) 2>&5
8165  ac_status=$?
8166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167  (exit $ac_status); }
8168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8169  (eval $ac_compiler -V </dev/null >&5) 2>&5
8170  ac_status=$?
8171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172  (exit $ac_status); }
8173
8174echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8175echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8176if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8177  echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179  cat >conftest.$ac_ext <<_ACEOF
8180/* confdefs.h.  */
8181_ACEOF
8182cat confdefs.h >>conftest.$ac_ext
8183cat >>conftest.$ac_ext <<_ACEOF
8184/* end confdefs.h.  */
8185
8186#ifdef F77_DUMMY_MAIN
8187
8188#  ifdef __cplusplus
8189     extern "C"
8190#  endif
8191   int F77_DUMMY_MAIN() { return 1; }
8192
8193#endif
8194int
8195main ()
8196{
8197#ifndef __GNUC__
8198       choke me
8199#endif
8200
8201  ;
8202  return 0;
8203}
8204_ACEOF
8205rm -f conftest.$ac_objext
8206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207  (eval $ac_compile) 2>conftest.er1
8208  ac_status=$?
8209  grep -v '^ *+' conftest.er1 >conftest.err
8210  rm -f conftest.er1
8211  cat conftest.err >&5
8212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213  (exit $ac_status); } &&
8214         { ac_try='test -z "$ac_cxx_werror_flag"
8215                         || test ! -s conftest.err'
8216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217  (eval $ac_try) 2>&5
8218  ac_status=$?
8219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220  (exit $ac_status); }; } &&
8221         { ac_try='test -s conftest.$ac_objext'
8222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223  (eval $ac_try) 2>&5
8224  ac_status=$?
8225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226  (exit $ac_status); }; }; then
8227  ac_compiler_gnu=yes
8228else
8229  echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232ac_compiler_gnu=no
8233fi
8234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8235ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8236
8237fi
8238echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8239echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8240GXX=`test $ac_compiler_gnu = yes && echo yes`
8241ac_test_CXXFLAGS=${CXXFLAGS+set}
8242ac_save_CXXFLAGS=$CXXFLAGS
8243CXXFLAGS="-g"
8244echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8245echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8246if test "${ac_cv_prog_cxx_g+set}" = set; then
8247  echo $ECHO_N "(cached) $ECHO_C" >&6
8248else
8249  cat >conftest.$ac_ext <<_ACEOF
8250/* confdefs.h.  */
8251_ACEOF
8252cat confdefs.h >>conftest.$ac_ext
8253cat >>conftest.$ac_ext <<_ACEOF
8254/* end confdefs.h.  */
8255
8256#ifdef F77_DUMMY_MAIN
8257
8258#  ifdef __cplusplus
8259     extern "C"
8260#  endif
8261   int F77_DUMMY_MAIN() { return 1; }
8262
8263#endif
8264int
8265main ()
8266{
8267
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext
8273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8274  (eval $ac_compile) 2>conftest.er1
8275  ac_status=$?
8276  grep -v '^ *+' conftest.er1 >conftest.err
8277  rm -f conftest.er1
8278  cat conftest.err >&5
8279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280  (exit $ac_status); } &&
8281         { ac_try='test -z "$ac_cxx_werror_flag"
8282                         || test ! -s conftest.err'
8283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284  (eval $ac_try) 2>&5
8285  ac_status=$?
8286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287  (exit $ac_status); }; } &&
8288         { ac_try='test -s conftest.$ac_objext'
8289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290  (eval $ac_try) 2>&5
8291  ac_status=$?
8292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293  (exit $ac_status); }; }; then
8294  ac_cv_prog_cxx_g=yes
8295else
8296  echo "$as_me: failed program was:" >&5
8297sed 's/^/| /' conftest.$ac_ext >&5
8298
8299ac_cv_prog_cxx_g=no
8300fi
8301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8302fi
8303echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8304echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8305if test "$ac_test_CXXFLAGS" = set; then
8306  CXXFLAGS=$ac_save_CXXFLAGS
8307elif test $ac_cv_prog_cxx_g = yes; then
8308  if test "$GXX" = yes; then
8309    CXXFLAGS="-g -O2"
8310  else
8311    CXXFLAGS="-g"
8312  fi
8313else
8314  if test "$GXX" = yes; then
8315    CXXFLAGS="-O2"
8316  else
8317    CXXFLAGS=
8318  fi
8319fi
8320for ac_declaration in \
8321   '' \
8322   'extern "C" void std::exit (int) throw (); using std::exit;' \
8323   'extern "C" void std::exit (int); using std::exit;' \
8324   'extern "C" void exit (int) throw ();' \
8325   'extern "C" void exit (int);' \
8326   'void exit (int);'
8327do
8328  cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h.  */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h.  */
8334$ac_declaration
8335#include <stdlib.h>
8336#ifdef F77_DUMMY_MAIN
8337
8338#  ifdef __cplusplus
8339     extern "C"
8340#  endif
8341   int F77_DUMMY_MAIN() { return 1; }
8342
8343#endif
8344int
8345main ()
8346{
8347exit (42);
8348  ;
8349  return 0;
8350}
8351_ACEOF
8352rm -f conftest.$ac_objext
8353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8354  (eval $ac_compile) 2>conftest.er1
8355  ac_status=$?
8356  grep -v '^ *+' conftest.er1 >conftest.err
8357  rm -f conftest.er1
8358  cat conftest.err >&5
8359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360  (exit $ac_status); } &&
8361         { ac_try='test -z "$ac_cxx_werror_flag"
8362                         || test ! -s conftest.err'
8363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364  (eval $ac_try) 2>&5
8365  ac_status=$?
8366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367  (exit $ac_status); }; } &&
8368         { ac_try='test -s conftest.$ac_objext'
8369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370  (eval $ac_try) 2>&5
8371  ac_status=$?
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); }; }; then
8374  :
8375else
8376  echo "$as_me: failed program was:" >&5
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
8379continue
8380fi
8381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8382  cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h.  */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h.  */
8388$ac_declaration
8389#ifdef F77_DUMMY_MAIN
8390
8391#  ifdef __cplusplus
8392     extern "C"
8393#  endif
8394   int F77_DUMMY_MAIN() { return 1; }
8395
8396#endif
8397int
8398main ()
8399{
8400exit (42);
8401  ;
8402  return 0;
8403}
8404_ACEOF
8405rm -f conftest.$ac_objext
8406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407  (eval $ac_compile) 2>conftest.er1
8408  ac_status=$?
8409  grep -v '^ *+' conftest.er1 >conftest.err
8410  rm -f conftest.er1
8411  cat conftest.err >&5
8412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413  (exit $ac_status); } &&
8414         { ac_try='test -z "$ac_cxx_werror_flag"
8415                         || test ! -s conftest.err'
8416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417  (eval $ac_try) 2>&5
8418  ac_status=$?
8419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420  (exit $ac_status); }; } &&
8421         { ac_try='test -s conftest.$ac_objext'
8422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423  (eval $ac_try) 2>&5
8424  ac_status=$?
8425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426  (exit $ac_status); }; }; then
8427  break
8428else
8429  echo "$as_me: failed program was:" >&5
8430sed 's/^/| /' conftest.$ac_ext >&5
8431
8432fi
8433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434done
8435rm -f conftest*
8436if test -n "$ac_declaration"; then
8437  echo '#ifdef __cplusplus' >>confdefs.h
8438  echo $ac_declaration      >>confdefs.h
8439  echo '#endif'             >>confdefs.h
8440fi
8441
8442ac_ext=cc
8443ac_cpp='$CXXCPP $CPPFLAGS'
8444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8447
8448depcc="$CXX"  am_compiler_list=
8449
8450echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8451echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8452if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8453  echo $ECHO_N "(cached) $ECHO_C" >&6
8454else
8455  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8456  # We make a subdir and do the tests there.  Otherwise we can end up
8457  # making bogus files that we don't know about and never remove.  For
8458  # instance it was reported that on HP-UX the gcc test will end up
8459  # making a dummy file named `D' -- because `-MD' means `put the output
8460  # in D'.
8461  mkdir conftest.dir
8462  # Copy depcomp to subdir because otherwise we won't find it if we're
8463  # using a relative directory.
8464  cp "$am_depcomp" conftest.dir
8465  cd conftest.dir
8466  # We will build objects and dependencies in a subdirectory because
8467  # it helps to detect inapplicable dependency modes.  For instance
8468  # both Tru64's cc and ICC support -MD to output dependencies as a
8469  # side effect of compilation, but ICC will put the dependencies in
8470  # the current directory while Tru64 will put them in the object
8471  # directory.
8472  mkdir sub
8473
8474  am_cv_CXX_dependencies_compiler_type=none
8475  if test "$am_compiler_list" = ""; then
8476     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8477  fi
8478  for depmode in $am_compiler_list; do
8479    # Setup a source with many dependencies, because some compilers
8480    # like to wrap large dependency lists on column 80 (with \), and
8481    # we should not choose a depcomp mode which is confused by this.
8482    #
8483    # We need to recreate these files for each test, as the compiler may
8484    # overwrite some of them when testing with obscure command lines.
8485    # This happens at least with the AIX C compiler.
8486    : > sub/conftest.c
8487    for i in 1 2 3 4 5 6; do
8488      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8489      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8490      # Solaris 8's {/usr,}/bin/sh.
8491      touch sub/conftst$i.h
8492    done
8493    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8494
8495    case $depmode in
8496    nosideeffect)
8497      # after this tag, mechanisms are not by side-effect, so they'll
8498      # only be used when explicitly requested
8499      if test "x$enable_dependency_tracking" = xyes; then
8500        continue
8501      else
8502        break
8503      fi
8504      ;;
8505    none) break ;;
8506    esac
8507    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8508    # mode.  It turns out that the SunPro C++ compiler does not properly
8509    # handle `-M -o', and we need to detect this.
8510    if depmode=$depmode \
8511       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8512       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8513       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8514         >/dev/null 2>conftest.err &&
8515       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8516       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8517       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8518      # icc doesn't choke on unknown options, it will just issue warnings
8519      # or remarks (even with -Werror).  So we grep stderr for any message
8520      # that says an option was ignored or not supported.
8521      # When given -MP, icc 7.0 and 7.1 complain thusly:
8522      #   icc: Command line warning: ignoring option '-M'; no argument required
8523      # The diagnosis changed in icc 8.0:
8524      #   icc: Command line remark: option '-MP' not supported
8525      if (grep 'ignoring option' conftest.err ||
8526          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8527        am_cv_CXX_dependencies_compiler_type=$depmode
8528        break
8529      fi
8530    fi
8531  done
8532
8533  cd ..
8534  rm -rf conftest.dir
8535else
8536  am_cv_CXX_dependencies_compiler_type=none
8537fi
8538
8539fi
8540echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8541echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8542CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8543
8544
8545
8546if
8547  test "x$enable_dependency_tracking" != xno \
8548  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8549  am__fastdepCXX_TRUE=
8550  am__fastdepCXX_FALSE='#'
8551else
8552  am__fastdepCXX_TRUE='#'
8553  am__fastdepCXX_FALSE=
8554fi
8555
8556
8557depcc="$CXX"  am_compiler_list=
8558
8559echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8560echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
8561if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8562  echo $ECHO_N "(cached) $ECHO_C" >&6
8563else
8564  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8565  # We make a subdir and do the tests there.  Otherwise we can end up
8566  # making bogus files that we don't know about and never remove.  For
8567  # instance it was reported that on HP-UX the gcc test will end up
8568  # making a dummy file named `D' -- because `-MD' means `put the output
8569  # in D'.
8570  mkdir conftest.dir
8571  # Copy depcomp to subdir because otherwise we won't find it if we're
8572  # using a relative directory.
8573  cp "$am_depcomp" conftest.dir
8574  cd conftest.dir
8575  # We will build objects and dependencies in a subdirectory because
8576  # it helps to detect inapplicable dependency modes.  For instance
8577  # both Tru64's cc and ICC support -MD to output dependencies as a
8578  # side effect of compilation, but ICC will put the dependencies in
8579  # the current directory while Tru64 will put them in the object
8580  # directory.
8581  mkdir sub
8582
8583  am_cv_CXX_dependencies_compiler_type=none
8584  if test "$am_compiler_list" = ""; then
8585     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8586  fi
8587  for depmode in $am_compiler_list; do
8588    # Setup a source with many dependencies, because some compilers
8589    # like to wrap large dependency lists on column 80 (with \), and
8590    # we should not choose a depcomp mode which is confused by this.
8591    #
8592    # We need to recreate these files for each test, as the compiler may
8593    # overwrite some of them when testing with obscure command lines.
8594    # This happens at least with the AIX C compiler.
8595    : > sub/conftest.c
8596    for i in 1 2 3 4 5 6; do
8597      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8598      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8599      # Solaris 8's {/usr,}/bin/sh.
8600      touch sub/conftst$i.h
8601    done
8602    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8603
8604    case $depmode in
8605    nosideeffect)
8606      # after this tag, mechanisms are not by side-effect, so they'll
8607      # only be used when explicitly requested
8608      if test "x$enable_dependency_tracking" = xyes; then
8609        continue
8610      else
8611        break
8612      fi
8613      ;;
8614    none) break ;;
8615    esac
8616    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8617    # mode.  It turns out that the SunPro C++ compiler does not properly
8618    # handle `-M -o', and we need to detect this.
8619    if depmode=$depmode \
8620       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8621       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8622       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8623         >/dev/null 2>conftest.err &&
8624       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8625       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8626       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8627      # icc doesn't choke on unknown options, it will just issue warnings
8628      # or remarks (even with -Werror).  So we grep stderr for any message
8629      # that says an option was ignored or not supported.
8630      # When given -MP, icc 7.0 and 7.1 complain thusly:
8631      #   icc: Command line warning: ignoring option '-M'; no argument required
8632      # The diagnosis changed in icc 8.0:
8633      #   icc: Command line remark: option '-MP' not supported
8634      if (grep 'ignoring option' conftest.err ||
8635          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8636        am_cv_CXX_dependencies_compiler_type=$depmode
8637        break
8638      fi
8639    fi
8640  done
8641
8642  cd ..
8643  rm -rf conftest.dir
8644else
8645  am_cv_CXX_dependencies_compiler_type=none
8646fi
8647
8648fi
8649echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8650echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
8651CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8652
8653
8654
8655if
8656  test "x$enable_dependency_tracking" != xno \
8657  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8658  am__fastdepCXX_TRUE=
8659  am__fastdepCXX_FALSE='#'
8660else
8661  am__fastdepCXX_TRUE='#'
8662  am__fastdepCXX_FALSE=
8663fi
8664
8665
8666
8667
8668if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8669    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8670    (test "X$CXX" != "Xg++"))) ; then
8671  ac_ext=cc
8672ac_cpp='$CXXCPP $CPPFLAGS'
8673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8676echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8677echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8678if test -z "$CXXCPP"; then
8679  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8680  echo $ECHO_N "(cached) $ECHO_C" >&6
8681else
8682      # Double quotes because CXXCPP needs to be expanded
8683    for CXXCPP in "$CXX -E" "/lib/cpp"
8684    do
8685      ac_preproc_ok=false
8686for ac_cxx_preproc_warn_flag in '' yes
8687do
8688  # Use a header file that comes with gcc, so configuring glibc
8689  # with a fresh cross-compiler works.
8690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8691  # <limits.h> exists even on freestanding compilers.
8692  # On the NeXT, cc -E runs the code through the compiler's parser,
8693  # not just through cpp. "Syntax error" is here to catch this case.
8694  cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h.  */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h.  */
8700#ifdef __STDC__
8701# include <limits.h>
8702#else
8703# include <assert.h>
8704#endif
8705                     Syntax error
8706_ACEOF
8707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8709  ac_status=$?
8710  grep -v '^ *+' conftest.er1 >conftest.err
8711  rm -f conftest.er1
8712  cat conftest.err >&5
8713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714  (exit $ac_status); } >/dev/null; then
8715  if test -s conftest.err; then
8716    ac_cpp_err=$ac_cxx_preproc_warn_flag
8717    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8718  else
8719    ac_cpp_err=
8720  fi
8721else
8722  ac_cpp_err=yes
8723fi
8724if test -z "$ac_cpp_err"; then
8725  :
8726else
8727  echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730  # Broken: fails on valid input.
8731continue
8732fi
8733rm -f conftest.err conftest.$ac_ext
8734
8735  # OK, works on sane cases.  Now check whether non-existent headers
8736  # can be detected and how.
8737  cat >conftest.$ac_ext <<_ACEOF
8738/* confdefs.h.  */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h.  */
8743#include <ac_nonexistent.h>
8744_ACEOF
8745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8746  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8747  ac_status=$?
8748  grep -v '^ *+' conftest.er1 >conftest.err
8749  rm -f conftest.er1
8750  cat conftest.err >&5
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); } >/dev/null; then
8753  if test -s conftest.err; then
8754    ac_cpp_err=$ac_cxx_preproc_warn_flag
8755    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8756  else
8757    ac_cpp_err=
8758  fi
8759else
8760  ac_cpp_err=yes
8761fi
8762if test -z "$ac_cpp_err"; then
8763  # Broken: success on invalid input.
8764continue
8765else
8766  echo "$as_me: failed program was:" >&5
8767sed 's/^/| /' conftest.$ac_ext >&5
8768
8769  # Passes both tests.
8770ac_preproc_ok=:
8771break
8772fi
8773rm -f conftest.err conftest.$ac_ext
8774
8775done
8776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8777rm -f conftest.err conftest.$ac_ext
8778if $ac_preproc_ok; then
8779  break
8780fi
8781
8782    done
8783    ac_cv_prog_CXXCPP=$CXXCPP
8784
8785fi
8786  CXXCPP=$ac_cv_prog_CXXCPP
8787else
8788  ac_cv_prog_CXXCPP=$CXXCPP
8789fi
8790echo "$as_me:$LINENO: result: $CXXCPP" >&5
8791echo "${ECHO_T}$CXXCPP" >&6
8792ac_preproc_ok=false
8793for ac_cxx_preproc_warn_flag in '' yes
8794do
8795  # Use a header file that comes with gcc, so configuring glibc
8796  # with a fresh cross-compiler works.
8797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798  # <limits.h> exists even on freestanding compilers.
8799  # On the NeXT, cc -E runs the code through the compiler's parser,
8800  # not just through cpp. "Syntax error" is here to catch this case.
8801  cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h.  */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h.  */
8807#ifdef __STDC__
8808# include <limits.h>
8809#else
8810# include <assert.h>
8811#endif
8812                     Syntax error
8813_ACEOF
8814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8815  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8816  ac_status=$?
8817  grep -v '^ *+' conftest.er1 >conftest.err
8818  rm -f conftest.er1
8819  cat conftest.err >&5
8820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821  (exit $ac_status); } >/dev/null; then
8822  if test -s conftest.err; then
8823    ac_cpp_err=$ac_cxx_preproc_warn_flag
8824    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8825  else
8826    ac_cpp_err=
8827  fi
8828else
8829  ac_cpp_err=yes
8830fi
8831if test -z "$ac_cpp_err"; then
8832  :
8833else
8834  echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
8837  # Broken: fails on valid input.
8838continue
8839fi
8840rm -f conftest.err conftest.$ac_ext
8841
8842  # OK, works on sane cases.  Now check whether non-existent headers
8843  # can be detected and how.
8844  cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h.  */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h.  */
8850#include <ac_nonexistent.h>
8851_ACEOF
8852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8853  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8854  ac_status=$?
8855  grep -v '^ *+' conftest.er1 >conftest.err
8856  rm -f conftest.er1
8857  cat conftest.err >&5
8858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859  (exit $ac_status); } >/dev/null; then
8860  if test -s conftest.err; then
8861    ac_cpp_err=$ac_cxx_preproc_warn_flag
8862    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8863  else
8864    ac_cpp_err=
8865  fi
8866else
8867  ac_cpp_err=yes
8868fi
8869if test -z "$ac_cpp_err"; then
8870  # Broken: success on invalid input.
8871continue
8872else
8873  echo "$as_me: failed program was:" >&5
8874sed 's/^/| /' conftest.$ac_ext >&5
8875
8876  # Passes both tests.
8877ac_preproc_ok=:
8878break
8879fi
8880rm -f conftest.err conftest.$ac_ext
8881
8882done
8883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8884rm -f conftest.err conftest.$ac_ext
8885if $ac_preproc_ok; then
8886  :
8887else
8888  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8889See \`config.log' for more details." >&5
8890echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8891See \`config.log' for more details." >&2;}
8892   { (exit 1); exit 1; }; }
8893fi
8894
8895ac_ext=cc
8896ac_cpp='$CXXCPP $CPPFLAGS'
8897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8900
8901fi
8902
8903
8904
8905# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8906
8907# find the maximum length of command line arguments
8908echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8909echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8910if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8911  echo $ECHO_N "(cached) $ECHO_C" >&6
8912else
8913    i=0
8914  teststring="ABCD"
8915
8916  case $build_os in
8917  msdosdjgpp*)
8918    # On DJGPP, this test can blow up pretty badly due to problems in libc
8919    # (any single argument exceeding 2000 bytes causes a buffer overrun
8920    # during glob expansion).  Even if it were fixed, the result of this
8921    # check would be larger than it should be.
8922    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8923    ;;
8924
8925  gnu*)
8926    # Under GNU Hurd, this test is not required because there is
8927    # no limit to the length of command line arguments.
8928    # Libtool will interpret -1 as no limit whatsoever
8929    lt_cv_sys_max_cmd_len=-1;
8930    ;;
8931
8932  cygwin* | mingw*)
8933    # On Win9x/ME, this test blows up -- it succeeds, but takes
8934    # about 5 minutes as the teststring grows exponentially.
8935    # Worse, since 9x/ME are not pre-emptively multitasking,
8936    # you end up with a "frozen" computer, even though with patience
8937    # the test eventually succeeds (with a max line length of 256k).
8938    # Instead, let's just punt: use the minimum linelength reported by
8939    # all of the supported platforms: 8192 (on NT/2K/XP).
8940    lt_cv_sys_max_cmd_len=8192;
8941    ;;
8942
8943  amigaos*)
8944    # On AmigaOS with pdksh, this test takes hours, literally.
8945    # So we just punt and use a minimum line length of 8192.
8946    lt_cv_sys_max_cmd_len=8192;
8947    ;;
8948
8949  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8950    # This has been around since 386BSD, at least.  Likely further.
8951    if test -x /sbin/sysctl; then
8952      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8953    elif test -x /usr/sbin/sysctl; then
8954      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8955    else
8956      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8957    fi
8958    # And add a safety zone
8959    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8960    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8961    ;;
8962
8963  interix*)
8964    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8965    lt_cv_sys_max_cmd_len=196608
8966    ;;
8967
8968  osf*)
8969    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8970    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8971    # nice to cause kernel panics so lets avoid the loop below.
8972    # First set a reasonable default.
8973    lt_cv_sys_max_cmd_len=16384
8974    #
8975    if test -x /sbin/sysconfig; then
8976      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8977        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8978      esac
8979    fi
8980    ;;
8981  sco3.2v5*)
8982    lt_cv_sys_max_cmd_len=102400
8983    ;;
8984  sysv5* | sco5v6* | sysv4.2uw2*)
8985    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8986    if test -n "$kargmax"; then
8987      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8988    else
8989      lt_cv_sys_max_cmd_len=32768
8990    fi
8991    ;;
8992  *)
8993    # If test is not a shell built-in, we'll probably end up computing a
8994    # maximum length that is only half of the actual maximum length, but
8995    # we can't tell.
8996    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8997    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8998               = "XX$teststring") >/dev/null 2>&1 &&
8999            new_result=`expr "X$teststring" : ".*" 2>&1` &&
9000            lt_cv_sys_max_cmd_len=$new_result &&
9001            test $i != 17 # 1/2 MB should be enough
9002    do
9003      i=`expr $i + 1`
9004      teststring=$teststring$teststring
9005    done
9006    teststring=
9007    # Add a significant safety factor because C++ compilers can tack on massive
9008    # amounts of additional arguments before passing them to the linker.
9009    # It appears as though 1/2 is a usable value.
9010    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9011    ;;
9012  esac
9013
9014fi
9015
9016if test -n $lt_cv_sys_max_cmd_len ; then
9017  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9018echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
9019else
9020  echo "$as_me:$LINENO: result: none" >&5
9021echo "${ECHO_T}none" >&6
9022fi
9023
9024
9025
9026
9027# Check for command to grab the raw symbol name followed by C symbol from nm.
9028echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9029echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
9030if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9031  echo $ECHO_N "(cached) $ECHO_C" >&6
9032else
9033
9034# These are sane defaults that work on at least a few old systems.
9035# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9036
9037# Character class describing NM global symbol codes.
9038symcode='[BCDEGRST]'
9039
9040# Regexp to match symbols that can be accessed directly from C.
9041sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9042
9043# Transform an extracted symbol line into a proper C declaration
9044lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9045
9046# Transform an extracted symbol line into symbol name and symbol address
9047lt_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'"
9048
9049# Define system-specific variables.
9050case $host_os in
9051aix*)
9052  symcode='[BCDT]'
9053  ;;
9054cygwin* | mingw* | pw32*)
9055  symcode='[ABCDGISTW]'
9056  ;;
9057hpux*) # Its linker distinguishes data from code symbols
9058  if test "$host_cpu" = ia64; then
9059    symcode='[ABCDEGRST]'
9060  fi
9061  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9062  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'"
9063  ;;
9064linux*)
9065  if test "$host_cpu" = ia64; then
9066    symcode='[ABCDGIRSTW]'
9067    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9068    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'"
9069  fi
9070  ;;
9071irix* | nonstopux*)
9072  symcode='[BCDEGRST]'
9073  ;;
9074osf*)
9075  symcode='[BCDEGQRST]'
9076  ;;
9077solaris*)
9078  symcode='[BDRT]'
9079  ;;
9080sco3.2v5*)
9081  symcode='[DT]'
9082  ;;
9083sysv4.2uw2*)
9084  symcode='[DT]'
9085  ;;
9086sysv5* | sco5v6* | unixware* | OpenUNIX*)
9087  symcode='[ABDT]'
9088  ;;
9089sysv4)
9090  symcode='[DFNSTU]'
9091  ;;
9092esac
9093
9094# Handle CRLF in mingw tool chain
9095opt_cr=
9096case $build_os in
9097mingw*)
9098  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9099  ;;
9100esac
9101
9102# If we're using GNU nm, then use its standard symbol codes.
9103case `$NM -V 2>&1` in
9104*GNU* | *'with BFD'*)
9105  symcode='[ABCDGIRSTW]' ;;
9106esac
9107
9108# Try without a prefix undercore, then with it.
9109for ac_symprfx in "" "_"; do
9110
9111  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9112  symxfrm="\\1 $ac_symprfx\\2 \\2"
9113
9114  # Write the raw and C identifiers.
9115  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9116
9117  # Check to see that the pipe works correctly.
9118  pipe_works=no
9119
9120  rm -f conftest*
9121  cat > conftest.$ac_ext <<EOF
9122#ifdef __cplusplus
9123extern "C" {
9124#endif
9125char nm_test_var;
9126void nm_test_func(){}
9127#ifdef __cplusplus
9128}
9129#endif
9130int main(){nm_test_var='a';nm_test_func();return(0);}
9131EOF
9132
9133  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9134  (eval $ac_compile) 2>&5
9135  ac_status=$?
9136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137  (exit $ac_status); }; then
9138    # Now try to grab the symbols.
9139    nlist=conftest.nm
9140    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9141  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9142  ac_status=$?
9143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144  (exit $ac_status); } && test -s "$nlist"; then
9145      # Try sorting and uniquifying the output.
9146      if sort "$nlist" | uniq > "$nlist"T; then
9147        mv -f "$nlist"T "$nlist"
9148      else
9149        rm -f "$nlist"T
9150      fi
9151
9152      # Make sure that we snagged all the symbols we need.
9153      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9154        if grep ' nm_test_func$' "$nlist" >/dev/null; then
9155          cat <<EOF > conftest.$ac_ext
9156#ifdef __cplusplus
9157extern "C" {
9158#endif
9159
9160EOF
9161          # Now generate the symbol file.
9162          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9163
9164          cat <<EOF >> conftest.$ac_ext
9165#if defined (__STDC__) && __STDC__
9166# define lt_ptr_t void *
9167#else
9168# define lt_ptr_t char *
9169# define const
9170#endif
9171
9172/* The mapping between symbol names and symbols. */
9173const struct {
9174  const char *name;
9175  lt_ptr_t address;
9176}
9177lt_preloaded_symbols[] =
9178{
9179EOF
9180          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9181          cat <<\EOF >> conftest.$ac_ext
9182  {0, (lt_ptr_t) 0}
9183};
9184
9185#ifdef __cplusplus
9186}
9187#endif
9188EOF
9189          # Now try linking the two files.
9190          mv conftest.$ac_objext conftstm.$ac_objext
9191          lt_save_LIBS="$LIBS"
9192          lt_save_CFLAGS="$CFLAGS"
9193          LIBS="conftstm.$ac_objext"
9194          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9195          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196  (eval $ac_link) 2>&5
9197  ac_status=$?
9198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9200            pipe_works=yes
9201          fi
9202          LIBS="$lt_save_LIBS"
9203          CFLAGS="$lt_save_CFLAGS"
9204        else
9205          echo "cannot find nm_test_func in $nlist" >&5
9206        fi
9207      else
9208        echo "cannot find nm_test_var in $nlist" >&5
9209      fi
9210    else
9211      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9212    fi
9213  else
9214    echo "$progname: failed program was:" >&5
9215    cat conftest.$ac_ext >&5
9216  fi
9217  rm -f conftest* conftst*
9218
9219  # Do not use the global_symbol_pipe unless it works.
9220  if test "$pipe_works" = yes; then
9221    break
9222  else
9223    lt_cv_sys_global_symbol_pipe=
9224  fi
9225done
9226
9227fi
9228
9229if test -z "$lt_cv_sys_global_symbol_pipe"; then
9230  lt_cv_sys_global_symbol_to_cdecl=
9231fi
9232if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9233  echo "$as_me:$LINENO: result: failed" >&5
9234echo "${ECHO_T}failed" >&6
9235else
9236  echo "$as_me:$LINENO: result: ok" >&5
9237echo "${ECHO_T}ok" >&6
9238fi
9239
9240echo "$as_me:$LINENO: checking for objdir" >&5
9241echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9242if test "${lt_cv_objdir+set}" = set; then
9243  echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245  rm -f .libs 2>/dev/null
9246mkdir .libs 2>/dev/null
9247if test -d .libs; then
9248  lt_cv_objdir=.libs
9249else
9250  # MS-DOS does not allow filenames that begin with a dot.
9251  lt_cv_objdir=_libs
9252fi
9253rmdir .libs 2>/dev/null
9254fi
9255echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9256echo "${ECHO_T}$lt_cv_objdir" >&6
9257objdir=$lt_cv_objdir
9258
9259
9260
9261
9262
9263case $host_os in
9264aix3*)
9265  # AIX sometimes has problems with the GCC collect2 program.  For some
9266  # reason, if we set the COLLECT_NAMES environment variable, the problems
9267  # vanish in a puff of smoke.
9268  if test "X${COLLECT_NAMES+set}" != Xset; then
9269    COLLECT_NAMES=
9270    export COLLECT_NAMES
9271  fi
9272  ;;
9273esac
9274
9275# Sed substitution that helps us do robust quoting.  It backslashifies
9276# metacharacters that are still active within double-quoted strings.
9277Xsed='sed -e 1s/^X//'
9278sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9279
9280# Same as above, but do not quote variable references.
9281double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9282
9283# Sed substitution to delay expansion of an escaped shell variable in a
9284# double_quote_subst'ed string.
9285delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9286
9287# Sed substitution to avoid accidental globbing in evaled expressions
9288no_glob_subst='s/\*/\\\*/g'
9289
9290# Constants:
9291rm="rm -f"
9292
9293# Global variables:
9294default_ofile=libtool
9295can_build_shared=yes
9296
9297# All known linkers require a `.a' archive for static linking (except MSVC,
9298# which needs '.lib').
9299libext=a
9300ltmain="$ac_aux_dir/ltmain.sh"
9301ofile="$default_ofile"
9302with_gnu_ld="$lt_cv_prog_gnu_ld"
9303
9304if test -n "$ac_tool_prefix"; then
9305  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9306set dummy ${ac_tool_prefix}ar; ac_word=$2
9307echo "$as_me:$LINENO: checking for $ac_word" >&5
9308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9309if test "${ac_cv_prog_AR+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  if test -n "$AR"; then
9313  ac_cv_prog_AR="$AR" # Let the user override the test.
9314else
9315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316for as_dir in $PATH
9317do
9318  IFS=$as_save_IFS
9319  test -z "$as_dir" && as_dir=.
9320  for ac_exec_ext in '' $ac_executable_extensions; do
9321  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9322    ac_cv_prog_AR="${ac_tool_prefix}ar"
9323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9324    break 2
9325  fi
9326done
9327done
9328
9329fi
9330fi
9331AR=$ac_cv_prog_AR
9332if test -n "$AR"; then
9333  echo "$as_me:$LINENO: result: $AR" >&5
9334echo "${ECHO_T}$AR" >&6
9335else
9336  echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
9338fi
9339
9340fi
9341if test -z "$ac_cv_prog_AR"; then
9342  ac_ct_AR=$AR
9343  # Extract the first word of "ar", so it can be a program name with args.
9344set dummy ar; ac_word=$2
9345echo "$as_me:$LINENO: checking for $ac_word" >&5
9346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9348  echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350  if test -n "$ac_ct_AR"; then
9351  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9352else
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356  IFS=$as_save_IFS
9357  test -z "$as_dir" && as_dir=.
9358  for ac_exec_ext in '' $ac_executable_extensions; do
9359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9360    ac_cv_prog_ac_ct_AR="ar"
9361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9362    break 2
9363  fi
9364done
9365done
9366
9367  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
9368fi
9369fi
9370ac_ct_AR=$ac_cv_prog_ac_ct_AR
9371if test -n "$ac_ct_AR"; then
9372  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9373echo "${ECHO_T}$ac_ct_AR" >&6
9374else
9375  echo "$as_me:$LINENO: result: no" >&5
9376echo "${ECHO_T}no" >&6
9377fi
9378
9379  AR=$ac_ct_AR
9380else
9381  AR="$ac_cv_prog_AR"
9382fi
9383
9384if test -n "$ac_tool_prefix"; then
9385  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9386set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9387echo "$as_me:$LINENO: checking for $ac_word" >&5
9388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9389if test "${ac_cv_prog_RANLIB+set}" = set; then
9390  echo $ECHO_N "(cached) $ECHO_C" >&6
9391else
9392  if test -n "$RANLIB"; then
9393  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9394else
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398  IFS=$as_save_IFS
9399  test -z "$as_dir" && as_dir=.
9400  for ac_exec_ext in '' $ac_executable_extensions; do
9401  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9402    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9404    break 2
9405  fi
9406done
9407done
9408
9409fi
9410fi
9411RANLIB=$ac_cv_prog_RANLIB
9412if test -n "$RANLIB"; then
9413  echo "$as_me:$LINENO: result: $RANLIB" >&5
9414echo "${ECHO_T}$RANLIB" >&6
9415else
9416  echo "$as_me:$LINENO: result: no" >&5
9417echo "${ECHO_T}no" >&6
9418fi
9419
9420fi
9421if test -z "$ac_cv_prog_RANLIB"; then
9422  ac_ct_RANLIB=$RANLIB
9423  # Extract the first word of "ranlib", so it can be a program name with args.
9424set dummy ranlib; ac_word=$2
9425echo "$as_me:$LINENO: checking for $ac_word" >&5
9426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9427if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9428  echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430  if test -n "$ac_ct_RANLIB"; then
9431  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9432else
9433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9434for as_dir in $PATH
9435do
9436  IFS=$as_save_IFS
9437  test -z "$as_dir" && as_dir=.
9438  for ac_exec_ext in '' $ac_executable_extensions; do
9439  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9440    ac_cv_prog_ac_ct_RANLIB="ranlib"
9441    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9442    break 2
9443  fi
9444done
9445done
9446
9447  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9448fi
9449fi
9450ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9451if test -n "$ac_ct_RANLIB"; then
9452  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9453echo "${ECHO_T}$ac_ct_RANLIB" >&6
9454else
9455  echo "$as_me:$LINENO: result: no" >&5
9456echo "${ECHO_T}no" >&6
9457fi
9458
9459  RANLIB=$ac_ct_RANLIB
9460else
9461  RANLIB="$ac_cv_prog_RANLIB"
9462fi
9463
9464if test -n "$ac_tool_prefix"; then
9465  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9466set dummy ${ac_tool_prefix}strip; ac_word=$2
9467echo "$as_me:$LINENO: checking for $ac_word" >&5
9468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9469if test "${ac_cv_prog_STRIP+set}" = set; then
9470  echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472  if test -n "$STRIP"; then
9473  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9474else
9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478  IFS=$as_save_IFS
9479  test -z "$as_dir" && as_dir=.
9480  for ac_exec_ext in '' $ac_executable_extensions; do
9481  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9482    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484    break 2
9485  fi
9486done
9487done
9488
9489fi
9490fi
9491STRIP=$ac_cv_prog_STRIP
9492if test -n "$STRIP"; then
9493  echo "$as_me:$LINENO: result: $STRIP" >&5
9494echo "${ECHO_T}$STRIP" >&6
9495else
9496  echo "$as_me:$LINENO: result: no" >&5
9497echo "${ECHO_T}no" >&6
9498fi
9499
9500fi
9501if test -z "$ac_cv_prog_STRIP"; then
9502  ac_ct_STRIP=$STRIP
9503  # Extract the first word of "strip", so it can be a program name with args.
9504set dummy strip; ac_word=$2
9505echo "$as_me:$LINENO: checking for $ac_word" >&5
9506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9507if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9508  echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510  if test -n "$ac_ct_STRIP"; then
9511  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9512else
9513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514for as_dir in $PATH
9515do
9516  IFS=$as_save_IFS
9517  test -z "$as_dir" && as_dir=.
9518  for ac_exec_ext in '' $ac_executable_extensions; do
9519  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9520    ac_cv_prog_ac_ct_STRIP="strip"
9521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9522    break 2
9523  fi
9524done
9525done
9526
9527  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9528fi
9529fi
9530ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9531if test -n "$ac_ct_STRIP"; then
9532  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9533echo "${ECHO_T}$ac_ct_STRIP" >&6
9534else
9535  echo "$as_me:$LINENO: result: no" >&5
9536echo "${ECHO_T}no" >&6
9537fi
9538
9539  STRIP=$ac_ct_STRIP
9540else
9541  STRIP="$ac_cv_prog_STRIP"
9542fi
9543
9544
9545old_CC="$CC"
9546old_CFLAGS="$CFLAGS"
9547
9548# Set sane defaults for various variables
9549test -z "$AR" && AR=ar
9550test -z "$AR_FLAGS" && AR_FLAGS=cru
9551test -z "$AS" && AS=as
9552test -z "$CC" && CC=cc
9553test -z "$LTCC" && LTCC=$CC
9554test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9555test -z "$DLLTOOL" && DLLTOOL=dlltool
9556test -z "$LD" && LD=ld
9557test -z "$LN_S" && LN_S="ln -s"
9558test -z "$MAGIC_CMD" && MAGIC_CMD=file
9559test -z "$NM" && NM=nm
9560test -z "$SED" && SED=sed
9561test -z "$OBJDUMP" && OBJDUMP=objdump
9562test -z "$RANLIB" && RANLIB=:
9563test -z "$STRIP" && STRIP=:
9564test -z "$ac_objext" && ac_objext=o
9565
9566# Determine commands to create old-style static archives.
9567old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9568old_postinstall_cmds='chmod 644 $oldlib'
9569old_postuninstall_cmds=
9570
9571if test -n "$RANLIB"; then
9572  case $host_os in
9573  openbsd*)
9574    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9575    ;;
9576  *)
9577    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9578    ;;
9579  esac
9580  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9581fi
9582
9583for cc_temp in $compiler""; do
9584  case $cc_temp in
9585    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9586    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9587    \-*) ;;
9588    *) break;;
9589  esac
9590done
9591cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9592
9593
9594# Only perform the check for file, if the check method requires it
9595case $deplibs_check_method in
9596file_magic*)
9597  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9598    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9599echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9600if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9601  echo $ECHO_N "(cached) $ECHO_C" >&6
9602else
9603  case $MAGIC_CMD in
9604[\\/*] |  ?:[\\/]*)
9605  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9606  ;;
9607*)
9608  lt_save_MAGIC_CMD="$MAGIC_CMD"
9609  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9610  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9611  for ac_dir in $ac_dummy; do
9612    IFS="$lt_save_ifs"
9613    test -z "$ac_dir" && ac_dir=.
9614    if test -f $ac_dir/${ac_tool_prefix}file; then
9615      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9616      if test -n "$file_magic_test_file"; then
9617        case $deplibs_check_method in
9618        "file_magic "*)
9619          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9620          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9621          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9622            $EGREP "$file_magic_regex" > /dev/null; then
9623            :
9624          else
9625            cat <<EOF 1>&2
9626
9627*** Warning: the command libtool uses to detect shared libraries,
9628*** $file_magic_cmd, produces output that libtool cannot recognize.
9629*** The result is that libtool may fail to recognize shared libraries
9630*** as such.  This will affect the creation of libtool libraries that
9631*** depend on shared libraries, but programs linked with such libtool
9632*** libraries will work regardless of this problem.  Nevertheless, you
9633*** may want to report the problem to your system manager and/or to
9634*** bug-libtool@gnu.org
9635
9636EOF
9637          fi ;;
9638        esac
9639      fi
9640      break
9641    fi
9642  done
9643  IFS="$lt_save_ifs"
9644  MAGIC_CMD="$lt_save_MAGIC_CMD"
9645  ;;
9646esac
9647fi
9648
9649MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9650if test -n "$MAGIC_CMD"; then
9651  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9652echo "${ECHO_T}$MAGIC_CMD" >&6
9653else
9654  echo "$as_me:$LINENO: result: no" >&5
9655echo "${ECHO_T}no" >&6
9656fi
9657
9658if test -z "$lt_cv_path_MAGIC_CMD"; then
9659  if test -n "$ac_tool_prefix"; then
9660    echo "$as_me:$LINENO: checking for file" >&5
9661echo $ECHO_N "checking for file... $ECHO_C" >&6
9662if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9663  echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665  case $MAGIC_CMD in
9666[\\/*] |  ?:[\\/]*)
9667  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9668  ;;
9669*)
9670  lt_save_MAGIC_CMD="$MAGIC_CMD"
9671  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9672  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9673  for ac_dir in $ac_dummy; do
9674    IFS="$lt_save_ifs"
9675    test -z "$ac_dir" && ac_dir=.
9676    if test -f $ac_dir/file; then
9677      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9678      if test -n "$file_magic_test_file"; then
9679        case $deplibs_check_method in
9680        "file_magic "*)
9681          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9682          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9683          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9684            $EGREP "$file_magic_regex" > /dev/null; then
9685            :
9686          else
9687            cat <<EOF 1>&2
9688
9689*** Warning: the command libtool uses to detect shared libraries,
9690*** $file_magic_cmd, produces output that libtool cannot recognize.
9691*** The result is that libtool may fail to recognize shared libraries
9692*** as such.  This will affect the creation of libtool libraries that
9693*** depend on shared libraries, but programs linked with such libtool
9694*** libraries will work regardless of this problem.  Nevertheless, you
9695*** may want to report the problem to your system manager and/or to
9696*** bug-libtool@gnu.org
9697
9698EOF
9699          fi ;;
9700        esac
9701      fi
9702      break
9703    fi
9704  done
9705  IFS="$lt_save_ifs"
9706  MAGIC_CMD="$lt_save_MAGIC_CMD"
9707  ;;
9708esac
9709fi
9710
9711MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9712if test -n "$MAGIC_CMD"; then
9713  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9714echo "${ECHO_T}$MAGIC_CMD" >&6
9715else
9716  echo "$as_me:$LINENO: result: no" >&5
9717echo "${ECHO_T}no" >&6
9718fi
9719
9720  else
9721    MAGIC_CMD=:
9722  fi
9723fi
9724
9725  fi
9726  ;;
9727esac
9728
9729enable_dlopen=no
9730enable_win32_dll=no
9731
9732# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9733if test "${enable_libtool_lock+set}" = set; then
9734  enableval="$enable_libtool_lock"
9735
9736fi;
9737test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9738
9739
9740# Check whether --with-pic or --without-pic was given.
9741if test "${with_pic+set}" = set; then
9742  withval="$with_pic"
9743  pic_mode="$withval"
9744else
9745  pic_mode=default
9746fi;
9747test -z "$pic_mode" && pic_mode=default
9748
9749# Use C for the default configuration in the libtool script
9750tagname=
9751lt_save_CC="$CC"
9752ac_ext=c
9753ac_cpp='$CPP $CPPFLAGS'
9754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756ac_compiler_gnu=$ac_cv_c_compiler_gnu
9757
9758
9759# Source file extension for C test sources.
9760ac_ext=c
9761
9762# Object file extension for compiled C test sources.
9763objext=o
9764objext=$objext
9765
9766# Code to be used in simple compile tests
9767lt_simple_compile_test_code="int some_variable = 0;\n"
9768
9769# Code to be used in simple link tests
9770lt_simple_link_test_code='int main(){return(0);}\n'
9771
9772
9773# If no C compiler was specified, use CC.
9774LTCC=${LTCC-"$CC"}
9775
9776# If no C compiler flags were specified, use CFLAGS.
9777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9778
9779# Allow CC to be a program name with arguments.
9780compiler=$CC
9781
9782
9783# save warnings/boilerplate of simple test code
9784ac_outfile=conftest.$ac_objext
9785printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9787_lt_compiler_boilerplate=`cat conftest.err`
9788$rm conftest*
9789
9790ac_outfile=conftest.$ac_objext
9791printf "$lt_simple_link_test_code" >conftest.$ac_ext
9792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9793_lt_linker_boilerplate=`cat conftest.err`
9794$rm conftest*
9795
9796
9797## CAVEAT EMPTOR:
9798## There is no encapsulation within the following macros, do not change
9799## the running order or otherwise move them around unless you know exactly
9800## what you are doing...
9801
9802lt_prog_compiler_no_builtin_flag=
9803
9804if test "$GCC" = yes; then
9805  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9806
9807
9808echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9809echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9810if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9811  echo $ECHO_N "(cached) $ECHO_C" >&6
9812else
9813  lt_cv_prog_compiler_rtti_exceptions=no
9814  ac_outfile=conftest.$ac_objext
9815   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9816   lt_compiler_flag="-fno-rtti -fno-exceptions"
9817   # Insert the option either (1) after the last *FLAGS variable, or
9818   # (2) before a word containing "conftest.", or (3) at the end.
9819   # Note that $ac_compile itself does not contain backslashes and begins
9820   # with a dollar sign (not a hyphen), so the echo should work correctly.
9821   # The option is referenced via a variable to avoid confusing sed.
9822   lt_compile=`echo "$ac_compile" | $SED \
9823   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9825   -e 's:$: $lt_compiler_flag:'`
9826   (eval echo "\"\$as_me:9826: $lt_compile\"" >&5)
9827   (eval "$lt_compile" 2>conftest.err)
9828   ac_status=$?
9829   cat conftest.err >&5
9830   echo "$as_me:9830: \$? = $ac_status" >&5
9831   if (exit $ac_status) && test -s "$ac_outfile"; then
9832     # The compiler can only warn and ignore the option if not recognized
9833     # So say no if there are warnings other than the usual output.
9834     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9835     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9837       lt_cv_prog_compiler_rtti_exceptions=yes
9838     fi
9839   fi
9840   $rm conftest*
9841
9842fi
9843echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9844echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9845
9846if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9847    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9848else
9849    :
9850fi
9851
9852fi
9853
9854lt_prog_compiler_wl=
9855lt_prog_compiler_pic=
9856lt_prog_compiler_static=
9857
9858echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9859echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9860
9861  if test "$GCC" = yes; then
9862    lt_prog_compiler_wl='-Wl,'
9863    lt_prog_compiler_static='-static'
9864
9865    case $host_os in
9866      aix*)
9867      # All AIX code is PIC.
9868      if test "$host_cpu" = ia64; then
9869        # AIX 5 now supports IA64 processor
9870        lt_prog_compiler_static='-Bstatic'
9871      fi
9872      ;;
9873
9874    amigaos*)
9875      # FIXME: we need at least 68020 code to build shared libraries, but
9876      # adding the `-m68020' flag to GCC prevents building anything better,
9877      # like `-m68040'.
9878      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9879      ;;
9880
9881    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9882      # PIC is the default for these OSes.
9883      ;;
9884
9885    mingw* | pw32* | os2*)
9886      # This hack is so that the source file can tell whether it is being
9887      # built for inclusion in a dll (and should export symbols for example).
9888      lt_prog_compiler_pic='-DDLL_EXPORT'
9889      ;;
9890
9891    darwin* | rhapsody*)
9892      # PIC is the default on this platform
9893      # Common symbols not allowed in MH_DYLIB files
9894      lt_prog_compiler_pic='-fno-common'
9895      ;;
9896
9897    interix3*)
9898      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9899      # Instead, we relocate shared libraries at runtime.
9900      ;;
9901
9902    msdosdjgpp*)
9903      # Just because we use GCC doesn't mean we suddenly get shared libraries
9904      # on systems that don't support them.
9905      lt_prog_compiler_can_build_shared=no
9906      enable_shared=no
9907      ;;
9908
9909    sysv4*MP*)
9910      if test -d /usr/nec; then
9911        lt_prog_compiler_pic=-Kconform_pic
9912      fi
9913      ;;
9914
9915    hpux*)
9916      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9917      # not for PA HP-UX.
9918      case $host_cpu in
9919      hppa*64*|ia64*)
9920        # +Z the default
9921        ;;
9922      *)
9923        lt_prog_compiler_pic='-fPIC'
9924        ;;
9925      esac
9926      ;;
9927
9928    *)
9929      lt_prog_compiler_pic='-fPIC'
9930      ;;
9931    esac
9932  else
9933    # PORTME Check for flag to pass linker flags through the system compiler.
9934    case $host_os in
9935    aix*)
9936      lt_prog_compiler_wl='-Wl,'
9937      if test "$host_cpu" = ia64; then
9938        # AIX 5 now supports IA64 processor
9939        lt_prog_compiler_static='-Bstatic'
9940      else
9941        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9942      fi
9943      ;;
9944      darwin*)
9945        # PIC is the default on this platform
9946        # Common symbols not allowed in MH_DYLIB files
9947       case $cc_basename in
9948         xlc*)
9949         lt_prog_compiler_pic='-qnocommon'
9950         lt_prog_compiler_wl='-Wl,'
9951         ;;
9952       esac
9953       ;;
9954
9955    mingw* | pw32* | os2*)
9956      # This hack is so that the source file can tell whether it is being
9957      # built for inclusion in a dll (and should export symbols for example).
9958      lt_prog_compiler_pic='-DDLL_EXPORT'
9959      ;;
9960
9961    hpux9* | hpux10* | hpux11*)
9962      lt_prog_compiler_wl='-Wl,'
9963      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9964      # not for PA HP-UX.
9965      case $host_cpu in
9966      hppa*64*|ia64*)
9967        # +Z the default
9968        ;;
9969      *)
9970        lt_prog_compiler_pic='+Z'
9971        ;;
9972      esac
9973      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9974      lt_prog_compiler_static='${wl}-a ${wl}archive'
9975      ;;
9976
9977    irix5* | irix6* | nonstopux*)
9978      lt_prog_compiler_wl='-Wl,'
9979      # PIC (with -KPIC) is the default.
9980      lt_prog_compiler_static='-non_shared'
9981      ;;
9982
9983    newsos6)
9984      lt_prog_compiler_pic='-KPIC'
9985      lt_prog_compiler_static='-Bstatic'
9986      ;;
9987
9988    linux*)
9989      case $cc_basename in
9990      icc* | ecc*)
9991        lt_prog_compiler_wl='-Wl,'
9992        lt_prog_compiler_pic='-KPIC'
9993        lt_prog_compiler_static='-static'
9994        ;;
9995      pgcc* | pgf77* | pgf90* | pgf95*)
9996        # Portland Group compilers (*not* the Pentium gcc compiler,
9997        # which looks to be a dead project)
9998        lt_prog_compiler_wl='-Wl,'
9999        lt_prog_compiler_pic='-fpic'
10000        lt_prog_compiler_static='-Bstatic'
10001        ;;
10002      ccc*)
10003        lt_prog_compiler_wl='-Wl,'
10004        # All Alpha code is PIC.
10005        lt_prog_compiler_static='-non_shared'
10006        ;;
10007      esac
10008      ;;
10009
10010    osf3* | osf4* | osf5*)
10011      lt_prog_compiler_wl='-Wl,'
10012      # All OSF/1 code is PIC.
10013      lt_prog_compiler_static='-non_shared'
10014      ;;
10015
10016    solaris*)
10017      lt_prog_compiler_pic='-KPIC'
10018      lt_prog_compiler_static='-Bstatic'
10019      case $cc_basename in
10020      f77* | f90* | f95*)
10021        lt_prog_compiler_wl='-Qoption ld ';;
10022      *)
10023        lt_prog_compiler_wl='-Wl,';;
10024      esac
10025      ;;
10026
10027    sunos4*)
10028      lt_prog_compiler_wl='-Qoption ld '
10029      lt_prog_compiler_pic='-PIC'
10030      lt_prog_compiler_static='-Bstatic'
10031      ;;
10032
10033    sysv4 | sysv4.2uw2* | sysv4.3*)
10034      lt_prog_compiler_wl='-Wl,'
10035      lt_prog_compiler_pic='-KPIC'
10036      lt_prog_compiler_static='-Bstatic'
10037      ;;
10038
10039    sysv4*MP*)
10040      if test -d /usr/nec ;then
10041        lt_prog_compiler_pic='-Kconform_pic'
10042        lt_prog_compiler_static='-Bstatic'
10043      fi
10044      ;;
10045
10046    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10047      lt_prog_compiler_wl='-Wl,'
10048      lt_prog_compiler_pic='-KPIC'
10049      lt_prog_compiler_static='-Bstatic'
10050      ;;
10051
10052    unicos*)
10053      lt_prog_compiler_wl='-Wl,'
10054      lt_prog_compiler_can_build_shared=no
10055      ;;
10056
10057    uts4*)
10058      lt_prog_compiler_pic='-pic'
10059      lt_prog_compiler_static='-Bstatic'
10060      ;;
10061
10062    *)
10063      lt_prog_compiler_can_build_shared=no
10064      ;;
10065    esac
10066  fi
10067
10068echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10069echo "${ECHO_T}$lt_prog_compiler_pic" >&6
10070
10071#
10072# Check to make sure the PIC flag actually works.
10073#
10074if test -n "$lt_prog_compiler_pic"; then
10075
10076echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10077echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
10078if test "${lt_prog_compiler_pic_works+set}" = set; then
10079  echo $ECHO_N "(cached) $ECHO_C" >&6
10080else
10081  lt_prog_compiler_pic_works=no
10082  ac_outfile=conftest.$ac_objext
10083   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10084   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10085   # Insert the option either (1) after the last *FLAGS variable, or
10086   # (2) before a word containing "conftest.", or (3) at the end.
10087   # Note that $ac_compile itself does not contain backslashes and begins
10088   # with a dollar sign (not a hyphen), so the echo should work correctly.
10089   # The option is referenced via a variable to avoid confusing sed.
10090   lt_compile=`echo "$ac_compile" | $SED \
10091   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10092   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10093   -e 's:$: $lt_compiler_flag:'`
10094   (eval echo "\"\$as_me:10094: $lt_compile\"" >&5)
10095   (eval "$lt_compile" 2>conftest.err)
10096   ac_status=$?
10097   cat conftest.err >&5
10098   echo "$as_me:10098: \$? = $ac_status" >&5
10099   if (exit $ac_status) && test -s "$ac_outfile"; then
10100     # The compiler can only warn and ignore the option if not recognized
10101     # So say no if there are warnings other than the usual output.
10102     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10103     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10104     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10105       lt_prog_compiler_pic_works=yes
10106     fi
10107   fi
10108   $rm conftest*
10109
10110fi
10111echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10112echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
10113
10114if test x"$lt_prog_compiler_pic_works" = xyes; then
10115    case $lt_prog_compiler_pic in
10116     "" | " "*) ;;
10117     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10118     esac
10119else
10120    lt_prog_compiler_pic=
10121     lt_prog_compiler_can_build_shared=no
10122fi
10123
10124fi
10125case $host_os in
10126  # For platforms which do not support PIC, -DPIC is meaningless:
10127  *djgpp*)
10128    lt_prog_compiler_pic=
10129    ;;
10130  *)
10131    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10132    ;;
10133esac
10134
10135#
10136# Check to make sure the static flag actually works.
10137#
10138wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10139echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10140echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
10141if test "${lt_prog_compiler_static_works+set}" = set; then
10142  echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144  lt_prog_compiler_static_works=no
10145   save_LDFLAGS="$LDFLAGS"
10146   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10147   printf "$lt_simple_link_test_code" > conftest.$ac_ext
10148   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10149     # The linker can only warn and ignore the option if not recognized
10150     # So say no if there are warnings
10151     if test -s conftest.err; then
10152       # Append any errors to the config.log.
10153       cat conftest.err 1>&5
10154       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10155       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10156       if diff conftest.exp conftest.er2 >/dev/null; then
10157         lt_prog_compiler_static_works=yes
10158       fi
10159     else
10160       lt_prog_compiler_static_works=yes
10161     fi
10162   fi
10163   $rm conftest*
10164   LDFLAGS="$save_LDFLAGS"
10165
10166fi
10167echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10168echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
10169
10170if test x"$lt_prog_compiler_static_works" = xyes; then
10171    :
10172else
10173    lt_prog_compiler_static=
10174fi
10175
10176
10177echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10178echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10179if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10180  echo $ECHO_N "(cached) $ECHO_C" >&6
10181else
10182  lt_cv_prog_compiler_c_o=no
10183   $rm -r conftest 2>/dev/null
10184   mkdir conftest
10185   cd conftest
10186   mkdir out
10187   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10188
10189   lt_compiler_flag="-o out/conftest2.$ac_objext"
10190   # Insert the option either (1) after the last *FLAGS variable, or
10191   # (2) before a word containing "conftest.", or (3) at the end.
10192   # Note that $ac_compile itself does not contain backslashes and begins
10193   # with a dollar sign (not a hyphen), so the echo should work correctly.
10194   lt_compile=`echo "$ac_compile" | $SED \
10195   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10196   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10197   -e 's:$: $lt_compiler_flag:'`
10198   (eval echo "\"\$as_me:10198: $lt_compile\"" >&5)
10199   (eval "$lt_compile" 2>out/conftest.err)
10200   ac_status=$?
10201   cat out/conftest.err >&5
10202   echo "$as_me:10202: \$? = $ac_status" >&5
10203   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10204   then
10205     # The compiler can only warn and ignore the option if not recognized
10206     # So say no if there are warnings
10207     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10208     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10209     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10210       lt_cv_prog_compiler_c_o=yes
10211     fi
10212   fi
10213   chmod u+w . 2>&5
10214   $rm conftest*
10215   # SGI C++ compiler will create directory out/ii_files/ for
10216   # template instantiation
10217   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10218   $rm out/* && rmdir out
10219   cd ..
10220   rmdir conftest
10221   $rm conftest*
10222
10223fi
10224echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10225echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10226
10227
10228hard_links="nottested"
10229if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10230  # do not overwrite the value of need_locks provided by the user
10231  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10232echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10233  hard_links=yes
10234  $rm conftest*
10235  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10236  touch conftest.a
10237  ln conftest.a conftest.b 2>&5 || hard_links=no
10238  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10239  echo "$as_me:$LINENO: result: $hard_links" >&5
10240echo "${ECHO_T}$hard_links" >&6
10241  if test "$hard_links" = no; then
10242    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10243echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10244    need_locks=warn
10245  fi
10246else
10247  need_locks=no
10248fi
10249
10250echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10251echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10252
10253  runpath_var=
10254  allow_undefined_flag=
10255  enable_shared_with_static_runtimes=no
10256  archive_cmds=
10257  archive_expsym_cmds=
10258  old_archive_From_new_cmds=
10259  old_archive_from_expsyms_cmds=
10260  export_dynamic_flag_spec=
10261  whole_archive_flag_spec=
10262  thread_safe_flag_spec=
10263  hardcode_libdir_flag_spec=
10264  hardcode_libdir_flag_spec_ld=
10265  hardcode_libdir_separator=
10266  hardcode_direct=no
10267  hardcode_minus_L=no
10268  hardcode_shlibpath_var=unsupported
10269  link_all_deplibs=unknown
10270  hardcode_automatic=no
10271  module_cmds=
10272  module_expsym_cmds=
10273  always_export_symbols=no
10274  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10275  # include_expsyms should be a list of space-separated symbols to be *always*
10276  # included in the symbol list
10277  include_expsyms=
10278  # exclude_expsyms can be an extended regexp of symbols to exclude
10279  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10280  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10281  # as well as any symbol that contains `d'.
10282  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10283  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10284  # platforms (ab)use it in PIC code, but their linkers get confused if
10285  # the symbol is explicitly referenced.  Since portable code cannot
10286  # rely on this symbol name, it's probably fine to never include it in
10287  # preloaded symbol tables.
10288  extract_expsyms_cmds=
10289  # Just being paranoid about ensuring that cc_basename is set.
10290  for cc_temp in $compiler""; do
10291  case $cc_temp in
10292    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10293    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10294    \-*) ;;
10295    *) break;;
10296  esac
10297done
10298cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10299
10300  case $host_os in
10301  cygwin* | mingw* | pw32*)
10302    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10303    # When not using gcc, we currently assume that we are using
10304    # Microsoft Visual C++.
10305    if test "$GCC" != yes; then
10306      with_gnu_ld=no
10307    fi
10308    ;;
10309  interix*)
10310    # we just hope/assume this is gcc and not c89 (= MSVC++)
10311    with_gnu_ld=yes
10312    ;;
10313  openbsd*)
10314    with_gnu_ld=no
10315    ;;
10316  esac
10317
10318  ld_shlibs=yes
10319  if test "$with_gnu_ld" = yes; then
10320    # If archive_cmds runs LD, not CC, wlarc should be empty
10321    wlarc='${wl}'
10322
10323    # Set some defaults for GNU ld with shared library support. These
10324    # are reset later if shared libraries are not supported. Putting them
10325    # here allows them to be overridden if necessary.
10326    runpath_var=LD_RUN_PATH
10327    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10328    export_dynamic_flag_spec='${wl}--export-dynamic'
10329    # ancient GNU ld didn't support --whole-archive et. al.
10330    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10331        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10332      else
10333        whole_archive_flag_spec=
10334    fi
10335    supports_anon_versioning=no
10336    case `$LD -v 2>/dev/null` in
10337      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10338      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10339      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10340      *\ 2.11.*) ;; # other 2.11 versions
10341      *) supports_anon_versioning=yes ;;
10342    esac
10343
10344    # See if GNU ld supports shared libraries.
10345    case $host_os in
10346    aix3* | aix4* | aix5*)
10347      # On AIX/PPC, the GNU linker is very broken
10348      if test "$host_cpu" != ia64; then
10349        ld_shlibs=no
10350        cat <<EOF 1>&2
10351
10352*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10353*** to be unable to reliably create shared libraries on AIX.
10354*** Therefore, libtool is disabling shared libraries support.  If you
10355*** really care for shared libraries, you may want to modify your PATH
10356*** so that a non-GNU linker is found, and then restart.
10357
10358EOF
10359      fi
10360      ;;
10361
10362    amigaos*)
10363      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)'
10364      hardcode_libdir_flag_spec='-L$libdir'
10365      hardcode_minus_L=yes
10366
10367      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10368      # that the semantics of dynamic libraries on AmigaOS, at least up
10369      # to version 4, is to share data among multiple programs linked
10370      # with the same dynamic library.  Since this doesn't match the
10371      # behavior of shared libraries on other platforms, we can't use
10372      # them.
10373      ld_shlibs=no
10374      ;;
10375
10376    beos*)
10377      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10378        allow_undefined_flag=unsupported
10379        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10380        # support --undefined.  This deserves some investigation.  FIXME
10381        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10382      else
10383        ld_shlibs=no
10384      fi
10385      ;;
10386
10387    cygwin* | mingw* | pw32*)
10388      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10389      # as there is no search path for DLLs.
10390      hardcode_libdir_flag_spec='-L$libdir'
10391      allow_undefined_flag=unsupported
10392      always_export_symbols=no
10393      enable_shared_with_static_runtimes=yes
10394      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10395
10396      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10397        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10398        # If the export-symbols file already is a .def file (1st line
10399        # is EXPORTS), use it as is; otherwise, prepend...
10400        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10401          cp $export_symbols $output_objdir/$soname.def;
10402        else
10403          echo EXPORTS > $output_objdir/$soname.def;
10404          cat $export_symbols >> $output_objdir/$soname.def;
10405        fi~
10406        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10407      else
10408        ld_shlibs=no
10409      fi
10410      ;;
10411
10412    interix3*)
10413      hardcode_direct=no
10414      hardcode_shlibpath_var=no
10415      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10416      export_dynamic_flag_spec='${wl}-E'
10417      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10418      # Instead, shared libraries are loaded at an image base (0x10000000 by
10419      # default) and relocated if they conflict, which is a slow very memory
10420      # consuming and fragmenting process.  To avoid this, we pick a random,
10421      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10422      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10423      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10424      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'
10425      ;;
10426
10427    linux*)
10428      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10429        tmp_addflag=
10430        case $cc_basename,$host_cpu in
10431        pgcc*)                          # Portland Group C compiler
10432          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'
10433          tmp_addflag=' $pic_flag'
10434          ;;
10435        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10436          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10437          tmp_addflag=' $pic_flag -Mnomain' ;;
10438        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
10439          tmp_addflag=' -i_dynamic' ;;
10440        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10441          tmp_addflag=' -i_dynamic -nofor_main' ;;
10442        ifc* | ifort*)                  # Intel Fortran compiler
10443          tmp_addflag=' -nofor_main' ;;
10444        esac
10445        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10446
10447        if test $supports_anon_versioning = yes; then
10448          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10449  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10450  $echo "local: *; };" >> $output_objdir/$libname.ver~
10451          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10452        fi
10453      else
10454        ld_shlibs=no
10455      fi
10456      ;;
10457
10458    netbsd*)
10459      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10460        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10461        wlarc=
10462      else
10463        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10465      fi
10466      ;;
10467
10468    solaris*)
10469      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10470        ld_shlibs=no
10471        cat <<EOF 1>&2
10472
10473*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10474*** create shared libraries on Solaris systems.  Therefore, libtool
10475*** is disabling shared libraries support.  We urge you to upgrade GNU
10476*** binutils to release 2.9.1 or newer.  Another option is to modify
10477*** your PATH or compiler configuration so that the native linker is
10478*** used, and then restart.
10479
10480EOF
10481      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10482        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10483        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10484      else
10485        ld_shlibs=no
10486      fi
10487      ;;
10488
10489    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10490      case `$LD -v 2>&1` in
10491        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10492        ld_shlibs=no
10493        cat <<_LT_EOF 1>&2
10494
10495*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10496*** reliably create shared libraries on SCO systems.  Therefore, libtool
10497*** is disabling shared libraries support.  We urge you to upgrade GNU
10498*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10499*** your PATH or compiler configuration so that the native linker is
10500*** used, and then restart.
10501
10502_LT_EOF
10503        ;;
10504        *)
10505          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10506            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10507            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10508            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10509          else
10510            ld_shlibs=no
10511          fi
10512        ;;
10513      esac
10514      ;;
10515
10516    sunos4*)
10517      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10518      wlarc=
10519      hardcode_direct=yes
10520      hardcode_shlibpath_var=no
10521      ;;
10522
10523    *)
10524      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10525        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10526        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10527      else
10528        ld_shlibs=no
10529      fi
10530      ;;
10531    esac
10532
10533    if test "$ld_shlibs" = no; then
10534      runpath_var=
10535      hardcode_libdir_flag_spec=
10536      export_dynamic_flag_spec=
10537      whole_archive_flag_spec=
10538    fi
10539  else
10540    # PORTME fill in a description of your system's linker (not GNU ld)
10541    case $host_os in
10542    aix3*)
10543      allow_undefined_flag=unsupported
10544      always_export_symbols=yes
10545      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'
10546      # Note: this linker hardcodes the directories in LIBPATH if there
10547      # are no directories specified by -L.
10548      hardcode_minus_L=yes
10549      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10550        # Neither direct hardcoding nor static linking is supported with a
10551        # broken collect2.
10552        hardcode_direct=unsupported
10553      fi
10554      ;;
10555
10556    aix4* | aix5*)
10557      if test "$host_cpu" = ia64; then
10558        # On IA64, the linker does run time linking by default, so we don't
10559        # have to do anything special.
10560        aix_use_runtimelinking=no
10561        exp_sym_flag='-Bexport'
10562        no_entry_flag=""
10563      else
10564        # If we're using GNU nm, then we don't want the "-C" option.
10565        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10566        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10567          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'
10568        else
10569          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'
10570        fi
10571        aix_use_runtimelinking=no
10572
10573        # Test if we are trying to use run time linking or normal
10574        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10575        # need to do runtime linking.
10576        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10577          for ld_flag in $LDFLAGS; do
10578          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10579            aix_use_runtimelinking=yes
10580            break
10581          fi
10582          done
10583          ;;
10584        esac
10585
10586        exp_sym_flag='-bexport'
10587        no_entry_flag='-bnoentry'
10588      fi
10589
10590      # When large executables or shared objects are built, AIX ld can
10591      # have problems creating the table of contents.  If linking a library
10592      # or program results in "error TOC overflow" add -mminimal-toc to
10593      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10594      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10595
10596      archive_cmds=''
10597      hardcode_direct=yes
10598      hardcode_libdir_separator=':'
10599      link_all_deplibs=yes
10600
10601      if test "$GCC" = yes; then
10602        case $host_os in aix4.[012]|aix4.[012].*)
10603        # We only want to do this on AIX 4.2 and lower, the check
10604        # below for broken collect2 doesn't work under 4.3+
10605          collect2name=`${CC} -print-prog-name=collect2`
10606          if test -f "$collect2name" && \
10607           strings "$collect2name" | grep resolve_lib_name >/dev/null
10608          then
10609          # We have reworked collect2
10610          hardcode_direct=yes
10611          else
10612          # We have old collect2
10613          hardcode_direct=unsupported
10614          # It fails to find uninstalled libraries when the uninstalled
10615          # path is not listed in the libpath.  Setting hardcode_minus_L
10616          # to unsupported forces relinking
10617          hardcode_minus_L=yes
10618          hardcode_libdir_flag_spec='-L$libdir'
10619          hardcode_libdir_separator=
10620          fi
10621          ;;
10622        esac
10623        shared_flag='-shared'
10624        if test "$aix_use_runtimelinking" = yes; then
10625          shared_flag="$shared_flag "'${wl}-G'
10626        fi
10627      else
10628        # not using gcc
10629        if test "$host_cpu" = ia64; then
10630        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10631        # chokes on -Wl,-G. The following line is correct:
10632          shared_flag='-G'
10633        else
10634          if test "$aix_use_runtimelinking" = yes; then
10635            shared_flag='${wl}-G'
10636          else
10637            shared_flag='${wl}-bM:SRE'
10638          fi
10639        fi
10640      fi
10641
10642      # It seems that -bexpall does not export symbols beginning with
10643      # underscore (_), so it is better to generate a list of symbols to export.
10644      always_export_symbols=yes
10645      if test "$aix_use_runtimelinking" = yes; then
10646        # Warning - without using the other runtime loading flags (-brtl),
10647        # -berok will link without error, but may produce a broken library.
10648        allow_undefined_flag='-berok'
10649       # Determine the default libpath from the value encoded in an empty executable.
10650       cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656
10657#ifdef F77_DUMMY_MAIN
10658
10659#  ifdef __cplusplus
10660     extern "C"
10661#  endif
10662   int F77_DUMMY_MAIN() { return 1; }
10663
10664#endif
10665int
10666main ()
10667{
10668
10669  ;
10670  return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext conftest$ac_exeext
10674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675  (eval $ac_link) 2>conftest.er1
10676  ac_status=$?
10677  grep -v '^ *+' conftest.er1 >conftest.err
10678  rm -f conftest.er1
10679  cat conftest.err >&5
10680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681  (exit $ac_status); } &&
10682         { ac_try='test -z "$ac_c_werror_flag"
10683                         || test ! -s conftest.err'
10684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685  (eval $ac_try) 2>&5
10686  ac_status=$?
10687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688  (exit $ac_status); }; } &&
10689         { ac_try='test -s conftest$ac_exeext'
10690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691  (eval $ac_try) 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; }; then
10695
10696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10697}'`
10698# Check for a 64-bit object if we didn't find anything.
10699if 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; }
10700}'`; fi
10701else
10702  echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
10704
10705fi
10706rm -f conftest.err conftest.$ac_objext \
10707      conftest$ac_exeext conftest.$ac_ext
10708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10709
10710       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10711        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"
10712       else
10713        if test "$host_cpu" = ia64; then
10714          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10715          allow_undefined_flag="-z nodefs"
10716          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"
10717        else
10718         # Determine the default libpath from the value encoded in an empty executable.
10719         cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h.  */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h.  */
10725
10726#ifdef F77_DUMMY_MAIN
10727
10728#  ifdef __cplusplus
10729     extern "C"
10730#  endif
10731   int F77_DUMMY_MAIN() { return 1; }
10732
10733#endif
10734int
10735main ()
10736{
10737
10738  ;
10739  return 0;
10740}
10741_ACEOF
10742rm -f conftest.$ac_objext conftest$ac_exeext
10743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744  (eval $ac_link) 2>conftest.er1
10745  ac_status=$?
10746  grep -v '^ *+' conftest.er1 >conftest.err
10747  rm -f conftest.er1
10748  cat conftest.err >&5
10749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750  (exit $ac_status); } &&
10751         { ac_try='test -z "$ac_c_werror_flag"
10752                         || test ! -s conftest.err'
10753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754  (eval $ac_try) 2>&5
10755  ac_status=$?
10756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757  (exit $ac_status); }; } &&
10758         { ac_try='test -s conftest$ac_exeext'
10759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760  (eval $ac_try) 2>&5
10761  ac_status=$?
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); }; }; then
10764
10765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10766}'`
10767# Check for a 64-bit object if we didn't find anything.
10768if 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; }
10769}'`; fi
10770else
10771  echo "$as_me: failed program was:" >&5
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
10774fi
10775rm -f conftest.err conftest.$ac_objext \
10776      conftest$ac_exeext conftest.$ac_ext
10777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10778
10779         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10780          # Warning - without using the other run time loading flags,
10781          # -berok will link without error, but may produce a broken library.
10782          no_undefined_flag=' ${wl}-bernotok'
10783          allow_undefined_flag=' ${wl}-berok'
10784          # Exported symbols can be pulled into shared objects from archives
10785          whole_archive_flag_spec='$convenience'
10786          archive_cmds_need_lc=yes
10787          # This is similar to how AIX traditionally builds its shared libraries.
10788          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'
10789        fi
10790      fi
10791      ;;
10792
10793    amigaos*)
10794      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)'
10795      hardcode_libdir_flag_spec='-L$libdir'
10796      hardcode_minus_L=yes
10797      # see comment about different semantics on the GNU ld section
10798      ld_shlibs=no
10799      ;;
10800
10801    bsdi[45]*)
10802      export_dynamic_flag_spec=-rdynamic
10803      ;;
10804
10805    cygwin* | mingw* | pw32*)
10806      # When not using gcc, we currently assume that we are using
10807      # Microsoft Visual C++.
10808      # hardcode_libdir_flag_spec is actually meaningless, as there is
10809      # no search path for DLLs.
10810      hardcode_libdir_flag_spec=' '
10811      allow_undefined_flag=unsupported
10812      # Tell ltmain to make .lib files, not .a files.
10813      libext=lib
10814      # Tell ltmain to make .dll files, not .so files.
10815      shrext_cmds=".dll"
10816      # FIXME: Setting linknames here is a bad hack.
10817      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10818      # The linker will automatically build a .lib file if we build a DLL.
10819      old_archive_From_new_cmds='true'
10820      # FIXME: Should let the user specify the lib program.
10821      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10822      fix_srcfile_path='`cygpath -w "$srcfile"`'
10823      enable_shared_with_static_runtimes=yes
10824      ;;
10825
10826    darwin* | rhapsody*)
10827      case $host_os in
10828        rhapsody* | darwin1.[012])
10829         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10830         ;;
10831       *) # Darwin 1.3 on
10832         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10833           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10834         else
10835           case ${MACOSX_DEPLOYMENT_TARGET} in
10836             10.[012])
10837               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1083