source: ThirdParty/FilterSQP/trunk/configure @ 164

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

added first version for ThirdParty?/FilterSQP (in trunk)

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