source: ThirdParty/ASL/trunk/configure @ 2009

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

temporarily committing stable candidate

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