source: ThirdParty/ASL/releases/1.0.9/configure @ 879

Last change on this file since 879 was 878, checked in by andreasw, 12 years ago

temporarily committing release candidate to stable

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