source: ThirdParty/FilterSQP/releases/1.1.0/configure @ 1805

Last change on this file since 1805 was 1805, checked in by tkr, 9 years ago

Decrementing age by one and re-running autotools

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