source: ThirdParty/ASL/trunk/configure @ 2164

Last change on this file since 2164 was 2164, checked in by stefan, 9 years ago

rerun autotools

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