source: ThirdParty/ASL/trunk/configure @ 2121

Last change on this file since 2121 was 2121, checked in by stefan, 10 years ago

rerun autotools

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