source: ThirdParty/FilterSQP/trunk/configure @ 284

Last change on this file since 284 was 284, checked in by andreasw, 13 years ago

fixing a few things for Cygwin compile with native MS/Intel compilers

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