source: ThirdParty/ASL/stable/1.3/configure @ 3350

Last change on this file since 3350 was 3350, checked in by tkr, 7 years ago

temporarily committing release candidate

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