source: ThirdParty/FilterSQP/trunk/configure @ 231

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

reran autotools

File size: 729.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyFilterSQP 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyFilterSQP'
431PACKAGE_TARNAME='thirdpartyfiltersqp'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyFilterSQP 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="source/src/filter.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyFilterSQP 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyFilterSQP 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-filtersqp
1075                          compile this project (FilterSQP) with debug options
1076  --enable-doscompile     Under Cygwin, compile so that executables run under
1077                          DOS. Set to mingw to use gcc/g++/ld with
1078                          -mno-cygwin. Set to msvc to use cl/link. Default
1079                          when mentioned: mingw. Default when not mentioned:
1080                          disabled.
1081  --disable-dependency-tracking  speeds up one-time build
1082  --enable-dependency-tracking   do not reject slow dependency extractors
1083  --enable-maintainer-mode  enable make rules and dependencies not useful
1084                          (and sometimes confusing) to the casual installer
1085  --enable-static[=PKGS]
1086                          build static libraries [default=no]
1087  --enable-shared[=PKGS]
1088                          build shared libraries [default=yes]
1089  --enable-fast-install[=PKGS]
1090                          optimize for fast installation [default=yes]
1091  --disable-libtool-lock  avoid locking (might break parallel builds)
1092
1093Optional Packages:
1094  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1095  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1096  --with-filtersqp-verbosity
1097                          specify the debug verbosity level for project
1098                          FilterSQP
1099  --with-filtersqp-checklevel
1100                          specify the sanity check level for project FilterSQP
1101  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1102  --with-pic              try to use only PIC/non-PIC objects [default=use
1103                          both]
1104  --with-tags[=TAGS]
1105                          include additional configurations [automatic]
1106
1107Some influential environment variables:
1108  CDEFS       Additional -D flags to be used when compiling C code.
1109  ADD_CFLAGS  Additional C compiler options
1110  DBG_CFLAGS  Debug C compiler options
1111  OPT_CFLAGS  Optimize C compiler options
1112  CC          C compiler command
1113  CFLAGS      C compiler flags
1114  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1115              nonstandard directory <lib dir>
1116  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1117              headers in a nonstandard directory <include dir>
1118  MPICC       C MPI Compiler
1119  ADD_FFLAGS  Additional Fortran compiler options
1120  DBG_FFLAGS  Debug Fortran compiler options
1121  OPT_FFLAGS  Optimize Fortran compiler options
1122  F77         Fortran 77 compiler command
1123  FFLAGS      Fortran 77 compiler flags
1124  MPIF77      Fortran MPI Compiler
1125  CPP         C preprocessor
1126  CXX         C++ compiler command
1127  CXXFLAGS    C++ compiler flags
1128  CXXCPP      C++ preprocessor
1129
1130Use these variables to override the choices made by `configure' or to help
1131it to find libraries and programs with nonstandard names/locations.
1132
1133Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1134_ACEOF
1135fi
1136
1137if test "$ac_init_help" = "recursive"; then
1138  # If there are subdirs, report their specific --help.
1139  ac_popdir=`pwd`
1140  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1141    test -d $ac_dir || continue
1142    ac_builddir=.
1143
1144if test "$ac_dir" != .; then
1145  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1146  # A "../" for each directory in $ac_dir_suffix.
1147  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1148else
1149  ac_dir_suffix= ac_top_builddir=
1150fi
1151
1152case $srcdir in
1153  .)  # No --srcdir option.  We are building in place.
1154    ac_srcdir=.
1155    if test -z "$ac_top_builddir"; then
1156       ac_top_srcdir=.
1157    else
1158       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1159    fi ;;
1160  [\\/]* | ?:[\\/]* )  # Absolute path.
1161    ac_srcdir=$srcdir$ac_dir_suffix;
1162    ac_top_srcdir=$srcdir ;;
1163  *) # Relative path.
1164    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1165    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1166esac
1167
1168# Do not use `cd foo && pwd` to compute absolute paths, because
1169# the directories may not exist.
1170case `pwd` in
1171.) ac_abs_builddir="$ac_dir";;
1172*)
1173  case "$ac_dir" in
1174  .) ac_abs_builddir=`pwd`;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1176  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_top_builddir=${ac_top_builddir}.;;
1181*)
1182  case ${ac_top_builddir}. in
1183  .) ac_abs_top_builddir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1185  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_srcdir=$ac_srcdir;;
1190*)
1191  case $ac_srcdir in
1192  .) ac_abs_srcdir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1194  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1195  esac;;
1196esac
1197case $ac_abs_builddir in
1198.) ac_abs_top_srcdir=$ac_top_srcdir;;
1199*)
1200  case $ac_top_srcdir in
1201  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1202  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1203  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1204  esac;;
1205esac
1206
1207    cd $ac_dir
1208    # Check for guested configure; otherwise get Cygnus style configure.
1209    if test -f $ac_srcdir/configure.gnu; then
1210      echo
1211      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1212    elif test -f $ac_srcdir/configure; then
1213      echo
1214      $SHELL $ac_srcdir/configure  --help=recursive
1215    elif test -f $ac_srcdir/configure.ac ||
1216           test -f $ac_srcdir/configure.in; then
1217      echo
1218      $ac_configure --help
1219    else
1220      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1221    fi
1222    cd $ac_popdir
1223  done
1224fi
1225
1226test -n "$ac_init_help" && exit 0
1227if $ac_init_version; then
1228  cat <<\_ACEOF
1229ThirdPartyFilterSQP configure 0.0
1230generated by GNU Autoconf 2.59
1231
1232Copyright (C) 2003 Free Software Foundation, Inc.
1233This configure script is free software; the Free Software Foundation
1234gives unlimited permission to copy, distribute and modify it.
1235
1236
1237Copyright 2006 International Business Machines and others.
1238All Rights Reserved.
1239This file is part of the open source package Coin which is distributed
1240under the Common Public License.
1241_ACEOF
1242  exit 0
1243fi
1244exec 5>config.log
1245cat >&5 <<_ACEOF
1246This file contains any messages produced by compilers while
1247running configure, to aid debugging if configure makes a mistake.
1248
1249It was created by ThirdPartyFilterSQP $as_me 0.0, which was
1250generated by GNU Autoconf 2.59.  Invocation command line was
1251
1252  $ $0 $@
1253
1254_ACEOF
1255{
1256cat <<_ASUNAME
1257## --------- ##
1258## Platform. ##
1259## --------- ##
1260
1261hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1262uname -m = `(uname -m) 2>/dev/null || echo unknown`
1263uname -r = `(uname -r) 2>/dev/null || echo unknown`
1264uname -s = `(uname -s) 2>/dev/null || echo unknown`
1265uname -v = `(uname -v) 2>/dev/null || echo unknown`
1266
1267/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1268/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1269
1270/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1271/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1272/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1273hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1274/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1275/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1276/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1277
1278_ASUNAME
1279
1280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1281for as_dir in $PATH
1282do
1283  IFS=$as_save_IFS
1284  test -z "$as_dir" && as_dir=.
1285  echo "PATH: $as_dir"
1286done
1287
1288} >&5
1289
1290cat >&5 <<_ACEOF
1291
1292
1293## ----------- ##
1294## Core tests. ##
1295## ----------- ##
1296
1297_ACEOF
1298
1299
1300# Keep a trace of the command line.
1301# Strip out --no-create and --no-recursion so they do not pile up.
1302# Strip out --silent because we don't want to record it for future runs.
1303# Also quote any args containing shell meta-characters.
1304# Make two passes to allow for proper duplicate-argument suppression.
1305ac_configure_args=
1306ac_configure_args0=
1307ac_configure_args1=
1308ac_sep=
1309ac_must_keep_next=false
1310for ac_pass in 1 2
1311do
1312  for ac_arg
1313  do
1314    case $ac_arg in
1315    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1316    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317    | -silent | --silent | --silen | --sile | --sil)
1318      continue ;;
1319    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1321    esac
1322    case $ac_pass in
1323    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1324    2)
1325      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1326      if test $ac_must_keep_next = true; then
1327        ac_must_keep_next=false # Got value, back to normal.
1328      else
1329        case $ac_arg in
1330          *=* | --config-cache | -C | -disable-* | --disable-* \
1331          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1332          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1333          | -with-* | --with-* | -without-* | --without-* | --x)
1334            case "$ac_configure_args0 " in
1335              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1336            esac
1337            ;;
1338          -* ) ac_must_keep_next=true ;;
1339        esac
1340      fi
1341      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1342      # Get rid of the leading space.
1343      ac_sep=" "
1344      ;;
1345    esac
1346  done
1347done
1348$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1349$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1350
1351# When interrupted or exit'd, cleanup temporary files, and complete
1352# config.log.  We remove comments because anyway the quotes in there
1353# would cause problems or look ugly.
1354# WARNING: Be sure not to use single quotes in there, as some shells,
1355# such as our DU 5.0 friend, will then `close' the trap.
1356trap 'exit_status=$?
1357  # Save into config.log some information that might help in debugging.
1358  {
1359    echo
1360
1361    cat <<\_ASBOX
1362## ---------------- ##
1363## Cache variables. ##
1364## ---------------- ##
1365_ASBOX
1366    echo
1367    # The following way of writing the cache mishandles newlines in values,
1368{
1369  (set) 2>&1 |
1370    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1371    *ac_space=\ *)
1372      sed -n \
1373        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1374          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1375      ;;
1376    *)
1377      sed -n \
1378        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1379      ;;
1380    esac;
1381}
1382    echo
1383
1384    cat <<\_ASBOX
1385## ----------------- ##
1386## Output variables. ##
1387## ----------------- ##
1388_ASBOX
1389    echo
1390    for ac_var in $ac_subst_vars
1391    do
1392      eval ac_val=$`echo $ac_var`
1393      echo "$ac_var='"'"'$ac_val'"'"'"
1394    done | sort
1395    echo
1396
1397    if test -n "$ac_subst_files"; then
1398      cat <<\_ASBOX
1399## ------------- ##
1400## Output files. ##
1401## ------------- ##
1402_ASBOX
1403      echo
1404      for ac_var in $ac_subst_files
1405      do
1406        eval ac_val=$`echo $ac_var`
1407        echo "$ac_var='"'"'$ac_val'"'"'"
1408      done | sort
1409      echo
1410    fi
1411
1412    if test -s confdefs.h; then
1413      cat <<\_ASBOX
1414## ----------- ##
1415## confdefs.h. ##
1416## ----------- ##
1417_ASBOX
1418      echo
1419      sed "/^$/d" confdefs.h | sort
1420      echo
1421    fi
1422    test "$ac_signal" != 0 &&
1423      echo "$as_me: caught signal $ac_signal"
1424    echo "$as_me: exit $exit_status"
1425  } >&5
1426  rm -f core *.core &&
1427  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1428    exit $exit_status
1429     ' 0
1430for ac_signal in 1 2 13 15; do
1431  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1432done
1433ac_signal=0
1434
1435# confdefs.h avoids OS command line length limits that DEFS can exceed.
1436rm -rf conftest* confdefs.h
1437# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1438echo >confdefs.h
1439
1440# Predefined preprocessor variables.
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_NAME "$PACKAGE_NAME"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_VERSION "$PACKAGE_VERSION"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_STRING "$PACKAGE_STRING"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1464_ACEOF
1465
1466
1467# Let the site file select an alternate cache file if it wants to.
1468# Prefer explicitly selected file to automatically selected ones.
1469if test -z "$CONFIG_SITE"; then
1470  if test "x$prefix" != xNONE; then
1471    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1472  else
1473    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1474  fi
1475fi
1476for ac_site_file in $CONFIG_SITE; do
1477  if test -r "$ac_site_file"; then
1478    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1479echo "$as_me: loading site script $ac_site_file" >&6;}
1480    sed 's/^/| /' "$ac_site_file" >&5
1481    . "$ac_site_file"
1482  fi
1483done
1484
1485if test -r "$cache_file"; then
1486  # Some versions of bash will fail to source /dev/null (special
1487  # files actually), so we avoid doing that.
1488  if test -f "$cache_file"; then
1489    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1490echo "$as_me: loading cache $cache_file" >&6;}
1491    case $cache_file in
1492      [\\/]* | ?:[\\/]* ) . $cache_file;;
1493      *)                      . ./$cache_file;;
1494    esac
1495  fi
1496else
1497  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1498echo "$as_me: creating cache $cache_file" >&6;}
1499  >$cache_file
1500fi
1501
1502# Check that the precious variables saved in the cache have kept the same
1503# value.
1504ac_cache_corrupted=false
1505for ac_var in `(set) 2>&1 |
1506               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1507  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1508  eval ac_new_set=\$ac_env_${ac_var}_set
1509  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1510  eval ac_new_val="\$ac_env_${ac_var}_value"
1511  case $ac_old_set,$ac_new_set in
1512    set,)
1513      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1514echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1515      ac_cache_corrupted=: ;;
1516    ,set)
1517      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1518echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1519      ac_cache_corrupted=: ;;
1520    ,);;
1521    *)
1522      if test "x$ac_old_val" != "x$ac_new_val"; then
1523        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1524echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1525        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1526echo "$as_me:   former value:  $ac_old_val" >&2;}
1527        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1528echo "$as_me:   current value: $ac_new_val" >&2;}
1529        ac_cache_corrupted=:
1530      fi;;
1531  esac
1532  # Pass precious variables to config.status.
1533  if test "$ac_new_set" = set; then
1534    case $ac_new_val in
1535    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1536      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1537    *) ac_arg=$ac_var=$ac_new_val ;;
1538    esac
1539    case " $ac_configure_args " in
1540      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1541      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1542    esac
1543  fi
1544done
1545if $ac_cache_corrupted; then
1546  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1547echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1548  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1549echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1550   { (exit 1); exit 1; }; }
1551fi
1552
1553ac_ext=c
1554ac_cpp='$CPP $CPPFLAGS'
1555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1557ac_compiler_gnu=$ac_cv_c_compiler_gnu
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588# List one file in the package so that the configure script can test
1589# whether the package is actually there
1590
1591
1592# Where should everything be installed by default?  Here, we want it
1593# to be installed directly in 'bin', 'lib', 'include' subdirectories
1594# of the directory where configure is run.  The default would be
1595# /usr/local.
1596
1597
1598# Initialize the ADDLIBS variable
1599ADDLIBS="-lm $LIBS"
1600
1601
1602# Initialize the FADDLIBS variable (which is to be used with a fortran
1603# compiler and will not include FLIBS)
1604FADDLIBS="$LIBS"
1605
1606
1607# A useful makefile conditional that is always false
1608
1609
1610if false; then
1611  ALWAYS_FALSE_TRUE=
1612  ALWAYS_FALSE_FALSE='#'
1613else
1614  ALWAYS_FALSE_TRUE='#'
1615  ALWAYS_FALSE_FALSE=
1616fi
1617
1618
1619# We set the following variable so that we know later in AC_COIN_FINALIZE
1620# that we are in a project main directory
1621coin_projectdir=yes
1622
1623
1624#############################################################################
1625#                         Standard build tool stuff                         #
1626#############################################################################
1627
1628# Get the system type
1629ac_aux_dir=
1630for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1631  if test -f $ac_dir/install-sh; then
1632    ac_aux_dir=$ac_dir
1633    ac_install_sh="$ac_aux_dir/install-sh -c"
1634    break
1635  elif test -f $ac_dir/install.sh; then
1636    ac_aux_dir=$ac_dir
1637    ac_install_sh="$ac_aux_dir/install.sh -c"
1638    break
1639  elif test -f $ac_dir/shtool; then
1640    ac_aux_dir=$ac_dir
1641    ac_install_sh="$ac_aux_dir/shtool install -c"
1642    break
1643  fi
1644done
1645if test -z "$ac_aux_dir"; then
1646  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1647echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1648   { (exit 1); exit 1; }; }
1649fi
1650ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1651ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1652ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653
1654# Make sure we can run config.sub.
1655$ac_config_sub sun4 >/dev/null 2>&1 ||
1656  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1657echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1658   { (exit 1); exit 1; }; }
1659
1660echo "$as_me:$LINENO: checking build system type" >&5
1661echo $ECHO_N "checking build system type... $ECHO_C" >&6
1662if test "${ac_cv_build+set}" = set; then
1663  echo $ECHO_N "(cached) $ECHO_C" >&6
1664else
1665  ac_cv_build_alias=$build_alias
1666test -z "$ac_cv_build_alias" &&
1667  ac_cv_build_alias=`$ac_config_guess`
1668test -z "$ac_cv_build_alias" &&
1669  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1670echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1671   { (exit 1); exit 1; }; }
1672ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1673  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1674echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1675   { (exit 1); exit 1; }; }
1676
1677fi
1678echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1679echo "${ECHO_T}$ac_cv_build" >&6
1680build=$ac_cv_build
1681build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1682build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1683build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684
1685
1686
1687# Check if user wants to produce debugging code
1688
1689echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1690echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1691
1692# Check whether --enable-debug or --disable-debug was given.
1693if test "${enable_debug+set}" = set; then
1694  enableval="$enable_debug"
1695  case "${enableval}" in
1696   yes) coin_debug_compile=true
1697        enable_shared=no
1698        ;;
1699   no)  coin_debug_compile=false
1700        ;;
1701   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1702echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1703   { (exit 1); exit 1; }; }
1704        ;;
1705esac
1706else
1707  coin_debug_compile=false
1708fi;
1709
1710# Check whether --enable-debug-filtersqp or --disable-debug-filtersqp was given.
1711if test "${enable_debug_filtersqp+set}" = set; then
1712  enableval="$enable_debug_filtersqp"
1713  case "${enableval}" in
1714    yes) coin_debug_compile=true
1715         enable_shared=no
1716         ;;
1717    no)  coin_debug_compile=false
1718         ;;
1719    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-filtersqp" >&5
1720echo "$as_me: error: bad value ${enableval} for --enable-debug-filtersqp" >&2;}
1721   { (exit 1); exit 1; }; }
1722         ;;
1723 esac
1724else
1725  :
1726fi;
1727
1728 # m4_ifvaln([FilterSQP],
1729
1730if test $coin_debug_compile = true; then
1731  echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
1733else
1734  echo "$as_me:$LINENO: result: no" >&5
1735echo "${ECHO_T}no" >&6
1736fi
1737
1738
1739# Check whether --with-filtersqp-verbosity or --without-filtersqp-verbosity was given.
1740if test "${with_filtersqp_verbosity+set}" = set; then
1741  withval="$with_filtersqp_verbosity"
1742  coin_filtersqp_verbosity=$withval
1743else
1744  coin_filtersqp_verbosity=0
1745fi;
1746
1747cat >>confdefs.h <<_ACEOF
1748#define COIN_FILTERSQP_VERBOSITY $coin_filtersqp_verbosity
1749_ACEOF
1750
1751
1752
1753# Check whether --with-filtersqp-checklevel or --without-filtersqp-checklevel was given.
1754if test "${with_filtersqp_checklevel+set}" = set; then
1755  withval="$with_filtersqp_checklevel"
1756  coin_filtersqp_checklevel=$withval
1757else
1758  coin_filtersqp_checklevel=0
1759fi;
1760
1761cat >>confdefs.h <<_ACEOF
1762#define COIN_FILTERSQP_CHECKLEVEL $coin_filtersqp_checklevel
1763_ACEOF
1764
1765
1766# We use the following variable to have a string with the upper case
1767# version of the project name
1768COIN_PRJCT=FILTERSQP
1769
1770
1771 # m4_ifvaln([FilterSQP],
1772
1773
1774
1775# Get the name of the Fortran compiler and appropriate compiler options
1776case $build in
1777  *-mingw*)
1778    if test "${LD+set}" = set; then :; else
1779      LD=link
1780    fi
1781    ;;
1782 esac
1783 case $enable_doscompile in
1784   msvc)
1785     if test "x${LD+set}" = xset; then :; else
1786       LD=link
1787     fi
1788     ;;
1789 esac
1790
1791
1792 # Check whether --enable-doscompile or --disable-doscompile was given.
1793if test "${enable_doscompile+set}" = set; then
1794  enableval="$enable_doscompile"
1795  if test "$enable_doscompile" != no; then
1796     case $build in
1797       *-cygwin*) ;;
1798       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1799echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1800   { (exit 1); exit 1; }; } ;;
1801     esac
1802   fi
1803else
1804  enable_doscompile=no
1805fi;
1806 case "$enable_doscompile" in
1807   msvc|mingw|no) ;;
1808   yes) enable_doscompile=mingw ;;
1809   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1810                    Try configure --help=recursive." >&5
1811echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1812                    Try configure --help=recursive." >&2;}
1813   { (exit 1); exit 1; }; }
1814      ;;
1815  esac
1816  if test "$enable_doscompile" != no ; then
1817    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1818echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1819  fi
1820
1821
1822
1823
1824ac_ext=c
1825ac_cpp='$CPP $CPPFLAGS'
1826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829
1830
1831# For consistency, we set the C compiler to the same value of the C++
1832# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1833if test x"$CXX" != x; then
1834  case "$CXX" in
1835    cl* | */cl* | CL* | */CL*)
1836      if test x"$CC" = x; then
1837        CC="$CXX"
1838        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1839echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1840      fi
1841      ;;
1842  esac
1843fi
1844
1845
1846
1847
1848
1849
1850coin_has_cc=yes
1851
1852save_cflags="$CFLAGS"
1853# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1854# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1855# is likely to be a non-functional shell. But many installations will have
1856# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1857case $build in
1858  *-cygwin* | *-mingw*)
1859             if test "$enable_doscompile" = msvc ; then
1860               comps="cl"
1861             else
1862               comps="gcc cl"
1863             fi ;;
1864  sparc-sun-solaris*)
1865             comps="cc xlc gcc pgcc icc" ;;
1866  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1867  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1868esac
1869
1870# We delete the cached value, since the test might not have been
1871# performed with our choice of compilers earlier
1872$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1873# AC_MSG_NOTICE([C compiler candidates: $comps])
1874ac_ext=c
1875ac_cpp='$CPP $CPPFLAGS'
1876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879if test -n "$ac_tool_prefix"; then
1880  for ac_prog in $comps
1881  do
1882    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1884echo "$as_me:$LINENO: checking for $ac_word" >&5
1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886if test "${ac_cv_prog_CC+set}" = set; then
1887  echo $ECHO_N "(cached) $ECHO_C" >&6
1888else
1889  if test -n "$CC"; then
1890  ac_cv_prog_CC="$CC" # Let the user override the test.
1891else
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901    break 2
1902  fi
1903done
1904done
1905
1906fi
1907fi
1908CC=$ac_cv_prog_CC
1909if test -n "$CC"; then
1910  echo "$as_me:$LINENO: result: $CC" >&5
1911echo "${ECHO_T}$CC" >&6
1912else
1913  echo "$as_me:$LINENO: result: no" >&5
1914echo "${ECHO_T}no" >&6
1915fi
1916
1917    test -n "$CC" && break
1918  done
1919fi
1920if test -z "$CC"; then
1921  ac_ct_CC=$CC
1922  for ac_prog in $comps
1923do
1924  # Extract the first word of "$ac_prog", so it can be a program name with args.
1925set dummy $ac_prog; ac_word=$2
1926echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929  echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931  if test -n "$ac_ct_CC"; then
1932  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933else
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937  IFS=$as_save_IFS
1938  test -z "$as_dir" && as_dir=.
1939  for ac_exec_ext in '' $ac_executable_extensions; do
1940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941    ac_cv_prog_ac_ct_CC="$ac_prog"
1942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943    break 2
1944  fi
1945done
1946done
1947
1948fi
1949fi
1950ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951if test -n "$ac_ct_CC"; then
1952  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953echo "${ECHO_T}$ac_ct_CC" >&6
1954else
1955  echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959  test -n "$ac_ct_CC" && break
1960done
1961
1962  CC=$ac_ct_CC
1963fi
1964
1965
1966test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1967See \`config.log' for more details." >&5
1968echo "$as_me: error: no acceptable C compiler found in \$PATH
1969See \`config.log' for more details." >&2;}
1970   { (exit 1); exit 1; }; }
1971
1972# Provide some information about the compiler.
1973echo "$as_me:$LINENO:" \
1974     "checking for C compiler version" >&5
1975ac_compiler=`set X $ac_compile; echo $2`
1976{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1977  (eval $ac_compiler --version </dev/null >&5) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }
1981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1982  (eval $ac_compiler -v </dev/null >&5) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }
1986{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1987  (eval $ac_compiler -V </dev/null >&5) 2>&5
1988  ac_status=$?
1989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990  (exit $ac_status); }
1991
1992cat >conftest.$ac_ext <<_ACEOF
1993/* confdefs.h.  */
1994_ACEOF
1995cat confdefs.h >>conftest.$ac_ext
1996cat >>conftest.$ac_ext <<_ACEOF
1997/* end confdefs.h.  */
1998
1999int
2000main ()
2001{
2002
2003  ;
2004  return 0;
2005}
2006_ACEOF
2007ac_clean_files_save=$ac_clean_files
2008ac_clean_files="$ac_clean_files a.out a.exe b.out"
2009# Try to create an executable without -o first, disregard a.out.
2010# It will help us diagnose broken compilers, and finding out an intuition
2011# of exeext.
2012echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2013echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2014ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2015if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2016  (eval $ac_link_default) 2>&5
2017  ac_status=$?
2018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019  (exit $ac_status); }; then
2020  # Find the output, starting from the most likely.  This scheme is
2021# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2022# resort.
2023
2024# Be careful to initialize this variable, since it used to be cached.
2025# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2026ac_cv_exeext=
2027# b.out is created by i960 compilers.
2028for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2029do
2030  test -f "$ac_file" || continue
2031  case $ac_file in
2032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2033        ;;
2034    conftest.$ac_ext )
2035        # This is the source file.
2036        ;;
2037    [ab].out )
2038        # We found the default executable, but exeext='' is most
2039        # certainly right.
2040        break;;
2041    *.* )
2042        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2043        # FIXME: I believe we export ac_cv_exeext for Libtool,
2044        # but it would be cool to find out if it's true.  Does anybody
2045        # maintain Libtool? --akim.
2046        export ac_cv_exeext
2047        break;;
2048    * )
2049        break;;
2050  esac
2051done
2052else
2053  echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: C compiler cannot create executables
2059See \`config.log' for more details." >&2;}
2060   { (exit 77); exit 77; }; }
2061fi
2062
2063ac_exeext=$ac_cv_exeext
2064echo "$as_me:$LINENO: result: $ac_file" >&5
2065echo "${ECHO_T}$ac_file" >&6
2066
2067# Check the compiler produces executables we can run.  If not, either
2068# the compiler is broken, or we cross compile.
2069echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2070echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2071# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2072# If not cross compiling, check that we can run a simple program.
2073if test "$cross_compiling" != yes; then
2074  if { ac_try='./$ac_file'
2075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2076  (eval $ac_try) 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }; }; then
2080    cross_compiling=no
2081  else
2082    if test "$cross_compiling" = maybe; then
2083        cross_compiling=yes
2084    else
2085        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&5
2088echo "$as_me: error: cannot run C compiled programs.
2089If you meant to cross compile, use \`--host'.
2090See \`config.log' for more details." >&2;}
2091   { (exit 1); exit 1; }; }
2092    fi
2093  fi
2094fi
2095echo "$as_me:$LINENO: result: yes" >&5
2096echo "${ECHO_T}yes" >&6
2097
2098rm -f a.out a.exe conftest$ac_cv_exeext b.out
2099ac_clean_files=$ac_clean_files_save
2100# Check the compiler produces executables we can run.  If not, either
2101# the compiler is broken, or we cross compile.
2102echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2103echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2104echo "$as_me:$LINENO: result: $cross_compiling" >&5
2105echo "${ECHO_T}$cross_compiling" >&6
2106
2107echo "$as_me:$LINENO: checking for suffix of executables" >&5
2108echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2110  (eval $ac_link) 2>&5
2111  ac_status=$?
2112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113  (exit $ac_status); }; then
2114  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2115# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2116# work properly (i.e., refer to `conftest.exe'), while it won't with
2117# `rm'.
2118for ac_file in conftest.exe conftest conftest.*; do
2119  test -f "$ac_file" || continue
2120  case $ac_file in
2121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2122    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2123          export ac_cv_exeext
2124          break;;
2125    * ) break;;
2126  esac
2127done
2128else
2129  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2132See \`config.log' for more details." >&2;}
2133   { (exit 1); exit 1; }; }
2134fi
2135
2136rm -f conftest$ac_cv_exeext
2137echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2138echo "${ECHO_T}$ac_cv_exeext" >&6
2139
2140rm -f conftest.$ac_ext
2141EXEEXT=$ac_cv_exeext
2142ac_exeext=$EXEEXT
2143echo "$as_me:$LINENO: checking for suffix of object files" >&5
2144echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2145if test "${ac_cv_objext+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  cat >conftest.$ac_ext <<_ACEOF
2149/* confdefs.h.  */
2150_ACEOF
2151cat confdefs.h >>conftest.$ac_ext
2152cat >>conftest.$ac_ext <<_ACEOF
2153/* end confdefs.h.  */
2154
2155int
2156main ()
2157{
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163rm -f conftest.o conftest.obj
2164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165  (eval $ac_compile) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; then
2169  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2170  case $ac_file in
2171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2172    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2173       break;;
2174  esac
2175done
2176else
2177  echo "$as_me: failed program was:" >&5
2178sed 's/^/| /' conftest.$ac_ext >&5
2179
2180{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2181See \`config.log' for more details." >&5
2182echo "$as_me: error: cannot compute suffix of object files: cannot compile
2183See \`config.log' for more details." >&2;}
2184   { (exit 1); exit 1; }; }
2185fi
2186
2187rm -f conftest.$ac_cv_objext conftest.$ac_ext
2188fi
2189echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2190echo "${ECHO_T}$ac_cv_objext" >&6
2191OBJEXT=$ac_cv_objext
2192ac_objext=$OBJEXT
2193echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2194echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2195if test "${ac_cv_c_compiler_gnu+set}" = set; then
2196  echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198  cat >conftest.$ac_ext <<_ACEOF
2199/* confdefs.h.  */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h.  */
2204
2205int
2206main ()
2207{
2208#ifndef __GNUC__
2209       choke me
2210#endif
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218  (eval $ac_compile) 2>conftest.er1
2219  ac_status=$?
2220  grep -v '^ *+' conftest.er1 >conftest.err
2221  rm -f conftest.er1
2222  cat conftest.err >&5
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); } &&
2225         { ac_try='test -z "$ac_c_werror_flag"
2226                         || test ! -s conftest.err'
2227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228  (eval $ac_try) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; } &&
2232         { ac_try='test -s conftest.$ac_objext'
2233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234  (eval $ac_try) 2>&5
2235  ac_status=$?
2236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237  (exit $ac_status); }; }; then
2238  ac_compiler_gnu=yes
2239else
2240  echo "$as_me: failed program was:" >&5
2241sed 's/^/| /' conftest.$ac_ext >&5
2242
2243ac_compiler_gnu=no
2244fi
2245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2246ac_cv_c_compiler_gnu=$ac_compiler_gnu
2247
2248fi
2249echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2250echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2251GCC=`test $ac_compiler_gnu = yes && echo yes`
2252ac_test_CFLAGS=${CFLAGS+set}
2253ac_save_CFLAGS=$CFLAGS
2254CFLAGS="-g"
2255echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2256echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2257if test "${ac_cv_prog_cc_g+set}" = set; then
2258  echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
2260  cat >conftest.$ac_ext <<_ACEOF
2261/* confdefs.h.  */
2262_ACEOF
2263cat confdefs.h >>conftest.$ac_ext
2264cat >>conftest.$ac_ext <<_ACEOF
2265/* end confdefs.h.  */
2266
2267int
2268main ()
2269{
2270
2271  ;
2272  return 0;
2273}
2274_ACEOF
2275rm -f conftest.$ac_objext
2276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277  (eval $ac_compile) 2>conftest.er1
2278  ac_status=$?
2279  grep -v '^ *+' conftest.er1 >conftest.err
2280  rm -f conftest.er1
2281  cat conftest.err >&5
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); } &&
2284         { ac_try='test -z "$ac_c_werror_flag"
2285                         || test ! -s conftest.err'
2286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287  (eval $ac_try) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); }; } &&
2291         { ac_try='test -s conftest.$ac_objext'
2292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293  (eval $ac_try) 2>&5
2294  ac_status=$?
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); }; }; then
2297  ac_cv_prog_cc_g=yes
2298else
2299  echo "$as_me: failed program was:" >&5
2300sed 's/^/| /' conftest.$ac_ext >&5
2301
2302ac_cv_prog_cc_g=no
2303fi
2304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2305fi
2306echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2307echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2308if test "$ac_test_CFLAGS" = set; then
2309  CFLAGS=$ac_save_CFLAGS
2310elif test $ac_cv_prog_cc_g = yes; then
2311  if test "$GCC" = yes; then
2312    CFLAGS="-g -O2"
2313  else
2314    CFLAGS="-g"
2315  fi
2316else
2317  if test "$GCC" = yes; then
2318    CFLAGS="-O2"
2319  else
2320    CFLAGS=
2321  fi
2322fi
2323echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2324echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2325if test "${ac_cv_prog_cc_stdc+set}" = set; then
2326  echo $ECHO_N "(cached) $ECHO_C" >&6
2327else
2328  ac_cv_prog_cc_stdc=no
2329ac_save_CC=$CC
2330cat >conftest.$ac_ext <<_ACEOF
2331/* confdefs.h.  */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h.  */
2336#include <stdarg.h>
2337#include <stdio.h>
2338#include <sys/types.h>
2339#include <sys/stat.h>
2340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2341struct buf { int x; };
2342FILE * (*rcsopen) (struct buf *, struct stat *, int);
2343static char *e (p, i)
2344     char **p;
2345     int i;
2346{
2347  return p[i];
2348}
2349static char *f (char * (*g) (char **, int), char **p, ...)
2350{
2351  char *s;
2352  va_list v;
2353  va_start (v,p);
2354  s = g (p, va_arg (v,int));
2355  va_end (v);
2356  return s;
2357}
2358
2359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2360   function prototypes and stuff, but not '\xHH' hex character constants.
2361   These don't provoke an error unfortunately, instead are silently treated
2362   as 'x'.  The following induces an error, until -std1 is added to get
2363   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2364   array size at least.  It's necessary to write '\x00'==0 to get something
2365   that's true only with -std1.  */
2366int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2367
2368int test (int i, double x);
2369struct s1 {int (*f) (int a);};
2370struct s2 {int (*f) (double a);};
2371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2372int argc;
2373char **argv;
2374int
2375main ()
2376{
2377return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2378  ;
2379  return 0;
2380}
2381_ACEOF
2382# Don't try gcc -ansi; that turns off useful extensions and
2383# breaks some systems' header files.
2384# AIX                   -qlanglvl=ansi
2385# Ultrix and OSF/1      -std1
2386# HP-UX 10.20 and later -Ae
2387# HP-UX older versions  -Aa -D_HPUX_SOURCE
2388# SVR4                  -Xc -D__EXTENSIONS__
2389for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2390do
2391  CC="$ac_save_CC $ac_arg"
2392  rm -f conftest.$ac_objext
2393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394  (eval $ac_compile) 2>conftest.er1
2395  ac_status=$?
2396  grep -v '^ *+' conftest.er1 >conftest.err
2397  rm -f conftest.er1
2398  cat conftest.err >&5
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); } &&
2401         { ac_try='test -z "$ac_c_werror_flag"
2402                         || test ! -s conftest.err'
2403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404  (eval $ac_try) 2>&5
2405  ac_status=$?
2406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407  (exit $ac_status); }; } &&
2408         { ac_try='test -s conftest.$ac_objext'
2409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410  (eval $ac_try) 2>&5
2411  ac_status=$?
2412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413  (exit $ac_status); }; }; then
2414  ac_cv_prog_cc_stdc=$ac_arg
2415break
2416else
2417  echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420fi
2421rm -f conftest.err conftest.$ac_objext
2422done
2423rm -f conftest.$ac_ext conftest.$ac_objext
2424CC=$ac_save_CC
2425
2426fi
2427
2428case "x$ac_cv_prog_cc_stdc" in
2429  x|xno)
2430    echo "$as_me:$LINENO: result: none needed" >&5
2431echo "${ECHO_T}none needed" >&6 ;;
2432  *)
2433    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2434echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2435    CC="$CC $ac_cv_prog_cc_stdc" ;;
2436esac
2437
2438# Some people use a C++ compiler to compile C.  Since we use `exit',
2439# in C++ we need to declare it.  In case someone uses the same compiler
2440# for both compiling C and C++ we need to have the C++ compiler decide
2441# the declaration of exit, since it's the most demanding environment.
2442cat >conftest.$ac_ext <<_ACEOF
2443#ifndef __cplusplus
2444  choke me
2445#endif
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  for ac_declaration in \
2470   '' \
2471   'extern "C" void std::exit (int) throw (); using std::exit;' \
2472   'extern "C" void std::exit (int); using std::exit;' \
2473   'extern "C" void exit (int) throw ();' \
2474   'extern "C" void exit (int);' \
2475   'void exit (int);'
2476do
2477  cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h.  */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h.  */
2483$ac_declaration
2484#include <stdlib.h>
2485int
2486main ()
2487{
2488exit (42);
2489  ;
2490  return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext
2494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495  (eval $ac_compile) 2>conftest.er1
2496  ac_status=$?
2497  grep -v '^ *+' conftest.er1 >conftest.err
2498  rm -f conftest.er1
2499  cat conftest.err >&5
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); } &&
2502         { ac_try='test -z "$ac_c_werror_flag"
2503                         || test ! -s conftest.err'
2504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505  (eval $ac_try) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; } &&
2509         { ac_try='test -s conftest.$ac_objext'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; }; then
2515  :
2516else
2517  echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520continue
2521fi
2522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523  cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529$ac_declaration
2530int
2531main ()
2532{
2533exit (42);
2534  ;
2535  return 0;
2536}
2537_ACEOF
2538rm -f conftest.$ac_objext
2539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540  (eval $ac_compile) 2>conftest.er1
2541  ac_status=$?
2542  grep -v '^ *+' conftest.er1 >conftest.err
2543  rm -f conftest.er1
2544  cat conftest.err >&5
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); } &&
2547         { ac_try='test -z "$ac_c_werror_flag"
2548                         || test ! -s conftest.err'
2549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550  (eval $ac_try) 2>&5
2551  ac_status=$?
2552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; } &&
2554         { ac_try='test -s conftest.$ac_objext'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; }; then
2560  break
2561else
2562  echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565fi
2566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2567done
2568rm -f conftest*
2569if test -n "$ac_declaration"; then
2570  echo '#ifdef __cplusplus' >>confdefs.h
2571  echo $ac_declaration      >>confdefs.h
2572  echo '#endif'             >>confdefs.h
2573fi
2574
2575else
2576  echo "$as_me: failed program was:" >&5
2577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579fi
2580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_ext=c
2582ac_cpp='$CPP $CPPFLAGS'
2583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586
2587if test -z "$CC" ; then
2588  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2589echo "$as_me: error: Failed to find a C compiler!" >&2;}
2590   { (exit 1); exit 1; }; }
2591fi
2592# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2593case "$CC" in
2594  cl* | */cl* | CL* | */CL* )
2595    if test "$ac_cv_prog_cc_g" = yes ; then
2596      ac_cv_prog_cc_g=no
2597      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2598echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2599    fi ;;
2600esac
2601CFLAGS="$save_cflags"
2602
2603# Check if a project specific CFLAGS variable has been set
2604if test x$COIN_PRJCT != x; then
2605  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2606  if test x$coin_tmp = xset; then
2607    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2608  fi
2609fi
2610
2611if test x"$CFLAGS" = x; then
2612
2613  coin_add_cflags=
2614  coin_opt_cflags=
2615  coin_dbg_cflags=
2616  coin_warn_cflags=
2617
2618  if test "$GCC" = "yes"; then
2619    case "$CC" in
2620      icc* | */icc*)
2621        ;;
2622      *)
2623        coin_opt_cflags="-O3 -fomit-frame-pointer"
2624        coin_add_cflags="-pipe"
2625        coin_dbg_cflags="-g"
2626        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2627        case $enable_doscompile in
2628          mingw)
2629            CFLAGS="-mno-cygwin"
2630            cat >conftest.$ac_ext <<_ACEOF
2631/* confdefs.h.  */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h.  */
2636
2637int
2638main ()
2639{
2640int i=0; i++;
2641  ;
2642  return 0;
2643}
2644_ACEOF
2645rm -f conftest.$ac_objext conftest$ac_exeext
2646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2647  (eval $ac_link) 2>conftest.er1
2648  ac_status=$?
2649  grep -v '^ *+' conftest.er1 >conftest.err
2650  rm -f conftest.er1
2651  cat conftest.err >&5
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); } &&
2654         { ac_try='test -z "$ac_c_werror_flag"
2655                         || test ! -s conftest.err'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; } &&
2661         { ac_try='test -s conftest$ac_exeext'
2662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663  (eval $ac_try) 2>&5
2664  ac_status=$?
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); }; }; then
2667  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2668else
2669  echo "$as_me: failed program was:" >&5
2670sed 's/^/| /' conftest.$ac_ext >&5
2671
2672fi
2673rm -f conftest.err conftest.$ac_objext \
2674      conftest$ac_exeext conftest.$ac_ext
2675            CFLAGS=
2676          ;;
2677        esac
2678    esac
2679  fi
2680  if test -z "$coin_opt_cflags"; then
2681    case $build in
2682      *-cygwin* | *-mingw*)
2683        case "$CC" in
2684          cl* | */cl* | CL* | */CL*)
2685            coin_opt_cflags='-MT -O2'
2686            coin_add_cflags='-nologo -wd4996'
2687            coin_dbg_cflags='-MTd'
2688            ;;
2689        esac
2690        ;;
2691      *-linux-*)
2692        case "$CC" in
2693          icc* | */icc*)
2694            coin_opt_cflags="-O3 -ip"
2695            coin_add_cflags=""
2696            coin_dbg_cflags="-g"
2697            # Check if -i_dynamic is necessary (for new glibc library)
2698            CFLAGS=
2699            cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h.  */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h.  */
2705
2706int
2707main ()
2708{
2709int i=0; i++;
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714rm -f conftest.$ac_objext conftest$ac_exeext
2715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2716  (eval $ac_link) 2>conftest.er1
2717  ac_status=$?
2718  grep -v '^ *+' conftest.er1 >conftest.err
2719  rm -f conftest.er1
2720  cat conftest.err >&5
2721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722  (exit $ac_status); } &&
2723         { ac_try='test -z "$ac_c_werror_flag"
2724                         || test ! -s conftest.err'
2725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726  (eval $ac_try) 2>&5
2727  ac_status=$?
2728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729  (exit $ac_status); }; } &&
2730         { ac_try='test -s conftest$ac_exeext'
2731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732  (eval $ac_try) 2>&5
2733  ac_status=$?
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); }; }; then
2736  :
2737else
2738  echo "$as_me: failed program was:" >&5
2739sed 's/^/| /' conftest.$ac_ext >&5
2740
2741coin_add_cflags="-i_dynamic $coin_add_cflags"
2742fi
2743rm -f conftest.err conftest.$ac_objext \
2744      conftest$ac_exeext conftest.$ac_ext
2745            ;;
2746          pgcc* | */pgcc*)
2747            coin_opt_cflags="-fast"
2748            coin_add_cflags="-Kieee -pc 64"
2749            coin_dbg_cflags="-g"
2750            ;;
2751        esac
2752        ;;
2753      *-ibm-*)
2754        case "$CC" in
2755          xlc* | */xlc* | mpxlc* | */mpxlc*)
2756            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2757            coin_add_cflags="-bmaxdata:0x80000000"
2758            coin_dbg_cflags="-g"
2759          ;;
2760        esac
2761        ;;
2762      *-hp-*)
2763        coin_opt_cflags="-O"
2764        coin_add_cflags="-Ae"
2765        coin_dbg_cflags="-g"
2766        ;;
2767      *-sun-*)
2768        coin_opt_cflags="-xO4"
2769        coin_dbg_cflags="-g"
2770        ;;
2771      *-sgi-*)
2772        coin_opt_cflags="-O -OPT:Olimit=0"
2773        coin_dbg_cflags="-g"
2774        ;;
2775    esac
2776  fi
2777
2778  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2779    coin_dbg_cflags="-g"
2780  fi
2781
2782  if test -z "$coin_opt_cflags"; then
2783    # Try if -O option works if nothing else is set
2784    CFLAGS="-O"
2785    cat >conftest.$ac_ext <<_ACEOF
2786/* confdefs.h.  */
2787_ACEOF
2788cat confdefs.h >>conftest.$ac_ext
2789cat >>conftest.$ac_ext <<_ACEOF
2790/* end confdefs.h.  */
2791
2792int
2793main ()
2794{
2795int i=0; i++;
2796  ;
2797  return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext conftest$ac_exeext
2801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2802  (eval $ac_link) 2>conftest.er1
2803  ac_status=$?
2804  grep -v '^ *+' conftest.er1 >conftest.err
2805  rm -f conftest.er1
2806  cat conftest.err >&5
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); } &&
2809         { ac_try='test -z "$ac_c_werror_flag"
2810                         || test ! -s conftest.err'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; } &&
2816         { ac_try='test -s conftest$ac_exeext'
2817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818  (eval $ac_try) 2>&5
2819  ac_status=$?
2820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821  (exit $ac_status); }; }; then
2822  coin_opt_cflags="-O"
2823else
2824  echo "$as_me: failed program was:" >&5
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
2827fi
2828rm -f conftest.err conftest.$ac_objext \
2829      conftest$ac_exeext conftest.$ac_ext
2830  fi
2831
2832  # if PM doesn't want the warning messages, take them out
2833  if test x"$coin_skip_warn_cflags" = xyes; then
2834    coin_warn_cflags=
2835  fi
2836
2837  if test x${DBG_CFLAGS+set} != xset; then
2838    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2839  fi
2840  if test x${OPT_CFLAGS+set} != xset; then
2841    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2842  fi
2843
2844  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2845  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2846
2847  if test "$coin_debug_compile" = "true"; then
2848    CFLAGS="$DBG_CFLAGS"
2849  else
2850    CFLAGS="$OPT_CFLAGS"
2851  fi
2852else
2853  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2854  if test x${DBG_CFLAGS+set} != xset; then
2855    DBG_CFLAGS="$CFLAGS"
2856  fi
2857  if test x${OPT_CFLAGS+set} != xset; then
2858    OPT_CFLAGS="$CFLAGS"
2859  fi
2860fi
2861
2862# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2863
2864case "$CFLAGS" in
2865  *-mno-cygwin*)
2866    if test x${CPPFLAGS+set} != xset ; then
2867      CPPFLAGS="-mno-cygwin"
2868    else
2869      case "$CPPFLAGS" in
2870        *-mno-cygwin*)
2871          ;;
2872        *)
2873          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2874          ;;
2875      esac
2876    fi ;;
2877esac
2878
2879# Try if CFLAGS works
2880save_CFLAGS="$CFLAGS"
2881cat >conftest.$ac_ext <<_ACEOF
2882/* confdefs.h.  */
2883_ACEOF
2884cat confdefs.h >>conftest.$ac_ext
2885cat >>conftest.$ac_ext <<_ACEOF
2886/* end confdefs.h.  */
2887
2888int
2889main ()
2890{
2891int i=0; i++;
2892  ;
2893  return 0;
2894}
2895_ACEOF
2896rm -f conftest.$ac_objext conftest$ac_exeext
2897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2898  (eval $ac_link) 2>conftest.er1
2899  ac_status=$?
2900  grep -v '^ *+' conftest.er1 >conftest.err
2901  rm -f conftest.er1
2902  cat conftest.err >&5
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); } &&
2905         { ac_try='test -z "$ac_c_werror_flag"
2906                         || test ! -s conftest.err'
2907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908  (eval $ac_try) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }; } &&
2912         { ac_try='test -s conftest$ac_exeext'
2913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914  (eval $ac_try) 2>&5
2915  ac_status=$?
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); }; }; then
2918  :
2919else
2920  echo "$as_me: failed program was:" >&5
2921sed 's/^/| /' conftest.$ac_ext >&5
2922
2923CFLAGS=
2924fi
2925rm -f conftest.err conftest.$ac_objext \
2926      conftest$ac_exeext conftest.$ac_ext
2927if test -z "$CFLAGS"; then
2928  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
2929echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2930  CFLAGS='-O'
2931  cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h.  */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h.  */
2937
2938int
2939main ()
2940{
2941int i=0; i++;
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext conftest$ac_exeext
2947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2948  (eval $ac_link) 2>conftest.er1
2949  ac_status=$?
2950  grep -v '^ *+' conftest.er1 >conftest.err
2951  rm -f conftest.er1
2952  cat conftest.err >&5
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); } &&
2955         { ac_try='test -z "$ac_c_werror_flag"
2956                         || test ! -s conftest.err'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; } &&
2962         { ac_try='test -s conftest$ac_exeext'
2963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964  (eval $ac_try) 2>&5
2965  ac_status=$?
2966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967  (exit $ac_status); }; }; then
2968  :
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973CFLAGS=
2974fi
2975rm -f conftest.err conftest.$ac_objext \
2976      conftest$ac_exeext conftest.$ac_ext
2977  if test -z "$CFLAGS"; then
2978    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
2979echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
2980  fi
2981fi
2982
2983{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2984echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2985
2986
2987if test x"$MPICC" = x; then :; else
2988  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2989echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2990  CC="$MPICC"
2991fi
2992
2993# Correct ADDLIBS initialization if we are using the MS compiler
2994case "$CC" in
2995  cl* | */cl* | CL* | */CL*)
2996    ADDLIBS=
2997    case $build in
2998  *-mingw*)
2999    if test "${LD+set}" = set; then :; else
3000      LD=link
3001    fi
3002    ;;
3003 esac
3004 case $enable_doscompile in
3005   msvc)
3006     if test "x${LD+set}" = xset; then :; else
3007       LD=link
3008     fi
3009     ;;
3010 esac
3011
3012    ;;
3013esac
3014
3015ac_ext=c
3016ac_cpp='$CPP $CPPFLAGS'
3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021
3022case $build in
3023  *-cygwin* | *-mingw*)
3024     if test "$enable_doscompile" = msvc ; then
3025       coin_f77_comps="ifort fl32"
3026     else
3027       coin_f77_comps="gfortran g77 ifort fl32"
3028     fi ;;
3029  sparc-sun-solaris*)
3030     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3031  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3032 esac
3033
3034
3035
3036
3037
3038
3039ac_ext=f
3040ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3041ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3043
3044
3045
3046
3047
3048
3049coin_has_f77=yes
3050
3051save_fflags="$FFLAGS"
3052
3053# We delete the cached value, since the test might not have been
3054# performed with our choice of compilers earlier
3055$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3056
3057# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3058# coin_f77_comps to see if there's a program that matches one of the names.
3059# If there's no such program, F77 = unavailable. If we match the name,
3060# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3061# compiler.
3062# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3063
3064
3065{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3066echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3067for ac_prog in $coin_f77_comps
3068do
3069  # Extract the first word of "$ac_prog", so it can be a program name with args.
3070set dummy $ac_prog; ac_word=$2
3071echo "$as_me:$LINENO: checking for $ac_word" >&5
3072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073if test "${ac_cv_prog_F77+set}" = set; then
3074  echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076  if test -n "$F77"; then
3077  ac_cv_prog_F77="$F77" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084  for ac_exec_ext in '' $ac_executable_extensions; do
3085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086    ac_cv_prog_F77="$ac_prog"
3087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088    break 2
3089  fi
3090done
3091done
3092
3093fi
3094fi
3095F77=$ac_cv_prog_F77
3096if test -n "$F77"; then
3097  echo "$as_me:$LINENO: result: $F77" >&5
3098echo "${ECHO_T}$F77" >&6
3099else
3100  echo "$as_me:$LINENO: result: no" >&5
3101echo "${ECHO_T}no" >&6
3102fi
3103
3104  test -n "$F77" && break
3105done
3106test -n "$F77" || F77="unavailable"
3107
3108
3109if test "$F77" != "unavailable" ; then
3110  ac_ext=f
3111ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3112ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3114if test -n "$ac_tool_prefix"; then
3115  for ac_prog in $coin_f77_comps
3116  do
3117    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_F77+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  if test -n "$F77"; then
3125  ac_cv_prog_F77="$F77" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132  for ac_exec_ext in '' $ac_executable_extensions; do
3133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139done
3140
3141fi
3142fi
3143F77=$ac_cv_prog_F77
3144if test -n "$F77"; then
3145  echo "$as_me:$LINENO: result: $F77" >&5
3146echo "${ECHO_T}$F77" >&6
3147else
3148  echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
3151
3152    test -n "$F77" && break
3153  done
3154fi
3155if test -z "$F77"; then
3156  ac_ct_F77=$F77
3157  for ac_prog in $coin_f77_comps
3158do
3159  # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3164  echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166  if test -n "$ac_ct_F77"; then
3167  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174  for ac_exec_ext in '' $ac_executable_extensions; do
3175  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    ac_cv_prog_ac_ct_F77="$ac_prog"
3177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181done
3182
3183fi
3184fi
3185ac_ct_F77=$ac_cv_prog_ac_ct_F77
3186if test -n "$ac_ct_F77"; then
3187  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3188echo "${ECHO_T}$ac_ct_F77" >&6
3189else
3190  echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194  test -n "$ac_ct_F77" && break
3195done
3196
3197  F77=$ac_ct_F77
3198fi
3199
3200
3201# Provide some information about the compiler.
3202echo "$as_me:3202:" \
3203     "checking for Fortran 77 compiler version" >&5
3204ac_compiler=`set X $ac_compile; echo $2`
3205{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3206  (eval $ac_compiler --version </dev/null >&5) 2>&5
3207  ac_status=$?
3208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209  (exit $ac_status); }
3210{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3211  (eval $ac_compiler -v </dev/null >&5) 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }
3215{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3216  (eval $ac_compiler -V </dev/null >&5) 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }
3220rm -f a.out
3221
3222# If we don't use `.F' as extension, the preprocessor is not run on the
3223# input file.  (Note that this only needs to work for GNU compilers.)
3224ac_save_ext=$ac_ext
3225ac_ext=F
3226echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3227echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3228if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  cat >conftest.$ac_ext <<_ACEOF
3232      program main
3233#ifndef __GNUC__
3234       choke me
3235#endif
3236
3237      end
3238_ACEOF
3239rm -f conftest.$ac_objext
3240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241  (eval $ac_compile) 2>conftest.er1
3242  ac_status=$?
3243  grep -v '^ *+' conftest.er1 >conftest.err
3244  rm -f conftest.er1
3245  cat conftest.err >&5
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); } &&
3248         { ac_try='test -z "$ac_f77_werror_flag"
3249                         || test ! -s conftest.err'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; } &&
3255         { ac_try='test -s conftest.$ac_objext'
3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257  (eval $ac_try) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; }; then
3261  ac_compiler_gnu=yes
3262else
3263  echo "$as_me: failed program was:" >&5
3264sed 's/^/| /' conftest.$ac_ext >&5
3265
3266ac_compiler_gnu=no
3267fi
3268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3269ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3270
3271fi
3272echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3273echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3274ac_ext=$ac_save_ext
3275ac_test_FFLAGS=${FFLAGS+set}
3276ac_save_FFLAGS=$FFLAGS
3277FFLAGS=
3278echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3279echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3280if test "${ac_cv_prog_f77_g+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  FFLAGS=-g
3284cat >conftest.$ac_ext <<_ACEOF
3285      program main
3286
3287      end
3288_ACEOF
3289rm -f conftest.$ac_objext
3290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291  (eval $ac_compile) 2>conftest.er1
3292  ac_status=$?
3293  grep -v '^ *+' conftest.er1 >conftest.err
3294  rm -f conftest.er1
3295  cat conftest.err >&5
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); } &&
3298         { ac_try='test -z "$ac_f77_werror_flag"
3299                         || test ! -s conftest.err'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; } &&
3305         { ac_try='test -s conftest.$ac_objext'
3306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307  (eval $ac_try) 2>&5
3308  ac_status=$?
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); }; }; then
3311  ac_cv_prog_f77_g=yes
3312else
3313  echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316ac_cv_prog_f77_g=no
3317fi
3318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319
3320fi
3321echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3322echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3323if test "$ac_test_FFLAGS" = set; then
3324  FFLAGS=$ac_save_FFLAGS
3325elif test $ac_cv_prog_f77_g = yes; then
3326  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3327    FFLAGS="-g -O2"
3328  else
3329    FFLAGS="-g"
3330  fi
3331else
3332  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3333    FFLAGS="-O2"
3334  else
3335    FFLAGS=
3336  fi
3337fi
3338
3339G77=`test $ac_compiler_gnu = yes && echo yes`
3340ac_ext=f
3341ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3342ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3344
3345else
3346  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3347echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3348fi
3349
3350FFLAGS="$save_fflags"
3351
3352# Check if a project specific FFLAGS variable has been set
3353if test x$COIN_PRJCT != x; then
3354  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3355  if test x$coin_tmp = xset; then
3356    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3357  fi
3358fi
3359
3360if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3361
3362  coin_add_fflags=
3363  coin_opt_fflags=
3364  coin_dbg_fflags=
3365  coin_warn_fflags=
3366
3367  if test "$G77" = "yes"; then
3368    coin_opt_fflags="-O3 -fomit-frame-pointer"
3369    coin_add_fflags="-pipe"
3370    coin_dbg_fflags="-g"
3371    case $enable_doscompile in
3372      mingw)
3373        FFLAGS="-mno-cygwin"
3374        cat >conftest.$ac_ext <<_ACEOF
3375      program main
3376      write(*,*) 'Hello world'
3377      end
3378_ACEOF
3379rm -f conftest.$ac_objext conftest$ac_exeext
3380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3381  (eval $ac_link) 2>conftest.er1
3382  ac_status=$?
3383  grep -v '^ *+' conftest.er1 >conftest.err
3384  rm -f conftest.er1
3385  cat conftest.err >&5
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); } &&
3388         { ac_try='test -z "$ac_f77_werror_flag"
3389                         || test ! -s conftest.err'
3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391  (eval $ac_try) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; } &&
3395         { ac_try='test -s conftest$ac_exeext'
3396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397  (eval $ac_try) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; }; then
3401  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3402else
3403  echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406fi
3407rm -f conftest.err conftest.$ac_objext \
3408      conftest$ac_exeext conftest.$ac_ext
3409        FFLAGS=
3410      ;;
3411    esac
3412  else
3413    case $build in
3414      *-cygwin* | *-mingw*)
3415        case $F77 in
3416          ifort* | */ifort* | IFORT* | */IFORT* )
3417            coin_opt_fflags='-O3'
3418            coin_add_fflags='-nologo -MT'
3419            coin_dbg_fflags='-debug'
3420          ;;
3421        esac
3422        ;;
3423      *-linux-*)
3424        case $F77 in
3425          ifc* | */ifc* | ifort* | */ifort*)
3426            coin_opt_fflags="-O3 -ip"
3427            coin_add_fflags="-cm -w90 -w95"
3428            coin_dbg_fflags="-g -CA -CB -CS"
3429            # Check if -i_dynamic is necessary (for new glibc library)
3430            FFLAGS=
3431            cat >conftest.$ac_ext <<_ACEOF
3432      program main
3433      write(*,*) 'Hello world'
3434      end
3435_ACEOF
3436rm -f conftest.$ac_objext conftest$ac_exeext
3437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438  (eval $ac_link) 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } &&
3445         { ac_try='test -z "$ac_f77_werror_flag"
3446                         || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452         { ac_try='test -s conftest$ac_exeext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  :
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463coin_add_fflags="-i_dynamic $coin_add_fflags"
3464fi
3465rm -f conftest.err conftest.$ac_objext \
3466      conftest$ac_exeext conftest.$ac_ext
3467            ;;
3468          pgf77* | */pgf77* | pgf90* | */pgf90*)
3469            coin_opt_fflags="-fast"
3470            coin_add_fflags="-Kieee -pc 64"
3471            coin_dbg_fflags="-g"
3472          ;;
3473        esac
3474        ;;
3475      *-ibm-*)
3476        case "$F77" in
3477          xlf* | */xlf* | mpxlf* | */mpxlf* )
3478            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3479            coin_add_fflags="-bmaxdata:0x80000000"
3480            coin_dbg_fflags="-g -C"
3481            ;;
3482        esac
3483        ;;
3484      *-hp-*)
3485        coin_opt_fflags="+O3"
3486        coin_add_fflags="+U77"
3487        coin_dbg_fflags="-C -g"
3488        ;;
3489      *-sun-*)
3490        coin_opt_fflags="-O4"
3491        coin_dbg_fflags="-g"
3492        ;;
3493      *-sgi-*)
3494        coin_opt_fflags="-O5 -OPT:Olimit=0"
3495        coin_dbg_fflags="-g"
3496        ;;
3497    esac
3498  fi
3499
3500  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3501    coin_dbg_fflags="-g"
3502  fi
3503
3504  if test -z "$coin_opt_fflags"; then
3505    # Try if -O option works if nothing else is set
3506    FFLAGS=-O
3507    cat >conftest.$ac_ext <<_ACEOF
3508      program main
3509      integer i
3510      end
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514  (eval $ac_link) 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } &&
3521         { ac_try='test -z "$ac_f77_werror_flag"
3522                         || test ! -s conftest.err'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; } &&
3528         { ac_try='test -s conftest$ac_exeext'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; }; then
3534  coin_opt_fflags="-O"
3535else
3536  echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539fi
3540rm -f conftest.err conftest.$ac_objext \
3541      conftest$ac_exeext conftest.$ac_ext
3542  fi
3543
3544  # if PM doesn't want the warning messages, take them out
3545  if test x"$coin_skip_warn_fflags" = xyes; then
3546    coin_warn_fflags=
3547  fi
3548
3549  if test x${DBG_FFLAGS+set} != xset; then
3550    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3551  fi
3552  if test x${OPT_FFLAGS+set} != xset; then
3553    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3554  fi
3555
3556  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3557  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3558
3559  if test "$coin_debug_compile" = "true"; then
3560    FFLAGS="$DBG_FFLAGS"
3561  else
3562    FFLAGS="$OPT_FFLAGS"
3563  fi
3564else
3565  FFLAGS="$FFLAGS $ADD_FFLAGS"
3566  if test x${DBG_FFLAGS+set} != xset; then
3567    DBG_FFLAGS="$FFLAGS"
3568  fi
3569  if test x${OPT_FFLAGS+set} != xset; then
3570    OPT_FFLAGS="$FFLAGS"
3571  fi
3572fi
3573
3574# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3575case "$FFLAGS" in
3576  *-mno-cygwin*)
3577    if test x${CPPFLAGS+set} != xset ; then
3578      CPPFLAGS="-mno-cygwin"
3579    else
3580      case "$CPPFLAGS" in
3581        *-mno-cygwin*)
3582          ;;
3583        *)
3584          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3585          ;;
3586      esac
3587    fi ;;
3588esac
3589
3590# Try if FFLAGS works
3591if test "$F77" != "unavailable" ; then
3592  cat >conftest.$ac_ext <<_ACEOF
3593      program main
3594      integer i
3595      end
3596_ACEOF
3597rm -f conftest.$ac_objext conftest$ac_exeext
3598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3599  (eval $ac_link) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_f77_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest$ac_exeext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  :
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624FFLAGS=
3625fi
3626rm -f conftest.err conftest.$ac_objext \
3627      conftest$ac_exeext conftest.$ac_ext
3628  if test -z "$FFLAGS"; then
3629    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
3630echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
3631    FFLAGS='-O'
3632    cat >conftest.$ac_ext <<_ACEOF
3633      program main
3634      integer i
3635      end
3636_ACEOF
3637rm -f conftest.$ac_objext conftest$ac_exeext
3638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3639  (eval $ac_link) 2>conftest.er1
3640  ac_status=$?
3641  grep -v '^ *+' conftest.er1 >conftest.err
3642  rm -f conftest.er1
3643  cat conftest.err >&5
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); } &&
3646         { ac_try='test -z "$ac_f77_werror_flag"
3647                         || test ! -s conftest.err'
3648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649  (eval $ac_try) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; } &&
3653         { ac_try='test -s conftest$ac_exeext'
3654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655  (eval $ac_try) 2>&5
3656  ac_status=$?
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); }; }; then
3659  :
3660else
3661  echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664FFLAGS=
3665fi
3666rm -f conftest.err conftest.$ac_objext \
3667      conftest$ac_exeext conftest.$ac_ext
3668    if test -z "$FFLAGS"; then
3669      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
3670echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
3671    fi
3672  fi
3673fi
3674
3675{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3676echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3677
3678
3679if test x"$MPIF77" = x; then :; else
3680  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3681echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3682  F77="$MPIF77"
3683fi
3684
3685case "$F77" in
3686  ifort* | */ifort* | IFORT* | */IFORT*)
3687    case $build in
3688  *-mingw*)
3689    if test "${LD+set}" = set; then :; else
3690      LD=link
3691    fi
3692    ;;
3693 esac
3694 case $enable_doscompile in
3695   msvc)
3696     if test "x${LD+set}" = xset; then :; else
3697       LD=link
3698     fi
3699     ;;
3700 esac
3701
3702    ;;
3703esac
3704
3705ac_ext=c
3706ac_cpp='$CPP $CPPFLAGS'
3707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711
3712
3713# Initialize automake
3714echo "$as_me:$LINENO: checking for egrep" >&5
3715echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3716if test "${ac_cv_prog_egrep+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3720    then ac_cv_prog_egrep='grep -E'
3721    else ac_cv_prog_egrep='egrep'
3722    fi
3723fi
3724echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3725echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3726 EGREP=$ac_cv_prog_egrep
3727
3728
3729am__api_version="1.9"
3730# Find a good install program.  We prefer a C program (faster),
3731# so one script is as good as another.  But avoid the broken or
3732# incompatible versions:
3733# SysV /etc/install, /usr/sbin/install
3734# SunOS /usr/etc/install
3735# IRIX /sbin/install
3736# AIX /bin/install
3737# AmigaOS /C/install, which installs bootblocks on floppy discs
3738# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3739# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3740# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3741# OS/2's system install, which has a completely different semantic
3742# ./install, which can be erroneously created by make from ./install.sh.
3743echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3744echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3745if test -z "$INSTALL"; then
3746if test "${ac_cv_path_install+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752  IFS=$as_save_IFS
3753  test -z "$as_dir" && as_dir=.
3754  # Account for people who put trailing slashes in PATH elements.
3755case $as_dir/ in
3756  ./ | .// | /cC/* | \
3757  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3758  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3759  /usr/ucb/* ) ;;
3760  *)
3761    # OSF1 and SCO ODT 3.0 have their own names for install.
3762    # Don't use installbsd from OSF since it installs stuff as root
3763    # by default.
3764    for ac_prog in ginstall scoinst install; do
3765      for ac_exec_ext in '' $ac_executable_extensions; do
3766        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3767          if test $ac_prog = install &&
3768            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3769            # AIX install.  It has an incompatible calling convention.
3770            :
3771          elif test $ac_prog = install &&
3772            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3773            # program-specific install script used by HP pwplus--don't use.
3774            :
3775          else
3776            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3777            break 3
3778          fi
3779        fi
3780      done
3781    done
3782    ;;
3783esac
3784done
3785
3786
3787fi
3788  if test "${ac_cv_path_install+set}" = set; then
3789    INSTALL=$ac_cv_path_install
3790  else
3791    # As a last resort, use the slow shell script.  We don't cache a
3792    # path for INSTALL within a source directory, because that will
3793    # break other packages using the cache if that directory is
3794    # removed, or if the path is relative.
3795    INSTALL=$ac_install_sh
3796  fi
3797fi
3798echo "$as_me:$LINENO: result: $INSTALL" >&5
3799echo "${ECHO_T}$INSTALL" >&6
3800
3801# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3802# It thinks the first close brace ends the variable substitution.
3803test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3804
3805test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3806
3807test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3808
3809echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3810echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3811# Just in case
3812sleep 1
3813echo timestamp > conftest.file
3814# Do `set' in a subshell so we don't clobber the current shell's
3815# arguments.  Must try -L first in case configure is actually a
3816# symlink; some systems play weird games with the mod time of symlinks
3817# (eg FreeBSD returns the mod time of the symlink's containing
3818# directory).
3819if (
3820   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3821   if test "$*" = "X"; then
3822      # -L didn't work.
3823      set X `ls -t $srcdir/configure conftest.file`
3824   fi
3825   rm -f conftest.file
3826   if test "$*" != "X $srcdir/configure conftest.file" \
3827      && test "$*" != "X conftest.file $srcdir/configure"; then
3828
3829      # If neither matched, then we have a broken ls.  This can happen
3830      # if, for instance, CONFIG_SHELL is bash and it inherits a
3831      # broken ls alias from the environment.  This has actually
3832      # happened.  Such a system could not be considered "sane".
3833      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3834alias in your environment" >&5
3835echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3836alias in your environment" >&2;}
3837   { (exit 1); exit 1; }; }
3838   fi
3839
3840   test "$2" = conftest.file
3841   )
3842then
3843   # Ok.
3844   :
3845else
3846   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3847Check your system clock" >&5
3848echo "$as_me: error: newly created file is older than distributed files!
3849Check your system clock" >&2;}
3850   { (exit 1); exit 1; }; }
3851fi
3852echo "$as_me:$LINENO: result: yes" >&5
3853echo "${ECHO_T}yes" >&6
3854test "$program_prefix" != NONE &&
3855  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3856# Use a double $ so make ignores it.
3857test "$program_suffix" != NONE &&
3858  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3859# Double any \ or $.  echo might interpret backslashes.
3860# By default was `s,x,x', remove it if useless.
3861cat <<\_ACEOF >conftest.sed
3862s/[\\$]/&&/g;s/;s,x,x,$//
3863_ACEOF
3864program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3865rm conftest.sed
3866
3867# expand $ac_aux_dir to an absolute path
3868am_aux_dir=`cd $ac_aux_dir && pwd`
3869
3870test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3871# Use eval to expand $SHELL
3872if eval "$MISSING --run true"; then
3873  am_missing_run="$MISSING --run "
3874else
3875  am_missing_run=
3876  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3877echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3878fi
3879
3880if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3881  # We used to keeping the `.' as first argument, in order to
3882  # allow $(mkdir_p) to be used without argument.  As in
3883  #   $(mkdir_p) $(somedir)
3884  # where $(somedir) is conditionally defined.  However this is wrong
3885  # for two reasons:
3886  #  1. if the package is installed by a user who cannot write `.'
3887  #     make install will fail,
3888  #  2. the above comment should most certainly read
3889  #     $(mkdir_p) $(DESTDIR)$(somedir)
3890  #     so it does not work when $(somedir) is undefined and
3891  #     $(DESTDIR) is not.
3892  #  To support the latter case, we have to write
3893  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3894  #  so the `.' trick is pointless.
3895  mkdir_p='mkdir -p --'
3896else
3897  # On NextStep and OpenStep, the `mkdir' command does not
3898  # recognize any option.  It will interpret all options as
3899  # directories to create, and then abort because `.' already
3900  # exists.
3901  for d in ./-p ./--version;
3902  do
3903    test -d $d && rmdir $d
3904  done
3905  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3906  if test -f "$ac_aux_dir/mkinstalldirs"; then
3907    mkdir_p='$(mkinstalldirs)'
3908  else
3909    mkdir_p='$(install_sh) -d'
3910  fi
3911fi
3912
3913for ac_prog in gawk mawk nawk awk
3914do
3915  # Extract the first word of "$ac_prog", so it can be a program name with args.
3916set dummy $ac_prog; ac_word=$2
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919if test "${ac_cv_prog_AWK+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922  if test -n "$AWK"; then
3923  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928  IFS=$as_save_IFS
3929  test -z "$as_dir" && as_dir=.
3930  for ac_exec_ext in '' $ac_executable_extensions; do
3931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932    ac_cv_prog_AWK="$ac_prog"
3933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934    break 2
3935  fi
3936done
3937done
3938
3939fi
3940fi
3941AWK=$ac_cv_prog_AWK
3942if test -n "$AWK"; then
3943  echo "$as_me:$LINENO: result: $AWK" >&5
3944echo "${ECHO_T}$AWK" >&6
3945else
3946  echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
3948fi
3949
3950  test -n "$AWK" && break
3951done
3952
3953echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3954echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3955set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3956if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  cat >conftest.make <<\_ACEOF
3960all:
3961        @echo 'ac_maketemp="$(MAKE)"'
3962_ACEOF
3963# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3964eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3965if test -n "$ac_maketemp"; then
3966  eval ac_cv_prog_make_${ac_make}_set=yes
3967else
3968  eval ac_cv_prog_make_${ac_make}_set=no
3969fi
3970rm -f conftest.make
3971fi
3972if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3973  echo "$as_me:$LINENO: result: yes" >&5
3974echo "${ECHO_T}yes" >&6
3975  SET_MAKE=
3976else
3977  echo "$as_me:$LINENO: result: no" >&5
3978echo "${ECHO_T}no" >&6
3979  SET_MAKE="MAKE=${MAKE-make}"
3980fi
3981
3982rm -rf .tst 2>/dev/null
3983mkdir .tst 2>/dev/null
3984if test -d .tst; then
3985  am__leading_dot=.
3986else
3987  am__leading_dot=_
3988fi
3989rmdir .tst 2>/dev/null
3990
3991DEPDIR="${am__leading_dot}deps"
3992
3993          ac_config_commands="$ac_config_commands depfiles"
3994
3995
3996am_make=${MAKE-make}
3997cat > confinc << 'END'
3998am__doit:
3999        @echo done
4000.PHONY: am__doit
4001END
4002# If we don't find an include directive, just comment out the code.
4003echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4004echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4005am__include="#"
4006am__quote=
4007_am_result=none
4008# First try GNU make style include.
4009echo "include confinc" > confmf
4010# We grep out `Entering directory' and `Leaving directory'
4011# messages which can occur if `w' ends up in MAKEFLAGS.
4012# In particular we don't look at `^make:' because GNU make might
4013# be invoked under some other name (usually "gmake"), in which
4014# case it prints its new name instead of `make'.
4015if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4016   am__include=include
4017   am__quote=
4018   _am_result=GNU
4019fi
4020# Now try BSD make style include.
4021if test "$am__include" = "#"; then
4022   echo '.include "confinc"' > confmf
4023   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4024      am__include=.include
4025      am__quote="\""
4026      _am_result=BSD
4027   fi
4028fi
4029
4030
4031echo "$as_me:$LINENO: result: $_am_result" >&5
4032echo "${ECHO_T}$_am_result" >&6
4033rm -f confinc confmf
4034
4035# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4036if test "${enable_dependency_tracking+set}" = set; then
4037  enableval="$enable_dependency_tracking"
4038
4039fi;
4040if test "x$enable_dependency_tracking" != xno; then
4041  am_depcomp="$ac_aux_dir/depcomp"
4042  AMDEPBACKSLASH='\'
4043fi
4044
4045
4046if test "x$enable_dependency_tracking" != xno; then
4047  AMDEP_TRUE=
4048  AMDEP_FALSE='#'
4049else
4050  AMDEP_TRUE='#'
4051  AMDEP_FALSE=
4052fi
4053
4054
4055
4056
4057
4058# AC_MSG_NOTICE([Beginning automake initialisation.])
4059# Stuff for automake
4060# test to see if srcdir already configured
4061if test "`cd $srcdir && pwd`" != "`pwd`" &&
4062   test -f $srcdir/config.status; then
4063  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4064echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4065   { (exit 1); exit 1; }; }
4066fi
4067
4068# test whether we have cygpath
4069if test -z "$CYGPATH_W"; then
4070  if (cygpath --version) >/dev/null 2>/dev/null; then
4071    CYGPATH_W='cygpath -w'
4072  else
4073    CYGPATH_W=echo
4074  fi
4075fi
4076
4077
4078# Define the identity of the package.
4079 PACKAGE='thirdpartyfiltersqp'
4080 VERSION='0.0'
4081
4082
4083cat >>confdefs.h <<_ACEOF
4084#define PACKAGE "$PACKAGE"
4085_ACEOF
4086
4087
4088cat >>confdefs.h <<_ACEOF
4089#define VERSION "$VERSION"
4090_ACEOF
4091
4092# Some tools Automake needs.
4093
4094ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4095
4096
4097AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4098
4099
4100AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4101
4102
4103AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4104
4105
4106MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4107
4108install_sh=${install_sh-"$am_aux_dir/install-sh"}
4109
4110# Installed binaries are usually stripped using `strip' when the user
4111# run `make install-strip'.  However `strip' might not be the right
4112# tool to use in cross-compilation environments, therefore Automake
4113# will honor the `STRIP' environment variable to overrule this program.
4114if test "$cross_compiling" != no; then
4115  if test -n "$ac_tool_prefix"; then
4116  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4117set dummy ${ac_tool_prefix}strip; ac_word=$2
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120if test "${ac_cv_prog_STRIP+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  if test -n "$STRIP"; then
4124  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  test -z "$as_dir" && as_dir=.
4131  for ac_exec_ext in '' $ac_executable_extensions; do
4132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135    break 2
4136  fi
4137done
4138done
4139
4140fi
4141fi
4142STRIP=$ac_cv_prog_STRIP
4143if test -n "$STRIP"; then
4144  echo "$as_me:$LINENO: result: $STRIP" >&5
4145echo "${ECHO_T}$STRIP" >&6
4146else
4147  echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149fi
4150
4151fi
4152if test -z "$ac_cv_prog_STRIP"; then
4153  ac_ct_STRIP=$STRIP
4154  # Extract the first word of "strip", so it can be a program name with args.
4155set dummy strip; ac_word=$2
4156echo "$as_me:$LINENO: checking for $ac_word" >&5
4157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  if test -n "$ac_ct_STRIP"; then
4162  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  test -z "$as_dir" && as_dir=.
4169  for ac_exec_ext in '' $ac_executable_extensions; do
4170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171    ac_cv_prog_ac_ct_STRIP="strip"
4172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173    break 2
4174  fi
4175done
4176done
4177
4178  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4179fi
4180fi
4181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4182if test -n "$ac_ct_STRIP"; then
4183  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4184echo "${ECHO_T}$ac_ct_STRIP" >&6
4185else
4186  echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188fi
4189
4190  STRIP=$ac_ct_STRIP
4191else
4192  STRIP="$ac_cv_prog_STRIP"
4193fi
4194
4195fi
4196INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4197
4198# We need awk for the "check" target.  The system "awk" is bad on
4199# some platforms.
4200# Always define AMTAR for backward compatibility.
4201
4202AMTAR=${AMTAR-"${am_missing_run}tar"}
4203
4204am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4205
4206
4207
4208
4209depcc="$CC"   am_compiler_list=
4210
4211echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4212echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4213if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4214  echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217  # We make a subdir and do the tests there.  Otherwise we can end up
4218  # making bogus files that we don't know about and never remove.  For
4219  # instance it was reported that on HP-UX the gcc test will end up
4220  # making a dummy file named `D' -- because `-MD' means `put the output
4221  # in D'.
4222  mkdir conftest.dir
4223  # Copy depcomp to subdir because otherwise we won't find it if we're
4224  # using a relative directory.
4225  cp "$am_depcomp" conftest.dir
4226  cd conftest.dir
4227  # We will build objects and dependencies in a subdirectory because
4228  # it helps to detect inapplicable dependency modes.  For instance
4229  # both Tru64's cc and ICC support -MD to output dependencies as a
4230  # side effect of compilation, but ICC will put the dependencies in
4231  # the current directory while Tru64 will put them in the object
4232  # directory.
4233  mkdir sub
4234
4235  am_cv_CC_dependencies_compiler_type=none
4236  if test "$am_compiler_list" = ""; then
4237     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4238  fi
4239  for depmode in $am_compiler_list; do
4240    # Setup a source with many dependencies, because some compilers
4241    # like to wrap large dependency lists on column 80 (with \), and
4242    # we should not choose a depcomp mode which is confused by this.
4243    #
4244    # We need to recreate these files for each test, as the compiler may
4245    # overwrite some of them when testing with obscure command lines.
4246    # This happens at least with the AIX C compiler.
4247    : > sub/conftest.c
4248    for i in 1 2 3 4 5 6; do
4249      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4250      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4251      # Solaris 8's {/usr,}/bin/sh.
4252      touch sub/conftst$i.h
4253    done
4254    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4255
4256    case $depmode in
4257    nosideeffect)
4258      # after this tag, mechanisms are not by side-effect, so they'll
4259      # only be used when explicitly requested
4260      if test "x$enable_dependency_tracking" = xyes; then
4261        continue
4262      else
4263        break
4264      fi
4265      ;;
4266    none) break ;;
4267    esac
4268    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4269    # mode.  It turns out that the SunPro C++ compiler does not properly
4270    # handle `-M -o', and we need to detect this.
4271    if depmode=$depmode \
4272       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4273       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4274       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4275         >/dev/null 2>conftest.err &&
4276       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4277       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4278       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4279      # icc doesn't choke on unknown options, it will just issue warnings
4280      # or remarks (even with -Werror).  So we grep stderr for any message
4281      # that says an option was ignored or not supported.
4282      # When given -MP, icc 7.0 and 7.1 complain thusly:
4283      #   icc: Command line warning: ignoring option '-M'; no argument required
4284      # The diagnosis changed in icc 8.0:
4285      #   icc: Command line remark: option '-MP' not supported
4286      if (grep 'ignoring option' conftest.err ||
4287          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4288        am_cv_CC_dependencies_compiler_type=$depmode
4289        break
4290      fi
4291    fi
4292  done
4293
4294  cd ..
4295  rm -rf conftest.dir
4296else
4297  am_cv_CC_dependencies_compiler_type=none
4298fi
4299
4300fi
4301echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4302echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4303CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4304
4305
4306
4307if
4308  test "x$enable_dependency_tracking" != xno \
4309  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4310  am__fastdepCC_TRUE=
4311  am__fastdepCC_FALSE='#'
4312else
4313  am__fastdepCC_TRUE='#'
4314  am__fastdepCC_FALSE=
4315fi
4316
4317
4318
4319echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4320echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4321    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4322if test "${enable_maintainer_mode+set}" = set; then
4323  enableval="$enable_maintainer_mode"
4324  USE_MAINTAINER_MODE=$enableval
4325else
4326  USE_MAINTAINER_MODE=no
4327fi;
4328  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4329echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4330
4331
4332if test $USE_MAINTAINER_MODE = yes; then
4333  MAINTAINER_MODE_TRUE=
4334  MAINTAINER_MODE_FALSE='#'
4335else
4336  MAINTAINER_MODE_TRUE='#'
4337  MAINTAINER_MODE_FALSE=
4338fi
4339
4340  MAINT=$MAINTAINER_MODE_TRUE
4341
4342
4343
4344coin_have_externals=no
4345if test "$enable_maintainer_mode" = yes; then
4346
4347  # If maintainer mode is chosen, we make sure that the correct versions
4348  # of the tools are used, and that we know where libtool.m4 is (to
4349  # recreate acinclude.m4)
4350
4351
4352  LIBTOOLM4=
4353  # Normally, $HOME
4354  AUTOTOOLS_DFLT=$HOME
4355
4356  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4357echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4358if test "${ac_cv_use_correct_autotools+set}" = set; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  ac_cv_use_correct_autotools=check
4362fi
4363echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4364echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4365
4366  if test $ac_cv_use_correct_autotools = check; then
4367    ac_cv_use_correct_autotools=yes
4368    # Check if we have autoconf
4369    # Extract the first word of "autoconf", so it can be a program name with args.
4370set dummy autoconf; ac_word=$2
4371echo "$as_me:$LINENO: checking for $ac_word" >&5
4372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4373if test "${ac_cv_prog_have_autoconf+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  if test -n "$have_autoconf"; then
4377  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382  IFS=$as_save_IFS
4383  test -z "$as_dir" && as_dir=.
4384  for ac_exec_ext in '' $ac_executable_extensions; do
4385  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386    ac_cv_prog_have_autoconf="yes"
4387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388    break 2
4389  fi
4390done
4391done
4392
4393  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4394fi
4395fi
4396have_autoconf=$ac_cv_prog_have_autoconf
4397if test -n "$have_autoconf"; then
4398  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4399echo "${ECHO_T}$have_autoconf" >&6
4400else
4401  echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403fi
4404
4405    if test $have_autoconf = no; then
4406      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4407echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4408   { (exit 1); exit 1; }; }
4409    fi
4410
4411    # Check whether autoconf is the correct version
4412    correct_version='2.59'
4413    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4414    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4415echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4416    autoconf --version > confauto.out 2>&1
4417    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4418      echo "$as_me:$LINENO: result: yes" >&5
4419echo "${ECHO_T}yes" >&6
4420    else
4421      rm -f confauto.out
4422      echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6
4424      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4425echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4426   { (exit 1); exit 1; }; }
4427    fi
4428    rm -f confauto.out
4429
4430    # Check if the executable autoconf is picked up from the correct location
4431    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4432echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4433    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4434    autoconf_dir=`cd $autoconf_dir; pwd`
4435    if test x$AUTOTOOLS_DIR = x; then
4436      want_dir=$AUTOTOOLS_DFLT/bin
4437    else
4438      want_dir=$AUTOTOOLS_DIR/bin
4439    fi
4440    if test $autoconf_dir = `cd $want_dir; pwd`; then
4441      echo "$as_me:$LINENO: result: yes" >&5
4442echo "${ECHO_T}yes" >&6
4443    else
4444      rm -f confauto.out
4445      echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
4447      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4448echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4449   { (exit 1); exit 1; }; }
4450    fi
4451
4452    # Check if we have automake
4453    # Extract the first word of "automake", so it can be a program name with args.
4454set dummy automake; ac_word=$2
4455echo "$as_me:$LINENO: checking for $ac_word" >&5
4456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4457if test "${ac_cv_prog_have_automake+set}" = set; then
4458  echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460  if test -n "$have_automake"; then
4461  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466  IFS=$as_save_IFS
4467  test -z "$as_dir" && as_dir=.
4468  for ac_exec_ext in '' $ac_executable_extensions; do
4469  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470    ac_cv_prog_have_automake="yes"
4471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472    break 2
4473  fi
4474done
4475done
4476
4477  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4478fi
4479fi
4480have_automake=$ac_cv_prog_have_automake
4481if test -n "$have_automake"; then
4482  echo "$as_me:$LINENO: result: $have_automake" >&5
4483echo "${ECHO_T}$have_automake" >&6
4484else
4485  echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6
4487fi
4488
4489    if test $have_automake = no; then
4490      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4491echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4492   { (exit 1); exit 1; }; }
4493    fi
4494
4495    # Check whether automake is the correct version
4496    correct_version='1.9.6'
4497    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4498    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4499echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4500    automake --version > confauto.out 2>&1
4501    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4502      echo "$as_me:$LINENO: result: yes" >&5
4503echo "${ECHO_T}yes" >&6
4504    else
4505      rm -f confauto.out
4506      echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4509echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4510   { (exit 1); exit 1; }; }
4511    fi
4512    rm -f confauto.out
4513
4514    # Check if the executable automake is picked up from the correct location
4515    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4516echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4517    automake_dir=`which automake | sed -e 's=/automake=='`
4518    automake_dir=`cd $automake_dir; pwd`
4519    if test x$AUTOTOOLS_DIR = x; then
4520      want_dir=$AUTOTOOLS_DFLT/bin
4521    else
4522      want_dir=$AUTOTOOLS_DIR/bin
4523    fi
4524    if test $automake_dir = `cd $want_dir; pwd`; then
4525      echo "$as_me:$LINENO: result: yes" >&5
4526echo "${ECHO_T}yes" >&6
4527    else
4528      rm -f confauto.out
4529      echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4532echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4533   { (exit 1); exit 1; }; }
4534    fi
4535
4536    # Check if this is the correct version of libtool (with escaped dots)
4537    if test x$AUTOTOOLS_DIR = x; then
4538      want_dir=$AUTOTOOLS_DFLT/share
4539    else
4540      want_dir=$AUTOTOOLS_DIR/share
4541    fi
4542    correct_version='1.5.22'
4543    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4544    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4545echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4546echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4547if eval "test \"\${$as_ac_File+set}\" = set"; then
4548  echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550  test "$cross_compiling" = yes &&
4551  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4552echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4553   { (exit 1); exit 1; }; }
4554if test -r "$want_dir/libtool/ltmain.sh"; then
4555  eval "$as_ac_File=yes"
4556else
4557  eval "$as_ac_File=no"
4558fi
4559fi
4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4561echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4562if test `eval echo '${'$as_ac_File'}'` = yes; then
4563  have_ltmain=yes
4564else
4565  have_ltmain=no
4566fi
4567
4568    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4569echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4570    if test $have_ltmain = yes; then
4571    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4572        echo "$as_me:$LINENO: result: yes" >&5
4573echo "${ECHO_T}yes" >&6
4574      else
4575        echo "$as_me:$LINENO: result: no" >&5
4576echo "${ECHO_T}no" >&6
4577        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4578echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4579   { (exit 1); exit 1; }; }
4580      fi
4581    else
4582      echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
4584      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4585echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4586   { (exit 1); exit 1; }; }
4587    fi
4588  fi
4589
4590  # Check if we can find the libtool file
4591  if test x$AUTOTOOLS_DIR = x; then
4592    want_dir=$AUTOTOOLS_DFLT/share
4593  else
4594    want_dir=$AUTOTOOLS_DIR/share
4595  fi
4596  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4597echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4598echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4599if eval "test \"\${$as_ac_File+set}\" = set"; then
4600  echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602  test "$cross_compiling" = yes &&
4603  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4604echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4605   { (exit 1); exit 1; }; }
4606if test -r "$want_dir/aclocal/libtool.m4"; then
4607  eval "$as_ac_File=yes"
4608else
4609  eval "$as_ac_File=no"
4610fi
4611fi
4612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4613echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4614if test `eval echo '${'$as_ac_File'}'` = yes; then
4615  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4616else
4617  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4618echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4619   { (exit 1); exit 1; }; }
4620fi
4621
4622
4623  # Check if we have an Externals file
4624  if test -r $srcdir/Externals; then
4625    coin_have_externals=yes
4626  fi
4627  # Check if subversion is installed and understands https
4628  # Extract the first word of "svn", so it can be a program name with args.
4629set dummy svn; ac_word=$2
4630echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632if test "${ac_cv_prog_have_svn+set}" = set; then
4633  echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635  if test -n "$have_svn"; then
4636  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641  IFS=$as_save_IFS
4642  test -z "$as_dir" && as_dir=.
4643  for ac_exec_ext in '' $ac_executable_extensions; do
4644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645    ac_cv_prog_have_svn="yes"
4646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647    break 2
4648  fi
4649done
4650done
4651
4652  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4653fi
4654fi
4655have_svn=$ac_cv_prog_have_svn
4656if test -n "$have_svn"; then
4657  echo "$as_me:$LINENO: result: $have_svn" >&5
4658echo "${ECHO_T}$have_svn" >&6
4659else
4660  echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662fi
4663
4664  if test x$have_svn = xyes; then
4665    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4666echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4667if test "${ac_cv_svn_understands_https+set}" = set; then
4668  echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670  svn --version > confauto.out 2>&1
4671                    if $EGREP https confauto.out >/dev/null 2>&1; then
4672                      ac_cv_svn_understands_https=yes
4673                    else
4674                      ac_cv_svn_understands_https=no
4675                      have_svn=no
4676                      ac_cv_prog_have_svn=no
4677                    fi
4678                    rm -f confauto.out
4679fi
4680echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4681echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4682  fi
4683
4684  # Find the location of the BuildTools directory
4685  BUILDTOOLSDIR=
4686  if test -r $srcdir/BuildTools/coin.m4; then
4687    BUILDTOOLSDIR=$srcdir/BuildTools
4688  else
4689    if test -r $srcdir/../BuildTools/coin.m4; then
4690      BUILDTOOLSDIR=$srcdir/../BuildTools
4691    else
4692      if test -r $srcdir/../../BuildTools/coin.m4; then
4693        BUILDTOOLSDIR=$srcdir/../../BuildTools
4694      else
4695        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4696echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4697   { (exit 1); exit 1; }; }
4698      fi
4699    fi
4700  fi
4701
4702
4703  # The following variable is set to the name of the directory where
4704  # the autotool scripts are located
4705
4706  AUX_DIR=$ac_aux_dir
4707fi
4708
4709# helpful variable for the base directory of this package
4710abs_source_dir=`cd $srcdir; pwd`
4711
4712
4713# Stuff for example Makefiles
4714if test x$prefix = xNONE; then
4715  full_prefix=$ac_default_prefix
4716else
4717  full_prefix=$prefix
4718fi
4719full_prefix=`cd $full_prefix ; pwd`
4720
4721abs_lib_dir=$full_prefix/lib
4722
4723abs_include_dir=$full_prefix/include
4724
4725abs_bin_dir=$full_prefix/bin
4726
4727
4728
4729if test $coin_have_externals = yes && test x$have_svn = xyes; then
4730  HAVE_EXTERNALS_TRUE=
4731  HAVE_EXTERNALS_FALSE='#'
4732else
4733  HAVE_EXTERNALS_TRUE='#'
4734  HAVE_EXTERNALS_FALSE=
4735fi
4736
4737
4738# AC_MSG_NOTICE([End automake initialisation.])
4739
4740
4741
4742# Initialize automake
4743{
4744
4745
4746
4747# START
4748
4749# On Cygwin, building DLLs doesn't work
4750case $build in
4751  *-cygwin*)
4752    coin_disable_shared=yes
4753    platform=Cygwin
4754  ;;
4755  *-mingw*)
4756    coin_disable_shared=yes
4757    platform="Msys"
4758#    case "$CXX" in
4759#      cl*)
4760#        coin_disable_shared=yes
4761#        platform="Msys with cl"
4762#    ;;
4763#    esac
4764  ;;
4765esac
4766if test x"$coin_disable_shared" = xyes; then
4767  if test x"$enable_shared" = xyes; then
4768    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4769echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4770  fi
4771  enable_shared=no
4772fi
4773# By default, we only want the shared objects to be compiled
4774# Check whether --enable-static or --disable-static was given.
4775if test "${enable_static+set}" = set; then
4776  enableval="$enable_static"
4777  p=${PACKAGE-default}
4778    case $enableval in
4779    yes) enable_static=yes ;;
4780    no) enable_static=no ;;
4781    *)
4782     enable_static=no
4783      # Look at the argument we got.  We use all the common list separators.
4784      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4785      for pkg in $enableval; do
4786        IFS="$lt_save_ifs"
4787        if test "X$pkg" = "X$p"; then
4788          enable_static=yes
4789        fi
4790      done
4791      IFS="$lt_save_ifs"
4792      ;;
4793    esac
4794else
4795  enable_static=no
4796fi;
4797
4798
4799
4800
4801# Initialize automake
4802
4803
4804# AC_MSG_NOTICE([Beginning automake initialisation.])
4805# Stuff for automake
4806# test to see if srcdir already configured
4807if test "`cd $srcdir && pwd`" != "`pwd`" &&
4808   test -f $srcdir/config.status; then
4809  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4810echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4811   { (exit 1); exit 1; }; }
4812fi
4813
4814# test whether we have cygpath
4815if test -z "$CYGPATH_W"; then
4816  if (cygpath --version) >/dev/null 2>/dev/null; then
4817    CYGPATH_W='cygpath -w'
4818  else
4819    CYGPATH_W=echo
4820  fi
4821fi
4822
4823
4824# Define the identity of the package.
4825 PACKAGE='thirdpartyfiltersqp'
4826 VERSION='0.0'
4827
4828
4829cat >>confdefs.h <<_ACEOF
4830#define PACKAGE "$PACKAGE"
4831_ACEOF
4832
4833
4834cat >>confdefs.h <<_ACEOF
4835#define VERSION "$VERSION"
4836_ACEOF
4837
4838# Some tools Automake needs.
4839
4840ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4841
4842
4843AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4844
4845
4846AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4847
4848
4849AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4850
4851
4852MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4853
4854install_sh=${install_sh-"$am_aux_dir/install-sh"}
4855
4856# Installed binaries are usually stripped using `strip' when the user
4857# run `make install-strip'.  However `strip' might not be the right
4858# tool to use in cross-compilation environments, therefore Automake
4859# will honor the `STRIP' environment variable to overrule this program.
4860if test "$cross_compiling" != no; then
4861  if test -n "$ac_tool_prefix"; then
4862  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4863set dummy ${ac_tool_prefix}strip; ac_word=$2
4864echo "$as_me:$LINENO: checking for $ac_word" >&5
4865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4866if test "${ac_cv_prog_STRIP+set}" = set; then
4867  echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869  if test -n "$STRIP"; then
4870  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4871else
4872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875  IFS=$as_save_IFS
4876  test -z "$as_dir" && as_dir=.
4877  for ac_exec_ext in '' $ac_executable_extensions; do
4878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881    break 2
4882  fi
4883done
4884done
4885
4886fi
4887fi
4888STRIP=$ac_cv_prog_STRIP
4889if test -n "$STRIP"; then
4890  echo "$as_me:$LINENO: result: $STRIP" >&5
4891echo "${ECHO_T}$STRIP" >&6
4892else
4893  echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895fi
4896
4897fi
4898if test -z "$ac_cv_prog_STRIP"; then
4899  ac_ct_STRIP=$STRIP
4900  # Extract the first word of "strip", so it can be a program name with args.
4901set dummy strip; ac_word=$2
4902echo "$as_me:$LINENO: checking for $ac_word" >&5
4903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4905  echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907  if test -n "$ac_ct_STRIP"; then
4908  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913  IFS=$as_save_IFS
4914  test -z "$as_dir" && as_dir=.
4915  for ac_exec_ext in '' $ac_executable_extensions; do
4916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917    ac_cv_prog_ac_ct_STRIP="strip"
4918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919    break 2
4920  fi
4921done
4922done
4923
4924  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4925fi
4926fi
4927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4928if test -n "$ac_ct_STRIP"; then
4929  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4930echo "${ECHO_T}$ac_ct_STRIP" >&6
4931else
4932  echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934fi
4935
4936  STRIP=$ac_ct_STRIP
4937else
4938  STRIP="$ac_cv_prog_STRIP"
4939fi
4940
4941fi
4942INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4943
4944# We need awk for the "check" target.  The system "awk" is bad on
4945# some platforms.
4946# Always define AMTAR for backward compatibility.
4947
4948AMTAR=${AMTAR-"${am_missing_run}tar"}
4949
4950am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4951
4952
4953
4954
4955depcc="$CC"   am_compiler_list=
4956
4957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4960  echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4963  # We make a subdir and do the tests there.  Otherwise we can end up
4964  # making bogus files that we don't know about and never remove.  For
4965  # instance it was reported that on HP-UX the gcc test will end up
4966  # making a dummy file named `D' -- because `-MD' means `put the output
4967  # in D'.
4968  mkdir conftest.dir
4969  # Copy depcomp to subdir because otherwise we won't find it if we're
4970  # using a relative directory.
4971  cp "$am_depcomp" conftest.dir
4972  cd conftest.dir
4973  # We will build objects and dependencies in a subdirectory because
4974  # it helps to detect inapplicable dependency modes.  For instance
4975  # both Tru64's cc and ICC support -MD to output dependencies as a
4976  # side effect of compilation, but ICC will put the dependencies in
4977  # the current directory while Tru64 will put them in the object
4978  # directory.
4979  mkdir sub
4980
4981  am_cv_CC_dependencies_compiler_type=none
4982  if test "$am_compiler_list" = ""; then
4983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4984  fi
4985  for depmode in $am_compiler_list; do
4986    # Setup a source with many dependencies, because some compilers
4987    # like to wrap large dependency lists on column 80 (with \), and
4988    # we should not choose a depcomp mode which is confused by this.
4989    #
4990    # We need to recreate these files for each test, as the compiler may
4991    # overwrite some of them when testing with obscure command lines.
4992    # This happens at least with the AIX C compiler.
4993    : > sub/conftest.c
4994    for i in 1 2 3 4 5 6; do
4995      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4996      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4997      # Solaris 8's {/usr,}/bin/sh.
4998      touch sub/conftst$i.h
4999    done
5000    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001
5002    case $depmode in
5003    nosideeffect)
5004      # after this tag, mechanisms are not by side-effect, so they'll
5005      # only be used when explicitly requested
5006      if test "x$enable_dependency_tracking" = xyes; then
5007        continue
5008      else
5009        break
5010      fi
5011      ;;
5012    none) break ;;
5013    esac
5014    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5015    # mode.  It turns out that the SunPro C++ compiler does not properly
5016    # handle `-M -o', and we need to detect this.
5017    if depmode=$depmode \
5018       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5019       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5021         >/dev/null 2>conftest.err &&
5022       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5023       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5024       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5025      # icc doesn't choke on unknown options, it will just issue warnings
5026      # or remarks (even with -Werror).  So we grep stderr for any message
5027      # that says an option was ignored or not supported.
5028      # When given -MP, icc 7.0 and 7.1 complain thusly:
5029      #   icc: Command line warning: ignoring option '-M'; no argument required
5030      # The diagnosis changed in icc 8.0:
5031      #   icc: Command line remark: option '-MP' not supported
5032      if (grep 'ignoring option' conftest.err ||
5033          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5034        am_cv_CC_dependencies_compiler_type=$depmode
5035        break
5036      fi
5037    fi
5038  done
5039
5040  cd ..
5041  rm -rf conftest.dir
5042else
5043  am_cv_CC_dependencies_compiler_type=none
5044fi
5045
5046fi
5047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5050
5051
5052
5053if
5054  test "x$enable_dependency_tracking" != xno \
5055  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5056  am__fastdepCC_TRUE=
5057  am__fastdepCC_FALSE='#'
5058else
5059  am__fastdepCC_TRUE='#'
5060  am__fastdepCC_FALSE=
5061fi
5062
5063
5064
5065echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5066echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5067    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5068if test "${enable_maintainer_mode+set}" = set; then
5069  enableval="$enable_maintainer_mode"
5070  USE_MAINTAINER_MODE=$enableval
5071else
5072  USE_MAINTAINER_MODE=no
5073fi;
5074  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5075echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5076
5077
5078if test $USE_MAINTAINER_MODE = yes; then
5079  MAINTAINER_MODE_TRUE=
5080  MAINTAINER_MODE_FALSE='#'
5081else
5082  MAINTAINER_MODE_TRUE='#'
5083  MAINTAINER_MODE_FALSE=
5084fi
5085
5086  MAINT=$MAINTAINER_MODE_TRUE
5087
5088
5089
5090coin_have_externals=no
5091if test "$enable_maintainer_mode" = yes; then
5092
5093  # If maintainer mode is chosen, we make sure that the correct versions
5094  # of the tools are used, and that we know where libtool.m4 is (to
5095  # recreate acinclude.m4)
5096
5097
5098  LIBTOOLM4=
5099  # Normally, $HOME
5100  AUTOTOOLS_DFLT=$HOME
5101
5102  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5103echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5104if test "${ac_cv_use_correct_autotools+set}" = set; then
5105  echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107  ac_cv_use_correct_autotools=check
5108fi
5109echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5110echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5111
5112  if test $ac_cv_use_correct_autotools = check; then
5113    ac_cv_use_correct_autotools=yes
5114    # Check if we have autoconf
5115    # Extract the first word of "autoconf", so it can be a program name with args.
5116set dummy autoconf; ac_word=$2
5117echo "$as_me:$LINENO: checking for $ac_word" >&5
5118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5119if test "${ac_cv_prog_have_autoconf+set}" = set; then
5120  echo $ECHO_N "(cached) $ECHO_C" >&6
5121else
5122  if test -n "$have_autoconf"; then
5123  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5124else
5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH
5127do
5128  IFS=$as_save_IFS
5129  test -z "$as_dir" && as_dir=.
5130  for ac_exec_ext in '' $ac_executable_extensions; do
5131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132    ac_cv_prog_have_autoconf="yes"
5133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134    break 2
5135  fi
5136done
5137done
5138
5139  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5140fi
5141fi
5142have_autoconf=$ac_cv_prog_have_autoconf
5143if test -n "$have_autoconf"; then
5144  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5145echo "${ECHO_T}$have_autoconf" >&6
5146else
5147  echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149fi
5150
5151    if test $have_autoconf = no; then
5152      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5153echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5154   { (exit 1); exit 1; }; }
5155    fi
5156
5157    # Check whether autoconf is the correct version
5158    correct_version='2.59'
5159    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5160    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5161echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5162    autoconf --version > confauto.out 2>&1
5163    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5164      echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166    else
5167      rm -f confauto.out
5168      echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5171echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5172   { (exit 1); exit 1; }; }
5173    fi
5174    rm -f confauto.out
5175
5176    # Check if the executable autoconf is picked up from the correct location
5177    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5178echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5179    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5180    autoconf_dir=`cd $autoconf_dir; pwd`
5181    if test x$AUTOTOOLS_DIR = x; then
5182      want_dir=$AUTOTOOLS_DFLT/bin
5183    else
5184      want_dir=$AUTOTOOLS_DIR/bin
5185    fi
5186    if test $autoconf_dir = `cd $want_dir; pwd`; then
5187      echo "$as_me:$LINENO: result: yes" >&5
5188echo "${ECHO_T}yes" >&6
5189    else
5190      rm -f confauto.out
5191      echo "$as_me:$LINENO: result: no" >&5
5192echo "${ECHO_T}no" >&6
5193      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5194echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5195   { (exit 1); exit 1; }; }
5196    fi
5197
5198    # Check if we have automake
5199    # Extract the first word of "automake", so it can be a program name with args.
5200set dummy automake; ac_word=$2
5201echo "$as_me:$LINENO: checking for $ac_word" >&5
5202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5203if test "${ac_cv_prog_have_automake+set}" = set; then
5204  echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206  if test -n "$have_automake"; then
5207  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214  for ac_exec_ext in '' $ac_executable_extensions; do
5215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216    ac_cv_prog_have_automake="yes"
5217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221done
5222
5223  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5224fi
5225fi
5226have_automake=$ac_cv_prog_have_automake
5227if test -n "$have_automake"; then
5228  echo "$as_me:$LINENO: result: $have_automake" >&5
5229echo "${ECHO_T}$have_automake" >&6
5230else
5231  echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233fi
5234
5235    if test $have_automake = no; then
5236      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5237echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5238   { (exit 1); exit 1; }; }
5239    fi
5240
5241    # Check whether automake is the correct version
5242    correct_version='1.9.6'
5243    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5244    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5245echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5246    automake --version > confauto.out 2>&1
5247    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5248      echo "$as_me:$LINENO: result: yes" >&5
5249echo "${ECHO_T}yes" >&6
5250    else
5251      rm -f confauto.out
5252      echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5255echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5256   { (exit 1); exit 1; }; }
5257    fi
5258    rm -f confauto.out
5259
5260    # Check if the executable automake is picked up from the correct location
5261    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5262echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5263    automake_dir=`which automake | sed -e 's=/automake=='`
5264    automake_dir=`cd $automake_dir; pwd`
5265    if test x$AUTOTOOLS_DIR = x; then
5266      want_dir=$AUTOTOOLS_DFLT/bin
5267    else
5268      want_dir=$AUTOTOOLS_DIR/bin
5269    fi
5270    if test $automake_dir = `cd $want_dir; pwd`; then
5271      echo "$as_me:$LINENO: result: yes" >&5
5272echo "${ECHO_T}yes" >&6
5273    else
5274      rm -f confauto.out
5275      echo "$as_me:$LINENO: result: no" >&5
5276echo "${ECHO_T}no" >&6
5277      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5278echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5279   { (exit 1); exit 1; }; }
5280    fi
5281
5282    # Check if this is the correct version of libtool (with escaped dots)
5283    if test x$AUTOTOOLS_DIR = x; then
5284      want_dir=$AUTOTOOLS_DFLT/share
5285    else
5286      want_dir=$AUTOTOOLS_DIR/share
5287    fi
5288    correct_version='1.5.22'
5289    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5290    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
5291echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
5292echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
5293if eval "test \"\${$as_ac_File+set}\" = set"; then
5294  echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296  test "$cross_compiling" = yes &&
5297  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5298echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5299   { (exit 1); exit 1; }; }
5300if test -r "$want_dir/libtool/ltmain.sh"; then
5301  eval "$as_ac_File=yes"
5302else
5303  eval "$as_ac_File=no"
5304fi
5305fi
5306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5307echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5308if test `eval echo '${'$as_ac_File'}'` = yes; then
5309  have_ltmain=yes
5310else
5311  have_ltmain=no
5312fi
5313
5314    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5315echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5316    if test $have_ltmain = yes; then
5317    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5318        echo "$as_me:$LINENO: result: yes" >&5
5319echo "${ECHO_T}yes" >&6
5320      else
5321        echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
5323        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5324echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5325   { (exit 1); exit 1; }; }
5326      fi
5327    else
5328      echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
5330      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5331echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5332   { (exit 1); exit 1; }; }
5333    fi
5334  fi
5335
5336  # Check if we can find the libtool file
5337  if test x$AUTOTOOLS_DIR = x; then
5338    want_dir=$AUTOTOOLS_DFLT/share
5339  else
5340    want_dir=$AUTOTOOLS_DIR/share
5341  fi
5342  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
5343echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
5344echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
5345if eval "test \"\${$as_ac_File+set}\" = set"; then
5346  echo $ECHO_N "(cached) $ECHO_C" >&6
5347else
5348  test "$cross_compiling" = yes &&
5349  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5350echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5351   { (exit 1); exit 1; }; }
5352if test -r "$want_dir/aclocal/libtool.m4"; then
5353  eval "$as_ac_File=yes"
5354else
5355  eval "$as_ac_File=no"
5356fi
5357fi
5358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5359echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5360if test `eval echo '${'$as_ac_File'}'` = yes; then
5361  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5362else
5363  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5364echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5365   { (exit 1); exit 1; }; }
5366fi
5367
5368
5369  # Check if we have an Externals file
5370  if test -r $srcdir/Externals; then
5371    coin_have_externals=yes
5372  fi
5373  # Check if subversion is installed and understands https
5374  # Extract the first word of "svn", so it can be a program name with args.
5375set dummy svn; ac_word=$2
5376echo "$as_me:$LINENO: checking for $ac_word" >&5
5377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378if test "${ac_cv_prog_have_svn+set}" = set; then
5379  echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381  if test -n "$have_svn"; then
5382  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387  IFS=$as_save_IFS
5388  test -z "$as_dir" && as_dir=.
5389  for ac_exec_ext in '' $ac_executable_extensions; do
5390  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391    ac_cv_prog_have_svn="yes"
5392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393    break 2
5394  fi
5395done
5396done
5397
5398  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5399fi
5400fi
5401have_svn=$ac_cv_prog_have_svn
5402if test -n "$have_svn"; then
5403  echo "$as_me:$LINENO: result: $have_svn" >&5
5404echo "${ECHO_T}$have_svn" >&6
5405else
5406  echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
5408fi
5409
5410  if test x$have_svn = xyes; then
5411    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5412echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5413if test "${ac_cv_svn_understands_https+set}" = set; then
5414  echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416  svn --version > confauto.out 2>&1
5417                    if $EGREP https confauto.out >/dev/null 2>&1; then
5418                      ac_cv_svn_understands_https=yes
5419                    else
5420                      ac_cv_svn_understands_https=no
5421                      have_svn=no
5422                      ac_cv_prog_have_svn=no
5423                    fi
5424                    rm -f confauto.out
5425fi
5426echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5427echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5428  fi
5429
5430  # Find the location of the BuildTools directory
5431  BUILDTOOLSDIR=
5432  if test -r $srcdir/BuildTools/coin.m4; then
5433    BUILDTOOLSDIR=$srcdir/BuildTools
5434  else
5435    if test -r $srcdir/../BuildTools/coin.m4; then
5436      BUILDTOOLSDIR=$srcdir/../BuildTools
5437    else
5438      if test -r $srcdir/../../BuildTools/coin.m4; then
5439        BUILDTOOLSDIR=$srcdir/../../BuildTools
5440      else
5441        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5442echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5443   { (exit 1); exit 1; }; }
5444      fi
5445    fi
5446  fi
5447
5448
5449  # The following variable is set to the name of the directory where
5450  # the autotool scripts are located
5451
5452  AUX_DIR=$ac_aux_dir
5453fi
5454
5455# helpful variable for the base directory of this package
5456abs_source_dir=`cd $srcdir; pwd`
5457
5458
5459# Stuff for example Makefiles
5460if test x$prefix = xNONE; then
5461  full_prefix=$ac_default_prefix
5462else
5463  full_prefix=$prefix
5464fi
5465full_prefix=`cd $full_prefix ; pwd`
5466
5467abs_lib_dir=$full_prefix/lib
5468
5469abs_include_dir=$full_prefix/include
5470
5471abs_bin_dir=$full_prefix/bin
5472
5473
5474
5475if test $coin_have_externals = yes && test x$have_svn = xyes; then
5476  HAVE_EXTERNALS_TRUE=
5477  HAVE_EXTERNALS_FALSE='#'
5478else
5479  HAVE_EXTERNALS_TRUE='#'
5480  HAVE_EXTERNALS_FALSE=
5481fi
5482
5483
5484# AC_MSG_NOTICE([End automake initialisation.])
5485
5486
5487
5488unset ac_cv_file__________libtool
5489unset ac_cv_file_______libtool
5490unset ac_cv_file____libtool
5491
5492LIBTOOL=
5493echo "$as_me:$LINENO: checking for ../libtool" >&5
5494echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
5495if test "${ac_cv_file____libtool+set}" = set; then
5496  echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498  test "$cross_compiling" = yes &&
5499  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5500echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5501   { (exit 1); exit 1; }; }
5502if test -r "../libtool"; then
5503  ac_cv_file____libtool=yes
5504else
5505  ac_cv_file____libtool=no
5506fi
5507fi
5508echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
5509echo "${ECHO_T}$ac_cv_file____libtool" >&6
5510if test $ac_cv_file____libtool = yes; then
5511  coin_config_dir=..
5512               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5513fi
5514
5515if test "x$LIBTOOL" = x; then
5516  echo "$as_me:$LINENO: checking for ../../libtool" >&5
5517echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
5518if test "${ac_cv_file_______libtool+set}" = set; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  test "$cross_compiling" = yes &&
5522  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5523echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5524   { (exit 1); exit 1; }; }
5525if test -r "../../libtool"; then
5526  ac_cv_file_______libtool=yes
5527else
5528  ac_cv_file_______libtool=no
5529fi
5530fi
5531echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
5532echo "${ECHO_T}$ac_cv_file_______libtool" >&6
5533if test $ac_cv_file_______libtool = yes; then
5534  coin_config_dir=../..
5535                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5536fi
5537
5538fi
5539# if test "x$LIBTOOL" = x; then
5540#   AC_CHECK_FILE([../../../libtool],
5541#                 [coin_config_dir=../../..
5542#                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
5543# fi
5544
5545if test "x$LIBTOOL" = x; then
5546# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5547  # Stuff for libtool
5548  # Check whether --enable-shared or --disable-shared was given.
5549if test "${enable_shared+set}" = set; then
5550  enableval="$enable_shared"
5551  p=${PACKAGE-default}
5552    case $enableval in
5553    yes) enable_shared=yes ;;
5554    no) enable_shared=no ;;
5555    *)
5556      enable_shared=no
5557      # Look at the argument we got.  We use all the common list separators.
5558      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5559      for pkg in $enableval; do
5560        IFS="$lt_save_ifs"
5561        if test "X$pkg" = "X$p"; then
5562          enable_shared=yes
5563        fi
5564      done
5565      IFS="$lt_save_ifs"
5566      ;;
5567    esac
5568else
5569  enable_shared=yes
5570fi;
5571
5572# Check whether --enable-fast-install or --disable-fast-install was given.
5573if test "${enable_fast_install+set}" = set; then
5574  enableval="$enable_fast_install"
5575  p=${PACKAGE-default}
5576    case $enableval in
5577    yes) enable_fast_install=yes ;;
5578    no) enable_fast_install=no ;;
5579    *)
5580      enable_fast_install=no
5581      # Look at the argument we got.  We use all the common list separators.
5582      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5583      for pkg in $enableval; do
5584        IFS="$lt_save_ifs"
5585        if test "X$pkg" = "X$p"; then
5586          enable_fast_install=yes
5587        fi
5588      done
5589      IFS="$lt_save_ifs"
5590      ;;
5591    esac
5592else
5593  enable_fast_install=yes
5594fi;
5595
5596echo "$as_me:$LINENO: checking host system type" >&5
5597echo $ECHO_N "checking host system type... $ECHO_C" >&6
5598if test "${ac_cv_host+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  ac_cv_host_alias=$host_alias
5602test -z "$ac_cv_host_alias" &&
5603  ac_cv_host_alias=$ac_cv_build_alias
5604ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5605  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5606echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5607   { (exit 1); exit 1; }; }
5608
5609fi
5610echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5611echo "${ECHO_T}$ac_cv_host" >&6
5612host=$ac_cv_host
5613host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5614host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5615host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5616
5617
5618echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5619echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5620if test "${lt_cv_path_SED+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623  # Loop through the user's path and test for sed and gsed.
5624# Then use that list of sed's as ones to test for truncation.
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630  for lt_ac_prog in sed gsed; do
5631    for ac_exec_ext in '' $ac_executable_extensions; do
5632      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5633        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5634      fi
5635    done
5636  done
5637done
5638lt_ac_max=0
5639lt_ac_count=0
5640# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5641# along with /bin/sed that truncates output.
5642for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5643  test ! -f $lt_ac_sed && continue
5644  cat /dev/null > conftest.in
5645  lt_ac_count=0
5646  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5647  # Check for GNU sed and select it if it is found.
5648  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5649    lt_cv_path_SED=$lt_ac_sed
5650    break
5651  fi
5652  while true; do
5653    cat conftest.in conftest.in >conftest.tmp
5654    mv conftest.tmp conftest.in
5655    cp conftest.in conftest.nl
5656    echo >>conftest.nl
5657    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5658    cmp -s conftest.out conftest.nl || break
5659    # 10000 chars as input seems more than enough
5660    test $lt_ac_count -gt 10 && break
5661    lt_ac_count=`expr $lt_ac_count + 1`
5662    if test $lt_ac_count -gt $lt_ac_max; then
5663      lt_ac_max=$lt_ac_count
5664      lt_cv_path_SED=$lt_ac_sed
5665    fi
5666  done
5667done
5668
5669fi
5670
5671SED=$lt_cv_path_SED
5672echo "$as_me:$LINENO: result: $SED" >&5
5673echo "${ECHO_T}$SED" >&6
5674
5675
5676# Check whether --with-gnu-ld or --without-gnu-ld was given.
5677if test "${with_gnu_ld+set}" = set; then
5678  withval="$with_gnu_ld"
5679  test "$withval" = no || with_gnu_ld=yes
5680else
5681  with_gnu_ld=no
5682fi;
5683ac_prog=ld
5684if test "$GCC" = yes; then
5685  # Check if gcc -print-prog-name=ld gives a path.
5686  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5687echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5688  case $host in
5689  *-*-mingw*)
5690    # gcc leaves a trailing carriage return which upsets mingw
5691    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692  *)
5693    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5694  esac
5695  case $ac_prog in
5696    # Accept absolute paths.
5697    [\\/]* | ?:[\\/]*)
5698      re_direlt='/[^/][^/]*/\.\./'
5699      # Canonicalize the pathname of ld
5700      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5701      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5702        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5703      done
5704      test -z "$LD" && LD="$ac_prog"
5705      ;;
5706  "")
5707    # If it fails, then pretend we aren't using GCC.
5708    ac_prog=ld
5709    ;;
5710  *)
5711    # If it is relative, then search for the first ld in PATH.
5712    with_gnu_ld=unknown
5713    ;;
5714  esac
5715elif test "$with_gnu_ld" = yes; then
5716  echo "$as_me:$LINENO: checking for GNU ld" >&5
5717echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5718else
5719  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5720echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5721fi
5722if test "${lt_cv_path_LD+set}" = set; then
5723  echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725  if test -z "$LD"; then
5726  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727  for ac_dir in $PATH; do
5728    IFS="$lt_save_ifs"
5729    test -z "$ac_dir" && ac_dir=.
5730    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731      lt_cv_path_LD="$ac_dir/$ac_prog"
5732      # Check to see if the program is GNU ld.  I'd rather use --version,
5733      # but apparently some variants of GNU ld only accept -v.
5734      # Break only if it was the GNU/non-GNU ld that we prefer.
5735      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736      *GNU* | *'with BFD'*)
5737        test "$with_gnu_ld" != no && break
5738        ;;
5739      *)
5740        test "$with_gnu_ld" != yes && break
5741        ;;
5742      esac
5743    fi
5744  done
5745  IFS="$lt_save_ifs"
5746else
5747  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5748fi
5749fi
5750
5751LD="$lt_cv_path_LD"
5752if test -n "$LD"; then
5753  echo "$as_me:$LINENO: result: $LD" >&5
5754echo "${ECHO_T}$LD" >&6
5755else
5756  echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758fi
5759test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5760echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5761   { (exit 1); exit 1; }; }
5762echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5763echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5764if test "${lt_cv_prog_gnu_ld+set}" = set; then
5765  echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5768case `$LD -v 2>&1 </dev/null` in
5769*GNU* | *'with BFD'*)
5770  lt_cv_prog_gnu_ld=yes
5771  ;;
5772*)
5773  lt_cv_prog_gnu_ld=no
5774  ;;
5775esac
5776fi
5777echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5778echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5779with_gnu_ld=$lt_cv_prog_gnu_ld
5780
5781
5782echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5783echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5784if test "${lt_cv_ld_reload_flag+set}" = set; then
5785  echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787  lt_cv_ld_reload_flag='-r'
5788fi
5789echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5790echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5791reload_flag=$lt_cv_ld_reload_flag
5792case $reload_flag in
5793"" | " "*) ;;
5794*) reload_flag=" $reload_flag" ;;
5795esac
5796reload_cmds='$LD$reload_flag -o $output$reload_objs'
5797case $host_os in
5798  darwin*)
5799    if test "$GCC" = yes; then
5800      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5801    else
5802      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5803    fi
5804    ;;
5805esac
5806
5807echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5808echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5809if test "${lt_cv_path_NM+set}" = set; then
5810  echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812  if test -n "$NM"; then
5813  # Let the user override the test.
5814  lt_cv_path_NM="$NM"
5815else
5816  lt_nm_to_check="${ac_tool_prefix}nm"
5817  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5818    lt_nm_to_check="$lt_nm_to_check nm"
5819  fi
5820  for lt_tmp_nm in $lt_nm_to_check; do
5821    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5822    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5823      IFS="$lt_save_ifs"
5824      test -z "$ac_dir" && ac_dir=.
5825      tmp_nm="$ac_dir/$lt_tmp_nm"
5826      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5827        # Check to see if the nm accepts a BSD-compat flag.
5828        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5829        #   nm: unknown option "B" ignored
5830        # Tru64's nm complains that /dev/null is an invalid object file
5831        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5832        */dev/null* | *'Invalid file or object type'*)
5833          lt_cv_path_NM="$tmp_nm -B"
5834          break
5835          ;;
5836        *)
5837          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5838          */dev/null*)
5839            lt_cv_path_NM="$tmp_nm -p"
5840            break
5841            ;;
5842          *)
5843            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5844            continue # so that we can try to find one that supports BSD flags
5845            ;;
5846          esac
5847          ;;
5848        esac
5849      fi
5850    done
5851    IFS="$lt_save_ifs"
5852  done
5853  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5854fi
5855fi
5856echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5857echo "${ECHO_T}$lt_cv_path_NM" >&6
5858NM="$lt_cv_path_NM"
5859
5860echo "$as_me:$LINENO: checking whether ln -s works" >&5
5861echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5862LN_S=$as_ln_s
5863if test "$LN_S" = "ln -s"; then
5864  echo "$as_me:$LINENO: result: yes" >&5
5865echo "${ECHO_T}yes" >&6
5866else
5867  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5868echo "${ECHO_T}no, using $LN_S" >&6
5869fi
5870
5871echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5872echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5873if test "${lt_cv_deplibs_check_method+set}" = set; then
5874  echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876  lt_cv_file_magic_cmd='$MAGIC_CMD'
5877lt_cv_file_magic_test_file=
5878lt_cv_deplibs_check_method='unknown'
5879# Need to set the preceding variable on all platforms that support
5880# interlibrary dependencies.
5881# 'none' -- dependencies not supported.
5882# `unknown' -- same as none, but documents that we really don't know.
5883# 'pass_all' -- all dependencies passed with no checks.
5884# 'test_compile' -- check by making test program.
5885# 'file_magic [[regex]]' -- check by looking for files in library path
5886# which responds to the $file_magic_cmd with a given extended regex.
5887# If you have `file' or equivalent on your system and you're not sure
5888# whether `pass_all' will *always* work, you probably want this one.
5889
5890case $host_os in
5891aix4* | aix5*)
5892  lt_cv_deplibs_check_method=pass_all
5893  ;;
5894
5895beos*)
5896  lt_cv_deplibs_check_method=pass_all
5897  ;;
5898
5899bsdi[45]*)
5900  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5901  lt_cv_file_magic_cmd='/usr/bin/file -L'
5902  lt_cv_file_magic_test_file=/shlib/libc.so
5903  ;;
5904
5905cygwin*)
5906  # func_win32_libid is a shell function defined in ltmain.sh
5907  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5908  lt_cv_file_magic_cmd='func_win32_libid'
5909  ;;
5910
5911mingw* | pw32*)
5912  # Base MSYS/MinGW do not provide the 'file' command needed by
5913  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5914  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5915  lt_cv_file_magic_cmd='$OBJDUMP -f'
5916  ;;
5917
5918darwin* | rhapsody*)
5919  lt_cv_deplibs_check_method=pass_all
5920  ;;
5921
5922freebsd* | kfreebsd*-gnu | dragonfly*)
5923  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5924    case $host_cpu in
5925    i*86 )
5926      # Not sure whether the presence of OpenBSD here was a mistake.
5927      # Let's accept both of them until this is cleared up.
5928      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5929      lt_cv_file_magic_cmd=/usr/bin/file
5930      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5931      ;;
5932    esac
5933  else
5934    lt_cv_deplibs_check_method=pass_all
5935  fi
5936  ;;
5937
5938gnu*)
5939  lt_cv_deplibs_check_method=pass_all
5940  ;;
5941
5942hpux10.20* | hpux11*)
5943  lt_cv_file_magic_cmd=/usr/bin/file
5944  case $host_cpu in
5945  ia64*)
5946    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5947    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5948    ;;
5949  hppa*64*)
5950    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]'
5951    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5952    ;;
5953  *)
5954    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5955    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5956    ;;
5957  esac
5958  ;;
5959
5960interix3*)
5961  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5962  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5963  ;;
5964
5965irix5* | irix6* | nonstopux*)
5966  case $LD in
5967  *-32|*"-32 ") libmagic=32-bit;;
5968  *-n32|*"-n32 ") libmagic=N32;;
5969  *-64|*"-64 ") libmagic=64-bit;;
5970  *) libmagic=never-match;;
5971  esac
5972  lt_cv_deplibs_check_method=pass_all
5973  ;;
5974
5975# This must be Linux ELF.
5976linux*)
5977  lt_cv_deplibs_check_method=pass_all
5978  ;;
5979
5980netbsd*)
5981  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5982    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5983  else
5984    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5985  fi
5986  ;;
5987
5988newos6*)
5989  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5990  lt_cv_file_magic_cmd=/usr/bin/file
5991  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5992  ;;
5993
5994nto-qnx*)
5995  lt_cv_deplibs_check_method=unknown
5996  ;;
5997
5998openbsd*)
5999  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6000    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6001  else
6002    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6003  fi
6004  ;;
6005
6006osf3* | osf4* | osf5*)
6007  lt_cv_deplibs_check_method=pass_all
6008  ;;
6009
6010solaris*)
6011  lt_cv_deplibs_check_method=pass_all
6012  ;;
6013
6014sysv4 | sysv4.3*)
6015  case $host_vendor in
6016  motorola)
6017    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]'
6018    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6019    ;;
6020  ncr)
6021    lt_cv_deplibs_check_method=pass_all
6022    ;;
6023  sequent)
6024    lt_cv_file_magic_cmd='/bin/file'
6025    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6026    ;;
6027  sni)
6028    lt_cv_file_magic_cmd='/bin/file'
6029    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6030    lt_cv_file_magic_test_file=/lib/libc.so
6031    ;;
6032  siemens)
6033    lt_cv_deplibs_check_method=pass_all
6034    ;;
6035  pc)
6036    lt_cv_deplibs_check_method=pass_all
6037    ;;
6038  esac
6039  ;;
6040
6041sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6042  lt_cv_deplibs_check_method=pass_all
6043  ;;
6044esac
6045
6046fi
6047echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6048echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6049file_magic_cmd=$lt_cv_file_magic_cmd
6050deplibs_check_method=$lt_cv_deplibs_check_method
6051test -z "$deplibs_check_method" && deplibs_check_method=unknown
6052
6053
6054
6055
6056# If no C compiler was specified, use CC.
6057LTCC=${LTCC-"$CC"}
6058
6059# If no C compiler flags were specified, use CFLAGS.
6060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6061
6062# Allow CC to be a program name with arguments.
6063compiler=$CC
6064
6065# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6066if test "${enable_libtool_lock+set}" = set; then
6067  enableval="$enable_libtool_lock"
6068
6069fi;
6070test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6071
6072# Some flags need to be propagated to the compiler or linker for good
6073# libtool support.
6074case $host in
6075ia64-*-hpux*)
6076  # Find out which ABI we are using.
6077  echo 'int i;' > conftest.$ac_ext
6078  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079  (eval $ac_compile) 2>&5
6080  ac_status=$?
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); }; then
6083    case `/usr/bin/file conftest.$ac_objext` in
6084    *ELF-32*)
6085      HPUX_IA64_MODE="32"
6086      ;;
6087    *ELF-64*)
6088      HPUX_IA64_MODE="64"
6089      ;;
6090    esac
6091  fi
6092  rm -rf conftest*
6093  ;;
6094*-*-irix6*)
6095  # Find out which ABI we are using.
6096  echo '#line 6096 "configure"' > conftest.$ac_ext
6097  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098  (eval $ac_compile) 2>&5
6099  ac_status=$?
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); }; then
6102   if test "$lt_cv_prog_gnu_ld" = yes; then
6103    case `/usr/bin/file conftest.$ac_objext` in
6104    *32-bit*)
6105      LD="${LD-ld} -melf32bsmip"
6106      ;;
6107    *N32*)
6108      LD="${LD-ld} -melf32bmipn32"
6109      ;;
6110    *64-bit*)
6111      LD="${LD-ld} -melf64bmip"
6112      ;;
6113    esac
6114   else
6115    case `/usr/bin/file conftest.$ac_objext` in
6116    *32-bit*)
6117      LD="${LD-ld} -32"
6118      ;;
6119    *N32*)
6120      LD="${LD-ld} -n32"
6121      ;;
6122    *64-bit*)
6123      LD="${LD-ld} -64"
6124      ;;
6125    esac
6126   fi
6127  fi
6128  rm -rf conftest*
6129  ;;
6130
6131x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6132  # Find out which ABI we are using.
6133  echo 'int i;' > conftest.$ac_ext
6134  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135  (eval $ac_compile) 2>&5
6136  ac_status=$?
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); }; then
6139    case `/usr/bin/file conftest.o` in
6140    *32-bit*)
6141      case $host in
6142        x86_64-*linux*)
6143          LD="${LD-ld} -m elf_i386"
6144          ;;
6145        ppc64-*linux*|powerpc64-*linux*)
6146          LD="${LD-ld} -m elf32ppclinux"
6147          ;;
6148        s390x-*linux*)
6149          LD="${LD-ld} -m elf_s390"
6150          ;;
6151        sparc64-*linux*)
6152          LD="${LD-ld} -m elf32_sparc"
6153          ;;
6154      esac
6155      ;;
6156    *64-bit*)
6157      case $host in
6158        x86_64-*linux*)
6159          LD="${LD-ld} -m elf_x86_64"
6160          ;;
6161        ppc*-*linux*|powerpc*-*linux*)
6162          LD="${LD-ld} -m elf64ppc"
6163          ;;
6164        s390*-*linux*)
6165          LD="${LD-ld} -m elf64_s390"
6166          ;;
6167        sparc*-*linux*)
6168          LD="${LD-ld} -m elf64_sparc"
6169          ;;
6170      esac
6171      ;;
6172    esac
6173  fi
6174  rm -rf conftest*
6175  ;;
6176
6177*-*-sco3.2v5*)
6178  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6179  SAVE_CFLAGS="$CFLAGS"
6180  CFLAGS="$CFLAGS -belf"
6181  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6182echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6183if test "${lt_cv_cc_needs_belf+set}" = set; then
6184  echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186  ac_ext=c
6187ac_cpp='$CPP $CPPFLAGS'
6188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191
6192     cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h.  */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h.  */
6198
6199int
6200main ()
6201{
6202
6203  ;
6204  return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
6208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209  (eval $ac_link) 2>conftest.er1
6210  ac_status=$?
6211  grep -v '^ *+' conftest.er1 >conftest.err
6212  rm -f conftest.er1
6213  cat conftest.err >&5
6214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215  (exit $ac_status); } &&
6216         { ac_try='test -z "$ac_c_werror_flag"
6217                         || test ! -s conftest.err'
6218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219  (eval $ac_try) 2>&5
6220  ac_status=$?
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); }; } &&
6223         { ac_try='test -s conftest$ac_exeext'
6224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6225  (eval $ac_try) 2>&5
6226  ac_status=$?
6227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228  (exit $ac_status); }; }; then
6229  lt_cv_cc_needs_belf=yes
6230else
6231  echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234lt_cv_cc_needs_belf=no
6235fi
6236rm -f conftest.err conftest.$ac_objext \
6237      conftest$ac_exeext conftest.$ac_ext
6238     ac_ext=c
6239ac_cpp='$CPP $CPPFLAGS'
6240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244fi
6245echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6246echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6247  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6248    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6249    CFLAGS="$SAVE_CFLAGS"
6250  fi
6251  ;;
6252sparc*-*solaris*)
6253  # Find out which ABI we are using.
6254  echo 'int i;' > conftest.$ac_ext
6255  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256  (eval $ac_compile) 2>&5
6257  ac_status=$?
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); }; then
6260    case `/usr/bin/file conftest.o` in
6261    *64-bit*)
6262      case $lt_cv_prog_gnu_ld in
6263      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6264      *)    LD="${LD-ld} -64" ;;
6265      esac
6266      ;;
6267    esac
6268  fi
6269  rm -rf conftest*
6270  ;;
6271
6272
6273esac
6274
6275need_locks="$enable_libtool_lock"
6276
6277
6278ac_ext=c
6279ac_cpp='$CPP $CPPFLAGS'
6280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6284echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6285# On Suns, sometimes $CPP names a directory.
6286if test -n "$CPP" && test -d "$CPP"; then
6287  CPP=
6288fi
6289if test -z "$CPP"; then
6290  if test "${ac_cv_prog_CPP+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293      # Double quotes because CPP needs to be expanded
6294    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6295    do
6296      ac_preproc_ok=false
6297for ac_c_preproc_warn_flag in '' yes
6298do
6299  # Use a header file that comes with gcc, so configuring glibc
6300  # with a fresh cross-compiler works.
6301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6302  # <limits.h> exists even on freestanding compilers.
6303  # On the NeXT, cc -E runs the code through the compiler's parser,
6304  # not just through cpp. "Syntax error" is here to catch this case.
6305  cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h.  */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h.  */
6311#ifdef __STDC__
6312# include <limits.h>
6313#else
6314# include <assert.h>
6315#endif
6316                     Syntax error
6317_ACEOF
6318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320  ac_status=$?
6321  grep -v '^ *+' conftest.er1 >conftest.err
6322  rm -f conftest.er1
6323  cat conftest.err >&5
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); } >/dev/null; then
6326  if test -s conftest.err; then
6327    ac_cpp_err=$ac_c_preproc_warn_flag
6328    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6329  else
6330    ac_cpp_err=
6331  fi
6332else
6333  ac_cpp_err=yes
6334fi
6335if test -z "$ac_cpp_err"; then
6336  :
6337else
6338  echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341  # Broken: fails on valid input.
6342continue
6343fi
6344rm -f conftest.err conftest.$ac_ext
6345
6346  # OK, works on sane cases.  Now check whether non-existent headers
6347  # can be detected and how.
6348  cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h.  */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h.  */
6354#include <ac_nonexistent.h>
6355_ACEOF
6356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358  ac_status=$?
6359  grep -v '^ *+' conftest.er1 >conftest.err
6360  rm -f conftest.er1
6361  cat conftest.err >&5
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); } >/dev/null; then
6364  if test -s conftest.err; then
6365    ac_cpp_err=$ac_c_preproc_warn_flag
6366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6367  else
6368    ac_cpp_err=
6369  fi
6370else
6371  ac_cpp_err=yes
6372fi
6373if test -z "$ac_cpp_err"; then
6374  # Broken: success on invalid input.
6375continue
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380  # Passes both tests.
6381ac_preproc_ok=:
6382break
6383fi
6384rm -f conftest.err conftest.$ac_ext
6385
6386done
6387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6388rm -f conftest.err conftest.$ac_ext
6389if $ac_preproc_ok; then
6390  break
6391fi
6392
6393    done
6394    ac_cv_prog_CPP=$CPP
6395
6396fi
6397  CPP=$ac_cv_prog_CPP
6398else
6399  ac_cv_prog_CPP=$CPP
6400fi
6401echo "$as_me:$LINENO: result: $CPP" >&5
6402echo "${ECHO_T}$CPP" >&6
6403ac_preproc_ok=false
6404for ac_c_preproc_warn_flag in '' yes
6405do
6406  # Use a header file that comes with gcc, so configuring glibc
6407  # with a fresh cross-compiler works.
6408  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6409  # <limits.h> exists even on freestanding compilers.
6410  # On the NeXT, cc -E runs the code through the compiler's parser,
6411  # not just through cpp. "Syntax error" is here to catch this case.
6412  cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418#ifdef __STDC__
6419# include <limits.h>
6420#else
6421# include <assert.h>
6422#endif
6423                     Syntax error
6424_ACEOF
6425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6427  ac_status=$?
6428  grep -v '^ *+' conftest.er1 >conftest.err
6429  rm -f conftest.er1
6430  cat conftest.err >&5
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); } >/dev/null; then
6433  if test -s conftest.err; then
6434    ac_cpp_err=$ac_c_preproc_warn_flag
6435    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6436  else
6437    ac_cpp_err=
6438  fi
6439else
6440  ac_cpp_err=yes
6441fi
6442if test -z "$ac_cpp_err"; then
6443  :
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448  # Broken: fails on valid input.
6449continue
6450fi
6451rm -f conftest.err conftest.$ac_ext
6452
6453  # OK, works on sane cases.  Now check whether non-existent headers
6454  # can be detected and how.
6455  cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461#include <ac_nonexistent.h>
6462_ACEOF
6463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465  ac_status=$?
6466  grep -v '^ *+' conftest.er1 >conftest.err
6467  rm -f conftest.er1
6468  cat conftest.err >&5
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } >/dev/null; then
6471  if test -s conftest.err; then
6472    ac_cpp_err=$ac_c_preproc_warn_flag
6473    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6474  else
6475    ac_cpp_err=
6476  fi
6477else
6478  ac_cpp_err=yes
6479fi
6480if test -z "$ac_cpp_err"; then
6481  # Broken: success on invalid input.
6482continue
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487  # Passes both tests.
6488ac_preproc_ok=:
6489break
6490fi
6491rm -f conftest.err conftest.$ac_ext
6492
6493done
6494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6495rm -f conftest.err conftest.$ac_ext
6496if $ac_preproc_ok; then
6497  :
6498else
6499  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6500See \`config.log' for more details." >&5
6501echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6502See \`config.log' for more details." >&2;}
6503   { (exit 1); exit 1; }; }
6504fi
6505
6506ac_ext=c
6507ac_cpp='$CPP $CPPFLAGS'
6508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511
6512
6513echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6514echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6515if test "${ac_cv_header_stdc+set}" = set; then
6516  echo $ECHO_N "(cached) $ECHO_C" >&6
6517else
6518  cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h.  */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h.  */
6524#include <stdlib.h>
6525#include <stdarg.h>
6526#include <string.h>
6527#include <float.h>
6528
6529int
6530main ()
6531{
6532
6533  ;
6534  return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539  (eval $ac_compile) 2>conftest.er1
6540  ac_status=$?
6541  grep -v '^ *+' conftest.er1 >conftest.err
6542  rm -f conftest.er1
6543  cat conftest.err >&5
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } &&
6546         { ac_try='test -z "$ac_c_werror_flag"
6547                         || test ! -s conftest.err'
6548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549  (eval $ac_try) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }; } &&
6553         { ac_try='test -s conftest.$ac_objext'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; }; then
6559  ac_cv_header_stdc=yes
6560else
6561  echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564ac_cv_header_stdc=no
6565fi
6566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567
6568if test $ac_cv_header_stdc = yes; then
6569  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6570  cat >conftest.$ac_ext <<_ACEOF
6571/* confdefs.h.  */
6572_ACEOF
6573cat confdefs.h >>conftest.$ac_ext
6574cat >>conftest.$ac_ext <<_ACEOF
6575/* end confdefs.h.  */
6576#include <string.h>
6577
6578_ACEOF
6579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6580  $EGREP "memchr" >/dev/null 2>&1; then
6581  :
6582else
6583  ac_cv_header_stdc=no
6584fi
6585rm -f conftest*
6586
6587fi
6588
6589if test $ac_cv_header_stdc = yes; then
6590  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6591  cat >conftest.$ac_ext <<_ACEOF
6592/* confdefs.h.  */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h.  */
6597#include <stdlib.h>
6598
6599_ACEOF
6600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601  $EGREP "free" >/dev/null 2>&1; then
6602  :
6603else
6604  ac_cv_header_stdc=no
6605fi
6606rm -f conftest*
6607
6608fi
6609
6610if test $ac_cv_header_stdc = yes; then
6611  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6612  if test "$cross_compiling" = yes; then
6613  :
6614else
6615  cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h.  */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h.  */
6621#include <ctype.h>
6622#if ((' ' & 0x0FF) == 0x020)
6623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6625#else
6626# define ISLOWER(c) \
6627                   (('a' <= (c) && (c) <= 'i') \
6628                     || ('j' <= (c) && (c) <= 'r') \
6629                     || ('s' <= (c) && (c) <= 'z'))
6630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6631#endif
6632
6633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6634int
6635main ()
6636{
6637  int i;
6638  for (i = 0; i < 256; i++)
6639    if (XOR (islower (i), ISLOWER (i))
6640        || toupper (i) != TOUPPER (i))
6641      exit(2);
6642  exit (0);
6643}
6644_ACEOF
6645rm -f conftest$ac_exeext
6646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647  (eval $ac_link) 2>&5
6648  ac_status=$?
6649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; }; then
6656  :
6657else
6658  echo "$as_me: program exited with status $ac_status" >&5
6659echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662( exit $ac_status )
6663ac_cv_header_stdc=no
6664fi
6665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6666fi
6667fi
6668fi
6669echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6670echo "${ECHO_T}$ac_cv_header_stdc" >&6
6671if test $ac_cv_header_stdc = yes; then
6672
6673cat >>confdefs.h <<\_ACEOF
6674#define STDC_HEADERS 1
6675_ACEOF
6676
6677fi
6678
6679# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6690                  inttypes.h stdint.h unistd.h
6691do
6692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693echo "$as_me:$LINENO: checking for $ac_header" >&5
6694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695if eval "test \"\${$as_ac_Header+set}\" = set"; then
6696  echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698  cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h.  */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
6703/* end confdefs.h.  */
6704$ac_includes_default
6705
6706#include <$ac_header>
6707_ACEOF
6708rm -f conftest.$ac_objext
6709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6710  (eval $ac_compile) 2>conftest.er1
6711  ac_status=$?
6712  grep -v '^ *+' conftest.er1 >conftest.err
6713  rm -f conftest.er1
6714  cat conftest.err >&5
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); } &&
6717         { ac_try='test -z "$ac_c_werror_flag"
6718                         || test ! -s conftest.err'
6719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720  (eval $ac_try) 2>&5
6721  ac_status=$?
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); }; } &&
6724         { ac_try='test -s conftest.$ac_objext'
6725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6726  (eval $ac_try) 2>&5
6727  ac_status=$?
6728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729  (exit $ac_status); }; }; then
6730  eval "$as_ac_Header=yes"
6731else
6732  echo "$as_me: failed program was:" >&5
6733sed 's/^/| /' conftest.$ac_ext >&5
6734
6735eval "$as_ac_Header=no"
6736fi
6737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6738fi
6739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6741if test `eval echo '${'$as_ac_Header'}'` = yes; then
6742  cat >>confdefs.h <<_ACEOF
6743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6744_ACEOF
6745
6746fi
6747
6748done
6749
6750
6751
6752for ac_header in dlfcn.h
6753do
6754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6755if eval "test \"\${$as_ac_Header+set}\" = set"; then
6756  echo "$as_me:$LINENO: checking for $ac_header" >&5
6757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6758if eval "test \"\${$as_ac_Header+set}\" = set"; then
6759  echo $ECHO_N "(cached) $ECHO_C" >&6
6760fi
6761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6763else
6764  # Is the header compilable?
6765echo "$as_me:$LINENO: checking $ac_header usability" >&5
6766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6767cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h.  */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h.  */
6773$ac_includes_default
6774#include <$ac_header>
6775_ACEOF
6776rm -f conftest.$ac_objext
6777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778  (eval $ac_compile) 2>conftest.er1
6779  ac_status=$?
6780  grep -v '^ *+' conftest.er1 >conftest.err
6781  rm -f conftest.er1
6782  cat conftest.err >&5
6783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784  (exit $ac_status); } &&
6785         { ac_try='test -z "$ac_c_werror_flag"
6786                         || test ! -s conftest.err'
6787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788  (eval $ac_try) 2>&5
6789  ac_status=$?
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); }; } &&
6792         { ac_try='test -s conftest.$ac_objext'
6793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794  (eval $ac_try) 2>&5
6795  ac_status=$?
6796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797  (exit $ac_status); }; }; then
6798  ac_header_compiler=yes
6799else
6800  echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803ac_header_compiler=no
6804fi
6805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6807echo "${ECHO_T}$ac_header_compiler" >&6
6808
6809# Is the header present?
6810echo "$as_me:$LINENO: checking $ac_header presence" >&5
6811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6812cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h.  */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h.  */
6818#include <$ac_header>
6819_ACEOF
6820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6822  ac_status=$?
6823  grep -v '^ *+' conftest.er1 >conftest.err
6824  rm -f conftest.er1
6825  cat conftest.err >&5
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); } >/dev/null; then
6828  if test -s conftest.err; then
6829    ac_cpp_err=$ac_c_preproc_warn_flag
6830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6831  else
6832    ac_cpp_err=
6833  fi
6834else
6835  ac_cpp_err=yes
6836fi
6837if test -z "$ac_cpp_err"; then
6838  ac_header_preproc=yes
6839else
6840  echo "$as_me: failed program was:" >&5
6841sed 's/^/| /' conftest.$ac_ext >&5
6842
6843  ac_header_preproc=no
6844fi
6845rm -f conftest.err conftest.$ac_ext
6846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6847echo "${ECHO_T}$ac_header_preproc" >&6
6848
6849# So?  What about this header?
6850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6851  yes:no: )
6852    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6854    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6856    ac_header_preproc=yes
6857    ;;
6858  no:yes:* )
6859    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6861    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6862echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6863    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6865    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6866echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6867    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6869    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6871    (
6872      cat <<\_ASBOX
6873## --------------------------------------------------------------- ##
6874## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6875## --------------------------------------------------------------- ##
6876_ASBOX
6877    ) |
6878      sed "s/^/$as_me: WARNING:     /" >&2
6879    ;;
6880esac
6881echo "$as_me:$LINENO: checking for $ac_header" >&5
6882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6883if eval "test \"\${$as_ac_Header+set}\" = set"; then
6884  echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886  eval "$as_ac_Header=\$ac_header_preproc"
6887fi
6888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6890
6891fi
6892if test `eval echo '${'$as_ac_Header'}'` = yes; then
6893  cat >>confdefs.h <<_ACEOF
6894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895_ACEOF
6896
6897fi
6898
6899done
6900
6901ac_ext=cc
6902ac_cpp='$CXXCPP $CPPFLAGS'
6903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6906if test -n "$ac_tool_prefix"; then
6907  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6908  do
6909    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6911echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6913if test "${ac_cv_prog_CXX+set}" = set; then
6914  echo $ECHO_N "(cached) $ECHO_C" >&6
6915else
6916  if test -n "$CXX"; then
6917  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6918else
6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH
6921do
6922  IFS=$as_save_IFS
6923  test -z "$as_dir" && as_dir=.
6924  for ac_exec_ext in '' $ac_executable_extensions; do
6925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928    break 2
6929  fi
6930done
6931done
6932
6933fi
6934fi
6935CXX=$ac_cv_prog_CXX
6936if test -n "$CXX"; then
6937  echo "$as_me:$LINENO: result: $CXX" >&5
6938echo "${ECHO_T}$CXX" >&6
6939else
6940  echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6
6942fi
6943
6944    test -n "$CXX" && break
6945  done
6946fi
6947if test -z "$CXX"; then
6948  ac_ct_CXX=$CXX
6949  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6950do
6951  # Extract the first word of "$ac_prog", so it can be a program name with args.
6952set dummy $ac_prog; ac_word=$2
6953echo "$as_me:$LINENO: checking for $ac_word" >&5
6954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6955if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6956  echo $ECHO_N "(cached) $ECHO_C" >&6
6957else
6958  if test -n "$ac_ct_CXX"; then
6959  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6960else
6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962for as_dir in $PATH
6963do
6964  IFS=$as_save_IFS
6965  test -z "$as_dir" && as_dir=.
6966  for ac_exec_ext in '' $ac_executable_extensions; do
6967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968    ac_cv_prog_ac_ct_CXX="$ac_prog"
6969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970    break 2
6971  fi
6972done
6973done
6974
6975fi
6976fi
6977ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6978if test -n "$ac_ct_CXX"; then
6979  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6980echo "${ECHO_T}$ac_ct_CXX" >&6
6981else
6982  echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6
6984fi
6985
6986  test -n "$ac_ct_CXX" && break
6987done
6988test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6989
6990  CXX=$ac_ct_CXX
6991fi
6992
6993
6994# Provide some information about the compiler.
6995echo "$as_me:$LINENO:" \
6996     "checking for C++ compiler version" >&5
6997ac_compiler=`set X $ac_compile; echo $2`
6998{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6999  (eval $ac_compiler --version </dev/null >&5) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }
7003{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7004  (eval $ac_compiler -v </dev/null >&5) 2>&5
7005  ac_status=$?
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); }
7008{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7009  (eval $ac_compiler -V </dev/null >&5) 2>&5
7010  ac_status=$?
7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012  (exit $ac_status); }
7013
7014echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7015echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7016if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7017  echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019  cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h.  */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h.  */
7025
7026int
7027main ()
7028{
7029#ifndef __GNUC__
7030       choke me
7031#endif
7032
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext
7038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039  (eval $ac_compile) 2>conftest.er1
7040  ac_status=$?
7041  grep -v '^ *+' conftest.er1 >conftest.err
7042  rm -f conftest.er1
7043  cat conftest.err >&5
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); } &&
7046         { ac_try='test -z "$ac_cxx_werror_flag"
7047                         || test ! -s conftest.err'
7048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049  (eval $ac_try) 2>&5
7050  ac_status=$?
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); }; } &&
7053         { ac_try='test -s conftest.$ac_objext'
7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055  (eval $ac_try) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; }; then
7059  ac_compiler_gnu=yes
7060else
7061  echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064ac_compiler_gnu=no
7065fi
7066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7067ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7068
7069fi
7070echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7071echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7072GXX=`test $ac_compiler_gnu = yes && echo yes`
7073ac_test_CXXFLAGS=${CXXFLAGS+set}
7074ac_save_CXXFLAGS=$CXXFLAGS
7075CXXFLAGS="-g"
7076echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7077echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7078if test "${ac_cv_prog_cxx_g+set}" = set; then
7079  echo $ECHO_N "(cached) $ECHO_C" >&6
7080else
7081  cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h.  */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h.  */
7087
7088int
7089main ()
7090{
7091
7092  ;
7093  return 0;
7094}
7095_ACEOF
7096rm -f conftest.$ac_objext
7097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098  (eval $ac_compile) 2>conftest.er1
7099  ac_status=$?
7100  grep -v '^ *+' conftest.er1 >conftest.err
7101  rm -f conftest.er1
7102  cat conftest.err >&5
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); } &&
7105         { ac_try='test -z "$ac_cxx_werror_flag"
7106                         || test ! -s conftest.err'
7107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108  (eval $ac_try) 2>&5
7109  ac_status=$?
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); }; } &&
7112         { ac_try='test -s conftest.$ac_objext'
7113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114  (eval $ac_try) 2>&5
7115  ac_status=$?
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); }; }; then
7118  ac_cv_prog_cxx_g=yes
7119else
7120  echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123ac_cv_prog_cxx_g=no
7124fi
7125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7126fi
7127echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7128echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7129if test "$ac_test_CXXFLAGS" = set; then
7130  CXXFLAGS=$ac_save_CXXFLAGS
7131elif test $ac_cv_prog_cxx_g = yes; then
7132  if test "$GXX" = yes; then
7133    CXXFLAGS="-g -O2"
7134  else
7135    CXXFLAGS="-g"
7136  fi
7137else
7138  if test "$GXX" = yes; then
7139    CXXFLAGS="-O2"
7140  else
7141    CXXFLAGS=
7142  fi
7143fi
7144for ac_declaration in \
7145   '' \
7146   'extern "C" void std::exit (int) throw (); using std::exit;' \
7147   'extern "C" void std::exit (int); using std::exit;' \
7148   'extern "C" void exit (int) throw ();' \
7149   'extern "C" void exit (int);' \
7150   'void exit (int);'
7151do
7152  cat >conftest.$ac_ext <<_ACEOF
7153/* confdefs.h.  */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h.  */
7158$ac_declaration
7159#include <stdlib.h>
7160int
7161main ()
7162{
7163exit (42);
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168rm -f conftest.$ac_objext
7169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7170  (eval $ac_compile) 2>conftest.er1
7171  ac_status=$?
7172  grep -v '^ *+' conftest.er1 >conftest.err
7173  rm -f conftest.er1
7174  cat conftest.err >&5
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); } &&
7177         { ac_try='test -z "$ac_cxx_werror_flag"
7178                         || test ! -s conftest.err'
7179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180  (eval $ac_try) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; } &&
7184         { ac_try='test -s conftest.$ac_objext'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; }; then
7190  :
7191else
7192  echo "$as_me: failed program was:" >&5
7193sed 's/^/| /' conftest.$ac_ext >&5
7194
7195continue
7196fi
7197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7198  cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h.  */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h.  */
7204$ac_declaration
7205int
7206main ()
7207{
7208exit (42);
7209  ;
7210  return 0;
7211}
7212_ACEOF
7213rm -f conftest.$ac_objext
7214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215  (eval $ac_compile) 2>conftest.er1
7216  ac_status=$?
7217  grep -v '^ *+' conftest.er1 >conftest.err
7218  rm -f conftest.er1
7219  cat conftest.err >&5
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); } &&
7222         { ac_try='test -z "$ac_cxx_werror_flag"
7223                         || test ! -s conftest.err'
7224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225  (eval $ac_try) 2>&5
7226  ac_status=$?
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); }; } &&
7229         { ac_try='test -s conftest.$ac_objext'
7230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231  (eval $ac_try) 2>&5
7232  ac_status=$?
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); }; }; then
7235  break
7236else
7237  echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240fi
7241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242done
7243rm -f conftest*
7244if test -n "$ac_declaration"; then
7245  echo '#ifdef __cplusplus' >>confdefs.h
7246  echo $ac_declaration      >>confdefs.h
7247  echo '#endif'             >>confdefs.h
7248fi
7249
7250ac_ext=cc
7251ac_cpp='$CXXCPP $CPPFLAGS'
7252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7255
7256depcc="$CXX"  am_compiler_list=
7257
7258echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7259echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7260if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7261  echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7264  # We make a subdir and do the tests there.  Otherwise we can end up
7265  # making bogus files that we don't know about and never remove.  For
7266  # instance it was reported that on HP-UX the gcc test will end up
7267  # making a dummy file named `D' -- because `-MD' means `put the output
7268  # in D'.
7269  mkdir conftest.dir
7270  # Copy depcomp to subdir because otherwise we won't find it if we're
7271  # using a relative directory.
7272  cp "$am_depcomp" conftest.dir
7273  cd conftest.dir
7274  # We will build objects and dependencies in a subdirectory because
7275  # it helps to detect inapplicable dependency modes.  For instance
7276  # both Tru64's cc and ICC support -MD to output dependencies as a
7277  # side effect of compilation, but ICC will put the dependencies in
7278  # the current directory while Tru64 will put them in the object
7279  # directory.
7280  mkdir sub
7281
7282  am_cv_CXX_dependencies_compiler_type=none
7283  if test "$am_compiler_list" = ""; then
7284     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7285  fi
7286  for depmode in $am_compiler_list; do
7287    # Setup a source with many dependencies, because some compilers
7288    # like to wrap large dependency lists on column 80 (with \), and
7289    # we should not choose a depcomp mode which is confused by this.
7290    #
7291    # We need to recreate these files for each test, as the compiler may
7292    # overwrite some of them when testing with obscure command lines.
7293    # This happens at least with the AIX C compiler.
7294    : > sub/conftest.c
7295    for i in 1 2 3 4 5 6; do
7296      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7297      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7298      # Solaris 8's {/usr,}/bin/sh.
7299      touch sub/conftst$i.h
7300    done
7301    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7302
7303    case $depmode in
7304    nosideeffect)
7305      # after this tag, mechanisms are not by side-effect, so they'll
7306      # only be used when explicitly requested
7307      if test "x$enable_dependency_tracking" = xyes; then
7308        continue
7309      else
7310        break
7311      fi
7312      ;;
7313    none) break ;;
7314    esac
7315    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7316    # mode.  It turns out that the SunPro C++ compiler does not properly
7317    # handle `-M -o', and we need to detect this.
7318    if depmode=$depmode \
7319       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7320       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7321       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7322         >/dev/null 2>conftest.err &&
7323       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7324       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7325       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7326      # icc doesn't choke on unknown options, it will just issue warnings
7327      # or remarks (even with -Werror).  So we grep stderr for any message
7328      # that says an option was ignored or not supported.
7329      # When given -MP, icc 7.0 and 7.1 complain thusly:
7330      #   icc: Command line warning: ignoring option '-M'; no argument required
7331      # The diagnosis changed in icc 8.0:
7332      #   icc: Command line remark: option '-MP' not supported
7333      if (grep 'ignoring option' conftest.err ||
7334          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7335        am_cv_CXX_dependencies_compiler_type=$depmode
7336        break
7337      fi
7338    fi
7339  done
7340
7341  cd ..
7342  rm -rf conftest.dir
7343else
7344  am_cv_CXX_dependencies_compiler_type=none
7345fi
7346
7347fi
7348echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7349echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7350CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7351
7352
7353
7354if
7355  test "x$enable_dependency_tracking" != xno \
7356  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7357  am__fastdepCXX_TRUE=
7358  am__fastdepCXX_FALSE='#'
7359else
7360  am__fastdepCXX_TRUE='#'
7361  am__fastdepCXX_FALSE=
7362fi
7363
7364
7365depcc="$CXX"  am_compiler_list=
7366
7367echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7368echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7369if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7370  echo $ECHO_N "(cached) $ECHO_C" >&6
7371else
7372  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7373  # We make a subdir and do the tests there.  Otherwise we can end up
7374  # making bogus files that we don't know about and never remove.  For
7375  # instance it was reported that on HP-UX the gcc test will end up
7376  # making a dummy file named `D' -- because `-MD' means `put the output
7377  # in D'.
7378  mkdir conftest.dir
7379  # Copy depcomp to subdir because otherwise we won't find it if we're
7380  # using a relative directory.
7381  cp "$am_depcomp" conftest.dir
7382  cd conftest.dir
7383  # We will build objects and dependencies in a subdirectory because
7384  # it helps to detect inapplicable dependency modes.  For instance
7385  # both Tru64's cc and ICC support -MD to output dependencies as a
7386  # side effect of compilation, but ICC will put the dependencies in
7387  # the current directory while Tru64 will put them in the object
7388  # directory.
7389  mkdir sub
7390
7391  am_cv_CXX_dependencies_compiler_type=none
7392  if test "$am_compiler_list" = ""; then
7393     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7394  fi
7395  for depmode in $am_compiler_list; do
7396    # Setup a source with many dependencies, because some compilers
7397    # like to wrap large dependency lists on column 80 (with \), and
7398    # we should not choose a depcomp mode which is confused by this.
7399    #
7400    # We need to recreate these files for each test, as the compiler may
7401    # overwrite some of them when testing with obscure command lines.
7402    # This happens at least with the AIX C compiler.
7403    : > sub/conftest.c
7404    for i in 1 2 3 4 5 6; do
7405      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7406      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7407      # Solaris 8's {/usr,}/bin/sh.
7408      touch sub/conftst$i.h
7409    done
7410    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7411
7412    case $depmode in
7413    nosideeffect)
7414      # after this tag, mechanisms are not by side-effect, so they'll
7415      # only be used when explicitly requested
7416      if test "x$enable_dependency_tracking" = xyes; then
7417        continue
7418      else
7419        break
7420      fi
7421      ;;
7422    none) break ;;
7423    esac
7424    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7425    # mode.  It turns out that the SunPro C++ compiler does not properly
7426    # handle `-M -o', and we need to detect this.
7427    if depmode=$depmode \
7428       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7429       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7430       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7431         >/dev/null 2>conftest.err &&
7432       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7433       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7434       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7435      # icc doesn't choke on unknown options, it will just issue warnings
7436      # or remarks (even with -Werror).  So we grep stderr for any message
7437      # that says an option was ignored or not supported.
7438      # When given -MP, icc 7.0 and 7.1 complain thusly:
7439      #   icc: Command line warning: ignoring option '-M'; no argument required
7440      # The diagnosis changed in icc 8.0:
7441      #   icc: Command line remark: option '-MP' not supported
7442      if (grep 'ignoring option' conftest.err ||
7443          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7444        am_cv_CXX_dependencies_compiler_type=$depmode
7445        break
7446      fi
7447    fi
7448  done
7449
7450  cd ..
7451  rm -rf conftest.dir
7452else
7453  am_cv_CXX_dependencies_compiler_type=none
7454fi
7455
7456fi
7457echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7458echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7459CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7460
7461
7462
7463if
7464  test "x$enable_dependency_tracking" != xno \
7465  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7466  am__fastdepCXX_TRUE=
7467  am__fastdepCXX_FALSE='#'
7468else
7469  am__fastdepCXX_TRUE='#'
7470  am__fastdepCXX_FALSE=
7471fi
7472
7473
7474
7475
7476if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7477    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7478    (test "X$CXX" != "Xg++"))) ; then
7479  ac_ext=cc
7480ac_cpp='$CXXCPP $CPPFLAGS'
7481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7484echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7485echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7486if test -z "$CXXCPP"; then
7487  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7488  echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490      # Double quotes because CXXCPP needs to be expanded
7491    for CXXCPP in "$CXX -E" "/lib/cpp"
7492    do
7493      ac_preproc_ok=false
7494for ac_cxx_preproc_warn_flag in '' yes
7495do
7496  # Use a header file that comes with gcc, so configuring glibc
7497  # with a fresh cross-compiler works.
7498  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499  # <limits.h> exists even on freestanding compilers.
7500  # On the NeXT, cc -E runs the code through the compiler's parser,
7501  # not just through cpp. "Syntax error" is here to catch this case.
7502  cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508#ifdef __STDC__
7509# include <limits.h>
7510#else
7511# include <assert.h>
7512#endif
7513                     Syntax error
7514_ACEOF
7515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7516  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7517  ac_status=$?
7518  grep -v '^ *+' conftest.er1 >conftest.err
7519  rm -f conftest.er1
7520  cat conftest.err >&5
7521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522  (exit $ac_status); } >/dev/null; then
7523  if test -s conftest.err; then
7524    ac_cpp_err=$ac_cxx_preproc_warn_flag
7525    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7526  else
7527    ac_cpp_err=
7528  fi
7529else
7530  ac_cpp_err=yes
7531fi
7532if test -z "$ac_cpp_err"; then
7533  :
7534else
7535  echo "$as_me: failed program was:" >&5
7536sed 's/^/| /' conftest.$ac_ext >&5
7537
7538  # Broken: fails on valid input.
7539continue
7540fi
7541rm -f conftest.err conftest.$ac_ext
7542
7543  # OK, works on sane cases.  Now check whether non-existent headers
7544  # can be detected and how.
7545  cat >conftest.$ac_ext <<_ACEOF
7546/* confdefs.h.  */
7547_ACEOF
7548cat confdefs.h >>conftest.$ac_ext
7549cat >>conftest.$ac_ext <<_ACEOF
7550/* end confdefs.h.  */
7551#include <ac_nonexistent.h>
7552_ACEOF
7553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7554  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7555  ac_status=$?
7556  grep -v '^ *+' conftest.er1 >conftest.err
7557  rm -f conftest.er1
7558  cat conftest.err >&5
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); } >/dev/null; then
7561  if test -s conftest.err; then
7562    ac_cpp_err=$ac_cxx_preproc_warn_flag
7563    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7564  else
7565    ac_cpp_err=
7566  fi
7567else
7568  ac_cpp_err=yes
7569fi
7570if test -z "$ac_cpp_err"; then
7571  # Broken: success on invalid input.
7572continue
7573else
7574  echo "$as_me: failed program was:" >&5
7575sed 's/^/| /' conftest.$ac_ext >&5
7576
7577  # Passes both tests.
7578ac_preproc_ok=:
7579break
7580fi
7581rm -f conftest.err conftest.$ac_ext
7582
7583done
7584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7585rm -f conftest.err conftest.$ac_ext
7586if $ac_preproc_ok; then
7587  break
7588fi
7589
7590    done
7591    ac_cv_prog_CXXCPP=$CXXCPP
7592
7593fi
7594  CXXCPP=$ac_cv_prog_CXXCPP
7595else
7596  ac_cv_prog_CXXCPP=$CXXCPP
7597fi
7598echo "$as_me:$LINENO: result: $CXXCPP" >&5
7599echo "${ECHO_T}$CXXCPP" >&6
7600ac_preproc_ok=false
7601for ac_cxx_preproc_warn_flag in '' yes
7602do
7603  # Use a header file that comes with gcc, so configuring glibc
7604  # with a fresh cross-compiler works.
7605  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7606  # <limits.h> exists even on freestanding compilers.
7607  # On the NeXT, cc -E runs the code through the compiler's parser,
7608  # not just through cpp. "Syntax error" is here to catch this case.
7609  cat >conftest.$ac_ext <<_ACEOF
7610/* confdefs.h.  */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h.  */
7615#ifdef __STDC__
7616# include <limits.h>
7617#else
7618# include <assert.h>
7619#endif
7620                     Syntax error
7621_ACEOF
7622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7623  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7624  ac_status=$?
7625  grep -v '^ *+' conftest.er1 >conftest.err
7626  rm -f conftest.er1
7627  cat conftest.err >&5
7628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629  (exit $ac_status); } >/dev/null; then
7630  if test -s conftest.err; then
7631    ac_cpp_err=$ac_cxx_preproc_warn_flag
7632    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7633  else
7634    ac_cpp_err=
7635  fi
7636else
7637  ac_cpp_err=yes
7638fi
7639if test -z "$ac_cpp_err"; then
7640  :
7641else
7642  echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
7645  # Broken: fails on valid input.
7646continue
7647fi
7648rm -f conftest.err conftest.$ac_ext
7649
7650  # OK, works on sane cases.  Now check whether non-existent headers
7651  # can be detected and how.
7652  cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h.  */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h.  */
7658#include <ac_nonexistent.h>
7659_ACEOF
7660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7661  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7662  ac_status=$?
7663  grep -v '^ *+' conftest.er1 >conftest.err
7664  rm -f conftest.er1
7665  cat conftest.err >&5
7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667  (exit $ac_status); } >/dev/null; then
7668  if test -s conftest.err; then
7669    ac_cpp_err=$ac_cxx_preproc_warn_flag
7670    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7671  else
7672    ac_cpp_err=
7673  fi
7674else
7675  ac_cpp_err=yes
7676fi
7677if test -z "$ac_cpp_err"; then
7678  # Broken: success on invalid input.
7679continue
7680else
7681  echo "$as_me: failed program was:" >&5
7682sed 's/^/| /' conftest.$ac_ext >&5
7683
7684  # Passes both tests.
7685ac_preproc_ok=:
7686break
7687fi
7688rm -f conftest.err conftest.$ac_ext
7689
7690done
7691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7692rm -f conftest.err conftest.$ac_ext
7693if $ac_preproc_ok; then
7694  :
7695else
7696  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7697See \`config.log' for more details." >&5
7698echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7699See \`config.log' for more details." >&2;}
7700   { (exit 1); exit 1; }; }
7701fi
7702
7703ac_ext=cc
7704ac_cpp='$CXXCPP $CPPFLAGS'
7705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7708
7709fi
7710
7711
7712
7713# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7714
7715# find the maximum length of command line arguments
7716echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7717echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7718if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721    i=0
7722  teststring="ABCD"
7723
7724  case $build_os in
7725  msdosdjgpp*)
7726    # On DJGPP, this test can blow up pretty badly due to problems in libc
7727    # (any single argument exceeding 2000 bytes causes a buffer overrun
7728    # during glob expansion).  Even if it were fixed, the result of this
7729    # check would be larger than it should be.
7730    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7731    ;;
7732
7733  gnu*)
7734    # Under GNU Hurd, this test is not required because there is
7735    # no limit to the length of command line arguments.
7736    # Libtool will interpret -1 as no limit whatsoever
7737    lt_cv_sys_max_cmd_len=-1;
7738    ;;
7739
7740  cygwin* | mingw*)
7741    # On Win9x/ME, this test blows up -- it succeeds, but takes
7742    # about 5 minutes as the teststring grows exponentially.
7743    # Worse, since 9x/ME are not pre-emptively multitasking,
7744    # you end up with a "frozen" computer, even though with patience
7745    # the test eventually succeeds (with a max line length of 256k).
7746    # Instead, let's just punt: use the minimum linelength reported by
7747    # all of the supported platforms: 8192 (on NT/2K/XP).
7748    lt_cv_sys_max_cmd_len=8192;
7749    ;;
7750
7751  amigaos*)
7752    # On AmigaOS with pdksh, this test takes hours, literally.
7753    # So we just punt and use a minimum line length of 8192.
7754    lt_cv_sys_max_cmd_len=8192;
7755    ;;
7756
7757  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7758    # This has been around since 386BSD, at least.  Likely further.
7759    if test -x /sbin/sysctl; then
7760      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7761    elif test -x /usr/sbin/sysctl; then
7762      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7763    else
7764      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7765    fi
7766    # And add a safety zone
7767    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7768    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7769    ;;
7770
7771  interix*)
7772    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7773    lt_cv_sys_max_cmd_len=196608
7774    ;;
7775
7776  osf*)
7777    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7778    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7779    # nice to cause kernel panics so lets avoid the loop below.
7780    # First set a reasonable default.
7781    lt_cv_sys_max_cmd_len=16384
7782    #
7783    if test -x /sbin/sysconfig; then
7784      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7785        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7786      esac
7787    fi
7788    ;;
7789  sco3.2v5*)
7790    lt_cv_sys_max_cmd_len=102400
7791    ;;
7792  sysv5* | sco5v6* | sysv4.2uw2*)
7793    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7794    if test -n "$kargmax"; then
7795      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7796    else
7797      lt_cv_sys_max_cmd_len=32768
7798    fi
7799    ;;
7800  *)
7801    # If test is not a shell built-in, we'll probably end up computing a
7802    # maximum length that is only half of the actual maximum length, but
7803    # we can't tell.
7804    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7805    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7806               = "XX$teststring") >/dev/null 2>&1 &&
7807            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7808            lt_cv_sys_max_cmd_len=$new_result &&
7809            test $i != 17 # 1/2 MB should be enough
7810    do
7811      i=`expr $i + 1`
7812      teststring=$teststring$teststring
7813    done
7814    teststring=
7815    # Add a significant safety factor because C++ compilers can tack on massive
7816    # amounts of additional arguments before passing them to the linker.
7817    # It appears as though 1/2 is a usable value.
7818    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7819    ;;
7820  esac
7821
7822fi
7823
7824if test -n $lt_cv_sys_max_cmd_len ; then
7825  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7826echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7827else
7828  echo "$as_me:$LINENO: result: none" >&5
7829echo "${ECHO_T}none" >&6
7830fi
7831
7832
7833
7834
7835# Check for command to grab the raw symbol name followed by C symbol from nm.
7836echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7837echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7838if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7839  echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841
7842# These are sane defaults that work on at least a few old systems.
7843# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7844
7845# Character class describing NM global symbol codes.
7846symcode='[BCDEGRST]'
7847
7848# Regexp to match symbols that can be accessed directly from C.
7849sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7850
7851# Transform an extracted symbol line into a proper C declaration
7852lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7853
7854# Transform an extracted symbol line into symbol name and symbol address
7855lt_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'"
7856
7857# Define system-specific variables.
7858case $host_os in
7859aix*)
7860  symcode='[BCDT]'
7861  ;;
7862cygwin* | mingw* | pw32*)
7863  symcode='[ABCDGISTW]'
7864  ;;
7865hpux*) # Its linker distinguishes data from code symbols
7866  if test "$host_cpu" = ia64; then
7867    symcode='[ABCDEGRST]'
7868  fi
7869  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7870  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'"
7871  ;;
7872linux*)
7873  if test "$host_cpu" = ia64; then
7874    symcode='[ABCDGIRSTW]'
7875    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7876    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'"
7877  fi
7878  ;;
7879irix* | nonstopux*)
7880  symcode='[BCDEGRST]'
7881  ;;
7882osf*)
7883  symcode='[BCDEGQRST]'
7884  ;;
7885solaris*)
7886  symcode='[BDRT]'
7887  ;;
7888sco3.2v5*)
7889  symcode='[DT]'
7890  ;;
7891sysv4.2uw2*)
7892  symcode='[DT]'
7893  ;;
7894sysv5* | sco5v6* | unixware* | OpenUNIX*)
7895  symcode='[ABDT]'
7896  ;;
7897sysv4)
7898  symcode='[DFNSTU]'
7899  ;;
7900esac
7901
7902# Handle CRLF in mingw tool chain
7903opt_cr=
7904case $build_os in
7905mingw*)
7906  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7907  ;;
7908esac
7909
7910# If we're using GNU nm, then use its standard symbol codes.
7911case `$NM -V 2>&1` in
7912*GNU* | *'with BFD'*)
7913  symcode='[ABCDGIRSTW]' ;;
7914esac
7915
7916# Try without a prefix undercore, then with it.
7917for ac_symprfx in "" "_"; do
7918
7919  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7920  symxfrm="\\1 $ac_symprfx\\2 \\2"
7921
7922  # Write the raw and C identifiers.
7923  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7924
7925  # Check to see that the pipe works correctly.
7926  pipe_works=no
7927
7928  rm -f conftest*
7929  cat > conftest.$ac_ext <<EOF
7930#ifdef __cplusplus
7931extern "C" {
7932#endif
7933char nm_test_var;
7934void nm_test_func(){}
7935#ifdef __cplusplus
7936}
7937#endif
7938int main(){nm_test_var='a';nm_test_func();return(0);}
7939EOF
7940
7941  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7942  (eval $ac_compile) 2>&5
7943  ac_status=$?
7944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945  (exit $ac_status); }; then
7946    # Now try to grab the symbols.
7947    nlist=conftest.nm
7948    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7949  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7950  ac_status=$?
7951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952  (exit $ac_status); } && test -s "$nlist"; then
7953      # Try sorting and uniquifying the output.
7954      if sort "$nlist" | uniq > "$nlist"T; then
7955        mv -f "$nlist"T "$nlist"
7956      else
7957        rm -f "$nlist"T
7958      fi
7959
7960      # Make sure that we snagged all the symbols we need.
7961      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7962        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7963          cat <<EOF > conftest.$ac_ext
7964#ifdef __cplusplus
7965extern "C" {
7966#endif
7967
7968EOF
7969          # Now generate the symbol file.
7970          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7971
7972          cat <<EOF >> conftest.$ac_ext
7973#if defined (__STDC__) && __STDC__
7974# define lt_ptr_t void *
7975#else
7976# define lt_ptr_t char *
7977# define const
7978#endif
7979
7980/* The mapping between symbol names and symbols. */
7981const struct {
7982  const char *name;
7983  lt_ptr_t address;
7984}
7985lt_preloaded_symbols[] =
7986{
7987EOF
7988          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7989          cat <<\EOF >> conftest.$ac_ext
7990  {0, (lt_ptr_t) 0}
7991};
7992
7993#ifdef __cplusplus
7994}
7995#endif
7996EOF
7997          # Now try linking the two files.
7998          mv conftest.$ac_objext conftstm.$ac_objext
7999          lt_save_LIBS="$LIBS"
8000          lt_save_CFLAGS="$CFLAGS"
8001          LIBS="conftstm.$ac_objext"
8002          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8003          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8004  (eval $ac_link) 2>&5
8005  ac_status=$?
8006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8008            pipe_works=yes
8009          fi
8010          LIBS="$lt_save_LIBS"
8011          CFLAGS="$lt_save_CFLAGS"
8012        else
8013          echo "cannot find nm_test_func in $nlist" >&5
8014        fi
8015      else
8016        echo "cannot find nm_test_var in $nlist" >&5
8017      fi
8018    else
8019      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8020    fi
8021  else
8022    echo "$progname: failed program was:" >&5
8023    cat conftest.$ac_ext >&5
8024  fi
8025  rm -f conftest* conftst*
8026
8027  # Do not use the global_symbol_pipe unless it works.
8028  if test "$pipe_works" = yes; then
8029    break
8030  else
8031    lt_cv_sys_global_symbol_pipe=
8032  fi
8033done
8034
8035fi
8036
8037if test -z "$lt_cv_sys_global_symbol_pipe"; then
8038  lt_cv_sys_global_symbol_to_cdecl=
8039fi
8040if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8041  echo "$as_me:$LINENO: result: failed" >&5
8042echo "${ECHO_T}failed" >&6
8043else
8044  echo "$as_me:$LINENO: result: ok" >&5
8045echo "${ECHO_T}ok" >&6
8046fi
8047
8048echo "$as_me:$LINENO: checking for objdir" >&5
8049echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8050if test "${lt_cv_objdir+set}" = set; then
8051  echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053  rm -f .libs 2>/dev/null
8054mkdir .libs 2>/dev/null
8055if test -d .libs; then
8056  lt_cv_objdir=.libs
8057else
8058  # MS-DOS does not allow filenames that begin with a dot.
8059  lt_cv_objdir=_libs
8060fi
8061rmdir .libs 2>/dev/null
8062fi
8063echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8064echo "${ECHO_T}$lt_cv_objdir" >&6
8065objdir=$lt_cv_objdir
8066
8067
8068
8069
8070
8071case $host_os in
8072aix3*)
8073  # AIX sometimes has problems with the GCC collect2 program.  For some
8074  # reason, if we set the COLLECT_NAMES environment variable, the problems
8075  # vanish in a puff of smoke.
8076  if test "X${COLLECT_NAMES+set}" != Xset; then
8077    COLLECT_NAMES=
8078    export COLLECT_NAMES
8079  fi
8080  ;;
8081esac
8082
8083# Sed substitution that helps us do robust quoting.  It backslashifies
8084# metacharacters that are still active within double-quoted strings.
8085Xsed='sed -e 1s/^X//'
8086sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8087
8088# Same as above, but do not quote variable references.
8089double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8090
8091# Sed substitution to delay expansion of an escaped shell variable in a
8092# double_quote_subst'ed string.
8093delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8094
8095# Sed substitution to avoid accidental globbing in evaled expressions
8096no_glob_subst='s/\*/\\\*/g'
8097
8098# Constants:
8099rm="rm -f"
8100
8101# Global variables:
8102default_ofile=libtool
8103can_build_shared=yes
8104
8105# All known linkers require a `.a' archive for static linking (except MSVC,
8106# which needs '.lib').
8107libext=a
8108ltmain="$ac_aux_dir/ltmain.sh"
8109ofile="$default_ofile"
8110with_gnu_ld="$lt_cv_prog_gnu_ld"
8111
8112if test -n "$ac_tool_prefix"; then
8113  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8114set dummy ${ac_tool_prefix}ar; ac_word=$2
8115echo "$as_me:$LINENO: checking for $ac_word" >&5
8116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8117if test "${ac_cv_prog_AR+set}" = set; then
8118  echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120  if test -n "$AR"; then
8121  ac_cv_prog_AR="$AR" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126  IFS=$as_save_IFS
8127  test -z "$as_dir" && as_dir=.
8128  for ac_exec_ext in '' $ac_executable_extensions; do
8129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130    ac_cv_prog_AR="${ac_tool_prefix}ar"
8131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8132    break 2
8133  fi
8134done
8135done
8136
8137fi
8138fi
8139AR=$ac_cv_prog_AR
8140if test -n "$AR"; then
8141  echo "$as_me:$LINENO: result: $AR" >&5
8142echo "${ECHO_T}$AR" >&6
8143else
8144  echo "$as_me:$LINENO: result: no" >&5
8145echo "${ECHO_T}no" >&6
8146fi
8147
8148fi
8149if test -z "$ac_cv_prog_AR"; then
8150  ac_ct_AR=$AR
8151  # Extract the first word of "ar", so it can be a program name with args.
8152set dummy ar; ac_word=$2
8153echo "$as_me:$LINENO: checking for $ac_word" >&5
8154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8155if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8156  echo $ECHO_N "(cached) $ECHO_C" >&6
8157else
8158  if test -n "$ac_ct_AR"; then
8159  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8160else
8161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162for as_dir in $PATH
8163do
8164  IFS=$as_save_IFS
8165  test -z "$as_dir" && as_dir=.
8166  for ac_exec_ext in '' $ac_executable_extensions; do
8167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8168    ac_cv_prog_ac_ct_AR="ar"
8169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8170    break 2
8171  fi
8172done
8173done
8174
8175  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8176fi
8177fi
8178ac_ct_AR=$ac_cv_prog_ac_ct_AR
8179if test -n "$ac_ct_AR"; then
8180  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8181echo "${ECHO_T}$ac_ct_AR" >&6
8182else
8183  echo "$as_me:$LINENO: result: no" >&5
8184echo "${ECHO_T}no" >&6
8185fi
8186
8187  AR=$ac_ct_AR
8188else
8189  AR="$ac_cv_prog_AR"
8190fi
8191
8192if test -n "$ac_tool_prefix"; then
8193  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8194set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8195echo "$as_me:$LINENO: checking for $ac_word" >&5
8196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8197if test "${ac_cv_prog_RANLIB+set}" = set; then
8198  echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200  if test -n "$RANLIB"; then
8201  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206  IFS=$as_save_IFS
8207  test -z "$as_dir" && as_dir=.
8208  for ac_exec_ext in '' $ac_executable_extensions; do
8209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8212    break 2
8213  fi
8214done
8215done
8216
8217fi
8218fi
8219RANLIB=$ac_cv_prog_RANLIB
8220if test -n "$RANLIB"; then
8221  echo "$as_me:$LINENO: result: $RANLIB" >&5
8222echo "${ECHO_T}$RANLIB" >&6
8223else
8224  echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6
8226fi
8227
8228fi
8229if test -z "$ac_cv_prog_RANLIB"; then
8230  ac_ct_RANLIB=$RANLIB
8231  # Extract the first word of "ranlib", so it can be a program name with args.
8232set dummy ranlib; ac_word=$2
8233echo "$as_me:$LINENO: checking for $ac_word" >&5
8234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8235if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8236  echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238  if test -n "$ac_ct_RANLIB"; then
8239  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8240else
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244  IFS=$as_save_IFS
8245  test -z "$as_dir" && as_dir=.
8246  for ac_exec_ext in '' $ac_executable_extensions; do
8247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248    ac_cv_prog_ac_ct_RANLIB="ranlib"
8249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250    break 2
8251  fi
8252done
8253done
8254
8255  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8256fi
8257fi
8258ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8259if test -n "$ac_ct_RANLIB"; then
8260  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8261echo "${ECHO_T}$ac_ct_RANLIB" >&6
8262else
8263  echo "$as_me:$LINENO: result: no" >&5
8264echo "${ECHO_T}no" >&6
8265fi
8266
8267  RANLIB=$ac_ct_RANLIB
8268else
8269  RANLIB="$ac_cv_prog_RANLIB"
8270fi
8271
8272if test -n "$ac_tool_prefix"; then
8273  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8274set dummy ${ac_tool_prefix}strip; ac_word=$2
8275echo "$as_me:$LINENO: checking for $ac_word" >&5
8276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8277if test "${ac_cv_prog_STRIP+set}" = set; then
8278  echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280  if test -n "$STRIP"; then
8281  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8282else
8283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284for as_dir in $PATH
8285do
8286  IFS=$as_save_IFS
8287  test -z "$as_dir" && as_dir=.
8288  for ac_exec_ext in '' $ac_executable_extensions; do
8289  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8290    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8291    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8292    break 2
8293  fi
8294done
8295done
8296
8297fi
8298fi
8299STRIP=$ac_cv_prog_STRIP
8300if test -n "$STRIP"; then
8301  echo "$as_me:$LINENO: result: $STRIP" >&5
8302echo "${ECHO_T}$STRIP" >&6
8303else
8304  echo "$as_me:$LINENO: result: no" >&5
8305echo "${ECHO_T}no" >&6
8306fi
8307
8308fi
8309if test -z "$ac_cv_prog_STRIP"; then
8310  ac_ct_STRIP=$STRIP
8311  # Extract the first word of "strip", so it can be a program name with args.
8312set dummy strip; ac_word=$2
8313echo "$as_me:$LINENO: checking for $ac_word" >&5
8314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8315if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8316  echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318  if test -n "$ac_ct_STRIP"; then
8319  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324  IFS=$as_save_IFS
8325  test -z "$as_dir" && as_dir=.
8326  for ac_exec_ext in '' $ac_executable_extensions; do
8327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328    ac_cv_prog_ac_ct_STRIP="strip"
8329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330    break 2
8331  fi
8332done
8333done
8334
8335  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8336fi
8337fi
8338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8339if test -n "$ac_ct_STRIP"; then
8340  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8341echo "${ECHO_T}$ac_ct_STRIP" >&6
8342else
8343  echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6
8345fi
8346
8347  STRIP=$ac_ct_STRIP
8348else
8349  STRIP="$ac_cv_prog_STRIP"
8350fi
8351
8352
8353old_CC="$CC"
8354old_CFLAGS="$CFLAGS"
8355
8356# Set sane defaults for various variables
8357test -z "$AR" && AR=ar
8358test -z "$AR_FLAGS" && AR_FLAGS=cru
8359test -z "$AS" && AS=as
8360test -z "$CC" && CC=cc
8361test -z "$LTCC" && LTCC=$CC
8362test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8363test -z "$DLLTOOL" && DLLTOOL=dlltool
8364test -z "$LD" && LD=ld
8365test -z "$LN_S" && LN_S="ln -s"
8366test -z "$MAGIC_CMD" && MAGIC_CMD=file
8367test -z "$NM" && NM=nm
8368test -z "$SED" && SED=sed
8369test -z "$OBJDUMP" && OBJDUMP=objdump
8370test -z "$RANLIB" && RANLIB=:
8371test -z "$STRIP" && STRIP=:
8372test -z "$ac_objext" && ac_objext=o
8373
8374# Determine commands to create old-style static archives.
8375old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8376old_postinstall_cmds='chmod 644 $oldlib'
8377old_postuninstall_cmds=
8378
8379if test -n "$RANLIB"; then
8380  case $host_os in
8381  openbsd*)
8382    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8383    ;;
8384  *)
8385    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8386    ;;
8387  esac
8388  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8389fi
8390
8391for cc_temp in $compiler""; do
8392  case $cc_temp in
8393    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8394    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8395    \-*) ;;
8396    *) break;;
8397  esac
8398done
8399cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8400
8401
8402# Only perform the check for file, if the check method requires it
8403case $deplibs_check_method in
8404file_magic*)
8405  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8406    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8407echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8408if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8409  echo $ECHO_N "(cached) $ECHO_C" >&6
8410else
8411  case $MAGIC_CMD in
8412[\\/*] |  ?:[\\/]*)
8413  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8414  ;;
8415*)
8416  lt_save_MAGIC_CMD="$MAGIC_CMD"
8417  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8418  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8419  for ac_dir in $ac_dummy; do
8420    IFS="$lt_save_ifs"
8421    test -z "$ac_dir" && ac_dir=.
8422    if test -f $ac_dir/${ac_tool_prefix}file; then
8423      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8424      if test -n "$file_magic_test_file"; then
8425        case $deplibs_check_method in
8426        "file_magic "*)
8427          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8428          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8429          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8430            $EGREP "$file_magic_regex" > /dev/null; then
8431            :
8432          else
8433            cat <<EOF 1>&2
8434
8435*** Warning: the command libtool uses to detect shared libraries,
8436*** $file_magic_cmd, produces output that libtool cannot recognize.
8437*** The result is that libtool may fail to recognize shared libraries
8438*** as such.  This will affect the creation of libtool libraries that
8439*** depend on shared libraries, but programs linked with such libtool
8440*** libraries will work regardless of this problem.  Nevertheless, you
8441*** may want to report the problem to your system manager and/or to
8442*** bug-libtool@gnu.org
8443
8444EOF
8445          fi ;;
8446        esac
8447      fi
8448      break
8449    fi
8450  done
8451  IFS="$lt_save_ifs"
8452  MAGIC_CMD="$lt_save_MAGIC_CMD"
8453  ;;
8454esac
8455fi
8456
8457MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458if test -n "$MAGIC_CMD"; then
8459  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8460echo "${ECHO_T}$MAGIC_CMD" >&6
8461else
8462  echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
8464fi
8465
8466if test -z "$lt_cv_path_MAGIC_CMD"; then
8467  if test -n "$ac_tool_prefix"; then
8468    echo "$as_me:$LINENO: checking for file" >&5
8469echo $ECHO_N "checking for file... $ECHO_C" >&6
8470if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8471  echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473  case $MAGIC_CMD in
8474[\\/*] |  ?:[\\/]*)
8475  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8476  ;;
8477*)
8478  lt_save_MAGIC_CMD="$MAGIC_CMD"
8479  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481  for ac_dir in $ac_dummy; do
8482    IFS="$lt_save_ifs"
8483    test -z "$ac_dir" && ac_dir=.
8484    if test -f $ac_dir/file; then
8485      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486      if test -n "$file_magic_test_file"; then
8487        case $deplibs_check_method in
8488        "file_magic "*)
8489          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492            $EGREP "$file_magic_regex" > /dev/null; then
8493            :
8494          else
8495            cat <<EOF 1>&2
8496
8497*** Warning: the command libtool uses to detect shared libraries,
8498*** $file_magic_cmd, produces output that libtool cannot recognize.
8499*** The result is that libtool may fail to recognize shared libraries
8500*** as such.  This will affect the creation of libtool libraries that
8501*** depend on shared libraries, but programs linked with such libtool
8502*** libraries will work regardless of this problem.  Nevertheless, you
8503*** may want to report the problem to your system manager and/or to
8504*** bug-libtool@gnu.org
8505
8506EOF
8507          fi ;;
8508        esac
8509      fi
8510      break
8511    fi
8512  done
8513  IFS="$lt_save_ifs"
8514  MAGIC_CMD="$lt_save_MAGIC_CMD"
8515  ;;
8516esac
8517fi
8518
8519MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520if test -n "$MAGIC_CMD"; then
8521  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8522echo "${ECHO_T}$MAGIC_CMD" >&6
8523else
8524  echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526fi
8527
8528  else
8529    MAGIC_CMD=:
8530  fi
8531fi
8532
8533  fi
8534  ;;
8535esac
8536
8537enable_dlopen=no
8538enable_win32_dll=no
8539
8540# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8541if test "${enable_libtool_lock+set}" = set; then
8542  enableval="$enable_libtool_lock"
8543
8544fi;
8545test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8546
8547
8548# Check whether --with-pic or --without-pic was given.
8549if test "${with_pic+set}" = set; then
8550  withval="$with_pic"
8551  pic_mode="$withval"
8552else
8553  pic_mode=default
8554fi;
8555test -z "$pic_mode" && pic_mode=default
8556
8557# Use C for the default configuration in the libtool script
8558tagname=
8559lt_save_CC="$CC"
8560ac_ext=c
8561ac_cpp='$CPP $CPPFLAGS'
8562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566
8567# Source file extension for C test sources.
8568ac_ext=c
8569
8570# Object file extension for compiled C test sources.
8571objext=o
8572objext=$objext
8573
8574# Code to be used in simple compile tests
8575lt_simple_compile_test_code="int some_variable = 0;\n"
8576
8577# Code to be used in simple link tests
8578lt_simple_link_test_code='int main(){return(0);}\n'
8579
8580
8581# If no C compiler was specified, use CC.
8582LTCC=${LTCC-"$CC"}
8583
8584# If no C compiler flags were specified, use CFLAGS.
8585LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8586
8587# Allow CC to be a program name with arguments.
8588compiler=$CC
8589
8590
8591# save warnings/boilerplate of simple test code
8592ac_outfile=conftest.$ac_objext
8593printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8594eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8595_lt_compiler_boilerplate=`cat conftest.err`
8596$rm conftest*
8597
8598ac_outfile=conftest.$ac_objext
8599printf "$lt_simple_link_test_code" >conftest.$ac_ext
8600eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8601_lt_linker_boilerplate=`cat conftest.err`
8602$rm conftest*
8603
8604
8605## CAVEAT EMPTOR:
8606## There is no encapsulation within the following macros, do not change
8607## the running order or otherwise move them around unless you know exactly
8608## what you are doing...
8609
8610lt_prog_compiler_no_builtin_flag=
8611
8612if test "$GCC" = yes; then
8613  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8614
8615
8616echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8617echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8618if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8619  echo $ECHO_N "(cached) $ECHO_C" >&6
8620else
8621  lt_cv_prog_compiler_rtti_exceptions=no
8622  ac_outfile=conftest.$ac_objext
8623   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8624   lt_compiler_flag="-fno-rtti -fno-exceptions"
8625   # Insert the option either (1) after the last *FLAGS variable, or
8626   # (2) before a word containing "conftest.", or (3) at the end.
8627   # Note that $ac_compile itself does not contain backslashes and begins
8628   # with a dollar sign (not a hyphen), so the echo should work correctly.
8629   # The option is referenced via a variable to avoid confusing sed.
8630   lt_compile=`echo "$ac_compile" | $SED \
8631   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8632   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8633   -e 's:$: $lt_compiler_flag:'`
8634   (eval echo "\"\$as_me:8634: $lt_compile\"" >&5)
8635   (eval "$lt_compile" 2>conftest.err)
8636   ac_status=$?
8637   cat conftest.err >&5
8638   echo "$as_me:8638: \$? = $ac_status" >&5
8639   if (exit $ac_status) && test -s "$ac_outfile"; then
8640     # The compiler can only warn and ignore the option if not recognized
8641     # So say no if there are warnings other than the usual output.
8642     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8643     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8644     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8645       lt_cv_prog_compiler_rtti_exceptions=yes
8646     fi
8647   fi
8648   $rm conftest*
8649
8650fi
8651echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8652echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8653
8654if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8655    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8656else
8657    :
8658fi
8659
8660fi
8661
8662lt_prog_compiler_wl=
8663lt_prog_compiler_pic=
8664lt_prog_compiler_static=
8665
8666echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8667echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8668
8669  if test "$GCC" = yes; then
8670    lt_prog_compiler_wl='-Wl,'
8671    lt_prog_compiler_static='-static'
8672
8673    case $host_os in
8674      aix*)
8675      # All AIX code is PIC.
8676      if test "$host_cpu" = ia64; then
8677        # AIX 5 now supports IA64 processor
8678        lt_prog_compiler_static='-Bstatic'
8679      fi
8680      ;;
8681
8682    amigaos*)
8683      # FIXME: we need at least 68020 code to build shared libraries, but
8684      # adding the `-m68020' flag to GCC prevents building anything better,
8685      # like `-m68040'.
8686      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8687      ;;
8688
8689    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8690      # PIC is the default for these OSes.
8691      ;;
8692
8693    mingw* | pw32* | os2*)
8694      # This hack is so that the source file can tell whether it is being
8695      # built for inclusion in a dll (and should export symbols for example).
8696      lt_prog_compiler_pic='-DDLL_EXPORT'
8697      ;;
8698
8699    darwin* | rhapsody*)
8700      # PIC is the default on this platform
8701      # Common symbols not allowed in MH_DYLIB files
8702      lt_prog_compiler_pic='-fno-common'
8703      ;;
8704
8705    interix3*)
8706      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8707      # Instead, we relocate shared libraries at runtime.
8708      ;;
8709
8710    msdosdjgpp*)
8711      # Just because we use GCC doesn't mean we suddenly get shared libraries
8712      # on systems that don't support them.
8713      lt_prog_compiler_can_build_shared=no
8714      enable_shared=no
8715      ;;
8716
8717    sysv4*MP*)
8718      if test -d /usr/nec; then
8719        lt_prog_compiler_pic=-Kconform_pic
8720      fi
8721      ;;
8722
8723    hpux*)
8724      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8725      # not for PA HP-UX.
8726      case $host_cpu in
8727      hppa*64*|ia64*)
8728        # +Z the default
8729        ;;
8730      *)
8731        lt_prog_compiler_pic='-fPIC'
8732        ;;
8733      esac
8734      ;;
8735
8736    *)
8737      lt_prog_compiler_pic='-fPIC'
8738      ;;
8739    esac
8740  else
8741    # PORTME Check for flag to pass linker flags through the system compiler.
8742    case $host_os in
8743    aix*)
8744      lt_prog_compiler_wl='-Wl,'
8745      if test "$host_cpu" = ia64; then
8746        # AIX 5 now supports IA64 processor
8747        lt_prog_compiler_static='-Bstatic'
8748      else
8749        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8750      fi
8751      ;;
8752      darwin*)
8753        # PIC is the default on this platform
8754        # Common symbols not allowed in MH_DYLIB files
8755       case $cc_basename in
8756         xlc*)
8757         lt_prog_compiler_pic='-qnocommon'
8758         lt_prog_compiler_wl='-Wl,'
8759         ;;
8760       esac
8761       ;;
8762
8763    mingw* | pw32* | os2*)
8764      # This hack is so that the source file can tell whether it is being
8765      # built for inclusion in a dll (and should export symbols for example).
8766      lt_prog_compiler_pic='-DDLL_EXPORT'
8767      ;;
8768
8769    hpux9* | hpux10* | hpux11*)
8770      lt_prog_compiler_wl='-Wl,'
8771      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8772      # not for PA HP-UX.
8773      case $host_cpu in
8774      hppa*64*|ia64*)
8775        # +Z the default
8776        ;;
8777      *)
8778        lt_prog_compiler_pic='+Z'
8779        ;;
8780      esac
8781      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8782      lt_prog_compiler_static='${wl}-a ${wl}archive'
8783      ;;
8784
8785    irix5* | irix6* | nonstopux*)
8786      lt_prog_compiler_wl='-Wl,'
8787      # PIC (with -KPIC) is the default.
8788      lt_prog_compiler_static='-non_shared'
8789      ;;
8790
8791    newsos6)
8792      lt_prog_compiler_pic='-KPIC'
8793      lt_prog_compiler_static='-Bstatic'
8794      ;;
8795
8796    linux*)
8797      case $cc_basename in
8798      icc* | ecc*)
8799        lt_prog_compiler_wl='-Wl,'
8800        lt_prog_compiler_pic='-KPIC'
8801        lt_prog_compiler_static='-static'
8802        ;;
8803      pgcc* | pgf77* | pgf90* | pgf95*)
8804        # Portland Group compilers (*not* the Pentium gcc compiler,
8805        # which looks to be a dead project)
8806        lt_prog_compiler_wl='-Wl,'
8807        lt_prog_compiler_pic='-fpic'
8808        lt_prog_compiler_static='-Bstatic'
8809        ;;
8810      ccc*)
8811        lt_prog_compiler_wl='-Wl,'
8812        # All Alpha code is PIC.
8813        lt_prog_compiler_static='-non_shared'
8814        ;;
8815      esac
8816      ;;
8817
8818    osf3* | osf4* | osf5*)
8819      lt_prog_compiler_wl='-Wl,'
8820      # All OSF/1 code is PIC.
8821      lt_prog_compiler_static='-non_shared'
8822      ;;
8823
8824    solaris*)
8825      lt_prog_compiler_pic='-KPIC'
8826      lt_prog_compiler_static='-Bstatic'
8827      case $cc_basename in
8828      f77* | f90* | f95*)
8829        lt_prog_compiler_wl='-Qoption ld ';;
8830      *)
8831        lt_prog_compiler_wl='-Wl,';;
8832      esac
8833      ;;
8834
8835    sunos4*)
8836      lt_prog_compiler_wl='-Qoption ld '
8837      lt_prog_compiler_pic='-PIC'
8838      lt_prog_compiler_static='-Bstatic'
8839      ;;
8840
8841    sysv4 | sysv4.2uw2* | sysv4.3*)
8842      lt_prog_compiler_wl='-Wl,'
8843      lt_prog_compiler_pic='-KPIC'
8844      lt_prog_compiler_static='-Bstatic'
8845      ;;
8846
8847    sysv4*MP*)
8848      if test -d /usr/nec ;then
8849        lt_prog_compiler_pic='-Kconform_pic'
8850        lt_prog_compiler_static='-Bstatic'
8851      fi
8852      ;;
8853
8854    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8855      lt_prog_compiler_wl='-Wl,'
8856      lt_prog_compiler_pic='-KPIC'
8857      lt_prog_compiler_static='-Bstatic'
8858      ;;
8859
8860    unicos*)
8861      lt_prog_compiler_wl='-Wl,'
8862      lt_prog_compiler_can_build_shared=no
8863      ;;
8864
8865    uts4*)
8866      lt_prog_compiler_pic='-pic'
8867      lt_prog_compiler_static='-Bstatic'
8868      ;;
8869
8870    *)
8871      lt_prog_compiler_can_build_shared=no
8872      ;;
8873    esac
8874  fi
8875
8876echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8877echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8878
8879#
8880# Check to make sure the PIC flag actually works.
8881#
8882if test -n "$lt_prog_compiler_pic"; then
8883
8884echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8885echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8886if test "${lt_prog_compiler_pic_works+set}" = set; then
8887  echo $ECHO_N "(cached) $ECHO_C" >&6
8888else
8889  lt_prog_compiler_pic_works=no
8890  ac_outfile=conftest.$ac_objext
8891   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8892   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8893   # Insert the option either (1) after the last *FLAGS variable, or
8894   # (2) before a word containing "conftest.", or (3) at the end.
8895   # Note that $ac_compile itself does not contain backslashes and begins
8896   # with a dollar sign (not a hyphen), so the echo should work correctly.
8897   # The option is referenced via a variable to avoid confusing sed.
8898   lt_compile=`echo "$ac_compile" | $SED \
8899   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8901   -e 's:$: $lt_compiler_flag:'`
8902   (eval echo "\"\$as_me:8902: $lt_compile\"" >&5)
8903   (eval "$lt_compile" 2>conftest.err)
8904   ac_status=$?
8905   cat conftest.err >&5
8906   echo "$as_me:8906: \$? = $ac_status" >&5
8907   if (exit $ac_status) && test -s "$ac_outfile"; then
8908     # The compiler can only warn and ignore the option if not recognized
8909     # So say no if there are warnings other than the usual output.
8910     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8911     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8912     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8913       lt_prog_compiler_pic_works=yes
8914     fi
8915   fi
8916   $rm conftest*
8917
8918fi
8919echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8920echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8921
8922if test x"$lt_prog_compiler_pic_works" = xyes; then
8923    case $lt_prog_compiler_pic in
8924     "" | " "*) ;;
8925     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8926     esac
8927else
8928    lt_prog_compiler_pic=
8929     lt_prog_compiler_can_build_shared=no
8930fi
8931
8932fi
8933case $host_os in
8934  # For platforms which do not support PIC, -DPIC is meaningless:
8935  *djgpp*)
8936    lt_prog_compiler_pic=
8937    ;;
8938  *)
8939    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8940    ;;
8941esac
8942
8943#
8944# Check to make sure the static flag actually works.
8945#
8946wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8947echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8948echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8949if test "${lt_prog_compiler_static_works+set}" = set; then
8950  echo $ECHO_N "(cached) $ECHO_C" >&6
8951else
8952  lt_prog_compiler_static_works=no
8953   save_LDFLAGS="$LDFLAGS"
8954   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8955   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8956   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8957     # The linker can only warn and ignore the option if not recognized
8958     # So say no if there are warnings
8959     if test -s conftest.err; then
8960       # Append any errors to the config.log.
8961       cat conftest.err 1>&5
8962       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8963       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8964       if diff conftest.exp conftest.er2 >/dev/null; then
8965         lt_prog_compiler_static_works=yes
8966       fi
8967     else
8968       lt_prog_compiler_static_works=yes
8969     fi
8970   fi
8971   $rm conftest*
8972   LDFLAGS="$save_LDFLAGS"
8973
8974fi
8975echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8976echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8977
8978if test x"$lt_prog_compiler_static_works" = xyes; then
8979    :
8980else
8981    lt_prog_compiler_static=
8982fi
8983
8984
8985echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8986echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8987if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8988  echo $ECHO_N "(cached) $ECHO_C" >&6
8989else
8990  lt_cv_prog_compiler_c_o=no
8991   $rm -r conftest 2>/dev/null
8992   mkdir conftest
8993   cd conftest
8994   mkdir out
8995   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8996
8997   lt_compiler_flag="-o out/conftest2.$ac_objext"
8998   # Insert the option either (1) after the last *FLAGS variable, or
8999   # (2) before a word containing "conftest.", or (3) at the end.
9000   # Note that $ac_compile itself does not contain backslashes and begins
9001   # with a dollar sign (not a hyphen), so the echo should work correctly.
9002   lt_compile=`echo "$ac_compile" | $SED \
9003   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9004   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9005   -e 's:$: $lt_compiler_flag:'`
9006   (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
9007   (eval "$lt_compile" 2>out/conftest.err)
9008   ac_status=$?
9009   cat out/conftest.err >&5
9010   echo "$as_me:9010: \$? = $ac_status" >&5
9011   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9012   then
9013     # The compiler can only warn and ignore the option if not recognized
9014     # So say no if there are warnings
9015     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9016     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9017     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9018       lt_cv_prog_compiler_c_o=yes
9019     fi
9020   fi
9021   chmod u+w . 2>&5
9022   $rm conftest*
9023   # SGI C++ compiler will create directory out/ii_files/ for
9024   # template instantiation
9025   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9026   $rm out/* && rmdir out
9027   cd ..
9028   rmdir conftest
9029   $rm conftest*
9030
9031fi
9032echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9033echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9034
9035
9036hard_links="nottested"
9037if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038  # do not overwrite the value of need_locks provided by the user
9039  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9040echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9041  hard_links=yes
9042  $rm conftest*
9043  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044  touch conftest.a
9045  ln conftest.a conftest.b 2>&5 || hard_links=no
9046  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047  echo "$as_me:$LINENO: result: $hard_links" >&5
9048echo "${ECHO_T}$hard_links" >&6
9049  if test "$hard_links" = no; then
9050    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9052    need_locks=warn
9053  fi
9054else
9055  need_locks=no
9056fi
9057
9058echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9059echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9060
9061  runpath_var=
9062  allow_undefined_flag=
9063  enable_shared_with_static_runtimes=no
9064  archive_cmds=
9065  archive_expsym_cmds=
9066  old_archive_From_new_cmds=
9067  old_archive_from_expsyms_cmds=
9068  export_dynamic_flag_spec=
9069  whole_archive_flag_spec=
9070  thread_safe_flag_spec=
9071  hardcode_libdir_flag_spec=
9072  hardcode_libdir_flag_spec_ld=
9073  hardcode_libdir_separator=
9074  hardcode_direct=no
9075  hardcode_minus_L=no
9076  hardcode_shlibpath_var=unsupported
9077  link_all_deplibs=unknown
9078  hardcode_automatic=no
9079  module_cmds=
9080  module_expsym_cmds=
9081  always_export_symbols=no
9082  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9083  # include_expsyms should be a list of space-separated symbols to be *always*
9084  # included in the symbol list
9085  include_expsyms=
9086  # exclude_expsyms can be an extended regexp of symbols to exclude
9087  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9088  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9089  # as well as any symbol that contains `d'.
9090  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9091  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9092  # platforms (ab)use it in PIC code, but their linkers get confused if
9093  # the symbol is explicitly referenced.  Since portable code cannot
9094  # rely on this symbol name, it's probably fine to never include it in
9095  # preloaded symbol tables.
9096  extract_expsyms_cmds=
9097  # Just being paranoid about ensuring that cc_basename is set.
9098  for cc_temp in $compiler""; do
9099  case $cc_temp in
9100    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9101    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9102    \-*) ;;
9103    *) break;;
9104  esac
9105done
9106cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9107
9108  case $host_os in
9109  cygwin* | mingw* | pw32*)
9110    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9111    # When not using gcc, we currently assume that we are using
9112    # Microsoft Visual C++.
9113    if test "$GCC" != yes; then
9114      with_gnu_ld=no
9115    fi
9116    ;;
9117  interix*)
9118    # we just hope/assume this is gcc and not c89 (= MSVC++)
9119    with_gnu_ld=yes
9120    ;;
9121  openbsd*)
9122    with_gnu_ld=no
9123    ;;
9124  esac
9125
9126  ld_shlibs=yes
9127  if test "$with_gnu_ld" = yes; then
9128    # If archive_cmds runs LD, not CC, wlarc should be empty
9129    wlarc='${wl}'
9130
9131    # Set some defaults for GNU ld with shared library support. These
9132    # are reset later if shared libraries are not supported. Putting them
9133    # here allows them to be overridden if necessary.
9134    runpath_var=LD_RUN_PATH
9135    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9136    export_dynamic_flag_spec='${wl}--export-dynamic'
9137    # ancient GNU ld didn't support --whole-archive et. al.
9138    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9139        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9140      else
9141        whole_archive_flag_spec=
9142    fi
9143    supports_anon_versioning=no
9144    case `$LD -v 2>/dev/null` in
9145      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9146      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9147      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9148      *\ 2.11.*) ;; # other 2.11 versions
9149      *) supports_anon_versioning=yes ;;
9150    esac
9151
9152    # See if GNU ld supports shared libraries.
9153    case $host_os in
9154    aix3* | aix4* | aix5*)
9155      # On AIX/PPC, the GNU linker is very broken
9156      if test "$host_cpu" != ia64; then
9157        ld_shlibs=no
9158        cat <<EOF 1>&2
9159
9160*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9161*** to be unable to reliably create shared libraries on AIX.
9162*** Therefore, libtool is disabling shared libraries support.  If you
9163*** really care for shared libraries, you may want to modify your PATH
9164*** so that a non-GNU linker is found, and then restart.
9165
9166EOF
9167      fi
9168      ;;
9169
9170    amigaos*)
9171      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)'
9172      hardcode_libdir_flag_spec='-L$libdir'
9173      hardcode_minus_L=yes
9174
9175      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9176      # that the semantics of dynamic libraries on AmigaOS, at least up
9177      # to version 4, is to share data among multiple programs linked
9178      # with the same dynamic library.  Since this doesn't match the
9179      # behavior of shared libraries on other platforms, we can't use
9180      # them.
9181      ld_shlibs=no
9182      ;;
9183
9184    beos*)
9185      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9186        allow_undefined_flag=unsupported
9187        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9188        # support --undefined.  This deserves some investigation.  FIXME
9189        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190      else
9191        ld_shlibs=no
9192      fi
9193      ;;
9194
9195    cygwin* | mingw* | pw32*)
9196      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9197      # as there is no search path for DLLs.
9198      hardcode_libdir_flag_spec='-L$libdir'
9199      allow_undefined_flag=unsupported
9200      always_export_symbols=no
9201      enable_shared_with_static_runtimes=yes
9202      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9203
9204      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9205        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9206        # If the export-symbols file already is a .def file (1st line
9207        # is EXPORTS), use it as is; otherwise, prepend...
9208        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9209          cp $export_symbols $output_objdir/$soname.def;
9210        else
9211          echo EXPORTS > $output_objdir/$soname.def;
9212          cat $export_symbols >> $output_objdir/$soname.def;
9213        fi~
9214        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9215      else
9216        ld_shlibs=no
9217      fi
9218      ;;
9219
9220    interix3*)
9221      hardcode_direct=no
9222      hardcode_shlibpath_var=no
9223      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9224      export_dynamic_flag_spec='${wl}-E'
9225      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9226      # Instead, shared libraries are loaded at an image base (0x10000000 by
9227      # default) and relocated if they conflict, which is a slow very memory
9228      # consuming and fragmenting process.  To avoid this, we pick a random,
9229      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9230      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9231      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9232      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'
9233      ;;
9234
9235    linux*)
9236      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9237        tmp_addflag=
9238        case $cc_basename,$host_cpu in
9239        pgcc*)                          # Portland Group C compiler
9240          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'
9241          tmp_addflag=' $pic_flag'
9242          ;;
9243        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9244          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'
9245          tmp_addflag=' $pic_flag -Mnomain' ;;
9246        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9247          tmp_addflag=' -i_dynamic' ;;
9248        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9249          tmp_addflag=' -i_dynamic -nofor_main' ;;
9250        ifc* | ifort*)                  # Intel Fortran compiler
9251          tmp_addflag=' -nofor_main' ;;
9252        esac
9253        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254
9255        if test $supports_anon_versioning = yes; then
9256          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9257  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258  $echo "local: *; };" >> $output_objdir/$libname.ver~
9259          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9260        fi
9261      else
9262        ld_shlibs=no
9263      fi
9264      ;;
9265
9266    netbsd*)
9267      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9268        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9269        wlarc=
9270      else
9271        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9273      fi
9274      ;;
9275
9276    solaris*)
9277      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9278        ld_shlibs=no
9279        cat <<EOF 1>&2
9280
9281*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9282*** create shared libraries on Solaris systems.  Therefore, libtool
9283*** is disabling shared libraries support.  We urge you to upgrade GNU
9284*** binutils to release 2.9.1 or newer.  Another option is to modify
9285*** your PATH or compiler configuration so that the native linker is
9286*** used, and then restart.
9287
9288EOF
9289      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9290        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292      else
9293        ld_shlibs=no
9294      fi
9295      ;;
9296
9297    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9298      case `$LD -v 2>&1` in
9299        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9300        ld_shlibs=no
9301        cat <<_LT_EOF 1>&2
9302
9303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9304*** reliably create shared libraries on SCO systems.  Therefore, libtool
9305*** is disabling shared libraries support.  We urge you to upgrade GNU
9306*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9307*** your PATH or compiler configuration so that the native linker is
9308*** used, and then restart.
9309
9310_LT_EOF
9311        ;;
9312        *)
9313          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9314            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9315            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9316            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9317          else
9318            ld_shlibs=no
9319          fi
9320        ;;
9321      esac
9322      ;;
9323
9324    sunos4*)
9325      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9326      wlarc=
9327      hardcode_direct=yes
9328      hardcode_shlibpath_var=no
9329      ;;
9330
9331    *)
9332      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9333        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9335      else
9336        ld_shlibs=no
9337      fi
9338      ;;
9339    esac
9340
9341    if test "$ld_shlibs" = no; then
9342      runpath_var=
9343      hardcode_libdir_flag_spec=
9344      export_dynamic_flag_spec=
9345      whole_archive_flag_spec=
9346    fi
9347  else
9348    # PORTME fill in a description of your system's linker (not GNU ld)
9349    case $host_os in
9350    aix3*)
9351      allow_undefined_flag=unsupported
9352      always_export_symbols=yes
9353      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'
9354      # Note: this linker hardcodes the directories in LIBPATH if there
9355      # are no directories specified by -L.
9356      hardcode_minus_L=yes
9357      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9358        # Neither direct hardcoding nor static linking is supported with a
9359        # broken collect2.
9360        hardcode_direct=unsupported
9361      fi
9362      ;;
9363
9364    aix4* | aix5*)
9365      if test "$host_cpu" = ia64; then
9366        # On IA64, the linker does run time linking by default, so we don't
9367        # have to do anything special.
9368        aix_use_runtimelinking=no
9369        exp_sym_flag='-Bexport'
9370        no_entry_flag=""
9371      else
9372        # If we're using GNU nm, then we don't want the "-C" option.
9373        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9374        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9375          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'
9376        else
9377          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'
9378        fi
9379        aix_use_runtimelinking=no
9380
9381        # Test if we are trying to use run time linking or normal
9382        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9383        # need to do runtime linking.
9384        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9385          for ld_flag in $LDFLAGS; do
9386          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9387            aix_use_runtimelinking=yes
9388            break
9389          fi
9390          done
9391          ;;
9392        esac
9393
9394        exp_sym_flag='-bexport'
9395        no_entry_flag='-bnoentry'
9396      fi
9397
9398      # When large executables or shared objects are built, AIX ld can
9399      # have problems creating the table of contents.  If linking a library
9400      # or program results in "error TOC overflow" add -mminimal-toc to
9401      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9402      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9403
9404      archive_cmds=''
9405      hardcode_direct=yes
9406      hardcode_libdir_separator=':'
9407      link_all_deplibs=yes
9408
9409      if test "$GCC" = yes; then
9410        case $host_os in aix4.[012]|aix4.[012].*)
9411        # We only want to do this on AIX 4.2 and lower, the check
9412        # below for broken collect2 doesn't work under 4.3+
9413          collect2name=`${CC} -print-prog-name=collect2`
9414          if test -f "$collect2name" && \
9415           strings "$collect2name" | grep resolve_lib_name >/dev/null
9416          then
9417          # We have reworked collect2
9418          hardcode_direct=yes
9419          else
9420          # We have old collect2
9421          hardcode_direct=unsupported
9422          # It fails to find uninstalled libraries when the uninstalled
9423          # path is not listed in the libpath.  Setting hardcode_minus_L
9424          # to unsupported forces relinking
9425          hardcode_minus_L=yes
9426          hardcode_libdir_flag_spec='-L$libdir'
9427          hardcode_libdir_separator=
9428          fi
9429          ;;
9430        esac
9431        shared_flag='-shared'
9432        if test "$aix_use_runtimelinking" = yes; then
9433          shared_flag="$shared_flag "'${wl}-G'
9434        fi
9435      else
9436        # not using gcc
9437        if test "$host_cpu" = ia64; then
9438        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9439        # chokes on -Wl,-G. The following line is correct:
9440          shared_flag='-G'
9441        else
9442          if test "$aix_use_runtimelinking" = yes; then
9443            shared_flag='${wl}-G'
9444          else
9445            shared_flag='${wl}-bM:SRE'
9446          fi
9447        fi
9448      fi
9449
9450      # It seems that -bexpall does not export symbols beginning with
9451      # underscore (_), so it is better to generate a list of symbols to export.
9452      always_export_symbols=yes
9453      if test "$aix_use_runtimelinking" = yes; then
9454        # Warning - without using the other runtime loading flags (-brtl),
9455        # -berok will link without error, but may produce a broken library.
9456        allow_undefined_flag='-berok'
9457       # Determine the default libpath from the value encoded in an empty executable.
9458       cat >conftest.$ac_ext <<_ACEOF
9459/* confdefs.h.  */
9460_ACEOF
9461cat confdefs.h >>conftest.$ac_ext
9462cat >>conftest.$ac_ext <<_ACEOF
9463/* end confdefs.h.  */
9464
9465int
9466main ()
9467{
9468
9469  ;
9470  return 0;
9471}
9472_ACEOF
9473rm -f conftest.$ac_objext conftest$ac_exeext
9474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475  (eval $ac_link) 2>conftest.er1
9476  ac_status=$?
9477  grep -v '^ *+' conftest.er1 >conftest.err
9478  rm -f conftest.er1
9479  cat conftest.err >&5
9480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481  (exit $ac_status); } &&
9482         { ac_try='test -z "$ac_c_werror_flag"
9483                         || test ! -s conftest.err'
9484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485  (eval $ac_try) 2>&5
9486  ac_status=$?
9487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488  (exit $ac_status); }; } &&
9489         { ac_try='test -s conftest$ac_exeext'
9490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491  (eval $ac_try) 2>&5
9492  ac_status=$?
9493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494  (exit $ac_status); }; }; then
9495
9496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9497}'`
9498# Check for a 64-bit object if we didn't find anything.
9499if 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; }
9500}'`; fi
9501else
9502  echo "$as_me: failed program was:" >&5
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9505fi
9506rm -f conftest.err conftest.$ac_objext \
9507      conftest$ac_exeext conftest.$ac_ext
9508if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9509
9510       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9511        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"
9512       else
9513        if test "$host_cpu" = ia64; then
9514          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9515          allow_undefined_flag="-z nodefs"
9516          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"
9517        else
9518         # Determine the default libpath from the value encoded in an empty executable.
9519         cat >conftest.$ac_ext <<_ACEOF
9520/* confdefs.h.  */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h.  */
9525
9526int
9527main ()
9528{
9529
9530  ;
9531  return 0;
9532}
9533_ACEOF
9534rm -f conftest.$ac_objext conftest$ac_exeext
9535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536  (eval $ac_link) 2>conftest.er1
9537  ac_status=$?
9538  grep -v '^ *+' conftest.er1 >conftest.err
9539  rm -f conftest.er1
9540  cat conftest.err >&5
9541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542  (exit $ac_status); } &&
9543         { ac_try='test -z "$ac_c_werror_flag"
9544                         || test ! -s conftest.err'
9545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546  (eval $ac_try) 2>&5
9547  ac_status=$?
9548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549  (exit $ac_status); }; } &&
9550         { ac_try='test -s conftest$ac_exeext'
9551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552  (eval $ac_try) 2>&5
9553  ac_status=$?
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); }; }; then
9556
9557aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9558}'`
9559# Check for a 64-bit object if we didn't find anything.
9560if 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; }
9561}'`; fi
9562else
9563  echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566fi
9567rm -f conftest.err conftest.$ac_objext \
9568      conftest$ac_exeext conftest.$ac_ext
9569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9570
9571         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9572          # Warning - without using the other run time loading flags,
9573          # -berok will link without error, but may produce a broken library.
9574          no_undefined_flag=' ${wl}-bernotok'
9575          allow_undefined_flag=' ${wl}-berok'
9576          # Exported symbols can be pulled into shared objects from archives
9577          whole_archive_flag_spec='$convenience'
9578          archive_cmds_need_lc=yes
9579          # This is similar to how AIX traditionally builds its shared libraries.
9580          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'
9581        fi
9582      fi
9583      ;;
9584
9585    amigaos*)
9586      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)'
9587      hardcode_libdir_flag_spec='-L$libdir'
9588      hardcode_minus_L=yes
9589      # see comment about different semantics on the GNU ld section
9590      ld_shlibs=no
9591      ;;
9592
9593    bsdi[45]*)
9594      export_dynamic_flag_spec=-rdynamic
9595      ;;
9596
9597    cygwin* | mingw* | pw32*)
9598      # When not using gcc, we currently assume that we are using
9599      # Microsoft Visual C++.
9600      # hardcode_libdir_flag_spec is actually meaningless, as there is
9601      # no search path for DLLs.
9602      hardcode_libdir_flag_spec=' '
9603      allow_undefined_flag=unsupported
9604      # Tell ltmain to make .lib files, not .a files.
9605      libext=lib
9606      # Tell ltmain to make .dll files, not .so files.
9607      shrext_cmds=".dll"
9608      # FIXME: Setting linknames here is a bad hack.
9609      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9610      # The linker will automatically build a .lib file if we build a DLL.
9611      old_archive_From_new_cmds='true'
9612      # FIXME: Should let the user specify the lib program.
9613      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9614      fix_srcfile_path='`cygpath -w "$srcfile"`'
9615      enable_shared_with_static_runtimes=yes
9616      ;;
9617
9618    darwin* | rhapsody*)
9619      case $host_os in
9620        rhapsody* | darwin1.[012])
9621         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9622         ;;
9623       *) # Darwin 1.3 on
9624         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9625           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9626         else
9627           case ${MACOSX_DEPLOYMENT_TARGET} in
9628             10.[012])
9629               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9630               ;;
9631             10.*)
9632               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9633               ;;
9634           esac
9635         fi
9636         ;;
9637      esac
9638      archive_cmds_need_lc=no
9639      hardcode_direct=no
9640      hardcode_automatic=yes
9641      hardcode_shlibpath_var=unsupported
9642      whole_archive_flag_spec=''
9643      link_all_deplibs=yes
9644    if test "$GCC" = yes ; then
9645        output_verbose_link_cmd='echo'
9646        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9647      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9648      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9649      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}'
9650      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}'
9651    else
9652      case $cc_basename in
9653        xlc*)
9654         output_verbose_link_cmd='echo'
9655         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9656         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9657          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9658         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}'
9659          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}'
9660          ;;
9661       *)
9662         ld_shlibs=no
9663          ;;
9664      esac
9665    fi
9666      ;;
9667
9668    dgux*)
9669      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670      hardcode_libdir_flag_spec='-L$libdir'
9671      hardcode_shlibpath_var=no
9672      ;;
9673
9674    freebsd1*)
9675      ld_shlibs=no
9676      ;;
9677
9678    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9679    # support.  Future versions do this automatically, but an explicit c++rt0.o
9680    # does not break anything, and helps significantly (at the cost of a little
9681    # extra space).
9682    freebsd2.2*)
9683      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9684      hardcode_libdir_flag_spec='-R$libdir'
9685      hardcode_direct=yes
9686      hardcode_shlibpath_var=no
9687      ;;
9688
9689    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9690    freebsd2*)
9691      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9692      hardcode_direct=yes
9693      hardcode_minus_L=yes
9694      hardcode_shlibpath_var=no
9695      ;;
9696
9697    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9698    freebsd* | kfreebsd*-gnu | dragonfly*)
9699      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9700      hardcode_libdir_flag_spec='-R$libdir'
9701      hardcode_direct=yes
9702      hardcode_shlibpath_var=no
9703      ;;
9704
9705    hpux9*)
9706      if test "$GCC" = yes; then
9707        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'
9708      else
9709        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'
9710      fi
9711      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9712      hardcode_libdir_separator=:
9713      hardcode_direct=yes
9714
9715      # hardcode_minus_L: Not really in the search PATH,
9716      # but as the default location of the library.
9717      hardcode_minus_L=yes
9718      export_dynamic_flag_spec='${wl}-E'
9719      ;;
9720
9721    hpux10*)
9722      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9723        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9724      else
9725        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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        hardcode_direct=yes
9732        export_dynamic_flag_spec='${wl}-E'
9733
9734        # hardcode_minus_L: Not really in the search PATH,
9735        # but as the default location of the library.
9736        hardcode_minus_L=yes
9737      fi
9738      ;;
9739
9740    hpux11*)
9741      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9742        case $host_cpu in
9743        hppa*64*)
9744          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745          ;;
9746        ia64*)
9747          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9748          ;;
9749        *)
9750          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9751          ;;
9752        esac
9753      else
9754        case $host_cpu in
9755        hppa*64*)
9756          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9757          ;;
9758        ia64*)
9759          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9760          ;;
9761        *)
9762          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9763          ;;
9764        esac
9765      fi
9766      if test "$with_gnu_ld" = no; then
9767        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9768        hardcode_libdir_separator=:
9769
9770        case $host_cpu in
9771        hppa*64*|ia64*)
9772          hardcode_libdir_flag_spec_ld='+b $libdir'
9773          hardcode_direct=no
9774          hardcode_shlibpath_var=no
9775          ;;
9776        *)
9777          hardcode_direct=yes
9778          export_dynamic_flag_spec='${wl}-E'
9779
9780          # hardcode_minus_L: Not really in the search PATH,
9781          # but as the default location of the library.
9782          hardcode_minus_L=yes
9783          ;;
9784        esac
9785      fi
9786      ;;
9787
9788    irix5* | irix6* | nonstopux*)
9789      if test "$GCC" = yes; then
9790        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'
9791      else
9792        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'
9793        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9794      fi
9795      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9796      hardcode_libdir_separator=:
9797      link_all_deplibs=yes
9798      ;;
9799
9800    netbsd*)
9801      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9802        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9803      else
9804        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9805      fi
9806      hardcode_libdir_flag_spec='-R$libdir'
9807      hardcode_direct=yes
9808      hardcode_shlibpath_var=no
9809      ;;
9810
9811    newsos6)
9812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813      hardcode_direct=yes
9814      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9815      hardcode_libdir_separator=:
9816      hardcode_shlibpath_var=no
9817      ;;
9818
9819    openbsd*)
9820      hardcode_direct=yes
9821      hardcode_shlibpath_var=no
9822      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9823        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9824        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9825        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9826        export_dynamic_flag_spec='${wl}-E'
9827      else
9828       case $host_os in
9829         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9830           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9831           hardcode_libdir_flag_spec='-R$libdir'
9832           ;;
9833         *)
9834           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9836           ;;
9837       esac
9838      fi
9839      ;;
9840
9841    os2*)
9842      hardcode_libdir_flag_spec='-L$libdir'
9843      hardcode_minus_L=yes
9844      allow_undefined_flag=unsupported
9845      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'
9846      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9847      ;;
9848
9849    osf3*)
9850      if test "$GCC" = yes; then
9851        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9852        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'
9853      else
9854        allow_undefined_flag=' -expect_unresolved \*'
9855        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'
9856      fi
9857      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9858      hardcode_libdir_separator=:
9859      ;;
9860
9861    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9862      if test "$GCC" = yes; then
9863        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9864        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'
9865        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866      else
9867        allow_undefined_flag=' -expect_unresolved \*'
9868        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'
9869        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9870        $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'
9871
9872        # Both c and cxx compiler support -rpath directly
9873        hardcode_libdir_flag_spec='-rpath $libdir'
9874      fi
9875      hardcode_libdir_separator=:
9876      ;;
9877
9878    solaris*)
9879      no_undefined_flag=' -z text'
9880      if test "$GCC" = yes; then
9881        wlarc='${wl}'
9882        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9883        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9884          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9885      else
9886        wlarc=''
9887        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9889        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9890      fi
9891      hardcode_libdir_flag_spec='-R$libdir'
9892      hardcode_shlibpath_var=no
9893      case $host_os in
9894      solaris2.[0-5] | solaris2.[0-5].*) ;;
9895      *)
9896        # The compiler driver will combine linker options so we
9897        # cannot just pass the convience library names through
9898        # without $wl, iff we do not link with $LD.
9899        # Luckily, gcc supports the same syntax we need for Sun Studio.
9900        # Supported since Solaris 2.6 (maybe 2.5.1?)
9901        case $wlarc in
9902        '')
9903          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9904        *)
9905          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' ;;
9906        esac ;;
9907      esac
9908      link_all_deplibs=yes
9909      ;;
9910
9911    sunos4*)
9912      if test "x$host_vendor" = xsequent; then
9913        # Use $CC to link under sequent, because it throws in some extra .o
9914        # files that make .init and .fini sections work.
9915        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9916      else
9917        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9918      fi
9919      hardcode_libdir_flag_spec='-L$libdir'
9920      hardcode_direct=yes
9921      hardcode_minus_L=yes
9922      hardcode_shlibpath_var=no
9923      ;;
9924
9925    sysv4)
9926      case $host_vendor in
9927        sni)
9928          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929          hardcode_direct=yes # is this really true???
9930        ;;
9931        siemens)
9932          ## LD is ld it makes a PLAMLIB
9933          ## CC just makes a GrossModule.
9934          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9935          reload_cmds='$CC -r -o $output$reload_objs'
9936          hardcode_direct=no
9937        ;;
9938        motorola)
9939          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9940          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9941        ;;
9942      esac
9943      runpath_var='LD_RUN_PATH'
9944      hardcode_shlibpath_var=no
9945      ;;
9946
9947    sysv4.3*)
9948      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9949      hardcode_shlibpath_var=no
9950      export_dynamic_flag_spec='-Bexport'
9951      ;;
9952
9953    sysv4*MP*)
9954      if test -d /usr/nec; then
9955        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956        hardcode_shlibpath_var=no
9957        runpath_var=LD_RUN_PATH
9958        hardcode_runpath_var=yes
9959        ld_shlibs=yes
9960      fi
9961      ;;
9962
9963    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9964      no_undefined_flag='${wl}-z,text'
9965      archive_cmds_need_lc=no
9966      hardcode_shlibpath_var=no
9967      runpath_var='LD_RUN_PATH'
9968
9969      if test "$GCC" = yes; then
9970        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972      else
9973        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975      fi
9976      ;;
9977
9978    sysv5* | sco3.2v5* | sco5v6*)
9979      # Note: We can NOT use -z defs as we might desire, because we do not
9980      # link with -lc, and that would cause any symbols used from libc to
9981      # always be unresolved, which means just about no library would
9982      # ever link correctly.  If we're not using GNU ld we use -z text
9983      # though, which does catch some bad symbols but isn't as heavy-handed
9984      # as -z defs.
9985      no_undefined_flag='${wl}-z,text'
9986      allow_undefined_flag='${wl}-z,nodefs'
9987      archive_cmds_need_lc=no
9988      hardcode_shlibpath_var=no
9989      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9990      hardcode_libdir_separator=':'
9991      link_all_deplibs=yes
9992      export_dynamic_flag_spec='${wl}-Bexport'
9993      runpath_var='LD_RUN_PATH'
9994
9995      if test "$GCC" = yes; then
9996        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9997        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9998      else
9999        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10000        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10001      fi
10002      ;;
10003
10004    uts4*)
10005      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006      hardcode_libdir_flag_spec='-L$libdir'
10007      hardcode_shlibpath_var=no
10008      ;;
10009
10010    *)
10011      ld_shlibs=no
10012      ;;
10013    esac
10014  fi
10015
10016echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10017echo "${ECHO_T}$ld_shlibs" >&6
10018test "$ld_shlibs" = no && can_build_shared=no
10019
10020#
10021# Do we need to explicitly link libc?
10022#
10023case "x$archive_cmds_need_lc" in
10024x|xyes)
10025  # Assume -lc should be added
10026  archive_cmds_need_lc=yes
10027
10028  if test "$enable_shared" = yes && test "$GCC" = yes; then
10029    case $archive_cmds in
10030    *'~'*)
10031      # FIXME: we may have to deal with multi-command sequences.
10032      ;;
10033    '$CC '*)
10034      # Test whether the compiler implicitly links with -lc since on some
10035      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10036      # to ld, don't add -lc before -lgcc.
10037      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10038echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10039      $rm conftest*
10040      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10041
10042      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043  (eval $ac_compile) 2>&5
10044  ac_status=$?
10045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046  (exit $ac_status); } 2>conftest.err; then
10047        soname=conftest
10048        lib=conftest
10049        libobjs=conftest.$ac_objext
10050        deplibs=
10051        wl=$lt_prog_compiler_wl
10052        pic_flag=$lt_prog_compiler_pic
10053        compiler_flags=-v
10054        linker_flags=-v
10055        verstring=
10056        output_objdir=.
10057        libname=conftest
10058        lt_save_allow_undefined_flag=$allow_undefined_flag
10059        allow_undefined_flag=
10060        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10061  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10062  ac_status=$?
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); }
10065        then
10066          archive_cmds_need_lc=no
10067        else
10068          archive_cmds_need_lc=yes
10069        fi
10070        allow_undefined_flag=$lt_save_allow_undefined_flag
10071      else
10072        cat conftest.err 1>&5
10073      fi
10074      $rm conftest*
10075      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10076echo "${ECHO_T}$archive_cmds_need_lc" >&6
10077      ;;
10078    esac
10079  fi
10080  ;;
10081esac
10082
10083echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10084echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10085library_names_spec=
10086libname_spec='lib$name'
10087soname_spec=
10088shrext_cmds=".so"
10089postinstall_cmds=
10090postuninstall_cmds=
10091finish_cmds=
10092finish_eval=
10093shlibpath_var=
10094shlibpath_overrides_runpath=unknown
10095version_type=none
10096dynamic_linker="$host_os ld.so"
10097sys_lib_dlsearch_path_spec="/lib /usr/lib"
10098if test "$GCC" = yes; then
10099  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10100  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10101    # if the path contains ";" then we assume it to be the separator
10102    # otherwise default to the standard path separator (i.e. ":") - it is
10103    # assumed that no part of a normal pathname contains ";" but that should
10104    # okay in the real world where ";" in dirpaths is itself problematic.
10105    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10106  else
10107    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10108  fi
10109else
10110  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10111fi
10112need_lib_prefix=unknown
10113hardcode_into_libs=no
10114
10115# when you set need_version to no, make sure it does not cause -set_version
10116# flags to be left without arguments
10117need_version=unknown
10118
10119case $host_os in
10120aix3*)
10121  version_type=linux
10122  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10123  shlibpath_var=LIBPATH
10124
10125  # AIX 3 has no versioning support, so we append a major version to the name.
10126  soname_spec='${libname}${release}${shared_ext}$major'
10127  ;;
10128
10129aix4* | aix5*)
10130  version_type=linux
10131  need_lib_prefix=no
10132  need_version=no
10133  hardcode_into_libs=yes
10134  if test "$host_cpu" = ia64; then
10135    # AIX 5 supports IA64
10136    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10137    shlibpath_var=LD_LIBRARY_PATH
10138  else
10139    # With GCC up to 2.95.x, collect2 would create an import file
10140    # for dependence libraries.  The import file would start with
10141    # the line `#! .'.  This would cause the generated library to
10142    # depend on `.', always an invalid library.  This was fixed in
10143    # development snapshots of GCC prior to 3.0.
10144    case $host_os in
10145      aix4 | aix4.[01] | aix4.[01].*)
10146      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10147           echo ' yes '
10148           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10149        :
10150      else
10151        can_build_shared=no
10152      fi
10153      ;;
10154    esac
10155    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10156    # soname into executable. Probably we can add versioning support to
10157    # collect2, so additional links can be useful in future.
10158    if test "$aix_use_runtimelinking" = yes; then
10159      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10160      # instead of lib<name>.a to let people know that these are not
10161      # typical AIX shared libraries.
10162      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163    else
10164      # We preserve .a as extension for shared libraries through AIX4.2
10165      # and later when we are not doing run time linking.
10166      library_names_spec='${libname}${release}.a $libname.a'
10167      soname_spec='${libname}${release}${shared_ext}$major'
10168    fi
10169    shlibpath_var=LIBPATH
10170  fi
10171  ;;
10172
10173amigaos*)
10174  library_names_spec='$libname.ixlibrary $libname.a'
10175  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10176  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'
10177  ;;
10178
10179beos*)
10180  library_names_spec='${libname}${shared_ext}'
10181  dynamic_linker="$host_os ld.so"
10182  shlibpath_var=LIBRARY_PATH
10183  ;;
10184
10185bsdi[45]*)
10186  version_type=linux
10187  need_version=no
10188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189  soname_spec='${libname}${release}${shared_ext}$major'
10190  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10191  shlibpath_var=LD_LIBRARY_PATH
10192  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10193  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10194  # the default ld.so.conf also contains /usr/contrib/lib and
10195  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10196  # libtool to hard-code these into programs
10197  ;;
10198
10199cygwin* | mingw* | pw32*)
10200  version_type=windows
10201  shrext_cmds=".dll"
10202  need_version=no
10203  need_lib_prefix=no
10204
10205  case $GCC,$host_os in
10206  yes,cygwin* | yes,mingw* | yes,pw32*)
10207    library_names_spec='$libname.dll.a'
10208    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10209    postinstall_cmds='base_file=`basename \${file}`~
10210      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10211      dldir=$destdir/`dirname \$dlpath`~
10212      test -d \$dldir || mkdir -p \$dldir~
10213      $install_prog $dir/$dlname \$dldir/$dlname~
10214      chmod a+x \$dldir/$dlname'
10215    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10216      dlpath=$dir/\$dldll~
10217       $rm \$dlpath'
10218    shlibpath_overrides_runpath=yes
10219
10220    case $host_os in
10221    cygwin*)
10222      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10223      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10225      ;;
10226    mingw*)
10227      # MinGW DLLs use traditional 'lib' prefix
10228      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10229      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10230      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10231        # It is most probably a Windows format PATH printed by
10232        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10233        # path with ; separators, and with drive letters. We can handle the
10234        # drive letters (cygwin fileutils understands them), so leave them,
10235        # especially as we might pass files found there to a mingw objdump,
10236        # which wouldn't understand a cygwinified path. Ahh.
10237        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10238      else
10239        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10240      fi
10241      ;;
10242    pw32*)
10243      # pw32 DLLs use 'pw' prefix rather than 'lib'
10244      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245      ;;
10246    esac
10247    ;;
10248
10249  *)
10250    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10251    ;;
10252  esac
10253  dynamic_linker='Win32 ld.exe'
10254  # FIXME: first we should search . and the directory the executable is in
10255  shlibpath_var=PATH
10256  ;;
10257
10258darwin* | rhapsody*)
10259  dynamic_linker="$host_os dyld"
10260  version_type=darwin
10261  need_lib_prefix=no
10262  need_version=no
10263  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10264  soname_spec='${libname}${release}${major}$shared_ext'
10265  shlibpath_overrides_runpath=yes
10266  shlibpath_var=DYLD_LIBRARY_PATH
10267  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10268  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10269  if test "$GCC" = yes; then
10270    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"`
10271  else
10272    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10273  fi
10274  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10275  ;;
10276
10277dgux*)
10278  version_type=linux
10279  need_lib_prefix=no
10280  need_version=no
10281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10282  soname_spec='${libname}${release}${shared_ext}$major'
10283  shlibpath_var=LD_LIBRARY_PATH
10284  ;;
10285
10286freebsd1*)
10287  dynamic_linker=no
10288  ;;
10289
10290kfreebsd*-gnu)
10291  version_type=linux
10292  need_lib_prefix=no
10293  need_version=no
10294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10295  soname_spec='${libname}${release}${shared_ext}$major'
10296  shlibpath_var=LD_LIBRARY_PATH
10297  shlibpath_overrides_runpath=no
10298  hardcode_into_libs=yes
10299  dynamic_linker='GNU ld.so'
10300  ;;
10301
10302freebsd* | dragonfly*)
10303  # DragonFly does not have aout.  When/if they implement a new
10304  # versioning mechanism, adjust this.
10305  if test -x /usr/bin/objformat; then
10306    objformat=`/usr/bin/objformat`
10307  else
10308    case $host_os in
10309    freebsd[123]*) objformat=aout ;;
10310    *) objformat=elf ;;
10311    esac
10312  fi
10313  version_type=freebsd-$objformat
10314  case $version_type in
10315    freebsd-elf*)
10316      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10317      need_version=no
10318      need_lib_prefix=no
10319      ;;
10320    freebsd-*)
10321      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10322      need_version=yes
10323      ;;
10324  esac
10325  shlibpath_var=LD_LIBRARY_PATH
10326  case $host_os in
10327  freebsd2*)
10328    shlibpath_overrides_runpath=yes
10329    ;;
10330  freebsd3.[01]* | freebsdelf3.[01]*)
10331    shlibpath_overrides_runpath=yes
10332    hardcode_into_libs=yes
10333    ;;
10334  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10335  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10336    shlibpath_overrides_runpath=no
10337    hardcode_into_libs=yes
10338    ;;
10339  freebsd*) # from 4.6 on
10340    shlibpath_overrides_runpath=yes
10341    hardcode_into_libs=yes
10342    ;;
10343  esac
10344  ;;
10345
10346gnu*)
10347  version_type=linux
10348  need_lib_prefix=no
10349  need_version=no
10350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10351  soname_spec='${libname}${release}${shared_ext}$major'
10352  shlibpath_var=LD_LIBRARY_PATH
10353  hardcode_into_libs=yes
10354  ;;
10355
10356hpux9* | hpux10* | hpux11*)
10357  # Give a soname corresponding to the major version so that dld.sl refuses to
10358  # link against other versions.
10359  version_type=sunos
10360  need_lib_prefix=no
10361  need_version=no
10362  case $host_cpu in
10363  ia64*)
10364    shrext_cmds='.so'
10365    hardcode_into_libs=yes
10366    dynamic_linker="$host_os dld.so"
10367    shlibpath_var=LD_LIBRARY_PATH
10368    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370    soname_spec='${libname}${release}${shared_ext}$major'
10371    if test "X$HPUX_IA64_MODE" = X32; then
10372      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373    else
10374      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375    fi
10376    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377    ;;
10378   hppa*64*)
10379     shrext_cmds='.sl'
10380     hardcode_into_libs=yes
10381     dynamic_linker="$host_os dld.sl"
10382     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385     soname_spec='${libname}${release}${shared_ext}$major'
10386     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388     ;;
10389   *)
10390    shrext_cmds='.sl'
10391    dynamic_linker="$host_os dld.sl"
10392    shlibpath_var=SHLIB_PATH
10393    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395    soname_spec='${libname}${release}${shared_ext}$major'
10396    ;;
10397  esac
10398  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10399  postinstall_cmds='chmod 555 $lib'
10400  ;;
10401
10402interix3*)
10403  version_type=linux
10404  need_lib_prefix=no
10405  need_version=no
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10407  soname_spec='${libname}${release}${shared_ext}$major'
10408  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10409  shlibpath_var=LD_LIBRARY_PATH
10410  shlibpath_overrides_runpath=no
10411  hardcode_into_libs=yes
10412  ;;
10413
10414irix5* | irix6* | nonstopux*)
10415  case $host_os in
10416    nonstopux*) version_type=nonstopux ;;
10417    *)
10418        if test "$lt_cv_prog_gnu_ld" = yes; then
10419                version_type=linux
10420        else
10421                version_type=irix
10422        fi ;;
10423  esac
10424  need_lib_prefix=no
10425  need_version=no
10426  soname_spec='${libname}${release}${shared_ext}$major'
10427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10428  case $host_os in
10429  irix5* | nonstopux*)
10430    libsuff= shlibsuff=
10431    ;;
10432  *)
10433    case $LD in # libtool.m4 will add one of these switches to LD
10434    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10435      libsuff= shlibsuff= libmagic=32-bit;;
10436    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10437      libsuff=32 shlibsuff=N32 libmagic=N32;;
10438    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10439      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10440    *) libsuff= shlibsuff= libmagic=never-match;;
10441    esac
10442    ;;
10443  esac
10444  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10445  shlibpath_overrides_runpath=no
10446  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10447  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10448  hardcode_into_libs=yes
10449  ;;
10450
10451# No shared lib support for Linux oldld, aout, or coff.
10452linux*oldld* | linux*aout* | linux*coff*)
10453  dynamic_linker=no
10454  ;;
10455
10456# This must be Linux ELF.
10457linux*)
10458  version_type=linux
10459  need_lib_prefix=no
10460  need_version=no
10461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462  soname_spec='${libname}${release}${shared_ext}$major'
10463  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10464  shlibpath_var=LD_LIBRARY_PATH
10465  shlibpath_overrides_runpath=no
10466  # This implies no fast_install, which is unacceptable.
10467  # Some rework will be needed to allow for fast_install
10468  # before this can be enabled.
10469  hardcode_into_libs=yes
10470
10471  # Append ld.so.conf contents to the search path
10472  if test -f /etc/ld.so.conf; then
10473    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' ' '`
10474    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10475  fi
10476
10477  # We used to test for /lib/ld.so.1 and disable shared libraries on
10478  # powerpc, because MkLinux only supported shared libraries with the
10479  # GNU dynamic linker.  Since this was broken with cross compilers,
10480  # most powerpc-linux boxes support dynamic linking these days and
10481  # people can always --disable-shared, the test was removed, and we
10482  # assume the GNU/Linux dynamic linker is in use.
10483  dynamic_linker='GNU/Linux ld.so'
10484  ;;
10485
10486knetbsd*-gnu)
10487  version_type=linux
10488  need_lib_prefix=no
10489  need_version=no
10490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10491  soname_spec='${libname}${release}${shared_ext}$major'
10492  shlibpath_var=LD_LIBRARY_PATH
10493  shlibpath_overrides_runpath=no
10494  hardcode_into_libs=yes
10495  dynamic_linker='GNU ld.so'
10496  ;;
10497
10498netbsd*)
10499  version_type=sunos
10500  need_lib_prefix=no
10501  need_version=no
10502  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10503    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10504    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10505    dynamic_linker='NetBSD (a.out) ld.so'
10506  else
10507    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10508    soname_spec='${libname}${release}${shared_ext}$major'
10509    dynamic_linker='NetBSD ld.elf_so'
10510  fi
10511  shlibpath_var=LD_LIBRARY_PATH
10512  shlibpath_overrides_runpath=yes
10513  hardcode_into_libs=yes
10514  ;;
10515
10516newsos6)
10517  version_type=linux
10518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519  shlibpath_var=LD_LIBRARY_PATH
10520  shlibpath_overrides_runpath=yes
10521  ;;
10522
10523nto-qnx*)
10524  version_type=linux
10525  need_lib_prefix=no
10526  need_version=no
10527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528  soname_spec='${libname}${release}${shared_ext}$major'
10529  shlibpath_var=LD_LIBRARY_PATH
10530  shlibpath_overrides_runpath=yes
10531  ;;
10532
10533openbsd*)
10534  version_type=sunos
10535  sys_lib_dlsearch_path_spec="/usr/lib"
10536  need_lib_prefix=no
10537  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10538  case $host_os in
10539    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10540    *)                         need_version=no  ;;
10541  esac
10542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544  shlibpath_var=LD_LIBRARY_PATH
10545  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10546    case $host_os in
10547      openbsd2.[89] | openbsd2.[89].*)
10548        shlibpath_overrides_runpath=no
10549        ;;
10550      *)
10551        shlibpath_overrides_runpath=yes
10552        ;;
10553      esac
10554  else
10555    shlibpath_overrides_runpath=yes
10556  fi
10557  ;;
10558
10559os2*)
10560  libname_spec='$name'
10561  shrext_cmds=".dll"
10562  need_lib_prefix=no
10563  library_names_spec='$libname${shared_ext} $libname.a'
10564  dynamic_linker='OS/2 ld.exe'
10565  shlibpath_var=LIBPATH
10566  ;;
10567
10568osf3* | osf4* | osf5*)
10569  version_type=osf
10570  need_lib_prefix=no
10571  need_version=no
10572  soname_spec='${libname}${release}${shared_ext}$major'
10573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574  shlibpath_var=LD_LIBRARY_PATH
10575  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10576  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10577  ;;
10578
10579solaris*)
10580  version_type=linux
10581  need_lib_prefix=no
10582  need_version=no
10583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584  soname_spec='${libname}${release}${shared_ext}$major'
10585  shlibpath_var=LD_LIBRARY_PATH
10586  shlibpath_overrides_runpath=yes
10587  hardcode_into_libs=yes
10588  # ldd complains unless libraries are executable
10589  postinstall_cmds='chmod +x $lib'
10590  ;;
10591
10592sunos4*)
10593  version_type=sunos
10594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10595  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10596  shlibpath_var=LD_LIBRARY_PATH
10597  shlibpath_overrides_runpath=yes
10598  if test "$with_gnu_ld" = yes; then
10599    need_lib_prefix=no
10600  fi
10601  need_version=yes
10602  ;;
10603
10604sysv4 | sysv4.3*)
10605  version_type=linux
10606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607  soname_spec='${libname}${release}${shared_ext}$major'
10608  shlibpath_var=LD_LIBRARY_PATH
10609  case $host_vendor in
10610    sni)
10611      shlibpath_overrides_runpath=no
10612      need_lib_prefix=no
10613      export_dynamic_flag_spec='${wl}-Blargedynsym'
10614      runpath_var=LD_RUN_PATH
10615      ;;
10616    siemens)
10617      need_lib_prefix=no
10618      ;;
10619    motorola)
10620      need_lib_prefix=no
10621      need_version=no
10622      shlibpath_overrides_runpath=no
10623      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10624      ;;
10625  esac
10626  ;;
10627
10628sysv4*MP*)
10629  if test -d /usr/nec ;then
10630    version_type=linux
10631    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10632    soname_spec='$libname${shared_ext}.$major'
10633    shlibpath_var=LD_LIBRARY_PATH
10634  fi
10635  ;;
10636
10637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10638  version_type=freebsd-elf
10639  need_lib_prefix=no
10640  need_version=no
10641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10642  soname_spec='${libname}${release}${shared_ext}$major'
10643  shlibpath_var=LD_LIBRARY_PATH
10644  hardcode_into_libs=yes
10645  if test "$with_gnu_ld" = yes; then
10646    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10647    shlibpath_overrides_runpath=no
10648  else
10649    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10650    shlibpath_overrides_runpath=yes
10651    case $host_os in
10652      sco3.2v5*)
10653        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10654        ;;
10655    esac
10656  fi
10657  sys_lib_dlsearch_path_spec='/usr/lib'
10658  ;;
10659
10660uts4*)
10661  version_type=linux
10662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663  soname_spec='${libname}${release}${shared_ext}$major'
10664  shlibpath_var=LD_LIBRARY_PATH
10665  ;;
10666
10667*)
10668  dynamic_linker=no
10669  ;;
10670esac
10671echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10672echo "${ECHO_T}$dynamic_linker" >&6
10673test "$dynamic_linker" = no && can_build_shared=no
10674
10675variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676if test "$GCC" = yes; then
10677  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678fi
10679
10680echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10681echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10682hardcode_action=
10683if test -n "$hardcode_libdir_flag_spec" || \
10684   test -n "$runpath_var" || \
10685   test "X$hardcode_automatic" = "Xyes" ; then
10686
10687  # We can hardcode non-existant directories.
10688  if test "$hardcode_direct" != no &&
10689     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10690     # have to relink, otherwise we might link with an installed library
10691     # when we should be linking with a yet-to-be-installed one
10692     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10693     test "$hardcode_minus_L" != no; then
10694    # Linking always hardcodes the temporary library directory.
10695    hardcode_action=relink
10696  else
10697    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10698    hardcode_action=immediate
10699  fi
10700else
10701  # We cannot hardcode anything, or else we can only hardcode existing
10702  # directories.
10703  hardcode_action=unsupported
10704fi
10705echo "$as_me:$LINENO: result: $hardcode_action" >&5
10706echo "${ECHO_T}$hardcode_action" >&6
10707
10708if test "$hardcode_action" = relink; then
10709  # Fast installation is not supported
10710  enable_fast_install=no
10711elif test "$shlibpath_overrides_runpath" = yes ||
10712     test "$enable_shared" = no; then
10713  # Fast installation is not necessary
10714  enable_fast_install=needless
10715fi
10716
10717striplib=
10718old_striplib=
10719echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10720echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10721if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10722  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10723  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10724  echo "$as_me:$LINENO: result: ye