source: ThirdParty/FilterSQP/branches/split/configure @ 1490

Last change on this file since 1490 was 1490, checked in by stefan, 10 years ago

change externals to use split branches; rerun autotools after changing to use BuildTools?/branches/split

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