source: ThirdParty/ASL/trunk/configure @ 2964

Last change on this file since 2964 was 2964, checked in by tkr, 6 years ago

Re-running the autotools

  • Property svn:executable set to *
File size: 714.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyASL trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL trunk to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL trunk:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068
1069  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --disable-pkg-config    disable use of pkg-config (if available)
1082
1083Optional Packages:
1084  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1085  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1086  --with-asl-verbosity specify the debug verbosity level for project ASL
1087  --with-asl-checklevel specify the sanity check level for project ASL
1088  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1089  --with-pic              try to use only PIC/non-PIC objects [default=use
1090                          both]
1091  --with-tags[=TAGS]
1092                          include additional configurations [automatic]
1093  --with-coin-instdir     prefix of installation directory for precompiled
1094                          COIN packages
1095
1096Some influential environment variables:
1097  CDEFS       Additional -D flags to be used when compiling C code.
1098  ADD_CFLAGS  Additional C compiler options
1099  DBG_CFLAGS  Debug C compiler options
1100  OPT_CFLAGS  Optimize C compiler options
1101  CC          C compiler command
1102  CFLAGS      C compiler flags
1103  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104              nonstandard directory <lib dir>
1105  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106              headers in a nonstandard directory <include dir>
1107  MPICC       C MPI Compiler
1108  CPP         C preprocessor
1109  CXX         C++ compiler command
1110  CXXFLAGS    C++ compiler flags
1111  CXXCPP      C++ preprocessor
1112  F77         Fortran 77 compiler command
1113  FFLAGS      Fortran 77 compiler flags
1114  PKG_CONFIG  path to pkg-config utility
1115  ASLMAKEFLAGS
1116              Compilation flags necessary for compiling the AMPL solver
1117              library
1118
1119Use these variables to override the choices made by `configure' or to help
1120it to find libraries and programs with nonstandard names/locations.
1121
1122Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1123_ACEOF
1124fi
1125
1126if test "$ac_init_help" = "recursive"; then
1127  # If there are subdirs, report their specific --help.
1128  ac_popdir=`pwd`
1129  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1130    test -d $ac_dir || continue
1131    ac_builddir=.
1132
1133if test "$ac_dir" != .; then
1134  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1135  # A "../" for each directory in $ac_dir_suffix.
1136  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1137else
1138  ac_dir_suffix= ac_top_builddir=
1139fi
1140
1141case $srcdir in
1142  .)  # No --srcdir option.  We are building in place.
1143    ac_srcdir=.
1144    if test -z "$ac_top_builddir"; then
1145       ac_top_srcdir=.
1146    else
1147       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1148    fi ;;
1149  [\\/]* | ?:[\\/]* )  # Absolute path.
1150    ac_srcdir=$srcdir$ac_dir_suffix;
1151    ac_top_srcdir=$srcdir ;;
1152  *) # Relative path.
1153    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1154    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1155esac
1156
1157# Do not use `cd foo && pwd` to compute absolute paths, because
1158# the directories may not exist.
1159case `pwd` in
1160.) ac_abs_builddir="$ac_dir";;
1161*)
1162  case "$ac_dir" in
1163  .) ac_abs_builddir=`pwd`;;
1164  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1165  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1166  esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_builddir=${ac_top_builddir}.;;
1170*)
1171  case ${ac_top_builddir}. in
1172  .) ac_abs_top_builddir=$ac_abs_builddir;;
1173  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1174  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1175  esac;;
1176esac
1177case $ac_abs_builddir in
1178.) ac_abs_srcdir=$ac_srcdir;;
1179*)
1180  case $ac_srcdir in
1181  .) ac_abs_srcdir=$ac_abs_builddir;;
1182  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1183  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1184  esac;;
1185esac
1186case $ac_abs_builddir in
1187.) ac_abs_top_srcdir=$ac_top_srcdir;;
1188*)
1189  case $ac_top_srcdir in
1190  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1192  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1193  esac;;
1194esac
1195
1196    cd $ac_dir
1197    # Check for guested configure; otherwise get Cygnus style configure.
1198    if test -f $ac_srcdir/configure.gnu; then
1199      echo
1200      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1201    elif test -f $ac_srcdir/configure; then
1202      echo
1203      $SHELL $ac_srcdir/configure  --help=recursive
1204    elif test -f $ac_srcdir/configure.ac ||
1205           test -f $ac_srcdir/configure.in; then
1206      echo
1207      $ac_configure --help
1208    else
1209      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1210    fi
1211    cd $ac_popdir
1212  done
1213fi
1214
1215test -n "$ac_init_help" && exit 0
1216if $ac_init_version; then
1217  cat <<\_ACEOF
1218ThirdPartyASL configure trunk
1219generated by GNU Autoconf 2.59
1220
1221Copyright (C) 2003 Free Software Foundation, Inc.
1222This configure script is free software; the Free Software Foundation
1223gives unlimited permission to copy, distribute and modify it.
1224
1225
1226Copyright 2006, 2007, 2009 International Business Machines and others.
1227All Rights Reserved.
1228This file is part of the open source package Coin which is distributed
1229under the Eclipse Public License.
1230_ACEOF
1231  exit 0
1232fi
1233exec 5>config.log
1234cat >&5 <<_ACEOF
1235This file contains any messages produced by compilers while
1236running configure, to aid debugging if configure makes a mistake.
1237
1238It was created by ThirdPartyASL $as_me trunk, which was
1239generated by GNU Autoconf 2.59.  Invocation command line was
1240
1241  $ $0 $@
1242
1243_ACEOF
1244{
1245cat <<_ASUNAME
1246## --------- ##
1247## Platform. ##
1248## --------- ##
1249
1250hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1251uname -m = `(uname -m) 2>/dev/null || echo unknown`
1252uname -r = `(uname -r) 2>/dev/null || echo unknown`
1253uname -s = `(uname -s) 2>/dev/null || echo unknown`
1254uname -v = `(uname -v) 2>/dev/null || echo unknown`
1255
1256/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1257/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1258
1259/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1260/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1261/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1262hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1263/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1264/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1265/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1266
1267_ASUNAME
1268
1269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1270for as_dir in $PATH
1271do
1272  IFS=$as_save_IFS
1273  test -z "$as_dir" && as_dir=.
1274  echo "PATH: $as_dir"
1275done
1276
1277} >&5
1278
1279cat >&5 <<_ACEOF
1280
1281
1282## ----------- ##
1283## Core tests. ##
1284## ----------- ##
1285
1286_ACEOF
1287
1288
1289# Keep a trace of the command line.
1290# Strip out --no-create and --no-recursion so they do not pile up.
1291# Strip out --silent because we don't want to record it for future runs.
1292# Also quote any args containing shell meta-characters.
1293# Make two passes to allow for proper duplicate-argument suppression.
1294ac_configure_args=
1295ac_configure_args0=
1296ac_configure_args1=
1297ac_sep=
1298ac_must_keep_next=false
1299for ac_pass in 1 2
1300do
1301  for ac_arg
1302  do
1303    case $ac_arg in
1304    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1305    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306    | -silent | --silent | --silen | --sile | --sil)
1307      continue ;;
1308    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1309      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1310    esac
1311    case $ac_pass in
1312    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1313    2)
1314      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1315      if test $ac_must_keep_next = true; then
1316        ac_must_keep_next=false # Got value, back to normal.
1317      else
1318        case $ac_arg in
1319          *=* | --config-cache | -C | -disable-* | --disable-* \
1320          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1321          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1322          | -with-* | --with-* | -without-* | --without-* | --x)
1323            case "$ac_configure_args0 " in
1324              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1325            esac
1326            ;;
1327          -* ) ac_must_keep_next=true ;;
1328        esac
1329      fi
1330      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1331      # Get rid of the leading space.
1332      ac_sep=" "
1333      ;;
1334    esac
1335  done
1336done
1337$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1338$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1339
1340# When interrupted or exit'd, cleanup temporary files, and complete
1341# config.log.  We remove comments because anyway the quotes in there
1342# would cause problems or look ugly.
1343# WARNING: Be sure not to use single quotes in there, as some shells,
1344# such as our DU 5.0 friend, will then `close' the trap.
1345trap 'exit_status=$?
1346  # Save into config.log some information that might help in debugging.
1347  {
1348    echo
1349
1350    cat <<\_ASBOX
1351## ---------------- ##
1352## Cache variables. ##
1353## ---------------- ##
1354_ASBOX
1355    echo
1356    # The following way of writing the cache mishandles newlines in values,
1357{
1358  (set) 2>&1 |
1359    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1360    *ac_space=\ *)
1361      sed -n \
1362        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1363          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1364      ;;
1365    *)
1366      sed -n \
1367        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1368      ;;
1369    esac;
1370}
1371    echo
1372
1373    cat <<\_ASBOX
1374## ----------------- ##
1375## Output variables. ##
1376## ----------------- ##
1377_ASBOX
1378    echo
1379    for ac_var in $ac_subst_vars
1380    do
1381      eval ac_val=$`echo $ac_var`
1382      echo "$ac_var='"'"'$ac_val'"'"'"
1383    done | sort
1384    echo
1385
1386    if test -n "$ac_subst_files"; then
1387      cat <<\_ASBOX
1388## ------------- ##
1389## Output files. ##
1390## ------------- ##
1391_ASBOX
1392      echo
1393      for ac_var in $ac_subst_files
1394      do
1395        eval ac_val=$`echo $ac_var`
1396        echo "$ac_var='"'"'$ac_val'"'"'"
1397      done | sort
1398      echo
1399    fi
1400
1401    if test -s confdefs.h; then
1402      cat <<\_ASBOX
1403## ----------- ##
1404## confdefs.h. ##
1405## ----------- ##
1406_ASBOX
1407      echo
1408      sed "/^$/d" confdefs.h | sort
1409      echo
1410    fi
1411    test "$ac_signal" != 0 &&
1412      echo "$as_me: caught signal $ac_signal"
1413    echo "$as_me: exit $exit_status"
1414  } >&5
1415  rm -f core *.core &&
1416  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1417    exit $exit_status
1418     ' 0
1419for ac_signal in 1 2 13 15; do
1420  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1421done
1422ac_signal=0
1423
1424# confdefs.h avoids OS command line length limits that DEFS can exceed.
1425rm -rf conftest* confdefs.h
1426# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1427echo >confdefs.h
1428
1429# Predefined preprocessor variables.
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_NAME "$PACKAGE_NAME"
1433_ACEOF
1434
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_VERSION "$PACKAGE_VERSION"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_STRING "$PACKAGE_STRING"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1453_ACEOF
1454
1455
1456# Let the site file select an alternate cache file if it wants to.
1457# Prefer explicitly selected file to automatically selected ones.
1458if test -z "$CONFIG_SITE"; then
1459  if test "x$prefix" != xNONE; then
1460    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1461  else
1462    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1463  fi
1464fi
1465for ac_site_file in $CONFIG_SITE; do
1466  if test -r "$ac_site_file"; then
1467    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1468echo "$as_me: loading site script $ac_site_file" >&6;}
1469    sed 's/^/| /' "$ac_site_file" >&5
1470    . "$ac_site_file"
1471  fi
1472done
1473
1474if test -r "$cache_file"; then
1475  # Some versions of bash will fail to source /dev/null (special
1476  # files actually), so we avoid doing that.
1477  if test -f "$cache_file"; then
1478    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1479echo "$as_me: loading cache $cache_file" >&6;}
1480    case $cache_file in
1481      [\\/]* | ?:[\\/]* ) . $cache_file;;
1482      *)                      . ./$cache_file;;
1483    esac
1484  fi
1485else
1486  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1487echo "$as_me: creating cache $cache_file" >&6;}
1488  >$cache_file
1489fi
1490
1491# Check that the precious variables saved in the cache have kept the same
1492# value.
1493ac_cache_corrupted=false
1494for ac_var in `(set) 2>&1 |
1495               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1496  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1497  eval ac_new_set=\$ac_env_${ac_var}_set
1498  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1499  eval ac_new_val="\$ac_env_${ac_var}_value"
1500  case $ac_old_set,$ac_new_set in
1501    set,)
1502      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1503echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1504      ac_cache_corrupted=: ;;
1505    ,set)
1506      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1507echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1508      ac_cache_corrupted=: ;;
1509    ,);;
1510    *)
1511      if test "x$ac_old_val" != "x$ac_new_val"; then
1512        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1513echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1514        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1515echo "$as_me:   former value:  $ac_old_val" >&2;}
1516        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1517echo "$as_me:   current value: $ac_new_val" >&2;}
1518        ac_cache_corrupted=:
1519      fi;;
1520  esac
1521  # Pass precious variables to config.status.
1522  if test "$ac_new_set" = set; then
1523    case $ac_new_val in
1524    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1525      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1526    *) ac_arg=$ac_var=$ac_new_val ;;
1527    esac
1528    case " $ac_configure_args " in
1529      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1530      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1531    esac
1532  fi
1533done
1534if $ac_cache_corrupted; then
1535  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1536echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1537  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1538echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1539   { (exit 1); exit 1; }; }
1540fi
1541
1542ac_ext=c
1543ac_cpp='$CPP $CPPFLAGS'
1544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1546ac_compiler_gnu=$ac_cv_c_compiler_gnu
1547
1548
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# List one file in the package so that the configure script can test
1578# whether the package is actually there
1579
1580
1581# Where should everything be installed by default?  Here, we want it
1582# to be installed directly in 'bin', 'lib', 'include' subdirectories
1583# of the directory where configure is run.  The default would be
1584# /usr/local.
1585
1586
1587#############################################################################
1588#                         Standard build tool stuff                         #
1589#############################################################################
1590
1591# Get the system type
1592ac_aux_dir=
1593for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1594  if test -f $ac_dir/install-sh; then
1595    ac_aux_dir=$ac_dir
1596    ac_install_sh="$ac_aux_dir/install-sh -c"
1597    break
1598  elif test -f $ac_dir/install.sh; then
1599    ac_aux_dir=$ac_dir
1600    ac_install_sh="$ac_aux_dir/install.sh -c"
1601    break
1602  elif test -f $ac_dir/shtool; then
1603    ac_aux_dir=$ac_dir
1604    ac_install_sh="$ac_aux_dir/shtool install -c"
1605    break
1606  fi
1607done
1608if test -z "$ac_aux_dir"; then
1609  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1610echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1611   { (exit 1); exit 1; }; }
1612fi
1613ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1614ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1615ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1616
1617# Make sure we can run config.sub.
1618$ac_config_sub sun4 >/dev/null 2>&1 ||
1619  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621   { (exit 1); exit 1; }; }
1622
1623echo "$as_me:$LINENO: checking build system type" >&5
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626  echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628  ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630  ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
1632  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634   { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649
1650# A bit of initial setup.
1651
1652# As backup, we make sure we don't loose an FLIBS if it has been set
1653# by the user
1654save_FLIBS="$FLIBS"
1655
1656# A useful makefile conditional that is always false
1657
1658
1659if false; then
1660  ALWAYS_FALSE_TRUE=
1661  ALWAYS_FALSE_FALSE='#'
1662else
1663  ALWAYS_FALSE_TRUE='#'
1664  ALWAYS_FALSE_FALSE=
1665fi
1666
1667
1668# We set the following variable so that we know later in AC_COIN_FINALIZE
1669# that we are in a project main directory
1670coin_projectdir=yes
1671
1672# Set the project's version numbers
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define ASL_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1681  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1682  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1684  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1685  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1686
1687cat >>confdefs.h <<_ACEOF
1688#define ASL_VERSION_MAJOR $coin_majorver
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define ASL_VERSION_MINOR $coin_minorver
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define ASL_VERSION_RELEASE $coin_releasever
1699_ACEOF
1700
1701
1702  # We use the following variable to have a string with the upper case
1703  # version of the project name
1704  COIN_PRJCT=ASL
1705
1706  # Set the project's SVN revision number. The complicated sed expression
1707  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1708  # as a single number.
1709  # Extract the first word of "svnversion", so it can be a program name with args.
1710set dummy svnversion; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_have_svnversion+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$have_svnversion"; then
1717  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_have_svnversion="yes"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1734fi
1735fi
1736have_svnversion=$ac_cv_prog_have_svnversion
1737if test -n "$have_svnversion"; then
1738  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1739echo "${ECHO_T}$have_svnversion" >&6
1740else
1741  echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745  if test "x$have_svnversion" = xyes; then
1746
1747    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1748    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1749      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1750
1751cat >>confdefs.h <<_ACEOF
1752#define ASL_SVN_REV $ASL_SVN_REV
1753_ACEOF
1754
1755    fi
1756  fi
1757
1758
1759
1760# Capture libtool library version, if given.
1761
1762
1763
1764
1765# Turn off warnings and pedantic mode since they could make trouble on some
1766# platforms, and we can't fix issues in third-party code.
1767coin_skip_warn_cflags=yes
1768
1769# Check if user wants to produce debugging code
1770
1771echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1772echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1773
1774# Check whether --enable-debug or --disable-debug was given.
1775if test "${enable_debug+set}" = set; then
1776  enableval="$enable_debug"
1777  case "${enableval}" in
1778   yes) coin_debug_compile=true
1779        if test "${enable_shared+set}" = set; then :; else
1780          enable_shared=no
1781        fi
1782        ;;
1783   no)  coin_debug_compile=false
1784        ;;
1785   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1786echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1787   { (exit 1); exit 1; }; }
1788        ;;
1789esac
1790else
1791  coin_debug_compile=false
1792fi;
1793
1794# Check whether --enable-debug-asl or --disable-debug-asl was given.
1795if test "${enable_debug_asl+set}" = set; then
1796  enableval="$enable_debug_asl"
1797  case "${enableval}" in
1798    yes) coin_debug_compile=true
1799         ;;
1800    no)  coin_debug_compile=false
1801         ;;
1802    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1803echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1804   { (exit 1); exit 1; }; }
1805         ;;
1806 esac
1807else
1808  :
1809fi;
1810
1811 # m4_ifvaln([ASL],
1812
1813if test $coin_debug_compile = true; then
1814  echo "$as_me:$LINENO: result: yes" >&5
1815echo "${ECHO_T}yes" >&6
1816else
1817  echo "$as_me:$LINENO: result: no" >&5
1818echo "${ECHO_T}no" >&6
1819fi
1820
1821
1822# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1823if test "${with_asl_verbosity+set}" = set; then
1824  withval="$with_asl_verbosity"
1825  if test "$withval" = yes; then
1826                withval=1
1827              fi
1828              coin_asl_verbosity=$withval
1829else
1830  coin_asl_verbosity=0
1831fi;
1832
1833cat >>confdefs.h <<_ACEOF
1834#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1835_ACEOF
1836
1837
1838
1839# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1840if test "${with_asl_checklevel+set}" = set; then
1841  withval="$with_asl_checklevel"
1842  if test "$withval" = yes; then
1843                withval=1
1844              fi
1845              coin_asl_checklevel=$withval
1846else
1847  coin_asl_checklevel=0
1848fi;
1849
1850cat >>confdefs.h <<_ACEOF
1851#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1852_ACEOF
1853
1854
1855 # m4_ifvaln([ASL],
1856
1857
1858
1859# We need egrep and ln -s somewhere
1860echo "$as_me:$LINENO: checking for egrep" >&5
1861echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1862if test "${ac_cv_prog_egrep+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1866    then ac_cv_prog_egrep='grep -E'
1867    else ac_cv_prog_egrep='egrep'
1868    fi
1869fi
1870echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1871echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1872 EGREP=$ac_cv_prog_egrep
1873
1874
1875echo "$as_me:$LINENO: checking whether ln -s works" >&5
1876echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1877LN_S=$as_ln_s
1878if test "$LN_S" = "ln -s"; then
1879  echo "$as_me:$LINENO: result: yes" >&5
1880echo "${ECHO_T}yes" >&6
1881else
1882  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1883echo "${ECHO_T}no, using $LN_S" >&6
1884fi
1885
1886
1887# Get the name of the C compiler and compiler flags
1888
1889
1890  # for backward compatibility
1891  # Check whether --enable-doscompile or --disable-doscompile was given.
1892if test "${enable_doscompile+set}" = set; then
1893  enableval="$enable_doscompile"
1894  enable_doscompile=$enableval
1895else
1896  enable_doscompile=no
1897fi;
1898
1899  # Check whether --enable-msvc or --disable-msvc was given.
1900if test "${enable_msvc+set}" = set; then
1901  enableval="$enable_msvc"
1902  enable_msvc=$enableval
1903else
1904  enable_msvc=no
1905     if test "$enable_doscompile" = msvc ; then
1906       enable_msvc=yes
1907     elif test "$enable_doscompile" != no ; then
1908       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1909echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1910   { (exit 1); exit 1; }; }
1911     fi
1912
1913fi;
1914
1915  if test "$enable_msvc" = yes; then
1916    case $build in
1917      *-cygwin* | *-mingw*) ;;
1918      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1919echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1920   { (exit 1); exit 1; }; } ;;
1921    esac
1922  fi
1923
1924
1925 case $build in
1926  *-mingw*)
1927    if test "${LD+set}" = set; then :; else
1928      LD=link
1929    fi
1930    ;;
1931 esac
1932 if test $enable_msvc = yes ; then
1933   if test "x${LD+set}" = xset; then :; else
1934     LD=link
1935   fi
1936 fi
1937
1938
1939# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1940if test "${enable_static_standardlibs+set}" = set; then
1941  enableval="$enable_static_standardlibs"
1942  case "$enableval" in
1943     no | yes | auto ) ;;
1944     *)
1945       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1946echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1947   { (exit 1); exit 1; }; } ;;
1948   esac
1949   use_static_standardlibs=$enableval
1950else
1951  use_static_standardlibs=no
1952fi;
1953
1954
1955
1956
1957
1958ac_ext=c
1959ac_cpp='$CPP $CPPFLAGS'
1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963
1964
1965# For consistency, we set the C compiler to the same value of the C++
1966# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1967if test x"$CXX" != x; then
1968  case "$CXX" in
1969    clang* ) ;;
1970    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1971      if test x"$CC" = x; then
1972        CC="$CXX"
1973        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1974echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1975      fi
1976      ;;
1977  esac
1978fi
1979
1980
1981
1982
1983
1984
1985coin_has_cc=yes
1986
1987save_cflags="$CFLAGS"
1988
1989# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1990# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1991# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1992# compiler. In this case, put cc after gcc.
1993
1994case $build in
1995  *-cygwin* | *-mingw*)
1996             if test "$enable_msvc" = yes ; then
1997               comps="icl cl gcc"
1998             else
1999               comps="gcc icl cl"
2000             fi ;;
2001  *-*-solaris*)
2002             # Extract the first word of "cc", so it can be a program name with args.
2003set dummy cc; ac_word=$2
2004echo "$as_me:$LINENO: checking for $ac_word" >&5
2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2007  echo $ECHO_N "(cached) $ECHO_C" >&6
2008else
2009  if test -n "$sol_cc_compiler"; then
2010  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2011else
2012  ac_prog_rejected=no
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016  IFS=$as_save_IFS
2017  test -z "$as_dir" && as_dir=.
2018  for ac_exec_ext in '' $ac_executable_extensions; do
2019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2021       ac_prog_rejected=yes
2022       continue
2023     fi
2024    ac_cv_prog_sol_cc_compiler="cc"
2025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026    break 2
2027  fi
2028done
2029done
2030
2031if test $ac_prog_rejected = yes; then
2032  # We found a bogon in the path, so make sure we never use it.
2033  set dummy $ac_cv_prog_sol_cc_compiler
2034  shift
2035  if test $# != 0; then
2036    # We chose a different compiler from the bogus one.
2037    # However, it has the same basename, so the bogon will be chosen
2038    # first if we set sol_cc_compiler to just the basename; use the full file name.
2039    shift
2040    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2041  fi
2042fi
2043fi
2044fi
2045sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2046if test -n "$sol_cc_compiler"; then
2047  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2048echo "${ECHO_T}$sol_cc_compiler" >&6
2049else
2050  echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054             if test "$sol_cc_compiler" = "cc" ; then
2055               comps="cc xlc gcc pgcc icc"
2056             else
2057               comps="xlc gcc pgcc icc cc"
2058             fi
2059             ;;
2060  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2061  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2062  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2063esac
2064
2065# We delete the cached value, since the test might not have been
2066# performed with our choice of compilers earlier
2067$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2068# AC_MSG_NOTICE([C compiler candidates: $comps])
2069ac_ext=c
2070ac_cpp='$CPP $CPPFLAGS'
2071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073ac_compiler_gnu=$ac_cv_c_compiler_gnu
2074if test -n "$ac_tool_prefix"; then
2075  for ac_prog in $comps
2076  do
2077    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2079echo "$as_me:$LINENO: checking for $ac_word" >&5
2080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081if test "${ac_cv_prog_CC+set}" = set; then
2082  echo $ECHO_N "(cached) $ECHO_C" >&6
2083else
2084  if test -n "$CC"; then
2085  ac_cv_prog_CC="$CC" # Let the user override the test.
2086else
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090  IFS=$as_save_IFS
2091  test -z "$as_dir" && as_dir=.
2092  for ac_exec_ext in '' $ac_executable_extensions; do
2093  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2095    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096    break 2
2097  fi
2098done
2099done
2100
2101fi
2102fi
2103CC=$ac_cv_prog_CC
2104if test -n "$CC"; then
2105  echo "$as_me:$LINENO: result: $CC" >&5
2106echo "${ECHO_T}$CC" >&6
2107else
2108  echo "$as_me:$LINENO: result: no" >&5
2109echo "${ECHO_T}no" >&6
2110fi
2111
2112    test -n "$CC" && break
2113  done
2114fi
2115if test -z "$CC"; then
2116  ac_ct_CC=$CC
2117  for ac_prog in $comps
2118do
2119  # Extract the first word of "$ac_prog", so it can be a program name with args.
2120set dummy $ac_prog; ac_word=$2
2121echo "$as_me:$LINENO: checking for $ac_word" >&5
2122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2123if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  if test -n "$ac_ct_CC"; then
2127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2128else
2129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH
2131do
2132  IFS=$as_save_IFS
2133  test -z "$as_dir" && as_dir=.
2134  for ac_exec_ext in '' $ac_executable_extensions; do
2135  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2136    ac_cv_prog_ac_ct_CC="$ac_prog"
2137    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138    break 2
2139  fi
2140done
2141done
2142
2143fi
2144fi
2145ac_ct_CC=$ac_cv_prog_ac_ct_CC
2146if test -n "$ac_ct_CC"; then
2147  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2148echo "${ECHO_T}$ac_ct_CC" >&6
2149else
2150  echo "$as_me:$LINENO: result: no" >&5
2151echo "${ECHO_T}no" >&6
2152fi
2153
2154  test -n "$ac_ct_CC" && break
2155done
2156
2157  CC=$ac_ct_CC
2158fi
2159
2160
2161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: no acceptable C compiler found in \$PATH
2164See \`config.log' for more details." >&2;}
2165   { (exit 1); exit 1; }; }
2166
2167# Provide some information about the compiler.
2168echo "$as_me:$LINENO:" \
2169     "checking for C compiler version" >&5
2170ac_compiler=`set X $ac_compile; echo $2`
2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2172  (eval $ac_compiler --version </dev/null >&5) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }
2176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2177  (eval $ac_compiler -v </dev/null >&5) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }
2181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2182  (eval $ac_compiler -V </dev/null >&5) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }
2186
2187cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h.  */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h.  */
2193
2194int
2195main ()
2196{
2197
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202ac_clean_files_save=$ac_clean_files
2203ac_clean_files="$ac_clean_files a.out a.exe b.out"
2204# Try to create an executable without -o first, disregard a.out.
2205# It will help us diagnose broken compilers, and finding out an intuition
2206# of exeext.
2207echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2208echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2209ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2210if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2211  (eval $ac_link_default) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; then
2215  # Find the output, starting from the most likely.  This scheme is
2216# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2217# resort.
2218
2219# Be careful to initialize this variable, since it used to be cached.
2220# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2221ac_cv_exeext=
2222# b.out is created by i960 compilers.
2223for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2224do
2225  test -f "$ac_file" || continue
2226  case $ac_file in
2227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2228        ;;
2229    conftest.$ac_ext )
2230        # This is the source file.
2231        ;;
2232    [ab].out )
2233        # We found the default executable, but exeext='' is most
2234        # certainly right.
2235        break;;
2236    *.* )
2237        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238        # FIXME: I believe we export ac_cv_exeext for Libtool,
2239        # but it would be cool to find out if it's true.  Does anybody
2240        # maintain Libtool? --akim.
2241        export ac_cv_exeext
2242        break;;
2243    * )
2244        break;;
2245  esac
2246done
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: C compiler cannot create executables
2254See \`config.log' for more details." >&2;}
2255   { (exit 77); exit 77; }; }
2256fi
2257
2258ac_exeext=$ac_cv_exeext
2259echo "$as_me:$LINENO: result: $ac_file" >&5
2260echo "${ECHO_T}$ac_file" >&6
2261
2262# Check the compiler produces executables we can run.  If not, either
2263# the compiler is broken, or we cross compile.
2264echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2266# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267# If not cross compiling, check that we can run a simple program.
2268if test "$cross_compiling" != yes; then
2269  if { ac_try='./$ac_file'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275    cross_compiling=no
2276  else
2277    if test "$cross_compiling" = maybe; then
2278        cross_compiling=yes
2279    else
2280        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2281If you meant to cross compile, use \`--host'.
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot run C compiled programs.
2284If you meant to cross compile, use \`--host'.
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287    fi
2288  fi
2289fi
2290echo "$as_me:$LINENO: result: yes" >&5
2291echo "${ECHO_T}yes" >&6
2292
2293rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294ac_clean_files=$ac_clean_files_save
2295# Check the compiler produces executables we can run.  If not, either
2296# the compiler is broken, or we cross compile.
2297echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2299echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300echo "${ECHO_T}$cross_compiling" >&6
2301
2302echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2305  (eval $ac_link) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; then
2309  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2310# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2311# work properly (i.e., refer to `conftest.exe'), while it won't with
2312# `rm'.
2313for ac_file in conftest.exe conftest conftest.*; do
2314  test -f "$ac_file" || continue
2315  case $ac_file in
2316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2317    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318          export ac_cv_exeext
2319          break;;
2320    * ) break;;
2321  esac
2322done
2323else
2324  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&5
2326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327See \`config.log' for more details." >&2;}
2328   { (exit 1); exit 1; }; }
2329fi
2330
2331rm -f conftest$ac_cv_exeext
2332echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333echo "${ECHO_T}$ac_cv_exeext" >&6
2334
2335rm -f conftest.$ac_ext
2336EXEEXT=$ac_cv_exeext
2337ac_exeext=$EXEEXT
2338echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2340if test "${ac_cv_objext+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.o conftest.obj
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360  (eval $ac_compile) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; then
2364  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2365  case $ac_file in
2366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2367    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368       break;;
2369  esac
2370done
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376See \`config.log' for more details." >&5
2377echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378See \`config.log' for more details." >&2;}
2379   { (exit 1); exit 1; }; }
2380fi
2381
2382rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383fi
2384echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385echo "${ECHO_T}$ac_cv_objext" >&6
2386OBJEXT=$ac_cv_objext
2387ac_objext=$OBJEXT
2388echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2389echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2390if test "${ac_cv_c_compiler_gnu+set}" = set; then
2391  echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393  cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399
2400int
2401main ()
2402{
2403#ifndef __GNUC__
2404       choke me
2405#endif
2406
2407  ;
2408  return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413  (eval $ac_compile) 2>conftest.er1
2414  ac_status=$?
2415  grep -v '^ *+' conftest.er1 >conftest.err
2416  rm -f conftest.er1
2417  cat conftest.err >&5
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); } &&
2420         { ac_try='test -z "$ac_c_werror_flag"
2421                         || test ! -s conftest.err'
2422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423  (eval $ac_try) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); }; } &&
2427         { ac_try='test -s conftest.$ac_objext'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; }; then
2433  ac_compiler_gnu=yes
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438ac_compiler_gnu=no
2439fi
2440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2441ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442
2443fi
2444echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2446GCC=`test $ac_compiler_gnu = yes && echo yes`
2447ac_test_CFLAGS=${CFLAGS+set}
2448ac_save_CFLAGS=$CFLAGS
2449CFLAGS="-g"
2450echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2452if test "${ac_cv_prog_cc_g+set}" = set; then
2453  echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455  cat >conftest.$ac_ext <<_ACEOF
2456/* confdefs.h.  */
2457_ACEOF
2458cat confdefs.h >>conftest.$ac_ext
2459cat >>conftest.$ac_ext <<_ACEOF
2460/* end confdefs.h.  */
2461
2462int
2463main ()
2464{
2465
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472  (eval $ac_compile) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } &&
2479         { ac_try='test -z "$ac_c_werror_flag"
2480                         || test ! -s conftest.err'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  ac_cv_prog_cc_g=yes
2493else
2494  echo "$as_me: failed program was:" >&5
2495sed 's/^/| /' conftest.$ac_ext >&5
2496
2497ac_cv_prog_cc_g=no
2498fi
2499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2500fi
2501echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2502echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2503if test "$ac_test_CFLAGS" = set; then
2504  CFLAGS=$ac_save_CFLAGS
2505elif test $ac_cv_prog_cc_g = yes; then
2506  if test "$GCC" = yes; then
2507    CFLAGS="-g -O2"
2508  else
2509    CFLAGS="-g"
2510  fi
2511else
2512  if test "$GCC" = yes; then
2513    CFLAGS="-O2"
2514  else
2515    CFLAGS=
2516  fi
2517fi
2518echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2519echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2520if test "${ac_cv_prog_cc_stdc+set}" = set; then
2521  echo $ECHO_N "(cached) $ECHO_C" >&6
2522else
2523  ac_cv_prog_cc_stdc=no
2524ac_save_CC=$CC
2525cat >conftest.$ac_ext <<_ACEOF
2526/* confdefs.h.  */
2527_ACEOF
2528cat confdefs.h >>conftest.$ac_ext
2529cat >>conftest.$ac_ext <<_ACEOF
2530/* end confdefs.h.  */
2531#include <stdarg.h>
2532#include <stdio.h>
2533#include <sys/types.h>
2534#include <sys/stat.h>
2535/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2536struct buf { int x; };
2537FILE * (*rcsopen) (struct buf *, struct stat *, int);
2538static char *e (p, i)
2539     char **p;
2540     int i;
2541{
2542  return p[i];
2543}
2544static char *f (char * (*g) (char **, int), char **p, ...)
2545{
2546  char *s;
2547  va_list v;
2548  va_start (v,p);
2549  s = g (p, va_arg (v,int));
2550  va_end (v);
2551  return s;
2552}
2553
2554/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2555   function prototypes and stuff, but not '\xHH' hex character constants.
2556   These don't provoke an error unfortunately, instead are silently treated
2557   as 'x'.  The following induces an error, until -std1 is added to get
2558   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2559   array size at least.  It's necessary to write '\x00'==0 to get something
2560   that's true only with -std1.  */
2561int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2562
2563int test (int i, double x);
2564struct s1 {int (*f) (int a);};
2565struct s2 {int (*f) (double a);};
2566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2567int argc;
2568char **argv;
2569int
2570main ()
2571{
2572return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2573  ;
2574  return 0;
2575}
2576_ACEOF
2577# Don't try gcc -ansi; that turns off useful extensions and
2578# breaks some systems' header files.
2579# AIX                   -qlanglvl=ansi
2580# Ultrix and OSF/1      -std1
2581# HP-UX 10.20 and later -Ae
2582# HP-UX older versions  -Aa -D_HPUX_SOURCE
2583# SVR4                  -Xc -D__EXTENSIONS__
2584for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2585do
2586  CC="$ac_save_CC $ac_arg"
2587  rm -f conftest.$ac_objext
2588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589  (eval $ac_compile) 2>conftest.er1
2590  ac_status=$?
2591  grep -v '^ *+' conftest.er1 >conftest.err
2592  rm -f conftest.er1
2593  cat conftest.err >&5
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -z "$ac_c_werror_flag"
2597                         || test ! -s conftest.err'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; } &&
2603         { ac_try='test -s conftest.$ac_objext'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; }; then
2609  ac_cv_prog_cc_stdc=$ac_arg
2610break
2611else
2612  echo "$as_me: failed program was:" >&5
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615fi
2616rm -f conftest.err conftest.$ac_objext
2617done
2618rm -f conftest.$ac_ext conftest.$ac_objext
2619CC=$ac_save_CC
2620
2621fi
2622
2623case "x$ac_cv_prog_cc_stdc" in
2624  x|xno)
2625    echo "$as_me:$LINENO: result: none needed" >&5
2626echo "${ECHO_T}none needed" >&6 ;;
2627  *)
2628    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2629echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2630    CC="$CC $ac_cv_prog_cc_stdc" ;;
2631esac
2632
2633# Some people use a C++ compiler to compile C.  Since we use `exit',
2634# in C++ we need to declare it.  In case someone uses the same compiler
2635# for both compiling C and C++ we need to have the C++ compiler decide
2636# the declaration of exit, since it's the most demanding environment.
2637cat >conftest.$ac_ext <<_ACEOF
2638#ifndef __cplusplus
2639  choke me
2640#endif
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  for ac_declaration in \
2665   '' \
2666   'extern "C" void std::exit (int) throw (); using std::exit;' \
2667   'extern "C" void std::exit (int); using std::exit;' \
2668   'extern "C" void exit (int) throw ();' \
2669   'extern "C" void exit (int);' \
2670   'void exit (int);'
2671do
2672  cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678$ac_declaration
2679#include <stdlib.h>
2680int
2681main ()
2682{
2683exit (42);
2684  ;
2685  return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690  (eval $ac_compile) 2>conftest.er1
2691  ac_status=$?
2692  grep -v '^ *+' conftest.er1 >conftest.err
2693  rm -f conftest.er1
2694  cat conftest.err >&5
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -z "$ac_c_werror_flag"
2698                         || test ! -s conftest.err'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; } &&
2704         { ac_try='test -s conftest.$ac_objext'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; }; then
2710  :
2711else
2712  echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715continue
2716fi
2717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718  cat >conftest.$ac_ext <<_ACEOF
2719/* confdefs.h.  */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h.  */
2724$ac_declaration
2725int
2726main ()
2727{
2728exit (42);
2729  ;
2730  return 0;
2731}
2732_ACEOF
2733rm -f conftest.$ac_objext
2734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2735  (eval $ac_compile) 2>conftest.er1
2736  ac_status=$?
2737  grep -v '^ *+' conftest.er1 >conftest.err
2738  rm -f conftest.er1
2739  cat conftest.err >&5
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); } &&
2742         { ac_try='test -z "$ac_c_werror_flag"
2743                         || test ! -s conftest.err'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; } &&
2749         { ac_try='test -s conftest.$ac_objext'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; }; then
2755  break
2756else
2757  echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2762done
2763rm -f conftest*
2764if test -n "$ac_declaration"; then
2765  echo '#ifdef __cplusplus' >>confdefs.h
2766  echo $ac_declaration      >>confdefs.h
2767  echo '#endif'             >>confdefs.h
2768fi
2769
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774fi
2775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776ac_ext=c
2777ac_cpp='$CPP $CPPFLAGS'
2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781
2782if test -z "$CC" ; then
2783  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2784echo "$as_me: error: Failed to find a C compiler!" >&2;}
2785   { (exit 1); exit 1; }; }
2786fi
2787# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2788case "$CC" in
2789  clang* ) ;;
2790  cl* | */cl* | CL* | */CL* )
2791    if test "$ac_cv_prog_cc_g" = yes ; then
2792      ac_cv_prog_cc_g=no
2793      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2794echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2795    fi ;;
2796  * )
2797    CYGPATH_W=echo
2798    ;;
2799esac
2800CFLAGS="$save_cflags"
2801
2802# add automake conditional so we can recognize cl compiler in makefile
2803coin_cc_is_cl=false
2804case "$CC" in
2805  clang* ) ;;
2806  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2807    coin_cc_is_cl=true
2808    ;;
2809esac
2810
2811
2812if test $coin_cc_is_cl = true; then
2813  COIN_CC_IS_CL_TRUE=
2814  COIN_CC_IS_CL_FALSE='#'
2815else
2816  COIN_CC_IS_CL_TRUE='#'
2817  COIN_CC_IS_CL_FALSE=
2818fi
2819
2820
2821# Check if a project specific CFLAGS variable has been set
2822if test x$COIN_PRJCT != x; then
2823  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2824  if test x$coin_tmp = xset; then
2825    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2826  fi
2827fi
2828
2829if test x"$CFLAGS" = x; then
2830
2831  coin_add_cflags=
2832  coin_opt_cflags=
2833  coin_dbg_cflags=
2834  coin_warn_cflags=
2835
2836  if test "$GCC" = "yes"; then
2837    case "$CC" in
2838      icc* | */icc*)
2839        ;;
2840      *)
2841        coin_opt_cflags="-O3"
2842        coin_add_cflags="-pipe"
2843        coin_dbg_cflags="-g -O0"
2844        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2845        case $build in
2846          *-darwin*)
2847            ;;
2848          *)
2849            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2850            ;;
2851        esac
2852    esac
2853  fi
2854  if test -z "$coin_opt_cflags"; then
2855    case $build in
2856      *-cygwin* | *-mingw*)
2857        case "$CC" in
2858          clang* ) ;;
2859          cl* | */cl* | CL* | */CL*)
2860            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2861              coin_opt_cflags='-MD -O2'
2862              coin_dbg_cflags='-MDd'
2863            else
2864              coin_opt_cflags='-MT -O2'
2865              coin_dbg_cflags='-MTd'
2866            fi
2867            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2868            ;;
2869          icl* | */icl* | ICL* | */ICL*)
2870            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2871              coin_opt_cflags='-MD -Ox'
2872              coin_dbg_cflags='-MDd -debug'
2873            else
2874              coin_opt_cflags='-MT -Ox'
2875              coin_dbg_cflags='-MTd -debug'
2876            fi
2877            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2878            ;;
2879        esac
2880        ;;
2881      *-linux-*)
2882        case "$CC" in
2883          icc* | */icc*)
2884            coin_opt_cflags="-O3 -ip -mp1"
2885            coin_add_cflags=""
2886            coin_dbg_cflags="-g"
2887            # Check if -i_dynamic is necessary (for new glibc library)
2888            CFLAGS=
2889            cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h.  */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h.  */
2895
2896int
2897main ()
2898{
2899int i=0; i++;
2900  ;
2901  return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext conftest$ac_exeext
2905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2906  (eval $ac_link) 2>conftest.er1
2907  ac_status=$?
2908  grep -v '^ *+' conftest.er1 >conftest.err
2909  rm -f conftest.er1
2910  cat conftest.err >&5
2911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912  (exit $ac_status); } &&
2913         { ac_try='test -z "$ac_c_werror_flag"
2914                         || test ! -s conftest.err'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; } &&
2920         { ac_try='test -s conftest$ac_exeext'
2921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922  (eval $ac_try) 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }; }; then
2926  :
2927else
2928  echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931coin_add_cflags="-i_dynamic $coin_add_cflags"
2932fi
2933rm -f conftest.err conftest.$ac_objext \
2934      conftest$ac_exeext conftest.$ac_ext
2935            ;;
2936          pgcc* | */pgcc*)
2937            coin_opt_cflags="-fast"
2938            coin_add_cflags="-Kieee -pc 64"
2939            coin_dbg_cflags="-g"
2940            ;;
2941        esac
2942        ;;
2943      *-ibm-*)
2944        case "$CC" in
2945          xlc* | */xlc* | mpxlc* | */mpxlc*)
2946            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2947            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2948            coin_dbg_cflags="-g"
2949          ;;
2950        esac
2951        ;;
2952      *-hp-*)
2953        coin_opt_cflags="-O"
2954        coin_add_cflags="-Ae"
2955        coin_dbg_cflags="-g"
2956        ;;
2957      *-*-solaris*)
2958        coin_opt_cflags="-xO4"
2959        coin_dbg_cflags="-g"
2960        ;;
2961      *-sgi-*)
2962        coin_opt_cflags="-O -OPT:Olimit=0"
2963        coin_dbg_cflags="-g"
2964        ;;
2965    esac
2966  fi
2967
2968  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2969    coin_dbg_cflags="-g"
2970  fi
2971
2972  if test -z "$coin_opt_cflags"; then
2973    # Try if -O option works if nothing else is set
2974    CFLAGS="-O"
2975    cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985int i=0; i++;
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext conftest$ac_exeext
2991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992  (eval $ac_link) 2>conftest.er1
2993  ac_status=$?
2994  grep -v '^ *+' conftest.er1 >conftest.err
2995  rm -f conftest.er1
2996  cat conftest.err >&5
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); } &&
2999         { ac_try='test -z "$ac_c_werror_flag"
3000                         || test ! -s conftest.err'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; } &&
3006         { ac_try='test -s conftest$ac_exeext'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; }; then
3012  coin_opt_cflags="-O"
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017fi
3018rm -f conftest.err conftest.$ac_objext \
3019      conftest$ac_exeext conftest.$ac_ext
3020  fi
3021
3022  # if PM doesn't want the warning messages, take them out
3023  if test x"$coin_skip_warn_cflags" = xyes; then
3024    coin_warn_cflags=
3025  fi
3026
3027  if test x${DBG_CFLAGS+set} != xset; then
3028    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3029  fi
3030  if test x${OPT_CFLAGS+set} != xset; then
3031    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3032  fi
3033
3034  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3035  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3036
3037  if test "$coin_debug_compile" = "true"; then
3038    CFLAGS="$DBG_CFLAGS"
3039  else
3040    CFLAGS="$OPT_CFLAGS"
3041  fi
3042
3043else
3044  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3045  if test x${DBG_CFLAGS+set} != xset; then
3046    DBG_CFLAGS="$CFLAGS"
3047  fi
3048  if test x${OPT_CFLAGS+set} != xset; then
3049    OPT_CFLAGS="$CFLAGS"
3050  fi
3051fi
3052
3053# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3054
3055case "$CFLAGS" in
3056  *-mno-cygwin*)
3057    if test x${CPPFLAGS+set} != xset ; then
3058      CPPFLAGS="-mno-cygwin"
3059    else
3060      case "$CPPFLAGS" in
3061        *-mno-cygwin*)
3062          ;;
3063        *)
3064          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3065          ;;
3066      esac
3067    fi ;;
3068esac
3069
3070# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3071if test x$COIN_PRJCT != x; then
3072  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3073fi
3074
3075# Try if CFLAGS works
3076save_CFLAGS="$CFLAGS"
3077cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h.  */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h.  */
3083
3084int
3085main ()
3086{
3087int i=0; i++;
3088  ;
3089  return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext conftest$ac_exeext
3093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3094  (eval $ac_link) 2>conftest.er1
3095  ac_status=$?
3096  grep -v '^ *+' conftest.er1 >conftest.err
3097  rm -f conftest.er1
3098  cat conftest.err >&5
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); } &&
3101         { ac_try='test -z "$ac_c_werror_flag"
3102                         || test ! -s conftest.err'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; } &&
3108         { ac_try='test -s conftest$ac_exeext'
3109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110  (eval $ac_try) 2>&5
3111  ac_status=$?
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); }; }; then
3114  :
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119CFLAGS=
3120fi
3121rm -f conftest.err conftest.$ac_objext \
3122      conftest$ac_exeext conftest.$ac_ext
3123if test -z "$CFLAGS"; then
3124  { 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
3125echo "$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;}
3126  CFLAGS='-O'
3127  cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134int
3135main ()
3136{
3137int i=0; i++;
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext conftest$ac_exeext
3143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3144  (eval $ac_link) 2>conftest.er1
3145  ac_status=$?
3146  grep -v '^ *+' conftest.er1 >conftest.err
3147  rm -f conftest.er1
3148  cat conftest.err >&5
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } &&
3151         { ac_try='test -z "$ac_c_werror_flag"
3152                         || test ! -s conftest.err'
3153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154  (eval $ac_try) 2>&5
3155  ac_status=$?
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); }; } &&
3158         { ac_try='test -s conftest$ac_exeext'
3159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160  (eval $ac_try) 2>&5
3161  ac_status=$?
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; }; then
3164  :
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169CFLAGS=
3170fi
3171rm -f conftest.err conftest.$ac_objext \
3172      conftest$ac_exeext conftest.$ac_ext
3173  if test -z "$CFLAGS"; then
3174    { 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
3175echo "$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;}
3176  fi
3177fi
3178
3179{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3180echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3181
3182
3183if test x"$MPICC" = x; then :; else
3184  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3185echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3186  CC="$MPICC"
3187fi
3188
3189# Correct the LD variable if we are using the MS or Intel-windows compiler
3190case "$CC" in
3191  clang* ) ;;
3192  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3193
3194 case $build in
3195  *-mingw*)
3196    if test "${LD+set}" = set; then :; else
3197      LD=link
3198    fi
3199    ;;
3200 esac
3201 if test $enable_msvc = yes ; then
3202   if test "x${LD+set}" = xset; then :; else
3203     LD=link
3204   fi
3205 fi
3206
3207    ;;
3208esac
3209
3210# check whether to add flags for static linking against standard libraries to LDFLAGS
3211if test x$use_static_standardlibs != xno ; then
3212  case $build in
3213    *-mingw*)
3214      static_standardlib_flag=-static
3215      ;;
3216    *)
3217      static_standardlib_flag=-static-libgcc
3218      ;;
3219  esac
3220  case " $LDFLAGS " in
3221    *" $static_standardlib_flag "* ) ;;
3222    *)
3223    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3224echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3225    coin_save_LDFLAGS="$LDFLAGS"
3226    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3227    cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h.  */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237int i=0;
3238  ;
3239  return 0;
3240}
3241_ACEOF
3242rm -f conftest.$ac_objext conftest$ac_exeext
3243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244  (eval $ac_link) 2>conftest.er1
3245  ac_status=$?
3246  grep -v '^ *+' conftest.er1 >conftest.err
3247  rm -f conftest.er1
3248  cat conftest.err >&5
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); } &&
3251         { ac_try='test -z "$ac_c_werror_flag"
3252                         || test ! -s conftest.err'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; } &&
3258         { ac_try='test -s conftest$ac_exeext'
3259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260  (eval $ac_try) 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }; }; then
3264  echo "$as_me:$LINENO: result: yes" >&5
3265echo "${ECHO_T}yes" >&6
3266else
3267  echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270echo "$as_me:$LINENO: result: no" >&5
3271echo "${ECHO_T}no" >&6
3272       LDFLAGS="$coin_save_LDFLAGS"
3273       if test $use_static_standardlibs = yes ; then
3274         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3275echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3276   { (exit 1); exit 1; }; }
3277       fi
3278
3279fi
3280rm -f conftest.err conftest.$ac_objext \
3281      conftest$ac_exeext conftest.$ac_ext
3282    ;;
3283  esac
3284fi
3285
3286ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292
3293
3294# Initialize automake and libtool
3295{
3296
3297
3298
3299# START
3300
3301coin_disable_shared=no
3302# Test if force_shared has been set
3303if test "x" = xforce_shared; then
3304  if test x$enable_shared = xno; then
3305    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3306echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3307   { (exit 1); exit 1; }; }
3308  fi
3309  enable_shared=yes;
3310else
3311  # On Cygwin and AIX, building DLLs doesn't work
3312  case $build in
3313    *-cygwin* | *-mingw*)
3314      coin_disable_shared=yes
3315      if test x"$enable_shared" = xyes; then
3316        case "$CXX" in
3317          clang* )
3318            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3319echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3320            ;;
3321          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3322            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
3323echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
3324            ;;
3325          *)
3326            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
3327echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
3328            ;;
3329        esac
3330      fi
3331    ;;
3332    *-aix*)
3333      coin_disable_shared=yes
3334      platform=AIX
3335      if test x"$enable_shared" = xyes; then
3336        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
3337echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
3338      fi
3339    ;;
3340  esac
3341fi
3342if test x"$coin_disable_shared" = xyes; then
3343  if test x"$enable_shared" = xyes; then
3344    :
3345  else
3346    # we don't disable shared, because it was not selected anyway
3347    coin_disable_shared=no
3348  fi
3349  enable_shared=no
3350fi
3351# By default, we only want the shared objects to be compiled
3352# Check whether --enable-static or --disable-static was given.
3353if test "${enable_static+set}" = set; then
3354  enableval="$enable_static"
3355  p=${PACKAGE-default}
3356    case $enableval in
3357    yes) enable_static=yes ;;
3358    no) enable_static=no ;;
3359    *)
3360     enable_static=no
3361      # Look at the argument we got.  We use all the common list separators.
3362      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3363      for pkg in $enableval; do
3364        IFS="$lt_save_ifs"
3365        if test "X$pkg" = "X$p"; then
3366          enable_static=yes
3367        fi
3368      done
3369      IFS="$lt_save_ifs"
3370      ;;
3371    esac
3372else
3373  enable_static=no
3374fi;
3375
3376
3377
3378
3379# Initialize automake
3380am__api_version="1.9"
3381# Find a good install program.  We prefer a C program (faster),
3382# so one script is as good as another.  But avoid the broken or
3383# incompatible versions:
3384# SysV /etc/install, /usr/sbin/install
3385# SunOS /usr/etc/install
3386# IRIX /sbin/install
3387# AIX /bin/install
3388# AmigaOS /C/install, which installs bootblocks on floppy discs
3389# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3390# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3391# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3392# OS/2's system install, which has a completely different semantic
3393# ./install, which can be erroneously created by make from ./install.sh.
3394echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3395echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3396if test -z "$INSTALL"; then
3397if test "${ac_cv_path_install+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401for as_dir in $PATH
3402do
3403  IFS=$as_save_IFS
3404  test -z "$as_dir" && as_dir=.
3405  # Account for people who put trailing slashes in PATH elements.
3406case $as_dir/ in
3407  ./ | .// | /cC/* | \
3408  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3409  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3410  /usr/ucb/* ) ;;
3411  *)
3412    # OSF1 and SCO ODT 3.0 have their own names for install.
3413    # Don't use installbsd from OSF since it installs stuff as root
3414    # by default.
3415    for ac_prog in ginstall scoinst install; do
3416      for ac_exec_ext in '' $ac_executable_extensions; do
3417        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3418          if test $ac_prog = install &&
3419            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3420            # AIX install.  It has an incompatible calling convention.
3421            :
3422          elif test $ac_prog = install &&
3423            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3424            # program-specific install script used by HP pwplus--don't use.
3425            :
3426          else
3427            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3428            break 3
3429          fi
3430        fi
3431      done
3432    done
3433    ;;
3434esac
3435done
3436
3437
3438fi
3439  if test "${ac_cv_path_install+set}" = set; then
3440    INSTALL=$ac_cv_path_install
3441  else
3442    # As a last resort, use the slow shell script.  We don't cache a
3443    # path for INSTALL within a source directory, because that will
3444    # break other packages using the cache if that directory is
3445    # removed, or if the path is relative.
3446    INSTALL=$ac_install_sh
3447  fi
3448fi
3449echo "$as_me:$LINENO: result: $INSTALL" >&5
3450echo "${ECHO_T}$INSTALL" >&6
3451
3452# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3453# It thinks the first close brace ends the variable substitution.
3454test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3455
3456test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3457
3458test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3459
3460echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3461echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3462# Just in case
3463sleep 1
3464echo timestamp > conftest.file
3465# Do `set' in a subshell so we don't clobber the current shell's
3466# arguments.  Must try -L first in case configure is actually a
3467# symlink; some systems play weird games with the mod time of symlinks
3468# (eg FreeBSD returns the mod time of the symlink's containing
3469# directory).
3470if (
3471   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3472   if test "$*" = "X"; then
3473      # -L didn't work.
3474      set X `ls -t $srcdir/configure conftest.file`
3475   fi
3476   rm -f conftest.file
3477   if test "$*" != "X $srcdir/configure conftest.file" \
3478      && test "$*" != "X conftest.file $srcdir/configure"; then
3479
3480      # If neither matched, then we have a broken ls.  This can happen
3481      # if, for instance, CONFIG_SHELL is bash and it inherits a
3482      # broken ls alias from the environment.  This has actually
3483      # happened.  Such a system could not be considered "sane".
3484      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3485alias in your environment" >&5
3486echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3487alias in your environment" >&2;}
3488   { (exit 1); exit 1; }; }
3489   fi
3490
3491   test "$2" = conftest.file
3492   )
3493then
3494   # Ok.
3495   :
3496else
3497   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3498Check your system clock" >&5
3499echo "$as_me: error: newly created file is older than distributed files!
3500Check your system clock" >&2;}
3501   { (exit 1); exit 1; }; }
3502fi
3503echo "$as_me:$LINENO: result: yes" >&5
3504echo "${ECHO_T}yes" >&6
3505test "$program_prefix" != NONE &&
3506  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3507# Use a double $ so make ignores it.
3508test "$program_suffix" != NONE &&
3509  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3510# Double any \ or $.  echo might interpret backslashes.
3511# By default was `s,x,x', remove it if useless.
3512cat <<\_ACEOF >conftest.sed
3513s/[\\$]/&&/g;s/;s,x,x,$//
3514_ACEOF
3515program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3516rm conftest.sed
3517
3518# expand $ac_aux_dir to an absolute path
3519am_aux_dir=`cd $ac_aux_dir && pwd`
3520
3521test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3522# Use eval to expand $SHELL
3523if eval "$MISSING --run true"; then
3524  am_missing_run="$MISSING --run "
3525else
3526  am_missing_run=
3527  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3528echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3529fi
3530
3531if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3532  # We used to keeping the `.' as first argument, in order to
3533  # allow $(mkdir_p) to be used without argument.  As in
3534  #   $(mkdir_p) $(somedir)
3535  # where $(somedir) is conditionally defined.  However this is wrong
3536  # for two reasons:
3537  #  1. if the package is installed by a user who cannot write `.'
3538  #     make install will fail,
3539  #  2. the above comment should most certainly read
3540  #     $(mkdir_p) $(DESTDIR)$(somedir)
3541  #     so it does not work when $(somedir) is undefined and
3542  #     $(DESTDIR) is not.
3543  #  To support the latter case, we have to write
3544  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3545  #  so the `.' trick is pointless.
3546  mkdir_p='mkdir -p --'
3547else
3548  # On NextStep and OpenStep, the `mkdir' command does not
3549  # recognize any option.  It will interpret all options as
3550  # directories to create, and then abort because `.' already
3551  # exists.
3552  for d in ./-p ./--version;
3553  do
3554    test -d $d && rmdir $d
3555  done
3556  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3557  if test -f "$ac_aux_dir/mkinstalldirs"; then
3558    mkdir_p='$(mkinstalldirs)'
3559  else
3560    mkdir_p='$(install_sh) -d'
3561  fi
3562fi
3563
3564for ac_prog in gawk mawk nawk awk
3565do
3566  # Extract the first word of "$ac_prog", so it can be a program name with args.
3567set dummy $ac_prog; ac_word=$2
3568echo "$as_me:$LINENO: checking for $ac_word" >&5
3569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570if test "${ac_cv_prog_AWK+set}" = set; then
3571  echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573  if test -n "$AWK"; then
3574  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579  IFS=$as_save_IFS
3580  test -z "$as_dir" && as_dir=.
3581  for ac_exec_ext in '' $ac_executable_extensions; do
3582  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583    ac_cv_prog_AWK="$ac_prog"
3584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585    break 2
3586  fi
3587done
3588done
3589
3590fi
3591fi
3592AWK=$ac_cv_prog_AWK
3593if test -n "$AWK"; then
3594  echo "$as_me:$LINENO: result: $AWK" >&5
3595echo "${ECHO_T}$AWK" >&6
3596else
3597  echo "$as_me:$LINENO: result: no" >&5
3598echo "${ECHO_T}no" >&6
3599fi
3600
3601  test -n "$AWK" && break
3602done
3603
3604echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3605echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3606set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3607if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3608  echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610  cat >conftest.make <<\_ACEOF
3611all:
3612        @echo 'ac_maketemp="$(MAKE)"'
3613_ACEOF
3614# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3615eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3616if test -n "$ac_maketemp"; then
3617  eval ac_cv_prog_make_${ac_make}_set=yes
3618else
3619  eval ac_cv_prog_make_${ac_make}_set=no
3620fi
3621rm -f conftest.make
3622fi
3623if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3624  echo "$as_me:$LINENO: result: yes" >&5
3625echo "${ECHO_T}yes" >&6
3626  SET_MAKE=
3627else
3628  echo "$as_me:$LINENO: result: no" >&5
3629echo "${ECHO_T}no" >&6
3630  SET_MAKE="MAKE=${MAKE-make}"
3631fi
3632
3633rm -rf .tst 2>/dev/null
3634mkdir .tst 2>/dev/null
3635if test -d .tst; then
3636  am__leading_dot=.
3637else
3638  am__leading_dot=_
3639fi
3640rmdir .tst 2>/dev/null
3641
3642DEPDIR="${am__leading_dot}deps"
3643
3644          ac_config_commands="$ac_config_commands depfiles"
3645
3646
3647am_make=${MAKE-make}
3648cat > confinc << 'END'
3649am__doit:
3650        @echo done
3651.PHONY: am__doit
3652END
3653# If we don't find an include directive, just comment out the code.
3654echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3655echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3656am__include="#"
3657am__quote=
3658_am_result=none
3659# First try GNU make style include.
3660echo "include confinc" > confmf
3661# We grep out `Entering directory' and `Leaving directory'
3662# messages which can occur if `w' ends up in MAKEFLAGS.
3663# In particular we don't look at `^make:' because GNU make might
3664# be invoked under some other name (usually "gmake"), in which
3665# case it prints its new name instead of `make'.
3666if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3667   am__include=include
3668   am__quote=
3669   _am_result=GNU
3670fi
3671# Now try BSD make style include.
3672if test "$am__include" = "#"; then
3673   echo '.include "confinc"' > confmf
3674   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3675      am__include=.include
3676      am__quote="\""
3677      _am_result=BSD
3678   fi
3679fi
3680
3681
3682echo "$as_me:$LINENO: result: $_am_result" >&5
3683echo "${ECHO_T}$_am_result" >&6
3684rm -f confinc confmf
3685
3686# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3687if test "${enable_dependency_tracking+set}" = set; then
3688  enableval="$enable_dependency_tracking"
3689
3690fi;
3691if test "x$enable_dependency_tracking" != xno; then
3692  am_depcomp="$ac_aux_dir/depcomp"
3693  AMDEPBACKSLASH='\'
3694fi
3695
3696
3697if test "x$enable_dependency_tracking" != xno; then
3698  AMDEP_TRUE=
3699  AMDEP_FALSE='#'
3700else
3701  AMDEP_TRUE='#'
3702  AMDEP_FALSE=
3703fi
3704
3705
3706
3707
3708
3709
3710# AC_MSG_NOTICE([Beginning automake initialisation.])
3711# Stuff for automake
3712# test to see if srcdir already configured
3713if test "`cd $srcdir && pwd`" != "`pwd`" &&
3714   test -f $srcdir/config.status; then
3715  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3716echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3717   { (exit 1); exit 1; }; }
3718fi
3719
3720# test whether we have cygpath
3721if test -z "$CYGPATH_W"; then
3722  if (cygpath --version) >/dev/null 2>/dev/null; then
3723    CYGPATH_W='cygpath -w'
3724  else
3725    CYGPATH_W=echo
3726  fi
3727fi
3728
3729
3730# Define the identity of the package.
3731 PACKAGE='thirdpartyasl'
3732 VERSION='trunk'
3733
3734
3735cat >>confdefs.h <<_ACEOF
3736#define PACKAGE "$PACKAGE"
3737_ACEOF
3738
3739
3740cat >>confdefs.h <<_ACEOF
3741#define VERSION "$VERSION"
3742_ACEOF
3743
3744# Some tools Automake needs.
3745
3746ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3747
3748
3749AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3750
3751
3752AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3753
3754
3755AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3756
3757
3758MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3759
3760install_sh=${install_sh-"$am_aux_dir/install-sh"}
3761
3762# Installed binaries are usually stripped using `strip' when the user
3763# run `make install-strip'.  However `strip' might not be the right
3764# tool to use in cross-compilation environments, therefore Automake
3765# will honor the `STRIP' environment variable to overrule this program.
3766if test "$cross_compiling" != no; then
3767  if test -n "$ac_tool_prefix"; then
3768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3769set dummy ${ac_tool_prefix}strip; ac_word=$2
3770echo "$as_me:$LINENO: checking for $ac_word" >&5
3771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772if test "${ac_cv_prog_STRIP+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  if test -n "$STRIP"; then
3776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3777else
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779for as_dir in $PATH
3780do
3781  IFS=$as_save_IFS
3782  test -z "$as_dir" && as_dir=.
3783  for ac_exec_ext in '' $ac_executable_extensions; do
3784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787    break 2
3788  fi
3789done
3790done
3791
3792fi
3793fi
3794STRIP=$ac_cv_prog_STRIP
3795if test -n "$STRIP"; then
3796  echo "$as_me:$LINENO: result: $STRIP" >&5
3797echo "${ECHO_T}$STRIP" >&6
3798else
3799  echo "$as_me:$LINENO: result: no" >&5
3800echo "${ECHO_T}no" >&6
3801fi
3802
3803fi
3804if test -z "$ac_cv_prog_STRIP"; then
3805  ac_ct_STRIP=$STRIP
3806  # Extract the first word of "strip", so it can be a program name with args.
3807set dummy strip; ac_word=$2
3808echo "$as_me:$LINENO: checking for $ac_word" >&5
3809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3811  echo $ECHO_N "(cached) $ECHO_C" >&6
3812else
3813  if test -n "$ac_ct_STRIP"; then
3814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819  IFS=$as_save_IFS
3820  test -z "$as_dir" && as_dir=.
3821  for ac_exec_ext in '' $ac_executable_extensions; do
3822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823    ac_cv_prog_ac_ct_STRIP="strip"
3824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825    break 2
3826  fi
3827done
3828done
3829
3830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3831fi
3832fi
3833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3834if test -n "$ac_ct_STRIP"; then
3835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3836echo "${ECHO_T}$ac_ct_STRIP" >&6
3837else
3838  echo "$as_me:$LINENO: result: no" >&5
3839echo "${ECHO_T}no" >&6
3840fi
3841
3842  STRIP=$ac_ct_STRIP
3843else
3844  STRIP="$ac_cv_prog_STRIP"
3845fi
3846
3847fi
3848INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3849
3850# We need awk for the "check" target.  The system "awk" is bad on
3851# some platforms.
3852# Always define AMTAR for backward compatibility.
3853
3854AMTAR=${AMTAR-"${am_missing_run}tar"}
3855
3856am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3857
3858
3859
3860
3861depcc="$CC"   am_compiler_list=
3862
3863echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3864echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3865if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3866  echo $ECHO_N "(cached) $ECHO_C" >&6
3867else
3868  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3869  # We make a subdir and do the tests there.  Otherwise we can end up
3870  # making bogus files that we don't know about and never remove.  For
3871  # instance it was reported that on HP-UX the gcc test will end up
3872  # making a dummy file named `D' -- because `-MD' means `put the output
3873  # in D'.
3874  mkdir conftest.dir
3875  # Copy depcomp to subdir because otherwise we won't find it if we're
3876  # using a relative directory.
3877  cp "$am_depcomp" conftest.dir
3878  cd conftest.dir
3879  # We will build objects and dependencies in a subdirectory because
3880  # it helps to detect inapplicable dependency modes.  For instance
3881  # both Tru64's cc and ICC support -MD to output dependencies as a
3882  # side effect of compilation, but ICC will put the dependencies in
3883  # the current directory while Tru64 will put them in the object
3884  # directory.
3885  mkdir sub
3886
3887  am_cv_CC_dependencies_compiler_type=none
3888  if test "$am_compiler_list" = ""; then
3889     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3890  fi
3891  for depmode in $am_compiler_list; do
3892    # Setup a source with many dependencies, because some compilers
3893    # like to wrap large dependency lists on column 80 (with \), and
3894    # we should not choose a depcomp mode which is confused by this.
3895    #
3896    # We need to recreate these files for each test, as the compiler may
3897    # overwrite some of them when testing with obscure command lines.
3898    # This happens at least with the AIX C compiler.
3899    : > sub/conftest.c
3900    for i in 1 2 3 4 5 6; do
3901      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3902      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3903      # Solaris 8's {/usr,}/bin/sh.
3904      touch sub/conftst$i.h
3905    done
3906    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3907
3908    case $depmode in
3909    nosideeffect)
3910      # after this tag, mechanisms are not by side-effect, so they'll
3911      # only be used when explicitly requested
3912      if test "x$enable_dependency_tracking" = xyes; then
3913        continue
3914      else
3915        break
3916      fi
3917      ;;
3918    none) break ;;
3919    esac
3920    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3921    # mode.  It turns out that the SunPro C++ compiler does not properly
3922    # handle `-M -o', and we need to detect this.
3923    if depmode=$depmode \
3924       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3925       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3926       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3927         >/dev/null 2>conftest.err &&
3928       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3929       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3930       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3931      # icc doesn't choke on unknown options, it will just issue warnings
3932      # or remarks (even with -Werror).  So we grep stderr for any message
3933      # that says an option was ignored or not supported.
3934      # When given -MP, icc 7.0 and 7.1 complain thusly:
3935      #   icc: Command line warning: ignoring option '-M'; no argument required
3936      # The diagnosis changed in icc 8.0:
3937      #   icc: Command line remark: option '-MP' not supported
3938      if (grep 'ignoring option' conftest.err ||
3939          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3940        am_cv_CC_dependencies_compiler_type=$depmode
3941        break
3942      fi
3943    fi
3944  done
3945
3946  cd ..
3947  rm -rf conftest.dir
3948else
3949  am_cv_CC_dependencies_compiler_type=none
3950fi
3951
3952fi
3953echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3954echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3955CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3956
3957
3958
3959if
3960  test "x$enable_dependency_tracking" != xno \
3961  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3962  am__fastdepCC_TRUE=
3963  am__fastdepCC_FALSE='#'
3964else
3965  am__fastdepCC_TRUE='#'
3966  am__fastdepCC_FALSE=
3967fi
3968
3969
3970
3971echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3972echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3973    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3974if test "${enable_maintainer_mode+set}" = set; then
3975  enableval="$enable_maintainer_mode"
3976  USE_MAINTAINER_MODE=$enableval
3977else
3978  USE_MAINTAINER_MODE=no
3979fi;
3980  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3981echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3982
3983
3984if test $USE_MAINTAINER_MODE = yes; then
3985  MAINTAINER_MODE_TRUE=
3986  MAINTAINER_MODE_FALSE='#'
3987else
3988  MAINTAINER_MODE_TRUE='#'
3989  MAINTAINER_MODE_FALSE=
3990fi
3991
3992  MAINT=$MAINTAINER_MODE_TRUE
3993
3994
3995
3996coin_have_externals=no
3997if test "$enable_maintainer_mode" = yes; then
3998
3999  # If maintainer mode is chosen, we make sure that the correct versions
4000  # of the tools are used, and that we know where libtool.m4 is (to
4001  # recreate acinclude.m4)
4002
4003
4004  LIBTOOLM4=
4005  # Normally, $HOME
4006  AUTOTOOLS_DFLT=$HOME
4007
4008  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4009echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4010if test "${ac_cv_use_correct_autotools+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013  ac_cv_use_correct_autotools=check
4014fi
4015echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4016echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4017
4018  if test $ac_cv_use_correct_autotools = check; then
4019    ac_cv_use_correct_autotools=yes
4020    # Check if we have autoconf
4021    # Extract the first word of "autoconf", so it can be a program name with args.
4022set dummy autoconf; ac_word=$2
4023echo "$as_me:$LINENO: checking for $ac_word" >&5
4024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025if test "${ac_cv_prog_have_autoconf+set}" = set; then
4026  echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028  if test -n "$have_autoconf"; then
4029  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4030else
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034  IFS=$as_save_IFS
4035  test -z "$as_dir" && as_dir=.
4036  for ac_exec_ext in '' $ac_executable_extensions; do
4037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038    ac_cv_prog_have_autoconf="yes"
4039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040    break 2
4041  fi
4042done
4043done
4044
4045  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4046fi
4047fi
4048have_autoconf=$ac_cv_prog_have_autoconf
4049if test -n "$have_autoconf"; then
4050  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4051echo "${ECHO_T}$have_autoconf" >&6
4052else
4053  echo "$as_me:$LINENO: result: no" >&5
4054echo "${ECHO_T}no" >&6
4055fi
4056
4057    if test $have_autoconf = no; then
4058      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4059echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4060   { (exit 1); exit 1; }; }
4061    fi
4062
4063    # Check whether autoconf is the correct version
4064    correct_version='2.59'
4065    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4066    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4067echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4068    autoconf --version > confauto.out 2>&1
4069    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4070      echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072    else
4073      rm -f confauto.out
4074      echo "$as_me:$LINENO: result: no" >&5
4075echo "${ECHO_T}no" >&6
4076      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4077echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4078   { (exit 1); exit 1; }; }
4079    fi
4080    rm -f confauto.out
4081
4082    # Check if the executable autoconf is picked up from the correct location
4083    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4084echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4085    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4086    autoconf_dir=`cd $autoconf_dir; pwd`
4087    if test x$AUTOTOOLS_DIR = x; then
4088      want_dir=$AUTOTOOLS_DFLT/bin
4089    else
4090      want_dir=$AUTOTOOLS_DIR/bin
4091    fi
4092    if test $autoconf_dir = `cd $want_dir; pwd`; then
4093      echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
4095    else
4096      rm -f confauto.out
4097      echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4100echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4101   { (exit 1); exit 1; }; }
4102    fi
4103
4104    # Check if we have automake
4105    # Extract the first word of "automake", so it can be a program name with args.
4106set dummy automake; ac_word=$2
4107echo "$as_me:$LINENO: checking for $ac_word" >&5
4108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109if test "${ac_cv_prog_have_automake+set}" = set; then
4110  echo $ECHO_N "(cached) $ECHO_C" >&6
4111else
4112  if test -n "$have_automake"; then
4113  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4114else
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118  IFS=$as_save_IFS
4119  test -z "$as_dir" && as_dir=.
4120  for ac_exec_ext in '' $ac_executable_extensions; do
4121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122    ac_cv_prog_have_automake="yes"
4123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124    break 2
4125  fi
4126done
4127done
4128
4129  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4130fi
4131fi
4132have_automake=$ac_cv_prog_have_automake
4133if test -n "$have_automake"; then
4134  echo "$as_me:$LINENO: result: $have_automake" >&5
4135echo "${ECHO_T}$have_automake" >&6
4136else
4137  echo "$as_me:$LINENO: result: no" >&5
4138echo "${ECHO_T}no" >&6
4139fi
4140
4141    if test $have_automake = no; then
4142      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4143echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4144   { (exit 1); exit 1; }; }
4145    fi
4146
4147    # Check whether automake is the correct version
4148    correct_version='1.9.6'
4149    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4150    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4151echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4152    automake --version > confauto.out 2>&1
4153    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4154      echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156    else
4157      rm -f confauto.out
4158      echo "$as_me:$LINENO: result: no" >&5
4159echo "${ECHO_T}no" >&6
4160      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4161echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4162   { (exit 1); exit 1; }; }
4163    fi
4164    rm -f confauto.out
4165
4166    # Check if the executable automake is picked up from the correct location
4167    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4168echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4169    automake_dir=`which automake | sed -e 's=/automake=='`
4170    automake_dir=`cd $automake_dir; pwd`
4171    if test x$AUTOTOOLS_DIR = x; then
4172      want_dir=$AUTOTOOLS_DFLT/bin
4173    else
4174      want_dir=$AUTOTOOLS_DIR/bin
4175    fi
4176    if test $automake_dir = `cd $want_dir; pwd`; then
4177      echo "$as_me:$LINENO: result: yes" >&5
4178echo "${ECHO_T}yes" >&6
4179    else
4180      rm -f confauto.out
4181      echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6
4183      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4184echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4185   { (exit 1); exit 1; }; }
4186    fi
4187
4188    # Check if this is the correct version of libtool (with escaped dots)
4189    if test x$AUTOTOOLS_DIR = x; then
4190      want_dir=$AUTOTOOLS_DFLT/share
4191    else
4192      want_dir=$AUTOTOOLS_DIR/share
4193    fi
4194    correct_version='1.5.22'
4195    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4196    if test -r $want_dir/libtool/ltmain.sh; then
4197  have_ltmain=yes
4198  :
4199else
4200  have_ltmain=no
4201  :
4202fi
4203
4204    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4205echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4206    if test $have_ltmain = yes; then
4207    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4208        echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
4210      else
4211        echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
4213        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4214echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4215   { (exit 1); exit 1; }; }
4216      fi
4217    else
4218      echo "$as_me:$LINENO: result: no" >&5
4219echo "${ECHO_T}no" >&6
4220      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4221echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4222   { (exit 1); exit 1; }; }
4223    fi
4224  fi
4225
4226  # Check if we can find the libtool file
4227  if test x$AUTOTOOLS_DIR = x; then
4228    want_dir=$AUTOTOOLS_DFLT/share
4229  else
4230    want_dir=$AUTOTOOLS_DIR/share
4231  fi
4232  if test -r $want_dir/aclocal/libtool.m4; then
4233  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4234  :
4235else
4236  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4237echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4238   { (exit 1); exit 1; }; }
4239  :
4240fi
4241
4242
4243  # Check if we have an Dependencies file
4244  if test -r $srcdir/Dependencies; then
4245    coin_have_externals=yes
4246  fi
4247  # Check if subversion is installed and understands https
4248  # Extract the first word of "svn", so it can be a program name with args.
4249set dummy svn; ac_word=$2
4250echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252if test "${ac_cv_prog_have_svn+set}" = set; then
4253  echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255  if test -n "$have_svn"; then
4256  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263  for ac_exec_ext in '' $ac_executable_extensions; do
4264  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265    ac_cv_prog_have_svn="yes"
4266    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267    break 2
4268  fi
4269done
4270done
4271
4272  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4273fi
4274fi
4275have_svn=$ac_cv_prog_have_svn
4276if test -n "$have_svn"; then
4277  echo "$as_me:$LINENO: result: $have_svn" >&5
4278echo "${ECHO_T}$have_svn" >&6
4279else
4280  echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282fi
4283
4284  if test x$have_svn = xyes; then
4285    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4286echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4287if test "${ac_cv_svn_understands_https+set}" = set; then
4288  echo $ECHO_N "(cached) $ECHO_C" >&6
4289else
4290  svn --version > confauto.out 2>&1
4291                    if $EGREP https confauto.out >/dev/null 2>&1; then
4292                      ac_cv_svn_understands_https=yes
4293                    else
4294                      ac_cv_svn_understands_https=no
4295                      have_svn=no
4296                      ac_cv_prog_have_svn=no
4297                    fi
4298                    rm -f confauto.out
4299fi
4300echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4301echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4302  fi
4303
4304  # Find the location of the BuildTools directory
4305  BUILDTOOLSDIR=
4306  if test -r $srcdir/BuildTools/coin.m4; then
4307    BUILDTOOLSDIR=$srcdir/BuildTools
4308  else
4309    if test -r $srcdir/../BuildTools/coin.m4; then
4310      BUILDTOOLSDIR=$srcdir/../BuildTools
4311    else
4312      if test -r $srcdir/../../BuildTools/coin.m4; then
4313        BUILDTOOLSDIR=$srcdir/../../BuildTools
4314      else
4315        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4316echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4317   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4318      fi
4319    fi
4320  fi
4321
4322
4323  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4324  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4325    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4326  fi
4327
4328  # The following variable is set to the name of the directory where
4329  # the autotool scripts are located
4330
4331  AUX_DIR=$ac_aux_dir
4332fi
4333
4334# helpful variable for the base directory of this package
4335abs_source_dir=`cd $srcdir; pwd`
4336
4337
4338# Stuff for example Makefiles
4339if test x$prefix = xNONE; then
4340  full_prefix=$ac_default_prefix
4341else
4342  full_prefix=$prefix
4343fi
4344full_prefix=`cd $full_prefix ; pwd`
4345
4346abs_lib_dir=$full_prefix/lib
4347
4348abs_include_dir=$full_prefix/include
4349
4350abs_bin_dir=$full_prefix/bin
4351
4352
4353
4354if test $coin_have_externals = yes && test x$have_svn = xyes; then
4355  HAVE_EXTERNALS_TRUE=
4356  HAVE_EXTERNALS_FALSE='#'
4357else
4358  HAVE_EXTERNALS_TRUE='#'
4359  HAVE_EXTERNALS_FALSE=
4360fi
4361
4362
4363# AC_MSG_NOTICE([End automake initialisation.])
4364
4365
4366
4367LIBTOOL=
4368if test -r ../libtool; then
4369  coin_config_dir=..
4370  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4371fi
4372if test "x$LIBTOOL" = x; then
4373  if test -r ../../libtool; then
4374    coin_config_dir=../..
4375    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4376  fi
4377fi
4378
4379if test "x$LIBTOOL" = x; then
4380# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4381  # Stuff for libtool
4382  # Check whether --enable-shared or --disable-shared was given.
4383if test "${enable_shared+set}" = set; then
4384  enableval="$enable_shared"
4385  p=${PACKAGE-default}
4386    case $enableval in
4387    yes) enable_shared=yes ;;
4388    no) enable_shared=no ;;
4389    *)
4390      enable_shared=no
4391      # Look at the argument we got.  We use all the common list separators.
4392      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4393      for pkg in $enableval; do
4394        IFS="$lt_save_ifs"
4395        if test "X$pkg" = "X$p"; then
4396          enable_shared=yes
4397        fi
4398      done
4399      IFS="$lt_save_ifs"
4400      ;;
4401    esac
4402else
4403  enable_shared=yes
4404fi;
4405
4406# Check whether --enable-fast-install or --disable-fast-install was given.
4407if test "${enable_fast_install+set}" = set; then
4408  enableval="$enable_fast_install"
4409  p=${PACKAGE-default}
4410    case $enableval in
4411    yes) enable_fast_install=yes ;;
4412    no) enable_fast_install=no ;;
4413    *)
4414      enable_fast_install=no
4415      # Look at the argument we got.  We use all the common list separators.
4416      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4417      for pkg in $enableval; do
4418        IFS="$lt_save_ifs"
4419        if test "X$pkg" = "X$p"; then
4420          enable_fast_install=yes
4421        fi
4422      done
4423      IFS="$lt_save_ifs"
4424      ;;
4425    esac
4426else
4427  enable_fast_install=yes
4428fi;
4429
4430echo "$as_me:$LINENO: checking host system type" >&5
4431echo $ECHO_N "checking host system type... $ECHO_C" >&6
4432if test "${ac_cv_host+set}" = set; then
4433  echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435  ac_cv_host_alias=$host_alias
4436test -z "$ac_cv_host_alias" &&
4437  ac_cv_host_alias=$ac_cv_build_alias
4438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4439  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4441   { (exit 1); exit 1; }; }
4442
4443fi
4444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4445echo "${ECHO_T}$ac_cv_host" >&6
4446host=$ac_cv_host
4447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4450
4451
4452echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4453echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4454if test "${lt_cv_path_SED+set}" = set; then
4455  echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457  # Loop through the user's path and test for sed and gsed.
4458# Then use that list of sed's as ones to test for truncation.
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462  IFS=$as_save_IFS
4463  test -z "$as_dir" && as_dir=.
4464  for lt_ac_prog in sed gsed; do
4465    for ac_exec_ext in '' $ac_executable_extensions; do
4466      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4467        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4468      fi
4469    done
4470  done
4471done
4472lt_ac_max=0
4473lt_ac_count=0
4474# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4475# along with /bin/sed that truncates output.
4476for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4477  test ! -f $lt_ac_sed && continue
4478  cat /dev/null > conftest.in
4479  lt_ac_count=0
4480  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4481  # Check for GNU sed and select it if it is found.
4482  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4483    lt_cv_path_SED=$lt_ac_sed
4484    break
4485  fi
4486  while true; do
4487    cat conftest.in conftest.in >conftest.tmp
4488    mv conftest.tmp conftest.in
4489    cp conftest.in conftest.nl
4490    echo >>conftest.nl
4491    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4492    cmp -s conftest.out conftest.nl || break
4493    # 10000 chars as input seems more than enough
4494    test $lt_ac_count -gt 10 && break
4495    lt_ac_count=`expr $lt_ac_count + 1`
4496    if test $lt_ac_count -gt $lt_ac_max; then
4497      lt_ac_max=$lt_ac_count
4498      lt_cv_path_SED=$lt_ac_sed
4499    fi
4500  done
4501done
4502
4503fi
4504
4505SED=$lt_cv_path_SED
4506echo "$as_me:$LINENO: result: $SED" >&5
4507echo "${ECHO_T}$SED" >&6
4508
4509
4510# Check whether --with-gnu-ld or --without-gnu-ld was given.
4511if test "${with_gnu_ld+set}" = set; then
4512  withval="$with_gnu_ld"
4513  test "$withval" = no || with_gnu_ld=yes
4514else
4515  with_gnu_ld=no
4516fi;
4517ac_prog=ld
4518if test "$GCC" = yes; then
4519  # Check if gcc -print-prog-name=ld gives a path.
4520  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4521echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4522  case $host in
4523  *-*-mingw*)
4524    # gcc leaves a trailing carriage return which upsets mingw
4525    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4526  *)
4527    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4528  esac
4529  case $ac_prog in
4530    # Accept absolute paths.
4531    [\\/]* | ?:[\\/]*)
4532      re_direlt='/[^/][^/]*/\.\./'
4533      # Canonicalize the pathname of ld
4534      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4535      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4536        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4537      done
4538      test -z "$LD" && LD="$ac_prog"
4539      ;;
4540  "")
4541    # If it fails, then pretend we aren't using GCC.
4542    ac_prog=ld
4543    ;;
4544  *)
4545    # If it is relative, then search for the first ld in PATH.
4546    with_gnu_ld=unknown
4547    ;;
4548  esac
4549elif test "$with_gnu_ld" = yes; then
4550  echo "$as_me:$LINENO: checking for GNU ld" >&5
4551echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4552else
4553  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4554echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4555fi
4556if test "${lt_cv_path_LD+set}" = set; then
4557  echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559  if test -z "$LD"; then
4560  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4561  for ac_dir in $PATH; do
4562    IFS="$lt_save_ifs"
4563    test -z "$ac_dir" && ac_dir=.
4564    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4565      lt_cv_path_LD="$ac_dir/$ac_prog"
4566      # Check to see if the program is GNU ld.  I'd rather use --version,
4567      # but apparently some variants of GNU ld only accept -v.
4568      # Break only if it was the GNU/non-GNU ld that we prefer.
4569      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4570      *GNU* | *'with BFD'*)
4571        test "$with_gnu_ld" != no && break
4572        ;;
4573      *)
4574        test "$with_gnu_ld" != yes && break
4575        ;;
4576      esac
4577    fi
4578  done
4579  IFS="$lt_save_ifs"
4580else
4581  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4582fi
4583fi
4584
4585LD="$lt_cv_path_LD"
4586if test -n "$LD"; then
4587  echo "$as_me:$LINENO: result: $LD" >&5
4588echo "${ECHO_T}$LD" >&6
4589else
4590  echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6
4592fi
4593test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4594echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4595   { (exit 1); exit 1; }; }
4596echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4597echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4598if test "${lt_cv_prog_gnu_ld+set}" = set; then
4599  echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4602case `$LD -v 2>&1 </dev/null` in
4603*GNU* | *'with BFD'*)
4604  lt_cv_prog_gnu_ld=yes
4605  ;;
4606*)
4607  lt_cv_prog_gnu_ld=no
4608  ;;
4609esac
4610fi
4611echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4612echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4613with_gnu_ld=$lt_cv_prog_gnu_ld
4614
4615
4616echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4617echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4618if test "${lt_cv_ld_reload_flag+set}" = set; then
4619  echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621  lt_cv_ld_reload_flag='-r'
4622fi
4623echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4624echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4625reload_flag=$lt_cv_ld_reload_flag
4626case $reload_flag in
4627"" | " "*) ;;
4628*) reload_flag=" $reload_flag" ;;
4629esac
4630reload_cmds='$LD$reload_flag -o $output$reload_objs'
4631case $host_os in
4632  darwin*)
4633    if test "$GCC" = yes; then
4634      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4635    else
4636      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4637    fi
4638    ;;
4639esac
4640
4641echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4642echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4643if test "${lt_cv_path_NM+set}" = set; then
4644  echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646  if test -n "$NM"; then
4647  # Let the user override the test.
4648  lt_cv_path_NM="$NM"
4649else
4650  lt_nm_to_check="${ac_tool_prefix}nm"
4651  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4652    lt_nm_to_check="$lt_nm_to_check nm"
4653  fi
4654  for lt_tmp_nm in $lt_nm_to_check; do
4655    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4656    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4657      IFS="$lt_save_ifs"
4658      test -z "$ac_dir" && ac_dir=.
4659      tmp_nm="$ac_dir/$lt_tmp_nm"
4660      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4661        # Check to see if the nm accepts a BSD-compat flag.
4662        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4663        #   nm: unknown option "B" ignored
4664        # Tru64's nm complains that /dev/null is an invalid object file
4665        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4666        */dev/null* | *'Invalid file or object type'*)
4667          lt_cv_path_NM="$tmp_nm -B"
4668          break
4669          ;;
4670        *)
4671          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4672          */dev/null*)
4673            lt_cv_path_NM="$tmp_nm -p"
4674            break
4675            ;;
4676          *)
4677            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4678            continue # so that we can try to find one that supports BSD flags
4679            ;;
4680          esac
4681          ;;
4682        esac
4683      fi
4684    done
4685    IFS="$lt_save_ifs"
4686  done
4687  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4688fi
4689fi
4690echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4691echo "${ECHO_T}$lt_cv_path_NM" >&6
4692NM="$lt_cv_path_NM"
4693
4694echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4695echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4696if test "${lt_cv_deplibs_check_method+set}" = set; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699  lt_cv_file_magic_cmd='$MAGIC_CMD'
4700lt_cv_file_magic_test_file=
4701lt_cv_deplibs_check_method='unknown'
4702# Need to set the preceding variable on all platforms that support
4703# interlibrary dependencies.
4704# 'none' -- dependencies not supported.
4705# `unknown' -- same as none, but documents that we really don't know.
4706# 'pass_all' -- all dependencies passed with no checks.
4707# 'test_compile' -- check by making test program.
4708# 'file_magic [[regex]]' -- check by looking for files in library path
4709# which responds to the $file_magic_cmd with a given extended regex.
4710# If you have `file' or equivalent on your system and you're not sure
4711# whether `pass_all' will *always* work, you probably want this one.
4712
4713case $host_os in
4714aix4* | aix5*)
4715  lt_cv_deplibs_check_method=pass_all
4716  ;;
4717
4718beos*)
4719  lt_cv_deplibs_check_method=pass_all
4720  ;;
4721
4722bsdi[45]*)
4723  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4724  lt_cv_file_magic_cmd='/usr/bin/file -L'
4725  lt_cv_file_magic_test_file=/shlib/libc.so
4726  ;;
4727
4728cygwin*)
4729  # func_win32_libid is a shell function defined in ltmain.sh
4730  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4731  lt_cv_file_magic_cmd='func_win32_libid'
4732  ;;
4733
4734mingw* | pw32*)
4735  # Base MSYS/MinGW do not provide the 'file' command needed by
4736  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4737  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4738  lt_cv_file_magic_cmd='$OBJDUMP -f'
4739  ;;
4740
4741darwin* | rhapsody*)
4742  lt_cv_deplibs_check_method=pass_all
4743  ;;
4744
4745freebsd* | kfreebsd*-gnu | dragonfly*)
4746  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4747    case $host_cpu in
4748    i*86 )
4749      # Not sure whether the presence of OpenBSD here was a mistake.
4750      # Let's accept both of them until this is cleared up.
4751      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4752      lt_cv_file_magic_cmd=/usr/bin/file
4753      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4754      ;;
4755    esac
4756  else
4757    lt_cv_deplibs_check_method=pass_all
4758  fi
4759  ;;
4760
4761gnu*)
4762  lt_cv_deplibs_check_method=pass_all
4763  ;;
4764
4765hpux10.20* | hpux11*)
4766  lt_cv_file_magic_cmd=/usr/bin/file
4767  case $host_cpu in
4768  ia64*)
4769    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4770    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4771    ;;
4772  hppa*64*)
4773    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]'
4774    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4775    ;;
4776  *)
4777    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4778    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4779    ;;
4780  esac
4781  ;;
4782
4783interix3*)
4784  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4785  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4786  ;;
4787
4788irix5* | irix6* | nonstopux*)
4789  case $LD in
4790  *-32|*"-32 ") libmagic=32-bit;;
4791  *-n32|*"-n32 ") libmagic=N32;;
4792  *-64|*"-64 ") libmagic=64-bit;;
4793  *) libmagic=never-match;;
4794  esac
4795  lt_cv_deplibs_check_method=pass_all
4796  ;;
4797
4798# This must be Linux ELF.
4799linux*)
4800  lt_cv_deplibs_check_method=pass_all
4801  ;;
4802
4803netbsd*)
4804  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4805    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4806  else
4807    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4808  fi
4809  ;;
4810
4811newos6*)
4812  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4813  lt_cv_file_magic_cmd=/usr/bin/file
4814  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4815  ;;
4816
4817nto-qnx*)
4818  lt_cv_deplibs_check_method=unknown
4819  ;;
4820
4821openbsd*)
4822  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4823    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4824  else
4825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4826  fi
4827  ;;
4828
4829osf3* | osf4* | osf5*)
4830  lt_cv_deplibs_check_method=pass_all
4831  ;;
4832
4833solaris*)
4834  lt_cv_deplibs_check_method=pass_all
4835  ;;
4836
4837sysv4 | sysv4.3*)
4838  case $host_vendor in
4839  motorola)
4840    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]'
4841    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4842    ;;
4843  ncr)
4844    lt_cv_deplibs_check_method=pass_all
4845    ;;
4846  sequent)
4847    lt_cv_file_magic_cmd='/bin/file'
4848    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4849    ;;
4850  sni)
4851    lt_cv_file_magic_cmd='/bin/file'
4852    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4853    lt_cv_file_magic_test_file=/lib/libc.so
4854    ;;
4855  siemens)
4856    lt_cv_deplibs_check_method=pass_all
4857    ;;
4858  pc)
4859    lt_cv_deplibs_check_method=pass_all
4860    ;;
4861  esac
4862  ;;
4863
4864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4865  lt_cv_deplibs_check_method=pass_all
4866  ;;
4867esac
4868
4869fi
4870echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4871echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4872file_magic_cmd=$lt_cv_file_magic_cmd
4873deplibs_check_method=$lt_cv_deplibs_check_method
4874test -z "$deplibs_check_method" && deplibs_check_method=unknown
4875
4876
4877
4878
4879# If no C compiler was specified, use CC.
4880LTCC=${LTCC-"$CC"}
4881
4882# If no C compiler flags were specified, use CFLAGS.
4883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4884
4885# Allow CC to be a program name with arguments.
4886compiler=$CC
4887
4888# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4889if test "${enable_libtool_lock+set}" = set; then
4890  enableval="$enable_libtool_lock"
4891
4892fi;
4893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4894
4895# Some flags need to be propagated to the compiler or linker for good
4896# libtool support.
4897case $host in
4898ia64-*-hpux*)
4899  # Find out which ABI we are using.
4900  echo 'int i;' > conftest.$ac_ext
4901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902  (eval $ac_compile) 2>&5
4903  ac_status=$?
4904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905  (exit $ac_status); }; then
4906    case `/usr/bin/file conftest.$ac_objext` in
4907    *ELF-32*)
4908      HPUX_IA64_MODE="32"
4909      ;;
4910    *ELF-64*)
4911      HPUX_IA64_MODE="64"
4912      ;;
4913    esac
4914  fi
4915  rm -rf conftest*
4916  ;;
4917*-*-irix6*)
4918  # Find out which ABI we are using.
4919  echo '#line 4919 "configure"' > conftest.$ac_ext
4920  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4921  (eval $ac_compile) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; then
4925   if test "$lt_cv_prog_gnu_ld" = yes; then
4926    case `/usr/bin/file conftest.$ac_objext` in
4927    *32-bit*)
4928      LD="${LD-ld} -melf32bsmip"
4929      ;;
4930    *N32*)
4931      LD="${LD-ld} -melf32bmipn32"
4932      ;;
4933    *64-bit*)
4934      LD="${LD-ld} -melf64bmip"
4935      ;;
4936    esac
4937   else
4938    case `/usr/bin/file conftest.$ac_objext` in
4939    *32-bit*)
4940      LD="${LD-ld} -32"
4941      ;;
4942    *N32*)
4943      LD="${LD-ld} -n32"
4944      ;;
4945    *64-bit*)
4946      LD="${LD-ld} -64"
4947      ;;
4948    esac
4949   fi
4950  fi
4951  rm -rf conftest*
4952  ;;
4953
4954x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4955  # Find out which ABI we are using.
4956  echo 'int i;' > conftest.$ac_ext
4957  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958  (eval $ac_compile) 2>&5
4959  ac_status=$?
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); }; then
4962    case `/usr/bin/file conftest.o` in
4963    *32-bit*)
4964      case $host in
4965        x86_64-*linux*)
4966          LD="${LD-ld} -m elf_i386"
4967          ;;
4968        ppc64-*linux*|powerpc64-*linux*)
4969          LD="${LD-ld} -m elf32ppclinux"
4970          ;;
4971        s390x-*linux*)
4972          LD="${LD-ld} -m elf_s390"
4973          ;;
4974        sparc64-*linux*)
4975          LD="${LD-ld} -m elf32_sparc"
4976          ;;
4977      esac
4978      ;;
4979    *64-bit*)
4980      case $host in
4981        x86_64-*linux*)
4982          LD="${LD-ld} -m elf_x86_64"
4983          ;;
4984        ppc*-*linux*|powerpc*-*linux*)
4985          LD="${LD-ld} -m elf64ppc"
4986          ;;
4987        s390*-*linux*)
4988          LD="${LD-ld} -m elf64_s390"
4989          ;;
4990        sparc*-*linux*)
4991          LD="${LD-ld} -m elf64_sparc"
4992          ;;
4993      esac
4994      ;;
4995    esac
4996  fi
4997  rm -rf conftest*
4998  ;;
4999
5000*-*-sco3.2v5*)
5001  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5002  SAVE_CFLAGS="$CFLAGS"
5003  CFLAGS="$CFLAGS -belf"
5004  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5005echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5006if test "${lt_cv_cc_needs_belf+set}" = set; then
5007  echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009  ac_ext=c
5010ac_cpp='$CPP $CPPFLAGS'
5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
5015     cat >conftest.$ac_ext <<_ACEOF
5016/* confdefs.h.  */
5017_ACEOF
5018cat confdefs.h >>conftest.$ac_ext
5019cat >>conftest.$ac_ext <<_ACEOF
5020/* end confdefs.h.  */
5021
5022int
5023main ()
5024{
5025
5026  ;
5027  return 0;
5028}
5029_ACEOF
5030rm -f conftest.$ac_objext conftest$ac_exeext
5031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5032  (eval $ac_link) 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } &&
5039         { ac_try='test -z "$ac_c_werror_flag"
5040                         || test ! -s conftest.err'
5041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042  (eval $ac_try) 2>&5
5043  ac_status=$?
5044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); }; } &&
5046         { ac_try='test -s conftest$ac_exeext'
5047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048  (eval $ac_try) 2>&5
5049  ac_status=$?
5050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051  (exit $ac_status); }; }; then
5052  lt_cv_cc_needs_belf=yes
5053else
5054  echo "$as_me: failed program was:" >&5
5055sed 's/^/| /' conftest.$ac_ext >&5
5056
5057lt_cv_cc_needs_belf=no
5058fi
5059rm -f conftest.err conftest.$ac_objext \
5060      conftest$ac_exeext conftest.$ac_ext
5061     ac_ext=c
5062ac_cpp='$CPP $CPPFLAGS'
5063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066
5067fi
5068echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5069echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5070  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5071    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5072    CFLAGS="$SAVE_CFLAGS"
5073  fi
5074  ;;
5075sparc*-*solaris*)
5076  # Find out which ABI we are using.
5077  echo 'int i;' > conftest.$ac_ext
5078  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079  (eval $ac_compile) 2>&5
5080  ac_status=$?
5081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082  (exit $ac_status); }; then
5083    case `/usr/bin/file conftest.o` in
5084    *64-bit*)
5085      case $lt_cv_prog_gnu_ld in
5086      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5087      *)    LD="${LD-ld} -64" ;;
5088      esac
5089      ;;
5090    esac
5091  fi
5092  rm -rf conftest*
5093  ;;
5094
5095
5096esac
5097
5098need_locks="$enable_libtool_lock"
5099
5100
5101ac_ext=c
5102ac_cpp='$CPP $CPPFLAGS'
5103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5107echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5108# On Suns, sometimes $CPP names a directory.
5109if test -n "$CPP" && test -d "$CPP"; then
5110  CPP=
5111fi
5112if test -z "$CPP"; then
5113  if test "${ac_cv_prog_CPP+set}" = set; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116      # Double quotes because CPP needs to be expanded
5117    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5118    do
5119      ac_preproc_ok=false
5120for ac_c_preproc_warn_flag in '' yes
5121do
5122  # Use a header file that comes with gcc, so configuring glibc
5123  # with a fresh cross-compiler works.
5124  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125  # <limits.h> exists even on freestanding compilers.
5126  # On the NeXT, cc -E runs the code through the compiler's parser,
5127  # not just through cpp. "Syntax error" is here to catch this case.
5128  cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h.  */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h.  */
5134#ifdef __STDC__
5135# include <limits.h>
5136#else
5137# include <assert.h>
5138#endif
5139                     Syntax error
5140_ACEOF
5141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5142  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5143  ac_status=$?
5144  grep -v '^ *+' conftest.er1 >conftest.err
5145  rm -f conftest.er1
5146  cat conftest.err >&5
5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148  (exit $ac_status); } >/dev/null; then
5149  if test -s conftest.err; then
5150    ac_cpp_err=$ac_c_preproc_warn_flag
5151    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152  else
5153    ac_cpp_err=
5154  fi
5155else
5156  ac_cpp_err=yes
5157fi
5158if test -z "$ac_cpp_err"; then
5159  :
5160else
5161  echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164  # Broken: fails on valid input.
5165continue
5166fi
5167rm -f conftest.err conftest.$ac_ext
5168
5169  # OK, works on sane cases.  Now check whether non-existent headers
5170  # can be detected and how.
5171  cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h.  */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h.  */
5177#include <ac_nonexistent.h>
5178_ACEOF
5179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5180  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5181  ac_status=$?
5182  grep -v '^ *+' conftest.er1 >conftest.err
5183  rm -f conftest.er1
5184  cat conftest.err >&5
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); } >/dev/null; then
5187  if test -s conftest.err; then
5188    ac_cpp_err=$ac_c_preproc_warn_flag
5189    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5190  else
5191    ac_cpp_err=
5192  fi
5193else
5194  ac_cpp_err=yes
5195fi
5196if test -z "$ac_cpp_err"; then
5197  # Broken: success on invalid input.
5198continue
5199else
5200  echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202
5203  # Passes both tests.
5204ac_preproc_ok=:
5205break
5206fi
5207rm -f conftest.err conftest.$ac_ext
5208
5209done
5210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5211rm -f conftest.err conftest.$ac_ext
5212if $ac_preproc_ok; then
5213  break
5214fi
5215
5216    done
5217    ac_cv_prog_CPP=$CPP
5218
5219fi
5220  CPP=$ac_cv_prog_CPP
5221else
5222  ac_cv_prog_CPP=$CPP
5223fi
5224echo "$as_me:$LINENO: result: $CPP" >&5
5225echo "${ECHO_T}$CPP" >&6
5226ac_preproc_ok=false
5227for ac_c_preproc_warn_flag in '' yes
5228do
5229  # Use a header file that comes with gcc, so configuring glibc
5230  # with a fresh cross-compiler works.
5231  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5232  # <limits.h> exists even on freestanding compilers.
5233  # On the NeXT, cc -E runs the code through the compiler's parser,
5234  # not just through cpp. "Syntax error" is here to catch this case.
5235  cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h.  */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h.  */
5241#ifdef __STDC__
5242# include <limits.h>
5243#else
5244# include <assert.h>
5245#endif
5246                     Syntax error
5247_ACEOF
5248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5249  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250  ac_status=$?
5251  grep -v '^ *+' conftest.er1 >conftest.err
5252  rm -f conftest.er1
5253  cat conftest.err >&5
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); } >/dev/null; then
5256  if test -s conftest.err; then
5257    ac_cpp_err=$ac_c_preproc_warn_flag
5258    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259  else
5260    ac_cpp_err=
5261  fi
5262else
5263  ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
5266  :
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271  # Broken: fails on valid input.
5272continue
5273fi
5274rm -f conftest.err conftest.$ac_ext
5275
5276  # OK, works on sane cases.  Now check whether non-existent headers
5277  # can be detected and how.
5278  cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284#include <ac_nonexistent.h>
5285_ACEOF
5286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5287  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5288  ac_status=$?
5289  grep -v '^ *+' conftest.er1 >conftest.err
5290  rm -f conftest.er1
5291  cat conftest.err >&5
5292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293  (exit $ac_status); } >/dev/null; then
5294  if test -s conftest.err; then
5295    ac_cpp_err=$ac_c_preproc_warn_flag
5296    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5297  else
5298    ac_cpp_err=
5299  fi
5300else
5301  ac_cpp_err=yes
5302fi
5303if test -z "$ac_cpp_err"; then
5304  # Broken: success on invalid input.
5305continue
5306else
5307  echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310  # Passes both tests.
5311ac_preproc_ok=:
5312break
5313fi
5314rm -f conftest.err conftest.$ac_ext
5315
5316done
5317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5318rm -f conftest.err conftest.$ac_ext
5319if $ac_preproc_ok; then
5320  :
5321else
5322  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5323See \`config.log' for more details." >&5
5324echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5325See \`config.log' for more details." >&2;}
5326   { (exit 1); exit 1; }; }
5327fi
5328
5329ac_ext=c
5330ac_cpp='$CPP $CPPFLAGS'
5331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334
5335
5336echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5338if test "${ac_cv_header_stdc+set}" = set; then
5339  echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341  cat >conftest.$ac_ext <<_ACEOF
5342/* confdefs.h.  */
5343_ACEOF
5344cat confdefs.h >>conftest.$ac_ext
5345cat >>conftest.$ac_ext <<_ACEOF
5346/* end confdefs.h.  */
5347#include <stdlib.h>
5348#include <stdarg.h>
5349#include <string.h>
5350#include <float.h>
5351
5352int
5353main ()
5354{
5355
5356  ;
5357  return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362  (eval $ac_compile) 2>conftest.er1
5363  ac_status=$?
5364  grep -v '^ *+' conftest.er1 >conftest.err
5365  rm -f conftest.er1
5366  cat conftest.err >&5
5367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368  (exit $ac_status); } &&
5369         { ac_try='test -z "$ac_c_werror_flag"
5370                         || test ! -s conftest.err'
5371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372  (eval $ac_try) 2>&5
5373  ac_status=$?
5374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375  (exit $ac_status); }; } &&
5376         { ac_try='test -s conftest.$ac_objext'
5377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378  (eval $ac_try) 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }; }; then
5382  ac_cv_header_stdc=yes
5383else
5384  echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387ac_cv_header_stdc=no
5388fi
5389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5390
5391if test $ac_cv_header_stdc = yes; then
5392  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393  cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h.  */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h.  */
5399#include <string.h>
5400
5401_ACEOF
5402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5403  $EGREP "memchr" >/dev/null 2>&1; then
5404  :
5405else
5406  ac_cv_header_stdc=no
5407fi
5408rm -f conftest*
5409
5410fi
5411
5412if test $ac_cv_header_stdc = yes; then
5413  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5414  cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h.  */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h.  */
5420#include <stdlib.h>
5421
5422_ACEOF
5423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424  $EGREP "free" >/dev/null 2>&1; then
5425  :
5426else
5427  ac_cv_header_stdc=no
5428fi
5429rm -f conftest*
5430
5431fi
5432
5433if test $ac_cv_header_stdc = yes; then
5434  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5435  if test "$cross_compiling" = yes; then
5436  :
5437else
5438  cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h.  */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h.  */
5444#include <ctype.h>
5445#if ((' ' & 0x0FF) == 0x020)
5446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5448#else
5449# define ISLOWER(c) \
5450                   (('a' <= (c) && (c) <= 'i') \
5451                     || ('j' <= (c) && (c) <= 'r') \
5452                     || ('s' <= (c) && (c) <= 'z'))
5453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5454#endif
5455
5456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5457int
5458main ()
5459{
5460  int i;
5461  for (i = 0; i < 256; i++)
5462    if (XOR (islower (i), ISLOWER (i))
5463        || toupper (i) != TOUPPER (i))
5464      exit(2);
5465  exit (0);
5466}
5467_ACEOF
5468rm -f conftest$ac_exeext
5469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470  (eval $ac_link) 2>&5
5471  ac_status=$?
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  :
5480else
5481  echo "$as_me: program exited with status $ac_status" >&5
5482echo "$as_me: failed program was:" >&5
5483sed 's/^/| /' conftest.$ac_ext >&5
5484
5485( exit $ac_status )
5486ac_cv_header_stdc=no
5487fi
5488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5489fi
5490fi
5491fi
5492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5493echo "${ECHO_T}$ac_cv_header_stdc" >&6
5494if test $ac_cv_header_stdc = yes; then
5495
5496cat >>confdefs.h <<\_ACEOF
5497#define STDC_HEADERS 1
5498_ACEOF
5499
5500fi
5501
5502# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5513                  inttypes.h stdint.h unistd.h
5514do
5515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516echo "$as_me:$LINENO: checking for $ac_header" >&5
5517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h.  */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h.  */
5527$ac_includes_default
5528
5529#include <$ac_header>
5530_ACEOF
5531rm -f conftest.$ac_objext
5532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533  (eval $ac_compile) 2>conftest.er1
5534  ac_status=$?
5535  grep -v '^ *+' conftest.er1 >conftest.err
5536  rm -f conftest.er1
5537  cat conftest.err >&5
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); } &&
5540         { ac_try='test -z "$ac_c_werror_flag"
5541                         || test ! -s conftest.err'
5542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543  (eval $ac_try) 2>&5
5544  ac_status=$?
5545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546  (exit $ac_status); }; } &&
5547         { ac_try='test -s conftest.$ac_objext'
5548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549  (eval $ac_try) 2>&5
5550  ac_status=$?
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); }; }; then
5553  eval "$as_ac_Header=yes"
5554else
5555  echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558eval "$as_ac_Header=no"
5559fi
5560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5564if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565  cat >>confdefs.h <<_ACEOF
5566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567_ACEOF
5568
5569fi
5570
5571done
5572
5573
5574
5575for ac_header in dlfcn.h
5576do
5577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5578if eval "test \"\${$as_ac_Header+set}\" = set"; then
5579  echo "$as_me:$LINENO: checking for $ac_header" >&5
5580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5581if eval "test \"\${$as_ac_Header+set}\" = set"; then
5582  echo $ECHO_N "(cached) $ECHO_C" >&6
5583fi
5584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5586else
5587  # Is the header compilable?
5588echo "$as_me:$LINENO: checking $ac_header usability" >&5
5589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5590cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h.  */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h.  */
5596$ac_includes_default
5597#include <$ac_header>
5598_ACEOF
5599rm -f conftest.$ac_objext
5600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601  (eval $ac_compile) 2>conftest.er1
5602  ac_status=$?
5603  grep -v '^ *+' conftest.er1 >conftest.err
5604  rm -f conftest.er1
5605  cat conftest.err >&5
5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607  (exit $ac_status); } &&
5608         { ac_try='test -z "$ac_c_werror_flag"
5609                         || test ! -s conftest.err'
5610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611  (eval $ac_try) 2>&5
5612  ac_status=$?
5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614  (exit $ac_status); }; } &&
5615         { ac_try='test -s conftest.$ac_objext'
5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617  (eval $ac_try) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); }; }; then
5621  ac_header_compiler=yes
5622else
5623  echo "$as_me: failed program was:" >&5
5624sed 's/^/| /' conftest.$ac_ext >&5
5625
5626ac_header_compiler=no
5627fi
5628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5630echo "${ECHO_T}$ac_header_compiler" >&6
5631
5632# Is the header present?
5633echo "$as_me:$LINENO: checking $ac_header presence" >&5
5634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5635cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641#include <$ac_header>
5642_ACEOF
5643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5645  ac_status=$?
5646  grep -v '^ *+' conftest.er1 >conftest.err
5647  rm -f conftest.er1
5648  cat conftest.err >&5
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); } >/dev/null; then
5651  if test -s conftest.err; then
5652    ac_cpp_err=$ac_c_preproc_warn_flag
5653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5654  else
5655    ac_cpp_err=
5656  fi
5657else
5658  ac_cpp_err=yes
5659fi
5660if test -z "$ac_cpp_err"; then
5661  ac_header_preproc=yes
5662else
5663  echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666  ac_header_preproc=no
5667fi
5668rm -f conftest.err conftest.$ac_ext
5669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5670echo "${ECHO_T}$ac_header_preproc" >&6
5671
5672# So?  What about this header?
5673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5674  yes:no: )
5675    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5676echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5677    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5678echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5679    ac_header_preproc=yes
5680    ;;
5681  no:yes:* )
5682    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5684    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5685echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5686    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5687echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5688    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5689echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5690    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5692    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5693echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5694    (
5695      cat <<\_ASBOX
5696## --------------------------------------------------------------- ##
5697## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5698## --------------------------------------------------------------- ##
5699_ASBOX
5700    ) |
5701      sed "s/^/$as_me: WARNING:     /" >&2
5702    ;;
5703esac
5704echo "$as_me:$LINENO: checking for $ac_header" >&5
5705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5706if eval "test \"\${$as_ac_Header+set}\" = set"; then
5707  echo $ECHO_N "(cached) $ECHO_C" >&6
5708else
5709  eval "$as_ac_Header=\$ac_header_preproc"
5710fi
5711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5713
5714fi
5715if test `eval echo '${'$as_ac_Header'}'` = yes; then
5716  cat >>confdefs.h <<_ACEOF
5717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5718_ACEOF
5719
5720fi
5721
5722done
5723
5724ac_ext=cc
5725ac_cpp='$CXXCPP $CPPFLAGS'
5726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5729if test -n "$ac_tool_prefix"; then
5730  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5731  do
5732    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5734echo "$as_me:$LINENO: checking for $ac_word" >&5
5735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736if test "${ac_cv_prog_CXX+set}" = set; then
5737  echo $ECHO_N "(cached) $ECHO_C" >&6
5738else
5739  if test -n "$CXX"; then
5740  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5741else
5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745  IFS=$as_save_IFS
5746  test -z "$as_dir" && as_dir=.
5747  for ac_exec_ext in '' $ac_executable_extensions; do
5748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751    break 2
5752  fi
5753done
5754done
5755
5756fi
5757fi
5758CXX=$ac_cv_prog_CXX
5759if test -n "$CXX"; then
5760  echo "$as_me:$LINENO: result: $CXX" >&5
5761echo "${ECHO_T}$CXX" >&6
5762else
5763  echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765fi
5766
5767    test -n "$CXX" && break
5768  done
5769fi
5770if test -z "$CXX"; then
5771  ac_ct_CXX=$CXX
5772  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5773do
5774  # Extract the first word of "$ac_prog", so it can be a program name with args.
5775set dummy $ac_prog; ac_word=$2
5776echo "$as_me:$LINENO: checking for $ac_word" >&5
5777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781  if test -n "$ac_ct_CXX"; then
5782  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789  for ac_exec_ext in '' $ac_executable_extensions; do
5790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_ac_ct_CXX="$ac_prog"
5792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796done
5797
5798fi
5799fi
5800ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5801if test -n "$ac_ct_CXX"; then
5802  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5803echo "${ECHO_T}$ac_ct_CXX" >&6
5804else
5805  echo "$as_me:$LINENO: result: no" >&5
5806echo "${ECHO_T}no" >&6
5807fi
5808
5809  test -n "$ac_ct_CXX" && break
5810done
5811test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5812
5813  CXX=$ac_ct_CXX
5814fi
5815
5816
5817# Provide some information about the compiler.
5818echo "$as_me:$LINENO:" \
5819     "checking for C++ compiler version" >&5
5820ac_compiler=`set X $ac_compile; echo $2`
5821{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5822  (eval $ac_compiler --version </dev/null >&5) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }
5826{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5827  (eval $ac_compiler -v </dev/null >&5) 2>&5
5828  ac_status=$?
5829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830  (exit $ac_status); }
5831{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5832  (eval $ac_compiler -V </dev/null >&5) 2>&5
5833  ac_status=$?
5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835  (exit $ac_status); }
5836
5837echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5838echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5839if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5840  echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842  cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h.  */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h.  */
5848
5849int
5850main ()
5851{
5852#ifndef __GNUC__
5853       choke me
5854#endif
5855
5856  ;
5857  return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext
5861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862  (eval $ac_compile) 2>conftest.er1
5863  ac_status=$?
5864  grep -v '^ *+' conftest.er1 >conftest.err
5865  rm -f conftest.er1
5866  cat conftest.err >&5
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); } &&
5869         { ac_try='test -z "$ac_cxx_werror_flag"
5870                         || test ! -s conftest.err'
5871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872  (eval $ac_try) 2>&5
5873  ac_status=$?
5874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875  (exit $ac_status); }; } &&
5876         { ac_try='test -s conftest.$ac_objext'
5877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878  (eval $ac_try) 2>&5
5879  ac_status=$?
5880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881  (exit $ac_status); }; }; then
5882  ac_compiler_gnu=yes
5883else
5884  echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887ac_compiler_gnu=no
5888fi
5889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5890ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5891
5892fi
5893echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5894echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5895GXX=`test $ac_compiler_gnu = yes && echo yes`
5896ac_test_CXXFLAGS=${CXXFLAGS+set}
5897ac_save_CXXFLAGS=$CXXFLAGS
5898CXXFLAGS="-g"
5899echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5900echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5901if test "${ac_cv_prog_cxx_g+set}" = set; then
5902  echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904  cat >conftest.$ac_ext <<_ACEOF
5905/* confdefs.h.  */
5906_ACEOF
5907cat confdefs.h >>conftest.$ac_ext
5908cat >>conftest.$ac_ext <<_ACEOF
5909/* end confdefs.h.  */
5910
5911int
5912main ()
5913{
5914
5915  ;
5916  return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921  (eval $ac_compile) 2>conftest.er1
5922  ac_status=$?
5923  grep -v '^ *+' conftest.er1 >conftest.err
5924  rm -f conftest.er1
5925  cat conftest.err >&5
5926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927  (exit $ac_status); } &&
5928         { ac_try='test -z "$ac_cxx_werror_flag"
5929                         || test ! -s conftest.err'
5930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931  (eval $ac_try) 2>&5
5932  ac_status=$?
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); }; } &&
5935         { ac_try='test -s conftest.$ac_objext'
5936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937  (eval $ac_try) 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); }; }; then
5941  ac_cv_prog_cxx_g=yes
5942else
5943  echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946ac_cv_prog_cxx_g=no
5947fi
5948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5949fi
5950echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5951echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5952if test "$ac_test_CXXFLAGS" = set; then
5953  CXXFLAGS=$ac_save_CXXFLAGS
5954elif test $ac_cv_prog_cxx_g = yes; then
5955  if test "$GXX" = yes; then
5956    CXXFLAGS="-g -O2"
5957  else
5958    CXXFLAGS="-g"
5959  fi
5960else
5961  if test "$GXX" = yes; then
5962    CXXFLAGS="-O2"
5963  else
5964    CXXFLAGS=
5965  fi
5966fi
5967for ac_declaration in \
5968   '' \
5969   'extern "C" void std::exit (int) throw (); using std::exit;' \
5970   'extern "C" void std::exit (int); using std::exit;' \
5971   'extern "C" void exit (int) throw ();' \
5972   'extern "C" void exit (int);' \
5973   'void exit (int);'
5974do
5975  cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h.  */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h.  */
5981$ac_declaration
5982#include <stdlib.h>
5983int
5984main ()
5985{
5986exit (42);
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext
5992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993  (eval $ac_compile) 2>conftest.er1
5994  ac_status=$?
5995  grep -v '^ *+' conftest.er1 >conftest.err
5996  rm -f conftest.er1
5997  cat conftest.err >&5
5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); } &&
6000         { ac_try='test -z "$ac_cxx_werror_flag"
6001                         || test ! -s conftest.err'
6002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003  (eval $ac_try) 2>&5
6004  ac_status=$?
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); }; } &&
6007         { ac_try='test -s conftest.$ac_objext'
6008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009  (eval $ac_try) 2>&5
6010  ac_status=$?
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); }; }; then
6013  :
6014else
6015  echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018continue
6019fi
6020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6021  cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h.  */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h.  */
6027$ac_declaration
6028int
6029main ()
6030{
6031exit (42);
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext
6037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038  (eval $ac_compile) 2>conftest.er1
6039  ac_status=$?
6040  grep -v '^ *+' conftest.er1 >conftest.err
6041  rm -f conftest.er1
6042  cat conftest.err >&5
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); } &&
6045         { ac_try='test -z "$ac_cxx_werror_flag"
6046                         || test ! -s conftest.err'
6047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048  (eval $ac_try) 2>&5
6049  ac_status=$?
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); }; } &&
6052         { ac_try='test -s conftest.$ac_objext'
6053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054  (eval $ac_try) 2>&5
6055  ac_status=$?
6056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057  (exit $ac_status); }; }; then
6058  break
6059else
6060  echo "$as_me: failed program was:" >&5
6061sed 's/^/| /' conftest.$ac_ext >&5
6062
6063fi
6064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065done
6066rm -f conftest*
6067if test -n "$ac_declaration"; then
6068  echo '#ifdef __cplusplus' >>confdefs.h
6069  echo $ac_declaration      >>confdefs.h
6070  echo '#endif'             >>confdefs.h
6071fi
6072
6073ac_ext=cc
6074ac_cpp='$CXXCPP $CPPFLAGS'
6075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6078
6079depcc="$CXX"  am_compiler_list=
6080
6081echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6082echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6083if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6084  echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6087  # We make a subdir and do the tests there.  Otherwise we can end up
6088  # making bogus files that we don't know about and never remove.  For
6089  # instance it was reported that on HP-UX the gcc test will end up
6090  # making a dummy file named `D' -- because `-MD' means `put the output
6091  # in D'.
6092  mkdir conftest.dir
6093  # Copy depcomp to subdir because otherwise we won't find it if we're
6094  # using a relative directory.
6095  cp "$am_depcomp" conftest.dir
6096  cd conftest.dir
6097  # We will build objects and dependencies in a subdirectory because
6098  # it helps to detect inapplicable dependency modes.  For instance
6099  # both Tru64's cc and ICC support -MD to output dependencies as a
6100  # side effect of compilation, but ICC will put the dependencies in
6101  # the current directory while Tru64 will put them in the object
6102  # directory.
6103  mkdir sub
6104
6105  am_cv_CXX_dependencies_compiler_type=none
6106  if test "$am_compiler_list" = ""; then
6107     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6108  fi
6109  for depmode in $am_compiler_list; do
6110    # Setup a source with many dependencies, because some compilers
6111    # like to wrap large dependency lists on column 80 (with \), and
6112    # we should not choose a depcomp mode which is confused by this.
6113    #
6114    # We need to recreate these files for each test, as the compiler may
6115    # overwrite some of them when testing with obscure command lines.
6116    # This happens at least with the AIX C compiler.
6117    : > sub/conftest.c
6118    for i in 1 2 3 4 5 6; do
6119      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6120      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6121      # Solaris 8's {/usr,}/bin/sh.
6122      touch sub/conftst$i.h
6123    done
6124    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6125
6126    case $depmode in
6127    nosideeffect)
6128      # after this tag, mechanisms are not by side-effect, so they'll
6129      # only be used when explicitly requested
6130      if test "x$enable_dependency_tracking" = xyes; then
6131        continue
6132      else
6133        break
6134      fi
6135      ;;
6136    none) break ;;
6137    esac
6138    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6139    # mode.  It turns out that the SunPro C++ compiler does not properly
6140    # handle `-M -o', and we need to detect this.
6141    if depmode=$depmode \
6142       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6143       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6144       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6145         >/dev/null 2>conftest.err &&
6146       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6147       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6148       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6149      # icc doesn't choke on unknown options, it will just issue warnings
6150      # or remarks (even with -Werror).  So we grep stderr for any message
6151      # that says an option was ignored or not supported.
6152      # When given -MP, icc 7.0 and 7.1 complain thusly:
6153      #   icc: Command line warning: ignoring option '-M'; no argument required
6154      # The diagnosis changed in icc 8.0:
6155      #   icc: Command line remark: option '-MP' not supported
6156      if (grep 'ignoring option' conftest.err ||
6157          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6158        am_cv_CXX_dependencies_compiler_type=$depmode
6159        break
6160      fi
6161    fi
6162  done
6163
6164  cd ..
6165  rm -rf conftest.dir
6166else
6167  am_cv_CXX_dependencies_compiler_type=none
6168fi
6169
6170fi
6171echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6172echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6173CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6174
6175
6176
6177if
6178  test "x$enable_dependency_tracking" != xno \
6179  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6180  am__fastdepCXX_TRUE=
6181  am__fastdepCXX_FALSE='#'
6182else
6183  am__fastdepCXX_TRUE='#'
6184  am__fastdepCXX_FALSE=
6185fi
6186
6187
6188
6189
6190if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6191    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6192    (test "X$CXX" != "Xg++"))) ; then
6193  ac_ext=cc
6194ac_cpp='$CXXCPP $CPPFLAGS'
6195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6198echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6199echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6200if test -z "$CXXCPP"; then
6201  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6202  echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204      # Double quotes because CXXCPP needs to be expanded
6205    for CXXCPP in "$CXX -E" "/lib/cpp"
6206    do
6207      ac_preproc_ok=false
6208for ac_cxx_preproc_warn_flag in '' yes
6209do
6210  # Use a header file that comes with gcc, so configuring glibc
6211  # with a fresh cross-compiler works.
6212  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213  # <limits.h> exists even on freestanding compilers.
6214  # On the NeXT, cc -E runs the code through the compiler's parser,
6215  # not just through cpp. "Syntax error" is here to catch this case.
6216  cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h.  */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h.  */
6222#ifdef __STDC__
6223# include <limits.h>
6224#else
6225# include <assert.h>
6226#endif
6227                     Syntax error
6228_ACEOF
6229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6231  ac_status=$?
6232  grep -v '^ *+' conftest.er1 >conftest.err
6233  rm -f conftest.er1
6234  cat conftest.err >&5
6235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236  (exit $ac_status); } >/dev/null; then
6237  if test -s conftest.err; then
6238    ac_cpp_err=$ac_cxx_preproc_warn_flag
6239    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6240  else
6241    ac_cpp_err=
6242  fi
6243else
6244  ac_cpp_err=yes
6245fi
6246if test -z "$ac_cpp_err"; then
6247  :
6248else
6249  echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252  # Broken: fails on valid input.
6253continue
6254fi
6255rm -f conftest.err conftest.$ac_ext
6256
6257  # OK, works on sane cases.  Now check whether non-existent headers
6258  # can be detected and how.
6259  cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h.  */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h.  */
6265#include <ac_nonexistent.h>
6266_ACEOF
6267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6268  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6269  ac_status=$?
6270  grep -v '^ *+' conftest.er1 >conftest.err
6271  rm -f conftest.er1
6272  cat conftest.err >&5
6273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274  (exit $ac_status); } >/dev/null; then
6275  if test -s conftest.err; then
6276    ac_cpp_err=$ac_cxx_preproc_warn_flag
6277    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6278  else
6279    ac_cpp_err=
6280  fi
6281else
6282  ac_cpp_err=yes
6283fi
6284if test -z "$ac_cpp_err"; then
6285  # Broken: success on invalid input.
6286continue
6287else
6288  echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291  # Passes both tests.
6292ac_preproc_ok=:
6293break
6294fi
6295rm -f conftest.err conftest.$ac_ext
6296
6297done
6298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6299rm -f conftest.err conftest.$ac_ext
6300if $ac_preproc_ok; then
6301  break
6302fi
6303
6304    done
6305    ac_cv_prog_CXXCPP=$CXXCPP
6306
6307fi
6308  CXXCPP=$ac_cv_prog_CXXCPP
6309else
6310  ac_cv_prog_CXXCPP=$CXXCPP
6311fi
6312echo "$as_me:$LINENO: result: $CXXCPP" >&5
6313echo "${ECHO_T}$CXXCPP" >&6
6314ac_preproc_ok=false
6315for ac_cxx_preproc_warn_flag in '' yes
6316do
6317  # Use a header file that comes with gcc, so configuring glibc
6318  # with a fresh cross-compiler works.
6319  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320  # <limits.h> exists even on freestanding compilers.
6321  # On the NeXT, cc -E runs the code through the compiler's parser,
6322  # not just through cpp. "Syntax error" is here to catch this case.
6323  cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h.  */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h.  */
6329#ifdef __STDC__
6330# include <limits.h>
6331#else
6332# include <assert.h>
6333#endif
6334                     Syntax error
6335_ACEOF
6336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6338  ac_status=$?
6339  grep -v '^ *+' conftest.er1 >conftest.err
6340  rm -f conftest.er1
6341  cat conftest.err >&5
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } >/dev/null; then
6344  if test -s conftest.err; then
6345    ac_cpp_err=$ac_cxx_preproc_warn_flag
6346    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6347  else
6348    ac_cpp_err=
6349  fi
6350else
6351  ac_cpp_err=yes
6352fi
6353if test -z "$ac_cpp_err"; then
6354  :
6355else
6356  echo "$as_me: failed program was:" >&5
6357sed 's/^/| /' conftest.$ac_ext >&5
6358
6359  # Broken: fails on valid input.
6360continue
6361fi
6362rm -f conftest.err conftest.$ac_ext
6363
6364  # OK, works on sane cases.  Now check whether non-existent headers
6365  # can be detected and how.
6366  cat >conftest.$ac_ext <<_ACEOF
6367/* confdefs.h.  */
6368_ACEOF
6369cat confdefs.h >>conftest.$ac_ext
6370cat >>conftest.$ac_ext <<_ACEOF
6371/* end confdefs.h.  */
6372#include <ac_nonexistent.h>
6373_ACEOF
6374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6376  ac_status=$?
6377  grep -v '^ *+' conftest.er1 >conftest.err
6378  rm -f conftest.er1
6379  cat conftest.err >&5
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); } >/dev/null; then
6382  if test -s conftest.err; then
6383    ac_cpp_err=$ac_cxx_preproc_warn_flag
6384    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6385  else
6386    ac_cpp_err=
6387  fi
6388else
6389  ac_cpp_err=yes
6390fi
6391if test -z "$ac_cpp_err"; then
6392  # Broken: success on invalid input.
6393continue
6394else
6395  echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398  # Passes both tests.
6399ac_preproc_ok=:
6400break
6401fi
6402rm -f conftest.err conftest.$ac_ext
6403
6404done
6405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6406rm -f conftest.err conftest.$ac_ext
6407if $ac_preproc_ok; then
6408  :
6409else
6410  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6411See \`config.log' for more details." >&5
6412echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6413See \`config.log' for more details." >&2;}
6414   { (exit 1); exit 1; }; }
6415fi
6416
6417ac_ext=cc
6418ac_cpp='$CXXCPP $CPPFLAGS'
6419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6422
6423fi
6424
6425
6426ac_ext=f
6427ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6428ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6430if test -n "$ac_tool_prefix"; then
6431  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6432  do
6433    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6434set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6435echo "$as_me:$LINENO: checking for $ac_word" >&5
6436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437if test "${ac_cv_prog_F77+set}" = set; then
6438  echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440  if test -n "$F77"; then
6441  ac_cv_prog_F77="$F77" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446  IFS=$as_save_IFS
6447  test -z "$as_dir" && as_dir=.
6448  for ac_exec_ext in '' $ac_executable_extensions; do
6449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452    break 2
6453  fi
6454done
6455done
6456
6457fi
6458fi
6459F77=$ac_cv_prog_F77
6460if test -n "$F77"; then
6461  echo "$as_me:$LINENO: result: $F77" >&5
6462echo "${ECHO_T}$F77" >&6
6463else
6464  echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
6466fi
6467
6468    test -n "$F77" && break
6469  done
6470fi
6471if test -z "$F77"; then
6472  ac_ct_F77=$F77
6473  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6474do
6475  # Extract the first word of "$ac_prog", so it can be a program name with args.
6476set dummy $ac_prog; ac_word=$2
6477echo "$as_me:$LINENO: checking for $ac_word" >&5
6478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6480  echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482  if test -n "$ac_ct_F77"; then
6483  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488  IFS=$as_save_IFS
6489  test -z "$as_dir" && as_dir=.
6490  for ac_exec_ext in '' $ac_executable_extensions; do
6491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492    ac_cv_prog_ac_ct_F77="$ac_prog"
6493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494    break 2
6495  fi
6496done
6497done
6498
6499fi
6500fi
6501ac_ct_F77=$ac_cv_prog_ac_ct_F77
6502if test -n "$ac_ct_F77"; then
6503  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6504echo "${ECHO_T}$ac_ct_F77" >&6
6505else
6506  echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6
6508fi
6509
6510  test -n "$ac_ct_F77" && break
6511done
6512
6513  F77=$ac_ct_F77
6514fi
6515
6516
6517# Provide some information about the compiler.
6518echo "$as_me:6518:" \
6519     "checking for Fortran 77 compiler version" >&5
6520ac_compiler=`set X $ac_compile; echo $2`
6521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6522  (eval $ac_compiler --version </dev/null >&5) 2>&5
6523  ac_status=$?
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); }
6526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6527  (eval $ac_compiler -v </dev/null >&5) 2>&5
6528  ac_status=$?
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); }
6531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6532  (eval $ac_compiler -V </dev/null >&5) 2>&5
6533  ac_status=$?
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); }
6536rm -f a.out
6537
6538# If we don't use `.F' as extension, the preprocessor is not run on the
6539# input file.  (Note that this only needs to work for GNU compilers.)
6540ac_save_ext=$ac_ext
6541ac_ext=F
6542echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6543echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6544if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  cat >conftest.$ac_ext <<_ACEOF
6548      program main
6549#ifndef __GNUC__
6550       choke me
6551#endif
6552
6553      end
6554_ACEOF
6555rm -f conftest.$ac_objext
6556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557  (eval $ac_compile) 2>conftest.er1
6558  ac_status=$?
6559  grep -v '^ *+' conftest.er1 >conftest.err
6560  rm -f conftest.er1
6561  cat conftest.err >&5
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } &&
6564         { ac_try='test -z "$ac_f77_werror_flag"
6565                         || test ! -s conftest.err'
6566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567  (eval $ac_try) 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); }; } &&
6571         { ac_try='test -s conftest.$ac_objext'
6572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573  (eval $ac_try) 2>&5
6574  ac_status=$?
6575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576  (exit $ac_status); }; }; then
6577  ac_compiler_gnu=yes
6578else
6579  echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582ac_compiler_gnu=no
6583fi
6584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6586
6587fi
6588echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6589echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6590ac_ext=$ac_save_ext
6591ac_test_FFLAGS=${FFLAGS+set}
6592ac_save_FFLAGS=$FFLAGS
6593FFLAGS=
6594echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6595echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6596if test "${ac_cv_prog_f77_g+set}" = set; then
6597  echo $ECHO_N "(cached) $ECHO_C" >&6
6598else
6599  FFLAGS=-g
6600cat >conftest.$ac_ext <<_ACEOF
6601      program main
6602
6603      end
6604_ACEOF
6605rm -f conftest.$ac_objext
6606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607  (eval $ac_compile) 2>conftest.er1
6608  ac_status=$?
6609  grep -v '^ *+' conftest.er1 >conftest.err
6610  rm -f conftest.er1
6611  cat conftest.err >&5
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); } &&
6614         { ac_try='test -z "$ac_f77_werror_flag"
6615                         || test ! -s conftest.err'
6616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617  (eval $ac_try) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; } &&
6621         { ac_try='test -s conftest.$ac_objext'
6622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623  (eval $ac_try) 2>&5
6624  ac_status=$?
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); }; }; then
6627  ac_cv_prog_f77_g=yes
6628else
6629  echo "$as_me: failed program was:" >&5
6630sed 's/^/| /' conftest.$ac_ext >&5
6631
6632ac_cv_prog_f77_g=no
6633fi
6634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635
6636fi
6637echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6638echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6639if test "$ac_test_FFLAGS" = set; then
6640  FFLAGS=$ac_save_FFLAGS
6641elif test $ac_cv_prog_f77_g = yes; then
6642  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6643    FFLAGS="-g -O2"
6644  else
6645    FFLAGS="-g"
6646  fi
6647else
6648  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6649    FFLAGS="-O2"
6650  else
6651    FFLAGS=
6652  fi
6653fi
6654
6655G77=`test $ac_compiler_gnu = yes && echo yes`
6656ac_ext=c
6657ac_cpp='$CPP $CPPFLAGS'
6658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6660ac_compiler_gnu=$ac_cv_c_compiler_gnu
6661
6662
6663
6664# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6665
6666# find the maximum length of command line arguments
6667echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6668echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6669if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6670  echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672    i=0
6673  teststring="ABCD"
6674
6675  case $build_os in
6676  msdosdjgpp*)
6677    # On DJGPP, this test can blow up pretty badly due to problems in libc
6678    # (any single argument exceeding 2000 bytes causes a buffer overrun
6679    # during glob expansion).  Even if it were fixed, the result of this
6680    # check would be larger than it should be.
6681    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6682    ;;
6683
6684  gnu*)
6685    # Under GNU Hurd, this test is not required because there is
6686    # no limit to the length of command line arguments.
6687    # Libtool will interpret -1 as no limit whatsoever
6688    lt_cv_sys_max_cmd_len=-1;
6689    ;;
6690
6691  cygwin* | mingw*)
6692    # On Win9x/ME, this test blows up -- it succeeds, but takes
6693    # about 5 minutes as the teststring grows exponentially.
6694    # Worse, since 9x/ME are not pre-emptively multitasking,
6695    # you end up with a "frozen" computer, even though with patience
6696    # the test eventually succeeds (with a max line length of 256k).
6697    # Instead, let's just punt: use the minimum linelength reported by
6698    # all of the supported platforms: 8192 (on NT/2K/XP).
6699    lt_cv_sys_max_cmd_len=8192;
6700    ;;
6701
6702  amigaos*)
6703    # On AmigaOS with pdksh, this test takes hours, literally.
6704    # So we just punt and use a minimum line length of 8192.
6705    lt_cv_sys_max_cmd_len=8192;
6706    ;;
6707
6708  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6709    # This has been around since 386BSD, at least.  Likely further.
6710    if test -x /sbin/sysctl; then
6711      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6712    elif test -x /usr/sbin/sysctl; then
6713      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6714    else
6715      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6716    fi
6717    # And add a safety zone
6718    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6719    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6720    ;;
6721
6722  interix*)
6723    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6724    lt_cv_sys_max_cmd_len=196608
6725    ;;
6726
6727  osf*)
6728    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6729    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6730    # nice to cause kernel panics so lets avoid the loop below.
6731    # First set a reasonable default.
6732    lt_cv_sys_max_cmd_len=16384
6733    #
6734    if test -x /sbin/sysconfig; then
6735      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6736        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6737      esac
6738    fi
6739    ;;
6740  sco3.2v5*)
6741    lt_cv_sys_max_cmd_len=102400
6742    ;;
6743  sysv5* | sco5v6* | sysv4.2uw2*)
6744    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6745    if test -n "$kargmax"; then
6746      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6747    else
6748      lt_cv_sys_max_cmd_len=32768
6749    fi
6750    ;;
6751  *)
6752    # If test is not a shell built-in, we'll probably end up computing a
6753    # maximum length that is only half of the actual maximum length, but
6754    # we can't tell.
6755    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6756    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6757               = "XX$teststring") >/dev/null 2>&1 &&
6758            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6759            lt_cv_sys_max_cmd_len=$new_result &&
6760            test $i != 17 # 1/2 MB should be enough
6761    do
6762      i=`expr $i + 1`
6763      teststring=$teststring$teststring
6764    done
6765    teststring=
6766    # Add a significant safety factor because C++ compilers can tack on massive
6767    # amounts of additional arguments before passing them to the linker.
6768    # It appears as though 1/2 is a usable value.
6769    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6770    ;;
6771  esac
6772
6773fi
6774
6775if test -n $lt_cv_sys_max_cmd_len ; then
6776  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6777echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6778else
6779  echo "$as_me:$LINENO: result: none" >&5
6780echo "${ECHO_T}none" >&6
6781fi
6782
6783
6784
6785
6786# Check for command to grab the raw symbol name followed by C symbol from nm.
6787echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6788echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6789if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6790  echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792
6793# These are sane defaults that work on at least a few old systems.
6794# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6795
6796# Character class describing NM global symbol codes.
6797symcode='[BCDEGRST]'
6798
6799# Regexp to match symbols that can be accessed directly from C.
6800sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6801
6802# Transform an extracted symbol line into a proper C declaration
6803lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6804
6805# Transform an extracted symbol line into symbol name and symbol address
6806lt_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'"
6807
6808# Define system-specific variables.
6809case $host_os in
6810aix*)
6811  symcode='[BCDT]'
6812  ;;
6813cygwin* | mingw* | pw32*)
6814  symcode='[ABCDGISTW]'
6815  ;;
6816hpux*) # Its linker distinguishes data from code symbols
6817  if test "$host_cpu" = ia64; then
6818    symcode='[ABCDEGRST]'
6819  fi
6820  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6821  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'"
6822  ;;
6823linux*)
6824  if test "$host_cpu" = ia64; then
6825    symcode='[ABCDGIRSTW]'
6826    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6827    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'"
6828  fi
6829  ;;
6830irix* | nonstopux*)
6831  symcode='[BCDEGRST]'
6832  ;;
6833osf*)
6834  symcode='[BCDEGQRST]'
6835  ;;
6836solaris*)
6837  symcode='[BDRT]'
6838  ;;
6839sco3.2v5*)
6840  symcode='[DT]'
6841  ;;
6842sysv4.2uw2*)
6843  symcode='[DT]'
6844  ;;
6845sysv5* | sco5v6* | unixware* | OpenUNIX*)
6846  symcode='[ABDT]'
6847  ;;
6848sysv4)
6849  symcode='[DFNSTU]'
6850  ;;
6851esac
6852
6853# Handle CRLF in mingw tool chain
6854opt_cr=
6855case $build_os in
6856mingw*)
6857  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6858  ;;
6859esac
6860
6861# If we're using GNU nm, then use its standard symbol codes.
6862case `$NM -V 2>&1` in
6863*GNU* | *'with BFD'*)
6864  symcode='[ABCDGIRSTW]' ;;
6865esac
6866
6867# Try without a prefix undercore, then with it.
6868for ac_symprfx in "" "_"; do
6869
6870  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6871  symxfrm="\\1 $ac_symprfx\\2 \\2"
6872
6873  # Write the raw and C identifiers.
6874  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6875
6876  # Check to see that the pipe works correctly.
6877  pipe_works=no
6878
6879  rm -f conftest*
6880  cat > conftest.$ac_ext <<EOF
6881#ifdef __cplusplus
6882extern "C" {
6883#endif
6884char nm_test_var;
6885void nm_test_func(){}
6886#ifdef __cplusplus
6887}
6888#endif
6889int main(){nm_test_var='a';nm_test_func();return(0);}
6890EOF
6891
6892  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6893  (eval $ac_compile) 2>&5
6894  ac_status=$?
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); }; then
6897    # Now try to grab the symbols.
6898    nlist=conftest.nm
6899    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6900  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6901  ac_status=$?
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } && test -s "$nlist"; then
6904      # Try sorting and uniquifying the output.
6905      if sort "$nlist" | uniq > "$nlist"T; then
6906        mv -f "$nlist"T "$nlist"
6907      else
6908        rm -f "$nlist"T
6909      fi
6910
6911      # Make sure that we snagged all the symbols we need.
6912      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6913        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6914          cat <<EOF > conftest.$ac_ext
6915#ifdef __cplusplus
6916extern "C" {
6917#endif
6918
6919EOF
6920          # Now generate the symbol file.
6921          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6922
6923          cat <<EOF >> conftest.$ac_ext
6924#if defined (__STDC__) && __STDC__
6925# define lt_ptr_t void *
6926#else
6927# define lt_ptr_t char *
6928# define const
6929#endif
6930
6931/* The mapping between symbol names and symbols. */
6932const struct {
6933  const char *name;
6934  lt_ptr_t address;
6935}
6936lt_preloaded_symbols[] =
6937{
6938EOF
6939          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6940          cat <<\EOF >> conftest.$ac_ext
6941  {0, (lt_ptr_t) 0}
6942};
6943
6944#ifdef __cplusplus
6945}
6946#endif
6947EOF
6948          # Now try linking the two files.
6949          mv conftest.$ac_objext conftstm.$ac_objext
6950          lt_save_LIBS="$LIBS"
6951          lt_save_CFLAGS="$CFLAGS"
6952          LIBS="conftstm.$ac_objext"
6953          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6954          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955  (eval $ac_link) 2>&5
6956  ac_status=$?
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6959            pipe_works=yes
6960          fi
6961          LIBS="$lt_save_LIBS"
6962          CFLAGS="$lt_save_CFLAGS"
6963        else
6964          echo "cannot find nm_test_func in $nlist" >&5
6965        fi
6966      else
6967        echo "cannot find nm_test_var in $nlist" >&5
6968      fi
6969    else
6970      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6971    fi
6972  else
6973    echo "$progname: failed program was:" >&5
6974    cat conftest.$ac_ext >&5
6975  fi
6976  rm -f conftest* conftst*
6977
6978  # Do not use the global_symbol_pipe unless it works.
6979  if test "$pipe_works" = yes; then
6980    break
6981  else
6982    lt_cv_sys_global_symbol_pipe=
6983  fi
6984done
6985
6986fi
6987
6988if test -z "$lt_cv_sys_global_symbol_pipe"; then
6989  lt_cv_sys_global_symbol_to_cdecl=
6990fi
6991if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6992  echo "$as_me:$LINENO: result: failed" >&5
6993echo "${ECHO_T}failed" >&6
6994else
6995  echo "$as_me:$LINENO: result: ok" >&5
6996echo "${ECHO_T}ok" >&6
6997fi
6998
6999echo "$as_me:$LINENO: checking for objdir" >&5
7000echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7001if test "${lt_cv_objdir+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  rm -f .libs 2>/dev/null
7005mkdir .libs 2>/dev/null
7006if test -d .libs; then
7007  lt_cv_objdir=.libs
7008else
7009  # MS-DOS does not allow filenames that begin with a dot.
7010  lt_cv_objdir=_libs
7011fi
7012rmdir .libs 2>/dev/null
7013fi
7014echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7015echo "${ECHO_T}$lt_cv_objdir" >&6
7016objdir=$lt_cv_objdir
7017
7018
7019
7020
7021
7022case $host_os in
7023aix3*)
7024  # AIX sometimes has problems with the GCC collect2 program.  For some
7025  # reason, if we set the COLLECT_NAMES environment variable, the problems
7026  # vanish in a puff of smoke.
7027  if test "X${COLLECT_NAMES+set}" != Xset; then
7028    COLLECT_NAMES=
7029    export COLLECT_NAMES
7030  fi
7031  ;;
7032esac
7033
7034# Sed substitution that helps us do robust quoting.  It backslashifies
7035# metacharacters that are still active within double-quoted strings.
7036Xsed='sed -e 1s/^X//'
7037sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7038
7039# Same as above, but do not quote variable references.
7040double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7041
7042# Sed substitution to delay expansion of an escaped shell variable in a
7043# double_quote_subst'ed string.
7044delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7045
7046# Sed substitution to avoid accidental globbing in evaled expressions
7047no_glob_subst='s/\*/\\\*/g'
7048
7049# Constants:
7050rm="rm -f"
7051
7052# Global variables:
7053default_ofile=libtool
7054can_build_shared=yes
7055
7056# All known linkers require a `.a' archive for static linking (except MSVC,
7057# which needs '.lib').
7058libext=a
7059ltmain="$ac_aux_dir/ltmain.sh"
7060ofile="$default_ofile"
7061with_gnu_ld="$lt_cv_prog_gnu_ld"
7062
7063if test -n "$ac_tool_prefix"; then
7064  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7065set dummy ${ac_tool_prefix}ar; ac_word=$2
7066echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068if test "${ac_cv_prog_AR+set}" = set; then
7069  echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071  if test -n "$AR"; then
7072  ac_cv_prog_AR="$AR" # Let the user override the test.
7073else
7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077  IFS=$as_save_IFS
7078  test -z "$as_dir" && as_dir=.
7079  for ac_exec_ext in '' $ac_executable_extensions; do
7080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081    ac_cv_prog_AR="${ac_tool_prefix}ar"
7082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083    break 2
7084  fi
7085done
7086done
7087
7088fi
7089fi
7090AR=$ac_cv_prog_AR
7091if test -n "$AR"; then
7092  echo "$as_me:$LINENO: result: $AR" >&5
7093echo "${ECHO_T}$AR" >&6
7094else
7095  echo "$as_me:$LINENO: result: no" >&5
7096echo "${ECHO_T}no" >&6
7097fi
7098
7099fi
7100if test -z "$ac_cv_prog_AR"; then
7101  ac_ct_AR=$AR
7102  # Extract the first word of "ar", so it can be a program name with args.
7103set dummy ar; ac_word=$2
7104echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7106if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7107  echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109  if test -n "$ac_ct_AR"; then
7110  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115  IFS=$as_save_IFS
7116  test -z "$as_dir" && as_dir=.
7117  for ac_exec_ext in '' $ac_executable_extensions; do
7118  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119    ac_cv_prog_ac_ct_AR="ar"
7120    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121    break 2
7122  fi
7123done
7124done
7125
7126  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7127fi
7128fi
7129ac_ct_AR=$ac_cv_prog_ac_ct_AR
7130if test -n "$ac_ct_AR"; then
7131  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7132echo "${ECHO_T}$ac_ct_AR" >&6
7133else
7134  echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
7136fi
7137
7138  AR=$ac_ct_AR
7139else
7140  AR="$ac_cv_prog_AR"
7141fi
7142
7143if test -n "$ac_tool_prefix"; then
7144  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7145set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7146echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148if test "${ac_cv_prog_RANLIB+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151  if test -n "$RANLIB"; then
7152  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167
7168fi
7169fi
7170RANLIB=$ac_cv_prog_RANLIB
7171if test -n "$RANLIB"; then
7172  echo "$as_me:$LINENO: result: $RANLIB" >&5
7173echo "${ECHO_T}$RANLIB" >&6
7174else
7175  echo "$as_me:$LINENO: result: no" >&5
7176echo "${ECHO_T}no" >&6
7177fi
7178
7179fi
7180if test -z "$ac_cv_prog_RANLIB"; then
7181  ac_ct_RANLIB=$RANLIB
7182  # Extract the first word of "ranlib", so it can be a program name with args.
7183set dummy ranlib; ac_word=$2
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  if test -n "$ac_ct_RANLIB"; then
7190  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195  IFS=$as_save_IFS
7196  test -z "$as_dir" && as_dir=.
7197  for ac_exec_ext in '' $ac_executable_extensions; do
7198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199    ac_cv_prog_ac_ct_RANLIB="ranlib"
7200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201    break 2
7202  fi
7203done
7204done
7205
7206  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7207fi
7208fi
7209ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7210if test -n "$ac_ct_RANLIB"; then
7211  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7212echo "${ECHO_T}$ac_ct_RANLIB" >&6
7213else
7214  echo "$as_me:$LINENO: result: no" >&5
7215echo "${ECHO_T}no" >&6
7216fi
7217
7218  RANLIB=$ac_ct_RANLIB
7219else
7220  RANLIB="$ac_cv_prog_RANLIB"
7221fi
7222
7223if test -n "$ac_tool_prefix"; then
7224  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7225set dummy ${ac_tool_prefix}strip; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_STRIP+set}" = set; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  if test -n "$STRIP"; then
7232  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239  for ac_exec_ext in '' $ac_executable_extensions; do
7240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246done
7247
7248fi
7249fi
7250STRIP=$ac_cv_prog_STRIP
7251if test -n "$STRIP"; then
7252  echo "$as_me:$LINENO: result: $STRIP" >&5
7253echo "${ECHO_T}$STRIP" >&6
7254else
7255  echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259fi
7260if test -z "$ac_cv_prog_STRIP"; then
7261  ac_ct_STRIP=$STRIP
7262  # Extract the first word of "strip", so it can be a program name with args.
7263set dummy strip; ac_word=$2
7264echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7266if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7267  echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269  if test -n "$ac_ct_STRIP"; then
7270  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275  IFS=$as_save_IFS
7276  test -z "$as_dir" && as_dir=.
7277  for ac_exec_ext in '' $ac_executable_extensions; do
7278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279    ac_cv_prog_ac_ct_STRIP="strip"
7280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281    break 2
7282  fi
7283done
7284done
7285
7286  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7287fi
7288fi
7289ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7290if test -n "$ac_ct_STRIP"; then
7291  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7292echo "${ECHO_T}$ac_ct_STRIP" >&6
7293else
7294  echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6
7296fi
7297
7298  STRIP=$ac_ct_STRIP
7299else
7300  STRIP="$ac_cv_prog_STRIP"
7301fi
7302
7303
7304old_CC="$CC"
7305old_CFLAGS="$CFLAGS"
7306
7307# Set sane defaults for various variables
7308test -z "$AR" && AR=ar
7309test -z "$AR_FLAGS" && AR_FLAGS=cru
7310test -z "$AS" && AS=as
7311test -z "$CC" && CC=cc
7312test -z "$LTCC" && LTCC=$CC
7313test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7314test -z "$DLLTOOL" && DLLTOOL=dlltool
7315test -z "$LD" && LD=ld
7316test -z "$LN_S" && LN_S="ln -s"
7317test -z "$MAGIC_CMD" && MAGIC_CMD=file
7318test -z "$NM" && NM=nm
7319test -z "$SED" && SED=sed
7320test -z "$OBJDUMP" && OBJDUMP=objdump
7321test -z "$RANLIB" && RANLIB=:
7322test -z "$STRIP" && STRIP=:
7323test -z "$ac_objext" && ac_objext=o
7324
7325# Determine commands to create old-style static archives.
7326old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7327old_postinstall_cmds='chmod 644 $oldlib'
7328old_postuninstall_cmds=
7329
7330if test -n "$RANLIB"; then
7331  case $host_os in
7332  openbsd*)
7333    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7334    ;;
7335  *)
7336    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7337    ;;
7338  esac
7339  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7340fi
7341
7342for cc_temp in $compiler""; do
7343  case $cc_temp in
7344    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7345    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7346    \-*) ;;
7347    *) break;;
7348  esac
7349done
7350cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7351
7352
7353# Only perform the check for file, if the check method requires it
7354case $deplibs_check_method in
7355file_magic*)
7356  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7357    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7358echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7359if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7360  echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362  case $MAGIC_CMD in
7363[\\/*] |  ?:[\\/]*)
7364  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7365  ;;
7366*)
7367  lt_save_MAGIC_CMD="$MAGIC_CMD"
7368  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7369  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7370  for ac_dir in $ac_dummy; do
7371    IFS="$lt_save_ifs"
7372    test -z "$ac_dir" && ac_dir=.
7373    if test -f $ac_dir/${ac_tool_prefix}file; then
7374      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7375      if test -n "$file_magic_test_file"; then
7376        case $deplibs_check_method in
7377        "file_magic "*)
7378          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7379          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7380          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7381            $EGREP "$file_magic_regex" > /dev/null; then
7382            :
7383          else
7384            cat <<EOF 1>&2
7385
7386*** Warning: the command libtool uses to detect shared libraries,
7387*** $file_magic_cmd, produces output that libtool cannot recognize.
7388*** The result is that libtool may fail to recognize shared libraries
7389*** as such.  This will affect the creation of libtool libraries that
7390*** depend on shared libraries, but programs linked with such libtool
7391*** libraries will work regardless of this problem.  Nevertheless, you
7392*** may want to report the problem to your system manager and/or to
7393*** bug-libtool@gnu.org
7394
7395EOF
7396          fi ;;
7397        esac
7398      fi
7399      break
7400    fi
7401  done
7402  IFS="$lt_save_ifs"
7403  MAGIC_CMD="$lt_save_MAGIC_CMD"
7404  ;;
7405esac
7406fi
7407
7408MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7409if test -n "$MAGIC_CMD"; then
7410  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7411echo "${ECHO_T}$MAGIC_CMD" >&6
7412else
7413  echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
7415fi
7416
7417if test -z "$lt_cv_path_MAGIC_CMD"; then
7418  if test -n "$ac_tool_prefix"; then
7419    echo "$as_me:$LINENO: checking for file" >&5
7420echo $ECHO_N "checking for file... $ECHO_C" >&6
7421if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7422  echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424  case $MAGIC_CMD in
7425[\\/*] |  ?:[\\/]*)
7426  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7427  ;;
7428*)
7429  lt_save_MAGIC_CMD="$MAGIC_CMD"
7430  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7431  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7432  for ac_dir in $ac_dummy; do
7433    IFS="$lt_save_ifs"
7434    test -z "$ac_dir" && ac_dir=.
7435    if test -f $ac_dir/file; then
7436      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7437      if test -n "$file_magic_test_file"; then
7438        case $deplibs_check_method in
7439        "file_magic "*)
7440          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7441          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7442          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7443            $EGREP "$file_magic_regex" > /dev/null; then
7444            :
7445          else
7446            cat <<EOF 1>&2
7447
7448*** Warning: the command libtool uses to detect shared libraries,
7449*** $file_magic_cmd, produces output that libtool cannot recognize.
7450*** The result is that libtool may fail to recognize shared libraries
7451*** as such.  This will affect the creation of libtool libraries that
7452*** depend on shared libraries, but programs linked with such libtool
7453*** libraries will work regardless of this problem.  Nevertheless, you
7454*** may want to report the problem to your system manager and/or to
7455*** bug-libtool@gnu.org
7456
7457EOF
7458          fi ;;
7459        esac
7460      fi
7461      break
7462    fi
7463  done
7464  IFS="$lt_save_ifs"
7465  MAGIC_CMD="$lt_save_MAGIC_CMD"
7466  ;;
7467esac
7468fi
7469
7470MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7471if test -n "$MAGIC_CMD"; then
7472  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7473echo "${ECHO_T}$MAGIC_CMD" >&6
7474else
7475  echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
7477fi
7478
7479  else
7480    MAGIC_CMD=:
7481  fi
7482fi
7483
7484  fi
7485  ;;
7486esac
7487
7488enable_dlopen=no
7489enable_win32_dll=no
7490
7491# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7492if test "${enable_libtool_lock+set}" = set; then
7493  enableval="$enable_libtool_lock"
7494
7495fi;
7496test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7497
7498
7499# Check whether --with-pic or --without-pic was given.
7500if test "${with_pic+set}" = set; then
7501  withval="$with_pic"
7502  pic_mode="$withval"
7503else
7504  pic_mode=default
7505fi;
7506test -z "$pic_mode" && pic_mode=default
7507
7508# Use C for the default configuration in the libtool script
7509tagname=
7510lt_save_CC="$CC"
7511ac_ext=c
7512ac_cpp='$CPP $CPPFLAGS'
7513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7515ac_compiler_gnu=$ac_cv_c_compiler_gnu
7516
7517
7518# Source file extension for C test sources.
7519ac_ext=c
7520
7521# Object file extension for compiled C test sources.
7522objext=o
7523objext=$objext
7524
7525# Code to be used in simple compile tests
7526lt_simple_compile_test_code="int some_variable = 0;\n"
7527
7528# Code to be used in simple link tests
7529lt_simple_link_test_code='int main(){return(0);}\n'
7530
7531
7532# If no C compiler was specified, use CC.
7533LTCC=${LTCC-"$CC"}
7534
7535# If no C compiler flags were specified, use CFLAGS.
7536LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7537
7538# Allow CC to be a program name with arguments.
7539compiler=$CC
7540
7541
7542# save warnings/boilerplate of simple test code
7543ac_outfile=conftest.$ac_objext
7544printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7545eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7546_lt_compiler_boilerplate=`cat conftest.err`
7547$rm conftest*
7548
7549ac_outfile=conftest.$ac_objext
7550printf "$lt_simple_link_test_code" >conftest.$ac_ext
7551eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7552_lt_linker_boilerplate=`cat conftest.err`
7553$rm conftest*
7554
7555
7556## CAVEAT EMPTOR:
7557## There is no encapsulation within the following macros, do not change
7558## the running order or otherwise move them around unless you know exactly
7559## what you are doing...
7560
7561lt_prog_compiler_no_builtin_flag=
7562
7563if test "$GCC" = yes; then
7564  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7565
7566
7567echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7568echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7569if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7570  echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572  lt_cv_prog_compiler_rtti_exceptions=no
7573  ac_outfile=conftest.$ac_objext
7574   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7575   lt_compiler_flag="-fno-rtti -fno-exceptions"
7576   # Insert the option either (1) after the last *FLAGS variable, or
7577   # (2) before a word containing "conftest.", or (3) at the end.
7578   # Note that $ac_compile itself does not contain backslashes and begins
7579   # with a dollar sign (not a hyphen), so the echo should work correctly.
7580   # The option is referenced via a variable to avoid confusing sed.
7581   lt_compile=`echo "$ac_compile" | $SED \
7582   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7583   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7584   -e 's:$: $lt_compiler_flag:'`
7585   (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
7586   (eval "$lt_compile" 2>conftest.err)
7587   ac_status=$?
7588   cat conftest.err >&5
7589   echo "$as_me:7589: \$? = $ac_status" >&5
7590   if (exit $ac_status) && test -s "$ac_outfile"; then
7591     # The compiler can only warn and ignore the option if not recognized
7592     # So say no if there are warnings other than the usual output.
7593     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7594     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7595     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7596       lt_cv_prog_compiler_rtti_exceptions=yes
7597     fi
7598   fi
7599   $rm conftest*
7600
7601fi
7602echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7603echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7604
7605if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7606    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7607else
7608    :
7609fi
7610
7611fi
7612
7613lt_prog_compiler_wl=
7614lt_prog_compiler_pic=
7615lt_prog_compiler_static=
7616
7617echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7618echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7619
7620  if test "$GCC" = yes; then
7621    lt_prog_compiler_wl='-Wl,'
7622    lt_prog_compiler_static='-static'
7623
7624    case $host_os in
7625      aix*)
7626      # All AIX code is PIC.
7627      if test "$host_cpu" = ia64; then
7628        # AIX 5 now supports IA64 processor
7629        lt_prog_compiler_static='-Bstatic'
7630      fi
7631      ;;
7632
7633    amigaos*)
7634      # FIXME: we need at least 68020 code to build shared libraries, but
7635      # adding the `-m68020' flag to GCC prevents building anything better,
7636      # like `-m68040'.
7637      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7638      ;;
7639
7640    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7641      # PIC is the default for these OSes.
7642      ;;
7643
7644    mingw* | pw32* | os2*)
7645      # This hack is so that the source file can tell whether it is being
7646      # built for inclusion in a dll (and should export symbols for example).
7647      lt_prog_compiler_pic='-DDLL_EXPORT'
7648      ;;
7649
7650    darwin* | rhapsody*)
7651      # PIC is the default on this platform
7652      # Common symbols not allowed in MH_DYLIB files
7653      lt_prog_compiler_pic='-fno-common'
7654      ;;
7655
7656    interix3*)
7657      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7658      # Instead, we relocate shared libraries at runtime.
7659      ;;
7660
7661    msdosdjgpp*)
7662      # Just because we use GCC doesn't mean we suddenly get shared libraries
7663      # on systems that don't support them.
7664      lt_prog_compiler_can_build_shared=no
7665      enable_shared=no
7666      ;;
7667
7668    sysv4*MP*)
7669      if test -d /usr/nec; then
7670        lt_prog_compiler_pic=-Kconform_pic
7671      fi
7672      ;;
7673
7674    hpux*)
7675      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7676      # not for PA HP-UX.
7677      case $host_cpu in
7678      hppa*64*|ia64*)
7679        # +Z the default
7680        ;;
7681      *)
7682        lt_prog_compiler_pic='-fPIC'
7683        ;;
7684      esac
7685      ;;
7686
7687    *)
7688      lt_prog_compiler_pic='-fPIC'
7689      ;;
7690    esac
7691  else
7692    # PORTME Check for flag to pass linker flags through the system compiler.
7693    case $host_os in
7694    aix*)
7695      lt_prog_compiler_wl='-Wl,'
7696      if test "$host_cpu" = ia64; then
7697        # AIX 5 now supports IA64 processor
7698        lt_prog_compiler_static='-Bstatic'
7699      else
7700        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7701      fi
7702      ;;
7703      darwin*)
7704        # PIC is the default on this platform
7705        # Common symbols not allowed in MH_DYLIB files
7706       case $cc_basename in
7707         xlc*)
7708         lt_prog_compiler_pic='-qnocommon'
7709         lt_prog_compiler_wl='-Wl,'
7710         ;;
7711       esac
7712       ;;
7713
7714    mingw* | pw32* | os2*)
7715      # This hack is so that the source file can tell whether it is being
7716      # built for inclusion in a dll (and should export symbols for example).
7717      lt_prog_compiler_pic='-DDLL_EXPORT'
7718      ;;
7719
7720    hpux9* | hpux10* | hpux11*)
7721      lt_prog_compiler_wl='-Wl,'
7722      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7723      # not for PA HP-UX.
7724      case $host_cpu in
7725      hppa*64*|ia64*)
7726        # +Z the default
7727        ;;
7728      *)
7729        lt_prog_compiler_pic='+Z'
7730        ;;
7731      esac
7732      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7733      lt_prog_compiler_static='${wl}-a ${wl}archive'
7734      ;;
7735
7736    irix5* | irix6* | nonstopux*)
7737      lt_prog_compiler_wl='-Wl,'
7738      # PIC (with -KPIC) is the default.
7739      lt_prog_compiler_static='-non_shared'
7740      ;;
7741
7742    newsos6)
7743      lt_prog_compiler_pic='-KPIC'
7744      lt_prog_compiler_static='-Bstatic'
7745      ;;
7746
7747    linux*)
7748      case $cc_basename in
7749      icc* | ecc*)
7750        lt_prog_compiler_wl='-Wl,'
7751        lt_prog_compiler_pic='-KPIC'
7752        lt_prog_compiler_static='-static'
7753        ;;
7754      pgcc* | pgf77* | pgf90* | pgf95*)
7755        # Portland Group compilers (*not* the Pentium gcc compiler,
7756        # which looks to be a dead project)
7757        lt_prog_compiler_wl='-Wl,'
7758        lt_prog_compiler_pic='-fpic'
7759        lt_prog_compiler_static='-Bstatic'
7760        ;;
7761      ccc*)
7762        lt_prog_compiler_wl='-Wl,'
7763        # All Alpha code is PIC.
7764        lt_prog_compiler_static='-non_shared'
7765        ;;
7766      esac
7767      ;;
7768
7769    osf3* | osf4* | osf5*)
7770      lt_prog_compiler_wl='-Wl,'
7771      # All OSF/1 code is PIC.
7772      lt_prog_compiler_static='-non_shared'
7773      ;;
7774
7775    solaris*)
7776      lt_prog_compiler_pic='-KPIC'
7777      lt_prog_compiler_static='-Bstatic'
7778      case $cc_basename in
7779      f77* | f90* | f95*)
7780        lt_prog_compiler_wl='-Qoption ld ';;
7781      *)
7782        lt_prog_compiler_wl='-Wl,';;
7783      esac
7784      ;;
7785
7786    sunos4*)
7787      lt_prog_compiler_wl='-Qoption ld '
7788      lt_prog_compiler_pic='-PIC'
7789      lt_prog_compiler_static='-Bstatic'
7790      ;;
7791
7792    sysv4 | sysv4.2uw2* | sysv4.3*)
7793      lt_prog_compiler_wl='-Wl,'
7794      lt_prog_compiler_pic='-KPIC'
7795      lt_prog_compiler_static='-Bstatic'
7796      ;;
7797
7798    sysv4*MP*)
7799      if test -d /usr/nec ;then
7800        lt_prog_compiler_pic='-Kconform_pic'
7801        lt_prog_compiler_static='-Bstatic'
7802      fi
7803      ;;
7804
7805    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7806      lt_prog_compiler_wl='-Wl,'
7807      lt_prog_compiler_pic='-KPIC'
7808      lt_prog_compiler_static='-Bstatic'
7809      ;;
7810
7811    unicos*)
7812      lt_prog_compiler_wl='-Wl,'
7813      lt_prog_compiler_can_build_shared=no
7814      ;;
7815
7816    uts4*)
7817      lt_prog_compiler_pic='-pic'
7818      lt_prog_compiler_static='-Bstatic'
7819      ;;
7820
7821    *)
7822      lt_prog_compiler_can_build_shared=no
7823      ;;
7824    esac
7825  fi
7826
7827echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7828echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7829
7830#
7831# Check to make sure the PIC flag actually works.
7832#
7833if test -n "$lt_prog_compiler_pic"; then
7834
7835echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7836echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7837if test "${lt_prog_compiler_pic_works+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  lt_prog_compiler_pic_works=no
7841  ac_outfile=conftest.$ac_objext
7842   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7843   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7844   # Insert the option either (1) after the last *FLAGS variable, or
7845   # (2) before a word containing "conftest.", or (3) at the end.
7846   # Note that $ac_compile itself does not contain backslashes and begins
7847   # with a dollar sign (not a hyphen), so the echo should work correctly.
7848   # The option is referenced via a variable to avoid confusing sed.
7849   lt_compile=`echo "$ac_compile" | $SED \
7850   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852   -e 's:$: $lt_compiler_flag:'`
7853   (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
7854   (eval "$lt_compile" 2>conftest.err)
7855   ac_status=$?
7856   cat conftest.err >&5
7857   echo "$as_me:7857: \$? = $ac_status" >&5
7858   if (exit $ac_status) && test -s "$ac_outfile"; then
7859     # The compiler can only warn and ignore the option if not recognized
7860     # So say no if there are warnings other than the usual output.
7861     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7862     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864       lt_prog_compiler_pic_works=yes
7865     fi
7866   fi
7867   $rm conftest*
7868
7869fi
7870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7871echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7872
7873if test x"$lt_prog_compiler_pic_works" = xyes; then
7874    case $lt_prog_compiler_pic in
7875     "" | " "*) ;;
7876     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7877     esac
7878else
7879    lt_prog_compiler_pic=
7880     lt_prog_compiler_can_build_shared=no
7881fi
7882
7883fi
7884case $host_os in
7885  # For platforms which do not support PIC, -DPIC is meaningless:
7886  *djgpp*)
7887    lt_prog_compiler_pic=
7888    ;;
7889  *)
7890    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7891    ;;
7892esac
7893
7894#
7895# Check to make sure the static flag actually works.
7896#
7897wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7898echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7899echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7900if test "${lt_prog_compiler_static_works+set}" = set; then
7901  echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903  lt_prog_compiler_static_works=no
7904   save_LDFLAGS="$LDFLAGS"
7905   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7906   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7907   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7908     # The linker can only warn and ignore the option if not recognized
7909     # So say no if there are warnings
7910     if test -s conftest.err; then
7911       # Append any errors to the config.log.
7912       cat conftest.err 1>&5
7913       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7914       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915       if diff conftest.exp conftest.er2 >/dev/null; then
7916         lt_prog_compiler_static_works=yes
7917       fi
7918     else
7919       lt_prog_compiler_static_works=yes
7920     fi
7921   fi
7922   $rm conftest*
7923   LDFLAGS="$save_LDFLAGS"
7924
7925fi
7926echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7927echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7928
7929if test x"$lt_prog_compiler_static_works" = xyes; then
7930    :
7931else
7932    lt_prog_compiler_static=
7933fi
7934
7935
7936echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7937echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7938if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7939  echo $ECHO_N "(cached) $ECHO_C" >&6
7940else
7941  lt_cv_prog_compiler_c_o=no
7942   $rm -r conftest 2>/dev/null
7943   mkdir conftest
7944   cd conftest
7945   mkdir out
7946   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7947
7948   lt_compiler_flag="-o out/conftest2.$ac_objext"
7949   # Insert the option either (1) after the last *FLAGS variable, or
7950   # (2) before a word containing "conftest.", or (3) at the end.
7951   # Note that $ac_compile itself does not contain backslashes and begins
7952   # with a dollar sign (not a hyphen), so the echo should work correctly.
7953   lt_compile=`echo "$ac_compile" | $SED \
7954   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956   -e 's:$: $lt_compiler_flag:'`
7957   (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958   (eval "$lt_compile" 2>out/conftest.err)
7959   ac_status=$?
7960   cat out/conftest.err >&5
7961   echo "$as_me:7961: \$? = $ac_status" >&5
7962   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7963   then
7964     # The compiler can only warn and ignore the option if not recognized
7965     # So say no if there are warnings
7966     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7967     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7968     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7969       lt_cv_prog_compiler_c_o=yes
7970     fi
7971   fi
7972   chmod u+w . 2>&5
7973   $rm conftest*
7974   # SGI C++ compiler will create directory out/ii_files/ for
7975   # template instantiation
7976   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7977   $rm out/* && rmdir out
7978   cd ..
7979   rmdir conftest
7980   $rm conftest*
7981
7982fi
7983echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7984echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7985
7986
7987hard_links="nottested"
7988if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7989  # do not overwrite the value of need_locks provided by the user
7990  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7991echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7992  hard_links=yes
7993  $rm conftest*
7994  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7995  touch conftest.a
7996  ln conftest.a conftest.b 2>&5 || hard_links=no
7997  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7998  echo "$as_me:$LINENO: result: $hard_links" >&5
7999echo "${ECHO_T}$hard_links" >&6
8000  if test "$hard_links" = no; then
8001    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8002echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8003    need_locks=warn
8004  fi
8005else
8006  need_locks=no
8007fi
8008
8009echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8010echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8011
8012  runpath_var=
8013  allow_undefined_flag=
8014  enable_shared_with_static_runtimes=no
8015  archive_cmds=
8016  archive_expsym_cmds=
8017  old_archive_From_new_cmds=
8018  old_archive_from_expsyms_cmds=
8019  export_dynamic_flag_spec=
8020  whole_archive_flag_spec=
8021  thread_safe_flag_spec=
8022  hardcode_libdir_flag_spec=
8023  hardcode_libdir_flag_spec_ld=
8024  hardcode_libdir_separator=
8025  hardcode_direct=no
8026  hardcode_minus_L=no
8027  hardcode_shlibpath_var=unsupported
8028  link_all_deplibs=unknown
8029  hardcode_automatic=no
8030  module_cmds=
8031  module_expsym_cmds=
8032  always_export_symbols=no
8033  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8034  # include_expsyms should be a list of space-separated symbols to be *always*
8035  # included in the symbol list
8036  include_expsyms=
8037  # exclude_expsyms can be an extended regexp of symbols to exclude
8038  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8039  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8040  # as well as any symbol that contains `d'.
8041  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8042  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8043  # platforms (ab)use it in PIC code, but their linkers get confused if
8044  # the symbol is explicitly referenced.  Since portable code cannot
8045  # rely on this symbol name, it's probably fine to never include it in
8046  # preloaded symbol tables.
8047  extract_expsyms_cmds=
8048  # Just being paranoid about ensuring that cc_basename is set.
8049  for cc_temp in $compiler""; do
8050  case $cc_temp in
8051    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8053    \-*) ;;
8054    *) break;;
8055  esac
8056done
8057cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8058
8059  case $host_os in
8060  cygwin* | mingw* | pw32*)
8061    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8062    # When not using gcc, we currently assume that we are using
8063    # Microsoft Visual C++.
8064    if test "$GCC" != yes; then
8065      with_gnu_ld=no
8066    fi
8067    ;;
8068  interix*)
8069    # we just hope/assume this is gcc and not c89 (= MSVC++)
8070    with_gnu_ld=yes
8071    ;;
8072  openbsd*)
8073    with_gnu_ld=no
8074    ;;
8075  esac
8076
8077  ld_shlibs=yes
8078  if test "$with_gnu_ld" = yes; then
8079    # If archive_cmds runs LD, not CC, wlarc should be empty
8080    wlarc='${wl}'
8081
8082    # Set some defaults for GNU ld with shared library support. These
8083    # are reset later if shared libraries are not supported. Putting them
8084    # here allows them to be overridden if necessary.
8085    runpath_var=LD_RUN_PATH
8086    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8087    export_dynamic_flag_spec='${wl}--export-dynamic'
8088    # ancient GNU ld didn't support --whole-archive et. al.
8089    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8090        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8091      else
8092        whole_archive_flag_spec=
8093    fi
8094    supports_anon_versioning=no
8095    case `$LD -v 2>/dev/null` in
8096      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8097      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8098      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8099      *\ 2.11.*) ;; # other 2.11 versions
8100      *) supports_anon_versioning=yes ;;
8101    esac
8102
8103    # See if GNU ld supports shared libraries.
8104    case $host_os in
8105    aix3* | aix4* | aix5*)
8106      # On AIX/PPC, the GNU linker is very broken
8107      if test "$host_cpu" != ia64; then
8108        ld_shlibs=no
8109        cat <<EOF 1>&2
8110
8111*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8112*** to be unable to reliably create shared libraries on AIX.
8113*** Therefore, libtool is disabling shared libraries support.  If you
8114*** really care for shared libraries, you may want to modify your PATH
8115*** so that a non-GNU linker is found, and then restart.
8116
8117EOF
8118      fi
8119      ;;
8120
8121    amigaos*)
8122      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)'
8123      hardcode_libdir_flag_spec='-L$libdir'
8124      hardcode_minus_L=yes
8125
8126      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8127      # that the semantics of dynamic libraries on AmigaOS, at least up
8128      # to version 4, is to share data among multiple programs linked
8129      # with the same dynamic library.  Since this doesn't match the
8130      # behavior of shared libraries on other platforms, we can't use
8131      # them.
8132      ld_shlibs=no
8133      ;;
8134
8135    beos*)
8136      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8137        allow_undefined_flag=unsupported
8138        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8139        # support --undefined.  This deserves some investigation.  FIXME
8140        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141      else
8142        ld_shlibs=no
8143      fi
8144      ;;
8145
8146    cygwin* | mingw* | pw32*)
8147      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8148      # as there is no search path for DLLs.
8149      hardcode_libdir_flag_spec='-L$libdir'
8150      allow_undefined_flag=unsupported
8151      always_export_symbols=no
8152      enable_shared_with_static_runtimes=yes
8153      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8154
8155      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8156        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8157        # If the export-symbols file already is a .def file (1st line
8158        # is EXPORTS), use it as is; otherwise, prepend...
8159        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8160          cp $export_symbols $output_objdir/$soname.def;
8161        else
8162          echo EXPORTS > $output_objdir/$soname.def;
8163          cat $export_symbols >> $output_objdir/$soname.def;
8164        fi~
8165        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166      else
8167        ld_shlibs=no
8168      fi
8169      ;;
8170
8171    interix3*)
8172      hardcode_direct=no
8173      hardcode_shlibpath_var=no
8174      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8175      export_dynamic_flag_spec='${wl}-E'
8176      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8177      # Instead, shared libraries are loaded at an image base (0x10000000 by
8178      # default) and relocated if they conflict, which is a slow very memory
8179      # consuming and fragmenting process.  To avoid this, we pick a random,
8180      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8181      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8182      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8183      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'
8184      ;;
8185
8186    linux*)
8187      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8188        tmp_addflag=
8189        case $cc_basename,$host_cpu in
8190        pgcc*)                          # Portland Group C compiler
8191          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'
8192          tmp_addflag=' $pic_flag'
8193          ;;
8194        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8195          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'
8196          tmp_addflag=' $pic_flag -Mnomain' ;;
8197        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8198          tmp_addflag=' -i_dynamic' ;;
8199        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8200          tmp_addflag=' -i_dynamic -nofor_main' ;;
8201        ifc* | ifort*)                  # Intel Fortran compiler
8202          tmp_addflag=' -nofor_main' ;;
8203        esac
8204        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8205
8206        if test $supports_anon_versioning = yes; then
8207          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8208  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8209  $echo "local: *; };" >> $output_objdir/$libname.ver~
8210          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8211        fi
8212      else
8213        ld_shlibs=no
8214      fi
8215      ;;
8216
8217    netbsd*)
8218      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8219        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8220        wlarc=
8221      else
8222        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224      fi
8225      ;;
8226
8227    solaris*)
8228      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8229        ld_shlibs=no
8230        cat <<EOF 1>&2
8231
8232*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8233*** create shared libraries on Solaris systems.  Therefore, libtool
8234*** is disabling shared libraries support.  We urge you to upgrade GNU
8235*** binutils to release 2.9.1 or newer.  Another option is to modify
8236*** your PATH or compiler configuration so that the native linker is
8237*** used, and then restart.
8238
8239EOF
8240      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8241        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8243      else
8244        ld_shlibs=no
8245      fi
8246      ;;
8247
8248    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8249      case `$LD -v 2>&1` in
8250        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8251        ld_shlibs=no
8252        cat <<_LT_EOF 1>&2
8253
8254*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8255*** reliably create shared libraries on SCO systems.  Therefore, libtool
8256*** is disabling shared libraries support.  We urge you to upgrade GNU
8257*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8258*** your PATH or compiler configuration so that the native linker is
8259*** used, and then restart.
8260
8261_LT_EOF
8262        ;;
8263        *)
8264          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8265            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8266            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8267            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8268          else
8269            ld_shlibs=no
8270          fi
8271        ;;
8272      esac
8273      ;;
8274
8275    sunos4*)
8276      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8277      wlarc=
8278      hardcode_direct=yes
8279      hardcode_shlibpath_var=no
8280      ;;
8281
8282    *)
8283      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8284        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8285        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8286      else
8287        ld_shlibs=no
8288      fi
8289      ;;
8290    esac
8291
8292    if test "$ld_shlibs" = no; then
8293      runpath_var=
8294      hardcode_libdir_flag_spec=
8295      export_dynamic_flag_spec=
8296      whole_archive_flag_spec=
8297    fi
8298  else
8299    # PORTME fill in a description of your system's linker (not GNU ld)
8300    case $host_os in
8301    aix3*)
8302      allow_undefined_flag=unsupported
8303      always_export_symbols=yes
8304      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'
8305      # Note: this linker hardcodes the directories in LIBPATH if there
8306      # are no directories specified by -L.
8307      hardcode_minus_L=yes
8308      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8309        # Neither direct hardcoding nor static linking is supported with a
8310        # broken collect2.
8311        hardcode_direct=unsupported
8312      fi
8313      ;;
8314
8315    aix4* | aix5*)
8316      if test "$host_cpu" = ia64; then
8317        # On IA64, the linker does run time linking by default, so we don't
8318        # have to do anything special.
8319        aix_use_runtimelinking=no
8320        exp_sym_flag='-Bexport'
8321        no_entry_flag=""
8322      else
8323        # If we're using GNU nm, then we don't want the "-C" option.
8324        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8325        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8326          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'
8327        else
8328          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'
8329        fi
8330        aix_use_runtimelinking=no
8331
8332        # Test if we are trying to use run time linking or normal
8333        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8334        # need to do runtime linking.
8335        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8336          for ld_flag in $LDFLAGS; do
8337          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8338            aix_use_runtimelinking=yes
8339            break
8340          fi
8341          done
8342          ;;
8343        esac
8344
8345        exp_sym_flag='-bexport'
8346        no_entry_flag='-bnoentry'
8347      fi
8348
8349      # When large executables or shared objects are built, AIX ld can
8350      # have problems creating the table of contents.  If linking a library
8351      # or program results in "error TOC overflow" add -mminimal-toc to
8352      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8353      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8354
8355      archive_cmds=''
8356      hardcode_direct=yes
8357      hardcode_libdir_separator=':'
8358      link_all_deplibs=yes
8359
8360      if test "$GCC" = yes; then
8361        case $host_os in aix4.[012]|aix4.[012].*)
8362        # We only want to do this on AIX 4.2 and lower, the check
8363        # below for broken collect2 doesn't work under 4.3+
8364          collect2name=`${CC} -print-prog-name=collect2`
8365          if test -f "$collect2name" && \
8366           strings "$collect2name" | grep resolve_lib_name >/dev/null
8367          then
8368          # We have reworked collect2
8369          hardcode_direct=yes
8370          else
8371          # We have old collect2
8372          hardcode_direct=unsupported
8373          # It fails to find uninstalled libraries when the uninstalled
8374          # path is not listed in the libpath.  Setting hardcode_minus_L
8375          # to unsupported forces relinking
8376          hardcode_minus_L=yes
8377          hardcode_libdir_flag_spec='-L$libdir'
8378          hardcode_libdir_separator=
8379          fi
8380          ;;
8381        esac
8382        shared_flag='-shared'
8383        if test "$aix_use_runtimelinking" = yes; then
8384          shared_flag="$shared_flag "'${wl}-G'
8385        fi
8386      else
8387        # not using gcc
8388        if test "$host_cpu" = ia64; then
8389        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8390        # chokes on -Wl,-G. The following line is correct:
8391          shared_flag='-G'
8392        else
8393          if test "$aix_use_runtimelinking" = yes; then
8394            shared_flag='${wl}-G'
8395          else
8396            shared_flag='${wl}-bM:SRE'
8397          fi
8398        fi
8399      fi
8400
8401      # It seems that -bexpall does not export symbols beginning with
8402      # underscore (_), so it is better to generate a list of symbols to export.
8403      always_export_symbols=yes
8404      if test "$aix_use_runtimelinking" = yes; then
8405        # Warning - without using the other runtime loading flags (-brtl),
8406        # -berok will link without error, but may produce a broken library.
8407        allow_undefined_flag='-berok'
8408       # Determine the default libpath from the value encoded in an empty executable.
8409       cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h.  */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h.  */
8415
8416int
8417main ()
8418{
8419
8420  ;
8421  return 0;
8422}
8423_ACEOF
8424rm -f conftest.$ac_objext conftest$ac_exeext
8425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426  (eval $ac_link) 2>conftest.er1
8427  ac_status=$?
8428  grep -v '^ *+' conftest.er1 >conftest.err
8429  rm -f conftest.er1
8430  cat conftest.err >&5
8431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432  (exit $ac_status); } &&
8433         { ac_try='test -z "$ac_c_werror_flag"
8434                         || test ! -s conftest.err'
8435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436  (eval $ac_try) 2>&5
8437  ac_status=$?
8438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439  (exit $ac_status); }; } &&
8440         { ac_try='test -s conftest$ac_exeext'
8441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442  (eval $ac_try) 2>&5
8443  ac_status=$?
8444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445  (exit $ac_status); }; }; then
8446
8447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8448}'`
8449# Check for a 64-bit object if we didn't find anything.
8450if 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; }
8451}'`; fi
8452else
8453  echo "$as_me: failed program was:" >&5
8454sed 's/^/| /' conftest.$ac_ext >&5
8455
8456fi
8457rm -f conftest.err conftest.$ac_objext \
8458      conftest$ac_exeext conftest.$ac_ext
8459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8460
8461       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8462        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"
8463       else
8464        if test "$host_cpu" = ia64; then
8465          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8466          allow_undefined_flag="-z nodefs"
8467          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"
8468        else
8469         # Determine the default libpath from the value encoded in an empty executable.
8470         cat >conftest.$ac_ext <<_ACEOF
8471/* confdefs.h.  */
8472_ACEOF
8473cat confdefs.h >>conftest.$ac_ext
8474cat >>conftest.$ac_ext <<_ACEOF
8475/* end confdefs.h.  */
8476
8477int
8478main ()
8479{
8480
8481  ;
8482  return 0;
8483}
8484_ACEOF
8485rm -f conftest.$ac_objext conftest$ac_exeext
8486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487  (eval $ac_link) 2>conftest.er1
8488  ac_status=$?
8489  grep -v '^ *+' conftest.er1 >conftest.err
8490  rm -f conftest.er1
8491  cat conftest.err >&5
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); } &&
8494         { ac_try='test -z "$ac_c_werror_flag"
8495                         || test ! -s conftest.err'
8496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497  (eval $ac_try) 2>&5
8498  ac_status=$?
8499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500  (exit $ac_status); }; } &&
8501         { ac_try='test -s conftest$ac_exeext'
8502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503  (eval $ac_try) 2>&5
8504  ac_status=$?
8505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506  (exit $ac_status); }; }; then
8507
8508aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8509}'`
8510# Check for a 64-bit object if we didn't find anything.
8511if 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; }
8512}'`; fi
8513else
8514  echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517fi
8518rm -f conftest.err conftest.$ac_objext \
8519      conftest$ac_exeext conftest.$ac_ext
8520if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8521
8522         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8523          # Warning - without using the other run time loading flags,
8524          # -berok will link without error, but may produce a broken library.
8525          no_undefined_flag=' ${wl}-bernotok'
8526          allow_undefined_flag=' ${wl}-berok'
8527          # Exported symbols can be pulled into shared objects from archives
8528          whole_archive_flag_spec='$convenience'
8529          archive_cmds_need_lc=yes
8530          # This is similar to how AIX traditionally builds its shared libraries.
8531          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'
8532        fi
8533      fi
8534      ;;
8535
8536    amigaos*)
8537      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)'
8538      hardcode_libdir_flag_spec='-L$libdir'
8539      hardcode_minus_L=yes
8540      # see comment about different semantics on the GNU ld section
8541      ld_shlibs=no
8542      ;;
8543
8544    bsdi[45]*)
8545      export_dynamic_flag_spec=-rdynamic
8546      ;;
8547
8548    cygwin* | mingw* | pw32*)
8549      # When not using gcc, we currently assume that we are using
8550      # Microsoft Visual C++.
8551      # hardcode_libdir_flag_spec is actually meaningless, as there is
8552      # no search path for DLLs.
8553      hardcode_libdir_flag_spec=' '
8554      allow_undefined_flag=unsupported
8555      # Tell ltmain to make .lib files, not .a files.
8556      libext=lib
8557      # Tell ltmain to make .dll files, not .so files.
8558      shrext_cmds=".dll"
8559      # FIXME: Setting linknames here is a bad hack.
8560      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8561      # The linker will automatically build a .lib file if we build a DLL.
8562      old_archive_From_new_cmds='true'
8563      # FIXME: Should let the user specify the lib program.
8564      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8565      fix_srcfile_path='`cygpath -w "$srcfile"`'
8566      enable_shared_with_static_runtimes=yes
8567      ;;
8568
8569    darwin* | rhapsody*)
8570      case $host_os in
8571        rhapsody* | darwin1.[012])
8572         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8573         ;;
8574       *) # Darwin 1.3 on
8575         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8576           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8577         else
8578           case ${MACOSX_DEPLOYMENT_TARGET} in
8579             10.[012])
8580               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8581               ;;
8582             10.*)
8583               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8584               ;;
8585           esac
8586         fi
8587         ;;
8588      esac
8589      archive_cmds_need_lc=no
8590      hardcode_direct=no
8591      hardcode_automatic=yes
8592      hardcode_shlibpath_var=unsupported
8593      whole_archive_flag_spec=''
8594      link_all_deplibs=yes
8595    if test "$GCC" = yes ; then
8596        output_verbose_link_cmd='echo'
8597        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8598      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8599      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8600      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}'
8601      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}'
8602    else
8603      case $cc_basename in
8604        xlc*)
8605         output_verbose_link_cmd='echo'
8606         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8607         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8608          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8609         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}'
8610          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}'
8611          ;;
8612       *)
8613         ld_shlibs=no
8614          ;;
8615      esac
8616    fi
8617      ;;
8618
8619    dgux*)
8620      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8621      hardcode_libdir_flag_spec='-L$libdir'
8622      hardcode_shlibpath_var=no
8623      ;;
8624
8625    freebsd1*)
8626      ld_shlibs=no
8627      ;;
8628
8629    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8630    # support.  Future versions do this automatically, but an explicit c++rt0.o
8631    # does not break anything, and helps significantly (at the cost of a little
8632    # extra space).
8633    freebsd2.2*)
8634      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8635      hardcode_libdir_flag_spec='-R$libdir'
8636      hardcode_direct=yes
8637      hardcode_shlibpath_var=no
8638      ;;
8639
8640    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8641    freebsd2*)
8642      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8643      hardcode_direct=yes
8644      hardcode_minus_L=yes
8645      hardcode_shlibpath_var=no
8646      ;;
8647
8648    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8649    freebsd* | kfreebsd*-gnu | dragonfly*)
8650      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8651      hardcode_libdir_flag_spec='-R$libdir'
8652      hardcode_direct=yes
8653      hardcode_shlibpath_var=no
8654      ;;
8655
8656    hpux9*)
8657      if test "$GCC" = yes; then
8658        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'
8659      else
8660        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'
8661      fi
8662      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8663      hardcode_libdir_separator=:
8664      hardcode_direct=yes
8665
8666      # hardcode_minus_L: Not really in the search PATH,
8667      # but as the default location of the library.
8668      hardcode_minus_L=yes
8669      export_dynamic_flag_spec='${wl}-E'
8670      ;;
8671
8672    hpux10*)
8673      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8674        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8675      else
8676        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8677      fi
8678      if test "$with_gnu_ld" = no; then
8679        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8680        hardcode_libdir_separator=:
8681
8682        hardcode_direct=yes
8683        export_dynamic_flag_spec='${wl}-E'
8684
8685        # hardcode_minus_L: Not really in the search PATH,
8686        # but as the default location of the library.
8687        hardcode_minus_L=yes
8688      fi
8689      ;;
8690
8691    hpux11*)
8692      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8693        case $host_cpu in
8694        hppa*64*)
8695          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8696          ;;
8697        ia64*)
8698          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8699          ;;
8700        *)
8701          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8702          ;;
8703        esac
8704      else
8705        case $host_cpu in
8706        hppa*64*)
8707          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8708          ;;
8709        ia64*)
8710          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8711          ;;
8712        *)
8713          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714          ;;
8715        esac
8716      fi
8717      if test "$with_gnu_ld" = no; then
8718        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8719        hardcode_libdir_separator=:
8720
8721        case $host_cpu in
8722        hppa*64*|ia64*)
8723          hardcode_libdir_flag_spec_ld='+b $libdir'
8724          hardcode_direct=no
8725          hardcode_shlibpath_var=no
8726          ;;
8727        *)
8728          hardcode_direct=yes
8729          export_dynamic_flag_spec='${wl}-E'
8730
8731          # hardcode_minus_L: Not really in the search PATH,
8732          # but as the default location of the library.
8733          hardcode_minus_L=yes
8734          ;;
8735        esac
8736      fi
8737      ;;
8738
8739    irix5* | irix6* | nonstopux*)
8740      if test "$GCC" = yes; then
8741        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'
8742      else
8743        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'
8744        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8745      fi
8746      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747      hardcode_libdir_separator=:
8748      link_all_deplibs=yes
8749      ;;
8750
8751    netbsd*)
8752      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8753        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8754      else
8755        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8756      fi
8757      hardcode_libdir_flag_spec='-R$libdir'
8758      hardcode_direct=yes
8759      hardcode_shlibpath_var=no
8760      ;;
8761
8762    newsos6)
8763      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8764      hardcode_direct=yes
8765      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766      hardcode_libdir_separator=:
8767      hardcode_shlibpath_var=no
8768      ;;
8769
8770    openbsd*)
8771      hardcode_direct=yes
8772      hardcode_shlibpath_var=no
8773      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8774        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8775        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8776        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8777        export_dynamic_flag_spec='${wl}-E'
8778      else
8779       case $host_os in
8780         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8781           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782           hardcode_libdir_flag_spec='-R$libdir'
8783           ;;
8784         *)
8785           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8786           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8787           ;;
8788       esac
8789      fi
8790      ;;
8791
8792    os2*)
8793      hardcode_libdir_flag_spec='-L$libdir'
8794      hardcode_minus_L=yes
8795      allow_undefined_flag=unsupported
8796      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'
8797      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8798      ;;
8799
8800    osf3*)
8801      if test "$GCC" = yes; then
8802        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8803        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'
8804      else
8805        allow_undefined_flag=' -expect_unresolved \*'
8806        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'
8807      fi
8808      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809      hardcode_libdir_separator=:
8810      ;;
8811
8812    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8813      if test "$GCC" = yes; then
8814        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8815        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'
8816        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817      else
8818        allow_undefined_flag=' -expect_unresolved \*'
8819        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'
8820        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8821        $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'
8822
8823        # Both c and cxx compiler support -rpath directly
8824        hardcode_libdir_flag_spec='-rpath $libdir'
8825      fi
8826      hardcode_libdir_separator=:
8827      ;;
8828
8829    solaris*)
8830      no_undefined_flag=' -z text'
8831      if test "$GCC" = yes; then
8832        wlarc='${wl}'
8833        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8835          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8836      else
8837        wlarc=''
8838        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8840        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8841      fi
8842      hardcode_libdir_flag_spec='-R$libdir'
8843      hardcode_shlibpath_var=no
8844      case $host_os in
8845      solaris2.[0-5] | solaris2.[0-5].*) ;;
8846      *)
8847        # The compiler driver will combine linker options so we
8848        # cannot just pass the convience library names through
8849        # without $wl, iff we do not link with $LD.
8850        # Luckily, gcc supports the same syntax we need for Sun Studio.
8851        # Supported since Solaris 2.6 (maybe 2.5.1?)
8852        case $wlarc in
8853        '')
8854          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8855        *)
8856          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' ;;
8857        esac ;;
8858      esac
8859      link_all_deplibs=yes
8860      ;;
8861
8862    sunos4*)
8863      if test "x$host_vendor" = xsequent; then
8864        # Use $CC to link under sequent, because it throws in some extra .o
8865        # files that make .init and .fini sections work.
8866        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8867      else
8868        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8869      fi
8870      hardcode_libdir_flag_spec='-L$libdir'
8871      hardcode_direct=yes
8872      hardcode_minus_L=yes
8873      hardcode_shlibpath_var=no
8874      ;;
8875
8876    sysv4)
8877      case $host_vendor in
8878        sni)
8879          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880          hardcode_direct=yes # is this really true???
8881        ;;
8882        siemens)
8883          ## LD is ld it makes a PLAMLIB
8884          ## CC just makes a GrossModule.
8885          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8886          reload_cmds='$CC -r -o $output$reload_objs'
8887          hardcode_direct=no
8888        ;;
8889        motorola)
8890          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8892        ;;
8893      esac
8894      runpath_var='LD_RUN_PATH'
8895      hardcode_shlibpath_var=no
8896      ;;
8897
8898    sysv4.3*)
8899      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8900      hardcode_shlibpath_var=no
8901      export_dynamic_flag_spec='-Bexport'
8902      ;;
8903
8904    sysv4*MP*)
8905      if test -d /usr/nec; then
8906        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907        hardcode_shlibpath_var=no
8908        runpath_var=LD_RUN_PATH
8909        hardcode_runpath_var=yes
8910        ld_shlibs=yes
8911      fi
8912      ;;
8913
8914    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8915      no_undefined_flag='${wl}-z,text'
8916      archive_cmds_need_lc=no
8917      hardcode_shlibpath_var=no
8918      runpath_var='LD_RUN_PATH'
8919
8920      if test "$GCC" = yes; then
8921        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8922        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8923      else
8924        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8925        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8926      fi
8927      ;;
8928
8929    sysv5* | sco3.2v5* | sco5v6*)
8930      # Note: We can NOT use -z defs as we might desire, because we do not
8931      # link with -lc, and that would cause any symbols used from libc to
8932      # always be unresolved, which means just about no library would
8933      # ever link correctly.  If we're not using GNU ld we use -z text
8934      # though, which does catch some bad symbols but isn't as heavy-handed
8935      # as -z defs.
8936      no_undefined_flag='${wl}-z,text'
8937      allow_undefined_flag='${wl}-z,nodefs'
8938      archive_cmds_need_lc=no
8939      hardcode_shlibpath_var=no
8940      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8941      hardcode_libdir_separator=':'
8942      link_all_deplibs=yes
8943      export_dynamic_flag_spec='${wl}-Bexport'
8944      runpath_var='LD_RUN_PATH'
8945
8946      if test "$GCC" = yes; then
8947        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949      else
8950        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8951        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8952      fi
8953      ;;
8954
8955    uts4*)
8956      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957      hardcode_libdir_flag_spec='-L$libdir'
8958      hardcode_shlibpath_var=no
8959      ;;
8960
8961    *)
8962      ld_shlibs=no
8963      ;;
8964    esac
8965  fi
8966
8967echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8968echo "${ECHO_T}$ld_shlibs" >&6
8969test "$ld_shlibs" = no && can_build_shared=no
8970
8971#
8972# Do we need to explicitly link libc?
8973#
8974case "x$archive_cmds_need_lc" in
8975x|xyes)
8976  # Assume -lc should be added
8977  archive_cmds_need_lc=yes
8978
8979  if test "$enable_shared" = yes && test "$GCC" = yes; then
8980    case $archive_cmds in
8981    *'~'*)
8982      # FIXME: we may have to deal with multi-command sequences.
8983      ;;
8984    '$CC '*)
8985      # Test whether the compiler implicitly links with -lc since on some
8986      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8987      # to ld, don't add -lc before -lgcc.
8988      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8989echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8990      $rm conftest*
8991      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8992
8993      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8994  (eval $ac_compile) 2>&5
8995  ac_status=$?
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); } 2>conftest.err; then
8998        soname=conftest
8999        lib=conftest
9000        libobjs=conftest.$ac_objext
9001        deplibs=
9002        wl=$lt_prog_compiler_wl
9003        pic_flag=$lt_prog_compiler_pic
9004        compiler_flags=-v
9005        linker_flags=-v
9006        verstring=
9007        output_objdir=.
9008        libname=conftest
9009        lt_save_allow_undefined_flag=$allow_undefined_flag
9010        allow_undefined_flag=
9011        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9012  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9013  ac_status=$?
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); }
9016        then
9017          archive_cmds_need_lc=no
9018        else
9019          archive_cmds_need_lc=yes
9020        fi
9021        allow_undefined_flag=$lt_save_allow_undefined_flag
9022      else
9023        cat conftest.err 1>&5
9024      fi
9025      $rm conftest*
9026      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9027echo "${ECHO_T}$archive_cmds_need_lc" >&6
9028      ;;
9029    esac
9030  fi
9031  ;;
9032esac
9033
9034echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9035echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9036library_names_spec=
9037libname_spec='lib$name'
9038soname_spec=
9039shrext_cmds=".so"
9040postinstall_cmds=
9041postuninstall_cmds=
9042finish_cmds=
9043finish_eval=
9044shlibpath_var=
9045shlibpath_overrides_runpath=unknown
9046version_type=none
9047dynamic_linker="$host_os ld.so"
9048sys_lib_dlsearch_path_spec="/lib /usr/lib"
9049if test "$GCC" = yes; then
9050  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9051  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9052    # if the path contains ";" then we assume it to be the separator
9053    # otherwise default to the standard path separator (i.e. ":") - it is
9054    # assumed that no part of a normal pathname contains ";" but that should
9055    # okay in the real world where ";" in dirpaths is itself problematic.
9056    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9057  else
9058    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9059  fi
9060else
9061  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9062fi
9063need_lib_prefix=unknown
9064hardcode_into_libs=no
9065
9066# when you set need_version to no, make sure it does not cause -set_version
9067# flags to be left without arguments
9068need_version=unknown
9069
9070case $host_os in
9071aix3*)
9072  version_type=linux
9073  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9074  shlibpath_var=LIBPATH
9075
9076  # AIX 3 has no versioning support, so we append a major version to the name.
9077  soname_spec='${libname}${release}${shared_ext}$major'
9078  ;;
9079
9080aix4* | aix5*)
9081  version_type=linux
9082  need_lib_prefix=no
9083  need_version=no
9084  hardcode_into_libs=yes
9085  if test "$host_cpu" = ia64; then
9086    # AIX 5 supports IA64
9087    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9088    shlibpath_var=LD_LIBRARY_PATH
9089  else
9090    # With GCC up to 2.95.x, collect2 would create an import file
9091    # for dependence libraries.  The import file would start with
9092    # the line `#! .'.  This would cause the generated library to
9093    # depend on `.', always an invalid library.  This was fixed in
9094    # development snapshots of GCC prior to 3.0.
9095    case $host_os in
9096      aix4 | aix4.[01] | aix4.[01].*)
9097      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9098           echo ' yes '
9099           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9100        :
9101      else
9102        can_build_shared=no
9103      fi
9104      ;;
9105    esac
9106    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9107    # soname into executable. Probably we can add versioning support to
9108    # collect2, so additional links can be useful in future.
9109    if test "$aix_use_runtimelinking" = yes; then
9110      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9111      # instead of lib<name>.a to let people know that these are not
9112      # typical AIX shared libraries.
9113      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114    else
9115      # We preserve .a as extension for shared libraries through AIX4.2
9116      # and later when we are not doing run time linking.
9117      library_names_spec='${libname}${release}.a $libname.a'
9118      soname_spec='${libname}${release}${shared_ext}$major'
9119    fi
9120    shlibpath_var=LIBPATH
9121  fi
9122  ;;
9123
9124amigaos*)
9125  library_names_spec='$libname.ixlibrary $libname.a'
9126  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9127  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'
9128  ;;
9129
9130beos*)
9131  library_names_spec='${libname}${shared_ext}'
9132  dynamic_linker="$host_os ld.so"
9133  shlibpath_var=LIBRARY_PATH
9134  ;;
9135
9136bsdi[45]*)
9137  version_type=linux
9138  need_version=no
9139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140  soname_spec='${libname}${release}${shared_ext}$major'
9141  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9142  shlibpath_var=LD_LIBRARY_PATH
9143  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9144  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9145  # the default ld.so.conf also contains /usr/contrib/lib and
9146  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9147  # libtool to hard-code these into programs
9148  ;;
9149
9150cygwin* | mingw* | pw32*)
9151  version_type=windows
9152  shrext_cmds=".dll"
9153  need_version=no
9154  need_lib_prefix=no
9155
9156  case $GCC,$host_os in
9157  yes,cygwin* | yes,mingw* | yes,pw32*)
9158    library_names_spec='$libname.dll.a'
9159    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9160    postinstall_cmds='base_file=`basename \${file}`~
9161      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9162      dldir=$destdir/`dirname \$dlpath`~
9163      test -d \$dldir || mkdir -p \$dldir~
9164      $install_prog $dir/$dlname \$dldir/$dlname~
9165      chmod a+x \$dldir/$dlname'
9166    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9167      dlpath=$dir/\$dldll~
9168       $rm \$dlpath'
9169    shlibpath_overrides_runpath=yes
9170
9171    case $host_os in
9172    cygwin*)
9173      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9174      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9175      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9176      ;;
9177    mingw*)
9178      # MinGW DLLs use traditional 'lib' prefix
9179      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9181      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9182        # It is most probably a Windows format PATH printed by
9183        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9184        # path with ; separators, and with drive letters. We can handle the
9185        # drive letters (cygwin fileutils understands them), so leave them,
9186        # especially as we might pass files found there to a mingw objdump,
9187        # which wouldn't understand a cygwinified path. Ahh.
9188        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9189      else
9190        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9191      fi
9192      ;;
9193    pw32*)
9194      # pw32 DLLs use 'pw' prefix rather than 'lib'
9195      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196      ;;
9197    esac
9198    ;;
9199
9200  *)
9201    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9202    ;;
9203  esac
9204  dynamic_linker='Win32 ld.exe'
9205  # FIXME: first we should search . and the directory the executable is in
9206  shlibpath_var=PATH
9207  ;;
9208
9209darwin* | rhapsody*)
9210  dynamic_linker="$host_os dyld"
9211  version_type=darwin
9212  need_lib_prefix=no
9213  need_version=no
9214  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9215  soname_spec='${libname}${release}${major}$shared_ext'
9216  shlibpath_overrides_runpath=yes
9217  shlibpath_var=DYLD_LIBRARY_PATH
9218  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9219  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9220  if test "$GCC" = yes; then
9221    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"`
9222  else
9223    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9224  fi
9225  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9226  ;;
9227
9228dgux*)
9229  version_type=linux
9230  need_lib_prefix=no
9231  need_version=no
9232  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9233  soname_spec='${libname}${release}${shared_ext}$major'
9234  shlibpath_var=LD_LIBRARY_PATH
9235  ;;
9236
9237freebsd1*)
9238  dynamic_linker=no
9239  ;;
9240
9241kfreebsd*-gnu)
9242  version_type=linux
9243  need_lib_prefix=no
9244  need_version=no
9245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9246  soname_spec='${libname}${release}${shared_ext}$major'
9247  shlibpath_var=LD_LIBRARY_PATH
9248  shlibpath_overrides_runpath=no
9249  hardcode_into_libs=yes
9250  dynamic_linker='GNU ld.so'
9251  ;;
9252
9253freebsd* | dragonfly*)
9254  # DragonFly does not have aout.  When/if they implement a new
9255  # versioning mechanism, adjust this.
9256  if test -x /usr/bin/objformat; then
9257    objformat=`/usr/bin/objformat`
9258  else
9259    case $host_os in
9260    freebsd[123]*) objformat=aout ;;
9261    *) objformat=elf ;;
9262    esac
9263  fi
9264  version_type=freebsd-$objformat
9265  case $version_type in
9266    freebsd-elf*)
9267      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9268      need_version=no
9269      need_lib_prefix=no
9270      ;;
9271    freebsd-*)
9272      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9273      need_version=yes
9274      ;;
9275  esac
9276  shlibpath_var=LD_LIBRARY_PATH
9277  case $host_os in
9278  freebsd2*)
9279    shlibpath_overrides_runpath=yes
9280    ;;
9281  freebsd3.[01]* | freebsdelf3.[01]*)
9282    shlibpath_overrides_runpath=yes
9283    hardcode_into_libs=yes
9284    ;;
9285  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9286  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9287    shlibpath_overrides_runpath=no
9288    hardcode_into_libs=yes
9289    ;;
9290  freebsd*) # from 4.6 on
9291    shlibpath_overrides_runpath=yes
9292    hardcode_into_libs=yes
9293    ;;
9294  esac
9295  ;;
9296
9297gnu*)
9298  version_type=linux
9299  need_lib_prefix=no
9300  need_version=no
9301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9302  soname_spec='${libname}${release}${shared_ext}$major'
9303  shlibpath_var=LD_LIBRARY_PATH
9304  hardcode_into_libs=yes
9305  ;;
9306
9307hpux9* | hpux10* | hpux11*)
9308  # Give a soname corresponding to the major version so that dld.sl refuses to
9309  # link against other versions.
9310  version_type=sunos
9311  need_lib_prefix=no
9312  need_version=no
9313  case $host_cpu in
9314  ia64*)
9315    shrext_cmds='.so'
9316    hardcode_into_libs=yes
9317    dynamic_linker="$host_os dld.so"
9318    shlibpath_var=LD_LIBRARY_PATH
9319    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9320    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321    soname_spec='${libname}${release}${shared_ext}$major'
9322    if test "X$HPUX_IA64_MODE" = X32; then
9323      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9324    else
9325      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9326    fi
9327    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9328    ;;
9329   hppa*64*)
9330     shrext_cmds='.sl'
9331     hardcode_into_libs=yes
9332     dynamic_linker="$host_os dld.sl"
9333     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9336     soname_spec='${libname}${release}${shared_ext}$major'
9337     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9338     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9339     ;;
9340   *)
9341    shrext_cmds='.sl'
9342    dynamic_linker="$host_os dld.sl"
9343    shlibpath_var=SHLIB_PATH
9344    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9345    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346    soname_spec='${libname}${release}${shared_ext}$major'
9347    ;;
9348  esac
9349  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9350  postinstall_cmds='chmod 555 $lib'
9351  ;;
9352
9353interix3*)
9354  version_type=linux
9355  need_lib_prefix=no
9356  need_version=no
9357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9358  soname_spec='${libname}${release}${shared_ext}$major'
9359  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9360  shlibpath_var=LD_LIBRARY_PATH
9361  shlibpath_overrides_runpath=no
9362  hardcode_into_libs=yes
9363  ;;
9364
9365irix5* | irix6* | nonstopux*)
9366  case $host_os in
9367    nonstopux*) version_type=nonstopux ;;
9368    *)
9369        if test "$lt_cv_prog_gnu_ld" = yes; then
9370                version_type=linux
9371        else
9372                version_type=irix
9373        fi ;;
9374  esac
9375  need_lib_prefix=no
9376  need_version=no
9377  soname_spec='${libname}${release}${shared_ext}$major'
9378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9379  case $host_os in
9380  irix5* | nonstopux*)
9381    libsuff= shlibsuff=
9382    ;;
9383  *)
9384    case $LD in # libtool.m4 will add one of these switches to LD
9385    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9386      libsuff= shlibsuff= libmagic=32-bit;;
9387    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9388      libsuff=32 shlibsuff=N32 libmagic=N32;;
9389    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9390      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9391    *) libsuff= shlibsuff= libmagic=never-match;;
9392    esac
9393    ;;
9394  esac
9395  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9396  shlibpath_overrides_runpath=no
9397  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9398  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9399  hardcode_into_libs=yes
9400  ;;
9401
9402# No shared lib support for Linux oldld, aout, or coff.
9403linux*oldld* | linux*aout* | linux*coff*)
9404  dynamic_linker=no
9405  ;;
9406
9407# This must be Linux ELF.
9408linux*)
9409  version_type=linux
9410  need_lib_prefix=no
9411  need_version=no
9412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413  soname_spec='${libname}${release}${shared_ext}$major'
9414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9415  shlibpath_var=LD_LIBRARY_PATH
9416  shlibpath_overrides_runpath=no
9417  # This implies no fast_install, which is unacceptable.
9418  # Some rework will be needed to allow for fast_install
9419  # before this can be enabled.
9420  hardcode_into_libs=yes
9421
9422  # Append ld.so.conf contents to the search path
9423  if test -f /etc/ld.so.conf; then
9424    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' ' '`
9425    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9426  fi
9427
9428  # We used to test for /lib/ld.so.1 and disable shared libraries on
9429  # powerpc, because MkLinux only supported shared libraries with the
9430  # GNU dynamic linker.  Since this was broken with cross compilers,
9431  # most powerpc-linux boxes support dynamic linking these days and
9432  # people can always --disable-shared, the test was removed, and we
9433  # assume the GNU/Linux dynamic linker is in use.
9434  dynamic_linker='GNU/Linux ld.so'
9435  ;;
9436
9437knetbsd*-gnu)
9438  version_type=linux
9439  need_lib_prefix=no
9440  need_version=no
9441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9442  soname_spec='${libname}${release}${shared_ext}$major'
9443  shlibpath_var=LD_LIBRARY_PATH
9444  shlibpath_overrides_runpath=no
9445  hardcode_into_libs=yes
9446  dynamic_linker='GNU ld.so'
9447  ;;
9448
9449netbsd*)
9450  version_type=sunos
9451  need_lib_prefix=no
9452  need_version=no
9453  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9454    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9455    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9456    dynamic_linker='NetBSD (a.out) ld.so'
9457  else
9458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9459    soname_spec='${libname}${release}${shared_ext}$major'
9460    dynamic_linker='NetBSD ld.elf_so'
9461  fi
9462  shlibpath_var=LD_LIBRARY_PATH
9463  shlibpath_overrides_runpath=yes
9464  hardcode_into_libs=yes
9465  ;;
9466
9467newsos6)
9468  version_type=linux
9469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470  shlibpath_var=LD_LIBRARY_PATH
9471  shlibpath_overrides_runpath=yes
9472  ;;
9473
9474nto-qnx*)
9475  version_type=linux
9476  need_lib_prefix=no
9477  need_version=no
9478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479  soname_spec='${libname}${release}${shared_ext}$major'
9480  shlibpath_var=LD_LIBRARY_PATH
9481  shlibpath_overrides_runpath=yes
9482  ;;
9483
9484openbsd*)
9485  version_type=sunos
9486  sys_lib_dlsearch_path_spec="/usr/lib"
9487  need_lib_prefix=no
9488  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9489  case $host_os in
9490    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9491    *)                         need_version=no  ;;
9492  esac
9493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9494  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9495  shlibpath_var=LD_LIBRARY_PATH
9496  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9497    case $host_os in
9498      openbsd2.[89] | openbsd2.[89].*)
9499        shlibpath_overrides_runpath=no
9500        ;;
9501      *)
9502        shlibpath_overrides_runpath=yes
9503        ;;
9504      esac
9505  else
9506    shlibpath_overrides_runpath=yes
9507  fi
9508  ;;
9509
9510os2*)
9511  libname_spec='$name'
9512  shrext_cmds=".dll"
9513  need_lib_prefix=no
9514  library_names_spec='$libname${shared_ext} $libname.a'
9515  dynamic_linker='OS/2 ld.exe'
9516  shlibpath_var=LIBPATH
9517  ;;
9518
9519osf3* | osf4* | osf5*)
9520  version_type=osf
9521  need_lib_prefix=no
9522  need_version=no
9523  soname_spec='${libname}${release}${shared_ext}$major'
9524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525  shlibpath_var=LD_LIBRARY_PATH
9526  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9527  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9528  ;;
9529
9530solaris*)
9531  version_type=linux
9532  need_lib_prefix=no
9533  need_version=no
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  shlibpath_var=LD_LIBRARY_PATH
9537  shlibpath_overrides_runpath=yes
9538  hardcode_into_libs=yes
9539  # ldd complains unless libraries are executable
9540  postinstall_cmds='chmod +x $lib'
9541  ;;
9542
9543sunos4*)
9544  version_type=sunos
9545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9546  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9547  shlibpath_var=LD_LIBRARY_PATH
9548  shlibpath_overrides_runpath=yes
9549  if test "$with_gnu_ld" = yes; then
9550    need_lib_prefix=no
9551  fi
9552  need_version=yes
9553  ;;
9554
9555sysv4 | sysv4.3*)
9556  version_type=linux
9557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558  soname_spec='${libname}${release}${shared_ext}$major'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  case $host_vendor in
9561    sni)
9562      shlibpath_overrides_runpath=no
9563      need_lib_prefix=no
9564      export_dynamic_flag_spec='${wl}-Blargedynsym'
9565      runpath_var=LD_RUN_PATH
9566      ;;
9567    siemens)
9568      need_lib_prefix=no
9569      ;;
9570    motorola)
9571      need_lib_prefix=no
9572      need_version=no
9573      shlibpath_overrides_runpath=no
9574      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9575      ;;
9576  esac
9577  ;;
9578
9579sysv4*MP*)
9580  if test -d /usr/nec ;then
9581    version_type=linux
9582    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9583    soname_spec='$libname${shared_ext}.$major'
9584    shlibpath_var=LD_LIBRARY_PATH
9585  fi
9586  ;;
9587
9588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9589  version_type=freebsd-elf
9590  need_lib_prefix=no
9591  need_version=no
9592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9593  soname_spec='${libname}${release}${shared_ext}$major'
9594  shlibpath_var=LD_LIBRARY_PATH
9595  hardcode_into_libs=yes
9596  if test "$with_gnu_ld" = yes; then
9597    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9598    shlibpath_overrides_runpath=no
9599  else
9600    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9601    shlibpath_overrides_runpath=yes
9602    case $host_os in
9603      sco3.2v5*)
9604        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9605        ;;
9606    esac
9607  fi
9608  sys_lib_dlsearch_path_spec='/usr/lib'
9609  ;;
9610
9611uts4*)
9612  version_type=linux
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614  soname_spec='${libname}${release}${shared_ext}$major'
9615  shlibpath_var=LD_LIBRARY_PATH
9616  ;;
9617
9618*)
9619  dynamic_linker=no
9620  ;;
9621esac
9622echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9623echo "${ECHO_T}$dynamic_linker" >&6
9624test "$dynamic_linker" = no && can_build_shared=no
9625
9626variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9627if test "$GCC" = yes; then
9628  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9629fi
9630
9631echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9632echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9633hardcode_action=
9634if test -n "$hardcode_libdir_flag_spec" || \
9635   test -n "$runpath_var" || \
9636   test "X$hardcode_automatic" = "Xyes" ; then
9637
9638  # We can hardcode non-existant directories.
9639  if test "$hardcode_direct" != no &&
9640     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9641     # have to relink, otherwise we might link with an installed library
9642     # when we should be linking with a yet-to-be-installed one
9643     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9644     test "$hardcode_minus_L" != no; then
9645    # Linking always hardcodes the temporary library directory.
9646    hardcode_action=relink
9647  else
9648    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9649    hardcode_action=immediate
9650  fi
9651else
9652  # We cannot hardcode anything, or else we can only hardcode existing
9653  # directories.
9654  hardcode_action=unsupported
9655fi
9656echo "$as_me:$LINENO: result: $hardcode_action" >&5
9657echo "${ECHO_T}$hardcode_action" >&6
9658
9659if test "$hardcode_action" = relink; then
9660  # Fast installation is not supported
9661  enable_fast_install=no
9662elif test "$shlibpath_overrides_runpath" = yes ||
9663     test "$enable_shared" = no; then
9664  # Fast installation is not necessary
9665  enable_fast_install=needless
9666fi
9667
9668striplib=
9669old_striplib=
9670echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9671echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9672if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9673  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9674  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9675  echo "$as_me:$LINENO: result: yes" >&5
9676echo "${ECHO_T}yes" >&6
9677else
9678# FIXME - insert some real tests, host_os isn't really good enough
9679  case $host_os in
9680   darwin*)
9681       if test -n "$STRIP" ; then
9682         striplib="$STRIP -x"
9683         echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
9685       else
9686  echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
9688fi
9689       ;;
9690   *)
9691  echo "$as_me:$LINENO: result: no" >&5
9692echo "${ECHO_T}no" >&6
9693    ;;
9694  esac
9695fi
9696
9697if test "x$enable_dlopen" != xyes; then
9698  enable_dlopen=unknown
9699  enable_dlopen_self=unknown
9700  enable_dlopen_self_static=unknown
9701else
9702  lt_cv_dlopen=no
9703  lt_cv_dlopen_libs=
9704
9705  case $host_os in
9706  beos*)
9707    lt_cv_dlopen="load_add_on"
9708    lt_cv_dlopen_libs=
9709    lt_cv_dlopen_self=yes
9710    ;;
9711
9712  mingw* | pw32*)
9713    lt_cv_dlopen="LoadLibrary"
9714    lt_cv_dlopen_libs=
9715   ;;
9716
9717  cygwin*)
9718    lt_cv_dlopen="dlopen"
9719    lt_cv_dlopen_libs=
9720   ;;
9721
9722  darwin*)
9723  # if libdl is installed we need to link against it
9724    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9725echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9726if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9727  echo $ECHO_N "(cached) $ECHO_C" >&6
9728else
9729  ac_check_lib_save_LIBS=$LIBS
9730LIBS="-ldl  $LIBS"
9731cat >conftest.$ac_ext <<_ACEOF
9732/* confdefs.h.  */
9733_ACEOF
9734cat confdefs.h >>conftest.$ac_ext
9735cat >>conftest.$ac_ext <<_ACEOF
9736/* end confdefs.h.  */
9737
9738/* Override any gcc2 internal prototype to avoid an error.  */
9739#ifdef __cplusplus
9740extern "C"
9741#endif
9742/* We use char because int might match the return type of a gcc2
9743   builtin and then its argument prototype would still apply.  */
9744char dlopen ();
9745int
9746main ()
9747{
9748dlopen ();
9749  ;
9750  return 0;
9751}
9752_ACEOF
9753rm -f conftest.$ac_objext conftest$ac_exeext
9754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755  (eval $ac_link) 2>conftest.er1
9756  ac_status=$?
9757  grep -v '^ *+' conftest.er1 >conftest.err
9758  rm -f conftest.er1
9759  cat conftest.err >&5
9760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761  (exit $ac_status); } &&
9762         { ac_try='test -z "$ac_c_werror_flag"
9763                         || test ! -s conftest.err'
9764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765  (eval $ac_try) 2>&5
9766  ac_status=$?
9767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768  (exit $ac_status); }; } &&
9769         { ac_try='test -s conftest$ac_exeext'
9770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771  (eval $ac_try) 2>&5
9772  ac_status=$?
9773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774  (exit $ac_status); }; }; then
9775  ac_cv_lib_dl_dlopen=yes
9776else
9777  echo "$as_me: failed program was:" >&5
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
9780ac_cv_lib_dl_dlopen=no
9781fi
9782rm -f conftest.err conftest.$ac_objext \
9783      conftest$ac_exeext conftest.$ac_ext
9784LIBS=$ac_check_lib_save_LIBS
9785fi
9786echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9787echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9788if test $ac_cv_lib_dl_dlopen = yes; then
9789  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9790else
9791
9792    lt_cv_dlopen="dyld"
9793    lt_cv_dlopen_libs=
9794    lt_cv_dlopen_self=yes
9795
9796fi
9797
9798   ;;
9799
9800  *)
9801    echo "$as_me:$LINENO: checking for shl_load" >&5
9802echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9803if test "${ac_cv_func_shl_load+set}" = set; then
9804  echo $ECHO_N "(cached) $ECHO_C" >&6
9805else
9806  cat >conftest.$ac_ext <<_ACEOF
9807/* confdefs.h.  */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h.  */
9812/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9813   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9814#define shl_load innocuous_shl_load
9815
9816/* System header to define __stub macros and hopefully few prototypes,
9817    which can conflict with char shl_load (); below.
9818    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819    <limits.h> exists even on freestanding compilers.  */
9820
9821#ifdef __STDC__
9822# include <limits.h>
9823#else
9824# include <assert.h>
9825#endif
9826
9827#undef shl_load
9828
9829/* Override any gcc2 internal prototype to avoid an error.  */
9830#ifdef __cplusplus
9831extern "C"
9832{
9833#endif
9834/* We use char because int might match the return type of a gcc2
9835   builtin and then its argument prototype would still apply.  */
9836char shl_load ();
9837/* The GNU C library defines this for functions which it implements
9838    to always fail with ENOSYS.  Some functions are actually named
9839    something starting with __ and the normal name is an alias.  */
9840#if defined (__stub_shl_load) || defined (__stub___shl_load)
9841choke me
9842#else
9843char (*f) () = shl_load;
9844#endif
9845#ifdef __cplusplus
9846}
9847#endif
9848
9849int
9850main ()
9851{
9852return f != shl_load;
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859  (eval $ac_link) 2>conftest.er1
9860  ac_status=$?
9861  grep -v '^ *+' conftest.er1 >conftest.err
9862  rm -f conftest.er1
9863  cat conftest.err >&5
9864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865  (exit $ac_status); } &&
9866         { ac_try='test -z "$ac_c_werror_flag"
9867                         || test ! -s conftest.err'
9868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869  (eval $ac_try) 2>&5
9870  ac_status=$?
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); }; } &&
9873         { ac_try='test -s conftest$ac_exeext'
9874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875  (eval $ac_try) 2>&5
9876  ac_status=$?
9877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878  (exit $ac_status); }; }; then
9879  ac_cv_func_shl_load=yes
9880else
9881  echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884ac_cv_func_shl_load=no
9885fi
9886rm -f conftest.err conftest.$ac_objext \
9887      conftest$ac_exeext conftest.$ac_ext
9888fi
9889echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9890echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9891if test $ac_cv_func_shl_load = yes; then
9892  lt_cv_dlopen="shl_load"
9893else
9894  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9895echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9896if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9897  echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899  ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldld  $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h.  */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h.  */
9907
9908/* Override any gcc2 internal prototype to avoid an error.  */
9909#ifdef __cplusplus
9910extern "C"
9911#endif
9912/* We use char because int might match the return type of a gcc2
9913   builtin and then its argument prototype would still apply.  */
9914char shl_load ();
9915int
9916main ()
9917{
9918shl_load ();
9919  ;
9920  return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9925  (eval $ac_link) 2>conftest.er1
9926  ac_status=$?
9927  grep -v '^ *+' conftest.er1 >conftest.err
9928  rm -f conftest.er1
9929  cat conftest.err >&5
9930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931  (exit $ac_status); } &&
9932         { ac_try='test -z "$ac_c_werror_flag"
9933                         || test ! -s conftest.err'
9934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935  (eval $ac_try) 2>&5
9936  ac_status=$?
9937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938  (exit $ac_status); }; } &&
9939         { ac_try='test -s conftest$ac_exeext'
9940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941  (eval $ac_try) 2>&5
9942  ac_status=$?
9943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944  (exit $ac_status); }; }; then
9945  ac_cv_lib_dld_shl_load=yes
9946else
9947  echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950ac_cv_lib_dld_shl_load=no
9951fi
9952rm -f conftest.err conftest.$ac_objext \
9953      conftest$ac_exeext conftest.$ac_ext
9954LIBS=$ac_check_lib_save_LIBS
9955fi
9956echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9957echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9958if test $ac_cv_lib_dld_shl_load = yes; then
9959  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9960else
9961  echo "$as_me:$LINENO: checking for dlopen" >&5
9962echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9963if test "${ac_cv_func_dlopen+set}" = set; then
9964  echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966  cat >conftest.$ac_ext <<_ACEOF
9967/* confdefs.h.  */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h.  */
9972/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9973   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9974#define dlopen innocuous_dlopen
9975
9976/* System header to define __stub macros and hopefully few prototypes,
9977    which can conflict with char dlopen (); below.
9978    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979    <limits.h> exists even on freestanding compilers.  */
9980
9981#ifdef __STDC__
9982# include <limits.h>
9983#else
9984# include <assert.h>
9985#endif
9986
9987#undef dlopen
9988
9989/* Override any gcc2 internal prototype to avoid an error.  */
9990#ifdef __cplusplus
9991extern "C"
9992{
9993#endif
9994/* We use char because int might match the return type of a gcc2
9995   builtin and then its argument prototype would still apply.  */
9996char dlopen ();
9997/* The GNU C library defines this for functions which it implements
9998    to always fail with ENOSYS.  Some functions are actually named
9999    something starting with __ and the normal name is an alias.  */
10000#if defined (__stub_dlopen) || defined (__stub___dlopen)
10001choke me
10002#else
10003char (*f) () = dlopen;
10004#endif
10005#ifdef __cplusplus
10006}
10007#endif
10008
10009int
10010main ()
10011{
10012return f != dlopen;
10013  ;
10014  return 0;
10015}
10016_ACEOF
10017rm -f conftest.$ac_objext conftest$ac_exeext
10018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10019  (eval $ac_link) 2>conftest.er1
10020  ac_status=$?
10021  grep -v '^ *+' conftest.er1 >conftest.err
10022  rm -f conftest.er1
10023  cat conftest.err >&5
10024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025  (exit $ac_status); } &&
10026         { ac_try='test -z "$ac_c_werror_flag"
10027                         || test ! -s conftest.err'
10028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029  (eval $ac_try) 2>&5
10030  ac_status=$?
10031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032  (exit $ac_status); }; } &&
10033         { ac_try='test -s conftest$ac_exeext'
10034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035  (eval $ac_try) 2>&5
10036  ac_status=$?
10037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038  (exit $ac_status); }; }; then
10039  ac_cv_func_dlopen=yes
10040else
10041  echo "$as_me: failed program was:" >&5
10042sed 's/^/| /' conftest.$ac_ext >&5
10043
10044ac_cv_func_dlopen=no
10045fi
10046rm -f conftest.err conftest.$ac_objext \
10047      conftest$ac_exeext conftest.$ac_ext
10048fi
10049echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10050echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10051if test $ac_cv_func_dlopen = yes; then
10052  lt_cv_dlopen="dlopen"
10053else
10054  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10056if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057  echo $ECHO_N "(cached) $ECHO_C" >&6
10058else
10059  ac_check_lib_save_LIBS=$LIBS
10060LIBS="-ldl  $LIBS"
10061cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h.  */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h.  */
10067
10068/* Override any gcc2 internal prototype to avoid an error.  */
10069#ifdef __cplusplus
10070extern "C"
10071#endif
10072/* We use char because int might match the return type of a gcc2
10073   builtin and then its argument prototype would still apply.  */
10074char dlopen ();
10075int
10076main ()
10077{
10078dlopen ();
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext conftest$ac_exeext
10084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085  (eval $ac_link) 2>conftest.er1
10086  ac_status=$?
10087  grep -v '^ *+' conftest.er1 >conftest.err
10088  rm -f conftest.er1
10089  cat conftest.err >&5
10090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091  (exit $ac_status); } &&
10092         { ac_try='test -z "$ac_c_werror_flag"
10093                         || test ! -s conftest.err'
10094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095  (eval $ac_try) 2>&5
10096  ac_status=$?
10097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098  (exit $ac_status); }; } &&
10099         { ac_try='test -s conftest$ac_exeext'
10100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101  (eval $ac_try) 2>&5
10102  ac_status=$?
10103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104  (exit $ac_status); }; }; then
10105  ac_cv_lib_dl_dlopen=yes
10106else
10107  echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110ac_cv_lib_dl_dlopen=no
10111fi
10112rm -f conftest.err conftest.$ac_objext \
10113      conftest$ac_exeext conftest.$ac_ext
10114LIBS=$ac_check_lib_save_LIBS
10115fi
10116echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10117echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10118if test $ac_cv_lib_dl_dlopen = yes; then
10119  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10120else
10121  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10122echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10123if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10124  echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126  ac_check_lib_save_LIBS=$LIBS
10127LIBS="-lsvld  $LIBS"
10128cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h.  */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h.  */
10134
10135/* Override any gcc2 internal prototype to avoid an error.  */
10136#ifdef __cplusplus
10137extern "C"
10138#endif
10139/* We use char because int might match the return type of a gcc2
10140   builtin and then its argument prototype would still apply.  */
10141char dlopen ();
10142int
10143main ()
10144{
10145dlopen ();
10146  ;
10147  return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
10151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152  (eval $ac_link) 2>conftest.er1
10153  ac_status=$?
10154  grep -v '^ *+' conftest.er1 >conftest.err
10155  rm -f conftest.er1
10156  cat conftest.err >&5
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); } &&
10159         { ac_try='test -z "$ac_c_werror_flag"
10160                         || test ! -s conftest.err'
10161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162  (eval $ac_try) 2>&5
10163  ac_status=$?
10164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165  (exit $ac_status); }; } &&
10166         { ac_try='test -s conftest$ac_exeext'
10167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168  (eval $ac_try) 2>&5
10169  ac_status=$?
10170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); }; }; then
10172  ac_cv_lib_svld_dlopen=yes
10173else
10174  echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177ac_cv_lib_svld_dlopen=no
10178fi
10179rm -f conftest.err conftest.$ac_objext \
10180      conftest$ac_exeext conftest.$ac_ext
10181LIBS=$ac_check_lib_save_LIBS
10182fi
10183echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10184echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10185if test $ac_cv_lib_svld_dlopen = yes; then
10186  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10187else
10188  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10189echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10190if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10191  echo $ECHO_N "(cached) $ECHO_C" >&6
10192else
10193  ac_check_lib_save_LIBS=$LIBS
10194LIBS="-ldld  $LIBS"
10195cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h.  */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h.  */
10201
10202/* Override any gcc2 internal prototype to avoid an error.  */
10203#ifdef __cplusplus
10204extern "C"
10205#endif
10206/* We use char because int might match the return type of a gcc2
10207   builtin and then its argument prototype would still apply.  */
10208char dld_link ();
10209int
10210main ()
10211{
10212dld_link ();
10213  ;
10214  return 0;
10215}
10216_ACEOF
10217rm -f conftest.$ac_objext conftest$ac_exeext
10218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219  (eval $ac_link) 2>conftest.er1
10220  ac_status=$?
10221  grep -v '^ *+' conftest.er1 >conftest.err
10222  rm -f conftest.er1
10223  cat conftest.err >&5
10224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225  (exit $ac_status); } &&
10226         { ac_try='test -z "$ac_c_werror_flag"
10227                         || test ! -s conftest.err'
10228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229  (eval $ac_try) 2>&5
10230  ac_status=$?
10231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232  (exit $ac_status); }; } &&
10233         { ac_try='test -s conftest$ac_exeext'
10234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235  (eval $ac_try) 2>&5
10236  ac_status=$?
10237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238  (exit $ac_status); }; }; then
10239  ac_cv_lib_dld_dld_link=yes
10240else
10241  echo "$as_me: failed program was:" >&5
10242sed 's/^/| /' conftest.$ac_ext >&5
10243
10244ac_cv_lib_dld_dld_link=no
10245fi
10246rm -f conftest.err conftest.$ac_objext \
10247      conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS
10249fi
10250echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10251echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10252if test $ac_cv_lib_dld_dld_link = yes; then
10253  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10254fi
10255
10256
10257fi
10258
10259
10260fi
10261
10262
10263fi
10264
10265
10266fi
10267
10268
10269fi
10270
10271    ;;
10272  esac
10273
10274  if test "x$lt_cv_dlopen" != xno; then
10275    enable_dlopen=yes
10276  else
10277    enable_dlopen=no
10278  fi
10279
10280  case $lt_cv_dlopen in
10281  dlopen)
10282    save_CPPFLAGS="$CPPFLAGS"
10283    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10284
10285    save_LDFLAGS="$LDFLAGS"
10286    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10287
10288    save_LIBS="$LIBS"
10289    LIBS="$lt_cv_dlopen_libs $LIBS"
10290
10291    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10292echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10293if test "${lt_cv_dlopen_self+set}" = set; then
10294  echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296          if test "$cross_compiling" = yes; then :
10297  lt_cv_dlopen_self=cross
10298else
10299  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300  lt_status=$lt_dlunknown
10301  cat > conftest.$ac_ext <<EOF
10302#line 10302 "configure"
10303#include "confdefs.h"
10304
10305#if HAVE_DLFCN_H
10306#include <dlfcn.h>
10307#endif
10308
10309#include <stdio.h>
10310
10311#ifdef RTLD_GLOBAL
10312#  define LT_DLGLOBAL           RTLD_GLOBAL
10313#else
10314#  ifdef DL_GLOBAL
10315#    define LT_DLGLOBAL         DL_GLOBAL
10316#  else
10317#    define LT_DLGLOBAL         0
10318#  endif
10319#endif
10320
10321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322   find out it does not work in some platform. */
10323#ifndef LT_DLLAZY_OR_NOW
10324#  ifdef RTLD_LAZY
10325#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10326#  else
10327#    ifdef DL_LAZY
10328#      define LT_DLLAZY_OR_NOW          DL_LAZY
10329#    else
10330#      ifdef RTLD_NOW
10331#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10332#      else
10333#        ifdef DL_NOW
10334#          define LT_DLLAZY_OR_NOW      DL_NOW
10335#        else
10336#          define LT_DLLAZY_OR_NOW      0
10337#        endif
10338#      endif
10339#    endif
10340#  endif
10341#endif
10342
10343#ifdef __cplusplus
10344extern "C" void exit (int);
10345#endif
10346
10347void fnord() { int i=42;}
10348int main ()
10349{
10350  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351  int status = $lt_dlunknown;
10352
10353  if (self)
10354    {
10355      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10356      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357      /* dlclose (self); */
10358    }
10359  else
10360    puts (dlerror ());
10361
10362    exit (status);
10363}
10364EOF
10365  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366  (eval $ac_link) 2>&5
10367  ac_status=$?
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10370    (./conftest; exit; ) >&5 2>/dev/null
10371    lt_status=$?
10372    case x$lt_status in
10373      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10374      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10375      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10376    esac
10377  else :
10378    # compilation failed
10379    lt_cv_dlopen_self=no
10380  fi
10381fi
10382rm -fr conftest*
10383
10384
10385fi
10386echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10387echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10388
10389    if test "x$lt_cv_dlopen_self" = xyes; then
10390      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10391      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10392echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10393if test "${lt_cv_dlopen_self_static+set}" = set; then
10394  echo $ECHO_N "(cached) $ECHO_C" >&6
10395else
10396          if test "$cross_compiling" = yes; then :
10397  lt_cv_dlopen_self_static=cross
10398else
10399  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10400  lt_status=$lt_dlunknown
10401  cat > conftest.$ac_ext <<EOF
10402#line 10402 "configure"
10403#include "confdefs.h"
10404
10405#if HAVE_DLFCN_H
10406#include <dlfcn.h>
10407#endif
10408
10409#include <stdio.h>
10410
10411#ifdef RTLD_GLOBAL
10412#  define LT_DLGLOBAL           RTLD_GLOBAL
10413#else
10414#  ifdef DL_GLOBAL
10415#    define LT_DLGLOBAL         DL_GLOBAL
10416#  else
10417#    define LT_DLGLOBAL         0
10418#  endif
10419#endif
10420
10421/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10422   find out it does not work in some platform. */
10423#ifndef LT_DLLAZY_OR_NOW
10424#  ifdef RTLD_LAZY
10425#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10426#  else
10427#    ifdef DL_LAZY
10428#      define LT_DLLAZY_OR_NOW          DL_LAZY
10429#    else
10430#      ifdef RTLD_NOW
10431#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10432#      else
10433#        ifdef DL_NOW
10434#          define LT_DLLAZY_OR_NOW      DL_NOW
10435#        else
10436#          define LT_DLLAZY_OR_NOW      0
10437#        endif
10438#      endif
10439#    endif
10440#  endif
10441#endif
10442
10443#ifdef __cplusplus
10444extern "C" void exit (int);
10445#endif
10446
10447void fnord() { int i=42;}
10448int main ()
10449{
10450  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10451  int status = $lt_dlunknown;
10452
10453  if (self)
10454    {
10455      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10456      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10457      /* dlclose (self); */
10458    }
10459  else
10460    puts (dlerror ());
10461
10462    exit (status);
10463}
10464EOF
10465  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466  (eval $ac_link) 2>&5
10467  ac_status=$?
10468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10470    (./conftest; exit; ) >&5 2>/dev/null
10471    lt_status=$?
10472    case x$lt_status in
10473      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10474      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10475      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10476    esac
10477  else :
10478    # compilation failed
10479    lt_cv_dlopen_self_static=no
10480  fi
10481fi
10482rm -fr conftest*
10483
10484
10485fi
10486echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10487echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10488    fi
10489
10490    CPPFLAGS="$save_CPPFLAGS"
10491    LDFLAGS="$save_LDFLAGS"
10492    LIBS="$save_LIBS"
10493    ;;
10494  esac
10495
10496  case $lt_cv_dlopen_self in
10497  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10498  *) enable_dlopen_self=unknown ;;
10499  esac
10500
10501  case $lt_cv_dlopen_self_static in
10502  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10503  *) enable_dlopen_self_static=unknown ;;
10504  esac
10505fi
10506
10507
10508# Report which library types will actually be built
10509echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10510echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10511echo "$as_me:$LINENO: result: $can_build_shared" >&5
10512echo "${ECHO_T}$can_build_shared" >&6
10513
10514echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10515echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10516test "$can_build_shared" = "no" && enable_shared=no
10517
10518# On AIX, shared libraries and static libraries use the same namespace, and
10519# are all built from PIC.
10520case $host_os in
10521aix3*)
10522  test "$enable_shared" = yes && enable_static=no
10523  if test -n "$RANLIB"; then
10524    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10525    postinstall_cmds='$RANLIB $lib'
10526  fi
10527  ;;
10528
10529aix4* | aix5*)
10530  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10531    test "$enable_shared" = yes && enable_static=no
10532  fi
10533    ;;
10534esac
10535echo "$as_me:$LINENO: result: $enable_shared" >&5
10536echo "${ECHO_T}$enable_shared" >&6
10537
10538echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10539echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10540# Make sure either enable_shared or enable_static is yes.
10541test "$enable_shared" = yes || enable_static=yes
10542echo "$as_me:$LINENO: result: $enable_static" >&5
10543echo "${ECHO_T}$enable_static" >&6
10544
10545# The else clause should only fire when bootstrapping the
10546# libtool distribution, otherwise you forgot to ship ltmain.sh
10547# with your package, and you will get complaints that there are
10548# no rules to generate ltmain.sh.
10549if test -f "$ltmain"; then
10550  # See if we are running on zsh, and set the options which allow our commands through
10551  # without removal of \ escapes.
10552  if test -n "${ZSH_VERSION+set}" ; then
10553    setopt NO_GLOB_SUBST
10554  fi
10555  # Now quote all the things that may contain metacharacters while being
10556  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10557  # variables and quote the copies for generation of the libtool script.
10558  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10559    SED SHELL STRIP \
10560    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10561    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10562    deplibs_check_method reload_flag reload_cmds need_locks \
10563    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10564    lt_cv_sys_global_symbol_to_c_name_address \
10565    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10566    old_postinstall_cmds old_postuninstall_cmds \
10567    compiler \
10568    CC \
10569    LD \
10570    lt_prog_compiler_wl \
10571    lt_prog_compiler_pic \
10572    lt_prog_compiler_static \
10573    lt_prog_compiler_no_builtin_flag \
10574    export_dynamic_flag_spec \
10575    thread_safe_flag_spec \
10576    whole_archive_flag_spec \
10577    enable_shared_with_static_runtimes \
10578    old_archive_cmds \
10579    old_archive_from_new_cmds \
10580    predep_objects \
10581    postdep_objects \
10582    predeps \
10583    postdeps \
10584    compiler_lib_search_path \
10585    archive_cmds \
10586    archive_expsym_cmds \
10587    postinstall_cmds \
10588    postuninstall_cmds \
10589    old_archive_from_expsyms_cmds \
10590    allow_undefined_flag \
10591    no_undefined_flag \
10592    export_symbols_cmds \
10593    hardcode_libdir_flag_spec \
10594    hardcode_libdir_flag_spec_ld \
10595    hardcode_libdir_separator \
10596    hardcode_automatic \
10597    module_cmds \
10598    module_expsym_cmds \
10599    lt_cv_prog_compiler_c_o \
10600    exclude_expsyms \
10601    include_expsyms; do
10602
10603    case $var in
10604    old_archive_cmds | \
10605    old_archive_from_new_cmds | \
10606    archive_cmds | \
10607    archive_expsym_cmds | \
10608    module_cmds | \
10609    module_expsym_cmds | \
10610    old_archive_from_expsyms_cmds | \
10611    export_symbols_cmds | \
10612    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10613    postinstall_cmds | postuninstall_cmds | \
10614    old_postinstall_cmds | old_postuninstall_cmds | \
10615    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10616      # Double-quote double-evaled strings.
10617      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10618      ;;
10619    *)
10620      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10621      ;;
10622    esac
10623  done
10624
10625  case $lt_echo in
10626  *'\$0 --fallback-echo"')
10627    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10628    ;;
10629  esac
10630
10631cfgfile="${ofile}T"
10632  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10633  $rm -f "$cfgfile"
10634  { echo "$as_me:$LINENO: creating $ofile" >&5
10635echo "$as_me: creating $ofile" >&6;}
10636
10637  cat <<__EOF__ >> "$cfgfile"
10638#! $SHELL
10639
10640# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10641# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10642# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10643#
10644# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10645# Free Software Foundation, Inc.
10646#
10647# This file is part of GNU Libtool:
10648# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10649#
10650# This program is free software; you can redistribute it and/or modify
10651# it under the terms of the GNU General Public License as published by
10652# the Free Software Foundation; either version 2 of the License, or
10653# (at your option) any later version.
10654#
10655# This program is distributed in the hope that it will be useful, but
10656# WITHOUT ANY WARRANTY; without even the implied warranty of
10657# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10658# General Public License for more details.
10659#
10660# You should have received a copy of the GNU General Public License
10661# along with this program; if not, write to the Free Software
10662# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10663#
10664# As a special exception to the GNU General Public License, if you
10665# distribute this file as part of a program that contains a
10666# configuration script generated by Autoconf, you may include it under
10667# the same distribution terms that you use for the rest of that program.
10668
10669# A sed program that does not truncate output.
10670SED=$lt_SED
10671
10672# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10673Xsed="$SED -e 1s/^X//"
10674
10675# The HP-UX ksh and POSIX shell print the target directory to stdout
10676# if CDPATH is set.
10677(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10678
10679# The names of the tagged configurations supported by this script.
10680available_tags=
10681
10682# ### BEGIN LIBTOOL CONFIG
10683
10684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10685
10686# Shell to use when invoking shell scripts.
10687SHELL=$lt_SHELL
10688
10689# Whether or not to build shared libraries.
10690build_libtool_libs=$enable_shared
10691
10692# Whether or not to build static libraries.
10693build_old_libs=$enable_static
10694
10695# Whether or not to add -lc for building shared libraries.
10696build_libtool_need_lc=$archive_cmds_need_lc
10697
10698# Whether or not to disallow shared libs when runtime libs are static
10699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10700
10701# Whether or not to optimize for fast installation.
10702fast_install=$enable_fast_install
10703
10704# The host system.
10705host_alias=$host_alias
10706host=$host
10707host_os=$host_os
10708
10709# The build system.
10710build_alias=$build_alias
10711build=$build
10712build_os=$build_os
10713
10714# An echo program that does not interpret backslashes.
10715echo=$lt_echo
10716
10717# The archiver.
10718AR=$lt_AR
10719AR_FLAGS=$lt_AR_FLAGS
10720
10721# A C compiler.
10722LTCC=$lt_LTCC
10723
10724# LTCC compiler flags.
10725LTCFLAGS=$lt_LTCFLAGS
10726
10727# A language-specific compiler.
10728CC=$lt_compiler
10729
10730# Is the compiler the GNU C compiler?
10731with_gcc=$GCC
10732
10733# An ERE matcher.
10734EGREP=$lt_EGREP
10735
10736# The linker used to build libraries.
10737LD=$lt_LD
10738
10739# Whether we need hard or soft links.
10740LN_S=$lt_LN_S
10741
10742# A BSD-compatible nm program.
10743NM=$lt_NM
10744
10745# A symbol stripping program
10746STRIP=$lt_STRIP
10747
10748# Used to examine libraries when file_magic_cmd begins "file"
10749MAGIC_CMD=$MAGIC_CMD
10750
10751# Used on cygwin: DLL creation program.
10752DLLTOOL="$DLLTOOL"
10753
10754# Used on cygwin: object dumper.
10755OBJDUMP="$OBJDUMP"
10756
10757# Used on cygwin: assembler.
10758AS="$AS"
10759
10760# The name of the directory that contains temporary libtool files.
10761objdir=$objdir
10762
10763# How to create reloadable object files.
10764reload_flag=$lt_reload_flag
10765reload_cmds=$lt_reload_cmds
10766
10767# How to pass a linker flag through the compiler.
10768wl=$lt_lt_prog_compiler_wl
10769
10770# Object file suffix (normally "o").
10771objext="$ac_objext"
10772
10773# Old archive suffix (normally "a").
10774libext="$libext"
10775
10776# Shared library suffix (normally ".so").
10777shrext_cmds='$shrext_cmds'
10778
10779# Executable file suffix (normally "").
10780exeext="$exeext"
10781
10782# Additional compiler flags for building library objects.
10783pic_flag=$lt_lt_prog_compiler_pic
10784pic_mode=$pic_mode
10785
10786# What is the maximum length of a command?
10787max_cmd_len=$lt_cv_sys_max_cmd_len
10788
10789# Does compiler simultaneously support -c and -o opti