source: ThirdParty/ASL/stable/1.2/configure @ 2042

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

rerun autotools

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