source: ThirdParty/FilterSQP/trunk/configure @ 294

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

reran autotools

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