source: ThirdParty/ASL/stable/1.4/configure @ 3821

Last change on this file since 3821 was 3821, checked in by stefan, 18 months ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 715.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL 1.4.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='1.4.0'
433PACKAGE_STRING='ThirdPartyASL 1.4.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A HOST_TYPE HOST_IS_CYGWIN_TRUE HOST_IS_CYGWIN_FALSE ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL 1.4.0 to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL 1.4.0:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068
1069  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --disable-dependency-linking
1082                          disable linking library dependencies into shared
1083                          libraries
1084  --disable-pkg-config    disable use of pkg-config (if available)
1085
1086Optional Packages:
1087  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089  --with-asl-verbosity specify the debug verbosity level for project ASL
1090  --with-asl-checklevel specify the sanity check level for project ASL
1091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092  --with-pic              try to use only PIC/non-PIC objects [default=use
1093                          both]
1094  --with-tags[=TAGS]
1095                          include additional configurations [automatic]
1096  --with-coin-instdir     prefix of installation directory for precompiled
1097                          COIN packages
1098
1099Some influential environment variables:
1100  CDEFS       Additional -D flags to be used when compiling C code.
1101  ADD_CFLAGS  Additional C compiler options
1102  DBG_CFLAGS  Debug C compiler options
1103  OPT_CFLAGS  Optimize C compiler options
1104  CC          C compiler command
1105  CFLAGS      C compiler flags
1106  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107              nonstandard directory <lib dir>
1108  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109              headers in a nonstandard directory <include dir>
1110  MPICC       C MPI Compiler
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  PKG_CONFIG  path to pkg-config utility
1118  ASLMAKEFLAGS
1119              Compilation flags necessary for compiling the AMPL solver
1120              library
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
1125Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130  # If there are subdirs, report their specific --help.
1131  ac_popdir=`pwd`
1132  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133    test -d $ac_dir || continue
1134    ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138  # A "../" for each directory in $ac_dir_suffix.
1139  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141  ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145  .)  # No --srcdir option.  We are building in place.
1146    ac_srcdir=.
1147    if test -z "$ac_top_builddir"; then
1148       ac_top_srcdir=.
1149    else
1150       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151    fi ;;
1152  [\\/]* | ?:[\\/]* )  # Absolute path.
1153    ac_srcdir=$srcdir$ac_dir_suffix;
1154    ac_top_srcdir=$srcdir ;;
1155  *) # Relative path.
1156    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165  case "$ac_dir" in
1166  .) ac_abs_builddir=`pwd`;;
1167  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169  esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174  case ${ac_top_builddir}. in
1175  .) ac_abs_top_builddir=$ac_abs_builddir;;
1176  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178  esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183  case $ac_srcdir in
1184  .) ac_abs_srcdir=$ac_abs_builddir;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192  case $ac_top_srcdir in
1193  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196  esac;;
1197esac
1198
1199    cd $ac_dir
1200    # Check for guested configure; otherwise get Cygnus style configure.
1201    if test -f $ac_srcdir/configure.gnu; then
1202      echo
1203      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1204    elif test -f $ac_srcdir/configure; then
1205      echo
1206      $SHELL $ac_srcdir/configure  --help=recursive
1207    elif test -f $ac_srcdir/configure.ac ||
1208           test -f $ac_srcdir/configure.in; then
1209      echo
1210      $ac_configure --help
1211    else
1212      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213    fi
1214    cd $ac_popdir
1215  done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220  cat <<\_ACEOF
1221ThirdPartyASL configure 1.4.0
1222generated by GNU Autoconf 2.59
1223
1224Copyright (C) 2003 Free Software Foundation, Inc.
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227
1228
1229Copyright 2006, 2007, 2009 International Business Machines and others.
1230All Rights Reserved.
1231This file is part of the open source package Coin which is distributed
1232under the Eclipse Public License.
1233_ACEOF
1234  exit 0
1235fi
1236exec 5>config.log
1237cat >&5 <<_ACEOF
1238This file contains any messages produced by compilers while
1239running configure, to aid debugging if configure makes a mistake.
1240
1241It was created by ThirdPartyASL $as_me 1.4.0, which was
1242generated by GNU Autoconf 2.59.  Invocation command line was
1243
1244  $ $0 $@
1245
1246_ACEOF
1247{
1248cat <<_ASUNAME
1249## --------- ##
1250## Platform. ##
1251## --------- ##
1252
1253hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1254uname -m = `(uname -m) 2>/dev/null || echo unknown`
1255uname -r = `(uname -r) 2>/dev/null || echo unknown`
1256uname -s = `(uname -s) 2>/dev/null || echo unknown`
1257uname -v = `(uname -v) 2>/dev/null || echo unknown`
1258
1259/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1260/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1261
1262/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1263/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1264/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1265hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1266/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1267/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1268/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1269
1270_ASUNAME
1271
1272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273for as_dir in $PATH
1274do
1275  IFS=$as_save_IFS
1276  test -z "$as_dir" && as_dir=.
1277  echo "PATH: $as_dir"
1278done
1279
1280} >&5
1281
1282cat >&5 <<_ACEOF
1283
1284
1285## ----------- ##
1286## Core tests. ##
1287## ----------- ##
1288
1289_ACEOF
1290
1291
1292# Keep a trace of the command line.
1293# Strip out --no-create and --no-recursion so they do not pile up.
1294# Strip out --silent because we don't want to record it for future runs.
1295# Also quote any args containing shell meta-characters.
1296# Make two passes to allow for proper duplicate-argument suppression.
1297ac_configure_args=
1298ac_configure_args0=
1299ac_configure_args1=
1300ac_sep=
1301ac_must_keep_next=false
1302for ac_pass in 1 2
1303do
1304  for ac_arg
1305  do
1306    case $ac_arg in
1307    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1308    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309    | -silent | --silent | --silen | --sile | --sil)
1310      continue ;;
1311    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1313    esac
1314    case $ac_pass in
1315    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1316    2)
1317      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1318      if test $ac_must_keep_next = true; then
1319        ac_must_keep_next=false # Got value, back to normal.
1320      else
1321        case $ac_arg in
1322          *=* | --config-cache | -C | -disable-* | --disable-* \
1323          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1324          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1325          | -with-* | --with-* | -without-* | --without-* | --x)
1326            case "$ac_configure_args0 " in
1327              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1328            esac
1329            ;;
1330          -* ) ac_must_keep_next=true ;;
1331        esac
1332      fi
1333      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1334      # Get rid of the leading space.
1335      ac_sep=" "
1336      ;;
1337    esac
1338  done
1339done
1340$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1341$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1342
1343# When interrupted or exit'd, cleanup temporary files, and complete
1344# config.log.  We remove comments because anyway the quotes in there
1345# would cause problems or look ugly.
1346# WARNING: Be sure not to use single quotes in there, as some shells,
1347# such as our DU 5.0 friend, will then `close' the trap.
1348trap 'exit_status=$?
1349  # Save into config.log some information that might help in debugging.
1350  {
1351    echo
1352
1353    cat <<\_ASBOX
1354## ---------------- ##
1355## Cache variables. ##
1356## ---------------- ##
1357_ASBOX
1358    echo
1359    # The following way of writing the cache mishandles newlines in values,
1360{
1361  (set) 2>&1 |
1362    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1363    *ac_space=\ *)
1364      sed -n \
1365        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1366          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1367      ;;
1368    *)
1369      sed -n \
1370        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1371      ;;
1372    esac;
1373}
1374    echo
1375
1376    cat <<\_ASBOX
1377## ----------------- ##
1378## Output variables. ##
1379## ----------------- ##
1380_ASBOX
1381    echo
1382    for ac_var in $ac_subst_vars
1383    do
1384      eval ac_val=$`echo $ac_var`
1385      echo "$ac_var='"'"'$ac_val'"'"'"
1386    done | sort
1387    echo
1388
1389    if test -n "$ac_subst_files"; then
1390      cat <<\_ASBOX
1391## ------------- ##
1392## Output files. ##
1393## ------------- ##
1394_ASBOX
1395      echo
1396      for ac_var in $ac_subst_files
1397      do
1398        eval ac_val=$`echo $ac_var`
1399        echo "$ac_var='"'"'$ac_val'"'"'"
1400      done | sort
1401      echo
1402    fi
1403
1404    if test -s confdefs.h; then
1405      cat <<\_ASBOX
1406## ----------- ##
1407## confdefs.h. ##
1408## ----------- ##
1409_ASBOX
1410      echo
1411      sed "/^$/d" confdefs.h | sort
1412      echo
1413    fi
1414    test "$ac_signal" != 0 &&
1415      echo "$as_me: caught signal $ac_signal"
1416    echo "$as_me: exit $exit_status"
1417  } >&5
1418  rm -f core *.core &&
1419  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1420    exit $exit_status
1421     ' 0
1422for ac_signal in 1 2 13 15; do
1423  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1424done
1425ac_signal=0
1426
1427# confdefs.h avoids OS command line length limits that DEFS can exceed.
1428rm -rf conftest* confdefs.h
1429# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1430echo >confdefs.h
1431
1432# Predefined preprocessor variables.
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_NAME "$PACKAGE_NAME"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_VERSION "$PACKAGE_VERSION"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_STRING "$PACKAGE_STRING"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1456_ACEOF
1457
1458
1459# Let the site file select an alternate cache file if it wants to.
1460# Prefer explicitly selected file to automatically selected ones.
1461if test -z "$CONFIG_SITE"; then
1462  if test "x$prefix" != xNONE; then
1463    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1464  else
1465    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1466  fi
1467fi
1468for ac_site_file in $CONFIG_SITE; do
1469  if test -r "$ac_site_file"; then
1470    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1471echo "$as_me: loading site script $ac_site_file" >&6;}
1472    sed 's/^/| /' "$ac_site_file" >&5
1473    . "$ac_site_file"
1474  fi
1475done
1476
1477if test -r "$cache_file"; then
1478  # Some versions of bash will fail to source /dev/null (special
1479  # files actually), so we avoid doing that.
1480  if test -f "$cache_file"; then
1481    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1482echo "$as_me: loading cache $cache_file" >&6;}
1483    case $cache_file in
1484      [\\/]* | ?:[\\/]* ) . $cache_file;;
1485      *)                      . ./$cache_file;;
1486    esac
1487  fi
1488else
1489  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1490echo "$as_me: creating cache $cache_file" >&6;}
1491  >$cache_file
1492fi
1493
1494# Check that the precious variables saved in the cache have kept the same
1495# value.
1496ac_cache_corrupted=false
1497for ac_var in `(set) 2>&1 |
1498               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1499  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1500  eval ac_new_set=\$ac_env_${ac_var}_set
1501  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1502  eval ac_new_val="\$ac_env_${ac_var}_value"
1503  case $ac_old_set,$ac_new_set in
1504    set,)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,set)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,);;
1513    *)
1514      if test "x$ac_old_val" != "x$ac_new_val"; then
1515        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1516echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1517        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1518echo "$as_me:   former value:  $ac_old_val" >&2;}
1519        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1520echo "$as_me:   current value: $ac_new_val" >&2;}
1521        ac_cache_corrupted=:
1522      fi;;
1523  esac
1524  # Pass precious variables to config.status.
1525  if test "$ac_new_set" = set; then
1526    case $ac_new_val in
1527    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1528      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1529    *) ac_arg=$ac_var=$ac_new_val ;;
1530    esac
1531    case " $ac_configure_args " in
1532      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1533      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1534    esac
1535  fi
1536done
1537if $ac_cache_corrupted; then
1538  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1539echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1540  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1541echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1542   { (exit 1); exit 1; }; }
1543fi
1544
1545ac_ext=c
1546ac_cpp='$CPP $CPPFLAGS'
1547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1549ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580# List one file in the package so that the configure script can test
1581# whether the package is actually there
1582
1583
1584# Where should everything be installed by default?  Here, we want it
1585# to be installed directly in 'bin', 'lib', 'include' subdirectories
1586# of the directory where configure is run.  The default would be
1587# /usr/local.
1588
1589
1590#############################################################################
1591#                         Standard build tool stuff                         #
1592#############################################################################
1593
1594# Get the system type
1595ac_aux_dir=
1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597  if test -f $ac_dir/install-sh; then
1598    ac_aux_dir=$ac_dir
1599    ac_install_sh="$ac_aux_dir/install-sh -c"
1600    break
1601  elif test -f $ac_dir/install.sh; then
1602    ac_aux_dir=$ac_dir
1603    ac_install_sh="$ac_aux_dir/install.sh -c"
1604    break
1605  elif test -f $ac_dir/shtool; then
1606    ac_aux_dir=$ac_dir
1607    ac_install_sh="$ac_aux_dir/shtool install -c"
1608    break
1609  fi
1610done
1611if test -z "$ac_aux_dir"; then
1612  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620# Make sure we can run config.sub.
1621$ac_config_sub sun4 >/dev/null 2>&1 ||
1622  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624   { (exit 1); exit 1; }; }
1625
1626echo "$as_me:$LINENO: checking build system type" >&5
1627echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628if test "${ac_cv_build+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  ac_cv_build_alias=$build_alias
1632test -z "$ac_cv_build_alias" &&
1633  ac_cv_build_alias=`$ac_config_guess`
1634test -z "$ac_cv_build_alias" &&
1635  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637   { (exit 1); exit 1; }; }
1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641   { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645echo "${ECHO_T}$ac_cv_build" >&6
1646build=$ac_cv_build
1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652
1653# A bit of initial setup.
1654
1655# As backup, we make sure we don't loose an FLIBS if it has been set
1656# by the user
1657save_FLIBS="$FLIBS"
1658
1659# A useful makefile conditional that is always false
1660
1661
1662if false; then
1663  ALWAYS_FALSE_TRUE=
1664  ALWAYS_FALSE_FALSE='#'
1665else
1666  ALWAYS_FALSE_TRUE='#'
1667  ALWAYS_FALSE_FALSE=
1668fi
1669
1670
1671# We set the following variable so that we know later in AC_COIN_FINALIZE
1672# that we are in a project main directory
1673coin_projectdir=yes
1674
1675# Set the project's version numbers
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define ASL_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1684  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1685  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1686  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1687  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1688  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1689
1690cat >>confdefs.h <<_ACEOF
1691#define ASL_VERSION_MAJOR $coin_majorver
1692_ACEOF
1693
1694
1695cat >>confdefs.h <<_ACEOF
1696#define ASL_VERSION_MINOR $coin_minorver
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define ASL_VERSION_RELEASE $coin_releasever
1702_ACEOF
1703
1704
1705  # We use the following variable to have a string with the upper case
1706  # version of the project name
1707  COIN_PRJCT=ASL
1708
1709  # Set the project's SVN revision number. The complicated sed expression
1710  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1711  # as a single number.
1712  # Extract the first word of "svnversion", so it can be a program name with args.
1713set dummy svnversion; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_have_svnversion+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  if test -n "$have_svnversion"; then
1720  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  for ac_exec_ext in '' $ac_executable_extensions; do
1728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729    ac_cv_prog_have_svnversion="yes"
1730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731    break 2
1732  fi
1733done
1734done
1735
1736  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1737fi
1738fi
1739have_svnversion=$ac_cv_prog_have_svnversion
1740if test -n "$have_svnversion"; then
1741  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1742echo "${ECHO_T}$have_svnversion" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748  if test "x$have_svnversion" = xyes; then
1749
1750    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1751    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1752      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1753
1754cat >>confdefs.h <<_ACEOF
1755#define ASL_SVN_REV $ASL_SVN_REV
1756_ACEOF
1757
1758    fi
1759  fi
1760
1761
1762
1763# Capture libtool library version, if given.
1764 coin_libversion=5:0:4
1765
1766
1767
1768
1769# Turn off warnings and pedantic mode since they could make trouble on some
1770# platforms, and we can't fix issues in third-party code.
1771coin_skip_warn_cflags=yes
1772
1773# Check if user wants to produce debugging code
1774
1775echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1776echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1777
1778# Check whether --enable-debug or --disable-debug was given.
1779if test "${enable_debug+set}" = set; then
1780  enableval="$enable_debug"
1781  case "${enableval}" in
1782   yes) coin_debug_compile=true
1783        if test "${enable_shared+set}" = set; then :; else
1784          enable_shared=no
1785        fi
1786        ;;
1787   no)  coin_debug_compile=false
1788        ;;
1789   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1790echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1791   { (exit 1); exit 1; }; }
1792        ;;
1793esac
1794else
1795  coin_debug_compile=false
1796fi;
1797
1798# Check whether --enable-debug-asl or --disable-debug-asl was given.
1799if test "${enable_debug_asl+set}" = set; then
1800  enableval="$enable_debug_asl"
1801  case "${enableval}" in
1802    yes) coin_debug_compile=true
1803         ;;
1804    no)  coin_debug_compile=false
1805         ;;
1806    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1807echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1808   { (exit 1); exit 1; }; }
1809         ;;
1810 esac
1811else
1812  :
1813fi;
1814
1815 # m4_ifvaln([ASL],
1816
1817if test $coin_debug_compile = true; then
1818  echo "$as_me:$LINENO: result: yes" >&5
1819echo "${ECHO_T}yes" >&6
1820else
1821  echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6
1823fi
1824
1825
1826# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1827if test "${with_asl_verbosity+set}" = set; then
1828  withval="$with_asl_verbosity"
1829  if test "$withval" = yes; then
1830                withval=1
1831              fi
1832              coin_asl_verbosity=$withval
1833else
1834  coin_asl_verbosity=0
1835fi;
1836
1837cat >>confdefs.h <<_ACEOF
1838#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1839_ACEOF
1840
1841
1842
1843# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1844if test "${with_asl_checklevel+set}" = set; then
1845  withval="$with_asl_checklevel"
1846  if test "$withval" = yes; then
1847                withval=1
1848              fi
1849              coin_asl_checklevel=$withval
1850else
1851  coin_asl_checklevel=0
1852fi;
1853
1854cat >>confdefs.h <<_ACEOF
1855#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1856_ACEOF
1857
1858
1859 # m4_ifvaln([ASL],
1860
1861
1862
1863# We need egrep and ln -s somewhere
1864echo "$as_me:$LINENO: checking for egrep" >&5
1865echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1866if test "${ac_cv_prog_egrep+set}" = set; then
1867  echo $ECHO_N "(cached) $ECHO_C" >&6
1868else
1869  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1870    then ac_cv_prog_egrep='grep -E'
1871    else ac_cv_prog_egrep='egrep'
1872    fi
1873fi
1874echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1875echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1876 EGREP=$ac_cv_prog_egrep
1877
1878
1879echo "$as_me:$LINENO: checking whether ln -s works" >&5
1880echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1881LN_S=$as_ln_s
1882if test "$LN_S" = "ln -s"; then
1883  echo "$as_me:$LINENO: result: yes" >&5
1884echo "${ECHO_T}yes" >&6
1885else
1886  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1887echo "${ECHO_T}no, using $LN_S" >&6
1888fi
1889
1890
1891# Get the name of the C compiler and compiler flags
1892
1893
1894  # for backward compatibility
1895  # Check whether --enable-doscompile or --disable-doscompile was given.
1896if test "${enable_doscompile+set}" = set; then
1897  enableval="$enable_doscompile"
1898  enable_doscompile=$enableval
1899else
1900  enable_doscompile=no
1901fi;
1902
1903  # Check whether --enable-msvc or --disable-msvc was given.
1904if test "${enable_msvc+set}" = set; then
1905  enableval="$enable_msvc"
1906  enable_msvc=$enableval
1907else
1908  enable_msvc=no
1909     if test "$enable_doscompile" = msvc ; then
1910       enable_msvc=yes
1911     elif test "$enable_doscompile" != no ; then
1912       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1913echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1914   { (exit 1); exit 1; }; }
1915     fi
1916
1917fi;
1918
1919  if test "$enable_msvc" = MD; then
1920    enable_shared=yes
1921    enable_msvc=yes
1922  fi
1923
1924  if test "$enable_msvc" = yes; then
1925    case $build in
1926      *-cygwin* | *-mingw*) ;;
1927      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1928echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1929   { (exit 1); exit 1; }; } ;;
1930    esac
1931  fi
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942# For consistency, we set the C compiler to the same value of the C++
1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    clang* ) ;;
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957
1958
1959
1960
1961
1962coin_has_cc=yes
1963
1964save_cflags="$CFLAGS"
1965
1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1969# compiler. In this case, put cc after gcc.
1970
1971case $build in
1972  *-cygwin* | *-mingw*)
1973             if test "$enable_msvc" = yes ; then
1974               comps="icl cl gcc"
1975             else
1976               comps="gcc icl cl"
1977             fi ;;
1978  *-*-solaris*)
1979             # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$sol_cc_compiler"; then
1987  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1988else
1989  ac_prog_rejected=no
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993  IFS=$as_save_IFS
1994  test -z "$as_dir" && as_dir=.
1995  for ac_exec_ext in '' $ac_executable_extensions; do
1996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998       ac_prog_rejected=yes
1999       continue
2000     fi
2001    ac_cv_prog_sol_cc_compiler="cc"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008if test $ac_prog_rejected = yes; then
2009  # We found a bogon in the path, so make sure we never use it.
2010  set dummy $ac_cv_prog_sol_cc_compiler
2011  shift
2012  if test $# != 0; then
2013    # We chose a different compiler from the bogus one.
2014    # However, it has the same basename, so the bogon will be chosen
2015    # first if we set sol_cc_compiler to just the basename; use the full file name.
2016    shift
2017    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2018  fi
2019fi
2020fi
2021fi
2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2023if test -n "$sol_cc_compiler"; then
2024  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2025echo "${ECHO_T}$sol_cc_compiler" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031             if test "$sol_cc_compiler" = "cc" ; then
2032               comps="cc xlc gcc pgcc icc"
2033             else
2034               comps="xlc gcc pgcc icc cc"
2035             fi
2036             ;;
2037  *-*-darwin*) comps="clang gcc cc" ;;
2038  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2039  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2040  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2041esac
2042
2043# We delete the cached value, since the test might not have been
2044# performed with our choice of compilers earlier
2045$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2046# AC_MSG_NOTICE([C compiler candidates: $comps])
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052if test -n "$ac_tool_prefix"; then
2053  for ac_prog in $comps
2054  do
2055    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2056set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2057echo "$as_me:$LINENO: checking for $ac_word" >&5
2058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059if test "${ac_cv_prog_CC+set}" = set; then
2060  echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
2062  if test -n "$CC"; then
2063  ac_cv_prog_CC="$CC" # Let the user override the test.
2064else
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070  for ac_exec_ext in '' $ac_executable_extensions; do
2071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074    break 2
2075  fi
2076done
2077done
2078
2079fi
2080fi
2081CC=$ac_cv_prog_CC
2082if test -n "$CC"; then
2083  echo "$as_me:$LINENO: result: $CC" >&5
2084echo "${ECHO_T}$CC" >&6
2085else
2086  echo "$as_me:$LINENO: result: no" >&5
2087echo "${ECHO_T}no" >&6
2088fi
2089
2090    test -n "$CC" && break
2091  done
2092fi
2093if test -z "$CC"; then
2094  ac_ct_CC=$CC
2095  for ac_prog in $comps
2096do
2097  # Extract the first word of "$ac_prog", so it can be a program name with args.
2098set dummy $ac_prog; ac_word=$2
2099echo "$as_me:$LINENO: checking for $ac_word" >&5
2100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2102  echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104  if test -n "$ac_ct_CC"; then
2105  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106else
2107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110  IFS=$as_save_IFS
2111  test -z "$as_dir" && as_dir=.
2112  for ac_exec_ext in '' $ac_executable_extensions; do
2113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114    ac_cv_prog_ac_ct_CC="$ac_prog"
2115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116    break 2
2117  fi
2118done
2119done
2120
2121fi
2122fi
2123ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124if test -n "$ac_ct_CC"; then
2125  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126echo "${ECHO_T}$ac_ct_CC" >&6
2127else
2128  echo "$as_me:$LINENO: result: no" >&5
2129echo "${ECHO_T}no" >&6
2130fi
2131
2132  test -n "$ac_ct_CC" && break
2133done
2134
2135  CC=$ac_ct_CC
2136fi
2137
2138
2139test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140See \`config.log' for more details." >&5
2141echo "$as_me: error: no acceptable C compiler found in \$PATH
2142See \`config.log' for more details." >&2;}
2143   { (exit 1); exit 1; }; }
2144
2145# Provide some information about the compiler.
2146echo "$as_me:$LINENO:" \
2147     "checking for C compiler version" >&5
2148ac_compiler=`set X $ac_compile; echo $2`
2149{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150  (eval $ac_compiler --version </dev/null >&5) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); }
2154{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155  (eval $ac_compiler -v </dev/null >&5) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }
2159{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160  (eval $ac_compiler -V </dev/null >&5) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }
2164
2165cat >conftest.$ac_ext <<_ACEOF
2166/* confdefs.h.  */
2167_ACEOF
2168cat confdefs.h >>conftest.$ac_ext
2169cat >>conftest.$ac_ext <<_ACEOF
2170/* end confdefs.h.  */
2171
2172int
2173main ()
2174{
2175
2176  ;
2177  return 0;
2178}
2179_ACEOF
2180ac_clean_files_save=$ac_clean_files
2181ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182# Try to create an executable without -o first, disregard a.out.
2183# It will help us diagnose broken compilers, and finding out an intuition
2184# of exeext.
2185echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189  (eval $ac_link_default) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; then
2193  # Find the output, starting from the most likely.  This scheme is
2194# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195# resort.
2196
2197# Be careful to initialize this variable, since it used to be cached.
2198# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199ac_cv_exeext=
2200# b.out is created by i960 compilers.
2201for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202do
2203  test -f "$ac_file" || continue
2204  case $ac_file in
2205    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206        ;;
2207    conftest.$ac_ext )
2208        # This is the source file.
2209        ;;
2210    [ab].out )
2211        # We found the default executable, but exeext='' is most
2212        # certainly right.
2213        break;;
2214    *.* )
2215        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216        # FIXME: I believe we export ac_cv_exeext for Libtool,
2217        # but it would be cool to find out if it's true.  Does anybody
2218        # maintain Libtool? --akim.
2219        export ac_cv_exeext
2220        break;;
2221    * )
2222        break;;
2223  esac
2224done
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230See \`config.log' for more details." >&5
2231echo "$as_me: error: C compiler cannot create executables
2232See \`config.log' for more details." >&2;}
2233   { (exit 77); exit 77; }; }
2234fi
2235
2236ac_exeext=$ac_cv_exeext
2237echo "$as_me:$LINENO: result: $ac_file" >&5
2238echo "${ECHO_T}$ac_file" >&6
2239
2240# Check the compiler produces executables we can run.  If not, either
2241# the compiler is broken, or we cross compile.
2242echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245# If not cross compiling, check that we can run a simple program.
2246if test "$cross_compiling" != yes; then
2247  if { ac_try='./$ac_file'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253    cross_compiling=no
2254  else
2255    if test "$cross_compiling" = maybe; then
2256        cross_compiling=yes
2257    else
2258        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259If you meant to cross compile, use \`--host'.
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: cannot run C compiled programs.
2262If you meant to cross compile, use \`--host'.
2263See \`config.log' for more details." >&2;}
2264   { (exit 1); exit 1; }; }
2265    fi
2266  fi
2267fi
2268echo "$as_me:$LINENO: result: yes" >&5
2269echo "${ECHO_T}yes" >&6
2270
2271rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272ac_clean_files=$ac_clean_files_save
2273# Check the compiler produces executables we can run.  If not, either
2274# the compiler is broken, or we cross compile.
2275echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278echo "${ECHO_T}$cross_compiling" >&6
2279
2280echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283  (eval $ac_link) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; then
2287  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289# work properly (i.e., refer to `conftest.exe'), while it won't with
2290# `rm'.
2291for ac_file in conftest.exe conftest conftest.*; do
2292  test -f "$ac_file" || continue
2293  case $ac_file in
2294    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296          export ac_cv_exeext
2297          break;;
2298    * ) break;;
2299  esac
2300done
2301else
2302  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&2;}
2306   { (exit 1); exit 1; }; }
2307fi
2308
2309rm -f conftest$ac_cv_exeext
2310echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
2316echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318if test "${ac_cv_objext+set}" = set; then
2319  echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321  cat >conftest.$ac_ext <<_ACEOF
2322/* confdefs.h.  */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h.  */
2327
2328int
2329main ()
2330{
2331
2332  ;
2333  return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338  (eval $ac_compile) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; then
2342  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343  case $ac_file in
2344    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346       break;;
2347  esac
2348done
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354See \`config.log' for more details." >&5
2355echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358fi
2359
2360rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361fi
2362echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363echo "${ECHO_T}$ac_cv_objext" >&6
2364OBJEXT=$ac_cv_objext
2365ac_objext=$OBJEXT
2366echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369  echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371  cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h.  */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h.  */
2377
2378int
2379main ()
2380{
2381#ifndef __GNUC__
2382       choke me
2383#endif
2384
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_compiler_gnu=yes
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_compiler_gnu=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427CFLAGS="-g"
2428echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_g+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439
2440int
2441main ()
2442{
2443
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450  (eval $ac_compile) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457         { ac_try='test -z "$ac_c_werror_flag"
2458                         || test ! -s conftest.err'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; } &&
2464         { ac_try='test -s conftest.$ac_objext'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470  ac_cv_prog_cc_g=yes
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475ac_cv_prog_cc_g=no
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481if test "$ac_test_CFLAGS" = set; then
2482  CFLAGS=$ac_save_CFLAGS
2483elif test $ac_cv_prog_cc_g = yes; then
2484  if test "$GCC" = yes; then
2485    CFLAGS="-g -O2"
2486  else
2487    CFLAGS="-g"
2488  fi
2489else
2490  if test "$GCC" = yes; then
2491    CFLAGS="-O2"
2492  else
2493    CFLAGS=
2494  fi
2495fi
2496echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  ac_cv_prog_cc_stdc=no
2502ac_save_CC=$CC
2503cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h.  */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h.  */
2509#include <stdarg.h>
2510#include <stdio.h>
2511#include <sys/types.h>
2512#include <sys/stat.h>
2513/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514struct buf { int x; };
2515FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516static char *e (p, i)
2517     char **p;
2518     int i;
2519{
2520  return p[i];
2521}
2522static char *f (char * (*g) (char **, int), char **p, ...)
2523{
2524  char *s;
2525  va_list v;
2526  va_start (v,p);
2527  s = g (p, va_arg (v,int));
2528  va_end (v);
2529  return s;
2530}
2531
2532/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533   function prototypes and stuff, but not '\xHH' hex character constants.
2534   These don't provoke an error unfortunately, instead are silently treated
2535   as 'x'.  The following induces an error, until -std1 is added to get
2536   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537   array size at least.  It's necessary to write '\x00'==0 to get something
2538   that's true only with -std1.  */
2539int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541int test (int i, double x);
2542struct s1 {int (*f) (int a);};
2543struct s2 {int (*f) (double a);};
2544int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545int argc;
2546char **argv;
2547int
2548main ()
2549{
2550return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555# Don't try gcc -ansi; that turns off useful extensions and
2556# breaks some systems' header files.
2557# AIX                   -qlanglvl=ansi
2558# Ultrix and OSF/1      -std1
2559# HP-UX 10.20 and later -Ae
2560# HP-UX older versions  -Aa -D_HPUX_SOURCE
2561# SVR4                  -Xc -D__EXTENSIONS__
2562for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563do
2564  CC="$ac_save_CC $ac_arg"
2565  rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  ac_cv_prog_cc_stdc=$ac_arg
2588break
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593fi
2594rm -f conftest.err conftest.$ac_objext
2595done
2596rm -f conftest.$ac_ext conftest.$ac_objext
2597CC=$ac_save_CC
2598
2599fi
2600
2601case "x$ac_cv_prog_cc_stdc" in
2602  x|xno)
2603    echo "$as_me:$LINENO: result: none needed" >&5
2604echo "${ECHO_T}none needed" >&6 ;;
2605  *)
2606    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608    CC="$CC $ac_cv_prog_cc_stdc" ;;
2609esac
2610
2611# Some people use a C++ compiler to compile C.  Since we use `exit',
2612# in C++ we need to declare it.  In case someone uses the same compiler
2613# for both compiling C and C++ we need to have the C++ compiler decide
2614# the declaration of exit, since it's the most demanding environment.
2615cat >conftest.$ac_ext <<_ACEOF
2616#ifndef __cplusplus
2617  choke me
2618#endif
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } &&
2629         { ac_try='test -z "$ac_c_werror_flag"
2630                         || test ! -s conftest.err'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  for ac_declaration in \
2643   '' \
2644   'extern "C" void std::exit (int) throw (); using std::exit;' \
2645   'extern "C" void std::exit (int); using std::exit;' \
2646   'extern "C" void exit (int) throw ();' \
2647   'extern "C" void exit (int);' \
2648   'void exit (int);'
2649do
2650  cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h.  */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h.  */
2656$ac_declaration
2657#include <stdlib.h>
2658int
2659main ()
2660{
2661exit (42);
2662  ;
2663  return 0;
2664}
2665_ACEOF
2666rm -f conftest.$ac_objext
2667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668  (eval $ac_compile) 2>conftest.er1
2669  ac_status=$?
2670  grep -v '^ *+' conftest.er1 >conftest.err
2671  rm -f conftest.er1
2672  cat conftest.err >&5
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); } &&
2675         { ac_try='test -z "$ac_c_werror_flag"
2676                         || test ! -s conftest.err'
2677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678  (eval $ac_try) 2>&5
2679  ac_status=$?
2680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681  (exit $ac_status); }; } &&
2682         { ac_try='test -s conftest.$ac_objext'
2683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684  (eval $ac_try) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; }; then
2688  :
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693continue
2694fi
2695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696  cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702$ac_declaration
2703int
2704main ()
2705{
2706exit (42);
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest.$ac_objext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  break
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738fi
2739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740done
2741rm -f conftest*
2742if test -n "$ac_declaration"; then
2743  echo '#ifdef __cplusplus' >>confdefs.h
2744  echo $ac_declaration      >>confdefs.h
2745  echo '#endif'             >>confdefs.h
2746fi
2747
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760if test -z "$CC" ; then
2761  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2762echo "$as_me: error: Failed to find a C compiler!" >&2;}
2763   { (exit 1); exit 1; }; }
2764fi
2765# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2766case "$CC" in
2767  clang* ) ;;
2768  cl* | */cl* | CL* | */CL* )
2769    if test "$ac_cv_prog_cc_g" = yes ; then
2770      ac_cv_prog_cc_g=no
2771      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2772echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2773    fi ;;
2774  * )
2775    if test x"$CYGPATH_W" = x ; then
2776      CYGPATH_W=echo
2777    fi
2778    ;;
2779esac
2780CFLAGS="$save_cflags"
2781
2782# add automake conditional so we can recognize cl compiler in makefile
2783coin_cc_is_cl=false
2784case "$CC" in
2785  clang* ) ;;
2786  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2787    coin_cc_is_cl=true
2788    ;;
2789esac
2790
2791
2792if test $coin_cc_is_cl = true; then
2793  COIN_CC_IS_CL_TRUE=
2794  COIN_CC_IS_CL_FALSE='#'
2795else
2796  COIN_CC_IS_CL_TRUE='#'
2797  COIN_CC_IS_CL_FALSE=
2798fi
2799
2800
2801# Check if a project specific CFLAGS variable has been set
2802if test x$COIN_PRJCT != x; then
2803  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2804  if test x$coin_tmp = xset; then
2805    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2806  fi
2807fi
2808
2809if test x"$CFLAGS" = x; then
2810
2811  coin_add_cflags=
2812  coin_opt_cflags=
2813  coin_dbg_cflags=
2814  coin_warn_cflags=
2815
2816  if test "$GCC" = "yes"; then
2817    case "$CC" in
2818      icc* | */icc*)
2819        ;;
2820      *)
2821        coin_opt_cflags="-O3"
2822        coin_add_cflags="-pipe"
2823        coin_dbg_cflags="-g -O0"
2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2825    esac
2826  fi
2827  if test -z "$coin_opt_cflags"; then
2828    case $build in
2829      *-cygwin* | *-mingw*)
2830        case "$CC" in
2831          clang* ) ;;
2832          cl* | */cl* | CL* | */CL*)
2833            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2834              coin_opt_cflags='-MD -O2'
2835              coin_dbg_cflags='-MDd'
2836            else
2837              coin_opt_cflags='-MT -O2'
2838              coin_dbg_cflags='-MTd'
2839            fi
2840            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2841            ;;
2842          icl* | */icl* | ICL* | */ICL*)
2843            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2844              coin_opt_cflags='-MD -Ox'
2845              coin_dbg_cflags='-MDd -debug'
2846            else
2847              coin_opt_cflags='-MT -Ox'
2848              coin_dbg_cflags='-MTd -debug'
2849            fi
2850            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2851            ;;
2852        esac
2853        ;;
2854      *-linux-*)
2855        case "$CC" in
2856          icc* | */icc*)
2857            coin_opt_cflags="-O3 -ip -mp1"
2858            coin_add_cflags=""
2859            coin_dbg_cflags="-g"
2860            # Check if -i_dynamic is necessary (for new glibc library)
2861            CFLAGS=
2862            cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h.  */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h.  */
2868
2869int
2870main ()
2871{
2872int i=0; i++;
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext conftest$ac_exeext
2878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2879  (eval $ac_link) 2>conftest.er1
2880  ac_status=$?
2881  grep -v '^ *+' conftest.er1 >conftest.err
2882  rm -f conftest.er1
2883  cat conftest.err >&5
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); } &&
2886         { ac_try='test -z "$ac_c_werror_flag"
2887                         || test ! -s conftest.err'
2888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889  (eval $ac_try) 2>&5
2890  ac_status=$?
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); }; } &&
2893         { ac_try='test -s conftest$ac_exeext'
2894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895  (eval $ac_try) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; }; then
2899  :
2900else
2901  echo "$as_me: failed program was:" >&5
2902sed 's/^/| /' conftest.$ac_ext >&5
2903
2904coin_add_cflags="-i_dynamic $coin_add_cflags"
2905fi
2906rm -f conftest.err conftest.$ac_objext \
2907      conftest$ac_exeext conftest.$ac_ext
2908            ;;
2909          pgcc* | */pgcc*)
2910            coin_opt_cflags="-fast"
2911            coin_add_cflags="-Kieee -pc 64"
2912            coin_dbg_cflags="-g"
2913            ;;
2914        esac
2915        ;;
2916      *-ibm-*)
2917        case "$CC" in
2918          xlc* | */xlc* | mpxlc* | */mpxlc*)
2919            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2920            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2921            coin_dbg_cflags="-g"
2922          ;;
2923        esac
2924        ;;
2925      *-hp-*)
2926        coin_opt_cflags="-O"
2927        coin_add_cflags="-Ae"
2928        coin_dbg_cflags="-g"
2929        ;;
2930      *-*-solaris*)
2931        coin_opt_cflags="-xO4"
2932        coin_dbg_cflags="-g"
2933        ;;
2934      *-sgi-*)
2935        coin_opt_cflags="-O -OPT:Olimit=0"
2936        coin_dbg_cflags="-g"
2937        ;;
2938    esac
2939  fi
2940
2941  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2942    coin_dbg_cflags="-g"
2943  fi
2944
2945  if test -z "$coin_opt_cflags"; then
2946    # Try if -O option works if nothing else is set
2947    CFLAGS="-O"
2948    cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h.  */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h.  */
2954
2955int
2956main ()
2957{
2958int i=0; i++;
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext conftest$ac_exeext
2964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965  (eval $ac_link) 2>conftest.er1
2966  ac_status=$?
2967  grep -v '^ *+' conftest.er1 >conftest.err
2968  rm -f conftest.er1
2969  cat conftest.err >&5
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); } &&
2972         { ac_try='test -z "$ac_c_werror_flag"
2973                         || test ! -s conftest.err'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; } &&
2979         { ac_try='test -s conftest$ac_exeext'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; }; then
2985  coin_opt_cflags="-O"
2986else
2987  echo "$as_me: failed program was:" >&5
2988sed 's/^/| /' conftest.$ac_ext >&5
2989
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993  fi
2994
2995  # if PM doesn't want the warning messages, take them out
2996  if test x"$coin_skip_warn_cflags" = xyes; then
2997    coin_warn_cflags=
2998  fi
2999
3000  if test x${DBG_CFLAGS+set} != xset; then
3001    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3002  fi
3003  if test x${OPT_CFLAGS+set} != xset; then
3004    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3005  fi
3006
3007  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3008  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3009
3010  if test "$coin_debug_compile" = "true"; then
3011    CFLAGS="$DBG_CFLAGS"
3012  else
3013    CFLAGS="$OPT_CFLAGS"
3014  fi
3015else
3016  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3017  if test x${DBG_CFLAGS+set} != xset; then
3018    DBG_CFLAGS="$CFLAGS"
3019  fi
3020  if test x${OPT_CFLAGS+set} != xset; then
3021    OPT_CFLAGS="$CFLAGS"
3022  fi
3023fi
3024
3025# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3026if test x$COIN_PRJCT != x; then
3027  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3028fi
3029
3030# Try if CFLAGS works
3031save_CFLAGS="$CFLAGS"
3032cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042int i=0; i++;
3043  ;
3044  return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext conftest$ac_exeext
3048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049  (eval $ac_link) 2>conftest.er1
3050  ac_status=$?
3051  grep -v '^ *+' conftest.er1 >conftest.err
3052  rm -f conftest.er1
3053  cat conftest.err >&5
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056         { ac_try='test -z "$ac_c_werror_flag"
3057                         || test ! -s conftest.err'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; } &&
3063         { ac_try='test -s conftest$ac_exeext'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; }; then
3069  :
3070else
3071  echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074CFLAGS=
3075fi
3076rm -f conftest.err conftest.$ac_objext \
3077      conftest$ac_exeext conftest.$ac_ext
3078if test -z "$CFLAGS"; then
3079  { 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
3080echo "$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;}
3081  CFLAGS='-O'
3082  cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h.  */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h.  */
3088
3089int
3090main ()
3091{
3092int i=0; i++;
3093  ;
3094  return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext conftest$ac_exeext
3098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3099  (eval $ac_link) 2>conftest.er1
3100  ac_status=$?
3101  grep -v '^ *+' conftest.er1 >conftest.err
3102  rm -f conftest.er1
3103  cat conftest.err >&5
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); } &&
3106         { ac_try='test -z "$ac_c_werror_flag"
3107                         || test ! -s conftest.err'
3108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109  (eval $ac_try) 2>&5
3110  ac_status=$?
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); }; } &&
3113         { ac_try='test -s conftest$ac_exeext'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; }; then
3119  :
3120else
3121  echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124CFLAGS=
3125fi
3126rm -f conftest.err conftest.$ac_objext \
3127      conftest$ac_exeext conftest.$ac_ext
3128  if test -z "$CFLAGS"; then
3129    { 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
3130echo "$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;}
3131  fi
3132fi
3133
3134{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3135echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3136
3137
3138if test x"$MPICC" = x; then :; else
3139  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3140echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3141  CC="$MPICC"
3142fi
3143
3144# Correct the LD variable if we are using the MS or Intel-windows compiler
3145case "$CC" in
3146  clang* ) ;;
3147  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3148    LD=link
3149    ;;
3150esac
3151
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157
3158
3159
3160# Initialize automake and libtool
3161{
3162
3163
3164
3165# START
3166
3167coin_disable_shared=no
3168# Test if force_shared has been set
3169if test "x" = xforce_shared; then
3170  if test x$enable_shared = xno; then
3171    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3172echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3173   { (exit 1); exit 1; }; }
3174  fi
3175  enable_shared=yes;
3176else
3177  case $build in
3178    *-cygwin* | *-mingw*)
3179      coin_disable_shared=yes
3180      if test x"$enable_shared" = xyes; then
3181        case "$CC" in
3182          clang* )
3183            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3184echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3185            ;;
3186          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3187            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3188echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3189            ;;
3190          *gcc*)
3191            if test x"$enable_dependency_linking" = xyes; then
3192              coin_disable_shared=no
3193            else
3194              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3195echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3196            fi
3197            ;;
3198          *)
3199            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3200echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3201            ;;
3202        esac
3203      fi
3204    ;;
3205    *-aix*)
3206      coin_disable_shared=yes
3207      platform=AIX
3208      if test x"$enable_shared" = xyes; then
3209        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3210echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3211      fi
3212    ;;
3213  esac
3214fi
3215if test x"$coin_disable_shared" = xyes; then
3216  if test x"$enable_shared" = xyes; then
3217    :
3218  else
3219    # we don't disable shared, because it was not selected anyway
3220    coin_disable_shared=no
3221  fi
3222  enable_shared=no
3223fi
3224# By default, we only want the shared objects to be compiled
3225# Check whether --enable-static or --disable-static was given.
3226if test "${enable_static+set}" = set; then
3227  enableval="$enable_static"
3228  p=${PACKAGE-default}
3229    case $enableval in
3230    yes) enable_static=yes ;;
3231    no) enable_static=no ;;
3232    *)
3233     enable_static=no
3234      # Look at the argument we got.  We use all the common list separators.
3235      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3236      for pkg in $enableval; do
3237        IFS="$lt_save_ifs"
3238        if test "X$pkg" = "X$p"; then
3239          enable_static=yes
3240        fi
3241      done
3242      IFS="$lt_save_ifs"
3243      ;;
3244    esac
3245else
3246  enable_static=no
3247fi;
3248
3249
3250
3251
3252# Initialize automake
3253am__api_version="1.9"
3254# Find a good install program.  We prefer a C program (faster),
3255# so one script is as good as another.  But avoid the broken or
3256# incompatible versions:
3257# SysV /etc/install, /usr/sbin/install
3258# SunOS /usr/etc/install
3259# IRIX /sbin/install
3260# AIX /bin/install
3261# AmigaOS /C/install, which installs bootblocks on floppy discs
3262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3263# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3265# OS/2's system install, which has a completely different semantic
3266# ./install, which can be erroneously created by make from ./install.sh.
3267echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3268echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3269if test -z "$INSTALL"; then
3270if test "${ac_cv_path_install+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278  # Account for people who put trailing slashes in PATH elements.
3279case $as_dir/ in
3280  ./ | .// | /cC/* | \
3281  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3282  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3283  /usr/ucb/* ) ;;
3284  *)
3285    # OSF1 and SCO ODT 3.0 have their own names for install.
3286    # Don't use installbsd from OSF since it installs stuff as root
3287    # by default.
3288    for ac_prog in ginstall scoinst install; do
3289      for ac_exec_ext in '' $ac_executable_extensions; do
3290        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3291          if test $ac_prog = install &&
3292            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293            # AIX install.  It has an incompatible calling convention.
3294            :
3295          elif test $ac_prog = install &&
3296            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3297            # program-specific install script used by HP pwplus--don't use.
3298            :
3299          else
3300            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3301            break 3
3302          fi
3303        fi
3304      done
3305    done
3306    ;;
3307esac
3308done
3309
3310
3311fi
3312  if test "${ac_cv_path_install+set}" = set; then
3313    INSTALL=$ac_cv_path_install
3314  else
3315    # As a last resort, use the slow shell script.  We don't cache a
3316    # path for INSTALL within a source directory, because that will
3317    # break other packages using the cache if that directory is
3318    # removed, or if the path is relative.
3319    INSTALL=$ac_install_sh
3320  fi
3321fi
3322echo "$as_me:$LINENO: result: $INSTALL" >&5
3323echo "${ECHO_T}$INSTALL" >&6
3324
3325# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3326# It thinks the first close brace ends the variable substitution.
3327test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328
3329test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330
3331test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3332
3333echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3334echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3335# Just in case
3336sleep 1
3337echo timestamp > conftest.file
3338# Do `set' in a subshell so we don't clobber the current shell's
3339# arguments.  Must try -L first in case configure is actually a
3340# symlink; some systems play weird games with the mod time of symlinks
3341# (eg FreeBSD returns the mod time of the symlink's containing
3342# directory).
3343if (
3344   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3345   if test "$*" = "X"; then
3346      # -L didn't work.
3347      set X `ls -t $srcdir/configure conftest.file`
3348   fi
3349   rm -f conftest.file
3350   if test "$*" != "X $srcdir/configure conftest.file" \
3351      && test "$*" != "X conftest.file $srcdir/configure"; then
3352
3353      # If neither matched, then we have a broken ls.  This can happen
3354      # if, for instance, CONFIG_SHELL is bash and it inherits a
3355      # broken ls alias from the environment.  This has actually
3356      # happened.  Such a system could not be considered "sane".
3357      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3358alias in your environment" >&5
3359echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3360alias in your environment" >&2;}
3361   { (exit 1); exit 1; }; }
3362   fi
3363
3364   test "$2" = conftest.file
3365   )
3366then
3367   # Ok.
3368   :
3369else
3370   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3371Check your system clock" >&5
3372echo "$as_me: error: newly created file is older than distributed files!
3373Check your system clock" >&2;}
3374   { (exit 1); exit 1; }; }
3375fi
3376echo "$as_me:$LINENO: result: yes" >&5
3377echo "${ECHO_T}yes" >&6
3378test "$program_prefix" != NONE &&
3379  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3380# Use a double $ so make ignores it.
3381test "$program_suffix" != NONE &&
3382  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3383# Double any \ or $.  echo might interpret backslashes.
3384# By default was `s,x,x', remove it if useless.
3385cat <<\_ACEOF >conftest.sed
3386s/[\\$]/&&/g;s/;s,x,x,$//
3387_ACEOF
3388program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3389rm conftest.sed
3390
3391# expand $ac_aux_dir to an absolute path
3392am_aux_dir=`cd $ac_aux_dir && pwd`
3393
3394test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3395# Use eval to expand $SHELL
3396if eval "$MISSING --run true"; then
3397  am_missing_run="$MISSING --run "
3398else
3399  am_missing_run=
3400  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3401echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3402fi
3403
3404if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3405  # We used to keeping the `.' as first argument, in order to
3406  # allow $(mkdir_p) to be used without argument.  As in
3407  #   $(mkdir_p) $(somedir)
3408  # where $(somedir) is conditionally defined.  However this is wrong
3409  # for two reasons:
3410  #  1. if the package is installed by a user who cannot write `.'
3411  #     make install will fail,
3412  #  2. the above comment should most certainly read
3413  #     $(mkdir_p) $(DESTDIR)$(somedir)
3414  #     so it does not work when $(somedir) is undefined and
3415  #     $(DESTDIR) is not.
3416  #  To support the latter case, we have to write
3417  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3418  #  so the `.' trick is pointless.
3419  mkdir_p='mkdir -p --'
3420else
3421  # On NextStep and OpenStep, the `mkdir' command does not
3422  # recognize any option.  It will interpret all options as
3423  # directories to create, and then abort because `.' already
3424  # exists.
3425  for d in ./-p ./--version;
3426  do
3427    test -d $d && rmdir $d
3428  done
3429  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3430  if test -f "$ac_aux_dir/mkinstalldirs"; then
3431    mkdir_p='$(mkinstalldirs)'
3432  else
3433    mkdir_p='$(install_sh) -d'
3434  fi
3435fi
3436
3437for ac_prog in gawk mawk nawk awk
3438do
3439  # Extract the first word of "$ac_prog", so it can be a program name with args.
3440set dummy $ac_prog; ac_word=$2
3441echo "$as_me:$LINENO: checking for $ac_word" >&5
3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443if test "${ac_cv_prog_AWK+set}" = set; then
3444  echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446  if test -n "$AWK"; then
3447  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454  for ac_exec_ext in '' $ac_executable_extensions; do
3455  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456    ac_cv_prog_AWK="$ac_prog"
3457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461done
3462
3463fi
3464fi
3465AWK=$ac_cv_prog_AWK
3466if test -n "$AWK"; then
3467  echo "$as_me:$LINENO: result: $AWK" >&5
3468echo "${ECHO_T}$AWK" >&6
3469else
3470  echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
3472fi
3473
3474  test -n "$AWK" && break
3475done
3476
3477echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3478echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3479set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3480if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  cat >conftest.make <<\_ACEOF
3484all:
3485        @echo 'ac_maketemp="$(MAKE)"'
3486_ACEOF
3487# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3488eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3489if test -n "$ac_maketemp"; then
3490  eval ac_cv_prog_make_${ac_make}_set=yes
3491else
3492  eval ac_cv_prog_make_${ac_make}_set=no
3493fi
3494rm -f conftest.make
3495fi
3496if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3497  echo "$as_me:$LINENO: result: yes" >&5
3498echo "${ECHO_T}yes" >&6
3499  SET_MAKE=
3500else
3501  echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503  SET_MAKE="MAKE=${MAKE-make}"
3504fi
3505
3506rm -rf .tst 2>/dev/null
3507mkdir .tst 2>/dev/null
3508if test -d .tst; then
3509  am__leading_dot=.
3510else
3511  am__leading_dot=_
3512fi
3513rmdir .tst 2>/dev/null
3514
3515DEPDIR="${am__leading_dot}deps"
3516
3517          ac_config_commands="$ac_config_commands depfiles"
3518
3519
3520am_make=${MAKE-make}
3521cat > confinc << 'END'
3522am__doit:
3523        @echo done
3524.PHONY: am__doit
3525END
3526# If we don't find an include directive, just comment out the code.
3527echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3528echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3529am__include="#"
3530am__quote=
3531_am_result=none
3532# First try GNU make style include.
3533echo "include confinc" > confmf
3534# We grep out `Entering directory' and `Leaving directory'
3535# messages which can occur if `w' ends up in MAKEFLAGS.
3536# In particular we don't look at `^make:' because GNU make might
3537# be invoked under some other name (usually "gmake"), in which
3538# case it prints its new name instead of `make'.
3539if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3540   am__include=include
3541   am__quote=
3542   _am_result=GNU
3543fi
3544# Now try BSD make style include.
3545if test "$am__include" = "#"; then
3546   echo '.include "confinc"' > confmf
3547   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3548      am__include=.include
3549      am__quote="\""
3550      _am_result=BSD
3551   fi
3552fi
3553
3554
3555echo "$as_me:$LINENO: result: $_am_result" >&5
3556echo "${ECHO_T}$_am_result" >&6
3557rm -f confinc confmf
3558
3559# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3560if test "${enable_dependency_tracking+set}" = set; then
3561  enableval="$enable_dependency_tracking"
3562
3563fi;
3564if test "x$enable_dependency_tracking" != xno; then
3565  am_depcomp="$ac_aux_dir/depcomp"
3566  AMDEPBACKSLASH='\'
3567fi
3568
3569
3570if test "x$enable_dependency_tracking" != xno; then
3571  AMDEP_TRUE=
3572  AMDEP_FALSE='#'
3573else
3574  AMDEP_TRUE='#'
3575  AMDEP_FALSE=
3576fi
3577
3578
3579
3580
3581
3582
3583# AC_MSG_NOTICE([Beginning automake initialisation.])
3584# Stuff for automake
3585# test to see if srcdir already configured
3586if test "`cd $srcdir && pwd`" != "`pwd`" &&
3587   test -f $srcdir/config.status; then
3588  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3589echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3590   { (exit 1); exit 1; }; }
3591fi
3592
3593# test whether we have cygpath
3594if test -z "$CYGPATH_W"; then
3595  if (cygpath --version) >/dev/null 2>/dev/null; then
3596    CYGPATH_W='cygpath -w'
3597  else
3598    CYGPATH_W=echo
3599  fi
3600fi
3601
3602
3603# Define the identity of the package.
3604 PACKAGE='thirdpartyasl'
3605 VERSION='1.4.0'
3606
3607
3608cat >>confdefs.h <<_ACEOF
3609#define PACKAGE "$PACKAGE"
3610_ACEOF
3611
3612
3613cat >>confdefs.h <<_ACEOF
3614#define VERSION "$VERSION"
3615_ACEOF
3616
3617# Some tools Automake needs.
3618
3619ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3620
3621
3622AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3623
3624
3625AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3626
3627
3628AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3629
3630
3631MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3632
3633install_sh=${install_sh-"$am_aux_dir/install-sh"}
3634
3635# Installed binaries are usually stripped using `strip' when the user
3636# run `make install-strip'.  However `strip' might not be the right
3637# tool to use in cross-compilation environments, therefore Automake
3638# will honor the `STRIP' environment variable to overrule this program.
3639if test "$cross_compiling" != no; then
3640  if test -n "$ac_tool_prefix"; then
3641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3642set dummy ${ac_tool_prefix}strip; ac_word=$2
3643echo "$as_me:$LINENO: checking for $ac_word" >&5
3644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645if test "${ac_cv_prog_STRIP+set}" = set; then
3646  echo $ECHO_N "(cached) $ECHO_C" >&6
3647else
3648  if test -n "$STRIP"; then
3649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  test -z "$as_dir" && as_dir=.
3656  for ac_exec_ext in '' $ac_executable_extensions; do
3657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3660    break 2
3661  fi
3662done
3663done
3664
3665fi
3666fi
3667STRIP=$ac_cv_prog_STRIP
3668if test -n "$STRIP"; then
3669  echo "$as_me:$LINENO: result: $STRIP" >&5
3670echo "${ECHO_T}$STRIP" >&6
3671else
3672  echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674fi
3675
3676fi
3677if test -z "$ac_cv_prog_STRIP"; then
3678  ac_ct_STRIP=$STRIP
3679  # Extract the first word of "strip", so it can be a program name with args.
3680set dummy strip; ac_word=$2
3681echo "$as_me:$LINENO: checking for $ac_word" >&5
3682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3683if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3684  echo $ECHO_N "(cached) $ECHO_C" >&6
3685else
3686  if test -n "$ac_ct_STRIP"; then
3687  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692  IFS=$as_save_IFS
3693  test -z "$as_dir" && as_dir=.
3694  for ac_exec_ext in '' $ac_executable_extensions; do
3695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3696    ac_cv_prog_ac_ct_STRIP="strip"
3697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3698    break 2
3699  fi
3700done
3701done
3702
3703  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3704fi
3705fi
3706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3707if test -n "$ac_ct_STRIP"; then
3708  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3709echo "${ECHO_T}$ac_ct_STRIP" >&6
3710else
3711  echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713fi
3714
3715  STRIP=$ac_ct_STRIP
3716else
3717  STRIP="$ac_cv_prog_STRIP"
3718fi
3719
3720fi
3721INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3722
3723# We need awk for the "check" target.  The system "awk" is bad on
3724# some platforms.
3725# Always define AMTAR for backward compatibility.
3726
3727AMTAR=${AMTAR-"${am_missing_run}tar"}
3728
3729am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3730
3731
3732
3733
3734depcc="$CC"   am_compiler_list=
3735
3736echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3737echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3738if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3739  echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3742  # We make a subdir and do the tests there.  Otherwise we can end up
3743  # making bogus files that we don't know about and never remove.  For
3744  # instance it was reported that on HP-UX the gcc test will end up
3745  # making a dummy file named `D' -- because `-MD' means `put the output
3746  # in D'.
3747  mkdir conftest.dir
3748  # Copy depcomp to subdir because otherwise we won't find it if we're
3749  # using a relative directory.
3750  cp "$am_depcomp" conftest.dir
3751  cd conftest.dir
3752  # We will build objects and dependencies in a subdirectory because
3753  # it helps to detect inapplicable dependency modes.  For instance
3754  # both Tru64's cc and ICC support -MD to output dependencies as a
3755  # side effect of compilation, but ICC will put the dependencies in
3756  # the current directory while Tru64 will put them in the object
3757  # directory.
3758  mkdir sub
3759
3760  am_cv_CC_dependencies_compiler_type=none
3761  if test "$am_compiler_list" = ""; then
3762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3763  fi
3764  for depmode in $am_compiler_list; do
3765    # Setup a source with many dependencies, because some compilers
3766    # like to wrap large dependency lists on column 80 (with \), and
3767    # we should not choose a depcomp mode which is confused by this.
3768    #
3769    # We need to recreate these files for each test, as the compiler may
3770    # overwrite some of them when testing with obscure command lines.
3771    # This happens at least with the AIX C compiler.
3772    : > sub/conftest.c
3773    for i in 1 2 3 4 5 6; do
3774      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3775      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3776      # Solaris 8's {/usr,}/bin/sh.
3777      touch sub/conftst$i.h
3778    done
3779    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3780
3781    case $depmode in
3782    nosideeffect)
3783      # after this tag, mechanisms are not by side-effect, so they'll
3784      # only be used when explicitly requested
3785      if test "x$enable_dependency_tracking" = xyes; then
3786        continue
3787      else
3788        break
3789      fi
3790      ;;
3791    none) break ;;
3792    esac
3793    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794    # mode.  It turns out that the SunPro C++ compiler does not properly
3795    # handle `-M -o', and we need to detect this.
3796    if depmode=$depmode \
3797       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3798       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3799       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3800         >/dev/null 2>conftest.err &&
3801       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3802       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3803       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3804      # icc doesn't choke on unknown options, it will just issue warnings
3805      # or remarks (even with -Werror).  So we grep stderr for any message
3806      # that says an option was ignored or not supported.
3807      # When given -MP, icc 7.0 and 7.1 complain thusly:
3808      #   icc: Command line warning: ignoring option '-M'; no argument required
3809      # The diagnosis changed in icc 8.0:
3810      #   icc: Command line remark: option '-MP' not supported
3811      if (grep 'ignoring option' conftest.err ||
3812          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3813        am_cv_CC_dependencies_compiler_type=$depmode
3814        break
3815      fi
3816    fi
3817  done
3818
3819  cd ..
3820  rm -rf conftest.dir
3821else
3822  am_cv_CC_dependencies_compiler_type=none
3823fi
3824
3825fi
3826echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3827echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3828CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3829
3830
3831
3832if
3833  test "x$enable_dependency_tracking" != xno \
3834  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835  am__fastdepCC_TRUE=
3836  am__fastdepCC_FALSE='#'
3837else
3838  am__fastdepCC_TRUE='#'
3839  am__fastdepCC_FALSE=
3840fi
3841
3842
3843
3844echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3845echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3846    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3847if test "${enable_maintainer_mode+set}" = set; then
3848  enableval="$enable_maintainer_mode"
3849  USE_MAINTAINER_MODE=$enableval
3850else
3851  USE_MAINTAINER_MODE=no
3852fi;
3853  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3854echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3855
3856
3857if test $USE_MAINTAINER_MODE = yes; then
3858  MAINTAINER_MODE_TRUE=
3859  MAINTAINER_MODE_FALSE='#'
3860else
3861  MAINTAINER_MODE_TRUE='#'
3862  MAINTAINER_MODE_FALSE=
3863fi
3864
3865  MAINT=$MAINTAINER_MODE_TRUE
3866
3867
3868
3869coin_have_externals=no
3870if test "$enable_maintainer_mode" = yes; then
3871
3872  # If maintainer mode is chosen, we make sure that the correct versions
3873  # of the tools are used, and that we know where libtool.m4 is (to
3874  # recreate acinclude.m4)
3875
3876
3877  LIBTOOLM4=
3878  # Normally, $HOME
3879  AUTOTOOLS_DFLT=$HOME
3880
3881  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3882echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3883if test "${ac_cv_use_correct_autotools+set}" = set; then
3884  echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
3886  ac_cv_use_correct_autotools=check
3887fi
3888echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3889echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3890
3891  if test $ac_cv_use_correct_autotools = check; then
3892    ac_cv_use_correct_autotools=yes
3893    # Check if we have autoconf
3894    # Extract the first word of "autoconf", so it can be a program name with args.
3895set dummy autoconf; ac_word=$2
3896echo "$as_me:$LINENO: checking for $ac_word" >&5
3897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898if test "${ac_cv_prog_have_autoconf+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  if test -n "$have_autoconf"; then
3902  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3903else
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907  IFS=$as_save_IFS
3908  test -z "$as_dir" && as_dir=.
3909  for ac_exec_ext in '' $ac_executable_extensions; do
3910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911    ac_cv_prog_have_autoconf="yes"
3912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913    break 2
3914  fi
3915done
3916done
3917
3918  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3919fi
3920fi
3921have_autoconf=$ac_cv_prog_have_autoconf
3922if test -n "$have_autoconf"; then
3923  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3924echo "${ECHO_T}$have_autoconf" >&6
3925else
3926  echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928fi
3929
3930    if test $have_autoconf = no; then
3931      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3932echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3933   { (exit 1); exit 1; }; }
3934    fi
3935
3936    # Check whether autoconf is the correct version
3937    correct_version='2.59'
3938    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3939    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3940echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3941    autoconf --version > confauto.out 2>&1
3942    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3943      echo "$as_me:$LINENO: result: yes" >&5
3944echo "${ECHO_T}yes" >&6
3945    else
3946      rm -f confauto.out
3947      echo "$as_me:$LINENO: result: no" >&5
3948echo "${ECHO_T}no" >&6
3949      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3950echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3951   { (exit 1); exit 1; }; }
3952    fi
3953    rm -f confauto.out
3954
3955    # Check if the executable autoconf is picked up from the correct location
3956    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3957echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3958    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3959    autoconf_dir=`cd $autoconf_dir; pwd`
3960    if test x$AUTOTOOLS_DIR = x; then
3961      want_dir=$AUTOTOOLS_DFLT/bin
3962    else
3963      want_dir=$AUTOTOOLS_DIR/bin
3964    fi
3965    if test $autoconf_dir = `cd $want_dir; pwd`; then
3966      echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968    else
3969      rm -f confauto.out
3970      echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
3972      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
3973echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
3974   { (exit 1); exit 1; }; }
3975    fi
3976
3977    # Check if we have automake
3978    # Extract the first word of "automake", so it can be a program name with args.
3979set dummy automake; ac_word=$2
3980echo "$as_me:$LINENO: checking for $ac_word" >&5
3981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982if test "${ac_cv_prog_have_automake+set}" = set; then
3983  echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985  if test -n "$have_automake"; then
3986  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
3987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991  IFS=$as_save_IFS
3992  test -z "$as_dir" && as_dir=.
3993  for ac_exec_ext in '' $ac_executable_extensions; do
3994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995    ac_cv_prog_have_automake="yes"
3996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997    break 2
3998  fi
3999done
4000done
4001
4002  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4003fi
4004fi
4005have_automake=$ac_cv_prog_have_automake
4006if test -n "$have_automake"; then
4007  echo "$as_me:$LINENO: result: $have_automake" >&5
4008echo "${ECHO_T}$have_automake" >&6
4009else
4010  echo "$as_me:$LINENO: result: no" >&5
4011echo "${ECHO_T}no" >&6
4012fi
4013
4014    if test $have_automake = no; then
4015      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4016echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4017   { (exit 1); exit 1; }; }
4018    fi
4019
4020    # Check whether automake is the correct version
4021    correct_version='1.9.6'
4022    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4023    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4024echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4025    automake --version > confauto.out 2>&1
4026    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4027      echo "$as_me:$LINENO: result: yes" >&5
4028echo "${ECHO_T}yes" >&6
4029    else
4030      rm -f confauto.out
4031      echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4034echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4035   { (exit 1); exit 1; }; }
4036    fi
4037    rm -f confauto.out
4038
4039    # Check if the executable automake is picked up from the correct location
4040    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4041echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4042    automake_dir=`which automake | sed -e 's=/automake=='`
4043    automake_dir=`cd $automake_dir; pwd`
4044    if test x$AUTOTOOLS_DIR = x; then
4045      want_dir=$AUTOTOOLS_DFLT/bin
4046    else
4047      want_dir=$AUTOTOOLS_DIR/bin
4048    fi
4049    if test $automake_dir = `cd $want_dir; pwd`; then
4050      echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6
4052    else
4053      rm -f confauto.out
4054      echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
4056      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4057echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4058   { (exit 1); exit 1; }; }
4059    fi
4060
4061    # Check if this is the correct version of libtool (with escaped dots)
4062    if test x$AUTOTOOLS_DIR = x; then
4063      want_dir=$AUTOTOOLS_DFLT/share
4064    else
4065      want_dir=$AUTOTOOLS_DIR/share
4066    fi
4067    correct_version='1.5.22'
4068    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4069    if test -r $want_dir/libtool/ltmain.sh; then
4070  have_ltmain=yes
4071  :
4072else
4073  have_ltmain=no
4074  :
4075fi
4076
4077    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4078echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4079    if test $have_ltmain = yes; then
4080    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4081        echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083      else
4084        echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6
4086        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4087echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4088   { (exit 1); exit 1; }; }
4089      fi
4090    else
4091      echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4094echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4095   { (exit 1); exit 1; }; }
4096    fi
4097  fi
4098
4099  # Check if we can find the libtool file
4100  if test x$AUTOTOOLS_DIR = x; then
4101    want_dir=$AUTOTOOLS_DFLT/share
4102  else
4103    want_dir=$AUTOTOOLS_DIR/share
4104  fi
4105  if test -r $want_dir/aclocal/libtool.m4; then
4106  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4107  :
4108else
4109  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4110echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4111   { (exit 1); exit 1; }; }
4112  :
4113fi
4114
4115
4116  # Check if we have an Dependencies file
4117  if test -r $srcdir/Dependencies; then
4118    coin_have_externals=yes
4119  fi
4120  # Check if subversion is installed and understands https
4121  # Extract the first word of "svn", so it can be a program name with args.
4122set dummy svn; ac_word=$2
4123echo "$as_me:$LINENO: checking for $ac_word" >&5
4124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125if test "${ac_cv_prog_have_svn+set}" = set; then
4126  echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128  if test -n "$have_svn"; then
4129  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4130else
4131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132for as_dir in $PATH
4133do
4134  IFS=$as_save_IFS
4135  test -z "$as_dir" && as_dir=.
4136  for ac_exec_ext in '' $ac_executable_extensions; do
4137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138    ac_cv_prog_have_svn="yes"
4139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140    break 2
4141  fi
4142done
4143done
4144
4145  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4146fi
4147fi
4148have_svn=$ac_cv_prog_have_svn
4149if test -n "$have_svn"; then
4150  echo "$as_me:$LINENO: result: $have_svn" >&5
4151echo "${ECHO_T}$have_svn" >&6
4152else
4153  echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156
4157  if test x$have_svn = xyes; then
4158    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4159echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4160if test "${ac_cv_svn_understands_https+set}" = set; then
4161  echo $ECHO_N "(cached) $ECHO_C" >&6
4162else
4163  svn --version > confauto.out 2>&1
4164                    if $EGREP https confauto.out >/dev/null 2>&1; then
4165                      ac_cv_svn_understands_https=yes
4166                    else
4167                      ac_cv_svn_understands_https=no
4168                      have_svn=no
4169                      ac_cv_prog_have_svn=no
4170                    fi
4171                    rm -f confauto.out
4172fi
4173echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4174echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4175  fi
4176
4177  # Find the location of the BuildTools directory
4178  BUILDTOOLSDIR=
4179  if test -r $srcdir/BuildTools/coin.m4; then
4180    BUILDTOOLSDIR=$srcdir/BuildTools
4181  else
4182    if test -r $srcdir/../BuildTools/coin.m4; then
4183      BUILDTOOLSDIR=$srcdir/../BuildTools
4184    else
4185      if test -r $srcdir/../../BuildTools/coin.m4; then
4186        BUILDTOOLSDIR=$srcdir/../../BuildTools
4187      else
4188        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4189echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4190   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4191      fi
4192    fi
4193  fi
4194
4195
4196  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4197  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4198    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4199  fi
4200
4201  # The following variable is set to the name of the directory where
4202  # the autotool scripts are located
4203
4204  AUX_DIR=$ac_aux_dir
4205fi
4206
4207# helpful variable for the base directory of this package
4208abs_source_dir=`cd $srcdir; pwd`
4209
4210
4211# Stuff for example Makefiles
4212if test x$prefix = xNONE; then
4213  full_prefix=$ac_default_prefix
4214else
4215  full_prefix=$prefix
4216fi
4217full_prefix=`cd $full_prefix ; pwd`
4218
4219abs_lib_dir=$full_prefix/lib
4220
4221abs_include_dir=$full_prefix/include
4222
4223abs_bin_dir=$full_prefix/bin
4224
4225
4226
4227if test $coin_have_externals = yes && test x$have_svn = xyes; then
4228  HAVE_EXTERNALS_TRUE=
4229  HAVE_EXTERNALS_FALSE='#'
4230else
4231  HAVE_EXTERNALS_TRUE='#'
4232  HAVE_EXTERNALS_FALSE=
4233fi
4234
4235
4236# AC_MSG_NOTICE([End automake initialisation.])
4237
4238
4239
4240LIBTOOL=
4241if test -f ../libtool; then
4242  coin_config_dir=..
4243  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4244fi
4245if test "x$LIBTOOL" = x; then
4246  if test -f ../../libtool; then
4247    coin_config_dir=../..
4248    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4249  fi
4250fi
4251
4252if test "x$LIBTOOL" = x; then
4253# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4254  # Stuff for libtool
4255  # Check whether --enable-shared or --disable-shared was given.
4256if test "${enable_shared+set}" = set; then
4257  enableval="$enable_shared"
4258  p=${PACKAGE-default}
4259    case $enableval in
4260    yes) enable_shared=yes ;;
4261    no) enable_shared=no ;;
4262    *)
4263      enable_shared=no
4264      # Look at the argument we got.  We use all the common list separators.
4265      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4266      for pkg in $enableval; do
4267        IFS="$lt_save_ifs"
4268        if test "X$pkg" = "X$p"; then
4269          enable_shared=yes
4270        fi
4271      done
4272      IFS="$lt_save_ifs"
4273      ;;
4274    esac
4275else
4276  enable_shared=yes
4277fi;
4278
4279# Check whether --enable-fast-install or --disable-fast-install was given.
4280if test "${enable_fast_install+set}" = set; then
4281  enableval="$enable_fast_install"
4282  p=${PACKAGE-default}
4283    case $enableval in
4284    yes) enable_fast_install=yes ;;
4285    no) enable_fast_install=no ;;
4286    *)
4287      enable_fast_install=no
4288      # Look at the argument we got.  We use all the common list separators.
4289      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4290      for pkg in $enableval; do
4291        IFS="$lt_save_ifs"
4292        if test "X$pkg" = "X$p"; then
4293          enable_fast_install=yes
4294        fi
4295      done
4296      IFS="$lt_save_ifs"
4297      ;;
4298    esac
4299else
4300  enable_fast_install=yes
4301fi;
4302
4303echo "$as_me:$LINENO: checking host system type" >&5
4304echo $ECHO_N "checking host system type... $ECHO_C" >&6
4305if test "${ac_cv_host+set}" = set; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  ac_cv_host_alias=$host_alias
4309test -z "$ac_cv_host_alias" &&
4310  ac_cv_host_alias=$ac_cv_build_alias
4311ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4312  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4313echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4314   { (exit 1); exit 1; }; }
4315
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4318echo "${ECHO_T}$ac_cv_host" >&6
4319host=$ac_cv_host
4320host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4321host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4322host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4323
4324
4325echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4326echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4327if test "${lt_cv_path_SED+set}" = set; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  # Loop through the user's path and test for sed and gsed.
4331# Then use that list of sed's as ones to test for truncation.
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337  for lt_ac_prog in sed gsed; do
4338    for ac_exec_ext in '' $ac_executable_extensions; do
4339      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4340        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4341      fi
4342    done
4343  done
4344done
4345lt_ac_max=0
4346lt_ac_count=0
4347# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4348# along with /bin/sed that truncates output.
4349for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4350  test ! -f $lt_ac_sed && continue
4351  cat /dev/null > conftest.in
4352  lt_ac_count=0
4353  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4354  # Check for GNU sed and select it if it is found.
4355  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4356    lt_cv_path_SED=$lt_ac_sed
4357    break
4358  fi
4359  while true; do
4360    cat conftest.in conftest.in >conftest.tmp
4361    mv conftest.tmp conftest.in
4362    cp conftest.in conftest.nl
4363    echo >>conftest.nl
4364    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4365    cmp -s conftest.out conftest.nl || break
4366    # 10000 chars as input seems more than enough
4367    test $lt_ac_count -gt 10 && break
4368    lt_ac_count=`expr $lt_ac_count + 1`
4369    if test $lt_ac_count -gt $lt_ac_max; then
4370      lt_ac_max=$lt_ac_count
4371      lt_cv_path_SED=$lt_ac_sed
4372    fi
4373  done
4374done
4375
4376fi
4377
4378SED=$lt_cv_path_SED
4379echo "$as_me:$LINENO: result: $SED" >&5
4380echo "${ECHO_T}$SED" >&6
4381
4382
4383# Check whether --with-gnu-ld or --without-gnu-ld was given.
4384if test "${with_gnu_ld+set}" = set; then
4385  withval="$with_gnu_ld"
4386  test "$withval" = no || with_gnu_ld=yes
4387else
4388  with_gnu_ld=no
4389fi;
4390ac_prog=ld
4391if test "$GCC" = yes; then
4392  # Check if gcc -print-prog-name=ld gives a path.
4393  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4394echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4395  case $host in
4396  *-*-mingw*)
4397    # gcc leaves a trailing carriage return which upsets mingw
4398    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4399  *)
4400    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4401  esac
4402  case $ac_prog in
4403    # Accept absolute paths.
4404    [\\/]* | ?:[\\/]*)
4405      re_direlt='/[^/][^/]*/\.\./'
4406      # Canonicalize the pathname of ld
4407      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4408      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4409        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4410      done
4411      test -z "$LD" && LD="$ac_prog"
4412      ;;
4413  "")
4414    # If it fails, then pretend we aren't using GCC.
4415    ac_prog=ld
4416    ;;
4417  *)
4418    # If it is relative, then search for the first ld in PATH.
4419    with_gnu_ld=unknown
4420    ;;
4421  esac
4422elif test "$with_gnu_ld" = yes; then
4423  echo "$as_me:$LINENO: checking for GNU ld" >&5
4424echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4425else
4426  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4427echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4428fi
4429if test "${lt_cv_path_LD+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  if test -z "$LD"; then
4433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4434  for ac_dir in $PATH; do
4435    IFS="$lt_save_ifs"
4436    test -z "$ac_dir" && ac_dir=.
4437    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4438      lt_cv_path_LD="$ac_dir/$ac_prog"
4439      # Check to see if the program is GNU ld.  I'd rather use --version,
4440      # but apparently some variants of GNU ld only accept -v.
4441      # Break only if it was the GNU/non-GNU ld that we prefer.
4442      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4443      *GNU* | *'with BFD'*)
4444        test "$with_gnu_ld" != no && break
4445        ;;
4446      *)
4447        test "$with_gnu_ld" != yes && break
4448        ;;
4449      esac
4450    fi
4451  done
4452  IFS="$lt_save_ifs"
4453else
4454  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4455fi
4456fi
4457
4458LD="$lt_cv_path_LD"
4459if test -n "$LD"; then
4460  echo "$as_me:$LINENO: result: $LD" >&5
4461echo "${ECHO_T}$LD" >&6
4462else
4463  echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465fi
4466test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4467echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4468   { (exit 1); exit 1; }; }
4469echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4470echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4471if test "${lt_cv_prog_gnu_ld+set}" = set; then
4472  echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4475case `$LD -v 2>&1 </dev/null` in
4476*GNU* | *'with BFD'*)
4477  lt_cv_prog_gnu_ld=yes
4478  ;;
4479*)
4480  lt_cv_prog_gnu_ld=no
4481  ;;
4482esac
4483fi
4484echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4485echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4486with_gnu_ld=$lt_cv_prog_gnu_ld
4487
4488
4489echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4490echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4491if test "${lt_cv_ld_reload_flag+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  lt_cv_ld_reload_flag='-r'
4495fi
4496echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4497echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4498reload_flag=$lt_cv_ld_reload_flag
4499case $reload_flag in
4500"" | " "*) ;;
4501*) reload_flag=" $reload_flag" ;;
4502esac
4503reload_cmds='$LD$reload_flag -o $output$reload_objs'
4504case $host_os in
4505  darwin*)
4506    if test "$GCC" = yes; then
4507      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4508    else
4509      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4510    fi
4511    ;;
4512esac
4513
4514echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4515echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4516if test "${lt_cv_path_NM+set}" = set; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  if test -n "$NM"; then
4520  # Let the user override the test.
4521  lt_cv_path_NM="$NM"
4522else
4523  lt_nm_to_check="${ac_tool_prefix}nm"
4524  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4525    lt_nm_to_check="$lt_nm_to_check nm"
4526  fi
4527  for lt_tmp_nm in $lt_nm_to_check; do
4528    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4529    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4530      IFS="$lt_save_ifs"
4531      test -z "$ac_dir" && ac_dir=.
4532      tmp_nm="$ac_dir/$lt_tmp_nm"
4533      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4534        # Check to see if the nm accepts a BSD-compat flag.
4535        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4536        #   nm: unknown option "B" ignored
4537        # Tru64's nm complains that /dev/null is an invalid object file
4538        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4539        */dev/null* | *'Invalid file or object type'*)
4540          lt_cv_path_NM="$tmp_nm -B"
4541          break
4542          ;;
4543        *)
4544          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4545          */dev/null*)
4546            lt_cv_path_NM="$tmp_nm -p"
4547            break
4548            ;;
4549          *)
4550            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4551            continue # so that we can try to find one that supports BSD flags
4552            ;;
4553          esac
4554          ;;
4555        esac
4556      fi
4557    done
4558    IFS="$lt_save_ifs"
4559  done
4560  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4561fi
4562fi
4563echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4564echo "${ECHO_T}$lt_cv_path_NM" >&6
4565NM="$lt_cv_path_NM"
4566
4567echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4568echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4569if test "${lt_cv_deplibs_check_method+set}" = set; then
4570  echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572  lt_cv_file_magic_cmd='$MAGIC_CMD'
4573lt_cv_file_magic_test_file=
4574lt_cv_deplibs_check_method='unknown'
4575# Need to set the preceding variable on all platforms that support
4576# interlibrary dependencies.
4577# 'none' -- dependencies not supported.
4578# `unknown' -- same as none, but documents that we really don't know.
4579# 'pass_all' -- all dependencies passed with no checks.
4580# 'test_compile' -- check by making test program.
4581# 'file_magic [[regex]]' -- check by looking for files in library path
4582# which responds to the $file_magic_cmd with a given extended regex.
4583# If you have `file' or equivalent on your system and you're not sure
4584# whether `pass_all' will *always* work, you probably want this one.
4585
4586case $host_os in
4587aix4* | aix5*)
4588  lt_cv_deplibs_check_method=pass_all
4589  ;;
4590
4591beos*)
4592  lt_cv_deplibs_check_method=pass_all
4593  ;;
4594
4595bsdi[45]*)
4596  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4597  lt_cv_file_magic_cmd='/usr/bin/file -L'
4598  lt_cv_file_magic_test_file=/shlib/libc.so
4599  ;;
4600
4601cygwin*)
4602  # func_win32_libid is a shell function defined in ltmain.sh
4603  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4604  lt_cv_file_magic_cmd='func_win32_libid'
4605  ;;
4606
4607mingw* | pw32*)
4608  # Base MSYS/MinGW do not provide the 'file' command needed by
4609  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4610  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4611  lt_cv_file_magic_cmd='$OBJDUMP -f'
4612  ;;
4613
4614darwin* | rhapsody*)
4615  lt_cv_deplibs_check_method=pass_all
4616  ;;
4617
4618freebsd* | kfreebsd*-gnu | dragonfly*)
4619  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4620    case $host_cpu in
4621    i*86 )
4622      # Not sure whether the presence of OpenBSD here was a mistake.
4623      # Let's accept both of them until this is cleared up.
4624      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4625      lt_cv_file_magic_cmd=/usr/bin/file
4626      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4627      ;;
4628    esac
4629  else
4630    lt_cv_deplibs_check_method=pass_all
4631  fi
4632  ;;
4633
4634gnu*)
4635  lt_cv_deplibs_check_method=pass_all
4636  ;;
4637
4638hpux10.20* | hpux11*)
4639  lt_cv_file_magic_cmd=/usr/bin/file
4640  case $host_cpu in
4641  ia64*)
4642    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4643    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4644    ;;
4645  hppa*64*)
4646    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]'
4647    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4648    ;;
4649  *)
4650    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4651    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4652    ;;
4653  esac
4654  ;;
4655
4656interix3*)
4657  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4658  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4659  ;;
4660
4661irix5* | irix6* | nonstopux*)
4662  case $LD in
4663  *-32|*"-32 ") libmagic=32-bit;;
4664  *-n32|*"-n32 ") libmagic=N32;;
4665  *-64|*"-64 ") libmagic=64-bit;;
4666  *) libmagic=never-match;;
4667  esac
4668  lt_cv_deplibs_check_method=pass_all
4669  ;;
4670
4671# This must be Linux ELF.
4672linux*)
4673  lt_cv_deplibs_check_method=pass_all
4674  ;;
4675
4676netbsd*)
4677  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4678    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4679  else
4680    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4681  fi
4682  ;;
4683
4684newos6*)
4685  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4686  lt_cv_file_magic_cmd=/usr/bin/file
4687  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4688  ;;
4689
4690nto-qnx*)
4691  lt_cv_deplibs_check_method=unknown
4692  ;;
4693
4694openbsd*)
4695  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4696    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4697  else
4698    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4699  fi
4700  ;;
4701
4702osf3* | osf4* | osf5*)
4703  lt_cv_deplibs_check_method=pass_all
4704  ;;
4705
4706solaris*)
4707  lt_cv_deplibs_check_method=pass_all
4708  ;;
4709
4710sysv4 | sysv4.3*)
4711  case $host_vendor in
4712  motorola)
4713    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]'
4714    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4715    ;;
4716  ncr)
4717    lt_cv_deplibs_check_method=pass_all
4718    ;;
4719  sequent)
4720    lt_cv_file_magic_cmd='/bin/file'
4721    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4722    ;;
4723  sni)
4724    lt_cv_file_magic_cmd='/bin/file'
4725    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4726    lt_cv_file_magic_test_file=/lib/libc.so
4727    ;;
4728  siemens)
4729    lt_cv_deplibs_check_method=pass_all
4730    ;;
4731  pc)
4732    lt_cv_deplibs_check_method=pass_all
4733    ;;
4734  esac
4735  ;;
4736
4737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4738  lt_cv_deplibs_check_method=pass_all
4739  ;;
4740esac
4741
4742fi
4743echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4744echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4745file_magic_cmd=$lt_cv_file_magic_cmd
4746deplibs_check_method=$lt_cv_deplibs_check_method
4747test -z "$deplibs_check_method" && deplibs_check_method=unknown
4748
4749
4750
4751
4752# If no C compiler was specified, use CC.
4753LTCC=${LTCC-"$CC"}
4754
4755# If no C compiler flags were specified, use CFLAGS.
4756LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4757
4758# Allow CC to be a program name with arguments.
4759compiler=$CC
4760
4761# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4762if test "${enable_libtool_lock+set}" = set; then
4763  enableval="$enable_libtool_lock"
4764
4765fi;
4766test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4767
4768# Some flags need to be propagated to the compiler or linker for good
4769# libtool support.
4770case $host in
4771ia64-*-hpux*)
4772  # Find out which ABI we are using.
4773  echo 'int i;' > conftest.$ac_ext
4774  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775  (eval $ac_compile) 2>&5
4776  ac_status=$?
4777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778  (exit $ac_status); }; then
4779    case `/usr/bin/file conftest.$ac_objext` in
4780    *ELF-32*)
4781      HPUX_IA64_MODE="32"
4782      ;;
4783    *ELF-64*)
4784      HPUX_IA64_MODE="64"
4785      ;;
4786    esac
4787  fi
4788  rm -rf conftest*
4789  ;;
4790*-*-irix6*)
4791  # Find out which ABI we are using.
4792  echo '#line 4792 "configure"' > conftest.$ac_ext
4793  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794  (eval $ac_compile) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; then
4798   if test "$lt_cv_prog_gnu_ld" = yes; then
4799    case `/usr/bin/file conftest.$ac_objext` in
4800    *32-bit*)
4801      LD="${LD-ld} -melf32bsmip"
4802      ;;
4803    *N32*)
4804      LD="${LD-ld} -melf32bmipn32"
4805      ;;
4806    *64-bit*)
4807      LD="${LD-ld} -melf64bmip"
4808      ;;
4809    esac
4810   else
4811    case `/usr/bin/file conftest.$ac_objext` in
4812    *32-bit*)
4813      LD="${LD-ld} -32"
4814      ;;
4815    *N32*)
4816      LD="${LD-ld} -n32"
4817      ;;
4818    *64-bit*)
4819      LD="${LD-ld} -64"
4820      ;;
4821    esac
4822   fi
4823  fi
4824  rm -rf conftest*
4825  ;;
4826
4827x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4828  # Find out which ABI we are using.
4829  echo 'int i;' > conftest.$ac_ext
4830  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831  (eval $ac_compile) 2>&5
4832  ac_status=$?
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); }; then
4835    case `/usr/bin/file conftest.o` in
4836    *32-bit*)
4837      case $host in
4838        x86_64-*linux*)
4839          LD="${LD-ld} -m elf_i386"
4840          ;;
4841        ppc64-*linux*|powerpc64-*linux*)
4842          LD="${LD-ld} -m elf32ppclinux"
4843          ;;
4844        s390x-*linux*)
4845          LD="${LD-ld} -m elf_s390"
4846          ;;
4847        sparc64-*linux*)
4848          LD="${LD-ld} -m elf32_sparc"
4849          ;;
4850      esac
4851      ;;
4852    *64-bit*)
4853      case $host in
4854        x86_64-*linux*)
4855          LD="${LD-ld} -m elf_x86_64"
4856          ;;
4857        ppc*-*linux*|powerpc*-*linux*)
4858          LD="${LD-ld} -m elf64ppc"
4859          ;;
4860        s390*-*linux*)
4861          LD="${LD-ld} -m elf64_s390"
4862          ;;
4863        sparc*-*linux*)
4864          LD="${LD-ld} -m elf64_sparc"
4865          ;;
4866      esac
4867      ;;
4868    esac
4869  fi
4870  rm -rf conftest*
4871  ;;
4872
4873*-*-sco3.2v5*)
4874  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4875  SAVE_CFLAGS="$CFLAGS"
4876  CFLAGS="$CFLAGS -belf"
4877  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4878echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4879if test "${lt_cv_cc_needs_belf+set}" = set; then
4880  echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882  ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887
4888     cat >conftest.$ac_ext <<_ACEOF
4889/* confdefs.h.  */
4890_ACEOF
4891cat confdefs.h >>conftest.$ac_ext
4892cat >>conftest.$ac_ext <<_ACEOF
4893/* end confdefs.h.  */
4894
4895int
4896main ()
4897{
4898
4899  ;
4900  return 0;
4901}
4902_ACEOF
4903rm -f conftest.$ac_objext conftest$ac_exeext
4904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905  (eval $ac_link) 2>conftest.er1
4906  ac_status=$?
4907  grep -v '^ *+' conftest.er1 >conftest.err
4908  rm -f conftest.er1
4909  cat conftest.err >&5
4910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911  (exit $ac_status); } &&
4912         { ac_try='test -z "$ac_c_werror_flag"
4913                         || test ! -s conftest.err'
4914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915  (eval $ac_try) 2>&5
4916  ac_status=$?
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); }; } &&
4919         { ac_try='test -s conftest$ac_exeext'
4920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921  (eval $ac_try) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; }; then
4925  lt_cv_cc_needs_belf=yes
4926else
4927  echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
4930lt_cv_cc_needs_belf=no
4931fi
4932rm -f conftest.err conftest.$ac_objext \
4933      conftest$ac_exeext conftest.$ac_ext
4934     ac_ext=c
4935ac_cpp='$CPP $CPPFLAGS'
4936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940fi
4941echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4942echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4943  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4944    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4945    CFLAGS="$SAVE_CFLAGS"
4946  fi
4947  ;;
4948sparc*-*solaris*)
4949  # Find out which ABI we are using.
4950  echo 'int i;' > conftest.$ac_ext
4951  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952  (eval $ac_compile) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; then
4956    case `/usr/bin/file conftest.o` in
4957    *64-bit*)
4958      case $lt_cv_prog_gnu_ld in
4959      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4960      *)    LD="${LD-ld} -64" ;;
4961      esac
4962      ;;
4963    esac
4964  fi
4965  rm -rf conftest*
4966  ;;
4967
4968
4969esac
4970
4971need_locks="$enable_libtool_lock"
4972
4973
4974ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4980echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4981# On Suns, sometimes $CPP names a directory.
4982if test -n "$CPP" && test -d "$CPP"; then
4983  CPP=
4984fi
4985if test -z "$CPP"; then
4986  if test "${ac_cv_prog_CPP+set}" = set; then
4987  echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989      # Double quotes because CPP needs to be expanded
4990    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4991    do
4992      ac_preproc_ok=false
4993for ac_c_preproc_warn_flag in '' yes
4994do
4995  # Use a header file that comes with gcc, so configuring glibc
4996  # with a fresh cross-compiler works.
4997  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4998  # <limits.h> exists even on freestanding compilers.
4999  # On the NeXT, cc -E runs the code through the compiler's parser,
5000  # not just through cpp. "Syntax error" is here to catch this case.
5001  cat >conftest.$ac_ext <<_ACEOF
5002/* confdefs.h.  */
5003_ACEOF
5004cat confdefs.h >>conftest.$ac_ext
5005cat >>conftest.$ac_ext <<_ACEOF
5006/* end confdefs.h.  */
5007#ifdef __STDC__
5008# include <limits.h>
5009#else
5010# include <assert.h>
5011#endif
5012                     Syntax error
5013_ACEOF
5014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5016  ac_status=$?
5017  grep -v '^ *+' conftest.er1 >conftest.err
5018  rm -f conftest.er1
5019  cat conftest.err >&5
5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021  (exit $ac_status); } >/dev/null; then
5022  if test -s conftest.err; then
5023    ac_cpp_err=$ac_c_preproc_warn_flag
5024    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5025  else
5026    ac_cpp_err=
5027  fi
5028else
5029  ac_cpp_err=yes
5030fi
5031if test -z "$ac_cpp_err"; then
5032  :
5033else
5034  echo "$as_me: failed program was:" >&5
5035sed 's/^/| /' conftest.$ac_ext >&5
5036
5037  # Broken: fails on valid input.
5038continue
5039fi
5040rm -f conftest.err conftest.$ac_ext
5041
5042  # OK, works on sane cases.  Now check whether non-existent headers
5043  # can be detected and how.
5044  cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h.  */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h.  */
5050#include <ac_nonexistent.h>
5051_ACEOF
5052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054  ac_status=$?
5055  grep -v '^ *+' conftest.er1 >conftest.err
5056  rm -f conftest.er1
5057  cat conftest.err >&5
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); } >/dev/null; then
5060  if test -s conftest.err; then
5061    ac_cpp_err=$ac_c_preproc_warn_flag
5062    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5063  else
5064    ac_cpp_err=
5065  fi
5066else
5067  ac_cpp_err=yes
5068fi
5069if test -z "$ac_cpp_err"; then
5070  # Broken: success on invalid input.
5071continue
5072else
5073  echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076  # Passes both tests.
5077ac_preproc_ok=:
5078break
5079fi
5080rm -f conftest.err conftest.$ac_ext
5081
5082done
5083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084rm -f conftest.err conftest.$ac_ext
5085if $ac_preproc_ok; then
5086  break
5087fi
5088
5089    done
5090    ac_cv_prog_CPP=$CPP
5091
5092fi
5093  CPP=$ac_cv_prog_CPP
5094else
5095  ac_cv_prog_CPP=$CPP
5096fi
5097echo "$as_me:$LINENO: result: $CPP" >&5
5098echo "${ECHO_T}$CPP" >&6
5099ac_preproc_ok=false
5100for ac_c_preproc_warn_flag in '' yes
5101do
5102  # Use a header file that comes with gcc, so configuring glibc
5103  # with a fresh cross-compiler works.
5104  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5105  # <limits.h> exists even on freestanding compilers.
5106  # On the NeXT, cc -E runs the code through the compiler's parser,
5107  # not just through cpp. "Syntax error" is here to catch this case.
5108  cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h.  */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h.  */
5114#ifdef __STDC__
5115# include <limits.h>
5116#else
5117# include <assert.h>
5118#endif
5119                     Syntax error
5120_ACEOF
5121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123  ac_status=$?
5124  grep -v '^ *+' conftest.er1 >conftest.err
5125  rm -f conftest.er1
5126  cat conftest.err >&5
5127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128  (exit $ac_status); } >/dev/null; then
5129  if test -s conftest.err; then
5130    ac_cpp_err=$ac_c_preproc_warn_flag
5131    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5132  else
5133    ac_cpp_err=
5134  fi
5135else
5136  ac_cpp_err=yes
5137fi
5138if test -z "$ac_cpp_err"; then
5139  :
5140else
5141  echo "$as_me: failed program was:" >&5
5142sed 's/^/| /' conftest.$ac_ext >&5
5143
5144  # Broken: fails on valid input.
5145continue
5146fi
5147rm -f conftest.err conftest.$ac_ext
5148
5149  # OK, works on sane cases.  Now check whether non-existent headers
5150  # can be detected and how.
5151  cat >conftest.$ac_ext <<_ACEOF
5152/* confdefs.h.  */
5153_ACEOF
5154cat confdefs.h >>conftest.$ac_ext
5155cat >>conftest.$ac_ext <<_ACEOF
5156/* end confdefs.h.  */
5157#include <ac_nonexistent.h>
5158_ACEOF
5159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5160  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5161  ac_status=$?
5162  grep -v '^ *+' conftest.er1 >conftest.err
5163  rm -f conftest.er1
5164  cat conftest.err >&5
5165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166  (exit $ac_status); } >/dev/null; then
5167  if test -s conftest.err; then
5168    ac_cpp_err=$ac_c_preproc_warn_flag
5169    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5170  else
5171    ac_cpp_err=
5172  fi
5173else
5174  ac_cpp_err=yes
5175fi
5176if test -z "$ac_cpp_err"; then
5177  # Broken: success on invalid input.
5178continue
5179else
5180  echo "$as_me: failed program was:" >&5
5181sed 's/^/| /' conftest.$ac_ext >&5
5182
5183  # Passes both tests.
5184ac_preproc_ok=:
5185break
5186fi
5187rm -f conftest.err conftest.$ac_ext
5188
5189done
5190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5191rm -f conftest.err conftest.$ac_ext
5192if $ac_preproc_ok; then
5193  :
5194else
5195  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5196See \`config.log' for more details." >&5
5197echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5198See \`config.log' for more details." >&2;}
5199   { (exit 1); exit 1; }; }
5200fi
5201
5202ac_ext=c
5203ac_cpp='$CPP $CPPFLAGS'
5204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207
5208
5209echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5211if test "${ac_cv_header_stdc+set}" = set; then
5212  echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214  cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h.  */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h.  */
5220#include <stdlib.h>
5221#include <stdarg.h>
5222#include <string.h>
5223#include <float.h>
5224
5225int
5226main ()
5227{
5228
5229  ;
5230  return 0;
5231}
5232_ACEOF
5233rm -f conftest.$ac_objext
5234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235  (eval $ac_compile) 2>conftest.er1
5236  ac_status=$?
5237  grep -v '^ *+' conftest.er1 >conftest.err
5238  rm -f conftest.er1
5239  cat conftest.err >&5
5240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241  (exit $ac_status); } &&
5242         { ac_try='test -z "$ac_c_werror_flag"
5243                         || test ! -s conftest.err'
5244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245  (eval $ac_try) 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }; } &&
5249         { ac_try='test -s conftest.$ac_objext'
5250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251  (eval $ac_try) 2>&5
5252  ac_status=$?
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); }; }; then
5255  ac_cv_header_stdc=yes
5256else
5257  echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
5260ac_cv_header_stdc=no
5261fi
5262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263
5264if test $ac_cv_header_stdc = yes; then
5265  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266  cat >conftest.$ac_ext <<_ACEOF
5267/* confdefs.h.  */
5268_ACEOF
5269cat confdefs.h >>conftest.$ac_ext
5270cat >>conftest.$ac_ext <<_ACEOF
5271/* end confdefs.h.  */
5272#include <string.h>
5273
5274_ACEOF
5275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276  $EGREP "memchr" >/dev/null 2>&1; then
5277  :
5278else
5279  ac_cv_header_stdc=no
5280fi
5281rm -f conftest*
5282
5283fi
5284
5285if test $ac_cv_header_stdc = yes; then
5286  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287  cat >conftest.$ac_ext <<_ACEOF
5288/* confdefs.h.  */
5289_ACEOF
5290cat confdefs.h >>conftest.$ac_ext
5291cat >>conftest.$ac_ext <<_ACEOF
5292/* end confdefs.h.  */
5293#include <stdlib.h>
5294
5295_ACEOF
5296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297  $EGREP "free" >/dev/null 2>&1; then
5298  :
5299else
5300  ac_cv_header_stdc=no
5301fi
5302rm -f conftest*
5303
5304fi
5305
5306if test $ac_cv_header_stdc = yes; then
5307  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308  if test "$cross_compiling" = yes; then
5309  :
5310else
5311  cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317#include <ctype.h>
5318#if ((' ' & 0x0FF) == 0x020)
5319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5321#else
5322# define ISLOWER(c) \
5323                   (('a' <= (c) && (c) <= 'i') \
5324                     || ('j' <= (c) && (c) <= 'r') \
5325                     || ('s' <= (c) && (c) <= 'z'))
5326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5327#endif
5328
5329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330int
5331main ()
5332{
5333  int i;
5334  for (i = 0; i < 256; i++)
5335    if (XOR (islower (i), ISLOWER (i))
5336        || toupper (i) != TOUPPER (i))
5337      exit(2);
5338  exit (0);
5339}
5340_ACEOF
5341rm -f conftest$ac_exeext
5342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343  (eval $ac_link) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348  (eval $ac_try) 2>&5
5349  ac_status=$?
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); }; }; then
5352  :
5353else
5354  echo "$as_me: program exited with status $ac_status" >&5
5355echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358( exit $ac_status )
5359ac_cv_header_stdc=no
5360fi
5361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5362fi
5363fi
5364fi
5365echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5366echo "${ECHO_T}$ac_cv_header_stdc" >&6
5367if test $ac_cv_header_stdc = yes; then
5368
5369cat >>confdefs.h <<\_ACEOF
5370#define STDC_HEADERS 1
5371_ACEOF
5372
5373fi
5374
5375# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5386                  inttypes.h stdint.h unistd.h
5387do
5388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5389echo "$as_me:$LINENO: checking for $ac_header" >&5
5390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5391if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392  echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394  cat >conftest.$ac_ext <<_ACEOF
5395/* confdefs.h.  */
5396_ACEOF
5397cat confdefs.h >>conftest.$ac_ext
5398cat >>conftest.$ac_ext <<_ACEOF
5399/* end confdefs.h.  */
5400$ac_includes_default
5401
5402#include <$ac_header>
5403_ACEOF
5404rm -f conftest.$ac_objext
5405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406  (eval $ac_compile) 2>conftest.er1
5407  ac_status=$?
5408  grep -v '^ *+' conftest.er1 >conftest.err
5409  rm -f conftest.er1
5410  cat conftest.err >&5
5411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412  (exit $ac_status); } &&
5413         { ac_try='test -z "$ac_c_werror_flag"
5414                         || test ! -s conftest.err'
5415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416  (eval $ac_try) 2>&5
5417  ac_status=$?
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); }; } &&
5420         { ac_try='test -s conftest.$ac_objext'
5421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422  (eval $ac_try) 2>&5
5423  ac_status=$?
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); }; }; then
5426  eval "$as_ac_Header=yes"
5427else
5428  echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431eval "$as_ac_Header=no"
5432fi
5433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434fi
5435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5437if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438  cat >>confdefs.h <<_ACEOF
5439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440_ACEOF
5441
5442fi
5443
5444done
5445
5446
5447
5448for ac_header in dlfcn.h
5449do
5450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5451if eval "test \"\${$as_ac_Header+set}\" = set"; then
5452  echo "$as_me:$LINENO: checking for $ac_header" >&5
5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5454if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456fi
5457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5459else
5460  # Is the header compilable?
5461echo "$as_me:$LINENO: checking $ac_header usability" >&5
5462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5463cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469$ac_includes_default
5470#include <$ac_header>
5471_ACEOF
5472rm -f conftest.$ac_objext
5473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474  (eval $ac_compile) 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } &&
5481         { ac_try='test -z "$ac_c_werror_flag"
5482                         || test ! -s conftest.err'
5483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484  (eval $ac_try) 2>&5
5485  ac_status=$?
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; } &&
5488         { ac_try='test -s conftest.$ac_objext'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; }; then
5494  ac_header_compiler=yes
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499ac_header_compiler=no
5500fi
5501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5503echo "${ECHO_T}$ac_header_compiler" >&6
5504
5505# Is the header present?
5506echo "$as_me:$LINENO: checking $ac_header presence" >&5
5507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5508cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h.  */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h.  */
5514#include <$ac_header>
5515_ACEOF
5516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } >/dev/null; then
5524  if test -s conftest.err; then
5525    ac_cpp_err=$ac_c_preproc_warn_flag
5526    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5527  else
5528    ac_cpp_err=
5529  fi
5530else
5531  ac_cpp_err=yes
5532fi
5533if test -z "$ac_cpp_err"; then
5534  ac_header_preproc=yes
5535else
5536  echo "$as_me: failed program was:" >&5
5537sed 's/^/| /' conftest.$ac_ext >&5
5538
5539  ac_header_preproc=no
5540fi
5541rm -f conftest.err conftest.$ac_ext
5542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5543echo "${ECHO_T}$ac_header_preproc" >&6
5544
5545# So?  What about this header?
5546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5547  yes:no: )
5548    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5550    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5552    ac_header_preproc=yes
5553    ;;
5554  no:yes:* )
5555    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5557    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5558echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5559    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5561    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5562echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5563    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5567    (
5568      cat <<\_ASBOX
5569## --------------------------------------------------------------- ##
5570## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5571## --------------------------------------------------------------- ##
5572_ASBOX
5573    ) |
5574      sed "s/^/$as_me: WARNING:     /" >&2
5575    ;;
5576esac
5577echo "$as_me:$LINENO: checking for $ac_header" >&5
5578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5579if eval "test \"\${$as_ac_Header+set}\" = set"; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  eval "$as_ac_Header=\$ac_header_preproc"
5583fi
5584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586
5587fi
5588if test `eval echo '${'$as_ac_Header'}'` = yes; then
5589  cat >>confdefs.h <<_ACEOF
5590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5591_ACEOF
5592
5593fi
5594
5595done
5596
5597ac_ext=cc
5598ac_cpp='$CXXCPP $CPPFLAGS'
5599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5602if test -n "$ac_tool_prefix"; then
5603  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5604  do
5605    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_CXX+set}" = set; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  if test -n "$CXX"; then
5613  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618  IFS=$as_save_IFS
5619  test -z "$as_dir" && as_dir=.
5620  for ac_exec_ext in '' $ac_executable_extensions; do
5621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624    break 2
5625  fi
5626done
5627done
5628
5629fi
5630fi
5631CXX=$ac_cv_prog_CXX
5632if test -n "$CXX"; then
5633  echo "$as_me:$LINENO: result: $CXX" >&5
5634echo "${ECHO_T}$CXX" >&6
5635else
5636  echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640    test -n "$CXX" && break
5641  done
5642fi
5643if test -z "$CXX"; then
5644  ac_ct_CXX=$CXX
5645  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5646do
5647  # Extract the first word of "$ac_prog", so it can be a program name with args.
5648set dummy $ac_prog; ac_word=$2
5649echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5652  echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654  if test -n "$ac_ct_CXX"; then
5655  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660  IFS=$as_save_IFS
5661  test -z "$as_dir" && as_dir=.
5662  for ac_exec_ext in '' $ac_executable_extensions; do
5663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664    ac_cv_prog_ac_ct_CXX="$ac_prog"
5665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666    break 2
5667  fi
5668done
5669done
5670
5671fi
5672fi
5673ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5674if test -n "$ac_ct_CXX"; then
5675  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5676echo "${ECHO_T}$ac_ct_CXX" >&6
5677else
5678  echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
5681
5682  test -n "$ac_ct_CXX" && break
5683done
5684test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5685
5686  CXX=$ac_ct_CXX
5687fi
5688
5689
5690# Provide some information about the compiler.
5691echo "$as_me:$LINENO:" \
5692     "checking for C++ compiler version" >&5
5693ac_compiler=`set X $ac_compile; echo $2`
5694{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5695  (eval $ac_compiler --version </dev/null >&5) 2>&5
5696  ac_status=$?
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); }
5699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5700  (eval $ac_compiler -v </dev/null >&5) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }
5704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5705  (eval $ac_compiler -V </dev/null >&5) 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }
5709
5710echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5711echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5712if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5713  echo $ECHO_N "(cached) $ECHO_C" >&6
5714else
5715  cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h.  */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h.  */
5721
5722int
5723main ()
5724{
5725#ifndef __GNUC__
5726       choke me
5727#endif
5728
5729  ;
5730  return 0;
5731}
5732_ACEOF
5733rm -f conftest.$ac_objext
5734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5735  (eval $ac_compile) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } &&
5742         { ac_try='test -z "$ac_cxx_werror_flag"
5743                         || test ! -s conftest.err'
5744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745  (eval $ac_try) 2>&5
5746  ac_status=$?
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); }; } &&
5749         { ac_try='test -s conftest.$ac_objext'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; }; then
5755  ac_compiler_gnu=yes
5756else
5757  echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760ac_compiler_gnu=no
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5764
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5767echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5768GXX=`test $ac_compiler_gnu = yes && echo yes`
5769ac_test_CXXFLAGS=${CXXFLAGS+set}
5770ac_save_CXXFLAGS=$CXXFLAGS
5771CXXFLAGS="-g"
5772echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5773echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5774if test "${ac_cv_prog_cxx_g+set}" = set; then
5775  echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777  cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h.  */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h.  */
5783
5784int
5785main ()
5786{
5787
5788  ;
5789  return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794  (eval $ac_compile) 2>conftest.er1
5795  ac_status=$?
5796  grep -v '^ *+' conftest.er1 >conftest.err
5797  rm -f conftest.er1
5798  cat conftest.err >&5
5799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800  (exit $ac_status); } &&
5801         { ac_try='test -z "$ac_cxx_werror_flag"
5802                         || test ! -s conftest.err'
5803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804  (eval $ac_try) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; } &&
5808         { ac_try='test -s conftest.$ac_objext'
5809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810  (eval $ac_try) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; }; then
5814  ac_cv_prog_cxx_g=yes
5815else
5816  echo "$as_me: failed program was:" >&5
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
5819ac_cv_prog_cxx_g=no
5820fi
5821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5822fi
5823echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5824echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5825if test "$ac_test_CXXFLAGS" = set; then
5826  CXXFLAGS=$ac_save_CXXFLAGS
5827elif test $ac_cv_prog_cxx_g = yes; then
5828  if test "$GXX" = yes; then
5829    CXXFLAGS="-g -O2"
5830  else
5831    CXXFLAGS="-g"
5832  fi
5833else
5834  if test "$GXX" = yes; then
5835    CXXFLAGS="-O2"
5836  else
5837    CXXFLAGS=
5838  fi
5839fi
5840for ac_declaration in \
5841   '' \
5842   'extern "C" void std::exit (int) throw (); using std::exit;' \
5843   'extern "C" void std::exit (int); using std::exit;' \
5844   'extern "C" void exit (int) throw ();' \
5845   'extern "C" void exit (int);' \
5846   'void exit (int);'
5847do
5848  cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h.  */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h.  */
5854$ac_declaration
5855#include <stdlib.h>
5856int
5857main ()
5858{
5859exit (42);
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866  (eval $ac_compile) 2>conftest.er1
5867  ac_status=$?
5868  grep -v '^ *+' conftest.er1 >conftest.err
5869  rm -f conftest.er1
5870  cat conftest.err >&5
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); } &&
5873         { ac_try='test -z "$ac_cxx_werror_flag"
5874                         || test ! -s conftest.err'
5875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876  (eval $ac_try) 2>&5
5877  ac_status=$?
5878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879  (exit $ac_status); }; } &&
5880         { ac_try='test -s conftest.$ac_objext'
5881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882  (eval $ac_try) 2>&5
5883  ac_status=$?
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); }; }; then
5886  :
5887else
5888  echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891continue
5892fi
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894  cat >conftest.$ac_ext <<_ACEOF
5895/* confdefs.h.  */
5896_ACEOF
5897cat confdefs.h >>conftest.$ac_ext
5898cat >>conftest.$ac_ext <<_ACEOF
5899/* end confdefs.h.  */
5900$ac_declaration
5901int
5902main ()
5903{
5904exit (42);
5905  ;
5906  return 0;
5907}
5908_ACEOF
5909rm -f conftest.$ac_objext
5910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911  (eval $ac_compile) 2>conftest.er1
5912  ac_status=$?
5913  grep -v '^ *+' conftest.er1 >conftest.err
5914  rm -f conftest.er1
5915  cat conftest.err >&5
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); } &&
5918         { ac_try='test -z "$ac_cxx_werror_flag"
5919                         || test ! -s conftest.err'
5920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921  (eval $ac_try) 2>&5
5922  ac_status=$?
5923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); }; } &&
5925         { ac_try='test -s conftest.$ac_objext'
5926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927  (eval $ac_try) 2>&5
5928  ac_status=$?
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); }; }; then
5931  break
5932else
5933  echo "$as_me: failed program was:" >&5
5934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936fi
5937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5938done
5939rm -f conftest*
5940if test -n "$ac_declaration"; then
5941  echo '#ifdef __cplusplus' >>confdefs.h
5942  echo $ac_declaration      >>confdefs.h
5943  echo '#endif'             >>confdefs.h
5944fi
5945
5946ac_ext=cc
5947ac_cpp='$CXXCPP $CPPFLAGS'
5948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5951
5952depcc="$CXX"  am_compiler_list=
5953
5954echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5955echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5956if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5957  echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5960  # We make a subdir and do the tests there.  Otherwise we can end up
5961  # making bogus files that we don't know about and never remove.  For
5962  # instance it was reported that on HP-UX the gcc test will end up
5963  # making a dummy file named `D' -- because `-MD' means `put the output
5964  # in D'.
5965  mkdir conftest.dir
5966  # Copy depcomp to subdir because otherwise we won't find it if we're
5967  # using a relative directory.
5968  cp "$am_depcomp" conftest.dir
5969  cd conftest.dir
5970  # We will build objects and dependencies in a subdirectory because
5971  # it helps to detect inapplicable dependency modes.  For instance
5972  # both Tru64's cc and ICC support -MD to output dependencies as a
5973  # side effect of compilation, but ICC will put the dependencies in
5974  # the current directory while Tru64 will put them in the object
5975  # directory.
5976  mkdir sub
5977
5978  am_cv_CXX_dependencies_compiler_type=none
5979  if test "$am_compiler_list" = ""; then
5980     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5981  fi
5982  for depmode in $am_compiler_list; do
5983    # Setup a source with many dependencies, because some compilers
5984    # like to wrap large dependency lists on column 80 (with \), and
5985    # we should not choose a depcomp mode which is confused by this.
5986    #
5987    # We need to recreate these files for each test, as the compiler may
5988    # overwrite some of them when testing with obscure command lines.
5989    # This happens at least with the AIX C compiler.
5990    : > sub/conftest.c
5991    for i in 1 2 3 4 5 6; do
5992      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5993      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5994      # Solaris 8's {/usr,}/bin/sh.
5995      touch sub/conftst$i.h
5996    done
5997    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5998
5999    case $depmode in
6000    nosideeffect)
6001      # after this tag, mechanisms are not by side-effect, so they'll
6002      # only be used when explicitly requested
6003      if test "x$enable_dependency_tracking" = xyes; then
6004        continue
6005      else
6006        break
6007      fi
6008      ;;
6009    none) break ;;
6010    esac
6011    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6012    # mode.  It turns out that the SunPro C++ compiler does not properly
6013    # handle `-M -o', and we need to detect this.
6014    if depmode=$depmode \
6015       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6016       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6017       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6018         >/dev/null 2>conftest.err &&
6019       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6020       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6021       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6022      # icc doesn't choke on unknown options, it will just issue warnings
6023      # or remarks (even with -Werror).  So we grep stderr for any message
6024      # that says an option was ignored or not supported.
6025      # When given -MP, icc 7.0 and 7.1 complain thusly:
6026      #   icc: Command line warning: ignoring option '-M'; no argument required
6027      # The diagnosis changed in icc 8.0:
6028      #   icc: Command line remark: option '-MP' not supported
6029      if (grep 'ignoring option' conftest.err ||
6030          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6031        am_cv_CXX_dependencies_compiler_type=$depmode
6032        break
6033      fi
6034    fi
6035  done
6036
6037  cd ..
6038  rm -rf conftest.dir
6039else
6040  am_cv_CXX_dependencies_compiler_type=none
6041fi
6042
6043fi
6044echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6045echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6046CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6047
6048
6049
6050if
6051  test "x$enable_dependency_tracking" != xno \
6052  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6053  am__fastdepCXX_TRUE=
6054  am__fastdepCXX_FALSE='#'
6055else
6056  am__fastdepCXX_TRUE='#'
6057  am__fastdepCXX_FALSE=
6058fi
6059
6060
6061
6062
6063if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6064    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6065    (test "X$CXX" != "Xg++"))) ; then
6066  ac_ext=cc
6067ac_cpp='$CXXCPP $CPPFLAGS'
6068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6071echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6072echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6073if test -z "$CXXCPP"; then
6074  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077      # Double quotes because CXXCPP needs to be expanded
6078    for CXXCPP in "$CXX -E" "/lib/cpp"
6079    do
6080      ac_preproc_ok=false
6081for ac_cxx_preproc_warn_flag in '' yes
6082do
6083  # Use a header file that comes with gcc, so configuring glibc
6084  # with a fresh cross-compiler works.
6085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086  # <limits.h> exists even on freestanding compilers.
6087  # On the NeXT, cc -E runs the code through the compiler's parser,
6088  # not just through cpp. "Syntax error" is here to catch this case.
6089  cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h.  */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h.  */
6095#ifdef __STDC__
6096# include <limits.h>
6097#else
6098# include <assert.h>
6099#endif
6100                     Syntax error
6101_ACEOF
6102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } >/dev/null; then
6110  if test -s conftest.err; then
6111    ac_cpp_err=$ac_cxx_preproc_warn_flag
6112    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6113  else
6114    ac_cpp_err=
6115  fi
6116else
6117  ac_cpp_err=yes
6118fi
6119if test -z "$ac_cpp_err"; then
6120  :
6121else
6122  echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125  # Broken: fails on valid input.
6126continue
6127fi
6128rm -f conftest.err conftest.$ac_ext
6129
6130  # OK, works on sane cases.  Now check whether non-existent headers
6131  # can be detected and how.
6132  cat >conftest.$ac_ext <<_ACEOF
6133/* confdefs.h.  */
6134_ACEOF
6135cat confdefs.h >>conftest.$ac_ext
6136cat >>conftest.$ac_ext <<_ACEOF
6137/* end confdefs.h.  */
6138#include <ac_nonexistent.h>
6139_ACEOF
6140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142  ac_status=$?
6143  grep -v '^ *+' conftest.er1 >conftest.err
6144  rm -f conftest.er1
6145  cat conftest.err >&5
6146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147  (exit $ac_status); } >/dev/null; then
6148  if test -s conftest.err; then
6149    ac_cpp_err=$ac_cxx_preproc_warn_flag
6150    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6151  else
6152    ac_cpp_err=
6153  fi
6154else
6155  ac_cpp_err=yes
6156fi
6157if test -z "$ac_cpp_err"; then
6158  # Broken: success on invalid input.
6159continue
6160else
6161  echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164  # Passes both tests.
6165ac_preproc_ok=:
6166break
6167fi
6168rm -f conftest.err conftest.$ac_ext
6169
6170done
6171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6172rm -f conftest.err conftest.$ac_ext
6173if $ac_preproc_ok; then
6174  break
6175fi
6176
6177    done
6178    ac_cv_prog_CXXCPP=$CXXCPP
6179
6180fi
6181  CXXCPP=$ac_cv_prog_CXXCPP
6182else
6183  ac_cv_prog_CXXCPP=$CXXCPP
6184fi
6185echo "$as_me:$LINENO: result: $CXXCPP" >&5
6186echo "${ECHO_T}$CXXCPP" >&6
6187ac_preproc_ok=false
6188for ac_cxx_preproc_warn_flag in '' yes
6189do
6190  # Use a header file that comes with gcc, so configuring glibc
6191  # with a fresh cross-compiler works.
6192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6193  # <limits.h> exists even on freestanding compilers.
6194  # On the NeXT, cc -E runs the code through the compiler's parser,
6195  # not just through cpp. "Syntax error" is here to catch this case.
6196  cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h.  */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h.  */
6202#ifdef __STDC__
6203# include <limits.h>
6204#else
6205# include <assert.h>
6206#endif
6207                     Syntax error
6208_ACEOF
6209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6211  ac_status=$?
6212  grep -v '^ *+' conftest.er1 >conftest.err
6213  rm -f conftest.er1
6214  cat conftest.err >&5
6215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216  (exit $ac_status); } >/dev/null; then
6217  if test -s conftest.err; then
6218    ac_cpp_err=$ac_cxx_preproc_warn_flag
6219    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6220  else
6221    ac_cpp_err=
6222  fi
6223else
6224  ac_cpp_err=yes
6225fi
6226if test -z "$ac_cpp_err"; then
6227  :
6228else
6229  echo "$as_me: failed program was:" >&5
6230sed 's/^/| /' conftest.$ac_ext >&5
6231
6232  # Broken: fails on valid input.
6233continue
6234fi
6235rm -f conftest.err conftest.$ac_ext
6236
6237  # OK, works on sane cases.  Now check whether non-existent headers
6238  # can be detected and how.
6239  cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h.  */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h.  */
6245#include <ac_nonexistent.h>
6246_ACEOF
6247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6248  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6249  ac_status=$?
6250  grep -v '^ *+' conftest.er1 >conftest.err
6251  rm -f conftest.er1
6252  cat conftest.err >&5
6253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254  (exit $ac_status); } >/dev/null; then
6255  if test -s conftest.err; then
6256    ac_cpp_err=$ac_cxx_preproc_warn_flag
6257    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6258  else
6259    ac_cpp_err=
6260  fi
6261else
6262  ac_cpp_err=yes
6263fi
6264if test -z "$ac_cpp_err"; then
6265  # Broken: success on invalid input.
6266continue
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271  # Passes both tests.
6272ac_preproc_ok=:
6273break
6274fi
6275rm -f conftest.err conftest.$ac_ext
6276
6277done
6278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6279rm -f conftest.err conftest.$ac_ext
6280if $ac_preproc_ok; then
6281  :
6282else
6283  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6284See \`config.log' for more details." >&5
6285echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6286See \`config.log' for more details." >&2;}
6287   { (exit 1); exit 1; }; }
6288fi
6289
6290ac_ext=cc
6291ac_cpp='$CXXCPP $CPPFLAGS'
6292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6295
6296fi
6297
6298
6299ac_ext=f
6300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6303if test -n "$ac_tool_prefix"; then
6304  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6305  do
6306    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6308echo "$as_me:$LINENO: checking for $ac_word" >&5
6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6310if test "${ac_cv_prog_F77+set}" = set; then
6311  echo $ECHO_N "(cached) $ECHO_C" >&6
6312else
6313  if test -n "$F77"; then
6314  ac_cv_prog_F77="$F77" # Let the user override the test.
6315else
6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317for as_dir in $PATH
6318do
6319  IFS=$as_save_IFS
6320  test -z "$as_dir" && as_dir=.
6321  for ac_exec_ext in '' $ac_executable_extensions; do
6322  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6324    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325    break 2
6326  fi
6327done
6328done
6329
6330fi
6331fi
6332F77=$ac_cv_prog_F77
6333if test -n "$F77"; then
6334  echo "$as_me:$LINENO: result: $F77" >&5
6335echo "${ECHO_T}$F77" >&6
6336else
6337  echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339fi
6340
6341    test -n "$F77" && break
6342  done
6343fi
6344if test -z "$F77"; then
6345  ac_ct_F77=$F77
6346  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6347do
6348  # Extract the first word of "$ac_prog", so it can be a program name with args.
6349set dummy $ac_prog; ac_word=$2
6350echo "$as_me:$LINENO: checking for $ac_word" >&5
6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6352if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6353  echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355  if test -n "$ac_ct_F77"; then
6356  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6357else
6358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359for as_dir in $PATH
6360do
6361  IFS=$as_save_IFS
6362  test -z "$as_dir" && as_dir=.
6363  for ac_exec_ext in '' $ac_executable_extensions; do
6364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365    ac_cv_prog_ac_ct_F77="$ac_prog"
6366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367    break 2
6368  fi
6369done
6370done
6371
6372fi
6373fi
6374ac_ct_F77=$ac_cv_prog_ac_ct_F77
6375if test -n "$ac_ct_F77"; then
6376  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6377echo "${ECHO_T}$ac_ct_F77" >&6
6378else
6379  echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381fi
6382
6383  test -n "$ac_ct_F77" && break
6384done
6385
6386  F77=$ac_ct_F77
6387fi
6388
6389
6390# Provide some information about the compiler.
6391echo "$as_me:6391:" \
6392     "checking for Fortran 77 compiler version" >&5
6393ac_compiler=`set X $ac_compile; echo $2`
6394{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6395  (eval $ac_compiler --version </dev/null >&5) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); }
6399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6400  (eval $ac_compiler -v </dev/null >&5) 2>&5
6401  ac_status=$?
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); }
6404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6405  (eval $ac_compiler -V </dev/null >&5) 2>&5
6406  ac_status=$?
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); }
6409rm -f a.out
6410
6411# If we don't use `.F' as extension, the preprocessor is not run on the
6412# input file.  (Note that this only needs to work for GNU compilers.)
6413ac_save_ext=$ac_ext
6414ac_ext=F
6415echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6416echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6417if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6418  echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420  cat >conftest.$ac_ext <<_ACEOF
6421      program main
6422#ifndef __GNUC__
6423       choke me
6424#endif
6425
6426      end
6427_ACEOF
6428rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430  (eval $ac_compile) 2>conftest.er1
6431  ac_status=$?
6432  grep -v '^ *+' conftest.er1 >conftest.err
6433  rm -f conftest.er1
6434  cat conftest.err >&5
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); } &&
6437         { ac_try='test -z "$ac_f77_werror_flag"
6438                         || test ! -s conftest.err'
6439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440  (eval $ac_try) 2>&5
6441  ac_status=$?
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); }; } &&
6444         { ac_try='test -s conftest.$ac_objext'
6445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446  (eval $ac_try) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; }; then
6450  ac_compiler_gnu=yes
6451else
6452  echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455ac_compiler_gnu=no
6456fi
6457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6459
6460fi
6461echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6462echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6463ac_ext=$ac_save_ext
6464ac_test_FFLAGS=${FFLAGS+set}
6465ac_save_FFLAGS=$FFLAGS
6466FFLAGS=
6467echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6468echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6469if test "${ac_cv_prog_f77_g+set}" = set; then
6470  echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472  FFLAGS=-g
6473cat >conftest.$ac_ext <<_ACEOF
6474      program main
6475
6476      end
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480  (eval $ac_compile) 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } &&
6487         { ac_try='test -z "$ac_f77_werror_flag"
6488                         || test ! -s conftest.err'
6489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490  (eval $ac_try) 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; } &&
6494         { ac_try='test -s conftest.$ac_objext'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; }; then
6500  ac_cv_prog_f77_g=yes
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505ac_cv_prog_f77_g=no
6506fi
6507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6508
6509fi
6510echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6511echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6512if test "$ac_test_FFLAGS" = set; then
6513  FFLAGS=$ac_save_FFLAGS
6514elif test $ac_cv_prog_f77_g = yes; then
6515  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6516    FFLAGS="-g -O2"
6517  else
6518    FFLAGS="-g"
6519  fi
6520else
6521  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6522    FFLAGS="-O2"
6523  else
6524    FFLAGS=
6525  fi
6526fi
6527
6528G77=`test $ac_compiler_gnu = yes && echo yes`
6529ac_ext=c
6530ac_cpp='$CPP $CPPFLAGS'
6531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534
6535
6536
6537# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6538
6539# find the maximum length of command line arguments
6540echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6541echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6542if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6543  echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545    i=0
6546  teststring="ABCD"
6547
6548  case $build_os in
6549  msdosdjgpp*)
6550    # On DJGPP, this test can blow up pretty badly due to problems in libc
6551    # (any single argument exceeding 2000 bytes causes a buffer overrun
6552    # during glob expansion).  Even if it were fixed, the result of this
6553    # check would be larger than it should be.
6554    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6555    ;;
6556
6557  gnu*)
6558    # Under GNU Hurd, this test is not required because there is
6559    # no limit to the length of command line arguments.
6560    # Libtool will interpret -1 as no limit whatsoever
6561    lt_cv_sys_max_cmd_len=-1;
6562    ;;
6563
6564  cygwin* | mingw*)
6565    # On Win9x/ME, this test blows up -- it succeeds, but takes
6566    # about 5 minutes as the teststring grows exponentially.
6567    # Worse, since 9x/ME are not pre-emptively multitasking,
6568    # you end up with a "frozen" computer, even though with patience
6569    # the test eventually succeeds (with a max line length of 256k).
6570    # Instead, let's just punt: use the minimum linelength reported by
6571    # all of the supported platforms: 8192 (on NT/2K/XP).
6572    lt_cv_sys_max_cmd_len=8192;
6573    ;;
6574
6575  amigaos*)
6576    # On AmigaOS with pdksh, this test takes hours, literally.
6577    # So we just punt and use a minimum line length of 8192.
6578    lt_cv_sys_max_cmd_len=8192;
6579    ;;
6580
6581  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6582    # This has been around since 386BSD, at least.  Likely further.
6583    if test -x /sbin/sysctl; then
6584      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6585    elif test -x /usr/sbin/sysctl; then
6586      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6587    else
6588      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6589    fi
6590    # And add a safety zone
6591    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6593    ;;
6594
6595  interix*)
6596    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6597    lt_cv_sys_max_cmd_len=196608
6598    ;;
6599
6600  osf*)
6601    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603    # nice to cause kernel panics so lets avoid the loop below.
6604    # First set a reasonable default.
6605    lt_cv_sys_max_cmd_len=16384
6606    #
6607    if test -x /sbin/sysconfig; then
6608      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610      esac
6611    fi
6612    ;;
6613  sco3.2v5*)
6614    lt_cv_sys_max_cmd_len=102400
6615    ;;
6616  sysv5* | sco5v6* | sysv4.2uw2*)
6617    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618    if test -n "$kargmax"; then
6619      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6620    else
6621      lt_cv_sys_max_cmd_len=32768
6622    fi
6623    ;;
6624  *)
6625    # If test is not a shell built-in, we'll probably end up computing a
6626    # maximum length that is only half of the actual maximum length, but
6627    # we can't tell.
6628    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6629    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6630               = "XX$teststring") >/dev/null 2>&1 &&
6631            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6632            lt_cv_sys_max_cmd_len=$new_result &&
6633            test $i != 17 # 1/2 MB should be enough
6634    do
6635      i=`expr $i + 1`
6636      teststring=$teststring$teststring
6637    done
6638    teststring=
6639    # Add a significant safety factor because C++ compilers can tack on massive
6640    # amounts of additional arguments before passing them to the linker.
6641    # It appears as though 1/2 is a usable value.
6642    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6643    ;;
6644  esac
6645
6646fi
6647
6648if test -n $lt_cv_sys_max_cmd_len ; then
6649  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6650echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6651else
6652  echo "$as_me:$LINENO: result: none" >&5
6653echo "${ECHO_T}none" >&6
6654fi
6655
6656
6657
6658
6659# Check for command to grab the raw symbol name followed by C symbol from nm.
6660echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6661echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6662if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665
6666# These are sane defaults that work on at least a few old systems.
6667# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6668
6669# Character class describing NM global symbol codes.
6670symcode='[BCDEGRST]'
6671
6672# Regexp to match symbols that can be accessed directly from C.
6673sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6674
6675# Transform an extracted symbol line into a proper C declaration
6676lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6677
6678# Transform an extracted symbol line into symbol name and symbol address
6679lt_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'"
6680
6681# Define system-specific variables.
6682case $host_os in
6683aix*)
6684  symcode='[BCDT]'
6685  ;;
6686cygwin* | mingw* | pw32*)
6687  symcode='[ABCDGISTW]'
6688  ;;
6689hpux*) # Its linker distinguishes data from code symbols
6690  if test "$host_cpu" = ia64; then
6691    symcode='[ABCDEGRST]'
6692  fi
6693  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6694  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'"
6695  ;;
6696linux*)
6697  if test "$host_cpu" = ia64; then
6698    symcode='[ABCDGIRSTW]'
6699    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6700    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'"
6701  fi
6702  ;;
6703irix* | nonstopux*)
6704  symcode='[BCDEGRST]'
6705  ;;
6706osf*)
6707  symcode='[BCDEGQRST]'
6708  ;;
6709solaris*)
6710  symcode='[BDRT]'
6711  ;;
6712sco3.2v5*)
6713  symcode='[DT]'
6714  ;;
6715sysv4.2uw2*)
6716  symcode='[DT]'
6717  ;;
6718sysv5* | sco5v6* | unixware* | OpenUNIX*)
6719  symcode='[ABDT]'
6720  ;;
6721sysv4)
6722  symcode='[DFNSTU]'
6723  ;;
6724esac
6725
6726# Handle CRLF in mingw tool chain
6727opt_cr=
6728case $build_os in
6729mingw*)
6730  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6731  ;;
6732esac
6733
6734# If we're using GNU nm, then use its standard symbol codes.
6735case `$NM -V 2>&1` in
6736*GNU* | *'with BFD'*)
6737  symcode='[ABCDGIRSTW]' ;;
6738esac
6739
6740# Try without a prefix undercore, then with it.
6741for ac_symprfx in "" "_"; do
6742
6743  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6744  symxfrm="\\1 $ac_symprfx\\2 \\2"
6745
6746  # Write the raw and C identifiers.
6747  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6748
6749  # Check to see that the pipe works correctly.
6750  pipe_works=no
6751
6752  rm -f conftest*
6753  cat > conftest.$ac_ext <<EOF
6754#ifdef __cplusplus
6755extern "C" {
6756#endif
6757char nm_test_var;
6758void nm_test_func(){}
6759#ifdef __cplusplus
6760}
6761#endif
6762int main(){nm_test_var='a';nm_test_func();return(0);}
6763EOF
6764
6765  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766  (eval $ac_compile) 2>&5
6767  ac_status=$?
6768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769  (exit $ac_status); }; then
6770    # Now try to grab the symbols.
6771    nlist=conftest.nm
6772    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6773  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6774  ac_status=$?
6775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776  (exit $ac_status); } && test -s "$nlist"; then
6777      # Try sorting and uniquifying the output.
6778      if sort "$nlist" | uniq > "$nlist"T; then
6779        mv -f "$nlist"T "$nlist"
6780      else
6781        rm -f "$nlist"T
6782      fi
6783
6784      # Make sure that we snagged all the symbols we need.
6785      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6786        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6787          cat <<EOF > conftest.$ac_ext
6788#ifdef __cplusplus
6789extern "C" {
6790#endif
6791
6792EOF
6793          # Now generate the symbol file.
6794          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6795
6796          cat <<EOF >> conftest.$ac_ext
6797#if defined (__STDC__) && __STDC__
6798# define lt_ptr_t void *
6799#else
6800# define lt_ptr_t char *
6801# define const
6802#endif
6803
6804/* The mapping between symbol names and symbols. */
6805const struct {
6806  const char *name;
6807  lt_ptr_t address;
6808}
6809lt_preloaded_symbols[] =
6810{
6811EOF
6812          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6813          cat <<\EOF >> conftest.$ac_ext
6814  {0, (lt_ptr_t) 0}
6815};
6816
6817#ifdef __cplusplus
6818}
6819#endif
6820EOF
6821          # Now try linking the two files.
6822          mv conftest.$ac_objext conftstm.$ac_objext
6823          lt_save_LIBS="$LIBS"
6824          lt_save_CFLAGS="$CFLAGS"
6825          LIBS="conftstm.$ac_objext"
6826          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6827          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828  (eval $ac_link) 2>&5
6829  ac_status=$?
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6832            pipe_works=yes
6833          fi
6834          LIBS="$lt_save_LIBS"
6835          CFLAGS="$lt_save_CFLAGS"
6836        else
6837          echo "cannot find nm_test_func in $nlist" >&5
6838        fi
6839      else
6840        echo "cannot find nm_test_var in $nlist" >&5
6841      fi
6842    else
6843      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6844    fi
6845  else
6846    echo "$progname: failed program was:" >&5
6847    cat conftest.$ac_ext >&5
6848  fi
6849  rm -f conftest* conftst*
6850
6851  # Do not use the global_symbol_pipe unless it works.
6852  if test "$pipe_works" = yes; then
6853    break
6854  else
6855    lt_cv_sys_global_symbol_pipe=
6856  fi
6857done
6858
6859fi
6860
6861if test -z "$lt_cv_sys_global_symbol_pipe"; then
6862  lt_cv_sys_global_symbol_to_cdecl=
6863fi
6864if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6865  echo "$as_me:$LINENO: result: failed" >&5
6866echo "${ECHO_T}failed" >&6
6867else
6868  echo "$as_me:$LINENO: result: ok" >&5
6869echo "${ECHO_T}ok" >&6
6870fi
6871
6872echo "$as_me:$LINENO: checking for objdir" >&5
6873echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6874if test "${lt_cv_objdir+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877  rm -f .libs 2>/dev/null
6878mkdir .libs 2>/dev/null
6879if test -d .libs; then
6880  lt_cv_objdir=.libs
6881else
6882  # MS-DOS does not allow filenames that begin with a dot.
6883  lt_cv_objdir=_libs
6884fi
6885rmdir .libs 2>/dev/null
6886fi
6887echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6888echo "${ECHO_T}$lt_cv_objdir" >&6
6889objdir=$lt_cv_objdir
6890
6891
6892
6893
6894
6895case $host_os in
6896aix3*)
6897  # AIX sometimes has problems with the GCC collect2 program.  For some
6898  # reason, if we set the COLLECT_NAMES environment variable, the problems
6899  # vanish in a puff of smoke.
6900  if test "X${COLLECT_NAMES+set}" != Xset; then
6901    COLLECT_NAMES=
6902    export COLLECT_NAMES
6903  fi
6904  ;;
6905esac
6906
6907# Sed substitution that helps us do robust quoting.  It backslashifies
6908# metacharacters that are still active within double-quoted strings.
6909Xsed='sed -e 1s/^X//'
6910sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6911
6912# Same as above, but do not quote variable references.
6913double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6914
6915# Sed substitution to delay expansion of an escaped shell variable in a
6916# double_quote_subst'ed string.
6917delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6918
6919# Sed substitution to avoid accidental globbing in evaled expressions
6920no_glob_subst='s/\*/\\\*/g'
6921
6922# Constants:
6923rm="rm -f"
6924
6925# Global variables:
6926default_ofile=libtool
6927can_build_shared=yes
6928
6929# All known linkers require a `.a' archive for static linking (except MSVC,
6930# which needs '.lib').
6931libext=a
6932ltmain="$ac_aux_dir/ltmain.sh"
6933ofile="$default_ofile"
6934with_gnu_ld="$lt_cv_prog_gnu_ld"
6935
6936if test -n "$ac_tool_prefix"; then
6937  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6938set dummy ${ac_tool_prefix}ar; ac_word=$2
6939echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6941if test "${ac_cv_prog_AR+set}" = set; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  if test -n "$AR"; then
6945  ac_cv_prog_AR="$AR" # Let the user override the test.
6946else
6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950  IFS=$as_save_IFS
6951  test -z "$as_dir" && as_dir=.
6952  for ac_exec_ext in '' $ac_executable_extensions; do
6953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6954    ac_cv_prog_AR="${ac_tool_prefix}ar"
6955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956    break 2
6957  fi
6958done
6959done
6960
6961fi
6962fi
6963AR=$ac_cv_prog_AR
6964if test -n "$AR"; then
6965  echo "$as_me:$LINENO: result: $AR" >&5
6966echo "${ECHO_T}$AR" >&6
6967else
6968  echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970fi
6971
6972fi
6973if test -z "$ac_cv_prog_AR"; then
6974  ac_ct_AR=$AR
6975  # Extract the first word of "ar", so it can be a program name with args.
6976set dummy ar; ac_word=$2
6977echo "$as_me:$LINENO: checking for $ac_word" >&5
6978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6979if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6980  echo $ECHO_N "(cached) $ECHO_C" >&6
6981else
6982  if test -n "$ac_ct_AR"; then
6983  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988  IFS=$as_save_IFS
6989  test -z "$as_dir" && as_dir=.
6990  for ac_exec_ext in '' $ac_executable_extensions; do
6991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992    ac_cv_prog_ac_ct_AR="ar"
6993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6994    break 2
6995  fi
6996done
6997done
6998
6999  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7000fi
7001fi
7002ac_ct_AR=$ac_cv_prog_ac_ct_AR
7003if test -n "$ac_ct_AR"; then
7004  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7005echo "${ECHO_T}$ac_ct_AR" >&6
7006else
7007  echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
7009fi
7010
7011  AR=$ac_ct_AR
7012else
7013  AR="$ac_cv_prog_AR"
7014fi
7015
7016if test -n "$ac_tool_prefix"; then
7017  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7018set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7019echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7021if test "${ac_cv_prog_RANLIB+set}" = set; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024  if test -n "$RANLIB"; then
7025  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030  IFS=$as_save_IFS
7031  test -z "$as_dir" && as_dir=.
7032  for ac_exec_ext in '' $ac_executable_extensions; do
7033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7035    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036    break 2
7037  fi
7038done
7039done
7040
7041fi
7042fi
7043RANLIB=$ac_cv_prog_RANLIB
7044if test -n "$RANLIB"; then
7045  echo "$as_me:$LINENO: result: $RANLIB" >&5
7046echo "${ECHO_T}$RANLIB" >&6
7047else
7048  echo "$as_me:$LINENO: result: no" >&5
7049echo "${ECHO_T}no" >&6
7050fi
7051
7052fi
7053if test -z "$ac_cv_prog_RANLIB"; then
7054  ac_ct_RANLIB=$RANLIB
7055  # Extract the first word of "ranlib", so it can be a program name with args.
7056set dummy ranlib; ac_word=$2
7057echo "$as_me:$LINENO: checking for $ac_word" >&5
7058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7059if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7060  echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062  if test -n "$ac_ct_RANLIB"; then
7063  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7064else
7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066for as_dir in $PATH
7067do
7068  IFS=$as_save_IFS
7069  test -z "$as_dir" && as_dir=.
7070  for ac_exec_ext in '' $ac_executable_extensions; do
7071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072    ac_cv_prog_ac_ct_RANLIB="ranlib"
7073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074    break 2
7075  fi
7076done
7077done
7078
7079  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7080fi
7081fi
7082ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7083if test -n "$ac_ct_RANLIB"; then
7084  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7085echo "${ECHO_T}$ac_ct_RANLIB" >&6
7086else
7087  echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089fi
7090
7091  RANLIB=$ac_ct_RANLIB
7092else
7093  RANLIB="$ac_cv_prog_RANLIB"
7094fi
7095
7096if test -n "$ac_tool_prefix"; then
7097  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}strip; ac_word=$2
7099echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7101if test "${ac_cv_prog_STRIP+set}" = set; then
7102  echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104  if test -n "$STRIP"; then
7105  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112  for ac_exec_ext in '' $ac_executable_extensions; do
7113  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119done
7120
7121fi
7122fi
7123STRIP=$ac_cv_prog_STRIP
7124if test -n "$STRIP"; then
7125  echo "$as_me:$LINENO: result: $STRIP" >&5
7126echo "${ECHO_T}$STRIP" >&6
7127else
7128  echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130fi
7131
7132fi
7133if test -z "$ac_cv_prog_STRIP"; then
7134  ac_ct_STRIP=$STRIP
7135  # Extract the first word of "strip", so it can be a program name with args.
7136set dummy strip; ac_word=$2
7137echo "$as_me:$LINENO: checking for $ac_word" >&5
7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7139if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7140  echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142  if test -n "$ac_ct_STRIP"; then
7143  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150  for ac_exec_ext in '' $ac_executable_extensions; do
7151  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152    ac_cv_prog_ac_ct_STRIP="strip"
7153    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157done
7158
7159  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7160fi
7161fi
7162ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7163if test -n "$ac_ct_STRIP"; then
7164  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7165echo "${ECHO_T}$ac_ct_STRIP" >&6
7166else
7167  echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169fi
7170
7171  STRIP=$ac_ct_STRIP
7172else
7173  STRIP="$ac_cv_prog_STRIP"
7174fi
7175
7176
7177old_CC="$CC"
7178old_CFLAGS="$CFLAGS"
7179
7180# Set sane defaults for various variables
7181test -z "$AR" && AR=ar
7182test -z "$AR_FLAGS" && AR_FLAGS=cru
7183test -z "$AS" && AS=as
7184test -z "$CC" && CC=cc
7185test -z "$LTCC" && LTCC=$CC
7186test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7187test -z "$DLLTOOL" && DLLTOOL=dlltool
7188test -z "$LD" && LD=ld
7189test -z "$LN_S" && LN_S="ln -s"
7190test -z "$MAGIC_CMD" && MAGIC_CMD=file
7191test -z "$NM" && NM=nm
7192test -z "$SED" && SED=sed
7193test -z "$OBJDUMP" && OBJDUMP=objdump
7194test -z "$RANLIB" && RANLIB=:
7195test -z "$STRIP" && STRIP=:
7196test -z "$ac_objext" && ac_objext=o
7197
7198# Determine commands to create old-style static archives.
7199old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7200old_postinstall_cmds='chmod 644 $oldlib'
7201old_postuninstall_cmds=
7202
7203if test -n "$RANLIB"; then
7204  case $host_os in
7205  openbsd*)
7206    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7207    ;;
7208  *)
7209    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7210    ;;
7211  esac
7212  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7213fi
7214
7215for cc_temp in $compiler""; do
7216  case $cc_temp in
7217    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7218    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7219    \-*) ;;
7220    *) break;;
7221  esac
7222done
7223cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7224
7225
7226# Only perform the check for file, if the check method requires it
7227case $deplibs_check_method in
7228file_magic*)
7229  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7230    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7231echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7232if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7233  echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235  case $MAGIC_CMD in
7236[\\/*] |  ?:[\\/]*)
7237  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7238  ;;
7239*)
7240  lt_save_MAGIC_CMD="$MAGIC_CMD"
7241  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7242  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7243  for ac_dir in $ac_dummy; do
7244    IFS="$lt_save_ifs"
7245    test -z "$ac_dir" && ac_dir=.
7246    if test -f $ac_dir/${ac_tool_prefix}file; then
7247      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7248      if test -n "$file_magic_test_file"; then
7249        case $deplibs_check_method in
7250        "file_magic "*)
7251          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7252          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7253          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7254            $EGREP "$file_magic_regex" > /dev/null; then
7255            :
7256          else
7257            cat <<EOF 1>&2
7258
7259*** Warning: the command libtool uses to detect shared libraries,
7260*** $file_magic_cmd, produces output that libtool cannot recognize.
7261*** The result is that libtool may fail to recognize shared libraries
7262*** as such.  This will affect the creation of libtool libraries that
7263*** depend on shared libraries, but programs linked with such libtool
7264*** libraries will work regardless of this problem.  Nevertheless, you
7265*** may want to report the problem to your system manager and/or to
7266*** bug-libtool@gnu.org
7267
7268EOF
7269          fi ;;
7270        esac
7271      fi
7272      break
7273    fi
7274  done
7275  IFS="$lt_save_ifs"
7276  MAGIC_CMD="$lt_save_MAGIC_CMD"
7277  ;;
7278esac
7279fi
7280
7281MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7282if test -n "$MAGIC_CMD"; then
7283  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7284echo "${ECHO_T}$MAGIC_CMD" >&6
7285else
7286  echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
7288fi
7289
7290if test -z "$lt_cv_path_MAGIC_CMD"; then
7291  if test -n "$ac_tool_prefix"; then
7292    echo "$as_me:$LINENO: checking for file" >&5
7293echo $ECHO_N "checking for file... $ECHO_C" >&6
7294if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7295  echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297  case $MAGIC_CMD in
7298[\\/*] |  ?:[\\/]*)
7299  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7300  ;;
7301*)
7302  lt_save_MAGIC_CMD="$MAGIC_CMD"
7303  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7305  for ac_dir in $ac_dummy; do
7306    IFS="$lt_save_ifs"
7307    test -z "$ac_dir" && ac_dir=.
7308    if test -f $ac_dir/file; then
7309      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7310      if test -n "$file_magic_test_file"; then
7311        case $deplibs_check_method in
7312        "file_magic "*)
7313          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7314          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7315          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7316            $EGREP "$file_magic_regex" > /dev/null; then
7317            :
7318          else
7319            cat <<EOF 1>&2
7320
7321*** Warning: the command libtool uses to detect shared libraries,
7322*** $file_magic_cmd, produces output that libtool cannot recognize.
7323*** The result is that libtool may fail to recognize shared libraries
7324*** as such.  This will affect the creation of libtool libraries that
7325*** depend on shared libraries, but programs linked with such libtool
7326*** libraries will work regardless of this problem.  Nevertheless, you
7327*** may want to report the problem to your system manager and/or to
7328*** bug-libtool@gnu.org
7329
7330EOF
7331          fi ;;
7332        esac
7333      fi
7334      break
7335    fi
7336  done
7337  IFS="$lt_save_ifs"
7338  MAGIC_CMD="$lt_save_MAGIC_CMD"
7339  ;;
7340esac
7341fi
7342
7343MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344if test -n "$MAGIC_CMD"; then
7345  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7346echo "${ECHO_T}$MAGIC_CMD" >&6
7347else
7348  echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350fi
7351
7352  else
7353    MAGIC_CMD=:
7354  fi
7355fi
7356
7357  fi
7358  ;;
7359esac
7360
7361enable_dlopen=no
7362enable_win32_dll=no
7363
7364# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7365if test "${enable_libtool_lock+set}" = set; then
7366  enableval="$enable_libtool_lock"
7367
7368fi;
7369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7370
7371
7372# Check whether --with-pic or --without-pic was given.
7373if test "${with_pic+set}" = set; then
7374  withval="$with_pic"
7375  pic_mode="$withval"
7376else
7377  pic_mode=default
7378fi;
7379test -z "$pic_mode" && pic_mode=default
7380
7381# Use C for the default configuration in the libtool script
7382tagname=
7383lt_save_CC="$CC"
7384ac_ext=c
7385ac_cpp='$CPP $CPPFLAGS'
7386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388ac_compiler_gnu=$ac_cv_c_compiler_gnu
7389
7390
7391# Source file extension for C test sources.
7392ac_ext=c
7393
7394# Object file extension for compiled C test sources.
7395objext=o
7396objext=$objext
7397
7398# Code to be used in simple compile tests
7399lt_simple_compile_test_code="int some_variable = 0;\n"
7400
7401# Code to be used in simple link tests
7402lt_simple_link_test_code='int main(){return(0);}\n'
7403
7404
7405# If no C compiler was specified, use CC.
7406LTCC=${LTCC-"$CC"}
7407
7408# If no C compiler flags were specified, use CFLAGS.
7409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7410
7411# Allow CC to be a program name with arguments.
7412compiler=$CC
7413
7414
7415# save warnings/boilerplate of simple test code
7416ac_outfile=conftest.$ac_objext
7417printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7418eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7419_lt_compiler_boilerplate=`cat conftest.err`
7420$rm conftest*
7421
7422ac_outfile=conftest.$ac_objext
7423printf "$lt_simple_link_test_code" >conftest.$ac_ext
7424eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7425_lt_linker_boilerplate=`cat conftest.err`
7426$rm conftest*
7427
7428
7429## CAVEAT EMPTOR:
7430## There is no encapsulation within the following macros, do not change
7431## the running order or otherwise move them around unless you know exactly
7432## what you are doing...
7433
7434lt_prog_compiler_no_builtin_flag=
7435
7436if test "$GCC" = yes; then
7437  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7438
7439
7440echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7441echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7442if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7443  echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445  lt_cv_prog_compiler_rtti_exceptions=no
7446  ac_outfile=conftest.$ac_objext
7447   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7448   lt_compiler_flag="-fno-rtti -fno-exceptions"
7449   # Insert the option either (1) after the last *FLAGS variable, or
7450   # (2) before a word containing "conftest.", or (3) at the end.
7451   # Note that $ac_compile itself does not contain backslashes and begins
7452   # with a dollar sign (not a hyphen), so the echo should work correctly.
7453   # The option is referenced via a variable to avoid confusing sed.
7454   lt_compile=`echo "$ac_compile" | $SED \
7455   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7456   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7457   -e 's:$: $lt_compiler_flag:'`
7458   (eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
7459   (eval "$lt_compile" 2>conftest.err)
7460   ac_status=$?
7461   cat conftest.err >&5
7462   echo "$as_me:7462: \$? = $ac_status" >&5
7463   if (exit $ac_status) && test -s "$ac_outfile"; then
7464     # The compiler can only warn and ignore the option if not recognized
7465     # So say no if there are warnings other than the usual output.
7466     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7467     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7468     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7469       lt_cv_prog_compiler_rtti_exceptions=yes
7470     fi
7471   fi
7472   $rm conftest*
7473
7474fi
7475echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7476echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7477
7478if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7479    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7480else
7481    :
7482fi
7483
7484fi
7485
7486lt_prog_compiler_wl=
7487lt_prog_compiler_pic=
7488lt_prog_compiler_static=
7489
7490echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7491echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7492
7493  if test "$GCC" = yes; then
7494    lt_prog_compiler_wl='-Wl,'
7495    lt_prog_compiler_static='-static'
7496
7497    case $host_os in
7498      aix*)
7499      # All AIX code is PIC.
7500      if test "$host_cpu" = ia64; then
7501        # AIX 5 now supports IA64 processor
7502        lt_prog_compiler_static='-Bstatic'
7503      fi
7504      ;;
7505
7506    amigaos*)
7507      # FIXME: we need at least 68020 code to build shared libraries, but
7508      # adding the `-m68020' flag to GCC prevents building anything better,
7509      # like `-m68040'.
7510      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7511      ;;
7512
7513    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7514      # PIC is the default for these OSes.
7515      ;;
7516
7517    mingw* | pw32* | os2*)
7518      # This hack is so that the source file can tell whether it is being
7519      # built for inclusion in a dll (and should export symbols for example).
7520      lt_prog_compiler_pic='-DDLL_EXPORT'
7521      ;;
7522
7523    darwin* | rhapsody*)
7524      # PIC is the default on this platform
7525      # Common symbols not allowed in MH_DYLIB files
7526      lt_prog_compiler_pic='-fno-common'
7527      ;;
7528
7529    interix3*)
7530      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7531      # Instead, we relocate shared libraries at runtime.
7532      ;;
7533
7534    msdosdjgpp*)
7535      # Just because we use GCC doesn't mean we suddenly get shared libraries
7536      # on systems that don't support them.
7537      lt_prog_compiler_can_build_shared=no
7538      enable_shared=no
7539      ;;
7540
7541    sysv4*MP*)
7542      if test -d /usr/nec; then
7543        lt_prog_compiler_pic=-Kconform_pic
7544      fi
7545      ;;
7546
7547    hpux*)
7548      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7549      # not for PA HP-UX.
7550      case $host_cpu in
7551      hppa*64*|ia64*)
7552        # +Z the default
7553        ;;
7554      *)
7555        lt_prog_compiler_pic='-fPIC'
7556        ;;
7557      esac
7558      ;;
7559
7560    *)
7561      lt_prog_compiler_pic='-fPIC'
7562      ;;
7563    esac
7564  else
7565    # PORTME Check for flag to pass linker flags through the system compiler.
7566    case $host_os in
7567    aix*)
7568      lt_prog_compiler_wl='-Wl,'
7569      if test "$host_cpu" = ia64; then
7570        # AIX 5 now supports IA64 processor
7571        lt_prog_compiler_static='-Bstatic'
7572      else
7573        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7574      fi
7575      ;;
7576      darwin*)
7577        # PIC is the default on this platform
7578        # Common symbols not allowed in MH_DYLIB files
7579       case $cc_basename in
7580         xlc*)
7581         lt_prog_compiler_pic='-qnocommon'
7582         lt_prog_compiler_wl='-Wl,'
7583         ;;
7584       esac
7585       ;;
7586
7587    mingw* | pw32* | os2*)
7588      # This hack is so that the source file can tell whether it is being
7589      # built for inclusion in a dll (and should export symbols for example).
7590      lt_prog_compiler_pic='-DDLL_EXPORT'
7591      ;;
7592
7593    hpux9* | hpux10* | hpux11*)
7594      lt_prog_compiler_wl='-Wl,'
7595      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7596      # not for PA HP-UX.
7597      case $host_cpu in
7598      hppa*64*|ia64*)
7599        # +Z the default
7600        ;;
7601      *)
7602        lt_prog_compiler_pic='+Z'
7603        ;;
7604      esac
7605      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7606      lt_prog_compiler_static='${wl}-a ${wl}archive'
7607      ;;
7608
7609    irix5* | irix6* | nonstopux*)
7610      lt_prog_compiler_wl='-Wl,'
7611      # PIC (with -KPIC) is the default.
7612      lt_prog_compiler_static='-non_shared'
7613      ;;
7614
7615    newsos6)
7616      lt_prog_compiler_pic='-KPIC'
7617      lt_prog_compiler_static='-Bstatic'
7618      ;;
7619
7620    linux*)
7621      case $cc_basename in
7622      icc* | ecc*)
7623        lt_prog_compiler_wl='-Wl,'
7624        lt_prog_compiler_pic='-KPIC'
7625        lt_prog_compiler_static='-static'
7626        ;;
7627      pgcc* | pgf77* | pgf90* | pgf95*)
7628        # Portland Group compilers (*not* the Pentium gcc compiler,
7629        # which looks to be a dead project)
7630        lt_prog_compiler_wl='-Wl,'
7631        lt_prog_compiler_pic='-fpic'
7632        lt_prog_compiler_static='-Bstatic'
7633        ;;
7634      ccc*)
7635        lt_prog_compiler_wl='-Wl,'
7636        # All Alpha code is PIC.
7637        lt_prog_compiler_static='-non_shared'
7638        ;;
7639      esac
7640      ;;
7641
7642    osf3* | osf4* | osf5*)
7643      lt_prog_compiler_wl='-Wl,'
7644      # All OSF/1 code is PIC.
7645      lt_prog_compiler_static='-non_shared'
7646      ;;
7647
7648    solaris*)
7649      lt_prog_compiler_pic='-KPIC'
7650      lt_prog_compiler_static='-Bstatic'
7651      case $cc_basename in
7652      f77* | f90* | f95*)
7653        lt_prog_compiler_wl='-Qoption ld ';;
7654      *)
7655        lt_prog_compiler_wl='-Wl,';;
7656      esac
7657      ;;
7658
7659    sunos4*)
7660      lt_prog_compiler_wl='-Qoption ld '
7661      lt_prog_compiler_pic='-PIC'
7662      lt_prog_compiler_static='-Bstatic'
7663      ;;
7664
7665    sysv4 | sysv4.2uw2* | sysv4.3*)
7666      lt_prog_compiler_wl='-Wl,'
7667      lt_prog_compiler_pic='-KPIC'
7668      lt_prog_compiler_static='-Bstatic'
7669      ;;
7670
7671    sysv4*MP*)
7672      if test -d /usr/nec ;then
7673        lt_prog_compiler_pic='-Kconform_pic'
7674        lt_prog_compiler_static='-Bstatic'
7675      fi
7676      ;;
7677
7678    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7679      lt_prog_compiler_wl='-Wl,'
7680      lt_prog_compiler_pic='-KPIC'
7681      lt_prog_compiler_static='-Bstatic'
7682      ;;
7683
7684    unicos*)
7685      lt_prog_compiler_wl='-Wl,'
7686      lt_prog_compiler_can_build_shared=no
7687      ;;
7688
7689    uts4*)
7690      lt_prog_compiler_pic='-pic'
7691      lt_prog_compiler_static='-Bstatic'
7692      ;;
7693
7694    *)
7695      lt_prog_compiler_can_build_shared=no
7696      ;;
7697    esac
7698  fi
7699
7700echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7701echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7702
7703#
7704# Check to make sure the PIC flag actually works.
7705#
7706if test -n "$lt_prog_compiler_pic"; then
7707
7708echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7709echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7710if test "${lt_prog_compiler_pic_works+set}" = set; then
7711  echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713  lt_prog_compiler_pic_works=no
7714  ac_outfile=conftest.$ac_objext
7715   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7716   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7717   # Insert the option either (1) after the last *FLAGS variable, or
7718   # (2) before a word containing "conftest.", or (3) at the end.
7719   # Note that $ac_compile itself does not contain backslashes and begins
7720   # with a dollar sign (not a hyphen), so the echo should work correctly.
7721   # The option is referenced via a variable to avoid confusing sed.
7722   lt_compile=`echo "$ac_compile" | $SED \
7723   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725   -e 's:$: $lt_compiler_flag:'`
7726   (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
7727   (eval "$lt_compile" 2>conftest.err)
7728   ac_status=$?
7729   cat conftest.err >&5
7730   echo "$as_me:7730: \$? = $ac_status" >&5
7731   if (exit $ac_status) && test -s "$ac_outfile"; then
7732     # The compiler can only warn and ignore the option if not recognized
7733     # So say no if there are warnings other than the usual output.
7734     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7735     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7736     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7737       lt_prog_compiler_pic_works=yes
7738     fi
7739   fi
7740   $rm conftest*
7741
7742fi
7743echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7744echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7745
7746if test x"$lt_prog_compiler_pic_works" = xyes; then
7747    case $lt_prog_compiler_pic in
7748     "" | " "*) ;;
7749     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7750     esac
7751else
7752    lt_prog_compiler_pic=
7753     lt_prog_compiler_can_build_shared=no
7754fi
7755
7756fi
7757case $host_os in
7758  # For platforms which do not support PIC, -DPIC is meaningless:
7759  *djgpp*)
7760    lt_prog_compiler_pic=
7761    ;;
7762  *)
7763    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7764    ;;
7765esac
7766
7767#
7768# Check to make sure the static flag actually works.
7769#
7770wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7771echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7772echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7773if test "${lt_prog_compiler_static_works+set}" = set; then
7774  echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776  lt_prog_compiler_static_works=no
7777   save_LDFLAGS="$LDFLAGS"
7778   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7779   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7780   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7781     # The linker can only warn and ignore the option if not recognized
7782     # So say no if there are warnings
7783     if test -s conftest.err; then
7784       # Append any errors to the config.log.
7785       cat conftest.err 1>&5
7786       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7787       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7788       if diff conftest.exp conftest.er2 >/dev/null; then
7789         lt_prog_compiler_static_works=yes
7790       fi
7791     else
7792       lt_prog_compiler_static_works=yes
7793     fi
7794   fi
7795   $rm conftest*
7796   LDFLAGS="$save_LDFLAGS"
7797
7798fi
7799echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7800echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7801
7802if test x"$lt_prog_compiler_static_works" = xyes; then
7803    :
7804else
7805    lt_prog_compiler_static=
7806fi
7807
7808
7809echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7810echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7811if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814  lt_cv_prog_compiler_c_o=no
7815   $rm -r conftest 2>/dev/null
7816   mkdir conftest
7817   cd conftest
7818   mkdir out
7819   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7820
7821   lt_compiler_flag="-o out/conftest2.$ac_objext"
7822   # Insert the option either (1) after the last *FLAGS variable, or
7823   # (2) before a word containing "conftest.", or (3) at the end.
7824   # Note that $ac_compile itself does not contain backslashes and begins
7825   # with a dollar sign (not a hyphen), so the echo should work correctly.
7826   lt_compile=`echo "$ac_compile" | $SED \
7827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829   -e 's:$: $lt_compiler_flag:'`
7830   (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831   (eval "$lt_compile" 2>out/conftest.err)
7832   ac_status=$?
7833   cat out/conftest.err >&5
7834   echo "$as_me:7834: \$? = $ac_status" >&5
7835   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7836   then
7837     # The compiler can only warn and ignore the option if not recognized
7838     # So say no if there are warnings
7839     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7840     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7841     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7842       lt_cv_prog_compiler_c_o=yes
7843     fi
7844   fi
7845   chmod u+w . 2>&5
7846   $rm conftest*
7847   # SGI C++ compiler will create directory out/ii_files/ for
7848   # template instantiation
7849   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7850   $rm out/* && rmdir out
7851   cd ..
7852   rmdir conftest
7853   $rm conftest*
7854
7855fi
7856echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7857echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7858
7859
7860hard_links="nottested"
7861if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7862  # do not overwrite the value of need_locks provided by the user
7863  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7864echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7865  hard_links=yes
7866  $rm conftest*
7867  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7868  touch conftest.a
7869  ln conftest.a conftest.b 2>&5 || hard_links=no
7870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7871  echo "$as_me:$LINENO: result: $hard_links" >&5
7872echo "${ECHO_T}$hard_links" >&6
7873  if test "$hard_links" = no; then
7874    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7875echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7876    need_locks=warn
7877  fi
7878else
7879  need_locks=no
7880fi
7881
7882echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7883echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7884
7885  runpath_var=
7886  allow_undefined_flag=
7887  enable_shared_with_static_runtimes=no
7888  archive_cmds=
7889  archive_expsym_cmds=
7890  old_archive_From_new_cmds=
7891  old_archive_from_expsyms_cmds=
7892  export_dynamic_flag_spec=
7893  whole_archive_flag_spec=
7894  thread_safe_flag_spec=
7895  hardcode_libdir_flag_spec=
7896  hardcode_libdir_flag_spec_ld=
7897  hardcode_libdir_separator=
7898  hardcode_direct=no
7899  hardcode_minus_L=no
7900  hardcode_shlibpath_var=unsupported
7901  link_all_deplibs=unknown
7902  hardcode_automatic=no
7903  module_cmds=
7904  module_expsym_cmds=
7905  always_export_symbols=no
7906  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7907  # include_expsyms should be a list of space-separated symbols to be *always*
7908  # included in the symbol list
7909  include_expsyms=
7910  # exclude_expsyms can be an extended regexp of symbols to exclude
7911  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7912  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7913  # as well as any symbol that contains `d'.
7914  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7915  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7916  # platforms (ab)use it in PIC code, but their linkers get confused if
7917  # the symbol is explicitly referenced.  Since portable code cannot
7918  # rely on this symbol name, it's probably fine to never include it in
7919  # preloaded symbol tables.
7920  extract_expsyms_cmds=
7921  # Just being paranoid about ensuring that cc_basename is set.
7922  for cc_temp in $compiler""; do
7923  case $cc_temp in
7924    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7925    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7926    \-*) ;;
7927    *) break;;
7928  esac
7929done
7930cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7931
7932  case $host_os in
7933  cygwin* | mingw* | pw32*)
7934    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7935    # When not using gcc, we currently assume that we are using
7936    # Microsoft Visual C++.
7937    if test "$GCC" != yes; then
7938      with_gnu_ld=no
7939    fi
7940    ;;
7941  interix*)
7942    # we just hope/assume this is gcc and not c89 (= MSVC++)
7943    with_gnu_ld=yes
7944    ;;
7945  openbsd*)
7946    with_gnu_ld=no
7947    ;;
7948  esac
7949
7950  ld_shlibs=yes
7951  if test "$with_gnu_ld" = yes; then
7952    # If archive_cmds runs LD, not CC, wlarc should be empty
7953    wlarc='${wl}'
7954
7955    # Set some defaults for GNU ld with shared library support. These
7956    # are reset later if shared libraries are not supported. Putting them
7957    # here allows them to be overridden if necessary.
7958    runpath_var=LD_RUN_PATH
7959    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7960    export_dynamic_flag_spec='${wl}--export-dynamic'
7961    # ancient GNU ld didn't support --whole-archive et. al.
7962    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7963        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7964      else
7965        whole_archive_flag_spec=
7966    fi
7967    supports_anon_versioning=no
7968    case `$LD -v 2>/dev/null` in
7969      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7970      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7971      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7972      *\ 2.11.*) ;; # other 2.11 versions
7973      *) supports_anon_versioning=yes ;;
7974    esac
7975
7976    # See if GNU ld supports shared libraries.
7977    case $host_os in
7978    aix3* | aix4* | aix5*)
7979      # On AIX/PPC, the GNU linker is very broken
7980      if test "$host_cpu" != ia64; then
7981        ld_shlibs=no
7982        cat <<EOF 1>&2
7983
7984*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7985*** to be unable to reliably create shared libraries on AIX.
7986*** Therefore, libtool is disabling shared libraries support.  If you
7987*** really care for shared libraries, you may want to modify your PATH
7988*** so that a non-GNU linker is found, and then restart.
7989
7990EOF
7991      fi
7992      ;;
7993
7994    amigaos*)
7995      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)'
7996      hardcode_libdir_flag_spec='-L$libdir'
7997      hardcode_minus_L=yes
7998
7999      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8000      # that the semantics of dynamic libraries on AmigaOS, at least up
8001      # to version 4, is to share data among multiple programs linked
8002      # with the same dynamic library.  Since this doesn't match the
8003      # behavior of shared libraries on other platforms, we can't use
8004      # them.
8005      ld_shlibs=no
8006      ;;
8007
8008    beos*)
8009      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010        allow_undefined_flag=unsupported
8011        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8012        # support --undefined.  This deserves some investigation.  FIXME
8013        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8014      else
8015        ld_shlibs=no
8016      fi
8017      ;;
8018
8019    cygwin* | mingw* | pw32*)
8020      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8021      # as there is no search path for DLLs.
8022      hardcode_libdir_flag_spec='-L$libdir'
8023      allow_undefined_flag=unsupported
8024      always_export_symbols=no
8025      enable_shared_with_static_runtimes=yes
8026      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8027
8028      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8029        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8030        # If the export-symbols file already is a .def file (1st line
8031        # is EXPORTS), use it as is; otherwise, prepend...
8032        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8033          cp $export_symbols $output_objdir/$soname.def;
8034        else
8035          echo EXPORTS > $output_objdir/$soname.def;
8036          cat $export_symbols >> $output_objdir/$soname.def;
8037        fi~
8038        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8039      else
8040        ld_shlibs=no
8041      fi
8042      ;;
8043
8044    interix3*)
8045      hardcode_direct=no
8046      hardcode_shlibpath_var=no
8047      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8048      export_dynamic_flag_spec='${wl}-E'
8049      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8050      # Instead, shared libraries are loaded at an image base (0x10000000 by
8051      # default) and relocated if they conflict, which is a slow very memory
8052      # consuming and fragmenting process.  To avoid this, we pick a random,
8053      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8054      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8055      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8056      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'
8057      ;;
8058
8059    linux*)
8060      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8061        tmp_addflag=
8062        case $cc_basename,$host_cpu in
8063        pgcc*)                          # Portland Group C compiler
8064          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'
8065          tmp_addflag=' $pic_flag'
8066          ;;
8067        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8068          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'
8069          tmp_addflag=' $pic_flag -Mnomain' ;;
8070        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8071          tmp_addflag=' -i_dynamic' ;;
8072        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8073          tmp_addflag=' -i_dynamic -nofor_main' ;;
8074        ifc* | ifort*)                  # Intel Fortran compiler
8075          tmp_addflag=' -nofor_main' ;;
8076        esac
8077        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078
8079        if test $supports_anon_versioning = yes; then
8080          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8081  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8082  $echo "local: *; };" >> $output_objdir/$libname.ver~
8083          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8084        fi
8085      else
8086        ld_shlibs=no
8087      fi
8088      ;;
8089
8090    netbsd*)
8091      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8092        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8093        wlarc=
8094      else
8095        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097      fi
8098      ;;
8099
8100    solaris*)
8101      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8102        ld_shlibs=no
8103        cat <<EOF 1>&2
8104
8105*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8106*** create shared libraries on Solaris systems.  Therefore, libtool
8107*** is disabling shared libraries support.  We urge you to upgrade GNU
8108*** binutils to release 2.9.1 or newer.  Another option is to modify
8109*** your PATH or compiler configuration so that the native linker is
8110*** used, and then restart.
8111
8112EOF
8113      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8115        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8116      else
8117        ld_shlibs=no
8118      fi
8119      ;;
8120
8121    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8122      case `$LD -v 2>&1` in
8123        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8124        ld_shlibs=no
8125        cat <<_LT_EOF 1>&2
8126
8127*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8128*** reliably create shared libraries on SCO systems.  Therefore, libtool
8129*** is disabling shared libraries support.  We urge you to upgrade GNU
8130*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8131*** your PATH or compiler configuration so that the native linker is
8132*** used, and then restart.
8133
8134_LT_EOF
8135        ;;
8136        *)
8137          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8138            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8139            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8140            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8141          else
8142            ld_shlibs=no
8143          fi
8144        ;;
8145      esac
8146      ;;
8147
8148    sunos4*)
8149      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8150      wlarc=
8151      hardcode_direct=yes
8152      hardcode_shlibpath_var=no
8153      ;;
8154
8155    *)
8156      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8157        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8159      else
8160        ld_shlibs=no
8161      fi
8162      ;;
8163    esac
8164
8165    if test "$ld_shlibs" = no; then
8166      runpath_var=
8167      hardcode_libdir_flag_spec=
8168      export_dynamic_flag_spec=
8169      whole_archive_flag_spec=
8170    fi
8171  else
8172    # PORTME fill in a description of your system's linker (not GNU ld)
8173    case $host_os in
8174    aix3*)
8175      allow_undefined_flag=unsupported
8176      always_export_symbols=yes
8177      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'
8178      # Note: this linker hardcodes the directories in LIBPATH if there
8179      # are no directories specified by -L.
8180      hardcode_minus_L=yes
8181      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8182        # Neither direct hardcoding nor static linking is supported with a
8183        # broken collect2.
8184        hardcode_direct=unsupported
8185      fi
8186      ;;
8187
8188    aix4* | aix5*)
8189      if test "$host_cpu" = ia64; then
8190        # On IA64, the linker does run time linking by default, so we don't
8191        # have to do anything special.
8192        aix_use_runtimelinking=no
8193        exp_sym_flag='-Bexport'
8194        no_entry_flag=""
8195      else
8196        # If we're using GNU nm, then we don't want the "-C" option.
8197        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8198        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8199          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'
8200        else
8201          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'
8202        fi
8203        aix_use_runtimelinking=no
8204
8205        # Test if we are trying to use run time linking or normal
8206        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8207        # need to do runtime linking.
8208        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8209          for ld_flag in $LDFLAGS; do
8210          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8211            aix_use_runtimelinking=yes
8212            break
8213          fi
8214          done
8215          ;;
8216        esac
8217
8218        exp_sym_flag='-bexport'
8219        no_entry_flag='-bnoentry'
8220      fi
8221
8222      # When large executables or shared objects are built, AIX ld can
8223      # have problems creating the table of contents.  If linking a library
8224      # or program results in "error TOC overflow" add -mminimal-toc to
8225      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8226      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8227
8228      archive_cmds=''
8229      hardcode_direct=yes
8230      hardcode_libdir_separator=':'
8231      link_all_deplibs=yes
8232
8233      if test "$GCC" = yes; then
8234        case $host_os in aix4.[012]|aix4.[012].*)
8235        # We only want to do this on AIX 4.2 and lower, the check
8236        # below for broken collect2 doesn't work under 4.3+
8237          collect2name=`${CC} -print-prog-name=collect2`
8238          if test -f "$collect2name" && \
8239           strings "$collect2name" | grep resolve_lib_name >/dev/null
8240          then
8241          # We have reworked collect2
8242          hardcode_direct=yes
8243          else
8244          # We have old collect2
8245          hardcode_direct=unsupported
8246          # It fails to find uninstalled libraries when the uninstalled
8247          # path is not listed in the libpath.  Setting hardcode_minus_L
8248          # to unsupported forces relinking
8249          hardcode_minus_L=yes
8250          hardcode_libdir_flag_spec='-L$libdir'
8251          hardcode_libdir_separator=
8252          fi
8253          ;;
8254        esac
8255        shared_flag='-shared'
8256        if test "$aix_use_runtimelinking" = yes; then
8257          shared_flag="$shared_flag "'${wl}-G'
8258        fi
8259      else
8260        # not using gcc
8261        if test "$host_cpu" = ia64; then
8262        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8263        # chokes on -Wl,-G. The following line is correct:
8264          shared_flag='-G'
8265        else
8266          if test "$aix_use_runtimelinking" = yes; then
8267            shared_flag='${wl}-G'
8268          else
8269            shared_flag='${wl}-bM:SRE'
8270          fi
8271        fi
8272      fi
8273
8274      # It seems that -bexpall does not export symbols beginning with
8275      # underscore (_), so it is better to generate a list of symbols to export.
8276      always_export_symbols=yes
8277      if test "$aix_use_runtimelinking" = yes; then
8278        # Warning - without using the other runtime loading flags (-brtl),
8279        # -berok will link without error, but may produce a broken library.
8280        allow_undefined_flag='-berok'
8281       # Determine the default libpath from the value encoded in an empty executable.
8282       cat >conftest.$ac_ext <<_ACEOF
8283/* confdefs.h.  */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h.  */
8288
8289int
8290main ()
8291{
8292
8293  ;
8294  return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299  (eval $ac_link) 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } &&
8306         { ac_try='test -z "$ac_c_werror_flag"
8307                         || test ! -s conftest.err'
8308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309  (eval $ac_try) 2>&5
8310  ac_status=$?
8311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312  (exit $ac_status); }; } &&
8313         { ac_try='test -s conftest$ac_exeext'
8314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315  (eval $ac_try) 2>&5
8316  ac_status=$?
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); }; }; then
8319
8320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8321}'`
8322# Check for a 64-bit object if we didn't find anything.
8323if 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; }
8324}'`; fi
8325else
8326  echo "$as_me: failed program was:" >&5
8327sed 's/^/| /' conftest.$ac_ext >&5
8328
8329fi
8330rm -f conftest.err conftest.$ac_objext \
8331      conftest$ac_exeext conftest.$ac_ext
8332if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8333
8334       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335        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"
8336       else
8337        if test "$host_cpu" = ia64; then
8338          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339          allow_undefined_flag="-z nodefs"
8340          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"
8341        else
8342         # Determine the default libpath from the value encoded in an empty executable.
8343         cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h.  */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h.  */
8349
8350int
8351main ()
8352{
8353
8354  ;
8355  return 0;
8356}
8357_ACEOF
8358rm -f conftest.$ac_objext conftest$ac_exeext
8359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360  (eval $ac_link) 2>conftest.er1
8361  ac_status=$?
8362  grep -v '^ *+' conftest.er1 >conftest.err
8363  rm -f conftest.er1
8364  cat conftest.err >&5
8365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366  (exit $ac_status); } &&
8367         { ac_try='test -z "$ac_c_werror_flag"
8368                         || test ! -s conftest.err'
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); }; } &&
8374         { ac_try='test -s conftest$ac_exeext'
8375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376  (eval $ac_try) 2>&5
8377  ac_status=$?
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); }; }; then
8380
8381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8382}'`
8383# Check for a 64-bit object if we didn't find anything.
8384if 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; }
8385}'`; fi
8386else
8387  echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390fi
8391rm -f conftest.err conftest.$ac_objext \
8392      conftest$ac_exeext conftest.$ac_ext
8393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8394
8395         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8396          # Warning - without using the other run time loading flags,
8397          # -berok will link without error, but may produce a broken library.
8398          no_undefined_flag=' ${wl}-bernotok'
8399          allow_undefined_flag=' ${wl}-berok'
8400          # Exported symbols can be pulled into shared objects from archives
8401          whole_archive_flag_spec='$convenience'
8402          archive_cmds_need_lc=yes
8403          # This is similar to how AIX traditionally builds its shared libraries.
8404          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'
8405        fi
8406      fi
8407      ;;
8408
8409    amigaos*)
8410      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)'
8411      hardcode_libdir_flag_spec='-L$libdir'
8412      hardcode_minus_L=yes
8413      # see comment about different semantics on the GNU ld section
8414      ld_shlibs=no
8415      ;;
8416
8417    bsdi[45]*)
8418      export_dynamic_flag_spec=-rdynamic
8419      ;;
8420
8421    cygwin* | mingw* | pw32*)
8422      # When not using gcc, we currently assume that we are using
8423      # Microsoft Visual C++.
8424      # hardcode_libdir_flag_spec is actually meaningless, as there is
8425      # no search path for DLLs.
8426      hardcode_libdir_flag_spec=' '
8427      allow_undefined_flag=unsupported
8428      # Tell ltmain to make .lib files, not .a files.
8429      libext=lib
8430      # Tell ltmain to make .dll files, not .so files.
8431      shrext_cmds=".dll"
8432      # FIXME: Setting linknames here is a bad hack.
8433      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8434      # The linker will automatically build a .lib file if we build a DLL.
8435      old_archive_From_new_cmds='true'
8436      # FIXME: Should let the user specify the lib program.
8437      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8438      fix_srcfile_path='`cygpath -w "$srcfile"`'
8439      enable_shared_with_static_runtimes=yes
8440      ;;
8441
8442    darwin* | rhapsody*)
8443      case $host_os in
8444        rhapsody* | darwin1.[012])
8445         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8446         ;;
8447       *) # Darwin 1.3 on
8448         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8449           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8450         else
8451           case ${MACOSX_DEPLOYMENT_TARGET} in
8452             10.[012])
8453               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8454               ;;
8455             10.*)
8456               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8457               ;;
8458           esac
8459         fi
8460         ;;
8461      esac
8462      archive_cmds_need_lc=no
8463      hardcode_direct=no
8464      hardcode_automatic=yes
8465      hardcode_shlibpath_var=unsupported
8466      whole_archive_flag_spec=''
8467      link_all_deplibs=yes
8468    if test "$GCC" = yes ; then
8469        output_verbose_link_cmd='echo'
8470        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8471      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8472      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8473      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}'
8474      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}'
8475    else
8476      case $cc_basename in
8477        xlc*)
8478         output_verbose_link_cmd='echo'
8479         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8480         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8481          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8482         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}'
8483          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}'
8484          ;;
8485       *)
8486         ld_shlibs=no
8487          ;;
8488      esac
8489    fi
8490      ;;
8491
8492    dgux*)
8493      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8494      hardcode_libdir_flag_spec='-L$libdir'
8495      hardcode_shlibpath_var=no
8496      ;;
8497
8498    freebsd1*)
8499      ld_shlibs=no
8500      ;;
8501
8502    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8503    # support.  Future versions do this automatically, but an explicit c++rt0.o
8504    # does not break anything, and helps significantly (at the cost of a little
8505    # extra space).
8506    freebsd2.2*)
8507      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8508      hardcode_libdir_flag_spec='-R$libdir'
8509      hardcode_direct=yes
8510      hardcode_shlibpath_var=no
8511      ;;
8512
8513    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8514    freebsd2*)
8515      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8516      hardcode_direct=yes
8517      hardcode_minus_L=yes
8518      hardcode_shlibpath_var=no
8519      ;;
8520
8521    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8522    freebsd* | kfreebsd*-gnu | dragonfly*)
8523      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8524      hardcode_libdir_flag_spec='-R$libdir'
8525      hardcode_direct=yes
8526      hardcode_shlibpath_var=no
8527      ;;
8528
8529    hpux9*)
8530      if test "$GCC" = yes; then
8531        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'
8532      else
8533        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'
8534      fi
8535      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8536      hardcode_libdir_separator=:
8537      hardcode_direct=yes
8538
8539      # hardcode_minus_L: Not really in the search PATH,
8540      # but as the default location of the library.
8541      hardcode_minus_L=yes
8542      export_dynamic_flag_spec='${wl}-E'
8543      ;;
8544
8545    hpux10*)
8546      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8547        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8548      else
8549        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8550      fi
8551      if test "$with_gnu_ld" = no; then
8552        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8553        hardcode_libdir_separator=:
8554
8555        hardcode_direct=yes
8556        export_dynamic_flag_spec='${wl}-E'
8557
8558        # hardcode_minus_L: Not really in the search PATH,
8559        # but as the default location of the library.
8560        hardcode_minus_L=yes
8561      fi
8562      ;;
8563
8564    hpux11*)
8565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8566        case $host_cpu in
8567        hppa*64*)
8568          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569          ;;
8570        ia64*)
8571          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8572          ;;
8573        *)
8574          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575          ;;
8576        esac
8577      else
8578        case $host_cpu in
8579        hppa*64*)
8580          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8581          ;;
8582        ia64*)
8583          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8584          ;;
8585        *)
8586          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8587          ;;
8588        esac
8589      fi
8590      if test "$with_gnu_ld" = no; then
8591        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8592        hardcode_libdir_separator=:
8593
8594        case $host_cpu in
8595        hppa*64*|ia64*)
8596          hardcode_libdir_flag_spec_ld='+b $libdir'
8597          hardcode_direct=no
8598          hardcode_shlibpath_var=no
8599          ;;
8600        *)
8601          hardcode_direct=yes
8602          export_dynamic_flag_spec='${wl}-E'
8603
8604          # hardcode_minus_L: Not really in the search PATH,
8605          # but as the default location of the library.
8606          hardcode_minus_L=yes
8607          ;;
8608        esac
8609      fi
8610      ;;
8611
8612    irix5* | irix6* | nonstopux*)
8613      if test "$GCC" = yes; then
8614        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'
8615      else
8616        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'
8617        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8618      fi
8619      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620      hardcode_libdir_separator=:
8621      link_all_deplibs=yes
8622      ;;
8623
8624    netbsd*)
8625      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8626        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8627      else
8628        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8629      fi
8630      hardcode_libdir_flag_spec='-R$libdir'
8631      hardcode_direct=yes
8632      hardcode_shlibpath_var=no
8633      ;;
8634
8635    newsos6)
8636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8637      hardcode_direct=yes
8638      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639      hardcode_libdir_separator=:
8640      hardcode_shlibpath_var=no
8641      ;;
8642
8643    openbsd*)
8644      hardcode_direct=yes
8645      hardcode_shlibpath_var=no
8646      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8647        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8648        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8649        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8650        export_dynamic_flag_spec='${wl}-E'
8651      else
8652       case $host_os in
8653         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8654           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655           hardcode_libdir_flag_spec='-R$libdir'
8656           ;;
8657         *)
8658           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8659           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8660           ;;
8661       esac
8662      fi
8663      ;;
8664
8665    os2*)
8666      hardcode_libdir_flag_spec='-L$libdir'
8667      hardcode_minus_L=yes
8668      allow_undefined_flag=unsupported
8669      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'
8670      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8671      ;;
8672
8673    osf3*)
8674      if test "$GCC" = yes; then
8675        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8676        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'
8677      else
8678        allow_undefined_flag=' -expect_unresolved \*'
8679        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'
8680      fi
8681      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8682      hardcode_libdir_separator=:
8683      ;;
8684
8685    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8686      if test "$GCC" = yes; then
8687        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8688        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'
8689        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690      else
8691        allow_undefined_flag=' -expect_unresolved \*'
8692        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'
8693        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8694        $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'
8695
8696        # Both c and cxx compiler support -rpath directly
8697        hardcode_libdir_flag_spec='-rpath $libdir'
8698      fi
8699      hardcode_libdir_separator=:
8700      ;;
8701
8702    solaris*)
8703      no_undefined_flag=' -z text'
8704      if test "$GCC" = yes; then
8705        wlarc='${wl}'
8706        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8707        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8708          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8709      else
8710        wlarc=''
8711        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8712        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8713        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8714      fi
8715      hardcode_libdir_flag_spec='-R$libdir'
8716      hardcode_shlibpath_var=no
8717      case $host_os in
8718      solaris2.[0-5] | solaris2.[0-5].*) ;;
8719      *)
8720        # The compiler driver will combine linker options so we
8721        # cannot just pass the convience library names through
8722        # without $wl, iff we do not link with $LD.
8723        # Luckily, gcc supports the same syntax we need for Sun Studio.
8724        # Supported since Solaris 2.6 (maybe 2.5.1?)
8725        case $wlarc in
8726        '')
8727          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8728        *)
8729          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' ;;
8730        esac ;;
8731      esac
8732      link_all_deplibs=yes
8733      ;;
8734
8735    sunos4*)
8736      if test "x$host_vendor" = xsequent; then
8737        # Use $CC to link under sequent, because it throws in some extra .o
8738        # files that make .init and .fini sections work.
8739        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740      else
8741        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8742      fi
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      hardcode_direct=yes
8745      hardcode_minus_L=yes
8746      hardcode_shlibpath_var=no
8747      ;;
8748
8749    sysv4)
8750      case $host_vendor in
8751        sni)
8752          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753          hardcode_direct=yes # is this really true???
8754        ;;
8755        siemens)
8756          ## LD is ld it makes a PLAMLIB
8757          ## CC just makes a GrossModule.
8758          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8759          reload_cmds='$CC -r -o $output$reload_objs'
8760          hardcode_direct=no
8761        ;;
8762        motorola)
8763          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8765        ;;
8766      esac
8767      runpath_var='LD_RUN_PATH'
8768      hardcode_shlibpath_var=no
8769      ;;
8770
8771    sysv4.3*)
8772      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773      hardcode_shlibpath_var=no
8774      export_dynamic_flag_spec='-Bexport'
8775      ;;
8776
8777    sysv4*MP*)
8778      if test -d /usr/nec; then
8779        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780        hardcode_shlibpath_var=no
8781        runpath_var=LD_RUN_PATH
8782        hardcode_runpath_var=yes
8783        ld_shlibs=yes
8784      fi
8785      ;;
8786
8787    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8788      no_undefined_flag='${wl}-z,text'
8789      archive_cmds_need_lc=no
8790      hardcode_shlibpath_var=no
8791      runpath_var='LD_RUN_PATH'
8792
8793      if test "$GCC" = yes; then
8794        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8795        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8796      else
8797        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8798        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8799      fi
8800      ;;
8801
8802    sysv5* | sco3.2v5* | sco5v6*)
8803      # Note: We can NOT use -z defs as we might desire, because we do not
8804      # link with -lc, and that would cause any symbols used from libc to
8805      # always be unresolved, which means just about no library would
8806      # ever link correctly.  If we're not using GNU ld we use -z text
8807      # though, which does catch some bad symbols but isn't as heavy-handed
8808      # as -z defs.
8809      no_undefined_flag='${wl}-z,text'
8810      allow_undefined_flag='${wl}-z,nodefs'
8811      archive_cmds_need_lc=no
8812      hardcode_shlibpath_var=no
8813      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8814      hardcode_libdir_separator=':'
8815      link_all_deplibs=yes
8816      export_dynamic_flag_spec='${wl}-Bexport'
8817      runpath_var='LD_RUN_PATH'
8818
8819      if test "$GCC" = yes; then
8820        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8821        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8822      else
8823        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8825      fi
8826      ;;
8827
8828    uts4*)
8829      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8830      hardcode_libdir_flag_spec='-L$libdir'
8831      hardcode_shlibpath_var=no
8832      ;;
8833
8834    *)
8835      ld_shlibs=no
8836      ;;
8837    esac
8838  fi
8839
8840echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8841echo "${ECHO_T}$ld_shlibs" >&6
8842test "$ld_shlibs" = no && can_build_shared=no
8843
8844#
8845# Do we need to explicitly link libc?
8846#
8847case "x$archive_cmds_need_lc" in
8848x|xyes)
8849  # Assume -lc should be added
8850  archive_cmds_need_lc=yes
8851
8852  if test "$enable_shared" = yes && test "$GCC" = yes; then
8853    case $archive_cmds in
8854    *'~'*)
8855      # FIXME: we may have to deal with multi-command sequences.
8856      ;;
8857    '$CC '*)
8858      # Test whether the compiler implicitly links with -lc since on some
8859      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8860      # to ld, don't add -lc before -lgcc.
8861      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8862echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8863      $rm conftest*
8864      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8865
8866      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8867  (eval $ac_compile) 2>&5
8868  ac_status=$?
8869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870  (exit $ac_status); } 2>conftest.err; then
8871        soname=conftest
8872        lib=conftest
8873        libobjs=conftest.$ac_objext
8874        deplibs=
8875        wl=$lt_prog_compiler_wl
8876        pic_flag=$lt_prog_compiler_pic
8877        compiler_flags=-v
8878        linker_flags=-v
8879        verstring=
8880        output_objdir=.
8881        libname=conftest
8882        lt_save_allow_undefined_flag=$allow_undefined_flag
8883        allow_undefined_flag=
8884        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8885  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8886  ac_status=$?
8887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888  (exit $ac_status); }
8889        then
8890          archive_cmds_need_lc=no
8891        else
8892          archive_cmds_need_lc=yes
8893        fi
8894        allow_undefined_flag=$lt_save_allow_undefined_flag
8895      else
8896        cat conftest.err 1>&5
8897      fi
8898      $rm conftest*
8899      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8900echo "${ECHO_T}$archive_cmds_need_lc" >&6
8901      ;;
8902    esac
8903  fi
8904  ;;
8905esac
8906
8907echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8908echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8909library_names_spec=
8910libname_spec='lib$name'
8911soname_spec=
8912shrext_cmds=".so"
8913postinstall_cmds=
8914postuninstall_cmds=
8915finish_cmds=
8916finish_eval=
8917shlibpath_var=
8918shlibpath_overrides_runpath=unknown
8919version_type=none
8920dynamic_linker="$host_os ld.so"
8921sys_lib_dlsearch_path_spec="/lib /usr/lib"
8922if test "$GCC" = yes; then
8923  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8924  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8925    # if the path contains ";" then we assume it to be the separator
8926    # otherwise default to the standard path separator (i.e. ":") - it is
8927    # assumed that no part of a normal pathname contains ";" but that should
8928    # okay in the real world where ";" in dirpaths is itself problematic.
8929    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8930  else
8931    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8932  fi
8933else
8934  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8935fi
8936need_lib_prefix=unknown
8937hardcode_into_libs=no
8938
8939# when you set need_version to no, make sure it does not cause -set_version
8940# flags to be left without arguments
8941need_version=unknown
8942
8943case $host_os in
8944aix3*)
8945  version_type=linux
8946  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8947  shlibpath_var=LIBPATH
8948
8949  # AIX 3 has no versioning support, so we append a major version to the name.
8950  soname_spec='${libname}${release}${shared_ext}$major'
8951  ;;
8952
8953aix4* | aix5*)
8954  version_type=linux
8955  need_lib_prefix=no
8956  need_version=no
8957  hardcode_into_libs=yes
8958  if test "$host_cpu" = ia64; then
8959    # AIX 5 supports IA64
8960    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8961    shlibpath_var=LD_LIBRARY_PATH
8962  else
8963    # With GCC up to 2.95.x, collect2 would create an import file
8964    # for dependence libraries.  The import file would start with
8965    # the line `#! .'.  This would cause the generated library to
8966    # depend on `.', always an invalid library.  This was fixed in
8967    # development snapshots of GCC prior to 3.0.
8968    case $host_os in
8969      aix4 | aix4.[01] | aix4.[01].*)
8970      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8971           echo ' yes '
8972           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8973        :
8974      else
8975        can_build_shared=no
8976      fi
8977      ;;
8978    esac
8979    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8980    # soname into executable. Probably we can add versioning support to
8981    # collect2, so additional links can be useful in future.
8982    if test "$aix_use_runtimelinking" = yes; then
8983      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8984      # instead of lib<name>.a to let people know that these are not
8985      # typical AIX shared libraries.
8986      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987    else
8988      # We preserve .a as extension for shared libraries through AIX4.2
8989      # and later when we are not doing run time linking.
8990      library_names_spec='${libname}${release}.a $libname.a'
8991      soname_spec='${libname}${release}${shared_ext}$major'
8992    fi
8993    shlibpath_var=LIBPATH
8994  fi
8995  ;;
8996
8997amigaos*)
8998  library_names_spec='$libname.ixlibrary $libname.a'
8999  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9000  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'
9001  ;;
9002
9003beos*)
9004  library_names_spec='${libname}${shared_ext}'
9005  dynamic_linker="$host_os ld.so"
9006  shlibpath_var=LIBRARY_PATH
9007  ;;
9008
9009bsdi[45]*)
9010  version_type=linux
9011  need_version=no
9012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013  soname_spec='${libname}${release}${shared_ext}$major'
9014  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9017  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9018  # the default ld.so.conf also contains /usr/contrib/lib and
9019  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9020  # libtool to hard-code these into programs
9021  ;;
9022
9023cygwin* | mingw* | pw32*)
9024  version_type=windows
9025  shrext_cmds=".dll"
9026  need_version=no
9027  need_lib_prefix=no
9028
9029  case $GCC,$host_os in
9030  yes,cygwin* | yes,mingw* | yes,pw32*)
9031    library_names_spec='$libname.dll.a'
9032    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9033    postinstall_cmds='base_file=`basename \${file}`~
9034      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9035      dldir=$destdir/`dirname \$dlpath`~
9036      test -d \$dldir || mkdir -p \$dldir~
9037      $install_prog $dir/$dlname \$dldir/$dlname~
9038      chmod a+x \$dldir/$dlname'
9039    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9040      dlpath=$dir/\$dldll~
9041       $rm \$dlpath'
9042    shlibpath_overrides_runpath=yes
9043
9044    case $host_os in
9045    cygwin*)
9046      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9047      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9048      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9049      ;;
9050    mingw*)
9051      # MinGW DLLs use traditional 'lib' prefix
9052      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9053      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9054      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9055        # It is most probably a Windows format PATH printed by
9056        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9057        # path with ; separators, and with drive letters. We can handle the
9058        # drive letters (cygwin fileutils understands them), so leave them,
9059        # especially as we might pass files found there to a mingw objdump,
9060        # which wouldn't understand a cygwinified path. Ahh.
9061        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9062      else
9063        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9064      fi
9065      ;;
9066    pw32*)
9067      # pw32 DLLs use 'pw' prefix rather than 'lib'
9068      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9069      ;;
9070    esac
9071    ;;
9072
9073  *)
9074    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9075    ;;
9076  esac
9077  dynamic_linker='Win32 ld.exe'
9078  # FIXME: first we should search . and the directory the executable is in
9079  shlibpath_var=PATH
9080  ;;
9081
9082darwin* | rhapsody*)
9083  dynamic_linker="$host_os dyld"
9084  version_type=darwin
9085  need_lib_prefix=no
9086  need_version=no
9087  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9088  soname_spec='${libname}${release}${major}$shared_ext'
9089  shlibpath_overrides_runpath=yes
9090  shlibpath_var=DYLD_LIBRARY_PATH
9091  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9092  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9093  if test "$GCC" = yes; then
9094    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"`
9095  else
9096    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9097  fi
9098  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9099  ;;
9100
9101dgux*)
9102  version_type=linux
9103  need_lib_prefix=no
9104  need_version=no
9105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9106  soname_spec='${libname}${release}${shared_ext}$major'
9107  shlibpath_var=LD_LIBRARY_PATH
9108  ;;
9109
9110freebsd1*)
9111  dynamic_linker=no
9112  ;;
9113
9114kfreebsd*-gnu)
9115  version_type=linux
9116  need_lib_prefix=no
9117  need_version=no
9118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9119  soname_spec='${libname}${release}${shared_ext}$major'
9120  shlibpath_var=LD_LIBRARY_PATH
9121  shlibpath_overrides_runpath=no
9122  hardcode_into_libs=yes
9123  dynamic_linker='GNU ld.so'
9124  ;;
9125
9126freebsd* | dragonfly*)
9127  # DragonFly does not have aout.  When/if they implement a new
9128  # versioning mechanism, adjust this.
9129  if test -x /usr/bin/objformat; then
9130    objformat=`/usr/bin/objformat`
9131  else
9132    case $host_os in
9133    freebsd[123]*) objformat=aout ;;
9134    *) objformat=elf ;;
9135    esac
9136  fi
9137  version_type=freebsd-$objformat
9138  case $version_type in
9139    freebsd-elf*)
9140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9141      need_version=no
9142      need_lib_prefix=no
9143      ;;
9144    freebsd-*)
9145      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9146      need_version=yes
9147      ;;
9148  esac
9149  shlibpath_var=LD_LIBRARY_PATH
9150  case $host_os in
9151  freebsd2*)
9152    shlibpath_overrides_runpath=yes
9153    ;;
9154  freebsd3.[01]* | freebsdelf3.[01]*)
9155    shlibpath_overrides_runpath=yes
9156    hardcode_into_libs=yes
9157    ;;
9158  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9159  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9160    shlibpath_overrides_runpath=no
9161    hardcode_into_libs=yes
9162    ;;
9163  freebsd*) # from 4.6 on
9164    shlibpath_overrides_runpath=yes
9165    hardcode_into_libs=yes
9166    ;;
9167  esac
9168  ;;
9169
9170gnu*)
9171  version_type=linux
9172  need_lib_prefix=no
9173  need_version=no
9174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9175  soname_spec='${libname}${release}${shared_ext}$major'
9176  shlibpath_var=LD_LIBRARY_PATH
9177  hardcode_into_libs=yes
9178  ;;
9179
9180hpux9* | hpux10* | hpux11*)
9181  # Give a soname corresponding to the major version so that dld.sl refuses to
9182  # link against other versions.
9183  version_type=sunos
9184  need_lib_prefix=no
9185  need_version=no
9186  case $host_cpu in
9187  ia64*)
9188    shrext_cmds='.so'
9189    hardcode_into_libs=yes
9190    dynamic_linker="$host_os dld.so"
9191    shlibpath_var=LD_LIBRARY_PATH
9192    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194    soname_spec='${libname}${release}${shared_ext}$major'
9195    if test "X$HPUX_IA64_MODE" = X32; then
9196      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9197    else
9198      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9199    fi
9200    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9201    ;;
9202   hppa*64*)
9203     shrext_cmds='.sl'
9204     hardcode_into_libs=yes
9205     dynamic_linker="$host_os dld.sl"
9206     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9207     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209     soname_spec='${libname}${release}${shared_ext}$major'
9210     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9211     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9212     ;;
9213   *)
9214    shrext_cmds='.sl'
9215    dynamic_linker="$host_os dld.sl"
9216    shlibpath_var=SHLIB_PATH
9217    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219    soname_spec='${libname}${release}${shared_ext}$major'
9220    ;;
9221  esac
9222  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9223  postinstall_cmds='chmod 555 $lib'
9224  ;;
9225
9226interix3*)
9227  version_type=linux
9228  need_lib_prefix=no
9229  need_version=no
9230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9231  soname_spec='${libname}${release}${shared_ext}$major'
9232  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9233  shlibpath_var=LD_LIBRARY_PATH
9234  shlibpath_overrides_runpath=no
9235  hardcode_into_libs=yes
9236  ;;
9237
9238irix5* | irix6* | nonstopux*)
9239  case $host_os in
9240    nonstopux*) version_type=nonstopux ;;
9241    *)
9242        if test "$lt_cv_prog_gnu_ld" = yes; then
9243                version_type=linux
9244        else
9245                version_type=irix
9246        fi ;;
9247  esac
9248  need_lib_prefix=no
9249  need_version=no
9250  soname_spec='${libname}${release}${shared_ext}$major'
9251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9252  case $host_os in
9253  irix5* | nonstopux*)
9254    libsuff= shlibsuff=
9255    ;;
9256  *)
9257    case $LD in # libtool.m4 will add one of these switches to LD
9258    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9259      libsuff= shlibsuff= libmagic=32-bit;;
9260    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9261      libsuff=32 shlibsuff=N32 libmagic=N32;;
9262    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9263      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9264    *) libsuff= shlibsuff= libmagic=never-match;;
9265    esac
9266    ;;
9267  esac
9268  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9269  shlibpath_overrides_runpath=no
9270  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9271  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9272  hardcode_into_libs=yes
9273  ;;
9274
9275# No shared lib support for Linux oldld, aout, or coff.
9276linux*oldld* | linux*aout* | linux*coff*)
9277  dynamic_linker=no
9278  ;;
9279
9280# This must be Linux ELF.
9281linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9288  shlibpath_var=LD_LIBRARY_PATH
9289  shlibpath_overrides_runpath=no
9290  # This implies no fast_install, which is unacceptable.
9291  # Some rework will be needed to allow for fast_install
9292  # before this can be enabled.
9293  hardcode_into_libs=yes
9294
9295  # Append ld.so.conf contents to the search path
9296  if test -f /etc/ld.so.conf; then
9297    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' ' '`
9298    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9299  fi
9300
9301  # We used to test for /lib/ld.so.1 and disable shared libraries on
9302  # powerpc, because MkLinux only supported shared libraries with the
9303  # GNU dynamic linker.  Since this was broken with cross compilers,
9304  # most powerpc-linux boxes support dynamic linking these days and
9305  # people can always --disable-shared, the test was removed, and we
9306  # assume the GNU/Linux dynamic linker is in use.
9307  dynamic_linker='GNU/Linux ld.so'
9308  ;;
9309
9310knetbsd*-gnu)
9311  version_type=linux
9312  need_lib_prefix=no
9313  need_version=no
9314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9315  soname_spec='${libname}${release}${shared_ext}$major'
9316  shlibpath_var=LD_LIBRARY_PATH
9317  shlibpath_overrides_runpath=no
9318  hardcode_into_libs=yes
9319  dynamic_linker='GNU ld.so'
9320  ;;
9321
9322netbsd*)
9323  version_type=sunos
9324  need_lib_prefix=no
9325  need_version=no
9326  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9328    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9329    dynamic_linker='NetBSD (a.out) ld.so'
9330  else
9331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9332    soname_spec='${libname}${release}${shared_ext}$major'
9333    dynamic_linker='NetBSD ld.elf_so'
9334  fi
9335  shlibpath_var=LD_LIBRARY_PATH
9336  shlibpath_overrides_runpath=yes
9337  hardcode_into_libs=yes
9338  ;;
9339
9340newsos6)
9341  version_type=linux
9342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343  shlibpath_var=LD_LIBRARY_PATH
9344  shlibpath_overrides_runpath=yes
9345  ;;
9346
9347nto-qnx*)
9348  version_type=linux
9349  need_lib_prefix=no
9350  need_version=no
9351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352  soname_spec='${libname}${release}${shared_ext}$major'
9353  shlibpath_var=LD_LIBRARY_PATH
9354  shlibpath_overrides_runpath=yes
9355  ;;
9356
9357openbsd*)
9358  version_type=sunos
9359  sys_lib_dlsearch_path_spec="/usr/lib"
9360  need_lib_prefix=no
9361  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9362  case $host_os in
9363    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9364    *)                         need_version=no  ;;
9365  esac
9366  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9368  shlibpath_var=LD_LIBRARY_PATH
9369  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9370    case $host_os in
9371      openbsd2.[89] | openbsd2.[89].*)
9372        shlibpath_overrides_runpath=no
9373        ;;
9374      *)
9375        shlibpath_overrides_runpath=yes
9376        ;;
9377      esac
9378  else
9379    shlibpath_overrides_runpath=yes
9380  fi
9381  ;;
9382
9383os2*)
9384  libname_spec='$name'
9385  shrext_cmds=".dll"
9386  need_lib_prefix=no
9387  library_names_spec='$libname${shared_ext} $libname.a'
9388  dynamic_linker='OS/2 ld.exe'
9389  shlibpath_var=LIBPATH
9390  ;;
9391
9392osf3* | osf4* | osf5*)
9393  version_type=osf
9394  need_lib_prefix=no
9395  need_version=no
9396  soname_spec='${libname}${release}${shared_ext}$major'
9397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9398  shlibpath_var=LD_LIBRARY_PATH
9399  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9400  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9401  ;;
9402
9403solaris*)
9404  version_type=linux
9405  need_lib_prefix=no
9406  need_version=no
9407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408  soname_spec='${libname}${release}${shared_ext}$major'
9409  shlibpath_var=LD_LIBRARY_PATH
9410  shlibpath_overrides_runpath=yes
9411  hardcode_into_libs=yes
9412  # ldd complains unless libraries are executable
9413  postinstall_cmds='chmod +x $lib'
9414  ;;
9415
9416sunos4*)
9417  version_type=sunos
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9419  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9420  shlibpath_var=LD_LIBRARY_PATH
9421  shlibpath_overrides_runpath=yes
9422  if test "$with_gnu_ld" = yes; then
9423    need_lib_prefix=no
9424  fi
9425  need_version=yes
9426  ;;
9427
9428sysv4 | sysv4.3*)
9429  version_type=linux
9430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431  soname_spec='${libname}${release}${shared_ext}$major'
9432  shlibpath_var=LD_LIBRARY_PATH
9433  case $host_vendor in
9434    sni)
9435      shlibpath_overrides_runpath=no
9436      need_lib_prefix=no
9437      export_dynamic_flag_spec='${wl}-Blargedynsym'
9438      runpath_var=LD_RUN_PATH
9439      ;;
9440    siemens)
9441      need_lib_prefix=no
9442      ;;
9443    motorola)
9444      need_lib_prefix=no
9445      need_version=no
9446      shlibpath_overrides_runpath=no
9447      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9448      ;;
9449  esac
9450  ;;
9451
9452sysv4*MP*)
9453  if test -d /usr/nec ;then
9454    version_type=linux
9455    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9456    soname_spec='$libname${shared_ext}.$major'
9457    shlibpath_var=LD_LIBRARY_PATH
9458  fi
9459  ;;
9460
9461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9462  version_type=freebsd-elf
9463  need_lib_prefix=no
9464  need_version=no
9465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9466  soname_spec='${libname}${release}${shared_ext}$major'
9467  shlibpath_var=LD_LIBRARY_PATH
9468  hardcode_into_libs=yes
9469  if test "$with_gnu_ld" = yes; then
9470    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9471    shlibpath_overrides_runpath=no
9472  else
9473    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9474    shlibpath_overrides_runpath=yes
9475    case $host_os in
9476      sco3.2v5*)
9477        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9478        ;;
9479    esac
9480  fi
9481  sys_lib_dlsearch_path_spec='/usr/lib'
9482  ;;
9483
9484uts4*)
9485  version_type=linux
9486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  shlibpath_var=LD_LIBRARY_PATH
9489  ;;
9490
9491*)
9492  dynamic_linker=no
9493  ;;
9494esac
9495echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9496echo "${ECHO_T}$dynamic_linker" >&6
9497test "$dynamic_linker" = no && can_build_shared=no
9498
9499variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9500if test "$GCC" = yes; then
9501  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9502fi
9503
9504echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9505echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9506hardcode_action=
9507if test -n "$hardcode_libdir_flag_spec" || \
9508   test -n "$runpath_var" || \
9509   test "X$hardcode_automatic" = "Xyes" ; then
9510
9511  # We can hardcode non-existant directories.
9512  if test "$hardcode_direct" != no &&
9513     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9514     # have to relink, otherwise we might link with an installed library
9515     # when we should be linking with a yet-to-be-installed one
9516     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9517     test "$hardcode_minus_L" != no; then
9518    # Linking always hardcodes the temporary library directory.
9519    hardcode_action=relink
9520  else
9521    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9522    hardcode_action=immediate
9523  fi
9524else
9525  # We cannot hardcode anything, or else we can only hardcode existing
9526  # directories.
9527  hardcode_action=unsupported
9528fi
9529echo "$as_me:$LINENO: result: $hardcode_action" >&5
9530echo "${ECHO_T}$hardcode_action" >&6
9531
9532if test "$hardcode_action" = relink; then
9533  # Fast installation is not supported
9534  enable_fast_install=no
9535elif test "$shlibpath_overrides_runpath" = yes ||
9536     test "$enable_shared" = no; then
9537  # Fast installation is not necessary
9538  enable_fast_install=needless
9539fi
9540
9541striplib=
9542old_striplib=
9543echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9544echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9545if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9546  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9547  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9548  echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550else
9551# FIXME - insert some real tests, host_os isn't really good enough
9552  case $host_os in
9553   darwin*)
9554       if test -n "$STRIP" ; then
9555         striplib="$STRIP -x"
9556         echo "$as_me:$LINENO: result: yes" >&5
9557echo "${ECHO_T}yes" >&6
9558       else
9559  echo "$as_me:$LINENO: result: no" >&5
9560echo "${ECHO_T}no" >&6
9561fi
9562       ;;
9563   *)
9564  echo "$as_me:$LINENO: result: no" >&5
9565echo "${ECHO_T}no" >&6
9566    ;;
9567  esac
9568fi
9569
9570if test "x$enable_dlopen" != xyes; then
9571  enable_dlopen=unknown
9572  enable_dlopen_self=unknown
9573  enable_dlopen_self_static=unknown
9574else
9575  lt_cv_dlopen=no
9576  lt_cv_dlopen_libs=
9577
9578  case $host_os in
9579  beos*)
9580    lt_cv_dlopen="load_add_on"
9581    lt_cv_dlopen_libs=
9582    lt_cv_dlopen_self=yes
9583    ;;
9584
9585  mingw* | pw32*)
9586    lt_cv_dlopen="LoadLibrary"
9587    lt_cv_dlopen_libs=
9588   ;;
9589
9590  cygwin*)
9591    lt_cv_dlopen="dlopen"
9592    lt_cv_dlopen_libs=
9593   ;;
9594
9595  darwin*)
9596  # if libdl is installed we need to link against it
9597    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9598echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9599if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9600  echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602  ac_check_lib_save_LIBS=$LIBS
9603LIBS="-ldl  $LIBS"
9604cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h.  */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h.  */
9610
9611/* Override any gcc2 internal prototype to avoid an error.  */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615/* We use char because int might match the return type of a gcc2
9616   builtin and then its argument prototype would still apply.  */
9617char dlopen ();
9618int
9619main ()
9620{
9621dlopen ();
9622  ;
9623  return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628  (eval $ac_link) 2>conftest.er1
9629  ac_status=$?
9630  grep -v '^ *+' conftest.er1 >conftest.err
9631  rm -f conftest.er1
9632  cat conftest.err >&5
9633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634  (exit $ac_status); } &&
9635         { ac_try='test -z "$ac_c_werror_flag"
9636                         || test ! -s conftest.err'
9637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638  (eval $ac_try) 2>&5
9639  ac_status=$?
9640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641  (exit $ac_status); }; } &&
9642         { ac_try='test -s conftest$ac_exeext'
9643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644  (eval $ac_try) 2>&5
9645  ac_status=$?
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); }; }; then
9648  ac_cv_lib_dl_dlopen=yes
9649else
9650  echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
9653ac_cv_lib_dl_dlopen=no
9654fi
9655rm -f conftest.err conftest.$ac_objext \
9656      conftest$ac_exeext conftest.$ac_ext
9657LIBS=$ac_check_lib_save_LIBS
9658fi
9659echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9661if test $ac_cv_lib_dl_dlopen = yes; then
9662  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9663else
9664
9665    lt_cv_dlopen="dyld"
9666    lt_cv_dlopen_libs=
9667    lt_cv_dlopen_self=yes
9668
9669fi
9670
9671   ;;
9672
9673  *)
9674    echo "$as_me:$LINENO: checking for shl_load" >&5
9675echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9676if test "${ac_cv_func_shl_load+set}" = set; then
9677  echo $ECHO_N "(cached) $ECHO_C" >&6
9678else
9679  cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h.  */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h.  */
9685/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9687#define shl_load innocuous_shl_load
9688
9689/* System header to define __stub macros and hopefully few prototypes,
9690    which can conflict with char shl_load (); below.
9691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9692    <limits.h> exists even on freestanding compilers.  */
9693
9694#ifdef __STDC__
9695# include <limits.h>
9696#else
9697# include <assert.h>
9698#endif
9699
9700#undef shl_load
9701
9702/* Override any gcc2 internal prototype to avoid an error.  */
9703#ifdef __cplusplus
9704extern "C"
9705{
9706#endif
9707/* We use char because int might match the return type of a gcc2
9708   builtin and then its argument prototype would still apply.  */
9709char shl_load ();
9710/* The GNU C library defines this for functions which it implements
9711    to always fail with ENOSYS.  Some functions are actually named
9712    something starting with __ and the normal name is an alias.  */
9713#if defined (__stub_shl_load) || defined (__stub___shl_load)
9714choke me
9715#else
9716char (*f) () = shl_load;
9717#endif
9718#ifdef __cplusplus
9719}
9720#endif
9721
9722int
9723main ()
9724{
9725return f != shl_load;
9726  ;
9727  return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
9731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732  (eval $ac_link) 2>conftest.er1
9733  ac_status=$?
9734  grep -v '^ *+' conftest.er1 >conftest.err
9735  rm -f conftest.er1
9736  cat conftest.err >&5
9737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738  (exit $ac_status); } &&
9739         { ac_try='test -z "$ac_c_werror_flag"
9740                         || test ! -s conftest.err'
9741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742  (eval $ac_try) 2>&5
9743  ac_status=$?
9744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745  (exit $ac_status); }; } &&
9746         { ac_try='test -s conftest$ac_exeext'
9747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748  (eval $ac_try) 2>&5
9749  ac_status=$?
9750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751  (exit $ac_status); }; }; then
9752  ac_cv_func_shl_load=yes
9753else
9754  echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757ac_cv_func_shl_load=no
9758fi
9759rm -f conftest.err conftest.$ac_objext \
9760      conftest$ac_exeext conftest.$ac_ext
9761fi
9762echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9763echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9764if test $ac_cv_func_shl_load = yes; then
9765  lt_cv_dlopen="shl_load"
9766else
9767  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9768echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9769if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9770  echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772  ac_check_lib_save_LIBS=$LIBS
9773LIBS="-ldld  $LIBS"
9774cat >conftest.$ac_ext <<_ACEOF
9775/* confdefs.h.  */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
9779/* end confdefs.h.  */
9780
9781/* Override any gcc2 internal prototype to avoid an error.  */
9782#ifdef __cplusplus
9783extern "C"
9784#endif
9785/* We use char because int might match the return type of a gcc2
9786   builtin and then its argument prototype would still apply.  */
9787char shl_load ();
9788int
9789main ()
9790{
9791shl_load ();
9792  ;
9793  return 0;
9794}
9795_ACEOF
9796rm -f conftest.$ac_objext conftest$ac_exeext
9797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9798  (eval $ac_link) 2>conftest.er1
9799  ac_status=$?
9800  grep -v '^ *+' conftest.er1 >conftest.err
9801  rm -f conftest.er1
9802  cat conftest.err >&5
9803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804  (exit $ac_status); } &&
9805         { ac_try='test -z "$ac_c_werror_flag"
9806                         || test ! -s conftest.err'
9807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808  (eval $ac_try) 2>&5
9809  ac_status=$?
9810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811  (exit $ac_status); }; } &&
9812         { ac_try='test -s conftest$ac_exeext'
9813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814  (eval $ac_try) 2>&5
9815  ac_status=$?
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); }; }; then
9818  ac_cv_lib_dld_shl_load=yes
9819else
9820  echo "$as_me: failed program was:" >&5
9821sed 's/^/| /' conftest.$ac_ext >&5
9822
9823ac_cv_lib_dld_shl_load=no
9824fi
9825rm -f conftest.err conftest.$ac_objext \
9826      conftest$ac_exeext conftest.$ac_ext
9827LIBS=$ac_check_lib_save_LIBS
9828fi
9829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9831if test $ac_cv_lib_dld_shl_load = yes; then
9832  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9833else
9834  echo "$as_me:$LINENO: checking for dlopen" >&5
9835echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9836if test "${ac_cv_func_dlopen+set}" = set; then
9837  echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839  cat >conftest.$ac_ext <<_ACEOF
9840/* confdefs.h.  */
9841_ACEOF
9842cat confdefs.h >>conftest.$ac_ext
9843cat >>conftest.$ac_ext <<_ACEOF
9844/* end confdefs.h.  */
9845/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9847#define dlopen innocuous_dlopen
9848
9849/* System header to define __stub macros and hopefully few prototypes,
9850    which can conflict with char dlopen (); below.
9851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9852    <limits.h> exists even on freestanding compilers.  */
9853
9854#ifdef __STDC__
9855# include <limits.h>
9856#else
9857# include <assert.h>
9858#endif
9859
9860#undef dlopen
9861
9862/* Override any gcc2 internal prototype to avoid an error.  */
9863#ifdef __cplusplus
9864extern "C"
9865{
9866#endif
9867/* We use char because int might match the return type of a gcc2
9868   builtin and then its argument prototype would still apply.  */
9869char dlopen ();
9870/* The GNU C library defines this for functions which it implements
9871    to always fail with ENOSYS.  Some functions are actually named
9872    something starting with __ and the normal name is an alias.  */
9873#if defined (__stub_dlopen) || defined (__stub___dlopen)
9874choke me
9875#else
9876char (*f) () = dlopen;
9877#endif
9878#ifdef __cplusplus
9879}
9880#endif
9881
9882int
9883main ()
9884{
9885return f != dlopen;
9886  ;
9887  return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892  (eval $ac_link) 2>conftest.er1
9893  ac_status=$?
9894  grep -v '^ *+' conftest.er1 >conftest.err
9895  rm -f conftest.er1
9896  cat conftest.err >&5
9897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898  (exit $ac_status); } &&
9899         { ac_try='test -z "$ac_c_werror_flag"
9900                         || test ! -s conftest.err'
9901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902  (eval $ac_try) 2>&5
9903  ac_status=$?
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); }; } &&
9906         { ac_try='test -s conftest$ac_exeext'
9907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908  (eval $ac_try) 2>&5
9909  ac_status=$?
9910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911  (exit $ac_status); }; }; then
9912  ac_cv_func_dlopen=yes
9913else
9914  echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917ac_cv_func_dlopen=no
9918fi
9919rm -f conftest.err conftest.$ac_objext \
9920      conftest$ac_exeext conftest.$ac_ext
9921fi
9922echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9923echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9924if test $ac_cv_func_dlopen = yes; then
9925  lt_cv_dlopen="dlopen"
9926else
9927  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9928echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9929if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9930  echo $ECHO_N "(cached) $ECHO_C" >&6
9931else
9932  ac_check_lib_save_LIBS=$LIBS
9933LIBS="-ldl  $LIBS"
9934cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h.  */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h.  */
9940
9941/* Override any gcc2 internal prototype to avoid an error.  */
9942#ifdef __cplusplus
9943extern "C"
9944#endif
9945/* We use char because int might match the return type of a gcc2
9946   builtin and then its argument prototype would still apply.  */
9947char dlopen ();
9948int
9949main ()
9950{
9951dlopen ();
9952  ;
9953  return 0;
9954}
9955_ACEOF
9956rm -f conftest.$ac_objext conftest$ac_exeext
9957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958  (eval $ac_link) 2>conftest.er1
9959  ac_status=$?
9960  grep -v '^ *+' conftest.er1 >conftest.err
9961  rm -f conftest.er1
9962  cat conftest.err >&5
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); } &&
9965         { ac_try='test -z "$ac_c_werror_flag"
9966                         || test ! -s conftest.err'
9967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968  (eval $ac_try) 2>&5
9969  ac_status=$?
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); }; } &&
9972         { ac_try='test -s conftest$ac_exeext'
9973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974  (eval $ac_try) 2>&5
9975  ac_status=$?
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); }; }; then
9978  ac_cv_lib_dl_dlopen=yes
9979else
9980  echo "$as_me: failed program was:" >&5
9981sed 's/^/| /' conftest.$ac_ext >&5
9982
9983ac_cv_lib_dl_dlopen=no
9984fi
9985rm -f conftest.err conftest.$ac_objext \
9986      conftest$ac_exeext conftest.$ac_ext
9987LIBS=$ac_check_lib_save_LIBS
9988fi
9989echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9990echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9991if test $ac_cv_lib_dl_dlopen = yes; then
9992  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9993else
9994  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9995echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9996if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9997  echo $ECHO_N "(cached) $ECHO_C" >&6
9998else
9999  ac_check_lib_save_LIBS=$LIBS
10000LIBS="-lsvld  $LIBS"
10001cat >conftest.$ac_ext <<_ACEOF
10002/* confdefs.h.  */
10003_ACEOF
10004cat confdefs.h >>conftest.$ac_ext
10005cat >>conftest.$ac_ext <<_ACEOF
10006/* end confdefs.h.  */
10007
10008/* Override any gcc2 internal prototype to avoid an error.  */
10009#ifdef __cplusplus
10010extern "C"
10011#endif
10012/* We use char because int might match the return type of a gcc2
10013   builtin and then its argument prototype would still apply.  */
10014char dlopen ();
10015int
10016main ()
10017{
10018dlopen ();
10019  ;
10020  return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext conftest$ac_exeext
10024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025  (eval $ac_link) 2>conftest.er1
10026  ac_status=$?
10027  grep -v '^ *+' conftest.er1 >conftest.err
10028  rm -f conftest.er1
10029  cat conftest.err >&5
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); } &&
10032         { ac_try='test -z "$ac_c_werror_flag"
10033                         || test ! -s conftest.err'
10034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035  (eval $ac_try) 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }; } &&
10039         { ac_try='test -s conftest$ac_exeext'
10040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041  (eval $ac_try) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; }; then
10045  ac_cv_lib_svld_dlopen=yes
10046else
10047  echo "$as_me: failed program was:" >&5
10048sed 's/^/| /' conftest.$ac_ext >&5
10049
10050ac_cv_lib_svld_dlopen=no
10051fi
10052rm -f conftest.err conftest.$ac_objext \
10053      conftest$ac_exeext conftest.$ac_ext
10054LIBS=$ac_check_lib_save_LIBS
10055fi
10056echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10057echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10058if test $ac_cv_lib_svld_dlopen = yes; then
10059  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10060else
10061  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066  ac_check_lib_save_LIBS=$LIBS
10067LIBS="-ldld  $LIBS"
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h.  */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h.  */
10074
10075/* Override any gcc2 internal prototype to avoid an error.  */
10076#ifdef __cplusplus
10077extern "C"
10078#endif
10079/* We use char because int might match the return type of a gcc2
10080   builtin and then its argument prototype would still apply.  */
10081char dld_link ();
10082int
10083main ()
10084{
10085dld_link ();
10086  ;
10087  return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext conftest$ac_exeext
10091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092  (eval $ac_link) 2>conftest.er1
10093  ac_status=$?
10094  grep -v '^ *+' conftest.er1 >conftest.err
10095  rm -f conftest.er1
10096  cat conftest.err >&5
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); } &&
10099         { ac_try='test -z "$ac_c_werror_flag"
10100                         || test ! -s conftest.err'
10101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102  (eval $ac_try) 2>&5
10103  ac_status=$?
10104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105  (exit $ac_status); }; } &&
10106         { ac_try='test -s conftest$ac_exeext'
10107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108  (eval $ac_try) 2>&5
10109  ac_status=$?
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); }; }; then
10112  ac_cv_lib_dld_dld_link=yes
10113else
10114  echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
10117ac_cv_lib_dld_dld_link=no
10118fi
10119rm -f conftest.err conftest.$ac_objext \
10120      conftest$ac_exeext conftest.$ac_ext
10121LIBS=$ac_check_lib_save_LIBS
10122fi
10123echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10124echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10125if test $ac_cv_lib_dld_dld_link = yes; then
10126  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10127fi
10128
10129
10130fi
10131
10132
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144    ;;
10145  esac
10146
10147  if test "x$lt_cv_dlopen" != xno; then
10148    enable_dlopen=yes
10149  else
10150    enable_dlopen=no
10151  fi
10152
10153  case $lt_cv_dlopen in
10154  dlopen)
10155    save_CPPFLAGS="$CPPFLAGS"
10156    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10157
10158    save_LDFLAGS="$LDFLAGS"
10159    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10160
10161    save_LIBS="$LIBS"
10162    LIBS="$lt_cv_dlopen_libs $LIBS"
10163
10164    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10165echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10166if test "${lt_cv_dlopen_self+set}" = set; then
10167  echo $ECHO_N "(cached) $ECHO_C" >&6
10168else
10169          if test "$cross_compiling" = yes; then :
10170  lt_cv_dlopen_self=cross
10171else
10172  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10173  lt_status=$lt_dlunknown
10174  cat > conftest.$ac_ext <<EOF
10175#line 10175 "configure"
10176#include "confdefs.h"
10177
10178#if HAVE_DLFCN_H
10179#include <dlfcn.h>
10180#endif
10181
10182#include <stdio.h>
10183
10184#ifdef RTLD_GLOBAL
10185#  define LT_DLGLOBAL           RTLD_GLOBAL
10186#else
10187#  ifdef DL_GLOBAL
10188#    define LT_DLGLOBAL         DL_GLOBAL
10189#  else
10190#    define LT_DLGLOBAL         0
10191#  endif
10192#endif
10193
10194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10195   find out it does not work in some platform. */
10196#ifndef LT_DLLAZY_OR_NOW
10197#  ifdef RTLD_LAZY
10198#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10199#  else
10200#    ifdef DL_LAZY
10201#      define LT_DLLAZY_OR_NOW          DL_LAZY
10202#    else
10203#      ifdef RTLD_NOW
10204#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10205#      else
10206#        ifdef DL_NOW
10207#          define LT_DLLAZY_OR_NOW      DL_NOW
10208#        else
10209#          define LT_DLLAZY_OR_NOW      0
10210#        endif
10211#      endif
10212#    endif
10213#  endif
10214#endif
10215
10216#ifdef __cplusplus
10217extern "C" void exit (int);
10218#endif
10219
10220void fnord() { int i=42;}
10221int main ()
10222{
10223  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10224  int status = $lt_dlunknown;
10225
10226  if (self)
10227    {
10228      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10229      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10230      /* dlclose (self); */
10231    }
10232  else
10233    puts (dlerror ());
10234
10235    exit (status);
10236}
10237EOF
10238  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10239  (eval $ac_link) 2>&5
10240  ac_status=$?
10241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10243    (./conftest; exit; ) >&5 2>/dev/null
10244    lt_status=$?
10245    case x$lt_status in
10246      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10247      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10248      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10249    esac
10250  else :
10251    # compilation failed
10252    lt_cv_dlopen_self=no
10253  fi
10254fi
10255rm -fr conftest*
10256
10257
10258fi
10259echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10260echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10261
10262    if test "x$lt_cv_dlopen_self" = xyes; then
10263      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10264      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10265echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10266if test "${lt_cv_dlopen_self_static+set}" = set; then
10267  echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269          if test "$cross_compiling" = yes; then :
10270  lt_cv_dlopen_self_static=cross
10271else
10272  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10273  lt_status=$lt_dlunknown
10274  cat > conftest.$ac_ext <<EOF
10275#line 10275 "configure"
10276#include "confdefs.h"
10277
10278#if HAVE_DLFCN_H
10279#include <dlfcn.h>
10280#endif
10281
10282#include <stdio.h>
10283
10284#ifdef RTLD_GLOBAL
10285#  define LT_DLGLOBAL           RTLD_GLOBAL
10286#else
10287#  ifdef DL_GLOBAL
10288#    define LT_DLGLOBAL         DL_GLOBAL
10289#  else
10290#    define LT_DLGLOBAL         0
10291#  endif
10292#endif
10293
10294/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10295   find out it does not work in some platform. */
10296#ifndef LT_DLLAZY_OR_NOW
10297#  ifdef RTLD_LAZY
10298#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10299#  else
10300#    ifdef DL_LAZY
10301#      define LT_DLLAZY_OR_NOW          DL_LAZY
10302#    else
10303#      ifdef RTLD_NOW
10304#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10305#      else
10306#        ifdef DL_NOW
10307#          define LT_DLLAZY_OR_NOW      DL_NOW
10308#        else
10309#          define LT_DLLAZY_OR_NOW      0
10310#        endif
10311#      endif
10312#    endif
10313#  endif
10314#endif
10315
10316#ifdef __cplusplus
10317extern "C" void exit (int);
10318#endif
10319
10320void fnord() { int i=42;}
10321int main ()
10322{
10323  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10324  int status = $lt_dlunknown;
10325
10326  if (self)
10327    {
10328      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10329      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10330      /* dlclose (self); */
10331    }
10332  else
10333    puts (dlerror ());
10334
10335    exit (status);
10336}
10337EOF
10338  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10339  (eval $ac_link) 2>&5
10340  ac_status=$?
10341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10343    (./conftest; exit; ) >&5 2>/dev/null
10344    lt_status=$?
10345    case x$lt_status in
10346      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10347      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10348      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10349    esac
10350  else :
10351    # compilation failed
10352    lt_cv_dlopen_self_static=no
10353  fi
10354fi
10355rm -fr conftest*
10356
10357
10358fi
10359echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10360echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10361    fi
10362
10363    CPPFLAGS="$save_CPPFLAGS"
10364    LDFLAGS="$save_LDFLAGS"
10365    LIBS="$save_LIBS"
10366    ;;
10367  esac
10368
10369  case $lt_cv_dlopen_self in
10370  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10371  *) enable_dlopen_self=unknown ;;
10372  esac
10373
10374  case $lt_cv_dlopen_self_static in
10375  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10376  *) enable_dlopen_self_static=unknown ;;
10377  esac
10378fi
10379
10380
10381# Report which library types will actually be built
10382echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10383echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10384echo "$as_me:$LINENO: result: $can_build_shared" >&5
10385echo "${ECHO_T}$can_build_shared" >&6
10386
10387echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10388echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10389test "$can_build_shared" = "no" && enable_shared=no
10390
10391# On AIX, shared libraries and static libraries use the same namespace, and
10392# are all built from PIC.
10393case $host_os in
10394aix3*)
10395  test "$enable_shared" = yes && enable_static=no
10396  if test -n "$RANLIB"; then
10397    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10398    postinstall_cmds='$RANLIB $lib'
10399  fi
10400  ;;
10401
10402aix4* | aix5*)
10403  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10404    test "$enable_shared" = yes && enable_static=no
10405  fi
10406    ;;
10407esac
10408echo "$as_me:$LINENO: result: $enable_shared" >&5
10409echo "${ECHO_T}$enable_shared" >&6
10410
10411echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10412echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10413# Make sure either enable_shared or enable_static is yes.
10414test "$enable_shared" = yes || enable_static=yes
10415echo "$as_me:$LINENO: result: $enable_static" >&5
10416echo "${ECHO_T}$enable_static" >&6
10417
10418# The else clause should only fire when bootstrapping the
10419# libtool distribution, otherwise you forgot to ship ltmain.sh
10420# with your package, and you will get complaints that there are
10421# no rules to generate ltmain.sh.
10422if test -f "$ltmain"; then
10423  # See if we are running on zsh, and set the options which allow our commands through
10424  # without removal of \ escapes.
10425  if test -n "${ZSH_VERSION+set}" ; then
10426    setopt NO_GLOB_SUBST
10427  fi
10428  # Now quote all the things that may contain metacharacters while being
10429  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10430  # variables and quote the copies for generation of the libtool script.
10431  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10432    SED SHELL STRIP \
10433    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10434    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10435    deplibs_check_method reload_flag reload_cmds need_locks \
10436    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10437    lt_cv_sys_global_symbol_to_c_name_address \
10438    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10439    old_postinstall_cmds old_postuninstall_cmds \
10440    compiler \
10441    CC \
10442    LD \
10443    lt_prog_compiler_wl \
10444    lt_prog_compiler_pic \
10445    lt_prog_compiler_static \
10446    lt_prog_compiler_no_builtin_flag \
10447    export_dynamic_flag_spec \
10448    thread_safe_flag_spec \
10449    whole_archive_flag_spec \
10450    enable_shared_with_static_runtimes \
10451    old_archive_cmds \
10452    old_archive_from_new_cmds \
10453    predep_objects \
10454    postdep_objects \
10455    predeps \
10456    postdeps \
10457    compiler_lib_search_path \
10458    archive_cmds \
10459    archive_expsym_cmds \
10460    postinstall_cmds \
10461    postuninstall_cmds \
10462    old_archive_from_expsyms_cmds \
10463    allow_undefined_flag \
10464    no_undefined_flag \
10465    export_symbols_cmds \
10466    hardcode_libdir_flag_spec \
10467    hardcode_libdir_flag_spec_ld \
10468    hardcode_libdir_separator \
10469    hardcode_automatic \
10470    module_cmds \
10471    module_expsym_cmds \
10472    lt_cv_prog_compiler_c_o \
10473    exclude_expsyms \
10474    include_expsyms; do
10475
10476    case $var in
10477    old_archive_cmds | \
10478    old_archive_from_new_cmds | \
10479    archive_cmds | \
10480    archive_expsym_cmds | \
10481    module_cmds | \
10482    module_expsym_cmds | \
10483    old_archive_from_expsyms_cmds | \
10484    export_symbols_cmds | \
10485    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10486    postinstall_cmds | postuninstall_cmds | \
10487    old_postinstall_cmds | old_postuninstall_cmds | \
10488    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10489      # Double-quote double-evaled strings.
10490      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10491      ;;
10492    *)
10493      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10494      ;;
10495    esac
10496  done
10497
10498  case $lt_echo in
10499  *'\$0 --fallback-echo"')
10500    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10501    ;;
10502  esac
10503
10504cfgfile="${ofile}T"
10505  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10506  $rm -f "$cfgfile"
10507  { echo "$as_me:$LINENO: creating $ofile" >&5
10508echo "$as_me: creating $ofile" >&6;}
10509
10510  cat <<__EOF__ >> "$cfgfile"
10511#! $SHELL
10512
10513# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10514# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10515# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10516#
10517# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10518# Free Software Foundation, Inc.
10519#
10520# This file is part of GNU Libtool:
10521# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10522#
10523# This program is free software; you can redistribute it and/or modify
10524# it under the terms of the GNU General Public License as published by
10525# the Free Software Foundation; either version 2 of the License, or
10526# (at your option) any later version.
10527#
10528# This program is distributed in the hope that it will be useful, but
10529# WITHOUT ANY WARRANTY; without even the implied warranty of
10530# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10531# General Public License for more details.
10532#
10533# You should have received a copy of the GNU General Public License
10534# along with this program; if not, write to the Free Software
10535# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10536#
10537# As a special exception to the GNU General Public License, if you
10538# distribute this file as part of a program that contains a
10539# configuration script generated by Autoconf, you may include it under
10540# the same distribution terms that you use for the rest of that program.
10541
10542# A sed program that does not truncate output.
10543SED=$lt_SED
10544
10545# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10546Xsed="$SED -e 1s/^X//"
10547
10548# The HP-UX ksh and POSIX shell print the target directory to stdout
10549# if CDPATH is set.
10550(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10551
10552# The names of the tagged configurations supported by this script.
10553available_tags=
10554
10555# ### BEGIN LIBTOOL CONFIG
10556
10557# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10558
10559# Shell to use when invoking shell scripts.
10560SHELL=$lt_SHELL
10561
10562# Whether or not to build shared libraries.
10563build_libtool_libs=$enable_shared
10564
10565# Whether or not to build static libraries.
10566build_old_libs=$enable_static
10567
10568# Whether or not to add -lc for building shared libraries.
10569build_libtool_need_lc=$archive_cmds_need_lc
10570
10571# Whether or not to disallow shared libs when runtime libs are static
10572allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10573
10574# Whether or not to optimize for fast installation.
10575fast_install=$enable_fast_install
10576
10577# The host system.
10578host_alias=$host_alias
10579host=$host
10580host_os=$host_os
10581
10582# The build system.
10583build_alias=$build_alias
10584build=$build
10585build_os=$build_os
10586
10587# An echo program that does not interpret backslashes.
10588echo=$lt_echo
10589
10590# The archiver.
10591AR=$lt_AR
10592AR_FLAGS=$lt_AR_FLAGS
10593
10594# A C compiler.
10595LTCC=$lt_LTCC
10596
10597# LTCC compiler flags.
10598LTCFLAGS=$lt_LTCFLAGS
10599
10600# A language-specific compiler.
10601CC=$lt_compiler
10602
10603# Is the compiler the GNU C compiler?
10604with_gcc=$GCC
10605
10606# An ERE matcher.
10607EGREP=$lt_EGREP
10608
10609# The linker used to build libraries.
10610LD=$lt_LD
10611
10612# Whether we need hard or soft links.
10613LN_S=$lt_LN_S
10614
10615# A BSD-compatible nm program.
10616NM=$lt_NM
10617
10618# A symbol stripping program
10619STRIP=$lt_STRIP
10620
10621# Used to examine libraries when file_magic_cmd begins "file"
10622MAGIC_CMD=$MAGIC_CMD
10623
10624# Used on cygwin: DLL creation program.
10625DLLTOOL="$DLLTOOL"
10626
10627# Used on cygwin: object dumper.
10628OBJDUMP="$OBJDUMP"
10629
10630# Used on cygwin: assembler.
10631AS="$AS"
10632
10633# The name of the directory that contains temporary libtool files.
10634objdir=$objdir
10635
10636# How to create reloadable object files.
10637reload_flag=$lt_reload_flag
10638reload_cmds=$lt_reload_cmds
10639
10640# How to pass a linker flag through the compiler.
10641wl=$lt_lt_prog_compiler_wl
10642
10643# Object file suffix (normally "o").
10644objext="$ac_objext"
10645
10646# Old archive suffix (normally "a").
10647libext="$libext"
10648
10649# Shared library suffix (normally ".so").
10650shrext_cmds='$shrext_cmds'
10651
10652# Executable file suffix (normally "").
10653exeext="$exeext"
10654
10655# Additional compiler flags for building library objects.
10656pic_flag=$lt_lt_prog_compiler_pic
10657pic_mode=$pic_mode
10658
10659# What is the maximum length of a command?
10660max_cmd_len=$lt_cv_sys_max_cmd_len
10661
10662# Does compiler simultaneously support -c and -o options?
10663compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10664
10665# Must we lock files when doing compilation?
10666need_locks=$lt_need_locks
10667
10668# Do we need the lib prefix for modules?
10669need_lib_prefix=$need_lib_prefix
10670
10671# Do we need a version for libraries?
10672need_version=$need_version
10673
10674# Whether dlopen is supported.
10675dlopen_support=$enable_dlopen
10676
10677# Whether dlopen of programs is supported.
10678dlopen_self=$enable_dlopen_self
10679
10680# Whether dlopen of statically linked programs is supported.
10681dlopen_self_static=$enable_dlopen_self_static
10682
10683# Compiler flag to prevent dynamic linking.
10684link_static_flag=$lt_lt_prog_compiler_static
10685
10686# Compiler flag to turn off builtin functions.
10687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10688
10689# Compiler flag to allow reflexive dlopens.
10690export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10691
10692# Compiler flag to generate shared objects directly from archives.
10693whole_archive_flag_spec=$lt_whole_archive_flag_spec
10694
10695# Compiler flag to generate thread-safe objects.
10696thread_safe_flag_spec=$lt_thread_safe_flag_spec
10697
10698# Library versioning type.
10699version_type=$version_type
10700
10701# Format of library name prefix.
10702libname_spec=$lt_libname_spec
10703
10704# List of archive names.  First name is the real one, the rest are links.
10705# The last name is the one that the linker finds with -lNAME.
10706library_names_spec=$lt_library_names_spec
10707
10708# The coded name of the library, if different from the real name.
10709soname_spec=$lt_soname_spec
10710
10711# Commands used to build and install an old-style archive.
10712RANLIB=$lt_RANLIB
10713old_archive_cmds=$lt_old_archive_cmds
10714old_postinstall_cmds=$lt_old_postinstall_cmds
10715old_postuninstall_cmds=$lt_old_postuninstall_cmds
10716
10717# Create an old-style archive from a shared archive.
10718old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10719
10720# Create a temporary old-style archive to link instead of a shared archive.
10721old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10722
10723# Commands used to build and install a shared archive.
10724archive_cmds=$lt_archive_cmds
10725archive_expsym_cmds=$lt_archive_expsym_cmds
10726postinstall_cmds=$lt_postinstall_cmds
10727postuninstall_cmds=$lt_postuninstall_cmds
10728
10729# Commands used to build a loadable module (assumed same as above if empty)
10730module_cmds=$lt_module_cmds
10731module_expsym_cmds=$lt_module_expsym_cmds
10732
10733# Commands to strip libraries.
10734old_striplib=$lt_old_striplib
10735striplib=$lt_striplib
10736
10737# Dependencies to place before the objects being linked to create a
10738# shared library.
10739predep_objects=$lt_predep_objects
10740
10741# Dependencies to place after the objects being linked to create a
10742# shared library.
10743postdep_objects=$lt_postdep_objects
10744
10745# Dependencies to place before the objects being linked to create a
10746# shared library.
10747predeps=$lt_predeps
10748
10749# Dependencies to place after the objects being linked to create a
10750# shared library.
10751postdeps=$lt_postdeps
10752
10753# The library search path used internally by the compiler when linking
10754# a shared library.
10755compiler_lib_search_path=$lt_compiler_lib_search_path
10756
10757# Method to check whether dependent libraries are shared objects.
10758deplibs_check_method=$lt_deplibs_check_method
10759
10760# Command to use when deplibs_check_method == file_magic.
10761file_magic_cmd=$lt_file_magic_cmd
10762
10763# Flag that allows shared libraries with undefined symbols to be built.
10764allow_undefined_flag=$lt_allow_undefined_flag
10765
10766# Flag that forces no undefined symbols.
10767no_undefined_flag=$lt_no_undefined_flag
10768
10769# Commands used to finish a libtool library installation in a directory.
10770finish_cmds=$lt_finish_cmds
10771
10772# Same as above, but a single script fragment to be evaled but not shown.
10773finish_eval=$lt_finish_eval
10774
10775# Take the output of nm and produce a listing of raw symbols and C names.
10776global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10777
10778# Transform the output of nm in a proper C declaration
10779global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl