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

Last change on this file since 1479 was 1469, checked in by stefan, 11 years ago

add prefix coin to .pc files; changed install dir for libs and doc

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