source: ThirdParty/ASL/trunk/configure @ 2051

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

add URL into .pc files; rerun autotools

  • Property svn:executable set to *
File size: 707.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyASL trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A ASLMAKEFLAGS MSVC_COMPILE_TRUE MSVC_COMPILE_FALSE ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL trunk to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL trunk:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066  --enable-debug-asl compile this project (ASL) with debug options
1067  --enable-doscompile     Under Cygwin, compile so that executables run under
1068                          DOS. Set to mingw to use gcc/g++/ld with
1069                          -mno-cygwin. Set to msvc to use cl/link (or
1070                          icl/link). Default when mentioned: mingw. Default
1071                          when not mentioned: disabled.
1072  --enable-static[=PKGS]
1073                          build static libraries [default=no]
1074  --disable-dependency-tracking  speeds up one-time build
1075  --enable-dependency-tracking   do not reject slow dependency extractors
1076  --enable-maintainer-mode  enable make rules and dependencies not useful
1077                          (and sometimes confusing) to the casual installer
1078  --enable-shared[=PKGS]
1079                          build shared libraries [default=yes]
1080  --enable-fast-install[=PKGS]
1081                          optimize for fast installation [default=yes]
1082  --disable-libtool-lock  avoid locking (might break parallel builds)
1083  --enable-pkg-config     use pkg-config if available (default is yes)
1084
1085Optional Packages:
1086  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1087  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1088  --with-asl-verbosity specify the debug verbosity level for project ASL
1089  --with-asl-checklevel specify the sanity check level for project ASL
1090  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1091  --with-pic              try to use only PIC/non-PIC objects [default=use
1092                          both]
1093  --with-tags[=TAGS]
1094                          include additional configurations [automatic]
1095  --with-coin-instdir     prefix of installation directory for precompiled
1096                          COIN packages
1097
1098Some influential environment variables:
1099  CDEFS       Additional -D flags to be used when compiling C code.
1100  ADD_CFLAGS  Additional C compiler options
1101  DBG_CFLAGS  Debug C compiler options
1102  OPT_CFLAGS  Optimize C compiler options
1103  CC          C compiler command
1104  CFLAGS      C compiler flags
1105  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106              nonstandard directory <lib dir>
1107  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108              headers in a nonstandard directory <include dir>
1109  MPICC       C MPI Compiler
1110  CPP         C preprocessor
1111  CXX         C++ compiler command
1112  CXXFLAGS    C++ compiler flags
1113  CXXCPP      C++ preprocessor
1114  F77         Fortran 77 compiler command
1115  FFLAGS      Fortran 77 compiler flags
1116  PKG_CONFIG  path to pkg-config utility
1117  ASLMAKEFLAGS
1118              Compilation flags necessary for compiling the AMPL solver
1119              library
1120
1121Use these variables to override the choices made by `configure' or to help
1122it to find libraries and programs with nonstandard names/locations.
1123
1124Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1125_ACEOF
1126fi
1127
1128if test "$ac_init_help" = "recursive"; then
1129  # If there are subdirs, report their specific --help.
1130  ac_popdir=`pwd`
1131  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1132    test -d $ac_dir || continue
1133    ac_builddir=.
1134
1135if test "$ac_dir" != .; then
1136  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1137  # A "../" for each directory in $ac_dir_suffix.
1138  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1139else
1140  ac_dir_suffix= ac_top_builddir=
1141fi
1142
1143case $srcdir in
1144  .)  # No --srcdir option.  We are building in place.
1145    ac_srcdir=.
1146    if test -z "$ac_top_builddir"; then
1147       ac_top_srcdir=.
1148    else
1149       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1150    fi ;;
1151  [\\/]* | ?:[\\/]* )  # Absolute path.
1152    ac_srcdir=$srcdir$ac_dir_suffix;
1153    ac_top_srcdir=$srcdir ;;
1154  *) # Relative path.
1155    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1156    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1157esac
1158
1159# Do not use `cd foo && pwd` to compute absolute paths, because
1160# the directories may not exist.
1161case `pwd` in
1162.) ac_abs_builddir="$ac_dir";;
1163*)
1164  case "$ac_dir" in
1165  .) ac_abs_builddir=`pwd`;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1167  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_builddir=${ac_top_builddir}.;;
1172*)
1173  case ${ac_top_builddir}. in
1174  .) ac_abs_top_builddir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1176  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1177  esac;;
1178esac
1179case $ac_abs_builddir in
1180.) ac_abs_srcdir=$ac_srcdir;;
1181*)
1182  case $ac_srcdir in
1183  .) ac_abs_srcdir=$ac_abs_builddir;;
1184  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1185  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1186  esac;;
1187esac
1188case $ac_abs_builddir in
1189.) ac_abs_top_srcdir=$ac_top_srcdir;;
1190*)
1191  case $ac_top_srcdir in
1192  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1193  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1194  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1195  esac;;
1196esac
1197
1198    cd $ac_dir
1199    # Check for guested configure; otherwise get Cygnus style configure.
1200    if test -f $ac_srcdir/configure.gnu; then
1201      echo
1202      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1203    elif test -f $ac_srcdir/configure; then
1204      echo
1205      $SHELL $ac_srcdir/configure  --help=recursive
1206    elif test -f $ac_srcdir/configure.ac ||
1207           test -f $ac_srcdir/configure.in; then
1208      echo
1209      $ac_configure --help
1210    else
1211      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212    fi
1213    cd $ac_popdir
1214  done
1215fi
1216
1217test -n "$ac_init_help" && exit 0
1218if $ac_init_version; then
1219  cat <<\_ACEOF
1220ThirdPartyASL configure trunk
1221generated by GNU Autoconf 2.59
1222
1223Copyright (C) 2003 Free Software Foundation, Inc.
1224This configure script is free software; the Free Software Foundation
1225gives unlimited permission to copy, distribute and modify it.
1226
1227
1228Copyright 2006, 2007, 2009 International Business Machines and others.
1229All Rights Reserved.
1230This file is part of the open source package Coin which is distributed
1231under the Eclipse Public License.
1232_ACEOF
1233  exit 0
1234fi
1235exec 5>config.log
1236cat >&5 <<_ACEOF
1237This file contains any messages produced by compilers while
1238running configure, to aid debugging if configure makes a mistake.
1239
1240It was created by ThirdPartyASL $as_me trunk, which was
1241generated by GNU Autoconf 2.59.  Invocation command line was
1242
1243  $ $0 $@
1244
1245_ACEOF
1246{
1247cat <<_ASUNAME
1248## --------- ##
1249## Platform. ##
1250## --------- ##
1251
1252hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1253uname -m = `(uname -m) 2>/dev/null || echo unknown`
1254uname -r = `(uname -r) 2>/dev/null || echo unknown`
1255uname -s = `(uname -s) 2>/dev/null || echo unknown`
1256uname -v = `(uname -v) 2>/dev/null || echo unknown`
1257
1258/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1259/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1260
1261/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1262/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1263/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1264hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1265/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1266/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1267/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1268
1269_ASUNAME
1270
1271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1272for as_dir in $PATH
1273do
1274  IFS=$as_save_IFS
1275  test -z "$as_dir" && as_dir=.
1276  echo "PATH: $as_dir"
1277done
1278
1279} >&5
1280
1281cat >&5 <<_ACEOF
1282
1283
1284## ----------- ##
1285## Core tests. ##
1286## ----------- ##
1287
1288_ACEOF
1289
1290
1291# Keep a trace of the command line.
1292# Strip out --no-create and --no-recursion so they do not pile up.
1293# Strip out --silent because we don't want to record it for future runs.
1294# Also quote any args containing shell meta-characters.
1295# Make two passes to allow for proper duplicate-argument suppression.
1296ac_configure_args=
1297ac_configure_args0=
1298ac_configure_args1=
1299ac_sep=
1300ac_must_keep_next=false
1301for ac_pass in 1 2
1302do
1303  for ac_arg
1304  do
1305    case $ac_arg in
1306    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1307    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1308    | -silent | --silent | --silen | --sile | --sil)
1309      continue ;;
1310    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1312    esac
1313    case $ac_pass in
1314    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1315    2)
1316      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1317      if test $ac_must_keep_next = true; then
1318        ac_must_keep_next=false # Got value, back to normal.
1319      else
1320        case $ac_arg in
1321          *=* | --config-cache | -C | -disable-* | --disable-* \
1322          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1323          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1324          | -with-* | --with-* | -without-* | --without-* | --x)
1325            case "$ac_configure_args0 " in
1326              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1327            esac
1328            ;;
1329          -* ) ac_must_keep_next=true ;;
1330        esac
1331      fi
1332      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1333      # Get rid of the leading space.
1334      ac_sep=" "
1335      ;;
1336    esac
1337  done
1338done
1339$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1340$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1341
1342# When interrupted or exit'd, cleanup temporary files, and complete
1343# config.log.  We remove comments because anyway the quotes in there
1344# would cause problems or look ugly.
1345# WARNING: Be sure not to use single quotes in there, as some shells,
1346# such as our DU 5.0 friend, will then `close' the trap.
1347trap 'exit_status=$?
1348  # Save into config.log some information that might help in debugging.
1349  {
1350    echo
1351
1352    cat <<\_ASBOX
1353## ---------------- ##
1354## Cache variables. ##
1355## ---------------- ##
1356_ASBOX
1357    echo
1358    # The following way of writing the cache mishandles newlines in values,
1359{
1360  (set) 2>&1 |
1361    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1362    *ac_space=\ *)
1363      sed -n \
1364        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1365          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1366      ;;
1367    *)
1368      sed -n \
1369        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1370      ;;
1371    esac;
1372}
1373    echo
1374
1375    cat <<\_ASBOX
1376## ----------------- ##
1377## Output variables. ##
1378## ----------------- ##
1379_ASBOX
1380    echo
1381    for ac_var in $ac_subst_vars
1382    do
1383      eval ac_val=$`echo $ac_var`
1384      echo "$ac_var='"'"'$ac_val'"'"'"
1385    done | sort
1386    echo
1387
1388    if test -n "$ac_subst_files"; then
1389      cat <<\_ASBOX
1390## ------------- ##
1391## Output files. ##
1392## ------------- ##
1393_ASBOX
1394      echo
1395      for ac_var in $ac_subst_files
1396      do
1397        eval ac_val=$`echo $ac_var`
1398        echo "$ac_var='"'"'$ac_val'"'"'"
1399      done | sort
1400      echo
1401    fi
1402
1403    if test -s confdefs.h; then
1404      cat <<\_ASBOX
1405## ----------- ##
1406## confdefs.h. ##
1407## ----------- ##
1408_ASBOX
1409      echo
1410      sed "/^$/d" confdefs.h | sort
1411      echo
1412    fi
1413    test "$ac_signal" != 0 &&
1414      echo "$as_me: caught signal $ac_signal"
1415    echo "$as_me: exit $exit_status"
1416  } >&5
1417  rm -f core *.core &&
1418  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1419    exit $exit_status
1420     ' 0
1421for ac_signal in 1 2 13 15; do
1422  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1423done
1424ac_signal=0
1425
1426# confdefs.h avoids OS command line length limits that DEFS can exceed.
1427rm -rf conftest* confdefs.h
1428# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1429echo >confdefs.h
1430
1431# Predefined preprocessor variables.
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_NAME "$PACKAGE_NAME"
1435_ACEOF
1436
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_VERSION "$PACKAGE_VERSION"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_STRING "$PACKAGE_STRING"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1455_ACEOF
1456
1457
1458# Let the site file select an alternate cache file if it wants to.
1459# Prefer explicitly selected file to automatically selected ones.
1460if test -z "$CONFIG_SITE"; then
1461  if test "x$prefix" != xNONE; then
1462    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1463  else
1464    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1465  fi
1466fi
1467for ac_site_file in $CONFIG_SITE; do
1468  if test -r "$ac_site_file"; then
1469    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1470echo "$as_me: loading site script $ac_site_file" >&6;}
1471    sed 's/^/| /' "$ac_site_file" >&5
1472    . "$ac_site_file"
1473  fi
1474done
1475
1476if test -r "$cache_file"; then
1477  # Some versions of bash will fail to source /dev/null (special
1478  # files actually), so we avoid doing that.
1479  if test -f "$cache_file"; then
1480    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1481echo "$as_me: loading cache $cache_file" >&6;}
1482    case $cache_file in
1483      [\\/]* | ?:[\\/]* ) . $cache_file;;
1484      *)                      . ./$cache_file;;
1485    esac
1486  fi
1487else
1488  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1489echo "$as_me: creating cache $cache_file" >&6;}
1490  >$cache_file
1491fi
1492
1493# Check that the precious variables saved in the cache have kept the same
1494# value.
1495ac_cache_corrupted=false
1496for ac_var in `(set) 2>&1 |
1497               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1498  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1499  eval ac_new_set=\$ac_env_${ac_var}_set
1500  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1501  eval ac_new_val="\$ac_env_${ac_var}_value"
1502  case $ac_old_set,$ac_new_set in
1503    set,)
1504      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1505echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1506      ac_cache_corrupted=: ;;
1507    ,set)
1508      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1509echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1510      ac_cache_corrupted=: ;;
1511    ,);;
1512    *)
1513      if test "x$ac_old_val" != "x$ac_new_val"; then
1514        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1515echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1516        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1517echo "$as_me:   former value:  $ac_old_val" >&2;}
1518        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1519echo "$as_me:   current value: $ac_new_val" >&2;}
1520        ac_cache_corrupted=:
1521      fi;;
1522  esac
1523  # Pass precious variables to config.status.
1524  if test "$ac_new_set" = set; then
1525    case $ac_new_val in
1526    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1527      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1528    *) ac_arg=$ac_var=$ac_new_val ;;
1529    esac
1530    case " $ac_configure_args " in
1531      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1532      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1533    esac
1534  fi
1535done
1536if $ac_cache_corrupted; then
1537  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1538echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1539  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1540echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1541   { (exit 1); exit 1; }; }
1542fi
1543
1544ac_ext=c
1545ac_cpp='$CPP $CPPFLAGS'
1546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1548ac_compiler_gnu=$ac_cv_c_compiler_gnu
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579# List one file in the package so that the configure script can test
1580# whether the package is actually there
1581
1582
1583# Where should everything be installed by default?  Here, we want it
1584# to be installed directly in 'bin', 'lib', 'include' subdirectories
1585# of the directory where configure is run.  The default would be
1586# /usr/local.
1587
1588
1589#############################################################################
1590#                         Standard build tool stuff                         #
1591#############################################################################
1592
1593# Get the system type
1594ac_aux_dir=
1595for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1596  if test -f $ac_dir/install-sh; then
1597    ac_aux_dir=$ac_dir
1598    ac_install_sh="$ac_aux_dir/install-sh -c"
1599    break
1600  elif test -f $ac_dir/install.sh; then
1601    ac_aux_dir=$ac_dir
1602    ac_install_sh="$ac_aux_dir/install.sh -c"
1603    break
1604  elif test -f $ac_dir/shtool; then
1605    ac_aux_dir=$ac_dir
1606    ac_install_sh="$ac_aux_dir/shtool install -c"
1607    break
1608  fi
1609done
1610if test -z "$ac_aux_dir"; then
1611  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1612echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1613   { (exit 1); exit 1; }; }
1614fi
1615ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1616ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1617ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623   { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628  echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630  ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632  ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636   { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640   { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651
1652# A bit of initial setup.
1653
1654# As backup, we make sure we don't loose an FLIBS if it has been set
1655# by the user
1656save_FLIBS="$FLIBS"
1657
1658# A useful makefile conditional that is always false
1659
1660
1661if false; then
1662  ALWAYS_FALSE_TRUE=
1663  ALWAYS_FALSE_FALSE='#'
1664else
1665  ALWAYS_FALSE_TRUE='#'
1666  ALWAYS_FALSE_FALSE=
1667fi
1668
1669
1670# We set the following variable so that we know later in AC_COIN_FINALIZE
1671# that we are in a project main directory
1672coin_projectdir=yes
1673
1674# Set the project's version number
1675if test "xASL" != x; then
1676
1677cat >>confdefs.h <<_ACEOF
1678#define ASL_VERSION "$PACKAGE_VERSION"
1679_ACEOF
1680
1681fi
1682
1683# Set the project's SVN revision number. The complicated sed expression
1684# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1685# as a single number.
1686# Extract the first word of "svnversion", so it can be a program name with args.
1687set dummy svnversion; ac_word=$2
1688echo "$as_me:$LINENO: checking for $ac_word" >&5
1689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690if test "${ac_cv_prog_have_svnversion+set}" = set; then
1691  echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693  if test -n "$have_svnversion"; then
1694  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1695else
1696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697for as_dir in $PATH
1698do
1699  IFS=$as_save_IFS
1700  test -z "$as_dir" && as_dir=.
1701  for ac_exec_ext in '' $ac_executable_extensions; do
1702  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703    ac_cv_prog_have_svnversion="yes"
1704    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705    break 2
1706  fi
1707done
1708done
1709
1710  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1711fi
1712fi
1713have_svnversion=$ac_cv_prog_have_svnversion
1714if test -n "$have_svnversion"; then
1715  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1716echo "${ECHO_T}$have_svnversion" >&6
1717else
1718  echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
1720fi
1721
1722if test "x$have_svnversion" = xyes && test "xASL" != x; then
1723
1724  svn_rev_tmp=`cd $srcdir/$coin_has_asl ; svnversion`
1725  ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1726  if test $ASL_SVN_REV != exported; then
1727
1728cat >>confdefs.h <<_ACEOF
1729#define ASL_SVN_REV $ASL_SVN_REV
1730_ACEOF
1731
1732  fi
1733fi
1734
1735# Capture libtool library version, if given.
1736
1737
1738
1739# Turn off warnings and pedantic mode since they could make trouble on some
1740# platforms, and we can't fix issues in third-party code.
1741coin_skip_warn_cflags=yes
1742
1743# Check if user wants to produce debugging code
1744
1745echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1746echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1747
1748# Check whether --enable-debug or --disable-debug was given.
1749if test "${enable_debug+set}" = set; then
1750  enableval="$enable_debug"
1751  case "${enableval}" in
1752   yes) coin_debug_compile=true
1753        if test "${enable_shared+set}" = set; then :; else
1754          enable_shared=no
1755        fi
1756        ;;
1757   no)  coin_debug_compile=false
1758        ;;
1759   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1760echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1761   { (exit 1); exit 1; }; }
1762        ;;
1763esac
1764else
1765  coin_debug_compile=false
1766fi;
1767
1768# Check whether --enable-debug-asl or --disable-debug-asl was given.
1769if test "${enable_debug_asl+set}" = set; then
1770  enableval="$enable_debug_asl"
1771  case "${enableval}" in
1772    yes) coin_debug_compile=true
1773         enable_shared=no
1774         ;;
1775    no)  coin_debug_compile=false
1776         ;;
1777    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1778echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1779   { (exit 1); exit 1; }; }
1780         ;;
1781 esac
1782else
1783  :
1784fi;
1785
1786 # m4_ifvaln([ASL],
1787
1788if test $coin_debug_compile = true; then
1789  echo "$as_me:$LINENO: result: yes" >&5
1790echo "${ECHO_T}yes" >&6
1791else
1792  echo "$as_me:$LINENO: result: no" >&5
1793echo "${ECHO_T}no" >&6
1794fi
1795
1796
1797# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1798if test "${with_asl_verbosity+set}" = set; then
1799  withval="$with_asl_verbosity"
1800  if test "$withval" = yes; then
1801                withval=1
1802              fi
1803              coin_asl_verbosity=$withval
1804else
1805  coin_asl_verbosity=0
1806fi;
1807
1808cat >>confdefs.h <<_ACEOF
1809#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1810_ACEOF
1811
1812
1813
1814# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1815if test "${with_asl_checklevel+set}" = set; then
1816  withval="$with_asl_checklevel"
1817  if test "$withval" = yes; then
1818                withval=1
1819              fi
1820              coin_asl_checklevel=$withval
1821else
1822  coin_asl_checklevel=0
1823fi;
1824
1825cat >>confdefs.h <<_ACEOF
1826#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1827_ACEOF
1828
1829
1830# We use the following variable to have a string with the upper case
1831# version of the project name
1832COIN_PRJCT=ASL
1833
1834
1835 # m4_ifvaln([ASL],
1836
1837
1838
1839# We need egrep and ln -s somewhere
1840echo "$as_me:$LINENO: checking for egrep" >&5
1841echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1842if test "${ac_cv_prog_egrep+set}" = set; then
1843  echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1846    then ac_cv_prog_egrep='grep -E'
1847    else ac_cv_prog_egrep='egrep'
1848    fi
1849fi
1850echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1851echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1852 EGREP=$ac_cv_prog_egrep
1853
1854
1855echo "$as_me:$LINENO: checking whether ln -s works" >&5
1856echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1857LN_S=$as_ln_s
1858if test "$LN_S" = "ln -s"; then
1859  echo "$as_me:$LINENO: result: yes" >&5
1860echo "${ECHO_T}yes" >&6
1861else
1862  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1863echo "${ECHO_T}no, using $LN_S" >&6
1864fi
1865
1866
1867# Get the name of the C compiler and compiler flags
1868case $build in
1869  *-mingw*)
1870    if test "${LD+set}" = set; then :; else
1871      LD=link
1872    fi
1873    ;;
1874 esac
1875 case $enable_doscompile in
1876   msvc)
1877     if test "x${LD+set}" = xset; then :; else
1878       LD=link
1879     fi
1880     ;;
1881 esac
1882
1883
1884 # Check whether --enable-doscompile or --disable-doscompile was given.
1885if test "${enable_doscompile+set}" = set; then
1886  enableval="$enable_doscompile"
1887  if test "$enable_doscompile" != no; then
1888     case $build in
1889       *-cygwin* | *-mingw*) ;;
1890       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1891echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1892   { (exit 1); exit 1; }; } ;;
1893     esac
1894   fi
1895else
1896  enable_doscompile=no
1897fi;
1898 case "$enable_doscompile" in
1899   mingw)
1900     case $build in
1901       *-mingw*) enable_doscompile=no ;;
1902     esac
1903     ;;
1904   msvc|no) ;;
1905   yes) enable_doscompile=mingw ;;
1906   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1907                    Try configure --help=recursive." >&5
1908echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1909                    Try configure --help=recursive." >&2;}
1910   { (exit 1); exit 1; }; }
1911      ;;
1912  esac
1913  if test "$enable_doscompile" != no ; then
1914    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1915echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1916  fi
1917
1918
1919
1920
1921ac_ext=c
1922ac_cpp='$CPP $CPPFLAGS'
1923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926
1927
1928# For consistency, we set the C compiler to the same value of the C++
1929# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1930if test x"$CXX" != x; then
1931  case "$CXX" in
1932    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1933      if test x"$CC" = x; then
1934        CC="$CXX"
1935        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1936echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1937      fi
1938      ;;
1939  esac
1940fi
1941
1942# add automake conditional so we can recognize cl compiler in makefile
1943coin_cc_is_cl=false
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1947      coin_cc_is_cl=true
1948      ;;
1949  esac
1950fi
1951
1952
1953if test $coin_cc_is_cl = true; then
1954  COIN_CC_IS_CL_TRUE=
1955  COIN_CC_IS_CL_FALSE='#'
1956else
1957  COIN_CC_IS_CL_TRUE='#'
1958  COIN_CC_IS_CL_FALSE=
1959fi
1960
1961
1962
1963
1964
1965
1966
1967coin_has_cc=yes
1968
1969save_cflags="$CFLAGS"
1970
1971# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1972# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1973# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1974# compiler. In this case, put cc after gcc.
1975
1976case $build in
1977  *-cygwin* | *-mingw*)
1978             if test "$enable_doscompile" = msvc ; then
1979               comps="icl cl"
1980             else
1981               comps="gcc cl"
1982             fi ;;
1983  *-*-solaris*)
1984             # Extract the first word of "cc", so it can be a program name with args.
1985set dummy cc; ac_word=$2
1986echo "$as_me:$LINENO: checking for $ac_word" >&5
1987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1989  echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991  if test -n "$sol_cc_compiler"; then
1992  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1993else
1994  ac_prog_rejected=no
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998  IFS=$as_save_IFS
1999  test -z "$as_dir" && as_dir=.
2000  for ac_exec_ext in '' $ac_executable_extensions; do
2001  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2003       ac_prog_rejected=yes
2004       continue
2005     fi
2006    ac_cv_prog_sol_cc_compiler="cc"
2007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008    break 2
2009  fi
2010done
2011done
2012
2013if test $ac_prog_rejected = yes; then
2014  # We found a bogon in the path, so make sure we never use it.
2015  set dummy $ac_cv_prog_sol_cc_compiler
2016  shift
2017  if test $# != 0; then
2018    # We chose a different compiler from the bogus one.
2019    # However, it has the same basename, so the bogon will be chosen
2020    # first if we set sol_cc_compiler to just the basename; use the full file name.
2021    shift
2022    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2023  fi
2024fi
2025fi
2026fi
2027sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2028if test -n "$sol_cc_compiler"; then
2029  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2030echo "${ECHO_T}$sol_cc_compiler" >&6
2031else
2032  echo "$as_me:$LINENO: result: no" >&5
2033echo "${ECHO_T}no" >&6
2034fi
2035
2036             if test "$sol_cc_compiler" = "cc" ; then
2037               comps="cc xlc gcc pgcc icc"
2038             else
2039               comps="xlc gcc pgcc icc cc"
2040             fi
2041             ;;
2042  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2043  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2044  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2045esac
2046
2047# We delete the cached value, since the test might not have been
2048# performed with our choice of compilers earlier
2049$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2050# AC_MSG_NOTICE([C compiler candidates: $comps])
2051ac_ext=c
2052ac_cpp='$CPP $CPPFLAGS'
2053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055ac_compiler_gnu=$ac_cv_c_compiler_gnu
2056if test -n "$ac_tool_prefix"; then
2057  for ac_prog in $comps
2058  do
2059    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2061echo "$as_me:$LINENO: checking for $ac_word" >&5
2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2063if test "${ac_cv_prog_CC+set}" = set; then
2064  echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066  if test -n "$CC"; then
2067  ac_cv_prog_CC="$CC" # Let the user override the test.
2068else
2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2070for as_dir in $PATH
2071do
2072  IFS=$as_save_IFS
2073  test -z "$as_dir" && as_dir=.
2074  for ac_exec_ext in '' $ac_executable_extensions; do
2075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078    break 2
2079  fi
2080done
2081done
2082
2083fi
2084fi
2085CC=$ac_cv_prog_CC
2086if test -n "$CC"; then
2087  echo "$as_me:$LINENO: result: $CC" >&5
2088echo "${ECHO_T}$CC" >&6
2089else
2090  echo "$as_me:$LINENO: result: no" >&5
2091echo "${ECHO_T}no" >&6
2092fi
2093
2094    test -n "$CC" && break
2095  done
2096fi
2097if test -z "$CC"; then
2098  ac_ct_CC=$CC
2099  for ac_prog in $comps
2100do
2101  # Extract the first word of "$ac_prog", so it can be a program name with args.
2102set dummy $ac_prog; ac_word=$2
2103echo "$as_me:$LINENO: checking for $ac_word" >&5
2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2105if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2106  echo $ECHO_N "(cached) $ECHO_C" >&6
2107else
2108  if test -n "$ac_ct_CC"; then
2109  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110else
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114  IFS=$as_save_IFS
2115  test -z "$as_dir" && as_dir=.
2116  for ac_exec_ext in '' $ac_executable_extensions; do
2117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2118    ac_cv_prog_ac_ct_CC="$ac_prog"
2119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120    break 2
2121  fi
2122done
2123done
2124
2125fi
2126fi
2127ac_ct_CC=$ac_cv_prog_ac_ct_CC
2128if test -n "$ac_ct_CC"; then
2129  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2130echo "${ECHO_T}$ac_ct_CC" >&6
2131else
2132  echo "$as_me:$LINENO: result: no" >&5
2133echo "${ECHO_T}no" >&6
2134fi
2135
2136  test -n "$ac_ct_CC" && break
2137done
2138
2139  CC=$ac_ct_CC
2140fi
2141
2142
2143test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2144See \`config.log' for more details." >&5
2145echo "$as_me: error: no acceptable C compiler found in \$PATH
2146See \`config.log' for more details." >&2;}
2147   { (exit 1); exit 1; }; }
2148
2149# Provide some information about the compiler.
2150echo "$as_me:$LINENO:" \
2151     "checking for C compiler version" >&5
2152ac_compiler=`set X $ac_compile; echo $2`
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2154  (eval $ac_compiler --version </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2159  (eval $ac_compiler -v </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2164  (eval $ac_compiler -V </dev/null >&5) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }
2168
2169cat >conftest.$ac_ext <<_ACEOF
2170/* confdefs.h.  */
2171_ACEOF
2172cat confdefs.h >>conftest.$ac_ext
2173cat >>conftest.$ac_ext <<_ACEOF
2174/* end confdefs.h.  */
2175
2176int
2177main ()
2178{
2179
2180  ;
2181  return 0;
2182}
2183_ACEOF
2184ac_clean_files_save=$ac_clean_files
2185ac_clean_files="$ac_clean_files a.out a.exe b.out"
2186# Try to create an executable without -o first, disregard a.out.
2187# It will help us diagnose broken compilers, and finding out an intuition
2188# of exeext.
2189echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2190echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2191ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2192if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2193  (eval $ac_link_default) 2>&5
2194  ac_status=$?
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); }; then
2197  # Find the output, starting from the most likely.  This scheme is
2198# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2199# resort.
2200
2201# Be careful to initialize this variable, since it used to be cached.
2202# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2203ac_cv_exeext=
2204# b.out is created by i960 compilers.
2205for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2206do
2207  test -f "$ac_file" || continue
2208  case $ac_file in
2209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2210        ;;
2211    conftest.$ac_ext )
2212        # This is the source file.
2213        ;;
2214    [ab].out )
2215        # We found the default executable, but exeext='' is most
2216        # certainly right.
2217        break;;
2218    *.* )
2219        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220        # FIXME: I believe we export ac_cv_exeext for Libtool,
2221        # but it would be cool to find out if it's true.  Does anybody
2222        # maintain Libtool? --akim.
2223        export ac_cv_exeext
2224        break;;
2225    * )
2226        break;;
2227  esac
2228done
2229else
2230  echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: C compiler cannot create executables
2236See \`config.log' for more details." >&2;}
2237   { (exit 77); exit 77; }; }
2238fi
2239
2240ac_exeext=$ac_cv_exeext
2241echo "$as_me:$LINENO: result: $ac_file" >&5
2242echo "${ECHO_T}$ac_file" >&6
2243
2244# Check the compiler produces executables we can run.  If not, either
2245# the compiler is broken, or we cross compile.
2246echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2248# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249# If not cross compiling, check that we can run a simple program.
2250if test "$cross_compiling" != yes; then
2251  if { ac_try='./$ac_file'
2252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253  (eval $ac_try) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; }; then
2257    cross_compiling=no
2258  else
2259    if test "$cross_compiling" = maybe; then
2260        cross_compiling=yes
2261    else
2262        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263If you meant to cross compile, use \`--host'.
2264See \`config.log' for more details." >&5
2265echo "$as_me: error: cannot run C compiled programs.
2266If you meant to cross compile, use \`--host'.
2267See \`config.log' for more details." >&2;}
2268   { (exit 1); exit 1; }; }
2269    fi
2270  fi
2271fi
2272echo "$as_me:$LINENO: result: yes" >&5
2273echo "${ECHO_T}yes" >&6
2274
2275rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276ac_clean_files=$ac_clean_files_save
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2281echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282echo "${ECHO_T}$cross_compiling" >&6
2283
2284echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2287  (eval $ac_link) 2>&5
2288  ac_status=$?
2289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290  (exit $ac_status); }; then
2291  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2293# work properly (i.e., refer to `conftest.exe'), while it won't with
2294# `rm'.
2295for ac_file in conftest.exe conftest conftest.*; do
2296  test -f "$ac_file" || continue
2297  case $ac_file in
2298    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2299    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2300          export ac_cv_exeext
2301          break;;
2302    * ) break;;
2303  esac
2304done
2305else
2306  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309See \`config.log' for more details." >&2;}
2310   { (exit 1); exit 1; }; }
2311fi
2312
2313rm -f conftest$ac_cv_exeext
2314echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315echo "${ECHO_T}$ac_cv_exeext" >&6
2316
2317rm -f conftest.$ac_ext
2318EXEEXT=$ac_cv_exeext
2319ac_exeext=$EXEEXT
2320echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2322if test "${ac_cv_objext+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h.  */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
2330/* end confdefs.h.  */
2331
2332int
2333main ()
2334{
2335
2336  ;
2337  return 0;
2338}
2339_ACEOF
2340rm -f conftest.o conftest.obj
2341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342  (eval $ac_compile) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; then
2346  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2347  case $ac_file in
2348    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2349    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350       break;;
2351  esac
2352done
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&5
2359echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&2;}
2361   { (exit 1); exit 1; }; }
2362fi
2363
2364rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365fi
2366echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367echo "${ECHO_T}$ac_cv_objext" >&6
2368OBJEXT=$ac_cv_objext
2369ac_objext=$OBJEXT
2370echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2372if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373  echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375  cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h.  */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h.  */
2381
2382int
2383main ()
2384{
2385#ifndef __GNUC__
2386       choke me
2387#endif
2388
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395  (eval $ac_compile) 2>conftest.er1
2396  ac_status=$?
2397  grep -v '^ *+' conftest.er1 >conftest.err
2398  rm -f conftest.er1
2399  cat conftest.err >&5
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); } &&
2402         { ac_try='test -z "$ac_c_werror_flag"
2403                         || test ! -s conftest.err'
2404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405  (eval $ac_try) 2>&5
2406  ac_status=$?
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); }; } &&
2409         { ac_try='test -s conftest.$ac_objext'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; }; then
2415  ac_compiler_gnu=yes
2416else
2417  echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420ac_compiler_gnu=no
2421fi
2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424
2425fi
2426echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2428GCC=`test $ac_compiler_gnu = yes && echo yes`
2429ac_test_CFLAGS=${CFLAGS+set}
2430ac_save_CFLAGS=$CFLAGS
2431CFLAGS="-g"
2432echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434if test "${ac_cv_prog_cc_g+set}" = set; then
2435  echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437  cat >conftest.$ac_ext <<_ACEOF
2438/* confdefs.h.  */
2439_ACEOF
2440cat confdefs.h >>conftest.$ac_ext
2441cat >>conftest.$ac_ext <<_ACEOF
2442/* end confdefs.h.  */
2443
2444int
2445main ()
2446{
2447
2448  ;
2449  return 0;
2450}
2451_ACEOF
2452rm -f conftest.$ac_objext
2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454  (eval $ac_compile) 2>conftest.er1
2455  ac_status=$?
2456  grep -v '^ *+' conftest.er1 >conftest.err
2457  rm -f conftest.er1
2458  cat conftest.err >&5
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); } &&
2461         { ac_try='test -z "$ac_c_werror_flag"
2462                         || test ! -s conftest.err'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; } &&
2468         { ac_try='test -s conftest.$ac_objext'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; }; then
2474  ac_cv_prog_cc_g=yes
2475else
2476  echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479ac_cv_prog_cc_g=no
2480fi
2481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485if test "$ac_test_CFLAGS" = set; then
2486  CFLAGS=$ac_save_CFLAGS
2487elif test $ac_cv_prog_cc_g = yes; then
2488  if test "$GCC" = yes; then
2489    CFLAGS="-g -O2"
2490  else
2491    CFLAGS="-g"
2492  fi
2493else
2494  if test "$GCC" = yes; then
2495    CFLAGS="-O2"
2496  else
2497    CFLAGS=
2498  fi
2499fi
2500echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503  echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505  ac_cv_prog_cc_stdc=no
2506ac_save_CC=$CC
2507cat >conftest.$ac_ext <<_ACEOF
2508/* confdefs.h.  */
2509_ACEOF
2510cat confdefs.h >>conftest.$ac_ext
2511cat >>conftest.$ac_ext <<_ACEOF
2512/* end confdefs.h.  */
2513#include <stdarg.h>
2514#include <stdio.h>
2515#include <sys/types.h>
2516#include <sys/stat.h>
2517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2518struct buf { int x; };
2519FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520static char *e (p, i)
2521     char **p;
2522     int i;
2523{
2524  return p[i];
2525}
2526static char *f (char * (*g) (char **, int), char **p, ...)
2527{
2528  char *s;
2529  va_list v;
2530  va_start (v,p);
2531  s = g (p, va_arg (v,int));
2532  va_end (v);
2533  return s;
2534}
2535
2536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2537   function prototypes and stuff, but not '\xHH' hex character constants.
2538   These don't provoke an error unfortunately, instead are silently treated
2539   as 'x'.  The following induces an error, until -std1 is added to get
2540   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2541   array size at least.  It's necessary to write '\x00'==0 to get something
2542   that's true only with -std1.  */
2543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2544
2545int test (int i, double x);
2546struct s1 {int (*f) (int a);};
2547struct s2 {int (*f) (double a);};
2548int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549int argc;
2550char **argv;
2551int
2552main ()
2553{
2554return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2555  ;
2556  return 0;
2557}
2558_ACEOF
2559# Don't try gcc -ansi; that turns off useful extensions and
2560# breaks some systems' header files.
2561# AIX                   -qlanglvl=ansi
2562# Ultrix and OSF/1      -std1
2563# HP-UX 10.20 and later -Ae
2564# HP-UX older versions  -Aa -D_HPUX_SOURCE
2565# SVR4                  -Xc -D__EXTENSIONS__
2566for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567do
2568  CC="$ac_save_CC $ac_arg"
2569  rm -f conftest.$ac_objext
2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571  (eval $ac_compile) 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578         { ac_try='test -z "$ac_c_werror_flag"
2579                         || test ! -s conftest.err'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; } &&
2585         { ac_try='test -s conftest.$ac_objext'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591  ac_cv_prog_cc_stdc=$ac_arg
2592break
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext
2599done
2600rm -f conftest.$ac_ext conftest.$ac_objext
2601CC=$ac_save_CC
2602
2603fi
2604
2605case "x$ac_cv_prog_cc_stdc" in
2606  x|xno)
2607    echo "$as_me:$LINENO: result: none needed" >&5
2608echo "${ECHO_T}none needed" >&6 ;;
2609  *)
2610    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2611echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2612    CC="$CC $ac_cv_prog_cc_stdc" ;;
2613esac
2614
2615# Some people use a C++ compiler to compile C.  Since we use `exit',
2616# in C++ we need to declare it.  In case someone uses the same compiler
2617# for both compiling C and C++ we need to have the C++ compiler decide
2618# the declaration of exit, since it's the most demanding environment.
2619cat >conftest.$ac_ext <<_ACEOF
2620#ifndef __cplusplus
2621  choke me
2622#endif
2623_ACEOF
2624rm -f conftest.$ac_objext
2625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626  (eval $ac_compile) 2>conftest.er1
2627  ac_status=$?
2628  grep -v '^ *+' conftest.er1 >conftest.err
2629  rm -f conftest.er1
2630  cat conftest.err >&5
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); } &&
2633         { ac_try='test -z "$ac_c_werror_flag"
2634                         || test ! -s conftest.err'
2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636  (eval $ac_try) 2>&5
2637  ac_status=$?
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); }; } &&
2640         { ac_try='test -s conftest.$ac_objext'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; }; then
2646  for ac_declaration in \
2647   '' \
2648   'extern "C" void std::exit (int) throw (); using std::exit;' \
2649   'extern "C" void std::exit (int); using std::exit;' \
2650   'extern "C" void exit (int) throw ();' \
2651   'extern "C" void exit (int);' \
2652   'void exit (int);'
2653do
2654  cat >conftest.$ac_ext <<_ACEOF
2655/* confdefs.h.  */
2656_ACEOF
2657cat confdefs.h >>conftest.$ac_ext
2658cat >>conftest.$ac_ext <<_ACEOF
2659/* end confdefs.h.  */
2660$ac_declaration
2661#include <stdlib.h>
2662int
2663main ()
2664{
2665exit (42);
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672  (eval $ac_compile) 2>conftest.er1
2673  ac_status=$?
2674  grep -v '^ *+' conftest.er1 >conftest.err
2675  rm -f conftest.er1
2676  cat conftest.err >&5
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); } &&
2679         { ac_try='test -z "$ac_c_werror_flag"
2680                         || test ! -s conftest.err'
2681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682  (eval $ac_try) 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; } &&
2686         { ac_try='test -s conftest.$ac_objext'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; }; then
2692  :
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697continue
2698fi
2699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2700  cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h.  */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h.  */
2706$ac_declaration
2707int
2708main ()
2709{
2710exit (42);
2711  ;
2712  return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717  (eval $ac_compile) 2>conftest.er1
2718  ac_status=$?
2719  grep -v '^ *+' conftest.er1 >conftest.err
2720  rm -f conftest.er1
2721  cat conftest.err >&5
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); } &&
2724         { ac_try='test -z "$ac_c_werror_flag"
2725                         || test ! -s conftest.err'
2726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727  (eval $ac_try) 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }; } &&
2731         { ac_try='test -s conftest.$ac_objext'
2732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733  (eval $ac_try) 2>&5
2734  ac_status=$?
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); }; }; then
2737  break
2738else
2739  echo "$as_me: failed program was:" >&5
2740sed 's/^/| /' conftest.$ac_ext >&5
2741
2742fi
2743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744done
2745rm -f conftest*
2746if test -n "$ac_declaration"; then
2747  echo '#ifdef __cplusplus' >>confdefs.h
2748  echo $ac_declaration      >>confdefs.h
2749  echo '#endif'             >>confdefs.h
2750fi
2751
2752else
2753  echo "$as_me: failed program was:" >&5
2754sed 's/^/| /' conftest.$ac_ext >&5
2755
2756fi
2757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764if test -z "$CC" ; then
2765  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2766echo "$as_me: error: Failed to find a C compiler!" >&2;}
2767   { (exit 1); exit 1; }; }
2768fi
2769# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2770case "$CC" in
2771  cl* | */cl* | CL* | */CL* )
2772    if test "$ac_cv_prog_cc_g" = yes ; then
2773      ac_cv_prog_cc_g=no
2774      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2775echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2776    fi ;;
2777esac
2778CFLAGS="$save_cflags"
2779
2780# Check if a project specific CFLAGS variable has been set
2781if test x$COIN_PRJCT != x; then
2782  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2783  if test x$coin_tmp = xset; then
2784    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2785  fi
2786fi
2787
2788if test x"$CFLAGS" = x; then
2789
2790  coin_add_cflags=
2791  coin_opt_cflags=
2792  coin_dbg_cflags=
2793  coin_warn_cflags=
2794
2795  if test "$GCC" = "yes"; then
2796    case "$CC" in
2797      icc* | */icc*)
2798        ;;
2799      *)
2800        coin_opt_cflags="-O3"
2801        coin_add_cflags="-pipe"
2802        coin_dbg_cflags="-g"
2803        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2804        case $build in
2805          *-darwin*)
2806            ;;
2807          *)
2808            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2809            ;;
2810        esac
2811        case $enable_doscompile in
2812          mingw)
2813            CFLAGS="-mno-cygwin"
2814            cat >conftest.$ac_ext <<_ACEOF
2815/* confdefs.h.  */
2816_ACEOF
2817cat confdefs.h >>conftest.$ac_ext
2818cat >>conftest.$ac_ext <<_ACEOF
2819/* end confdefs.h.  */
2820
2821int
2822main ()
2823{
2824int i=0; i++;
2825  ;
2826  return 0;
2827}
2828_ACEOF
2829rm -f conftest.$ac_objext conftest$ac_exeext
2830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2831  (eval $ac_link) 2>conftest.er1
2832  ac_status=$?
2833  grep -v '^ *+' conftest.er1 >conftest.err
2834  rm -f conftest.er1
2835  cat conftest.err >&5
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); } &&
2838         { ac_try='test -z "$ac_c_werror_flag"
2839                         || test ! -s conftest.err'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; } &&
2845         { ac_try='test -s conftest$ac_exeext'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; }; then
2851  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2852else
2853  echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856fi
2857rm -f conftest.err conftest.$ac_objext \
2858      conftest$ac_exeext conftest.$ac_ext
2859            CFLAGS=
2860          ;;
2861        esac
2862    esac
2863  fi
2864  if test -z "$coin_opt_cflags"; then
2865    case $build in
2866      *-cygwin* | *-mingw*)
2867        case "$CC" in
2868          cl* | */cl* | CL* | */CL*)
2869            coin_opt_cflags='-MT -O2'
2870            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2871            coin_dbg_cflags='-MTd'
2872            ;;
2873          icl* | */icl* | ICL* | */ICL*)
2874            coin_opt_cflags='-MT -Ox'
2875            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2876            coin_dbg_cflags='-MTd -debug'
2877            ;;
2878        esac
2879        ;;
2880      *-linux-*)
2881        case "$CC" in
2882          icc* | */icc*)
2883            coin_opt_cflags="-O3 -ip -mp1"
2884            coin_add_cflags=""
2885            coin_dbg_cflags="-g"
2886            # Check if -i_dynamic is necessary (for new glibc library)
2887            CFLAGS=
2888            cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h.  */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h.  */
2894
2895int
2896main ()
2897{
2898int i=0; i++;
2899  ;
2900  return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905  (eval $ac_link) 2>conftest.er1
2906  ac_status=$?
2907  grep -v '^ *+' conftest.er1 >conftest.err
2908  rm -f conftest.er1
2909  cat conftest.err >&5
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); } &&
2912         { ac_try='test -z "$ac_c_werror_flag"
2913                         || test ! -s conftest.err'
2914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915  (eval $ac_try) 2>&5
2916  ac_status=$?
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); }; } &&
2919         { ac_try='test -s conftest$ac_exeext'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; }; then
2925  :
2926else
2927  echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930coin_add_cflags="-i_dynamic $coin_add_cflags"
2931fi
2932rm -f conftest.err conftest.$ac_objext \
2933      conftest$ac_exeext conftest.$ac_ext
2934            ;;
2935          pgcc* | */pgcc*)
2936            coin_opt_cflags="-fast"
2937            coin_add_cflags="-Kieee -pc 64"
2938            coin_dbg_cflags="-g"
2939            ;;
2940        esac
2941        ;;
2942      *-ibm-*)
2943        case "$CC" in
2944          xlc* | */xlc* | mpxlc* | */mpxlc*)
2945            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2946            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2947            coin_dbg_cflags="-g"
2948          ;;
2949        esac
2950        ;;
2951      *-hp-*)
2952        coin_opt_cflags="-O"
2953        coin_add_cflags="-Ae"
2954        coin_dbg_cflags="-g"
2955        ;;
2956      *-*-solaris*)
2957        coin_opt_cflags="-xO4"
2958        coin_dbg_cflags="-g"
2959        ;;
2960      *-sgi-*)
2961        coin_opt_cflags="-O -OPT:Olimit=0"
2962        coin_dbg_cflags="-g"
2963        ;;
2964    esac
2965  fi
2966
2967  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2968    coin_dbg_cflags="-g"
2969  fi
2970
2971  if test -z "$coin_opt_cflags"; then
2972    # Try if -O option works if nothing else is set
2973    CFLAGS="-O"
2974    cat >conftest.$ac_ext <<_ACEOF
2975/* confdefs.h.  */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h.  */
2980
2981int
2982main ()
2983{
2984int i=0; i++;
2985  ;
2986  return 0;
2987}
2988_ACEOF
2989rm -f conftest.$ac_objext conftest$ac_exeext
2990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2991  (eval $ac_link) 2>conftest.er1
2992  ac_status=$?
2993  grep -v '^ *+' conftest.er1 >conftest.err
2994  rm -f conftest.er1
2995  cat conftest.err >&5
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); } &&
2998         { ac_try='test -z "$ac_c_werror_flag"
2999                         || test ! -s conftest.err'
3000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001  (eval $ac_try) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; } &&
3005         { ac_try='test -s conftest$ac_exeext'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; }; then
3011  coin_opt_cflags="-O"
3012else
3013  echo "$as_me: failed program was:" >&5
3014sed 's/^/| /' conftest.$ac_ext >&5
3015
3016fi
3017rm -f conftest.err conftest.$ac_objext \
3018      conftest$ac_exeext conftest.$ac_ext
3019  fi
3020
3021  # if PM doesn't want the warning messages, take them out
3022  if test x"$coin_skip_warn_cflags" = xyes; then
3023    coin_warn_cflags=
3024  fi
3025
3026  if test x${DBG_CFLAGS+set} != xset; then
3027    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3028  fi
3029  if test x${OPT_CFLAGS+set} != xset; then
3030    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3031  fi
3032
3033  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3034  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3035
3036  if test "$coin_debug_compile" = "true"; then
3037    CFLAGS="$DBG_CFLAGS"
3038  else
3039    CFLAGS="$OPT_CFLAGS"
3040  fi
3041else
3042  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3043  if test x${DBG_CFLAGS+set} != xset; then
3044    DBG_CFLAGS="$CFLAGS"
3045  fi
3046  if test x${OPT_CFLAGS+set} != xset; then
3047    OPT_CFLAGS="$CFLAGS"
3048  fi
3049fi
3050
3051# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3052
3053case "$CFLAGS" in
3054  *-mno-cygwin*)
3055    if test x${CPPFLAGS+set} != xset ; then
3056      CPPFLAGS="-mno-cygwin"
3057    else
3058      case "$CPPFLAGS" in
3059        *-mno-cygwin*)
3060          ;;
3061        *)
3062          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3063          ;;
3064      esac
3065    fi ;;
3066esac
3067
3068# Try if CFLAGS works
3069save_CFLAGS="$CFLAGS"
3070cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080int i=0; i++;
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085rm -f conftest.$ac_objext conftest$ac_exeext
3086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3087  (eval $ac_link) 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } &&
3094         { ac_try='test -z "$ac_c_werror_flag"
3095                         || test ! -s conftest.err'
3096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097  (eval $ac_try) 2>&5
3098  ac_status=$?
3099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100  (exit $ac_status); }; } &&
3101         { ac_try='test -s conftest$ac_exeext'
3102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103  (eval $ac_try) 2>&5
3104  ac_status=$?
3105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106  (exit $ac_status); }; }; then
3107  :
3108else
3109  echo "$as_me: failed program was:" >&5
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112CFLAGS=
3113fi
3114rm -f conftest.err conftest.$ac_objext \
3115      conftest$ac_exeext conftest.$ac_ext
3116if test -z "$CFLAGS"; then
3117  { 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
3118echo "$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;}
3119  CFLAGS='-O'
3120  cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h.  */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130int i=0; i++;
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext conftest$ac_exeext
3136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3137  (eval $ac_link) 2>conftest.er1
3138  ac_status=$?
3139  grep -v '^ *+' conftest.er1 >conftest.err
3140  rm -f conftest.er1
3141  cat conftest.err >&5
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); } &&
3144         { ac_try='test -z "$ac_c_werror_flag"
3145                         || test ! -s conftest.err'
3146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147  (eval $ac_try) 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); }; } &&
3151         { ac_try='test -s conftest$ac_exeext'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; }; then
3157  :
3158else
3159  echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162CFLAGS=
3163fi
3164rm -f conftest.err conftest.$ac_objext \
3165      conftest$ac_exeext conftest.$ac_ext
3166  if test -z "$CFLAGS"; then
3167    { 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
3168echo "$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;}
3169  fi
3170fi
3171
3172{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3173echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3174
3175
3176if test x"$MPICC" = x; then :; else
3177  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3178echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3179  CC="$MPICC"
3180fi
3181
3182# Correct the LD variable if we are using the MS or Intel-windows compiler
3183case "$CC" in
3184  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3185    case $build in
3186  *-mingw*)
3187    if test "${LD+set}" = set; then :; else
3188      LD=link
3189    fi
3190    ;;
3191 esac
3192 case $enable_doscompile in
3193   msvc)
3194     if test "x${LD+set}" = xset; then :; else
3195       LD=link
3196     fi
3197     ;;
3198 esac
3199
3200    ;;
3201esac
3202
3203ac_ext=c
3204ac_cpp='$CPP $CPPFLAGS'
3205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208
3209
3210
3211# Initialize automake and libtool
3212{
3213
3214
3215
3216# START
3217
3218# Test if force_shared has been set
3219if test "x" = xforce_shared; then
3220  if test x$enable_shared = xno; then
3221    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3222echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3223   { (exit 1); exit 1; }; }
3224  fi
3225  enable_shared=yes;
3226else
3227  # On Cygwin and AIX, building DLLs doesn't work
3228  case $build in
3229    *-cygwin*)
3230      coin_disable_shared=yes
3231      platform=Cygwin
3232    ;;
3233    *-aix*)
3234      coin_disable_shared=yes
3235      platform=AIX
3236    ;;
3237    *-mingw*)
3238      coin_disable_shared=yes
3239      platform="Msys"
3240#      case "$CXX" in
3241#        cl*)
3242#          coin_disable_shared=yes
3243#          platform="Msys with cl"
3244#      ;;
3245#      esac
3246    ;;
3247  esac
3248fi
3249if test x"$coin_disable_shared" = xyes; then
3250  if test x"$enable_shared" = xyes; then
3251    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3252echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3253  fi
3254  enable_shared=no
3255fi
3256# By default, we only want the shared objects to be compiled
3257# Check whether --enable-static or --disable-static was given.
3258if test "${enable_static+set}" = set; then
3259  enableval="$enable_static"
3260  p=${PACKAGE-default}
3261    case $enableval in
3262    yes) enable_static=yes ;;
3263    no) enable_static=no ;;
3264    *)
3265     enable_static=no
3266      # Look at the argument we got.  We use all the common list separators.
3267      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3268      for pkg in $enableval; do
3269        IFS="$lt_save_ifs"
3270        if test "X$pkg" = "X$p"; then
3271          enable_static=yes
3272        fi
3273      done
3274      IFS="$lt_save_ifs"
3275      ;;
3276    esac
3277else
3278  enable_static=no
3279fi;
3280
3281
3282
3283
3284# Initialize automake
3285am__api_version="1.9"
3286# Find a good install program.  We prefer a C program (faster),
3287# so one script is as good as another.  But avoid the broken or
3288# incompatible versions:
3289# SysV /etc/install, /usr/sbin/install
3290# SunOS /usr/etc/install
3291# IRIX /sbin/install
3292# AIX /bin/install
3293# AmigaOS /C/install, which installs bootblocks on floppy discs
3294# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3295# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3296# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3297# OS/2's system install, which has a completely different semantic
3298# ./install, which can be erroneously created by make from ./install.sh.
3299echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3300echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3301if test -z "$INSTALL"; then
3302if test "${ac_cv_path_install+set}" = set; then
3303  echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310  # Account for people who put trailing slashes in PATH elements.
3311case $as_dir/ in
3312  ./ | .// | /cC/* | \
3313  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3314  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3315  /usr/ucb/* ) ;;
3316  *)
3317    # OSF1 and SCO ODT 3.0 have their own names for install.
3318    # Don't use installbsd from OSF since it installs stuff as root
3319    # by default.
3320    for ac_prog in ginstall scoinst install; do
3321      for ac_exec_ext in '' $ac_executable_extensions; do
3322        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3323          if test $ac_prog = install &&
3324            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3325            # AIX install.  It has an incompatible calling convention.
3326            :
3327          elif test $ac_prog = install &&
3328            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3329            # program-specific install script used by HP pwplus--don't use.
3330            :
3331          else
3332            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3333            break 3
3334          fi
3335        fi
3336      done
3337    done
3338    ;;
3339esac
3340done
3341
3342
3343fi
3344  if test "${ac_cv_path_install+set}" = set; then
3345    INSTALL=$ac_cv_path_install
3346  else
3347    # As a last resort, use the slow shell script.  We don't cache a
3348    # path for INSTALL within a source directory, because that will
3349    # break other packages using the cache if that directory is
3350    # removed, or if the path is relative.
3351    INSTALL=$ac_install_sh
3352  fi
3353fi
3354echo "$as_me:$LINENO: result: $INSTALL" >&5
3355echo "${ECHO_T}$INSTALL" >&6
3356
3357# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3358# It thinks the first close brace ends the variable substitution.
3359test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3360
3361test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3362
3363test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3364
3365echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3366echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3367# Just in case
3368sleep 1
3369echo timestamp > conftest.file
3370# Do `set' in a subshell so we don't clobber the current shell's
3371# arguments.  Must try -L first in case configure is actually a
3372# symlink; some systems play weird games with the mod time of symlinks
3373# (eg FreeBSD returns the mod time of the symlink's containing
3374# directory).
3375if (
3376   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3377   if test "$*" = "X"; then
3378      # -L didn't work.
3379      set X `ls -t $srcdir/configure conftest.file`
3380   fi
3381   rm -f conftest.file
3382   if test "$*" != "X $srcdir/configure conftest.file" \
3383      && test "$*" != "X conftest.file $srcdir/configure"; then
3384
3385      # If neither matched, then we have a broken ls.  This can happen
3386      # if, for instance, CONFIG_SHELL is bash and it inherits a
3387      # broken ls alias from the environment.  This has actually
3388      # happened.  Such a system could not be considered "sane".
3389      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3390alias in your environment" >&5
3391echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3392alias in your environment" >&2;}
3393   { (exit 1); exit 1; }; }
3394   fi
3395
3396   test "$2" = conftest.file
3397   )
3398then
3399   # Ok.
3400   :
3401else
3402   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3403Check your system clock" >&5
3404echo "$as_me: error: newly created file is older than distributed files!
3405Check your system clock" >&2;}
3406   { (exit 1); exit 1; }; }
3407fi
3408echo "$as_me:$LINENO: result: yes" >&5
3409echo "${ECHO_T}yes" >&6
3410test "$program_prefix" != NONE &&
3411  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3412# Use a double $ so make ignores it.
3413test "$program_suffix" != NONE &&
3414  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3415# Double any \ or $.  echo might interpret backslashes.
3416# By default was `s,x,x', remove it if useless.
3417cat <<\_ACEOF >conftest.sed
3418s/[\\$]/&&/g;s/;s,x,x,$//
3419_ACEOF
3420program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3421rm conftest.sed
3422
3423# expand $ac_aux_dir to an absolute path
3424am_aux_dir=`cd $ac_aux_dir && pwd`
3425
3426test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3427# Use eval to expand $SHELL
3428if eval "$MISSING --run true"; then
3429  am_missing_run="$MISSING --run "
3430else
3431  am_missing_run=
3432  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3433echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3434fi
3435
3436if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3437  # We used to keeping the `.' as first argument, in order to
3438  # allow $(mkdir_p) to be used without argument.  As in
3439  #   $(mkdir_p) $(somedir)
3440  # where $(somedir) is conditionally defined.  However this is wrong
3441  # for two reasons:
3442  #  1. if the package is installed by a user who cannot write `.'
3443  #     make install will fail,
3444  #  2. the above comment should most certainly read
3445  #     $(mkdir_p) $(DESTDIR)$(somedir)
3446  #     so it does not work when $(somedir) is undefined and
3447  #     $(DESTDIR) is not.
3448  #  To support the latter case, we have to write
3449  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3450  #  so the `.' trick is pointless.
3451  mkdir_p='mkdir -p --'
3452else
3453  # On NextStep and OpenStep, the `mkdir' command does not
3454  # recognize any option.  It will interpret all options as
3455  # directories to create, and then abort because `.' already
3456  # exists.
3457  for d in ./-p ./--version;
3458  do
3459    test -d $d && rmdir $d
3460  done
3461  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3462  if test -f "$ac_aux_dir/mkinstalldirs"; then
3463    mkdir_p='$(mkinstalldirs)'
3464  else
3465    mkdir_p='$(install_sh) -d'
3466  fi
3467fi
3468
3469for ac_prog in gawk mawk nawk awk
3470do
3471  # Extract the first word of "$ac_prog", so it can be a program name with args.
3472set dummy $ac_prog; ac_word=$2
3473echo "$as_me:$LINENO: checking for $ac_word" >&5
3474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475if test "${ac_cv_prog_AWK+set}" = set; then
3476  echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478  if test -n "$AWK"; then
3479  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3480else
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484  IFS=$as_save_IFS
3485  test -z "$as_dir" && as_dir=.
3486  for ac_exec_ext in '' $ac_executable_extensions; do
3487  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488    ac_cv_prog_AWK="$ac_prog"
3489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490    break 2
3491  fi
3492done
3493done
3494
3495fi
3496fi
3497AWK=$ac_cv_prog_AWK
3498if test -n "$AWK"; then
3499  echo "$as_me:$LINENO: result: $AWK" >&5
3500echo "${ECHO_T}$AWK" >&6
3501else
3502  echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504fi
3505
3506  test -n "$AWK" && break
3507done
3508
3509echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3510echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3511set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3512if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3513  echo $ECHO_N "(cached) $ECHO_C" >&6
3514else
3515  cat >conftest.make <<\_ACEOF
3516all:
3517        @echo 'ac_maketemp="$(MAKE)"'
3518_ACEOF
3519# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3520eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3521if test -n "$ac_maketemp"; then
3522  eval ac_cv_prog_make_${ac_make}_set=yes
3523else
3524  eval ac_cv_prog_make_${ac_make}_set=no
3525fi
3526rm -f conftest.make
3527fi
3528if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3529  echo "$as_me:$LINENO: result: yes" >&5
3530echo "${ECHO_T}yes" >&6
3531  SET_MAKE=
3532else
3533  echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6
3535  SET_MAKE="MAKE=${MAKE-make}"
3536fi
3537
3538rm -rf .tst 2>/dev/null
3539mkdir .tst 2>/dev/null
3540if test -d .tst; then
3541  am__leading_dot=.
3542else
3543  am__leading_dot=_
3544fi
3545rmdir .tst 2>/dev/null
3546
3547DEPDIR="${am__leading_dot}deps"
3548
3549          ac_config_commands="$ac_config_commands depfiles"
3550
3551
3552am_make=${MAKE-make}
3553cat > confinc << 'END'
3554am__doit:
3555        @echo done
3556.PHONY: am__doit
3557END
3558# If we don't find an include directive, just comment out the code.
3559echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3560echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3561am__include="#"
3562am__quote=
3563_am_result=none
3564# First try GNU make style include.
3565echo "include confinc" > confmf
3566# We grep out `Entering directory' and `Leaving directory'
3567# messages which can occur if `w' ends up in MAKEFLAGS.
3568# In particular we don't look at `^make:' because GNU make might
3569# be invoked under some other name (usually "gmake"), in which
3570# case it prints its new name instead of `make'.
3571if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3572   am__include=include
3573   am__quote=
3574   _am_result=GNU
3575fi
3576# Now try BSD make style include.
3577if test "$am__include" = "#"; then
3578   echo '.include "confinc"' > confmf
3579   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3580      am__include=.include
3581      am__quote="\""
3582      _am_result=BSD
3583   fi
3584fi
3585
3586
3587echo "$as_me:$LINENO: result: $_am_result" >&5
3588echo "${ECHO_T}$_am_result" >&6
3589rm -f confinc confmf
3590
3591# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3592if test "${enable_dependency_tracking+set}" = set; then
3593  enableval="$enable_dependency_tracking"
3594
3595fi;
3596if test "x$enable_dependency_tracking" != xno; then
3597  am_depcomp="$ac_aux_dir/depcomp"
3598  AMDEPBACKSLASH='\'
3599fi
3600
3601
3602if test "x$enable_dependency_tracking" != xno; then
3603  AMDEP_TRUE=
3604  AMDEP_FALSE='#'
3605else
3606  AMDEP_TRUE='#'
3607  AMDEP_FALSE=
3608fi
3609
3610
3611
3612
3613
3614# AC_MSG_NOTICE([Beginning automake initialisation.])
3615# Stuff for automake
3616# test to see if srcdir already configured
3617if test "`cd $srcdir && pwd`" != "`pwd`" &&
3618   test -f $srcdir/config.status; then
3619  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3620echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3621   { (exit 1); exit 1; }; }
3622fi
3623
3624# test whether we have cygpath
3625if test -z "$CYGPATH_W"; then
3626  if (cygpath --version) >/dev/null 2>/dev/null; then
3627    CYGPATH_W='cygpath -w'
3628  else
3629    CYGPATH_W=echo
3630  fi
3631fi
3632
3633
3634# Define the identity of the package.
3635 PACKAGE='thirdpartyasl'
3636 VERSION='trunk'
3637
3638
3639cat >>confdefs.h <<_ACEOF
3640#define PACKAGE "$PACKAGE"
3641_ACEOF
3642
3643
3644cat >>confdefs.h <<_ACEOF
3645#define VERSION "$VERSION"
3646_ACEOF
3647
3648# Some tools Automake needs.
3649
3650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3651
3652
3653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3654
3655
3656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3657
3658
3659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3660
3661
3662MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3663
3664install_sh=${install_sh-"$am_aux_dir/install-sh"}
3665
3666# Installed binaries are usually stripped using `strip' when the user
3667# run `make install-strip'.  However `strip' might not be the right
3668# tool to use in cross-compilation environments, therefore Automake
3669# will honor the `STRIP' environment variable to overrule this program.
3670if test "$cross_compiling" != no; then
3671  if test -n "$ac_tool_prefix"; then
3672  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3673set dummy ${ac_tool_prefix}strip; ac_word=$2
3674echo "$as_me:$LINENO: checking for $ac_word" >&5
3675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3676if test "${ac_cv_prog_STRIP+set}" = set; then
3677  echo $ECHO_N "(cached) $ECHO_C" >&6
3678else
3679  if test -n "$STRIP"; then
3680  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3681else
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685  IFS=$as_save_IFS
3686  test -z "$as_dir" && as_dir=.
3687  for ac_exec_ext in '' $ac_executable_extensions; do
3688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691    break 2
3692  fi
3693done
3694done
3695
3696fi
3697fi
3698STRIP=$ac_cv_prog_STRIP
3699if test -n "$STRIP"; then
3700  echo "$as_me:$LINENO: result: $STRIP" >&5
3701echo "${ECHO_T}$STRIP" >&6
3702else
3703  echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
3705fi
3706
3707fi
3708if test -z "$ac_cv_prog_STRIP"; then
3709  ac_ct_STRIP=$STRIP
3710  # Extract the first word of "strip", so it can be a program name with args.
3711set dummy strip; ac_word=$2
3712echo "$as_me:$LINENO: checking for $ac_word" >&5
3713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3715  echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717  if test -n "$ac_ct_STRIP"; then
3718  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  test -z "$as_dir" && as_dir=.
3725  for ac_exec_ext in '' $ac_executable_extensions; do
3726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_ac_ct_STRIP="strip"
3728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732done
3733
3734  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3735fi
3736fi
3737ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3738if test -n "$ac_ct_STRIP"; then
3739  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3740echo "${ECHO_T}$ac_ct_STRIP" >&6
3741else
3742  echo "$as_me:$LINENO: result: no" >&5
3743echo "${ECHO_T}no" >&6
3744fi
3745
3746  STRIP=$ac_ct_STRIP
3747else
3748  STRIP="$ac_cv_prog_STRIP"
3749fi
3750
3751fi
3752INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3753
3754# We need awk for the "check" target.  The system "awk" is bad on
3755# some platforms.
3756# Always define AMTAR for backward compatibility.
3757
3758AMTAR=${AMTAR-"${am_missing_run}tar"}
3759
3760am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3761
3762
3763
3764
3765depcc="$CC"   am_compiler_list=
3766
3767echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3769if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773  # We make a subdir and do the tests there.  Otherwise we can end up
3774  # making bogus files that we don't know about and never remove.  For
3775  # instance it was reported that on HP-UX the gcc test will end up
3776  # making a dummy file named `D' -- because `-MD' means `put the output
3777  # in D'.
3778  mkdir conftest.dir
3779  # Copy depcomp to subdir because otherwise we won't find it if we're
3780  # using a relative directory.
3781  cp "$am_depcomp" conftest.dir
3782  cd conftest.dir
3783  # We will build objects and dependencies in a subdirectory because
3784  # it helps to detect inapplicable dependency modes.  For instance
3785  # both Tru64's cc and ICC support -MD to output dependencies as a
3786  # side effect of compilation, but ICC will put the dependencies in
3787  # the current directory while Tru64 will put them in the object
3788  # directory.
3789  mkdir sub
3790
3791  am_cv_CC_dependencies_compiler_type=none
3792  if test "$am_compiler_list" = ""; then
3793     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3794  fi
3795  for depmode in $am_compiler_list; do
3796    # Setup a source with many dependencies, because some compilers
3797    # like to wrap large dependency lists on column 80 (with \), and
3798    # we should not choose a depcomp mode which is confused by this.
3799    #
3800    # We need to recreate these files for each test, as the compiler may
3801    # overwrite some of them when testing with obscure command lines.
3802    # This happens at least with the AIX C compiler.
3803    : > sub/conftest.c
3804    for i in 1 2 3 4 5 6; do
3805      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3806      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3807      # Solaris 8's {/usr,}/bin/sh.
3808      touch sub/conftst$i.h
3809    done
3810    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3811
3812    case $depmode in
3813    nosideeffect)
3814      # after this tag, mechanisms are not by side-effect, so they'll
3815      # only be used when explicitly requested
3816      if test "x$enable_dependency_tracking" = xyes; then
3817        continue
3818      else
3819        break
3820      fi
3821      ;;
3822    none) break ;;
3823    esac
3824    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825    # mode.  It turns out that the SunPro C++ compiler does not properly
3826    # handle `-M -o', and we need to detect this.
3827    if depmode=$depmode \
3828       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3829       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3831         >/dev/null 2>conftest.err &&
3832       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835      # icc doesn't choke on unknown options, it will just issue warnings
3836      # or remarks (even with -Werror).  So we grep stderr for any message
3837      # that says an option was ignored or not supported.
3838      # When given -MP, icc 7.0 and 7.1 complain thusly:
3839      #   icc: Command line warning: ignoring option '-M'; no argument required
3840      # The diagnosis changed in icc 8.0:
3841      #   icc: Command line remark: option '-MP' not supported
3842      if (grep 'ignoring option' conftest.err ||
3843          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844        am_cv_CC_dependencies_compiler_type=$depmode
3845        break
3846      fi
3847    fi
3848  done
3849
3850  cd ..
3851  rm -rf conftest.dir
3852else
3853  am_cv_CC_dependencies_compiler_type=none
3854fi
3855
3856fi
3857echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860
3861
3862
3863if
3864  test "x$enable_dependency_tracking" != xno \
3865  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3866  am__fastdepCC_TRUE=
3867  am__fastdepCC_FALSE='#'
3868else
3869  am__fastdepCC_TRUE='#'
3870  am__fastdepCC_FALSE=
3871fi
3872
3873
3874
3875echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3876echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3877    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3878if test "${enable_maintainer_mode+set}" = set; then
3879  enableval="$enable_maintainer_mode"
3880  USE_MAINTAINER_MODE=$enableval
3881else
3882  USE_MAINTAINER_MODE=no
3883fi;
3884  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3885echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3886
3887
3888if test $USE_MAINTAINER_MODE = yes; then
3889  MAINTAINER_MODE_TRUE=
3890  MAINTAINER_MODE_FALSE='#'
3891else
3892  MAINTAINER_MODE_TRUE='#'
3893  MAINTAINER_MODE_FALSE=
3894fi
3895
3896  MAINT=$MAINTAINER_MODE_TRUE
3897
3898
3899
3900coin_have_externals=no
3901if test "$enable_maintainer_mode" = yes; then
3902
3903  # If maintainer mode is chosen, we make sure that the correct versions
3904  # of the tools are used, and that we know where libtool.m4 is (to
3905  # recreate acinclude.m4)
3906
3907
3908  LIBTOOLM4=
3909  # Normally, $HOME
3910  AUTOTOOLS_DFLT=$HOME
3911
3912  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3913echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3914if test "${ac_cv_use_correct_autotools+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  ac_cv_use_correct_autotools=check
3918fi
3919echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3920echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3921
3922  if test $ac_cv_use_correct_autotools = check; then
3923    ac_cv_use_correct_autotools=yes
3924    # Check if we have autoconf
3925    # Extract the first word of "autoconf", so it can be a program name with args.
3926set dummy autoconf; ac_word=$2
3927echo "$as_me:$LINENO: checking for $ac_word" >&5
3928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929if test "${ac_cv_prog_have_autoconf+set}" = set; then
3930  echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932  if test -n "$have_autoconf"; then
3933  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940  for ac_exec_ext in '' $ac_executable_extensions; do
3941  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942    ac_cv_prog_have_autoconf="yes"
3943    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944    break 2
3945  fi
3946done
3947done
3948
3949  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3950fi
3951fi
3952have_autoconf=$ac_cv_prog_have_autoconf
3953if test -n "$have_autoconf"; then
3954  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3955echo "${ECHO_T}$have_autoconf" >&6
3956else
3957  echo "$as_me:$LINENO: result: no" >&5
3958echo "${ECHO_T}no" >&6
3959fi
3960
3961    if test $have_autoconf = no; then
3962      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3963echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3964   { (exit 1); exit 1; }; }
3965    fi
3966
3967    # Check whether autoconf is the correct version
3968    correct_version='2.59'
3969    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3970    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3971echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3972    autoconf --version > confauto.out 2>&1
3973    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3974      echo "$as_me:$LINENO: result: yes" >&5
3975echo "${ECHO_T}yes" >&6
3976    else
3977      rm -f confauto.out
3978      echo "$as_me:$LINENO: result: no" >&5
3979echo "${ECHO_T}no" >&6
3980      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3981echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3982   { (exit 1); exit 1; }; }
3983    fi
3984    rm -f confauto.out
3985
3986    # Check if the executable autoconf is picked up from the correct location
3987    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3988echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3989    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3990    autoconf_dir=`cd $autoconf_dir; pwd`
3991    if test x$AUTOTOOLS_DIR = x; then
3992      want_dir=$AUTOTOOLS_DFLT/bin
3993    else
3994      want_dir=$AUTOTOOLS_DIR/bin
3995    fi
3996    if test $autoconf_dir = `cd $want_dir; pwd`; then
3997      echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999    else
4000      rm -f confauto.out
4001      echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6
4003      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4004echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4005   { (exit 1); exit 1; }; }
4006    fi
4007
4008    # Check if we have automake
4009    # Extract the first word of "automake", so it can be a program name with args.
4010set dummy automake; ac_word=$2
4011echo "$as_me:$LINENO: checking for $ac_word" >&5
4012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013if test "${ac_cv_prog_have_automake+set}" = set; then
4014  echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016  if test -n "$have_automake"; then
4017  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024  for ac_exec_ext in '' $ac_executable_extensions; do
4025  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026    ac_cv_prog_have_automake="yes"
4027    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028    break 2
4029  fi
4030done
4031done
4032
4033  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4034fi
4035fi
4036have_automake=$ac_cv_prog_have_automake
4037if test -n "$have_automake"; then
4038  echo "$as_me:$LINENO: result: $have_automake" >&5
4039echo "${ECHO_T}$have_automake" >&6
4040else
4041  echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043fi
4044
4045    if test $have_automake = no; then
4046      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4047echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4048   { (exit 1); exit 1; }; }
4049    fi
4050
4051    # Check whether automake is the correct version
4052    correct_version='1.9.6'
4053    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4054    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4055echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4056    automake --version > confauto.out 2>&1
4057    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4058      echo "$as_me:$LINENO: result: yes" >&5
4059echo "${ECHO_T}yes" >&6
4060    else
4061      rm -f confauto.out
4062      echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
4064      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4065echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4066   { (exit 1); exit 1; }; }
4067    fi
4068    rm -f confauto.out
4069
4070    # Check if the executable automake is picked up from the correct location
4071    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4072echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4073    automake_dir=`which automake | sed -e 's=/automake=='`
4074    automake_dir=`cd $automake_dir; pwd`
4075    if test x$AUTOTOOLS_DIR = x; then
4076      want_dir=$AUTOTOOLS_DFLT/bin
4077    else
4078      want_dir=$AUTOTOOLS_DIR/bin
4079    fi
4080    if test $automake_dir = `cd $want_dir; pwd`; then
4081      echo "$as_me:$LINENO: result: yes" >&5
4082echo "${ECHO_T}yes" >&6
4083    else
4084      rm -f confauto.out
4085      echo "$as_me:$LINENO: result: no" >&5
4086echo "${ECHO_T}no" >&6
4087      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4088echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4089   { (exit 1); exit 1; }; }
4090    fi
4091
4092    # Check if this is the correct version of libtool (with escaped dots)
4093    if test x$AUTOTOOLS_DIR = x; then
4094      want_dir=$AUTOTOOLS_DFLT/share
4095    else
4096      want_dir=$AUTOTOOLS_DIR/share
4097    fi
4098    correct_version='1.5.22'
4099    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4100    if test -r $want_dir/libtool/ltmain.sh; then
4101  have_ltmain=yes
4102  :
4103else
4104  have_ltmain=no
4105  :
4106fi
4107
4108    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4109echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4110    if test $have_ltmain = yes; then
4111    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4112        echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114      else
4115        echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4118echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4119   { (exit 1); exit 1; }; }
4120      fi
4121    else
4122      echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6
4124      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4125echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4126   { (exit 1); exit 1; }; }
4127    fi
4128  fi
4129
4130  # Check if we can find the libtool file
4131  if test x$AUTOTOOLS_DIR = x; then
4132    want_dir=$AUTOTOOLS_DFLT/share
4133  else
4134    want_dir=$AUTOTOOLS_DIR/share
4135  fi
4136  if test -r $want_dir/aclocal/libtool.m4; then
4137  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4138  :
4139else
4140  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4141echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4142   { (exit 1); exit 1; }; }
4143  :
4144fi
4145
4146
4147  # Check if we have an Externals file
4148  if test -r $srcdir/Externals; then
4149    coin_have_externals=yes
4150  fi
4151  # Check if subversion is installed and understands https
4152  # Extract the first word of "svn", so it can be a program name with args.
4153set dummy svn; ac_word=$2
4154echo "$as_me:$LINENO: checking for $ac_word" >&5
4155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156if test "${ac_cv_prog_have_svn+set}" = set; then
4157  echo $ECHO_N "(cached) $ECHO_C" >&6
4158else
4159  if test -n "$have_svn"; then
4160  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4161else
4162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167  for ac_exec_ext in '' $ac_executable_extensions; do
4168  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169    ac_cv_prog_have_svn="yes"
4170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171    break 2
4172  fi
4173done
4174done
4175
4176  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4177fi
4178fi
4179have_svn=$ac_cv_prog_have_svn
4180if test -n "$have_svn"; then
4181  echo "$as_me:$LINENO: result: $have_svn" >&5
4182echo "${ECHO_T}$have_svn" >&6
4183else
4184  echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6
4186fi
4187
4188  if test x$have_svn = xyes; then
4189    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4190echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4191if test "${ac_cv_svn_understands_https+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  svn --version > confauto.out 2>&1
4195                    if $EGREP https confauto.out >/dev/null 2>&1; then
4196                      ac_cv_svn_understands_https=yes
4197                    else
4198                      ac_cv_svn_understands_https=no
4199                      have_svn=no
4200                      ac_cv_prog_have_svn=no
4201                    fi
4202                    rm -f confauto.out
4203fi
4204echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4205echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4206  fi
4207
4208  # Find the location of the BuildTools directory
4209  BUILDTOOLSDIR=
4210  if test -r $srcdir/BuildTools/coin.m4; then
4211    BUILDTOOLSDIR=$srcdir/BuildTools
4212  else
4213    if test -r $srcdir/../BuildTools/coin.m4; then
4214      BUILDTOOLSDIR=$srcdir/../BuildTools
4215    else
4216      if test -r $srcdir/../../BuildTools/coin.m4; then
4217        BUILDTOOLSDIR=$srcdir/../../BuildTools
4218      else
4219        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4220echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4221   { (exit 1); exit 1; }; }
4222      fi
4223    fi
4224  fi
4225
4226
4227  # The following variable is set to the name of the directory where
4228  # the autotool scripts are located
4229
4230  AUX_DIR=$ac_aux_dir
4231fi
4232
4233# helpful variable for the base directory of this package
4234abs_source_dir=`cd $srcdir; pwd`
4235
4236
4237# Stuff for example Makefiles
4238if test x$prefix = xNONE; then
4239  full_prefix=$ac_default_prefix
4240else
4241  full_prefix=$prefix
4242fi
4243full_prefix=`cd $full_prefix ; pwd`
4244
4245abs_lib_dir=$full_prefix/lib
4246
4247abs_include_dir=$full_prefix/include
4248
4249abs_bin_dir=$full_prefix/bin
4250
4251
4252
4253if test $coin_have_externals = yes && test x$have_svn = xyes; then
4254  HAVE_EXTERNALS_TRUE=
4255  HAVE_EXTERNALS_FALSE='#'
4256else
4257  HAVE_EXTERNALS_TRUE='#'
4258  HAVE_EXTERNALS_FALSE=
4259fi
4260
4261
4262# AC_MSG_NOTICE([End automake initialisation.])
4263
4264
4265
4266LIBTOOL=
4267if test -r ../libtool; then
4268  coin_config_dir=..
4269  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4270fi
4271if test "x$LIBTOOL" = x; then
4272  if test -r ../../libtool; then
4273    coin_config_dir=../..
4274    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4275  fi
4276fi
4277
4278if test "x$LIBTOOL" = x; then
4279# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4280  # Stuff for libtool
4281  # Check whether --enable-shared or --disable-shared was given.
4282if test "${enable_shared+set}" = set; then
4283  enableval="$enable_shared"
4284  p=${PACKAGE-default}
4285    case $enableval in
4286    yes) enable_shared=yes ;;
4287    no) enable_shared=no ;;
4288    *)
4289      enable_shared=no
4290      # Look at the argument we got.  We use all the common list separators.
4291      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4292      for pkg in $enableval; do
4293        IFS="$lt_save_ifs"
4294        if test "X$pkg" = "X$p"; then
4295          enable_shared=yes
4296        fi
4297      done
4298      IFS="$lt_save_ifs"
4299      ;;
4300    esac
4301else
4302  enable_shared=yes
4303fi;
4304
4305# Check whether --enable-fast-install or --disable-fast-install was given.
4306if test "${enable_fast_install+set}" = set; then
4307  enableval="$enable_fast_install"
4308  p=${PACKAGE-default}
4309    case $enableval in
4310    yes) enable_fast_install=yes ;;
4311    no) enable_fast_install=no ;;
4312    *)
4313      enable_fast_install=no
4314      # Look at the argument we got.  We use all the common list separators.
4315      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316      for pkg in $enableval; do
4317        IFS="$lt_save_ifs"
4318        if test "X$pkg" = "X$p"; then
4319          enable_fast_install=yes
4320        fi
4321      done
4322      IFS="$lt_save_ifs"
4323      ;;
4324    esac
4325else
4326  enable_fast_install=yes
4327fi;
4328
4329echo "$as_me:$LINENO: checking host system type" >&5
4330echo $ECHO_N "checking host system type... $ECHO_C" >&6
4331if test "${ac_cv_host+set}" = set; then
4332  echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334  ac_cv_host_alias=$host_alias
4335test -z "$ac_cv_host_alias" &&
4336  ac_cv_host_alias=$ac_cv_build_alias
4337ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4338  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4339echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4340   { (exit 1); exit 1; }; }
4341
4342fi
4343echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4344echo "${ECHO_T}$ac_cv_host" >&6
4345host=$ac_cv_host
4346host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4347host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4348host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4349
4350
4351echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4352echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4353if test "${lt_cv_path_SED+set}" = set; then
4354  echo $ECHO_N "(cached) $ECHO_C" >&6
4355else
4356  # Loop through the user's path and test for sed and gsed.
4357# Then use that list of sed's as ones to test for truncation.
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361  IFS=$as_save_IFS
4362  test -z "$as_dir" && as_dir=.
4363  for lt_ac_prog in sed gsed; do
4364    for ac_exec_ext in '' $ac_executable_extensions; do
4365      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4366        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4367      fi
4368    done
4369  done
4370done
4371lt_ac_max=0
4372lt_ac_count=0
4373# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4374# along with /bin/sed that truncates output.
4375for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4376  test ! -f $lt_ac_sed && continue
4377  cat /dev/null > conftest.in
4378  lt_ac_count=0
4379  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4380  # Check for GNU sed and select it if it is found.
4381  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4382    lt_cv_path_SED=$lt_ac_sed
4383    break
4384  fi
4385  while true; do
4386    cat conftest.in conftest.in >conftest.tmp
4387    mv conftest.tmp conftest.in
4388    cp conftest.in conftest.nl
4389    echo >>conftest.nl
4390    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4391    cmp -s conftest.out conftest.nl || break
4392    # 10000 chars as input seems more than enough
4393    test $lt_ac_count -gt 10 && break
4394    lt_ac_count=`expr $lt_ac_count + 1`
4395    if test $lt_ac_count -gt $lt_ac_max; then
4396      lt_ac_max=$lt_ac_count
4397      lt_cv_path_SED=$lt_ac_sed
4398    fi
4399  done
4400done
4401
4402fi
4403
4404SED=$lt_cv_path_SED
4405echo "$as_me:$LINENO: result: $SED" >&5
4406echo "${ECHO_T}$SED" >&6
4407
4408
4409# Check whether --with-gnu-ld or --without-gnu-ld was given.
4410if test "${with_gnu_ld+set}" = set; then
4411  withval="$with_gnu_ld"
4412  test "$withval" = no || with_gnu_ld=yes
4413else
4414  with_gnu_ld=no
4415fi;
4416ac_prog=ld
4417if test "$GCC" = yes; then
4418  # Check if gcc -print-prog-name=ld gives a path.
4419  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4420echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4421  case $host in
4422  *-*-mingw*)
4423    # gcc leaves a trailing carriage return which upsets mingw
4424    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4425  *)
4426    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4427  esac
4428  case $ac_prog in
4429    # Accept absolute paths.
4430    [\\/]* | ?:[\\/]*)
4431      re_direlt='/[^/][^/]*/\.\./'
4432      # Canonicalize the pathname of ld
4433      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4434      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4435        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4436      done
4437      test -z "$LD" && LD="$ac_prog"
4438      ;;
4439  "")
4440    # If it fails, then pretend we aren't using GCC.
4441    ac_prog=ld
4442    ;;
4443  *)
4444    # If it is relative, then search for the first ld in PATH.
4445    with_gnu_ld=unknown
4446    ;;
4447  esac
4448elif test "$with_gnu_ld" = yes; then
4449  echo "$as_me:$LINENO: checking for GNU ld" >&5
4450echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4451else
4452  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4453echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4454fi
4455if test "${lt_cv_path_LD+set}" = set; then
4456  echo $ECHO_N "(cached) $ECHO_C" >&6
4457else
4458  if test -z "$LD"; then
4459  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4460  for ac_dir in $PATH; do
4461    IFS="$lt_save_ifs"
4462    test -z "$ac_dir" && ac_dir=.
4463    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4464      lt_cv_path_LD="$ac_dir/$ac_prog"
4465      # Check to see if the program is GNU ld.  I'd rather use --version,
4466      # but apparently some variants of GNU ld only accept -v.
4467      # Break only if it was the GNU/non-GNU ld that we prefer.
4468      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4469      *GNU* | *'with BFD'*)
4470        test "$with_gnu_ld" != no && break
4471        ;;
4472      *)
4473        test "$with_gnu_ld" != yes && break
4474        ;;
4475      esac
4476    fi
4477  done
4478  IFS="$lt_save_ifs"
4479else
4480  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4481fi
4482fi
4483
4484LD="$lt_cv_path_LD"
4485if test -n "$LD"; then
4486  echo "$as_me:$LINENO: result: $LD" >&5
4487echo "${ECHO_T}$LD" >&6
4488else
4489  echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491fi
4492test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4493echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4494   { (exit 1); exit 1; }; }
4495echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4496echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4497if test "${lt_cv_prog_gnu_ld+set}" = set; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4501case `$LD -v 2>&1 </dev/null` in
4502*GNU* | *'with BFD'*)
4503  lt_cv_prog_gnu_ld=yes
4504  ;;
4505*)
4506  lt_cv_prog_gnu_ld=no
4507  ;;
4508esac
4509fi
4510echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4511echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4512with_gnu_ld=$lt_cv_prog_gnu_ld
4513
4514
4515echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4516echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4517if test "${lt_cv_ld_reload_flag+set}" = set; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  lt_cv_ld_reload_flag='-r'
4521fi
4522echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4523echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4524reload_flag=$lt_cv_ld_reload_flag
4525case $reload_flag in
4526"" | " "*) ;;
4527*) reload_flag=" $reload_flag" ;;
4528esac
4529reload_cmds='$LD$reload_flag -o $output$reload_objs'
4530case $host_os in
4531  darwin*)
4532    if test "$GCC" = yes; then
4533      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4534    else
4535      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4536    fi
4537    ;;
4538esac
4539
4540echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4541echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4542if test "${lt_cv_path_NM+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  if test -n "$NM"; then
4546  # Let the user override the test.
4547  lt_cv_path_NM="$NM"
4548else
4549  lt_nm_to_check="${ac_tool_prefix}nm"
4550  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4551    lt_nm_to_check="$lt_nm_to_check nm"
4552  fi
4553  for lt_tmp_nm in $lt_nm_to_check; do
4554    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4555    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4556      IFS="$lt_save_ifs"
4557      test -z "$ac_dir" && ac_dir=.
4558      tmp_nm="$ac_dir/$lt_tmp_nm"
4559      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4560        # Check to see if the nm accepts a BSD-compat flag.
4561        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4562        #   nm: unknown option "B" ignored
4563        # Tru64's nm complains that /dev/null is an invalid object file
4564        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4565        */dev/null* | *'Invalid file or object type'*)
4566          lt_cv_path_NM="$tmp_nm -B"
4567          break
4568          ;;
4569        *)
4570          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4571          */dev/null*)
4572            lt_cv_path_NM="$tmp_nm -p"
4573            break
4574            ;;
4575          *)
4576            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4577            continue # so that we can try to find one that supports BSD flags
4578            ;;
4579          esac
4580          ;;
4581        esac
4582      fi
4583    done
4584    IFS="$lt_save_ifs"
4585  done
4586  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4587fi
4588fi
4589echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4590echo "${ECHO_T}$lt_cv_path_NM" >&6
4591NM="$lt_cv_path_NM"
4592
4593echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4594echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4595if test "${lt_cv_deplibs_check_method+set}" = set; then
4596  echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598  lt_cv_file_magic_cmd='$MAGIC_CMD'
4599lt_cv_file_magic_test_file=
4600lt_cv_deplibs_check_method='unknown'
4601# Need to set the preceding variable on all platforms that support
4602# interlibrary dependencies.
4603# 'none' -- dependencies not supported.
4604# `unknown' -- same as none, but documents that we really don't know.
4605# 'pass_all' -- all dependencies passed with no checks.
4606# 'test_compile' -- check by making test program.
4607# 'file_magic [[regex]]' -- check by looking for files in library path
4608# which responds to the $file_magic_cmd with a given extended regex.
4609# If you have `file' or equivalent on your system and you're not sure
4610# whether `pass_all' will *always* work, you probably want this one.
4611
4612case $host_os in
4613aix4* | aix5*)
4614  lt_cv_deplibs_check_method=pass_all
4615  ;;
4616
4617beos*)
4618  lt_cv_deplibs_check_method=pass_all
4619  ;;
4620
4621bsdi[45]*)
4622  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4623  lt_cv_file_magic_cmd='/usr/bin/file -L'
4624  lt_cv_file_magic_test_file=/shlib/libc.so
4625  ;;
4626
4627cygwin*)
4628  # func_win32_libid is a shell function defined in ltmain.sh
4629  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4630  lt_cv_file_magic_cmd='func_win32_libid'
4631  ;;
4632
4633mingw* | pw32*)
4634  # Base MSYS/MinGW do not provide the 'file' command needed by
4635  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4636  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4637  lt_cv_file_magic_cmd='$OBJDUMP -f'
4638  ;;
4639
4640darwin* | rhapsody*)
4641  lt_cv_deplibs_check_method=pass_all
4642  ;;
4643
4644freebsd* | kfreebsd*-gnu | dragonfly*)
4645  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4646    case $host_cpu in
4647    i*86 )
4648      # Not sure whether the presence of OpenBSD here was a mistake.
4649      # Let's accept both of them until this is cleared up.
4650      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4651      lt_cv_file_magic_cmd=/usr/bin/file
4652      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4653      ;;
4654    esac
4655  else
4656    lt_cv_deplibs_check_method=pass_all
4657  fi
4658  ;;
4659
4660gnu*)
4661  lt_cv_deplibs_check_method=pass_all
4662  ;;
4663
4664hpux10.20* | hpux11*)
4665  lt_cv_file_magic_cmd=/usr/bin/file
4666  case $host_cpu in
4667  ia64*)
4668    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4669    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4670    ;;
4671  hppa*64*)
4672    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]'
4673    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4674    ;;
4675  *)
4676    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4677    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4678    ;;
4679  esac
4680  ;;
4681
4682interix3*)
4683  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4684  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4685  ;;
4686
4687irix5* | irix6* | nonstopux*)
4688  case $LD in
4689  *-32|*"-32 ") libmagic=32-bit;;
4690  *-n32|*"-n32 ") libmagic=N32;;
4691  *-64|*"-64 ") libmagic=64-bit;;
4692  *) libmagic=never-match;;
4693  esac
4694  lt_cv_deplibs_check_method=pass_all
4695  ;;
4696
4697# This must be Linux ELF.
4698linux*)
4699  lt_cv_deplibs_check_method=pass_all
4700  ;;
4701
4702netbsd*)
4703  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4704    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4705  else
4706    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4707  fi
4708  ;;
4709
4710newos6*)
4711  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4712  lt_cv_file_magic_cmd=/usr/bin/file
4713  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4714  ;;
4715
4716nto-qnx*)
4717  lt_cv_deplibs_check_method=unknown
4718  ;;
4719
4720openbsd*)
4721  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4722    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4723  else
4724    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4725  fi
4726  ;;
4727
4728osf3* | osf4* | osf5*)
4729  lt_cv_deplibs_check_method=pass_all
4730  ;;
4731
4732solaris*)
4733  lt_cv_deplibs_check_method=pass_all
4734  ;;
4735
4736sysv4 | sysv4.3*)
4737  case $host_vendor in
4738  motorola)
4739    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]'
4740    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4741    ;;
4742  ncr)
4743    lt_cv_deplibs_check_method=pass_all
4744    ;;
4745  sequent)
4746    lt_cv_file_magic_cmd='/bin/file'
4747    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4748    ;;
4749  sni)
4750    lt_cv_file_magic_cmd='/bin/file'
4751    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4752    lt_cv_file_magic_test_file=/lib/libc.so
4753    ;;
4754  siemens)
4755    lt_cv_deplibs_check_method=pass_all
4756    ;;
4757  pc)
4758    lt_cv_deplibs_check_method=pass_all
4759    ;;
4760  esac
4761  ;;
4762
4763sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4764  lt_cv_deplibs_check_method=pass_all
4765  ;;
4766esac
4767
4768fi
4769echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4770echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4771file_magic_cmd=$lt_cv_file_magic_cmd
4772deplibs_check_method=$lt_cv_deplibs_check_method
4773test -z "$deplibs_check_method" && deplibs_check_method=unknown
4774
4775
4776
4777
4778# If no C compiler was specified, use CC.
4779LTCC=${LTCC-"$CC"}
4780
4781# If no C compiler flags were specified, use CFLAGS.
4782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4783
4784# Allow CC to be a program name with arguments.
4785compiler=$CC
4786
4787# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4788if test "${enable_libtool_lock+set}" = set; then
4789  enableval="$enable_libtool_lock"
4790
4791fi;
4792test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4793
4794# Some flags need to be propagated to the compiler or linker for good
4795# libtool support.
4796case $host in
4797ia64-*-hpux*)
4798  # Find out which ABI we are using.
4799  echo 'int i;' > conftest.$ac_ext
4800  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801  (eval $ac_compile) 2>&5
4802  ac_status=$?
4803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804  (exit $ac_status); }; then
4805    case `/usr/bin/file conftest.$ac_objext` in
4806    *ELF-32*)
4807      HPUX_IA64_MODE="32"
4808      ;;
4809    *ELF-64*)
4810      HPUX_IA64_MODE="64"
4811      ;;
4812    esac
4813  fi
4814  rm -rf conftest*
4815  ;;
4816*-*-irix6*)
4817  # Find out which ABI we are using.
4818  echo '#line 4818 "configure"' > conftest.$ac_ext
4819  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820  (eval $ac_compile) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); }; then
4824   if test "$lt_cv_prog_gnu_ld" = yes; then
4825    case `/usr/bin/file conftest.$ac_objext` in
4826    *32-bit*)
4827      LD="${LD-ld} -melf32bsmip"
4828      ;;
4829    *N32*)
4830      LD="${LD-ld} -melf32bmipn32"
4831      ;;
4832    *64-bit*)
4833      LD="${LD-ld} -melf64bmip"
4834      ;;
4835    esac
4836   else
4837    case `/usr/bin/file conftest.$ac_objext` in
4838    *32-bit*)
4839      LD="${LD-ld} -32"
4840      ;;
4841    *N32*)
4842      LD="${LD-ld} -n32"
4843      ;;
4844    *64-bit*)
4845      LD="${LD-ld} -64"
4846      ;;
4847    esac
4848   fi
4849  fi
4850  rm -rf conftest*
4851  ;;
4852
4853x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4854  # Find out which ABI we are using.
4855  echo 'int i;' > conftest.$ac_ext
4856  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857  (eval $ac_compile) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; then
4861    case `/usr/bin/file conftest.o` in
4862    *32-bit*)
4863      case $host in
4864        x86_64-*linux*)
4865          LD="${LD-ld} -m elf_i386"
4866          ;;
4867        ppc64-*linux*|powerpc64-*linux*)
4868          LD="${LD-ld} -m elf32ppclinux"
4869          ;;
4870        s390x-*linux*)
4871          LD="${LD-ld} -m elf_s390"
4872          ;;
4873        sparc64-*linux*)
4874          LD="${LD-ld} -m elf32_sparc"
4875          ;;
4876      esac
4877      ;;
4878    *64-bit*)
4879      case $host in
4880        x86_64-*linux*)
4881          LD="${LD-ld} -m elf_x86_64"
4882          ;;
4883        ppc*-*linux*|powerpc*-*linux*)
4884          LD="${LD-ld} -m elf64ppc"
4885          ;;
4886        s390*-*linux*)
4887          LD="${LD-ld} -m elf64_s390"
4888          ;;
4889        sparc*-*linux*)
4890          LD="${LD-ld} -m elf64_sparc"
4891          ;;
4892      esac
4893      ;;
4894    esac
4895  fi
4896  rm -rf conftest*
4897  ;;
4898
4899*-*-sco3.2v5*)
4900  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4901  SAVE_CFLAGS="$CFLAGS"
4902  CFLAGS="$CFLAGS -belf"
4903  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4904echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4905if test "${lt_cv_cc_needs_belf+set}" = set; then
4906  echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908  ac_ext=c
4909ac_cpp='$CPP $CPPFLAGS'
4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913
4914     cat >conftest.$ac_ext <<_ACEOF
4915/* confdefs.h.  */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h.  */
4920
4921int
4922main ()
4923{
4924
4925  ;
4926  return 0;
4927}
4928_ACEOF
4929rm -f conftest.$ac_objext conftest$ac_exeext
4930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4931  (eval $ac_link) 2>conftest.er1
4932  ac_status=$?
4933  grep -v '^ *+' conftest.er1 >conftest.err
4934  rm -f conftest.er1
4935  cat conftest.err >&5
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } &&
4938         { ac_try='test -z "$ac_c_werror_flag"
4939                         || test ! -s conftest.err'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; } &&
4945         { ac_try='test -s conftest$ac_exeext'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; }; then
4951  lt_cv_cc_needs_belf=yes
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956lt_cv_cc_needs_belf=no
4957fi
4958rm -f conftest.err conftest.$ac_objext \
4959      conftest$ac_exeext conftest.$ac_ext
4960     ac_ext=c
4961ac_cpp='$CPP $CPPFLAGS'
4962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964ac_compiler_gnu=$ac_cv_c_compiler_gnu
4965
4966fi
4967echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4968echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4969  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4970    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4971    CFLAGS="$SAVE_CFLAGS"
4972  fi
4973  ;;
4974sparc*-*solaris*)
4975  # Find out which ABI we are using.
4976  echo 'int i;' > conftest.$ac_ext
4977  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978  (eval $ac_compile) 2>&5
4979  ac_status=$?
4980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981  (exit $ac_status); }; then
4982    case `/usr/bin/file conftest.o` in
4983    *64-bit*)
4984      case $lt_cv_prog_gnu_ld in
4985      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4986      *)    LD="${LD-ld} -64" ;;
4987      esac
4988      ;;
4989    esac
4990  fi
4991  rm -rf conftest*
4992  ;;
4993
4994
4995esac
4996
4997need_locks="$enable_libtool_lock"
4998
4999
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5006echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5007# On Suns, sometimes $CPP names a directory.
5008if test -n "$CPP" && test -d "$CPP"; then
5009  CPP=
5010fi
5011if test -z "$CPP"; then
5012  if test "${ac_cv_prog_CPP+set}" = set; then
5013  echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015      # Double quotes because CPP needs to be expanded
5016    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5017    do
5018      ac_preproc_ok=false
5019for ac_c_preproc_warn_flag in '' yes
5020do
5021  # Use a header file that comes with gcc, so configuring glibc
5022  # with a fresh cross-compiler works.
5023  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024  # <limits.h> exists even on freestanding compilers.
5025  # On the NeXT, cc -E runs the code through the compiler's parser,
5026  # not just through cpp. "Syntax error" is here to catch this case.
5027  cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h.  */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h.  */
5033#ifdef __STDC__
5034# include <limits.h>
5035#else
5036# include <assert.h>
5037#endif
5038                     Syntax error
5039_ACEOF
5040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5041  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5042  ac_status=$?
5043  grep -v '^ *+' conftest.er1 >conftest.err
5044  rm -f conftest.er1
5045  cat conftest.err >&5
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } >/dev/null; then
5048  if test -s conftest.err; then
5049    ac_cpp_err=$ac_c_preproc_warn_flag
5050    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5051  else
5052    ac_cpp_err=
5053  fi
5054else
5055  ac_cpp_err=yes
5056fi
5057if test -z "$ac_cpp_err"; then
5058  :
5059else
5060  echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063  # Broken: fails on valid input.
5064continue
5065fi
5066rm -f conftest.err conftest.$ac_ext
5067
5068  # OK, works on sane cases.  Now check whether non-existent headers
5069  # can be detected and how.
5070  cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h.  */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h.  */
5076#include <ac_nonexistent.h>
5077_ACEOF
5078if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5080  ac_status=$?
5081  grep -v '^ *+' conftest.er1 >conftest.err
5082  rm -f conftest.er1
5083  cat conftest.err >&5
5084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085  (exit $ac_status); } >/dev/null; then
5086  if test -s conftest.err; then
5087    ac_cpp_err=$ac_c_preproc_warn_flag
5088    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5089  else
5090    ac_cpp_err=
5091  fi
5092else
5093  ac_cpp_err=yes
5094fi
5095if test -z "$ac_cpp_err"; then
5096  # Broken: success on invalid input.
5097continue
5098else
5099  echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102  # Passes both tests.
5103ac_preproc_ok=:
5104break
5105fi
5106rm -f conftest.err conftest.$ac_ext
5107
5108done
5109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5110rm -f conftest.err conftest.$ac_ext
5111if $ac_preproc_ok; then
5112  break
5113fi
5114
5115    done
5116    ac_cv_prog_CPP=$CPP
5117
5118fi
5119  CPP=$ac_cv_prog_CPP
5120else
5121  ac_cv_prog_CPP=$CPP
5122fi
5123echo "$as_me:$LINENO: result: $CPP" >&5
5124echo "${ECHO_T}$CPP" >&6
5125ac_preproc_ok=false
5126for ac_c_preproc_warn_flag in '' yes
5127do
5128  # Use a header file that comes with gcc, so configuring glibc
5129  # with a fresh cross-compiler works.
5130  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5131  # <limits.h> exists even on freestanding compilers.
5132  # On the NeXT, cc -E runs the code through the compiler's parser,
5133  # not just through cpp. "Syntax error" is here to catch this case.
5134  cat >conftest.$ac_ext <<_ACEOF
5135/* confdefs.h.  */
5136_ACEOF
5137cat confdefs.h >>conftest.$ac_ext
5138cat >>conftest.$ac_ext <<_ACEOF
5139/* end confdefs.h.  */
5140#ifdef __STDC__
5141# include <limits.h>
5142#else
5143# include <assert.h>
5144#endif
5145                     Syntax error
5146_ACEOF
5147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5148  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5149  ac_status=$?
5150  grep -v '^ *+' conftest.er1 >conftest.err
5151  rm -f conftest.er1
5152  cat conftest.err >&5
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } >/dev/null; then
5155  if test -s conftest.err; then
5156    ac_cpp_err=$ac_c_preproc_warn_flag
5157    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5158  else
5159    ac_cpp_err=
5160  fi
5161else
5162  ac_cpp_err=yes
5163fi
5164if test -z "$ac_cpp_err"; then
5165  :
5166else
5167  echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170  # Broken: fails on valid input.
5171continue
5172fi
5173rm -f conftest.err conftest.$ac_ext
5174
5175  # OK, works on sane cases.  Now check whether non-existent headers
5176  # can be detected and how.
5177  cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h.  */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h.  */
5183#include <ac_nonexistent.h>
5184_ACEOF
5185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } >/dev/null; then
5193  if test -s conftest.err; then
5194    ac_cpp_err=$ac_c_preproc_warn_flag
5195    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196  else
5197    ac_cpp_err=
5198  fi
5199else
5200  ac_cpp_err=yes
5201fi
5202if test -z "$ac_cpp_err"; then
5203  # Broken: success on invalid input.
5204continue
5205else
5206  echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209  # Passes both tests.
5210ac_preproc_ok=:
5211break
5212fi
5213rm -f conftest.err conftest.$ac_ext
5214
5215done
5216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217rm -f conftest.err conftest.$ac_ext
5218if $ac_preproc_ok; then
5219  :
5220else
5221  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5222See \`config.log' for more details." >&5
5223echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5224See \`config.log' for more details." >&2;}
5225   { (exit 1); exit 1; }; }
5226fi
5227
5228ac_ext=c
5229ac_cpp='$CPP $CPPFLAGS'
5230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233
5234
5235echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5236echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5237if test "${ac_cv_header_stdc+set}" = set; then
5238  echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240  cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h.  */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h.  */
5246#include <stdlib.h>
5247#include <stdarg.h>
5248#include <string.h>
5249#include <float.h>
5250
5251int
5252main ()
5253{
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261  (eval $ac_compile) 2>conftest.er1
5262  ac_status=$?
5263  grep -v '^ *+' conftest.er1 >conftest.err
5264  rm -f conftest.er1
5265  cat conftest.err >&5
5266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267  (exit $ac_status); } &&
5268         { ac_try='test -z "$ac_c_werror_flag"
5269                         || test ! -s conftest.err'
5270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271  (eval $ac_try) 2>&5
5272  ac_status=$?
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); }; } &&
5275         { ac_try='test -s conftest.$ac_objext'
5276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277  (eval $ac_try) 2>&5
5278  ac_status=$?
5279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280  (exit $ac_status); }; }; then
5281  ac_cv_header_stdc=yes
5282else
5283  echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286ac_cv_header_stdc=no
5287fi
5288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5289
5290if test $ac_cv_header_stdc = yes; then
5291  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292  cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h.  */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h.  */
5298#include <string.h>
5299
5300_ACEOF
5301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302  $EGREP "memchr" >/dev/null 2>&1; then
5303  :
5304else
5305  ac_cv_header_stdc=no
5306fi
5307rm -f conftest*
5308
5309fi
5310
5311if test $ac_cv_header_stdc = yes; then
5312  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5313  cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h.  */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h.  */
5319#include <stdlib.h>
5320
5321_ACEOF
5322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323  $EGREP "free" >/dev/null 2>&1; then
5324  :
5325else
5326  ac_cv_header_stdc=no
5327fi
5328rm -f conftest*
5329
5330fi
5331
5332if test $ac_cv_header_stdc = yes; then
5333  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334  if test "$cross_compiling" = yes; then
5335  :
5336else
5337  cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h.  */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h.  */
5343#include <ctype.h>
5344#if ((' ' & 0x0FF) == 0x020)
5345# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5346# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5347#else
5348# define ISLOWER(c) \
5349                   (('a' <= (c) && (c) <= 'i') \
5350                     || ('j' <= (c) && (c) <= 'r') \
5351                     || ('s' <= (c) && (c) <= 'z'))
5352# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5353#endif
5354
5355#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5356int
5357main ()
5358{
5359  int i;
5360  for (i = 0; i < 256; i++)
5361    if (XOR (islower (i), ISLOWER (i))
5362        || toupper (i) != TOUPPER (i))
5363      exit(2);
5364  exit (0);
5365}
5366_ACEOF
5367rm -f conftest$ac_exeext
5368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369  (eval $ac_link) 2>&5
5370  ac_status=$?
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374  (eval $ac_try) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); }; }; then
5378  :
5379else
5380  echo "$as_me: program exited with status $ac_status" >&5
5381echo "$as_me: failed program was:" >&5
5382sed 's/^/| /' conftest.$ac_ext >&5
5383
5384( exit $ac_status )
5385ac_cv_header_stdc=no
5386fi
5387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5388fi
5389fi
5390fi
5391echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5392echo "${ECHO_T}$ac_cv_header_stdc" >&6
5393if test $ac_cv_header_stdc = yes; then
5394
5395cat >>confdefs.h <<\_ACEOF
5396#define STDC_HEADERS 1
5397_ACEOF
5398
5399fi
5400
5401# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412                  inttypes.h stdint.h unistd.h
5413do
5414as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415echo "$as_me:$LINENO: checking for $ac_header" >&5
5416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5417if eval "test \"\${$as_ac_Header+set}\" = set"; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  cat >conftest.$ac_ext <<_ACEOF
5421/* confdefs.h.  */
5422_ACEOF
5423cat confdefs.h >>conftest.$ac_ext
5424cat >>conftest.$ac_ext <<_ACEOF
5425/* end confdefs.h.  */
5426$ac_includes_default
5427
5428#include <$ac_header>
5429_ACEOF
5430rm -f conftest.$ac_objext
5431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432  (eval $ac_compile) 2>conftest.er1
5433  ac_status=$?
5434  grep -v '^ *+' conftest.er1 >conftest.err
5435  rm -f conftest.er1
5436  cat conftest.err >&5
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); } &&
5439         { ac_try='test -z "$ac_c_werror_flag"
5440                         || test ! -s conftest.err'
5441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442  (eval $ac_try) 2>&5
5443  ac_status=$?
5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); }; } &&
5446         { ac_try='test -s conftest.$ac_objext'
5447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448  (eval $ac_try) 2>&5
5449  ac_status=$?
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); }; }; then
5452  eval "$as_ac_Header=yes"
5453else
5454  echo "$as_me: failed program was:" >&5
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
5457eval "$as_ac_Header=no"
5458fi
5459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460fi
5461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5463if test `eval echo '${'$as_ac_Header'}'` = yes; then
5464  cat >>confdefs.h <<_ACEOF
5465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5466_ACEOF
5467
5468fi
5469
5470done
5471
5472
5473
5474for ac_header in dlfcn.h
5475do
5476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5477if eval "test \"\${$as_ac_Header+set}\" = set"; then
5478  echo "$as_me:$LINENO: checking for $ac_header" >&5
5479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5480if eval "test \"\${$as_ac_Header+set}\" = set"; then
5481  echo $ECHO_N "(cached) $ECHO_C" >&6
5482fi
5483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5485else
5486  # Is the header compilable?
5487echo "$as_me:$LINENO: checking $ac_header usability" >&5
5488echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5489cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495$ac_includes_default
5496#include <$ac_header>
5497_ACEOF
5498rm -f conftest.$ac_objext
5499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500  (eval $ac_compile) 2>conftest.er1
5501  ac_status=$?
5502  grep -v '^ *+' conftest.er1 >conftest.err
5503  rm -f conftest.er1
5504  cat conftest.err >&5
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); } &&
5507         { ac_try='test -z "$ac_c_werror_flag"
5508                         || test ! -s conftest.err'
5509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510  (eval $ac_try) 2>&5
5511  ac_status=$?
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); }; } &&
5514         { ac_try='test -s conftest.$ac_objext'
5515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516  (eval $ac_try) 2>&5
5517  ac_status=$?
5518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519  (exit $ac_status); }; }; then
5520  ac_header_compiler=yes
5521else
5522  echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
5525ac_header_compiler=no
5526fi
5527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5529echo "${ECHO_T}$ac_header_compiler" >&6
5530
5531# Is the header present?
5532echo "$as_me:$LINENO: checking $ac_header presence" >&5
5533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5534cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h.  */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h.  */
5540#include <$ac_header>
5541_ACEOF
5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544  ac_status=$?
5545  grep -v '^ *+' conftest.er1 >conftest.err
5546  rm -f conftest.er1
5547  cat conftest.err >&5
5548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549  (exit $ac_status); } >/dev/null; then
5550  if test -s conftest.err; then
5551    ac_cpp_err=$ac_c_preproc_warn_flag
5552    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5553  else
5554    ac_cpp_err=
5555  fi
5556else
5557  ac_cpp_err=yes
5558fi
5559if test -z "$ac_cpp_err"; then
5560  ac_header_preproc=yes
5561else
5562  echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565  ac_header_preproc=no
5566fi
5567rm -f conftest.err conftest.$ac_ext
5568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5569echo "${ECHO_T}$ac_header_preproc" >&6
5570
5571# So?  What about this header?
5572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5573  yes:no: )
5574    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5576    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5578    ac_header_preproc=yes
5579    ;;
5580  no:yes:* )
5581    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5583    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5584echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5585    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5587    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5588echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5589    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5591    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5593    (
5594      cat <<\_ASBOX
5595## --------------------------------------------------------------- ##
5596## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5597## --------------------------------------------------------------- ##
5598_ASBOX
5599    ) |
5600      sed "s/^/$as_me: WARNING:     /" >&2
5601    ;;
5602esac
5603echo "$as_me:$LINENO: checking for $ac_header" >&5
5604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5605if eval "test \"\${$as_ac_Header+set}\" = set"; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  eval "$as_ac_Header=\$ac_header_preproc"
5609fi
5610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612
5613fi
5614if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615  cat >>confdefs.h <<_ACEOF
5616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617_ACEOF
5618
5619fi
5620
5621done
5622
5623ac_ext=cc
5624ac_cpp='$CXXCPP $CPPFLAGS'
5625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5628if test -n "$ac_tool_prefix"; then
5629  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5630  do
5631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5633echo "$as_me:$LINENO: checking for $ac_word" >&5
5634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635if test "${ac_cv_prog_CXX+set}" = set; then
5636  echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638  if test -n "$CXX"; then
5639  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646  for ac_exec_ext in '' $ac_executable_extensions; do
5647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653done
5654
5655fi
5656fi
5657CXX=$ac_cv_prog_CXX
5658if test -n "$CXX"; then
5659  echo "$as_me:$LINENO: result: $CXX" >&5
5660echo "${ECHO_T}$CXX" >&6
5661else
5662  echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664fi
5665
5666    test -n "$CXX" && break
5667  done
5668fi
5669if test -z "$CXX"; then
5670  ac_ct_CXX=$CXX
5671  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5672do
5673  # Extract the first word of "$ac_prog", so it can be a program name with args.
5674set dummy $ac_prog; ac_word=$2
5675echo "$as_me:$LINENO: checking for $ac_word" >&5
5676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5677if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680  if test -n "$ac_ct_CXX"; then
5681  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682else
5683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684for as_dir in $PATH
5685do
5686  IFS=$as_save_IFS
5687  test -z "$as_dir" && as_dir=.
5688  for ac_exec_ext in '' $ac_executable_extensions; do
5689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690    ac_cv_prog_ac_ct_CXX="$ac_prog"
5691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692    break 2
5693  fi
5694done
5695done
5696
5697fi
5698fi
5699ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5700if test -n "$ac_ct_CXX"; then
5701  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5702echo "${ECHO_T}$ac_ct_CXX" >&6
5703else
5704  echo "$as_me:$LINENO: result: no" >&5
5705echo "${ECHO_T}no" >&6
5706fi
5707
5708  test -n "$ac_ct_CXX" && break
5709done
5710test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5711
5712  CXX=$ac_ct_CXX
5713fi
5714
5715
5716# Provide some information about the compiler.
5717echo "$as_me:$LINENO:" \
5718     "checking for C++ compiler version" >&5
5719ac_compiler=`set X $ac_compile; echo $2`
5720{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5721  (eval $ac_compiler --version </dev/null >&5) 2>&5
5722  ac_status=$?
5723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724  (exit $ac_status); }
5725{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5726  (eval $ac_compiler -v </dev/null >&5) 2>&5
5727  ac_status=$?
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); }
5730{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5731  (eval $ac_compiler -V </dev/null >&5) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }
5735
5736echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5737echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5738if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5739  echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741  cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h.  */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h.  */
5747
5748int
5749main ()
5750{
5751#ifndef __GNUC__
5752       choke me
5753#endif
5754
5755  ;
5756  return 0;
5757}
5758_ACEOF
5759rm -f conftest.$ac_objext
5760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761  (eval $ac_compile) 2>conftest.er1
5762  ac_status=$?
5763  grep -v '^ *+' conftest.er1 >conftest.err
5764  rm -f conftest.er1
5765  cat conftest.err >&5
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); } &&
5768         { ac_try='test -z "$ac_cxx_werror_flag"
5769                         || test ! -s conftest.err'
5770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771  (eval $ac_try) 2>&5
5772  ac_status=$?
5773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774  (exit $ac_status); }; } &&
5775         { ac_try='test -s conftest.$ac_objext'
5776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777  (eval $ac_try) 2>&5
5778  ac_status=$?
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); }; }; then
5781  ac_compiler_gnu=yes
5782else
5783  echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
5786ac_compiler_gnu=no
5787fi
5788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5789ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5790
5791fi
5792echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5793echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5794GXX=`test $ac_compiler_gnu = yes && echo yes`
5795ac_test_CXXFLAGS=${CXXFLAGS+set}
5796ac_save_CXXFLAGS=$CXXFLAGS
5797CXXFLAGS="-g"
5798echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5799echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5800if test "${ac_cv_prog_cxx_g+set}" = set; then
5801  echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803  cat >conftest.$ac_ext <<_ACEOF
5804/* confdefs.h.  */
5805_ACEOF
5806cat confdefs.h >>conftest.$ac_ext
5807cat >>conftest.$ac_ext <<_ACEOF
5808/* end confdefs.h.  */
5809
5810int
5811main ()
5812{
5813
5814  ;
5815  return 0;
5816}
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820  (eval $ac_compile) 2>conftest.er1
5821  ac_status=$?
5822  grep -v '^ *+' conftest.er1 >conftest.err
5823  rm -f conftest.er1
5824  cat conftest.err >&5
5825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826  (exit $ac_status); } &&
5827         { ac_try='test -z "$ac_cxx_werror_flag"
5828                         || test ! -s conftest.err'
5829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830  (eval $ac_try) 2>&5
5831  ac_status=$?
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); }; } &&
5834         { ac_try='test -s conftest.$ac_objext'
5835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836  (eval $ac_try) 2>&5
5837  ac_status=$?
5838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839  (exit $ac_status); }; }; then
5840  ac_cv_prog_cxx_g=yes
5841else
5842  echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845ac_cv_prog_cxx_g=no
5846fi
5847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848fi
5849echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5850echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5851if test "$ac_test_CXXFLAGS" = set; then
5852  CXXFLAGS=$ac_save_CXXFLAGS
5853elif test $ac_cv_prog_cxx_g = yes; then
5854  if test "$GXX" = yes; then
5855    CXXFLAGS="-g -O2"
5856  else
5857    CXXFLAGS="-g"
5858  fi
5859else
5860  if test "$GXX" = yes; then
5861    CXXFLAGS="-O2"
5862  else
5863    CXXFLAGS=
5864  fi
5865fi
5866for ac_declaration in \
5867   '' \
5868   'extern "C" void std::exit (int) throw (); using std::exit;' \
5869   'extern "C" void std::exit (int); using std::exit;' \
5870   'extern "C" void exit (int) throw ();' \
5871   'extern "C" void exit (int);' \
5872   'void exit (int);'
5873do
5874  cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h.  */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h.  */
5880$ac_declaration
5881#include <stdlib.h>
5882int
5883main ()
5884{
5885exit (42);
5886  ;
5887  return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892  (eval $ac_compile) 2>conftest.er1
5893  ac_status=$?
5894  grep -v '^ *+' conftest.er1 >conftest.err
5895  rm -f conftest.er1
5896  cat conftest.err >&5
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); } &&
5899         { ac_try='test -z "$ac_cxx_werror_flag"
5900                         || test ! -s conftest.err'
5901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902  (eval $ac_try) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; } &&
5906         { ac_try='test -s conftest.$ac_objext'
5907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908  (eval $ac_try) 2>&5
5909  ac_status=$?
5910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911  (exit $ac_status); }; }; then
5912  :
5913else
5914  echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917continue
5918fi
5919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5920  cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h.  */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h.  */
5926$ac_declaration
5927int
5928main ()
5929{
5930exit (42);
5931  ;
5932  return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937  (eval $ac_compile) 2>conftest.er1
5938  ac_status=$?
5939  grep -v '^ *+' conftest.er1 >conftest.err
5940  rm -f conftest.er1
5941  cat conftest.err >&5
5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943  (exit $ac_status); } &&
5944         { ac_try='test -z "$ac_cxx_werror_flag"
5945                         || test ! -s conftest.err'
5946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947  (eval $ac_try) 2>&5
5948  ac_status=$?
5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950  (exit $ac_status); }; } &&
5951         { ac_try='test -s conftest.$ac_objext'
5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953  (eval $ac_try) 2>&5
5954  ac_status=$?
5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956  (exit $ac_status); }; }; then
5957  break
5958else
5959  echo "$as_me: failed program was:" >&5
5960sed 's/^/| /' conftest.$ac_ext >&5
5961
5962fi
5963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5964done
5965rm -f conftest*
5966if test -n "$ac_declaration"; then
5967  echo '#ifdef __cplusplus' >>confdefs.h
5968  echo $ac_declaration      >>confdefs.h
5969  echo '#endif'             >>confdefs.h
5970fi
5971
5972ac_ext=cc
5973ac_cpp='$CXXCPP $CPPFLAGS'
5974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5977
5978depcc="$CXX"  am_compiler_list=
5979
5980echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5981echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5982if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5983  echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5986  # We make a subdir and do the tests there.  Otherwise we can end up
5987  # making bogus files that we don't know about and never remove.  For
5988  # instance it was reported that on HP-UX the gcc test will end up
5989  # making a dummy file named `D' -- because `-MD' means `put the output
5990  # in D'.
5991  mkdir conftest.dir
5992  # Copy depcomp to subdir because otherwise we won't find it if we're
5993  # using a relative directory.
5994  cp "$am_depcomp" conftest.dir
5995  cd conftest.dir
5996  # We will build objects and dependencies in a subdirectory because
5997  # it helps to detect inapplicable dependency modes.  For instance
5998  # both Tru64's cc and ICC support -MD to output dependencies as a
5999  # side effect of compilation, but ICC will put the dependencies in
6000  # the current directory while Tru64 will put them in the object
6001  # directory.
6002  mkdir sub
6003
6004  am_cv_CXX_dependencies_compiler_type=none
6005  if test "$am_compiler_list" = ""; then
6006     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6007  fi
6008  for depmode in $am_compiler_list; do
6009    # Setup a source with many dependencies, because some compilers
6010    # like to wrap large dependency lists on column 80 (with \), and
6011    # we should not choose a depcomp mode which is confused by this.
6012    #
6013    # We need to recreate these files for each test, as the compiler may
6014    # overwrite some of them when testing with obscure command lines.
6015    # This happens at least with the AIX C compiler.
6016    : > sub/conftest.c
6017    for i in 1 2 3 4 5 6; do
6018      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6019      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6020      # Solaris 8's {/usr,}/bin/sh.
6021      touch sub/conftst$i.h
6022    done
6023    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6024
6025    case $depmode in
6026    nosideeffect)
6027      # after this tag, mechanisms are not by side-effect, so they'll
6028      # only be used when explicitly requested
6029      if test "x$enable_dependency_tracking" = xyes; then
6030        continue
6031      else
6032        break
6033      fi
6034      ;;
6035    none) break ;;
6036    esac
6037    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6038    # mode.  It turns out that the SunPro C++ compiler does not properly
6039    # handle `-M -o', and we need to detect this.
6040    if depmode=$depmode \
6041       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6042       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6043       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6044         >/dev/null 2>conftest.err &&
6045       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6046       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6047       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6048      # icc doesn't choke on unknown options, it will just issue warnings
6049      # or remarks (even with -Werror).  So we grep stderr for any message
6050      # that says an option was ignored or not supported.
6051      # When given -MP, icc 7.0 and 7.1 complain thusly:
6052      #   icc: Command line warning: ignoring option '-M'; no argument required
6053      # The diagnosis changed in icc 8.0:
6054      #   icc: Command line remark: option '-MP' not supported
6055      if (grep 'ignoring option' conftest.err ||
6056          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6057        am_cv_CXX_dependencies_compiler_type=$depmode
6058        break
6059      fi
6060    fi
6061  done
6062
6063  cd ..
6064  rm -rf conftest.dir
6065else
6066  am_cv_CXX_dependencies_compiler_type=none
6067fi
6068
6069fi
6070echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6071echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6072CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6073
6074
6075
6076if
6077  test "x$enable_dependency_tracking" != xno \
6078  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6079  am__fastdepCXX_TRUE=
6080  am__fastdepCXX_FALSE='#'
6081else
6082  am__fastdepCXX_TRUE='#'
6083  am__fastdepCXX_FALSE=
6084fi
6085
6086
6087
6088
6089if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6090    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6091    (test "X$CXX" != "Xg++"))) ; then
6092  ac_ext=cc
6093ac_cpp='$CXXCPP $CPPFLAGS'
6094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6097echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6098echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6099if test -z "$CXXCPP"; then
6100  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6101  echo $ECHO_N "(cached) $ECHO_C" >&6
6102else
6103      # Double quotes because CXXCPP needs to be expanded
6104    for CXXCPP in "$CXX -E" "/lib/cpp"
6105    do
6106      ac_preproc_ok=false
6107for ac_cxx_preproc_warn_flag in '' yes
6108do
6109  # Use a header file that comes with gcc, so configuring glibc
6110  # with a fresh cross-compiler works.
6111  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6112  # <limits.h> exists even on freestanding compilers.
6113  # On the NeXT, cc -E runs the code through the compiler's parser,
6114  # not just through cpp. "Syntax error" is here to catch this case.
6115  cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h.  */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h.  */
6121#ifdef __STDC__
6122# include <limits.h>
6123#else
6124# include <assert.h>
6125#endif
6126                     Syntax error
6127_ACEOF
6128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6130  ac_status=$?
6131  grep -v '^ *+' conftest.er1 >conftest.err
6132  rm -f conftest.er1
6133  cat conftest.err >&5
6134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135  (exit $ac_status); } >/dev/null; then
6136  if test -s conftest.err; then
6137    ac_cpp_err=$ac_cxx_preproc_warn_flag
6138    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6139  else
6140    ac_cpp_err=
6141  fi
6142else
6143  ac_cpp_err=yes
6144fi
6145if test -z "$ac_cpp_err"; then
6146  :
6147else
6148  echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151  # Broken: fails on valid input.
6152continue
6153fi
6154rm -f conftest.err conftest.$ac_ext
6155
6156  # OK, works on sane cases.  Now check whether non-existent headers
6157  # can be detected and how.
6158  cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h.  */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h.  */
6164#include <ac_nonexistent.h>
6165_ACEOF
6166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6167  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6168  ac_status=$?
6169  grep -v '^ *+' conftest.er1 >conftest.err
6170  rm -f conftest.er1
6171  cat conftest.err >&5
6172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173  (exit $ac_status); } >/dev/null; then
6174  if test -s conftest.err; then
6175    ac_cpp_err=$ac_cxx_preproc_warn_flag
6176    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6177  else
6178    ac_cpp_err=
6179  fi
6180else
6181  ac_cpp_err=yes
6182fi
6183if test -z "$ac_cpp_err"; then
6184  # Broken: success on invalid input.
6185continue
6186else
6187  echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190  # Passes both tests.
6191ac_preproc_ok=:
6192break
6193fi
6194rm -f conftest.err conftest.$ac_ext
6195
6196done
6197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6198rm -f conftest.err conftest.$ac_ext
6199if $ac_preproc_ok; then
6200  break
6201fi
6202
6203    done
6204    ac_cv_prog_CXXCPP=$CXXCPP
6205
6206fi
6207  CXXCPP=$ac_cv_prog_CXXCPP
6208else
6209  ac_cv_prog_CXXCPP=$CXXCPP
6210fi
6211echo "$as_me:$LINENO: result: $CXXCPP" >&5
6212echo "${ECHO_T}$CXXCPP" >&6
6213ac_preproc_ok=false
6214for ac_cxx_preproc_warn_flag in '' yes
6215do
6216  # Use a header file that comes with gcc, so configuring glibc
6217  # with a fresh cross-compiler works.
6218  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219  # <limits.h> exists even on freestanding compilers.
6220  # On the NeXT, cc -E runs the code through the compiler's parser,
6221  # not just through cpp. "Syntax error" is here to catch this case.
6222  cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h.  */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h.  */
6228#ifdef __STDC__
6229# include <limits.h>
6230#else
6231# include <assert.h>
6232#endif
6233                     Syntax error
6234_ACEOF
6235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237  ac_status=$?
6238  grep -v '^ *+' conftest.er1 >conftest.err
6239  rm -f conftest.er1
6240  cat conftest.err >&5
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); } >/dev/null; then
6243  if test -s conftest.err; then
6244    ac_cpp_err=$ac_cxx_preproc_warn_flag
6245    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6246  else
6247    ac_cpp_err=
6248  fi
6249else
6250  ac_cpp_err=yes
6251fi
6252if test -z "$ac_cpp_err"; then
6253  :
6254else
6255  echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258  # Broken: fails on valid input.
6259continue
6260fi
6261rm -f conftest.err conftest.$ac_ext
6262
6263  # OK, works on sane cases.  Now check whether non-existent headers
6264  # can be detected and how.
6265  cat >conftest.$ac_ext <<_ACEOF
6266/* confdefs.h.  */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h.  */
6271#include <ac_nonexistent.h>
6272_ACEOF
6273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6275  ac_status=$?
6276  grep -v '^ *+' conftest.er1 >conftest.err
6277  rm -f conftest.er1
6278  cat conftest.err >&5
6279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280  (exit $ac_status); } >/dev/null; then
6281  if test -s conftest.err; then
6282    ac_cpp_err=$ac_cxx_preproc_warn_flag
6283    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6284  else
6285    ac_cpp_err=
6286  fi
6287else
6288  ac_cpp_err=yes
6289fi
6290if test -z "$ac_cpp_err"; then
6291  # Broken: success on invalid input.
6292continue
6293else
6294  echo "$as_me: failed program was:" >&5
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297  # Passes both tests.
6298ac_preproc_ok=:
6299break
6300fi
6301rm -f conftest.err conftest.$ac_ext
6302
6303done
6304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6305rm -f conftest.err conftest.$ac_ext
6306if $ac_preproc_ok; then
6307  :
6308else
6309  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6310See \`config.log' for more details." >&5
6311echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6312See \`config.log' for more details." >&2;}
6313   { (exit 1); exit 1; }; }
6314fi
6315
6316ac_ext=cc
6317ac_cpp='$CXXCPP $CPPFLAGS'
6318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6321
6322fi
6323
6324
6325ac_ext=f
6326ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6327ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6329if test -n "$ac_tool_prefix"; then
6330  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6331  do
6332    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6334echo "$as_me:$LINENO: checking for $ac_word" >&5
6335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6336if test "${ac_cv_prog_F77+set}" = set; then
6337  echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339  if test -n "$F77"; then
6340  ac_cv_prog_F77="$F77" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345  IFS=$as_save_IFS
6346  test -z "$as_dir" && as_dir=.
6347  for ac_exec_ext in '' $ac_executable_extensions; do
6348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351    break 2
6352  fi
6353done
6354done
6355
6356fi
6357fi
6358F77=$ac_cv_prog_F77
6359if test -n "$F77"; then
6360  echo "$as_me:$LINENO: result: $F77" >&5
6361echo "${ECHO_T}$F77" >&6
6362else
6363  echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6
6365fi
6366
6367    test -n "$F77" && break
6368  done
6369fi
6370if test -z "$F77"; then
6371  ac_ct_F77=$F77
6372  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6373do
6374  # Extract the first word of "$ac_prog", so it can be a program name with args.
6375set dummy $ac_prog; ac_word=$2
6376echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6378if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6379  echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381  if test -n "$ac_ct_F77"; then
6382  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387  IFS=$as_save_IFS
6388  test -z "$as_dir" && as_dir=.
6389  for ac_exec_ext in '' $ac_executable_extensions; do
6390  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391    ac_cv_prog_ac_ct_F77="$ac_prog"
6392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393    break 2
6394  fi
6395done
6396done
6397
6398fi
6399fi
6400ac_ct_F77=$ac_cv_prog_ac_ct_F77
6401if test -n "$ac_ct_F77"; then
6402  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6403echo "${ECHO_T}$ac_ct_F77" >&6
6404else
6405  echo "$as_me:$LINENO: result: no" >&5
6406echo "${ECHO_T}no" >&6
6407fi
6408
6409  test -n "$ac_ct_F77" && break
6410done
6411
6412  F77=$ac_ct_F77
6413fi
6414
6415
6416# Provide some information about the compiler.
6417echo "$as_me:6417:" \
6418     "checking for Fortran 77 compiler version" >&5
6419ac_compiler=`set X $ac_compile; echo $2`
6420{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6421  (eval $ac_compiler --version </dev/null >&5) 2>&5
6422  ac_status=$?
6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424  (exit $ac_status); }
6425{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6426  (eval $ac_compiler -v </dev/null >&5) 2>&5
6427  ac_status=$?
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); }
6430{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6431  (eval $ac_compiler -V </dev/null >&5) 2>&5
6432  ac_status=$?
6433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434  (exit $ac_status); }
6435rm -f a.out
6436
6437# If we don't use `.F' as extension, the preprocessor is not run on the
6438# input file.  (Note that this only needs to work for GNU compilers.)
6439ac_save_ext=$ac_ext
6440ac_ext=F
6441echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6442echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6443if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6444  echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
6446  cat >conftest.$ac_ext <<_ACEOF
6447      program main
6448#ifndef __GNUC__
6449       choke me
6450#endif
6451
6452      end
6453_ACEOF
6454rm -f conftest.$ac_objext
6455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456  (eval $ac_compile) 2>conftest.er1
6457  ac_status=$?
6458  grep -v '^ *+' conftest.er1 >conftest.err
6459  rm -f conftest.er1
6460  cat conftest.err >&5
6461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462  (exit $ac_status); } &&
6463         { ac_try='test -z "$ac_f77_werror_flag"
6464                         || test ! -s conftest.err'
6465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466  (eval $ac_try) 2>&5
6467  ac_status=$?
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); }; } &&
6470         { ac_try='test -s conftest.$ac_objext'
6471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472  (eval $ac_try) 2>&5
6473  ac_status=$?
6474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475  (exit $ac_status); }; }; then
6476  ac_compiler_gnu=yes
6477else
6478  echo "$as_me: failed program was:" >&5
6479sed 's/^/| /' conftest.$ac_ext >&5
6480
6481ac_compiler_gnu=no
6482fi
6483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6484ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6485
6486fi
6487echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6488echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6489ac_ext=$ac_save_ext
6490ac_test_FFLAGS=${FFLAGS+set}
6491ac_save_FFLAGS=$FFLAGS
6492FFLAGS=
6493echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6494echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6495if test "${ac_cv_prog_f77_g+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  FFLAGS=-g
6499cat >conftest.$ac_ext <<_ACEOF
6500      program main
6501
6502      end
6503_ACEOF
6504rm -f conftest.$ac_objext
6505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506  (eval $ac_compile) 2>conftest.er1
6507  ac_status=$?
6508  grep -v '^ *+' conftest.er1 >conftest.err
6509  rm -f conftest.er1
6510  cat conftest.err >&5
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); } &&
6513         { ac_try='test -z "$ac_f77_werror_flag"
6514                         || test ! -s conftest.err'
6515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516  (eval $ac_try) 2>&5
6517  ac_status=$?
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); }; } &&
6520         { ac_try='test -s conftest.$ac_objext'
6521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522  (eval $ac_try) 2>&5
6523  ac_status=$?
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); }; }; then
6526  ac_cv_prog_f77_g=yes
6527else
6528  echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
6531ac_cv_prog_f77_g=no
6532fi
6533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534
6535fi
6536echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6537echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6538if test "$ac_test_FFLAGS" = set; then
6539  FFLAGS=$ac_save_FFLAGS
6540elif test $ac_cv_prog_f77_g = yes; then
6541  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6542    FFLAGS="-g -O2"
6543  else
6544    FFLAGS="-g"
6545  fi
6546else
6547  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6548    FFLAGS="-O2"
6549  else
6550    FFLAGS=
6551  fi
6552fi
6553
6554G77=`test $ac_compiler_gnu = yes && echo yes`
6555ac_ext=c
6556ac_cpp='$CPP $CPPFLAGS'
6557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561
6562
6563# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6564
6565# find the maximum length of command line arguments
6566echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6567echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6568if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6569  echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571    i=0
6572  teststring="ABCD"
6573
6574  case $build_os in
6575  msdosdjgpp*)
6576    # On DJGPP, this test can blow up pretty badly due to problems in libc
6577    # (any single argument exceeding 2000 bytes causes a buffer overrun
6578    # during glob expansion).  Even if it were fixed, the result of this
6579    # check would be larger than it should be.
6580    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6581    ;;
6582
6583  gnu*)
6584    # Under GNU Hurd, this test is not required because there is
6585    # no limit to the length of command line arguments.
6586    # Libtool will interpret -1 as no limit whatsoever
6587    lt_cv_sys_max_cmd_len=-1;
6588    ;;
6589
6590  cygwin* | mingw*)
6591    # On Win9x/ME, this test blows up -- it succeeds, but takes
6592    # about 5 minutes as the teststring grows exponentially.
6593    # Worse, since 9x/ME are not pre-emptively multitasking,
6594    # you end up with a "frozen" computer, even though with patience
6595    # the test eventually succeeds (with a max line length of 256k).
6596    # Instead, let's just punt: use the minimum linelength reported by
6597    # all of the supported platforms: 8192 (on NT/2K/XP).
6598    lt_cv_sys_max_cmd_len=8192;
6599    ;;
6600
6601  amigaos*)
6602    # On AmigaOS with pdksh, this test takes hours, literally.
6603    # So we just punt and use a minimum line length of 8192.
6604    lt_cv_sys_max_cmd_len=8192;
6605    ;;
6606
6607  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6608    # This has been around since 386BSD, at least.  Likely further.
6609    if test -x /sbin/sysctl; then
6610      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6611    elif test -x /usr/sbin/sysctl; then
6612      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6613    else
6614      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6615    fi
6616    # And add a safety zone
6617    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6618    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6619    ;;
6620
6621  interix*)
6622    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6623    lt_cv_sys_max_cmd_len=196608
6624    ;;
6625
6626  osf*)
6627    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6628    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6629    # nice to cause kernel panics so lets avoid the loop below.
6630    # First set a reasonable default.
6631    lt_cv_sys_max_cmd_len=16384
6632    #
6633    if test -x /sbin/sysconfig; then
6634      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6635        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6636      esac
6637    fi
6638    ;;
6639  sco3.2v5*)
6640    lt_cv_sys_max_cmd_len=102400
6641    ;;
6642  sysv5* | sco5v6* | sysv4.2uw2*)
6643    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6644    if test -n "$kargmax"; then
6645      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6646    else
6647      lt_cv_sys_max_cmd_len=32768
6648    fi
6649    ;;
6650  *)
6651    # If test is not a shell built-in, we'll probably end up computing a
6652    # maximum length that is only half of the actual maximum length, but
6653    # we can't tell.
6654    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6655    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6656               = "XX$teststring") >/dev/null 2>&1 &&
6657            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6658            lt_cv_sys_max_cmd_len=$new_result &&
6659            test $i != 17 # 1/2 MB should be enough
6660    do
6661      i=`expr $i + 1`
6662      teststring=$teststring$teststring
6663    done
6664    teststring=
6665    # Add a significant safety factor because C++ compilers can tack on massive
6666    # amounts of additional arguments before passing them to the linker.
6667    # It appears as though 1/2 is a usable value.
6668    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6669    ;;
6670  esac
6671
6672fi
6673
6674if test -n $lt_cv_sys_max_cmd_len ; then
6675  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6676echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6677else
6678  echo "$as_me:$LINENO: result: none" >&5
6679echo "${ECHO_T}none" >&6
6680fi
6681
6682
6683
6684
6685# Check for command to grab the raw symbol name followed by C symbol from nm.
6686echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6687echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6688if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6689  echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691
6692# These are sane defaults that work on at least a few old systems.
6693# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6694
6695# Character class describing NM global symbol codes.
6696symcode='[BCDEGRST]'
6697
6698# Regexp to match symbols that can be accessed directly from C.
6699sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6700
6701# Transform an extracted symbol line into a proper C declaration
6702lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6703
6704# Transform an extracted symbol line into symbol name and symbol address
6705lt_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'"
6706
6707# Define system-specific variables.
6708case $host_os in
6709aix*)
6710  symcode='[BCDT]'
6711  ;;
6712cygwin* | mingw* | pw32*)
6713  symcode='[ABCDGISTW]'
6714  ;;
6715hpux*) # Its linker distinguishes data from code symbols
6716  if test "$host_cpu" = ia64; then
6717    symcode='[ABCDEGRST]'
6718  fi
6719  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6720  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'"
6721  ;;
6722linux*)
6723  if test "$host_cpu" = ia64; then
6724    symcode='[ABCDGIRSTW]'
6725    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6726    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'"
6727  fi
6728  ;;
6729irix* | nonstopux*)
6730  symcode='[BCDEGRST]'
6731  ;;
6732osf*)
6733  symcode='[BCDEGQRST]'
6734  ;;
6735solaris*)
6736  symcode='[BDRT]'
6737  ;;
6738sco3.2v5*)
6739  symcode='[DT]'
6740  ;;
6741sysv4.2uw2*)
6742  symcode='[DT]'
6743  ;;
6744sysv5* | sco5v6* | unixware* | OpenUNIX*)
6745  symcode='[ABDT]'
6746  ;;
6747sysv4)
6748  symcode='[DFNSTU]'
6749  ;;
6750esac
6751
6752# Handle CRLF in mingw tool chain
6753opt_cr=
6754case $build_os in
6755mingw*)
6756  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6757  ;;
6758esac
6759
6760# If we're using GNU nm, then use its standard symbol codes.
6761case `$NM -V 2>&1` in
6762*GNU* | *'with BFD'*)
6763  symcode='[ABCDGIRSTW]' ;;
6764esac
6765
6766# Try without a prefix undercore, then with it.
6767for ac_symprfx in "" "_"; do
6768
6769  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6770  symxfrm="\\1 $ac_symprfx\\2 \\2"
6771
6772  # Write the raw and C identifiers.
6773  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6774
6775  # Check to see that the pipe works correctly.
6776  pipe_works=no
6777
6778  rm -f conftest*
6779  cat > conftest.$ac_ext <<EOF
6780#ifdef __cplusplus
6781extern "C" {
6782#endif
6783char nm_test_var;
6784void nm_test_func(){}
6785#ifdef __cplusplus
6786}
6787#endif
6788int main(){nm_test_var='a';nm_test_func();return(0);}
6789EOF
6790
6791  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792  (eval $ac_compile) 2>&5
6793  ac_status=$?
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); }; then
6796    # Now try to grab the symbols.
6797    nlist=conftest.nm
6798    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6799  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6800  ac_status=$?
6801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802  (exit $ac_status); } && test -s "$nlist"; then
6803      # Try sorting and uniquifying the output.
6804      if sort "$nlist" | uniq > "$nlist"T; then
6805        mv -f "$nlist"T "$nlist"
6806      else
6807        rm -f "$nlist"T
6808      fi
6809
6810      # Make sure that we snagged all the symbols we need.
6811      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6812        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6813          cat <<EOF > conftest.$ac_ext
6814#ifdef __cplusplus
6815extern "C" {
6816#endif
6817
6818EOF
6819          # Now generate the symbol file.
6820          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6821
6822          cat <<EOF >> conftest.$ac_ext
6823#if defined (__STDC__) && __STDC__
6824# define lt_ptr_t void *
6825#else
6826# define lt_ptr_t char *
6827# define const
6828#endif
6829
6830/* The mapping between symbol names and symbols. */
6831const struct {
6832  const char *name;
6833  lt_ptr_t address;
6834}
6835lt_preloaded_symbols[] =
6836{
6837EOF
6838          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6839          cat <<\EOF >> conftest.$ac_ext
6840  {0, (lt_ptr_t) 0}
6841};
6842
6843#ifdef __cplusplus
6844}
6845#endif
6846EOF
6847          # Now try linking the two files.
6848          mv conftest.$ac_objext conftstm.$ac_objext
6849          lt_save_LIBS="$LIBS"
6850          lt_save_CFLAGS="$CFLAGS"
6851          LIBS="conftstm.$ac_objext"
6852          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6853          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6854  (eval $ac_link) 2>&5
6855  ac_status=$?
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6858            pipe_works=yes
6859          fi
6860          LIBS="$lt_save_LIBS"
6861          CFLAGS="$lt_save_CFLAGS"
6862        else
6863          echo "cannot find nm_test_func in $nlist" >&5
6864        fi
6865      else
6866        echo "cannot find nm_test_var in $nlist" >&5
6867      fi
6868    else
6869      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6870    fi
6871  else
6872    echo "$progname: failed program was:" >&5
6873    cat conftest.$ac_ext >&5
6874  fi
6875  rm -f conftest* conftst*
6876
6877  # Do not use the global_symbol_pipe unless it works.
6878  if test "$pipe_works" = yes; then
6879    break
6880  else
6881    lt_cv_sys_global_symbol_pipe=
6882  fi
6883done
6884
6885fi
6886
6887if test -z "$lt_cv_sys_global_symbol_pipe"; then
6888  lt_cv_sys_global_symbol_to_cdecl=
6889fi
6890if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6891  echo "$as_me:$LINENO: result: failed" >&5
6892echo "${ECHO_T}failed" >&6
6893else
6894  echo "$as_me:$LINENO: result: ok" >&5
6895echo "${ECHO_T}ok" >&6
6896fi
6897
6898echo "$as_me:$LINENO: checking for objdir" >&5
6899echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6900if test "${lt_cv_objdir+set}" = set; then
6901  echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903  rm -f .libs 2>/dev/null
6904mkdir .libs 2>/dev/null
6905if test -d .libs; then
6906  lt_cv_objdir=.libs
6907else
6908  # MS-DOS does not allow filenames that begin with a dot.
6909  lt_cv_objdir=_libs
6910fi
6911rmdir .libs 2>/dev/null
6912fi
6913echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6914echo "${ECHO_T}$lt_cv_objdir" >&6
6915objdir=$lt_cv_objdir
6916
6917
6918
6919
6920
6921case $host_os in
6922aix3*)
6923  # AIX sometimes has problems with the GCC collect2 program.  For some
6924  # reason, if we set the COLLECT_NAMES environment variable, the problems
6925  # vanish in a puff of smoke.
6926  if test "X${COLLECT_NAMES+set}" != Xset; then
6927    COLLECT_NAMES=
6928    export COLLECT_NAMES
6929  fi
6930  ;;
6931esac
6932
6933# Sed substitution that helps us do robust quoting.  It backslashifies
6934# metacharacters that are still active within double-quoted strings.
6935Xsed='sed -e 1s/^X//'
6936sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6937
6938# Same as above, but do not quote variable references.
6939double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6940
6941# Sed substitution to delay expansion of an escaped shell variable in a
6942# double_quote_subst'ed string.
6943delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6944
6945# Sed substitution to avoid accidental globbing in evaled expressions
6946no_glob_subst='s/\*/\\\*/g'
6947
6948# Constants:
6949rm="rm -f"
6950
6951# Global variables:
6952default_ofile=libtool
6953can_build_shared=yes
6954
6955# All known linkers require a `.a' archive for static linking (except MSVC,
6956# which needs '.lib').
6957libext=a
6958ltmain="$ac_aux_dir/ltmain.sh"
6959ofile="$default_ofile"
6960with_gnu_ld="$lt_cv_prog_gnu_ld"
6961
6962if test -n "$ac_tool_prefix"; then
6963  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6964set dummy ${ac_tool_prefix}ar; ac_word=$2
6965echo "$as_me:$LINENO: checking for $ac_word" >&5
6966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6967if test "${ac_cv_prog_AR+set}" = set; then
6968  echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970  if test -n "$AR"; then
6971  ac_cv_prog_AR="$AR" # Let the user override the test.
6972else
6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974for as_dir in $PATH
6975do
6976  IFS=$as_save_IFS
6977  test -z "$as_dir" && as_dir=.
6978  for ac_exec_ext in '' $ac_executable_extensions; do
6979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980    ac_cv_prog_AR="${ac_tool_prefix}ar"
6981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6982    break 2
6983  fi
6984done
6985done
6986
6987fi
6988fi
6989AR=$ac_cv_prog_AR
6990if test -n "$AR"; then
6991  echo "$as_me:$LINENO: result: $AR" >&5
6992echo "${ECHO_T}$AR" >&6
6993else
6994  echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6
6996fi
6997
6998fi
6999if test -z "$ac_cv_prog_AR"; then
7000  ac_ct_AR=$AR
7001  # Extract the first word of "ar", so it can be a program name with args.
7002set dummy ar; ac_word=$2
7003echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7006  echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008  if test -n "$ac_ct_AR"; then
7009  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014  IFS=$as_save_IFS
7015  test -z "$as_dir" && as_dir=.
7016  for ac_exec_ext in '' $ac_executable_extensions; do
7017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018    ac_cv_prog_ac_ct_AR="ar"
7019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020    break 2
7021  fi
7022done
7023done
7024
7025  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7026fi
7027fi
7028ac_ct_AR=$ac_cv_prog_ac_ct_AR
7029if test -n "$ac_ct_AR"; then
7030  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7031echo "${ECHO_T}$ac_ct_AR" >&6
7032else
7033  echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6
7035fi
7036
7037  AR=$ac_ct_AR
7038else
7039  AR="$ac_cv_prog_AR"
7040fi
7041
7042if test -n "$ac_tool_prefix"; then
7043  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7044set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7045echo "$as_me:$LINENO: checking for $ac_word" >&5
7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7047if test "${ac_cv_prog_RANLIB+set}" = set; then
7048  echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050  if test -n "$RANLIB"; then
7051  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7052else
7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056  IFS=$as_save_IFS
7057  test -z "$as_dir" && as_dir=.
7058  for ac_exec_ext in '' $ac_executable_extensions; do
7059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062    break 2
7063  fi
7064done
7065done
7066
7067fi
7068fi
7069RANLIB=$ac_cv_prog_RANLIB
7070if test -n "$RANLIB"; then
7071  echo "$as_me:$LINENO: result: $RANLIB" >&5
7072echo "${ECHO_T}$RANLIB" >&6
7073else
7074  echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6
7076fi
7077
7078fi
7079if test -z "$ac_cv_prog_RANLIB"; then
7080  ac_ct_RANLIB=$RANLIB
7081  # Extract the first word of "ranlib", so it can be a program name with args.
7082set dummy ranlib; ac_word=$2
7083echo "$as_me:$LINENO: checking for $ac_word" >&5
7084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7085if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7086  echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088  if test -n "$ac_ct_RANLIB"; then
7089  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094  IFS=$as_save_IFS
7095  test -z "$as_dir" && as_dir=.
7096  for ac_exec_ext in '' $ac_executable_extensions; do
7097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098    ac_cv_prog_ac_ct_RANLIB="ranlib"
7099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100    break 2
7101  fi
7102done
7103done
7104
7105  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7106fi
7107fi
7108ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7109if test -n "$ac_ct_RANLIB"; then
7110  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7111echo "${ECHO_T}$ac_ct_RANLIB" >&6
7112else
7113  echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6
7115fi
7116
7117  RANLIB=$ac_ct_RANLIB
7118else
7119  RANLIB="$ac_cv_prog_RANLIB"
7120fi
7121
7122if test -n "$ac_tool_prefix"; then
7123  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7124set dummy ${ac_tool_prefix}strip; ac_word=$2
7125echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7127if test "${ac_cv_prog_STRIP+set}" = set; then
7128  echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130  if test -n "$STRIP"; then
7131  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7132else
7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134for as_dir in $PATH
7135do
7136  IFS=$as_save_IFS
7137  test -z "$as_dir" && as_dir=.
7138  for ac_exec_ext in '' $ac_executable_extensions; do
7139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7142    break 2
7143  fi
7144done
7145done
7146
7147fi
7148fi
7149STRIP=$ac_cv_prog_STRIP
7150if test -n "$STRIP"; then
7151  echo "$as_me:$LINENO: result: $STRIP" >&5
7152echo "${ECHO_T}$STRIP" >&6
7153else
7154  echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
7156fi
7157
7158fi
7159if test -z "$ac_cv_prog_STRIP"; then
7160  ac_ct_STRIP=$STRIP
7161  # Extract the first word of "strip", so it can be a program name with args.
7162set dummy strip; ac_word=$2
7163echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7165if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  if test -n "$ac_ct_STRIP"; then
7169  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178    ac_cv_prog_ac_ct_STRIP="strip"
7179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184
7185  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7186fi
7187fi
7188ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7189if test -n "$ac_ct_STRIP"; then
7190  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7191echo "${ECHO_T}$ac_ct_STRIP" >&6
7192else
7193  echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6
7195fi
7196
7197  STRIP=$ac_ct_STRIP
7198else
7199  STRIP="$ac_cv_prog_STRIP"
7200fi
7201
7202
7203old_CC="$CC"
7204old_CFLAGS="$CFLAGS"
7205
7206# Set sane defaults for various variables
7207test -z "$AR" && AR=ar
7208test -z "$AR_FLAGS" && AR_FLAGS=cru
7209test -z "$AS" && AS=as
7210test -z "$CC" && CC=cc
7211test -z "$LTCC" && LTCC=$CC
7212test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7213test -z "$DLLTOOL" && DLLTOOL=dlltool
7214test -z "$LD" && LD=ld
7215test -z "$LN_S" && LN_S="ln -s"
7216test -z "$MAGIC_CMD" && MAGIC_CMD=file
7217test -z "$NM" && NM=nm
7218test -z "$SED" && SED=sed
7219test -z "$OBJDUMP" && OBJDUMP=objdump
7220test -z "$RANLIB" && RANLIB=:
7221test -z "$STRIP" && STRIP=:
7222test -z "$ac_objext" && ac_objext=o
7223
7224# Determine commands to create old-style static archives.
7225old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7226old_postinstall_cmds='chmod 644 $oldlib'
7227old_postuninstall_cmds=
7228
7229if test -n "$RANLIB"; then
7230  case $host_os in
7231  openbsd*)
7232    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7233    ;;
7234  *)
7235    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7236    ;;
7237  esac
7238  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7239fi
7240
7241for cc_temp in $compiler""; do
7242  case $cc_temp in
7243    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7244    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7245    \-*) ;;
7246    *) break;;
7247  esac
7248done
7249cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7250
7251
7252# Only perform the check for file, if the check method requires it
7253case $deplibs_check_method in
7254file_magic*)
7255  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7256    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7257echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7258if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261  case $MAGIC_CMD in
7262[\\/*] |  ?:[\\/]*)
7263  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7264  ;;
7265*)
7266  lt_save_MAGIC_CMD="$MAGIC_CMD"
7267  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7268  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7269  for ac_dir in $ac_dummy; do
7270    IFS="$lt_save_ifs"
7271    test -z "$ac_dir" && ac_dir=.
7272    if test -f $ac_dir/${ac_tool_prefix}file; then
7273      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7274      if test -n "$file_magic_test_file"; then
7275        case $deplibs_check_method in
7276        "file_magic "*)
7277          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7278          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7280            $EGREP "$file_magic_regex" > /dev/null; then
7281            :
7282          else
7283            cat <<EOF 1>&2
7284
7285*** Warning: the command libtool uses to detect shared libraries,
7286*** $file_magic_cmd, produces output that libtool cannot recognize.
7287*** The result is that libtool may fail to recognize shared libraries
7288*** as such.  This will affect the creation of libtool libraries that
7289*** depend on shared libraries, but programs linked with such libtool
7290*** libraries will work regardless of this problem.  Nevertheless, you
7291*** may want to report the problem to your system manager and/or to
7292*** bug-libtool@gnu.org
7293
7294EOF
7295          fi ;;
7296        esac
7297      fi
7298      break
7299    fi
7300  done
7301  IFS="$lt_save_ifs"
7302  MAGIC_CMD="$lt_save_MAGIC_CMD"
7303  ;;
7304esac
7305fi
7306
7307MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7308if test -n "$MAGIC_CMD"; then
7309  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7310echo "${ECHO_T}$MAGIC_CMD" >&6
7311else
7312  echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6
7314fi
7315
7316if test -z "$lt_cv_path_MAGIC_CMD"; then
7317  if test -n "$ac_tool_prefix"; then
7318    echo "$as_me:$LINENO: checking for file" >&5
7319echo $ECHO_N "checking for file... $ECHO_C" >&6
7320if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7321  echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323  case $MAGIC_CMD in
7324[\\/*] |  ?:[\\/]*)
7325  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7326  ;;
7327*)
7328  lt_save_MAGIC_CMD="$MAGIC_CMD"
7329  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7330  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7331  for ac_dir in $ac_dummy; do
7332    IFS="$lt_save_ifs"
7333    test -z "$ac_dir" && ac_dir=.
7334    if test -f $ac_dir/file; then
7335      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7336      if test -n "$file_magic_test_file"; then
7337        case $deplibs_check_method in
7338        "file_magic "*)
7339          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7340          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7342            $EGREP "$file_magic_regex" > /dev/null; then
7343            :
7344          else
7345            cat <<EOF 1>&2
7346
7347*** Warning: the command libtool uses to detect shared libraries,
7348*** $file_magic_cmd, produces output that libtool cannot recognize.
7349*** The result is that libtool may fail to recognize shared libraries
7350*** as such.  This will affect the creation of libtool libraries that
7351*** depend on shared libraries, but programs linked with such libtool
7352*** libraries will work regardless of this problem.  Nevertheless, you
7353*** may want to report the problem to your system manager and/or to
7354*** bug-libtool@gnu.org
7355
7356EOF
7357          fi ;;
7358        esac
7359      fi
7360      break
7361    fi
7362  done
7363  IFS="$lt_save_ifs"
7364  MAGIC_CMD="$lt_save_MAGIC_CMD"
7365  ;;
7366esac
7367fi
7368
7369MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7370if test -n "$MAGIC_CMD"; then
7371  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7372echo "${ECHO_T}$MAGIC_CMD" >&6
7373else
7374  echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376fi
7377
7378  else
7379    MAGIC_CMD=:
7380  fi
7381fi
7382
7383  fi
7384  ;;
7385esac
7386
7387enable_dlopen=no
7388enable_win32_dll=no
7389
7390# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7391if test "${enable_libtool_lock+set}" = set; then
7392  enableval="$enable_libtool_lock"
7393
7394fi;
7395test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7396
7397
7398# Check whether --with-pic or --without-pic was given.
7399if test "${with_pic+set}" = set; then
7400  withval="$with_pic"
7401  pic_mode="$withval"
7402else
7403  pic_mode=default
7404fi;
7405test -z "$pic_mode" && pic_mode=default
7406
7407# Use C for the default configuration in the libtool script
7408tagname=
7409lt_save_CC="$CC"
7410ac_ext=c
7411ac_cpp='$CPP $CPPFLAGS'
7412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7414ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415
7416
7417# Source file extension for C test sources.
7418ac_ext=c
7419
7420# Object file extension for compiled C test sources.
7421objext=o
7422objext=$objext
7423
7424# Code to be used in simple compile tests
7425lt_simple_compile_test_code="int some_variable = 0;\n"
7426
7427# Code to be used in simple link tests
7428lt_simple_link_test_code='int main(){return(0);}\n'
7429
7430
7431# If no C compiler was specified, use CC.
7432LTCC=${LTCC-"$CC"}
7433
7434# If no C compiler flags were specified, use CFLAGS.
7435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7436
7437# Allow CC to be a program name with arguments.
7438compiler=$CC
7439
7440
7441# save warnings/boilerplate of simple test code
7442ac_outfile=conftest.$ac_objext
7443printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7444eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7445_lt_compiler_boilerplate=`cat conftest.err`
7446$rm conftest*
7447
7448ac_outfile=conftest.$ac_objext
7449printf "$lt_simple_link_test_code" >conftest.$ac_ext
7450eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7451_lt_linker_boilerplate=`cat conftest.err`
7452$rm conftest*
7453
7454
7455## CAVEAT EMPTOR:
7456## There is no encapsulation within the following macros, do not change
7457## the running order or otherwise move them around unless you know exactly
7458## what you are doing...
7459
7460lt_prog_compiler_no_builtin_flag=
7461
7462if test "$GCC" = yes; then
7463  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7464
7465
7466echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7467echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7468if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7469  echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471  lt_cv_prog_compiler_rtti_exceptions=no
7472  ac_outfile=conftest.$ac_objext
7473   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7474   lt_compiler_flag="-fno-rtti -fno-exceptions"
7475   # Insert the option either (1) after the last *FLAGS variable, or
7476   # (2) before a word containing "conftest.", or (3) at the end.
7477   # Note that $ac_compile itself does not contain backslashes and begins
7478   # with a dollar sign (not a hyphen), so the echo should work correctly.
7479   # The option is referenced via a variable to avoid confusing sed.
7480   lt_compile=`echo "$ac_compile" | $SED \
7481   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7483   -e 's:$: $lt_compiler_flag:'`
7484   (eval echo "\"\$as_me:7484: $lt_compile\"" >&5)
7485   (eval "$lt_compile" 2>conftest.err)
7486   ac_status=$?
7487   cat conftest.err >&5
7488   echo "$as_me:7488: \$? = $ac_status" >&5
7489   if (exit $ac_status) && test -s "$ac_outfile"; then
7490     # The compiler can only warn and ignore the option if not recognized
7491     # So say no if there are warnings other than the usual output.
7492     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7493     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7494     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7495       lt_cv_prog_compiler_rtti_exceptions=yes
7496     fi
7497   fi
7498   $rm conftest*
7499
7500fi
7501echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7502echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7503
7504if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7505    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7506else
7507    :
7508fi
7509
7510fi
7511
7512lt_prog_compiler_wl=
7513lt_prog_compiler_pic=
7514lt_prog_compiler_static=
7515
7516echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7517echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7518
7519  if test "$GCC" = yes; then
7520    lt_prog_compiler_wl='-Wl,'
7521    lt_prog_compiler_static='-static'
7522
7523    case $host_os in
7524      aix*)
7525      # All AIX code is PIC.
7526      if test "$host_cpu" = ia64; then
7527        # AIX 5 now supports IA64 processor
7528        lt_prog_compiler_static='-Bstatic'
7529      fi
7530      ;;
7531
7532    amigaos*)
7533      # FIXME: we need at least 68020 code to build shared libraries, but
7534      # adding the `-m68020' flag to GCC prevents building anything better,
7535      # like `-m68040'.
7536      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7537      ;;
7538
7539    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7540      # PIC is the default for these OSes.
7541      ;;
7542
7543    mingw* | pw32* | os2*)
7544      # This hack is so that the source file can tell whether it is being
7545      # built for inclusion in a dll (and should export symbols for example).
7546      lt_prog_compiler_pic='-DDLL_EXPORT'
7547      ;;
7548
7549    darwin* | rhapsody*)
7550      # PIC is the default on this platform
7551      # Common symbols not allowed in MH_DYLIB files
7552      lt_prog_compiler_pic='-fno-common'
7553      ;;
7554
7555    interix3*)
7556      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7557      # Instead, we relocate shared libraries at runtime.
7558      ;;
7559
7560    msdosdjgpp*)
7561      # Just because we use GCC doesn't mean we suddenly get shared libraries
7562      # on systems that don't support them.
7563      lt_prog_compiler_can_build_shared=no
7564      enable_shared=no
7565      ;;
7566
7567    sysv4*MP*)
7568      if test -d /usr/nec; then
7569        lt_prog_compiler_pic=-Kconform_pic
7570      fi
7571      ;;
7572
7573    hpux*)
7574      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7575      # not for PA HP-UX.
7576      case $host_cpu in
7577      hppa*64*|ia64*)
7578        # +Z the default
7579        ;;
7580      *)
7581        lt_prog_compiler_pic='-fPIC'
7582        ;;
7583      esac
7584      ;;
7585
7586    *)
7587      lt_prog_compiler_pic='-fPIC'
7588      ;;
7589    esac
7590  else
7591    # PORTME Check for flag to pass linker flags through the system compiler.
7592    case $host_os in
7593    aix*)
7594      lt_prog_compiler_wl='-Wl,'
7595      if test "$host_cpu" = ia64; then
7596        # AIX 5 now supports IA64 processor
7597        lt_prog_compiler_static='-Bstatic'
7598      else
7599        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7600      fi
7601      ;;
7602      darwin*)
7603        # PIC is the default on this platform
7604        # Common symbols not allowed in MH_DYLIB files
7605       case $cc_basename in
7606         xlc*)
7607         lt_prog_compiler_pic='-qnocommon'
7608         lt_prog_compiler_wl='-Wl,'
7609         ;;
7610       esac
7611       ;;
7612
7613    mingw* | pw32* | os2*)
7614      # This hack is so that the source file can tell whether it is being
7615      # built for inclusion in a dll (and should export symbols for example).
7616      lt_prog_compiler_pic='-DDLL_EXPORT'
7617      ;;
7618
7619    hpux9* | hpux10* | hpux11*)
7620      lt_prog_compiler_wl='-Wl,'
7621      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7622      # not for PA HP-UX.
7623      case $host_cpu in
7624      hppa*64*|ia64*)
7625        # +Z the default
7626        ;;
7627      *)
7628        lt_prog_compiler_pic='+Z'
7629        ;;
7630      esac
7631      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7632      lt_prog_compiler_static='${wl}-a ${wl}archive'
7633      ;;
7634
7635    irix5* | irix6* | nonstopux*)
7636      lt_prog_compiler_wl='-Wl,'
7637      # PIC (with -KPIC) is the default.
7638      lt_prog_compiler_static='-non_shared'
7639      ;;
7640
7641    newsos6)
7642      lt_prog_compiler_pic='-KPIC'
7643      lt_prog_compiler_static='-Bstatic'
7644      ;;
7645
7646    linux*)
7647      case $cc_basename in
7648      icc* | ecc*)
7649        lt_prog_compiler_wl='-Wl,'
7650        lt_prog_compiler_pic='-KPIC'
7651        lt_prog_compiler_static='-static'
7652        ;;
7653      pgcc* | pgf77* | pgf90* | pgf95*)
7654        # Portland Group compilers (*not* the Pentium gcc compiler,
7655        # which looks to be a dead project)
7656        lt_prog_compiler_wl='-Wl,'
7657        lt_prog_compiler_pic='-fpic'
7658        lt_prog_compiler_static='-Bstatic'
7659        ;;
7660      ccc*)
7661        lt_prog_compiler_wl='-Wl,'
7662        # All Alpha code is PIC.
7663        lt_prog_compiler_static='-non_shared'
7664        ;;
7665      esac
7666      ;;
7667
7668    osf3* | osf4* | osf5*)
7669      lt_prog_compiler_wl='-Wl,'
7670      # All OSF/1 code is PIC.
7671      lt_prog_compiler_static='-non_shared'
7672      ;;
7673
7674    solaris*)
7675      lt_prog_compiler_pic='-KPIC'
7676      lt_prog_compiler_static='-Bstatic'
7677      case $cc_basename in
7678      f77* | f90* | f95*)
7679        lt_prog_compiler_wl='-Qoption ld ';;
7680      *)
7681        lt_prog_compiler_wl='-Wl,';;
7682      esac
7683      ;;
7684
7685    sunos4*)
7686      lt_prog_compiler_wl='-Qoption ld '
7687      lt_prog_compiler_pic='-PIC'
7688      lt_prog_compiler_static='-Bstatic'
7689      ;;
7690
7691    sysv4 | sysv4.2uw2* | sysv4.3*)
7692      lt_prog_compiler_wl='-Wl,'
7693      lt_prog_compiler_pic='-KPIC'
7694      lt_prog_compiler_static='-Bstatic'
7695      ;;
7696
7697    sysv4*MP*)
7698      if test -d /usr/nec ;then
7699        lt_prog_compiler_pic='-Kconform_pic'
7700        lt_prog_compiler_static='-Bstatic'
7701      fi
7702      ;;
7703
7704    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7705      lt_prog_compiler_wl='-Wl,'
7706      lt_prog_compiler_pic='-KPIC'
7707      lt_prog_compiler_static='-Bstatic'
7708      ;;
7709
7710    unicos*)
7711      lt_prog_compiler_wl='-Wl,'
7712      lt_prog_compiler_can_build_shared=no
7713      ;;
7714
7715    uts4*)
7716      lt_prog_compiler_pic='-pic'
7717      lt_prog_compiler_static='-Bstatic'
7718      ;;
7719
7720    *)
7721      lt_prog_compiler_can_build_shared=no
7722      ;;
7723    esac
7724  fi
7725
7726echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7727echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7728
7729#
7730# Check to make sure the PIC flag actually works.
7731#
7732if test -n "$lt_prog_compiler_pic"; then
7733
7734echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7735echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7736if test "${lt_prog_compiler_pic_works+set}" = set; then
7737  echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739  lt_prog_compiler_pic_works=no
7740  ac_outfile=conftest.$ac_objext
7741   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7742   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7743   # Insert the option either (1) after the last *FLAGS variable, or
7744   # (2) before a word containing "conftest.", or (3) at the end.
7745   # Note that $ac_compile itself does not contain backslashes and begins
7746   # with a dollar sign (not a hyphen), so the echo should work correctly.
7747   # The option is referenced via a variable to avoid confusing sed.
7748   lt_compile=`echo "$ac_compile" | $SED \
7749   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7750   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7751   -e 's:$: $lt_compiler_flag:'`
7752   (eval echo "\"\$as_me:7752: $lt_compile\"" >&5)
7753   (eval "$lt_compile" 2>conftest.err)
7754   ac_status=$?
7755   cat conftest.err >&5
7756   echo "$as_me:7756: \$? = $ac_status" >&5
7757   if (exit $ac_status) && test -s "$ac_outfile"; then
7758     # The compiler can only warn and ignore the option if not recognized
7759     # So say no if there are warnings other than the usual output.
7760     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7761     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7762     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7763       lt_prog_compiler_pic_works=yes
7764     fi
7765   fi
7766   $rm conftest*
7767
7768fi
7769echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7770echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7771
7772if test x"$lt_prog_compiler_pic_works" = xyes; then
7773    case $lt_prog_compiler_pic in
7774     "" | " "*) ;;
7775     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7776     esac
7777else
7778    lt_prog_compiler_pic=
7779     lt_prog_compiler_can_build_shared=no
7780fi
7781
7782fi
7783case $host_os in
7784  # For platforms which do not support PIC, -DPIC is meaningless:
7785  *djgpp*)
7786    lt_prog_compiler_pic=
7787    ;;
7788  *)
7789    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7790    ;;
7791esac
7792
7793#
7794# Check to make sure the static flag actually works.
7795#
7796wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7797echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7798echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7799if test "${lt_prog_compiler_static_works+set}" = set; then
7800  echo $ECHO_N "(cached) $ECHO_C" >&6
7801else
7802  lt_prog_compiler_static_works=no
7803   save_LDFLAGS="$LDFLAGS"
7804   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7805   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7806   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7807     # The linker can only warn and ignore the option if not recognized
7808     # So say no if there are warnings
7809     if test -s conftest.err; then
7810       # Append any errors to the config.log.
7811       cat conftest.err 1>&5
7812       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7813       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7814       if diff conftest.exp conftest.er2 >/dev/null; then
7815         lt_prog_compiler_static_works=yes
7816       fi
7817     else
7818       lt_prog_compiler_static_works=yes
7819     fi
7820   fi
7821   $rm conftest*
7822   LDFLAGS="$save_LDFLAGS"
7823
7824fi
7825echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7826echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7827
7828if test x"$lt_prog_compiler_static_works" = xyes; then
7829    :
7830else
7831    lt_prog_compiler_static=
7832fi
7833
7834
7835echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7836echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7837if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  lt_cv_prog_compiler_c_o=no
7841   $rm -r conftest 2>/dev/null
7842   mkdir conftest
7843   cd conftest
7844   mkdir out
7845   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7846
7847   lt_compiler_flag="-o out/conftest2.$ac_objext"
7848   # Insert the option either (1) after the last *FLAGS variable, or
7849   # (2) before a word containing "conftest.", or (3) at the end.
7850   # Note that $ac_compile itself does not contain backslashes and begins
7851   # with a dollar sign (not a hyphen), so the echo should work correctly.
7852   lt_compile=`echo "$ac_compile" | $SED \
7853   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7854   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7855   -e 's:$: $lt_compiler_flag:'`
7856   (eval echo "\"\$as_me:7856: $lt_compile\"" >&5)
7857   (eval "$lt_compile" 2>out/conftest.err)
7858   ac_status=$?
7859   cat out/conftest.err >&5
7860   echo "$as_me:7860: \$? = $ac_status" >&5
7861   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7862   then
7863     # The compiler can only warn and ignore the option if not recognized
7864     # So say no if there are warnings
7865     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7866     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7867     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7868       lt_cv_prog_compiler_c_o=yes
7869     fi
7870   fi
7871   chmod u+w . 2>&5
7872   $rm conftest*
7873   # SGI C++ compiler will create directory out/ii_files/ for
7874   # template instantiation
7875   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7876   $rm out/* && rmdir out
7877   cd ..
7878   rmdir conftest
7879   $rm conftest*
7880
7881fi
7882echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7883echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7884
7885
7886hard_links="nottested"
7887if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7888  # do not overwrite the value of need_locks provided by the user
7889  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7891  hard_links=yes
7892  $rm conftest*
7893  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7894  touch conftest.a
7895  ln conftest.a conftest.b 2>&5 || hard_links=no
7896  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7897  echo "$as_me:$LINENO: result: $hard_links" >&5
7898echo "${ECHO_T}$hard_links" >&6
7899  if test "$hard_links" = no; then
7900    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7902    need_locks=warn
7903  fi
7904else
7905  need_locks=no
7906fi
7907
7908echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7909echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7910
7911  runpath_var=
7912  allow_undefined_flag=
7913  enable_shared_with_static_runtimes=no
7914  archive_cmds=
7915  archive_expsym_cmds=
7916  old_archive_From_new_cmds=
7917  old_archive_from_expsyms_cmds=
7918  export_dynamic_flag_spec=
7919  whole_archive_flag_spec=
7920  thread_safe_flag_spec=
7921  hardcode_libdir_flag_spec=
7922  hardcode_libdir_flag_spec_ld=
7923  hardcode_libdir_separator=
7924  hardcode_direct=no
7925  hardcode_minus_L=no
7926  hardcode_shlibpath_var=unsupported
7927  link_all_deplibs=unknown
7928  hardcode_automatic=no
7929  module_cmds=
7930  module_expsym_cmds=
7931  always_export_symbols=no
7932  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7933  # include_expsyms should be a list of space-separated symbols to be *always*
7934  # included in the symbol list
7935  include_expsyms=
7936  # exclude_expsyms can be an extended regexp of symbols to exclude
7937  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7938  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7939  # as well as any symbol that contains `d'.
7940  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7941  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7942  # platforms (ab)use it in PIC code, but their linkers get confused if
7943  # the symbol is explicitly referenced.  Since portable code cannot
7944  # rely on this symbol name, it's probably fine to never include it in
7945  # preloaded symbol tables.
7946  extract_expsyms_cmds=
7947  # Just being paranoid about ensuring that cc_basename is set.
7948  for cc_temp in $compiler""; do
7949  case $cc_temp in
7950    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7951    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7952    \-*) ;;
7953    *) break;;
7954  esac
7955done
7956cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7957
7958  case $host_os in
7959  cygwin* | mingw* | pw32*)
7960    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7961    # When not using gcc, we currently assume that we are using
7962    # Microsoft Visual C++.
7963    if test "$GCC" != yes; then
7964      with_gnu_ld=no
7965    fi
7966    ;;
7967  interix*)
7968    # we just hope/assume this is gcc and not c89 (= MSVC++)
7969    with_gnu_ld=yes
7970    ;;
7971  openbsd*)
7972    with_gnu_ld=no
7973    ;;
7974  esac
7975
7976  ld_shlibs=yes
7977  if test "$with_gnu_ld" = yes; then
7978    # If archive_cmds runs LD, not CC, wlarc should be empty
7979    wlarc='${wl}'
7980
7981    # Set some defaults for GNU ld with shared library support. These
7982    # are reset later if shared libraries are not supported. Putting them
7983    # here allows them to be overridden if necessary.
7984    runpath_var=LD_RUN_PATH
7985    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7986    export_dynamic_flag_spec='${wl}--export-dynamic'
7987    # ancient GNU ld didn't support --whole-archive et. al.
7988    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7989        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7990      else
7991        whole_archive_flag_spec=
7992    fi
7993    supports_anon_versioning=no
7994    case `$LD -v 2>/dev/null` in
7995      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7996      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7997      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7998      *\ 2.11.*) ;; # other 2.11 versions
7999      *) supports_anon_versioning=yes ;;
8000    esac
8001
8002    # See if GNU ld supports shared libraries.
8003    case $host_os in
8004    aix3* | aix4* | aix5*)
8005      # On AIX/PPC, the GNU linker is very broken
8006      if test "$host_cpu" != ia64; then
8007        ld_shlibs=no
8008        cat <<EOF 1>&2
8009
8010*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8011*** to be unable to reliably create shared libraries on AIX.
8012*** Therefore, libtool is disabling shared libraries support.  If you
8013*** really care for shared libraries, you may want to modify your PATH
8014*** so that a non-GNU linker is found, and then restart.
8015
8016EOF
8017      fi
8018      ;;
8019
8020    amigaos*)
8021      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)'
8022      hardcode_libdir_flag_spec='-L$libdir'
8023      hardcode_minus_L=yes
8024
8025      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8026      # that the semantics of dynamic libraries on AmigaOS, at least up
8027      # to version 4, is to share data among multiple programs linked
8028      # with the same dynamic library.  Since this doesn't match the
8029      # behavior of shared libraries on other platforms, we can't use
8030      # them.
8031      ld_shlibs=no
8032      ;;
8033
8034    beos*)
8035      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8036        allow_undefined_flag=unsupported
8037        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8038        # support --undefined.  This deserves some investigation.  FIXME
8039        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8040      else
8041        ld_shlibs=no
8042      fi
8043      ;;
8044
8045    cygwin* | mingw* | pw32*)
8046      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8047      # as there is no search path for DLLs.
8048      hardcode_libdir_flag_spec='-L$libdir'
8049      allow_undefined_flag=unsupported
8050      always_export_symbols=no
8051      enable_shared_with_static_runtimes=yes
8052      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8053
8054      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8055        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8056        # If the export-symbols file already is a .def file (1st line
8057        # is EXPORTS), use it as is; otherwise, prepend...
8058        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8059          cp $export_symbols $output_objdir/$soname.def;
8060        else
8061          echo EXPORTS > $output_objdir/$soname.def;
8062          cat $export_symbols >> $output_objdir/$soname.def;
8063        fi~
8064        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8065      else
8066        ld_shlibs=no
8067      fi
8068      ;;
8069
8070    interix3*)
8071      hardcode_direct=no
8072      hardcode_shlibpath_var=no
8073      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8074      export_dynamic_flag_spec='${wl}-E'
8075      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8076      # Instead, shared libraries are loaded at an image base (0x10000000 by
8077      # default) and relocated if they conflict, which is a slow very memory
8078      # consuming and fragmenting process.  To avoid this, we pick a random,
8079      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8080      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8081      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8082      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'
8083      ;;
8084
8085    linux*)
8086      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8087        tmp_addflag=
8088        case $cc_basename,$host_cpu in
8089        pgcc*)                          # Portland Group C compiler
8090          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'
8091          tmp_addflag=' $pic_flag'
8092          ;;
8093        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8094          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'
8095          tmp_addflag=' $pic_flag -Mnomain' ;;
8096        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8097          tmp_addflag=' -i_dynamic' ;;
8098        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8099          tmp_addflag=' -i_dynamic -nofor_main' ;;
8100        ifc* | ifort*)                  # Intel Fortran compiler
8101          tmp_addflag=' -nofor_main' ;;
8102        esac
8103        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8104
8105        if test $supports_anon_versioning = yes; then
8106          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8107  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8108  $echo "local: *; };" >> $output_objdir/$libname.ver~
8109          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8110        fi
8111      else
8112        ld_shlibs=no
8113      fi
8114      ;;
8115
8116    netbsd*)
8117      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8118        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8119        wlarc=
8120      else
8121        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8123      fi
8124      ;;
8125
8126    solaris*)
8127      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8128        ld_shlibs=no
8129        cat <<EOF 1>&2
8130
8131*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8132*** create shared libraries on Solaris systems.  Therefore, libtool
8133*** is disabling shared libraries support.  We urge you to upgrade GNU
8134*** binutils to release 2.9.1 or newer.  Another option is to modify
8135*** your PATH or compiler configuration so that the native linker is
8136*** used, and then restart.
8137
8138EOF
8139      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8140        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8142      else
8143        ld_shlibs=no
8144      fi
8145      ;;
8146
8147    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8148      case `$LD -v 2>&1` in
8149        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8150        ld_shlibs=no
8151        cat <<_LT_EOF 1>&2
8152
8153*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8154*** reliably create shared libraries on SCO systems.  Therefore, libtool
8155*** is disabling shared libraries support.  We urge you to upgrade GNU
8156*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8157*** your PATH or compiler configuration so that the native linker is
8158*** used, and then restart.
8159
8160_LT_EOF
8161        ;;
8162        *)
8163          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8164            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8165            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8166            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8167          else
8168            ld_shlibs=no
8169          fi
8170        ;;
8171      esac
8172      ;;
8173
8174    sunos4*)
8175      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8176      wlarc=
8177      hardcode_direct=yes
8178      hardcode_shlibpath_var=no
8179      ;;
8180
8181    *)
8182      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8183        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8185      else
8186        ld_shlibs=no
8187      fi
8188      ;;
8189    esac
8190
8191    if test "$ld_shlibs" = no; then
8192      runpath_var=
8193      hardcode_libdir_flag_spec=
8194      export_dynamic_flag_spec=
8195      whole_archive_flag_spec=
8196    fi
8197  else
8198    # PORTME fill in a description of your system's linker (not GNU ld)
8199    case $host_os in
8200    aix3*)
8201      allow_undefined_flag=unsupported
8202      always_export_symbols=yes
8203      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'
8204      # Note: this linker hardcodes the directories in LIBPATH if there
8205      # are no directories specified by -L.
8206      hardcode_minus_L=yes
8207      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8208        # Neither direct hardcoding nor static linking is supported with a
8209        # broken collect2.
8210        hardcode_direct=unsupported
8211      fi
8212      ;;
8213
8214    aix4* | aix5*)
8215      if test "$host_cpu" = ia64; then
8216        # On IA64, the linker does run time linking by default, so we don't
8217        # have to do anything special.
8218        aix_use_runtimelinking=no
8219        exp_sym_flag='-Bexport'
8220        no_entry_flag=""
8221      else
8222        # If we're using GNU nm, then we don't want the "-C" option.
8223        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8224        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8225          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'
8226        else
8227          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'
8228        fi
8229        aix_use_runtimelinking=no
8230
8231        # Test if we are trying to use run time linking or normal
8232        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8233        # need to do runtime linking.
8234        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8235          for ld_flag in $LDFLAGS; do
8236          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8237            aix_use_runtimelinking=yes
8238            break
8239          fi
8240          done
8241          ;;
8242        esac
8243
8244        exp_sym_flag='-bexport'
8245        no_entry_flag='-bnoentry'
8246      fi
8247
8248      # When large executables or shared objects are built, AIX ld can
8249      # have problems creating the table of contents.  If linking a library
8250      # or program results in "error TOC overflow" add -mminimal-toc to
8251      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8252      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8253
8254      archive_cmds=''
8255      hardcode_direct=yes
8256      hardcode_libdir_separator=':'
8257      link_all_deplibs=yes
8258
8259      if test "$GCC" = yes; then
8260        case $host_os in aix4.[012]|aix4.[012].*)
8261        # We only want to do this on AIX 4.2 and lower, the check
8262        # below for broken collect2 doesn't work under 4.3+
8263          collect2name=`${CC} -print-prog-name=collect2`
8264          if test -f "$collect2name" && \
8265           strings "$collect2name" | grep resolve_lib_name >/dev/null
8266          then
8267          # We have reworked collect2
8268          hardcode_direct=yes
8269          else
8270          # We have old collect2
8271          hardcode_direct=unsupported
8272          # It fails to find uninstalled libraries when the uninstalled
8273          # path is not listed in the libpath.  Setting hardcode_minus_L
8274          # to unsupported forces relinking
8275          hardcode_minus_L=yes
8276          hardcode_libdir_flag_spec='-L$libdir'
8277          hardcode_libdir_separator=
8278          fi
8279          ;;
8280        esac
8281        shared_flag='-shared'
8282        if test "$aix_use_runtimelinking" = yes; then
8283          shared_flag="$shared_flag "'${wl}-G'
8284        fi
8285      else
8286        # not using gcc
8287        if test "$host_cpu" = ia64; then
8288        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8289        # chokes on -Wl,-G. The following line is correct:
8290          shared_flag='-G'
8291        else
8292          if test "$aix_use_runtimelinking" = yes; then
8293            shared_flag='${wl}-G'
8294          else
8295            shared_flag='${wl}-bM:SRE'
8296          fi
8297        fi
8298      fi
8299
8300      # It seems that -bexpall does not export symbols beginning with
8301      # underscore (_), so it is better to generate a list of symbols to export.
8302      always_export_symbols=yes
8303      if test "$aix_use_runtimelinking" = yes; then
8304        # Warning - without using the other runtime loading flags (-brtl),
8305        # -berok will link without error, but may produce a broken library.
8306        allow_undefined_flag='-berok'
8307       # Determine the default libpath from the value encoded in an empty executable.
8308       cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h.  */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h.  */
8314
8315int
8316main ()
8317{
8318
8319  ;
8320  return 0;
8321}
8322_ACEOF
8323rm -f conftest.$ac_objext conftest$ac_exeext
8324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325  (eval $ac_link) 2>conftest.er1
8326  ac_status=$?
8327  grep -v '^ *+' conftest.er1 >conftest.err
8328  rm -f conftest.er1
8329  cat conftest.err >&5
8330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331  (exit $ac_status); } &&
8332         { ac_try='test -z "$ac_c_werror_flag"
8333                         || test ! -s conftest.err'
8334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335  (eval $ac_try) 2>&5
8336  ac_status=$?
8337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338  (exit $ac_status); }; } &&
8339         { ac_try='test -s conftest$ac_exeext'
8340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341  (eval $ac_try) 2>&5
8342  ac_status=$?
8343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344  (exit $ac_status); }; }; then
8345
8346aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8347}'`
8348# Check for a 64-bit object if we didn't find anything.
8349if 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; }
8350}'`; fi
8351else
8352  echo "$as_me: failed program was:" >&5
8353sed 's/^/| /' conftest.$ac_ext >&5
8354
8355fi
8356rm -f conftest.err conftest.$ac_objext \
8357      conftest$ac_exeext conftest.$ac_ext
8358if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8359
8360       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8361        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"
8362       else
8363        if test "$host_cpu" = ia64; then
8364          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8365          allow_undefined_flag="-z nodefs"
8366          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"
8367        else
8368         # Determine the default libpath from the value encoded in an empty executable.
8369         cat >conftest.$ac_ext <<_ACEOF
8370/* confdefs.h.  */
8371_ACEOF
8372cat confdefs.h >>conftest.$ac_ext
8373cat >>conftest.$ac_ext <<_ACEOF
8374/* end confdefs.h.  */
8375
8376int
8377main ()
8378{
8379
8380  ;
8381  return 0;
8382}
8383_ACEOF
8384rm -f conftest.$ac_objext conftest$ac_exeext
8385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8386  (eval $ac_link) 2>conftest.er1
8387  ac_status=$?
8388  grep -v '^ *+' conftest.er1 >conftest.err
8389  rm -f conftest.er1
8390  cat conftest.err >&5
8391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392  (exit $ac_status); } &&
8393         { ac_try='test -z "$ac_c_werror_flag"
8394                         || test ! -s conftest.err'
8395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396  (eval $ac_try) 2>&5
8397  ac_status=$?
8398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399  (exit $ac_status); }; } &&
8400         { ac_try='test -s conftest$ac_exeext'
8401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402  (eval $ac_try) 2>&5
8403  ac_status=$?
8404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405  (exit $ac_status); }; }; then
8406
8407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8408}'`
8409# Check for a 64-bit object if we didn't find anything.
8410if 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; }
8411}'`; fi
8412else
8413  echo "$as_me: failed program was:" >&5
8414sed 's/^/| /' conftest.$ac_ext >&5
8415
8416fi
8417rm -f conftest.err conftest.$ac_objext \
8418      conftest$ac_exeext conftest.$ac_ext
8419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8420
8421         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8422          # Warning - without using the other run time loading flags,
8423          # -berok will link without error, but may produce a broken library.
8424          no_undefined_flag=' ${wl}-bernotok'
8425          allow_undefined_flag=' ${wl}-berok'
8426          # Exported symbols can be pulled into shared objects from archives
8427          whole_archive_flag_spec='$convenience'
8428          archive_cmds_need_lc=yes
8429          # This is similar to how AIX traditionally builds its shared libraries.
8430          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'
8431        fi
8432      fi
8433      ;;
8434
8435    amigaos*)
8436      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)'
8437      hardcode_libdir_flag_spec='-L$libdir'
8438      hardcode_minus_L=yes
8439      # see comment about different semantics on the GNU ld section
8440      ld_shlibs=no
8441      ;;
8442
8443    bsdi[45]*)
8444      export_dynamic_flag_spec=-rdynamic
8445      ;;
8446
8447    cygwin* | mingw* | pw32*)
8448      # When not using gcc, we currently assume that we are using
8449      # Microsoft Visual C++.
8450      # hardcode_libdir_flag_spec is actually meaningless, as there is
8451      # no search path for DLLs.
8452      hardcode_libdir_flag_spec=' '
8453      allow_undefined_flag=unsupported
8454      # Tell ltmain to make .lib files, not .a files.
8455      libext=lib
8456      # Tell ltmain to make .dll files, not .so files.
8457      shrext_cmds=".dll"
8458      # FIXME: Setting linknames here is a bad hack.
8459      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8460      # The linker will automatically build a .lib file if we build a DLL.
8461      old_archive_From_new_cmds='true'
8462      # FIXME: Should let the user specify the lib program.
8463      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8464      fix_srcfile_path='`cygpath -w "$srcfile"`'
8465      enable_shared_with_static_runtimes=yes
8466      ;;
8467
8468    darwin* | rhapsody*)
8469      case $host_os in
8470        rhapsody* | darwin1.[012])
8471         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8472         ;;
8473       *) # Darwin 1.3 on
8474         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8475           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8476         else
8477           case ${MACOSX_DEPLOYMENT_TARGET} in
8478             10.[012])
8479               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8480               ;;
8481             10.*)
8482               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8483               ;;
8484           esac
8485         fi
8486         ;;
8487      esac
8488      archive_cmds_need_lc=no
8489      hardcode_direct=no
8490      hardcode_automatic=yes
8491      hardcode_shlibpath_var=unsupported
8492      whole_archive_flag_spec=''
8493      link_all_deplibs=yes
8494    if test "$GCC" = yes ; then
8495        output_verbose_link_cmd='echo'
8496        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8497      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8498      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8499      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}'
8500      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}'
8501    else
8502      case $cc_basename in
8503        xlc*)
8504         output_verbose_link_cmd='echo'
8505         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8506         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8507          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8508         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}'
8509          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}'
8510          ;;
8511       *)
8512         ld_shlibs=no
8513          ;;
8514      esac
8515    fi
8516      ;;
8517
8518    dgux*)
8519      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8520      hardcode_libdir_flag_spec='-L$libdir'
8521      hardcode_shlibpath_var=no
8522      ;;
8523
8524    freebsd1*)
8525      ld_shlibs=no
8526      ;;
8527
8528    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8529    # support.  Future versions do this automatically, but an explicit c++rt0.o
8530    # does not break anything, and helps significantly (at the cost of a little
8531    # extra space).
8532    freebsd2.2*)
8533      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8534      hardcode_libdir_flag_spec='-R$libdir'
8535      hardcode_direct=yes
8536      hardcode_shlibpath_var=no
8537      ;;
8538
8539    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8540    freebsd2*)
8541      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8542      hardcode_direct=yes
8543      hardcode_minus_L=yes
8544      hardcode_shlibpath_var=no
8545      ;;
8546
8547    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8548    freebsd* | kfreebsd*-gnu | dragonfly*)
8549      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8550      hardcode_libdir_flag_spec='-R$libdir'
8551      hardcode_direct=yes
8552      hardcode_shlibpath_var=no
8553      ;;
8554
8555    hpux9*)
8556      if test "$GCC" = yes; then
8557        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'
8558      else
8559        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'
8560      fi
8561      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8562      hardcode_libdir_separator=:
8563      hardcode_direct=yes
8564
8565      # hardcode_minus_L: Not really in the search PATH,
8566      # but as the default location of the library.
8567      hardcode_minus_L=yes
8568      export_dynamic_flag_spec='${wl}-E'
8569      ;;
8570
8571    hpux10*)
8572      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8573        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8574      else
8575        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8576      fi
8577      if test "$with_gnu_ld" = no; then
8578        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8579        hardcode_libdir_separator=:
8580
8581        hardcode_direct=yes
8582        export_dynamic_flag_spec='${wl}-E'
8583
8584        # hardcode_minus_L: Not really in the search PATH,
8585        # but as the default location of the library.
8586        hardcode_minus_L=yes
8587      fi
8588      ;;
8589
8590    hpux11*)
8591      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8592        case $host_cpu in
8593        hppa*64*)
8594          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595          ;;
8596        ia64*)
8597          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8598          ;;
8599        *)
8600          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8601          ;;
8602        esac
8603      else
8604        case $host_cpu in
8605        hppa*64*)
8606          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8607          ;;
8608        ia64*)
8609          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8610          ;;
8611        *)
8612          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8613          ;;
8614        esac
8615      fi
8616      if test "$with_gnu_ld" = no; then
8617        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8618        hardcode_libdir_separator=:
8619
8620        case $host_cpu in
8621        hppa*64*|ia64*)
8622          hardcode_libdir_flag_spec_ld='+b $libdir'
8623          hardcode_direct=no
8624          hardcode_shlibpath_var=no
8625          ;;
8626        *)
8627          hardcode_direct=yes
8628          export_dynamic_flag_spec='${wl}-E'
8629
8630          # hardcode_minus_L: Not really in the search PATH,
8631          # but as the default location of the library.
8632          hardcode_minus_L=yes
8633          ;;
8634        esac
8635      fi
8636      ;;
8637
8638    irix5* | irix6* | nonstopux*)
8639      if test "$GCC" = yes; then
8640        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'
8641      else
8642        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'
8643        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8644      fi
8645      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8646      hardcode_libdir_separator=:
8647      link_all_deplibs=yes
8648      ;;
8649
8650    netbsd*)
8651      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8652        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8653      else
8654        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8655      fi
8656      hardcode_libdir_flag_spec='-R$libdir'
8657      hardcode_direct=yes
8658      hardcode_shlibpath_var=no
8659      ;;
8660
8661    newsos6)
8662      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663      hardcode_direct=yes
8664      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665      hardcode_libdir_separator=:
8666      hardcode_shlibpath_var=no
8667      ;;
8668
8669    openbsd*)
8670      hardcode_direct=yes
8671      hardcode_shlibpath_var=no
8672      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8673        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8675        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8676        export_dynamic_flag_spec='${wl}-E'
8677      else
8678       case $host_os in
8679         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8680           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8681           hardcode_libdir_flag_spec='-R$libdir'
8682           ;;
8683         *)
8684           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8685           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8686           ;;
8687       esac
8688      fi
8689      ;;
8690
8691    os2*)
8692      hardcode_libdir_flag_spec='-L$libdir'
8693      hardcode_minus_L=yes
8694      allow_undefined_flag=unsupported
8695      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'
8696      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8697      ;;
8698
8699    osf3*)
8700      if test "$GCC" = yes; then
8701        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8702        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'
8703      else
8704        allow_undefined_flag=' -expect_unresolved \*'
8705        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'
8706      fi
8707      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708      hardcode_libdir_separator=:
8709      ;;
8710
8711    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8712      if test "$GCC" = yes; then
8713        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8714        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'
8715        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8716      else
8717        allow_undefined_flag=' -expect_unresolved \*'
8718        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'
8719        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8720        $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'
8721
8722        # Both c and cxx compiler support -rpath directly
8723        hardcode_libdir_flag_spec='-rpath $libdir'
8724      fi
8725      hardcode_libdir_separator=:
8726      ;;
8727
8728    solaris*)
8729      no_undefined_flag=' -z text'
8730      if test "$GCC" = yes; then
8731        wlarc='${wl}'
8732        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8734          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8735      else
8736        wlarc=''
8737        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8738        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8739        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8740      fi
8741      hardcode_libdir_flag_spec='-R$libdir'
8742      hardcode_shlibpath_var=no
8743      case $host_os in
8744      solaris2.[0-5] | solaris2.[0-5].*) ;;
8745      *)
8746        # The compiler driver will combine linker options so we
8747        # cannot just pass the convience library names through
8748        # without $wl, iff we do not link with $LD.
8749        # Luckily, gcc supports the same syntax we need for Sun Studio.
8750        # Supported since Solaris 2.6 (maybe 2.5.1?)
8751        case $wlarc in
8752        '')
8753          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8754        *)
8755          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' ;;
8756        esac ;;
8757      esac
8758      link_all_deplibs=yes
8759      ;;
8760
8761    sunos4*)
8762      if test "x$host_vendor" = xsequent; then
8763        # Use $CC to link under sequent, because it throws in some extra .o
8764        # files that make .init and .fini sections work.
8765        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8766      else
8767        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8768      fi
8769      hardcode_libdir_flag_spec='-L$libdir'
8770      hardcode_direct=yes
8771      hardcode_minus_L=yes
8772      hardcode_shlibpath_var=no
8773      ;;
8774
8775    sysv4)
8776      case $host_vendor in
8777        sni)
8778          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779          hardcode_direct=yes # is this really true???
8780        ;;
8781        siemens)
8782          ## LD is ld it makes a PLAMLIB
8783          ## CC just makes a GrossModule.
8784          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8785          reload_cmds='$CC -r -o $output$reload_objs'
8786          hardcode_direct=no
8787        ;;
8788        motorola)
8789          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8791        ;;
8792      esac
8793      runpath_var='LD_RUN_PATH'
8794      hardcode_shlibpath_var=no
8795      ;;
8796
8797    sysv4.3*)
8798      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799      hardcode_shlibpath_var=no
8800      export_dynamic_flag_spec='-Bexport'
8801      ;;
8802
8803    sysv4*MP*)
8804      if test -d /usr/nec; then
8805        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806        hardcode_shlibpath_var=no
8807        runpath_var=LD_RUN_PATH
8808        hardcode_runpath_var=yes
8809        ld_shlibs=yes
8810      fi
8811      ;;
8812
8813    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8814      no_undefined_flag='${wl}-z,text'
8815      archive_cmds_need_lc=no
8816      hardcode_shlibpath_var=no
8817      runpath_var='LD_RUN_PATH'
8818
8819      if test "$GCC" = yes; then
8820        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8822      else
8823        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825      fi
8826      ;;
8827
8828    sysv5* | sco3.2v5* | sco5v6*)
8829      # Note: We can NOT use -z defs as we might desire, because we do not
8830      # link with -lc, and that would cause any symbols used from libc to
8831      # always be unresolved, which means just about no library would
8832      # ever link correctly.  If we're not using GNU ld we use -z text
8833      # though, which does catch some bad symbols but isn't as heavy-handed
8834      # as -z defs.
8835      no_undefined_flag='${wl}-z,text'
8836      allow_undefined_flag='${wl}-z,nodefs'
8837      archive_cmds_need_lc=no
8838      hardcode_shlibpath_var=no
8839      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8840      hardcode_libdir_separator=':'
8841      link_all_deplibs=yes
8842      export_dynamic_flag_spec='${wl}-Bexport'
8843      runpath_var='LD_RUN_PATH'
8844
8845      if test "$GCC" = yes; then
8846        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8848      else
8849        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851      fi
8852      ;;
8853
8854    uts4*)
8855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8856      hardcode_libdir_flag_spec='-L$libdir'
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    *)
8861      ld_shlibs=no
8862      ;;
8863    esac
8864  fi
8865
8866echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8867echo "${ECHO_T}$ld_shlibs" >&6
8868test "$ld_shlibs" = no && can_build_shared=no
8869
8870#
8871# Do we need to explicitly link libc?
8872#
8873case "x$archive_cmds_need_lc" in
8874x|xyes)
8875  # Assume -lc should be added
8876  archive_cmds_need_lc=yes
8877
8878  if test "$enable_shared" = yes && test "$GCC" = yes; then
8879    case $archive_cmds in
8880    *'~'*)
8881      # FIXME: we may have to deal with multi-command sequences.
8882      ;;
8883    '$CC '*)
8884      # Test whether the compiler implicitly links with -lc since on some
8885      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8886      # to ld, don't add -lc before -lgcc.
8887      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8888echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8889      $rm conftest*
8890      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8891
8892      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8893  (eval $ac_compile) 2>&5
8894  ac_status=$?
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); } 2>conftest.err; then
8897        soname=conftest
8898        lib=conftest
8899        libobjs=conftest.$ac_objext
8900        deplibs=
8901        wl=$lt_prog_compiler_wl
8902        pic_flag=$lt_prog_compiler_pic
8903        compiler_flags=-v
8904        linker_flags=-v
8905        verstring=
8906        output_objdir=.
8907        libname=conftest
8908        lt_save_allow_undefined_flag=$allow_undefined_flag
8909        allow_undefined_flag=
8910        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8911  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8912  ac_status=$?
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); }
8915        then
8916          archive_cmds_need_lc=no
8917        else
8918          archive_cmds_need_lc=yes
8919        fi
8920        allow_undefined_flag=$lt_save_allow_undefined_flag
8921      else
8922        cat conftest.err 1>&5
8923      fi
8924      $rm conftest*
8925      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8926echo "${ECHO_T}$archive_cmds_need_lc" >&6
8927      ;;
8928    esac
8929  fi
8930  ;;
8931esac
8932
8933echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8934echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8935library_names_spec=
8936libname_spec='lib$name'
8937soname_spec=
8938shrext_cmds=".so"
8939postinstall_cmds=
8940postuninstall_cmds=
8941finish_cmds=
8942finish_eval=
8943shlibpath_var=
8944shlibpath_overrides_runpath=unknown
8945version_type=none
8946dynamic_linker="$host_os ld.so"
8947sys_lib_dlsearch_path_spec="/lib /usr/lib"
8948if test "$GCC" = yes; then
8949  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8950  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8951    # if the path contains ";" then we assume it to be the separator
8952    # otherwise default to the standard path separator (i.e. ":") - it is
8953    # assumed that no part of a normal pathname contains ";" but that should
8954    # okay in the real world where ";" in dirpaths is itself problematic.
8955    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8956  else
8957    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8958  fi
8959else
8960  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8961fi
8962need_lib_prefix=unknown
8963hardcode_into_libs=no
8964
8965# when you set need_version to no, make sure it does not cause -set_version
8966# flags to be left without arguments
8967need_version=unknown
8968
8969case $host_os in
8970aix3*)
8971  version_type=linux
8972  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8973  shlibpath_var=LIBPATH
8974
8975  # AIX 3 has no versioning support, so we append a major version to the name.
8976  soname_spec='${libname}${release}${shared_ext}$major'
8977  ;;
8978
8979aix4* | aix5*)
8980  version_type=linux
8981  need_lib_prefix=no
8982  need_version=no
8983  hardcode_into_libs=yes
8984  if test "$host_cpu" = ia64; then
8985    # AIX 5 supports IA64
8986    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8987    shlibpath_var=LD_LIBRARY_PATH
8988  else
8989    # With GCC up to 2.95.x, collect2 would create an import file
8990    # for dependence libraries.  The import file would start with
8991    # the line `#! .'.  This would cause the generated library to
8992    # depend on `.', always an invalid library.  This was fixed in
8993    # development snapshots of GCC prior to 3.0.
8994    case $host_os in
8995      aix4 | aix4.[01] | aix4.[01].*)
8996      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8997           echo ' yes '
8998           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8999        :
9000      else
9001        can_build_shared=no
9002      fi
9003      ;;
9004    esac
9005    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9006    # soname into executable. Probably we can add versioning support to
9007    # collect2, so additional links can be useful in future.
9008    if test "$aix_use_runtimelinking" = yes; then
9009      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9010      # instead of lib<name>.a to let people know that these are not
9011      # typical AIX shared libraries.
9012      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9013    else
9014      # We preserve .a as extension for shared libraries through AIX4.2
9015      # and later when we are not doing run time linking.
9016      library_names_spec='${libname}${release}.a $libname.a'
9017      soname_spec='${libname}${release}${shared_ext}$major'
9018    fi
9019    shlibpath_var=LIBPATH
9020  fi
9021  ;;
9022
9023amigaos*)
9024  library_names_spec='$libname.ixlibrary $libname.a'
9025  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9026  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'
9027  ;;
9028
9029beos*)
9030  library_names_spec='${libname}${shared_ext}'
9031  dynamic_linker="$host_os ld.so"
9032  shlibpath_var=LIBRARY_PATH
9033  ;;
9034
9035bsdi[45]*)
9036  version_type=linux
9037  need_version=no
9038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039  soname_spec='${libname}${release}${shared_ext}$major'
9040  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9041  shlibpath_var=LD_LIBRARY_PATH
9042  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9043  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9044  # the default ld.so.conf also contains /usr/contrib/lib and
9045  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9046  # libtool to hard-code these into programs
9047  ;;
9048
9049cygwin* | mingw* | pw32*)
9050  version_type=windows
9051  shrext_cmds=".dll"
9052  need_version=no
9053  need_lib_prefix=no
9054
9055  case $GCC,$host_os in
9056  yes,cygwin* | yes,mingw* | yes,pw32*)
9057    library_names_spec='$libname.dll.a'
9058    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9059    postinstall_cmds='base_file=`basename \${file}`~
9060      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9061      dldir=$destdir/`dirname \$dlpath`~
9062      test -d \$dldir || mkdir -p \$dldir~
9063      $install_prog $dir/$dlname \$dldir/$dlname~
9064      chmod a+x \$dldir/$dlname'
9065    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9066      dlpath=$dir/\$dldll~
9067       $rm \$dlpath'
9068    shlibpath_overrides_runpath=yes
9069
9070    case $host_os in
9071    cygwin*)
9072      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9073      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9074      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9075      ;;
9076    mingw*)
9077      # MinGW DLLs use traditional 'lib' prefix
9078      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9079      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9080      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9081        # It is most probably a Windows format PATH printed by
9082        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9083        # path with ; separators, and with drive letters. We can handle the
9084        # drive letters (cygwin fileutils understands them), so leave them,
9085        # especially as we might pass files found there to a mingw objdump,
9086        # which wouldn't understand a cygwinified path. Ahh.
9087        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9088      else
9089        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9090      fi
9091      ;;
9092    pw32*)
9093      # pw32 DLLs use 'pw' prefix rather than 'lib'
9094      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9095      ;;
9096    esac
9097    ;;
9098
9099  *)
9100    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9101    ;;
9102  esac
9103  dynamic_linker='Win32 ld.exe'
9104  # FIXME: first we should search . and the directory the executable is in
9105  shlibpath_var=PATH
9106  ;;
9107
9108darwin* | rhapsody*)
9109  dynamic_linker="$host_os dyld"
9110  version_type=darwin
9111  need_lib_prefix=no
9112  need_version=no
9113  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9114  soname_spec='${libname}${release}${major}$shared_ext'
9115  shlibpath_overrides_runpath=yes
9116  shlibpath_var=DYLD_LIBRARY_PATH
9117  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9118  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9119  if test "$GCC" = yes; then
9120    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"`
9121  else
9122    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9123  fi
9124  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9125  ;;
9126
9127dgux*)
9128  version_type=linux
9129  need_lib_prefix=no
9130  need_version=no
9131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9132  soname_spec='${libname}${release}${shared_ext}$major'
9133  shlibpath_var=LD_LIBRARY_PATH
9134  ;;
9135
9136freebsd1*)
9137  dynamic_linker=no
9138  ;;
9139
9140kfreebsd*-gnu)
9141  version_type=linux
9142  need_lib_prefix=no
9143  need_version=no
9144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9145  soname_spec='${libname}${release}${shared_ext}$major'
9146  shlibpath_var=LD_LIBRARY_PATH
9147  shlibpath_overrides_runpath=no
9148  hardcode_into_libs=yes
9149  dynamic_linker='GNU ld.so'
9150  ;;
9151
9152freebsd* | dragonfly*)
9153  # DragonFly does not have aout.  When/if they implement a new
9154  # versioning mechanism, adjust this.
9155  if test -x /usr/bin/objformat; then
9156    objformat=`/usr/bin/objformat`
9157  else
9158    case $host_os in
9159    freebsd[123]*) objformat=aout ;;
9160    *) objformat=elf ;;
9161    esac
9162  fi
9163  version_type=freebsd-$objformat
9164  case $version_type in
9165    freebsd-elf*)
9166      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9167      need_version=no
9168      need_lib_prefix=no
9169      ;;
9170    freebsd-*)
9171      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9172      need_version=yes
9173      ;;
9174  esac
9175  shlibpath_var=LD_LIBRARY_PATH
9176  case $host_os in
9177  freebsd2*)
9178    shlibpath_overrides_runpath=yes
9179    ;;
9180  freebsd3.[01]* | freebsdelf3.[01]*)
9181    shlibpath_overrides_runpath=yes
9182    hardcode_into_libs=yes
9183    ;;
9184  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9185  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9186    shlibpath_overrides_runpath=no
9187    hardcode_into_libs=yes
9188    ;;
9189  freebsd*) # from 4.6 on
9190    shlibpath_overrides_runpath=yes
9191    hardcode_into_libs=yes
9192    ;;
9193  esac
9194  ;;
9195
9196gnu*)
9197  version_type=linux
9198  need_lib_prefix=no
9199  need_version=no
9200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9201  soname_spec='${libname}${release}${shared_ext}$major'
9202  shlibpath_var=LD_LIBRARY_PATH
9203  hardcode_into_libs=yes
9204  ;;
9205
9206hpux9* | hpux10* | hpux11*)
9207  # Give a soname corresponding to the major version so that dld.sl refuses to
9208  # link against other versions.
9209  version_type=sunos
9210  need_lib_prefix=no
9211  need_version=no
9212  case $host_cpu in
9213  ia64*)
9214    shrext_cmds='.so'
9215    hardcode_into_libs=yes
9216    dynamic_linker="$host_os dld.so"
9217    shlibpath_var=LD_LIBRARY_PATH
9218    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9219    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220    soname_spec='${libname}${release}${shared_ext}$major'
9221    if test "X$HPUX_IA64_MODE" = X32; then
9222      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9223    else
9224      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9225    fi
9226    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9227    ;;
9228   hppa*64*)
9229     shrext_cmds='.sl'
9230     hardcode_into_libs=yes
9231     dynamic_linker="$host_os dld.sl"
9232     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9233     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235     soname_spec='${libname}${release}${shared_ext}$major'
9236     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9237     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9238     ;;
9239   *)
9240    shrext_cmds='.sl'
9241    dynamic_linker="$host_os dld.sl"
9242    shlibpath_var=SHLIB_PATH
9243    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9244    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9245    soname_spec='${libname}${release}${shared_ext}$major'
9246    ;;
9247  esac
9248  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9249  postinstall_cmds='chmod 555 $lib'
9250  ;;
9251
9252interix3*)
9253  version_type=linux
9254  need_lib_prefix=no
9255  need_version=no
9256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257  soname_spec='${libname}${release}${shared_ext}$major'
9258  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9259  shlibpath_var=LD_LIBRARY_PATH
9260  shlibpath_overrides_runpath=no
9261  hardcode_into_libs=yes
9262  ;;
9263
9264irix5* | irix6* | nonstopux*)
9265  case $host_os in
9266    nonstopux*) version_type=nonstopux ;;
9267    *)
9268        if test "$lt_cv_prog_gnu_ld" = yes; then
9269                version_type=linux
9270        else
9271                version_type=irix
9272        fi ;;
9273  esac
9274  need_lib_prefix=no
9275  need_version=no
9276  soname_spec='${libname}${release}${shared_ext}$major'
9277  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9278  case $host_os in
9279  irix5* | nonstopux*)
9280    libsuff= shlibsuff=
9281    ;;
9282  *)
9283    case $LD in # libtool.m4 will add one of these switches to LD
9284    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9285      libsuff= shlibsuff= libmagic=32-bit;;
9286    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9287      libsuff=32 shlibsuff=N32 libmagic=N32;;
9288    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9289      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9290    *) libsuff= shlibsuff= libmagic=never-match;;
9291    esac
9292    ;;
9293  esac
9294  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9295  shlibpath_overrides_runpath=no
9296  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9297  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9298  hardcode_into_libs=yes
9299  ;;
9300
9301# No shared lib support for Linux oldld, aout, or coff.
9302linux*oldld* | linux*aout* | linux*coff*)
9303  dynamic_linker=no
9304  ;;
9305
9306# This must be Linux ELF.
9307linux*)
9308  version_type=linux
9309  need_lib_prefix=no
9310  need_version=no
9311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312  soname_spec='${libname}${release}${shared_ext}$major'
9313  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9314  shlibpath_var=LD_LIBRARY_PATH
9315  shlibpath_overrides_runpath=no
9316  # This implies no fast_install, which is unacceptable.
9317  # Some rework will be needed to allow for fast_install
9318  # before this can be enabled.
9319  hardcode_into_libs=yes
9320
9321  # Append ld.so.conf contents to the search path
9322  if test -f /etc/ld.so.conf; then
9323    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' ' '`
9324    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9325  fi
9326
9327  # We used to test for /lib/ld.so.1 and disable shared libraries on
9328  # powerpc, because MkLinux only supported shared libraries with the
9329  # GNU dynamic linker.  Since this was broken with cross compilers,
9330  # most powerpc-linux boxes support dynamic linking these days and
9331  # people can always --disable-shared, the test was removed, and we
9332  # assume the GNU/Linux dynamic linker is in use.
9333  dynamic_linker='GNU/Linux ld.so'
9334  ;;
9335
9336knetbsd*-gnu)
9337  version_type=linux
9338  need_lib_prefix=no
9339  need_version=no
9340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9341  soname_spec='${libname}${release}${shared_ext}$major'
9342  shlibpath_var=LD_LIBRARY_PATH
9343  shlibpath_overrides_runpath=no
9344  hardcode_into_libs=yes
9345  dynamic_linker='GNU ld.so'
9346  ;;
9347
9348netbsd*)
9349  version_type=sunos
9350  need_lib_prefix=no
9351  need_version=no
9352  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9354    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9355    dynamic_linker='NetBSD (a.out) ld.so'
9356  else
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='NetBSD ld.elf_so'
9360  fi
9361  shlibpath_var=LD_LIBRARY_PATH
9362  shlibpath_overrides_runpath=yes
9363  hardcode_into_libs=yes
9364  ;;
9365
9366newsos6)
9367  version_type=linux
9368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369  shlibpath_var=LD_LIBRARY_PATH
9370  shlibpath_overrides_runpath=yes
9371  ;;
9372
9373nto-qnx*)
9374  version_type=linux
9375  need_lib_prefix=no
9376  need_version=no
9377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378  soname_spec='${libname}${release}${shared_ext}$major'
9379  shlibpath_var=LD_LIBRARY_PATH
9380  shlibpath_overrides_runpath=yes
9381  ;;
9382
9383openbsd*)
9384  version_type=sunos
9385  sys_lib_dlsearch_path_spec="/usr/lib"
9386  need_lib_prefix=no
9387  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9388  case $host_os in
9389    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9390    *)                         need_version=no  ;;
9391  esac
9392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394  shlibpath_var=LD_LIBRARY_PATH
9395  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9396    case $host_os in
9397      openbsd2.[89] | openbsd2.[89].*)
9398        shlibpath_overrides_runpath=no
9399        ;;
9400      *)
9401        shlibpath_overrides_runpath=yes
9402        ;;
9403      esac
9404  else
9405    shlibpath_overrides_runpath=yes
9406  fi
9407  ;;
9408
9409os2*)
9410  libname_spec='$name'
9411  shrext_cmds=".dll"
9412  need_lib_prefix=no
9413  library_names_spec='$libname${shared_ext} $libname.a'
9414  dynamic_linker='OS/2 ld.exe'
9415  shlibpath_var=LIBPATH
9416  ;;
9417
9418osf3* | osf4* | osf5*)
9419  version_type=osf
9420  need_lib_prefix=no
9421  need_version=no
9422  soname_spec='${libname}${release}${shared_ext}$major'
9423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424  shlibpath_var=LD_LIBRARY_PATH
9425  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9426  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9427  ;;
9428
9429solaris*)
9430  version_type=linux
9431  need_lib_prefix=no
9432  need_version=no
9433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434  soname_spec='${libname}${release}${shared_ext}$major'
9435  shlibpath_var=LD_LIBRARY_PATH
9436  shlibpath_overrides_runpath=yes
9437  hardcode_into_libs=yes
9438  # ldd complains unless libraries are executable
9439  postinstall_cmds='chmod +x $lib'
9440  ;;
9441
9442sunos4*)
9443  version_type=sunos
9444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9445  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9446  shlibpath_var=LD_LIBRARY_PATH
9447  shlibpath_overrides_runpath=yes
9448  if test "$with_gnu_ld" = yes; then
9449    need_lib_prefix=no
9450  fi
9451  need_version=yes
9452  ;;
9453
9454sysv4 | sysv4.3*)
9455  version_type=linux
9456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457  soname_spec='${libname}${release}${shared_ext}$major'
9458  shlibpath_var=LD_LIBRARY_PATH
9459  case $host_vendor in
9460    sni)
9461      shlibpath_overrides_runpath=no
9462      need_lib_prefix=no
9463      export_dynamic_flag_spec='${wl}-Blargedynsym'
9464      runpath_var=LD_RUN_PATH
9465      ;;
9466    siemens)
9467      need_lib_prefix=no
9468      ;;
9469    motorola)
9470      need_lib_prefix=no
9471      need_version=no
9472      shlibpath_overrides_runpath=no
9473      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9474      ;;
9475  esac
9476  ;;
9477
9478sysv4*MP*)
9479  if test -d /usr/nec ;then
9480    version_type=linux
9481    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9482    soname_spec='$libname${shared_ext}.$major'
9483    shlibpath_var=LD_LIBRARY_PATH
9484  fi
9485  ;;
9486
9487sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9488  version_type=freebsd-elf
9489  need_lib_prefix=no
9490  need_version=no
9491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9492  soname_spec='${libname}${release}${shared_ext}$major'
9493  shlibpath_var=LD_LIBRARY_PATH
9494  hardcode_into_libs=yes
9495  if test "$with_gnu_ld" = yes; then
9496    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9497    shlibpath_overrides_runpath=no
9498  else
9499    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9500    shlibpath_overrides_runpath=yes
9501    case $host_os in
9502      sco3.2v5*)
9503        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9504        ;;
9505    esac
9506  fi
9507  sys_lib_dlsearch_path_spec='/usr/lib'
9508  ;;
9509
9510uts4*)
9511  version_type=linux
9512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  shlibpath_var=LD_LIBRARY_PATH
9515  ;;
9516
9517*)
9518  dynamic_linker=no
9519  ;;
9520esac
9521echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9522echo "${ECHO_T}$dynamic_linker" >&6
9523test "$dynamic_linker" = no && can_build_shared=no
9524
9525variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9526if test "$GCC" = yes; then
9527  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9528fi
9529
9530echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9531echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9532hardcode_action=
9533if test -n "$hardcode_libdir_flag_spec" || \
9534   test -n "$runpath_var" || \
9535   test "X$hardcode_automatic" = "Xyes" ; then
9536
9537  # We can hardcode non-existant directories.
9538  if test "$hardcode_direct" != no &&
9539     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9540     # have to relink, otherwise we might link with an installed library
9541     # when we should be linking with a yet-to-be-installed one
9542     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9543     test "$hardcode_minus_L" != no; then
9544    # Linking always hardcodes the temporary library directory.
9545    hardcode_action=relink
9546  else
9547    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9548    hardcode_action=immediate
9549  fi
9550else
9551  # We cannot hardcode anything, or else we can only hardcode existing
9552  # directories.
9553  hardcode_action=unsupported
9554fi
9555echo "$as_me:$LINENO: result: $hardcode_action" >&5
9556echo "${ECHO_T}$hardcode_action" >&6
9557
9558if test "$hardcode_action" = relink; then
9559  # Fast installation is not supported
9560  enable_fast_install=no
9561elif test "$shlibpath_overrides_runpath" = yes ||
9562     test "$enable_shared" = no; then
9563  # Fast installation is not necessary
9564  enable_fast_install=needless
9565fi
9566
9567striplib=
9568old_striplib=
9569echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9570echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9571if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9572  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9573  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9574  echo "$as_me:$LINENO: result: yes" >&5
9575echo "${ECHO_T}yes" >&6
9576else
9577# FIXME - insert some real tests, host_os isn't really good enough
9578  case $host_os in
9579   darwin*)
9580       if test -n "$STRIP" ; then
9581         striplib="$STRIP -x"
9582         echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6
9584       else
9585  echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587fi
9588       ;;
9589   *)
9590  echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592    ;;
9593  esac
9594fi
9595
9596if test "x$enable_dlopen" != xyes; then
9597  enable_dlopen=unknown
9598  enable_dlopen_self=unknown
9599  enable_dlopen_self_static=unknown
9600else
9601  lt_cv_dlopen=no
9602  lt_cv_dlopen_libs=
9603
9604  case $host_os in
9605  beos*)
9606    lt_cv_dlopen="load_add_on"
9607    lt_cv_dlopen_libs=
9608    lt_cv_dlopen_self=yes
9609    ;;
9610
9611  mingw* | pw32*)
9612    lt_cv_dlopen="LoadLibrary"
9613    lt_cv_dlopen_libs=
9614   ;;
9615
9616  cygwin*)
9617    lt_cv_dlopen="dlopen"
9618    lt_cv_dlopen_libs=
9619   ;;
9620
9621  darwin*)
9622  # if libdl is installed we need to link against it
9623    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9624echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9625if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9626  echo $ECHO_N "(cached) $ECHO_C" >&6
9627else
9628  ac_check_lib_save_LIBS=$LIBS
9629LIBS="-ldl  $LIBS"
9630cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h.  */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h.  */
9636
9637/* Override any gcc2 internal prototype to avoid an error.  */
9638#ifdef __cplusplus
9639extern "C"
9640#endif
9641/* We use char because int might match the return type of a gcc2
9642   builtin and then its argument prototype would still apply.  */
9643char dlopen ();
9644int
9645main ()
9646{
9647dlopen ();
9648  ;
9649  return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
9653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654  (eval $ac_link) 2>conftest.er1
9655  ac_status=$?
9656  grep -v '^ *+' conftest.er1 >conftest.err
9657  rm -f conftest.er1
9658  cat conftest.err >&5
9659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660  (exit $ac_status); } &&
9661         { ac_try='test -z "$ac_c_werror_flag"
9662                         || test ! -s conftest.err'
9663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664  (eval $ac_try) 2>&5
9665  ac_status=$?
9666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667  (exit $ac_status); }; } &&
9668         { ac_try='test -s conftest$ac_exeext'
9669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670  (eval $ac_try) 2>&5
9671  ac_status=$?
9672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673  (exit $ac_status); }; }; then
9674  ac_cv_lib_dl_dlopen=yes
9675else
9676  echo "$as_me: failed program was:" >&5
9677sed 's/^/| /' conftest.$ac_ext >&5
9678
9679ac_cv_lib_dl_dlopen=no
9680fi
9681rm -f conftest.err conftest.$ac_objext \
9682      conftest$ac_exeext conftest.$ac_ext
9683LIBS=$ac_check_lib_save_LIBS
9684fi
9685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9687if test $ac_cv_lib_dl_dlopen = yes; then
9688  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9689else
9690
9691    lt_cv_dlopen="dyld"
9692    lt_cv_dlopen_libs=
9693    lt_cv_dlopen_self=yes
9694
9695fi
9696
9697   ;;
9698
9699  *)
9700    echo "$as_me:$LINENO: checking for shl_load" >&5
9701echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9702if test "${ac_cv_func_shl_load+set}" = set; then
9703  echo $ECHO_N "(cached) $ECHO_C" >&6
9704else
9705  cat >conftest.$ac_ext <<_ACEOF
9706/* confdefs.h.  */
9707_ACEOF
9708cat confdefs.h >>conftest.$ac_ext
9709cat >>conftest.$ac_ext <<_ACEOF
9710/* end confdefs.h.  */
9711/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9712   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9713#define shl_load innocuous_shl_load
9714
9715/* System header to define __stub macros and hopefully few prototypes,
9716    which can conflict with char shl_load (); below.
9717    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718    <limits.h> exists even on freestanding compilers.  */
9719
9720#ifdef __STDC__
9721# include <limits.h>
9722#else
9723# include <assert.h>
9724#endif
9725
9726#undef shl_load
9727
9728/* Override any gcc2 internal prototype to avoid an error.  */
9729#ifdef __cplusplus
9730extern "C"
9731{
9732#endif
9733/* We use char because int might match the return type of a gcc2
9734   builtin and then its argument prototype would still apply.  */
9735char shl_load ();
9736/* The GNU C library defines this for functions which it implements
9737    to always fail with ENOSYS.  Some functions are actually named
9738    something starting with __ and the normal name is an alias.  */
9739#if defined (__stub_shl_load) || defined (__stub___shl_load)
9740choke me
9741#else
9742char (*f) () = shl_load;
9743#endif
9744#ifdef __cplusplus
9745}
9746#endif
9747
9748int
9749main ()
9750{
9751return f != shl_load;
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758  (eval $ac_link) 2>conftest.er1
9759  ac_status=$?
9760  grep -v '^ *+' conftest.er1 >conftest.err
9761  rm -f conftest.er1
9762  cat conftest.err >&5
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); } &&
9765         { ac_try='test -z "$ac_c_werror_flag"
9766                         || test ! -s conftest.err'
9767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768  (eval $ac_try) 2>&5
9769  ac_status=$?
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); }; } &&
9772         { ac_try='test -s conftest$ac_exeext'
9773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774  (eval $ac_try) 2>&5
9775  ac_status=$?
9776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777  (exit $ac_status); }; }; then
9778  ac_cv_func_shl_load=yes
9779else
9780  echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
9782
9783ac_cv_func_shl_load=no
9784fi
9785rm -f conftest.err conftest.$ac_objext \
9786      conftest$ac_exeext conftest.$ac_ext
9787fi
9788echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9789echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9790if test $ac_cv_func_shl_load = yes; then
9791  lt_cv_dlopen="shl_load"
9792else
9793  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9794echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9795if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9796  echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798  ac_check_lib_save_LIBS=$LIBS
9799LIBS="-ldld  $LIBS"
9800cat >conftest.$ac_ext <<_ACEOF
9801/* confdefs.h.  */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h.  */
9806
9807/* Override any gcc2 internal prototype to avoid an error.  */
9808#ifdef __cplusplus
9809extern "C"
9810#endif
9811/* We use char because int might match the return type of a gcc2
9812   builtin and then its argument prototype would still apply.  */
9813char shl_load ();
9814int
9815main ()
9816{
9817shl_load ();
9818  ;
9819  return 0;
9820}
9821_ACEOF
9822rm -f conftest.$ac_objext conftest$ac_exeext
9823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9824  (eval $ac_link) 2>conftest.er1
9825  ac_status=$?
9826  grep -v '^ *+' conftest.er1 >conftest.err
9827  rm -f conftest.er1
9828  cat conftest.err >&5
9829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830  (exit $ac_status); } &&
9831         { ac_try='test -z "$ac_c_werror_flag"
9832                         || test ! -s conftest.err'
9833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834  (eval $ac_try) 2>&5
9835  ac_status=$?
9836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837  (exit $ac_status); }; } &&
9838         { ac_try='test -s conftest$ac_exeext'
9839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840  (eval $ac_try) 2>&5
9841  ac_status=$?
9842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843  (exit $ac_status); }; }; then
9844  ac_cv_lib_dld_shl_load=yes
9845else
9846  echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849ac_cv_lib_dld_shl_load=no
9850fi
9851rm -f conftest.err conftest.$ac_objext \
9852      conftest$ac_exeext conftest.$ac_ext
9853LIBS=$ac_check_lib_save_LIBS
9854fi
9855echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9856echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9857if test $ac_cv_lib_dld_shl_load = yes; then
9858  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9859else
9860  echo "$as_me:$LINENO: checking for dlopen" >&5
9861echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9862if test "${ac_cv_func_dlopen+set}" = set; then
9863  echo $ECHO_N "(cached) $ECHO_C" >&6
9864else
9865  cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h.  */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
9870/* end confdefs.h.  */
9871/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9873#define dlopen innocuous_dlopen
9874
9875/* System header to define __stub macros and hopefully few prototypes,
9876    which can conflict with char dlopen (); below.
9877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9878    <limits.h> exists even on freestanding compilers.  */
9879
9880#ifdef __STDC__
9881# include <limits.h>
9882#else
9883# include <assert.h>
9884#endif
9885
9886#undef dlopen
9887
9888/* Override any gcc2 internal prototype to avoid an error.  */
9889#ifdef __cplusplus
9890extern "C"
9891{
9892#endif
9893/* We use char because int might match the return type of a gcc2
9894   builtin and then its argument prototype would still apply.  */
9895char dlopen ();
9896/* The GNU C library defines this for functions which it implements
9897    to always fail with ENOSYS.  Some functions are actually named
9898    something starting with __ and the normal name is an alias.  */
9899#if defined (__stub_dlopen) || defined (__stub___dlopen)
9900choke me
9901#else
9902char (*f) () = dlopen;
9903#endif
9904#ifdef __cplusplus
9905}
9906#endif
9907
9908int
9909main ()
9910{
9911return f != dlopen;
9912  ;
9913  return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
9917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918  (eval $ac_link) 2>conftest.er1
9919  ac_status=$?
9920  grep -v '^ *+' conftest.er1 >conftest.err
9921  rm -f conftest.er1
9922  cat conftest.err >&5
9923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924  (exit $ac_status); } &&
9925         { ac_try='test -z "$ac_c_werror_flag"
9926                         || test ! -s conftest.err'
9927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928  (eval $ac_try) 2>&5
9929  ac_status=$?
9930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931  (exit $ac_status); }; } &&
9932         { ac_try='test -s conftest$ac_exeext'
9933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934  (eval $ac_try) 2>&5
9935  ac_status=$?
9936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937  (exit $ac_status); }; }; then
9938  ac_cv_func_dlopen=yes
9939else
9940  echo "$as_me: failed program was:" >&5
9941sed 's/^/| /' conftest.$ac_ext >&5
9942
9943ac_cv_func_dlopen=no
9944fi
9945rm -f conftest.err conftest.$ac_objext \
9946      conftest$ac_exeext conftest.$ac_ext
9947fi
9948echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9949echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9950if test $ac_cv_func_dlopen = yes; then
9951  lt_cv_dlopen="dlopen"
9952else
9953  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9954echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9955if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9956  echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958  ac_check_lib_save_LIBS=$LIBS
9959LIBS="-ldl  $LIBS"
9960cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h.  */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h.  */
9966
9967/* Override any gcc2 internal prototype to avoid an error.  */
9968#ifdef __cplusplus
9969extern "C"
9970#endif
9971/* We use char because int might match the return type of a gcc2
9972   builtin and then its argument prototype would still apply.  */
9973char dlopen ();
9974int
9975main ()
9976{
9977dlopen ();
9978  ;
9979  return 0;
9980}
9981_ACEOF
9982rm -f conftest.$ac_objext conftest$ac_exeext
9983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9984  (eval $ac_link) 2>conftest.er1
9985  ac_status=$?
9986  grep -v '^ *+' conftest.er1 >conftest.err
9987  rm -f conftest.er1
9988  cat conftest.err >&5
9989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990  (exit $ac_status); } &&
9991         { ac_try='test -z "$ac_c_werror_flag"
9992                         || test ! -s conftest.err'
9993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994  (eval $ac_try) 2>&5
9995  ac_status=$?
9996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997  (exit $ac_status); }; } &&
9998         { ac_try='test -s conftest$ac_exeext'
9999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000  (eval $ac_try) 2>&5
10001  ac_status=$?
10002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); }; }; then
10004  ac_cv_lib_dl_dlopen=yes
10005else
10006  echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009ac_cv_lib_dl_dlopen=no
10010fi
10011rm -f conftest.err conftest.$ac_objext \
10012      conftest$ac_exeext conftest.$ac_ext
10013LIBS=$ac_check_lib_save_LIBS
10014fi
10015echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10016echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10017if test $ac_cv_lib_dl_dlopen = yes; then
10018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10019else
10020  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10021echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10022if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10023  echo $ECHO_N "(cached) $ECHO_C" >&6
10024else
10025  ac_check_lib_save_LIBS=$LIBS
10026LIBS="-lsvld  $LIBS"
10027cat >conftest.$ac_ext <<_ACEOF
10028/* confdefs.h.  */
10029_ACEOF
10030cat confdefs.h >>conftest.$ac_ext
10031cat >>conftest.$ac_ext <<_ACEOF
10032/* end confdefs.h.  */
10033
10034/* Override any gcc2 internal prototype to avoid an error.  */
10035#ifdef __cplusplus
10036extern "C"
10037#endif
10038/* We use char because int might match the return type of a gcc2
10039   builtin and then its argument prototype would still apply.  */
10040char dlopen ();
10041int
10042main ()
10043{
10044dlopen ();
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049rm -f conftest.$ac_objext conftest$ac_exeext
10050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051  (eval $ac_link) 2>conftest.er1
10052  ac_status=$?
10053  grep -v '^ *+' conftest.er1 >conftest.err
10054  rm -f conftest.er1
10055  cat conftest.err >&5
10056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057  (exit $ac_status); } &&
10058         { ac_try='test -z "$ac_c_werror_flag"
10059                         || test ! -s conftest.err'
10060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061  (eval $ac_try) 2>&5
10062  ac_status=$?
10063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064  (exit $ac_status); }; } &&
10065         { ac_try='test -s conftest$ac_exeext'
10066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067  (eval $ac_try) 2>&5
10068  ac_status=$?
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); }; }; then
10071  ac_cv_lib_svld_dlopen=yes
10072else
10073  echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
10076ac_cv_lib_svld_dlopen=no
10077fi
10078rm -f conftest.err conftest.$ac_objext \
10079      conftest$ac_exeext conftest.$ac_ext
10080LIBS=$ac_check_lib_save_LIBS
10081fi
10082echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10083echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10084if test $ac_cv_lib_svld_dlopen = yes; then
10085  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10086else
10087  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10088echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10089if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10090  echo $ECHO_N "(cached) $ECHO_C" >&6
10091else
10092  ac_check_lib_save_LIBS=$LIBS
10093LIBS="-ldld  $LIBS"
10094cat >conftest.$ac_ext <<_ACEOF
10095/* confdefs.h.  */
10096_ACEOF
10097cat confdefs.h >>conftest.$ac_ext
10098cat >>conftest.$ac_ext <<_ACEOF
10099/* end confdefs.h.  */
10100
10101/* Override any gcc2 internal prototype to avoid an error.  */
10102#ifdef __cplusplus
10103extern "C"
10104#endif
10105/* We use char because int might match the return type of a gcc2
10106   builtin and then its argument prototype would still apply.  */
10107char dld_link ();
10108int
10109main ()
10110{
10111dld_link ();
10112  ;
10113  return 0;
10114}
10115_ACEOF
10116rm -f conftest.$ac_objext conftest$ac_exeext
10117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118  (eval $ac_link) 2>conftest.er1
10119  ac_status=$?
10120  grep -v '^ *+' conftest.er1 >conftest.err
10121  rm -f conftest.er1
10122  cat conftest.err >&5
10123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124  (exit $ac_status); } &&
10125         { ac_try='test -z "$ac_c_werror_flag"
10126                         || test ! -s conftest.err'
10127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128  (eval $ac_try) 2>&5
10129  ac_status=$?
10130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131  (exit $ac_status); }; } &&
10132         { ac_try='test -s conftest$ac_exeext'
10133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134  (eval $ac_try) 2>&5
10135  ac_status=$?
10136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137  (exit $ac_status); }; }; then
10138  ac_cv_lib_dld_dld_link=yes
10139else
10140  echo "$as_me: failed program was:" >&5
10141sed 's/^/| /' conftest.$ac_ext >&5
10142
10143ac_cv_lib_dld_dld_link=no
10144fi
10145rm -f conftest.err conftest.$ac_objext \
10146      conftest$ac_exeext conftest.$ac_ext
10147LIBS=$ac_check_lib_save_LIBS
10148fi
10149echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10150echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10151if test $ac_cv_lib_dld_dld_link = yes; then
10152  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10153fi
10154
10155
10156fi
10157
10158
10159fi
10160
10161
10162fi
10163
10164
10165fi
10166
10167
10168fi
10169
10170    ;;
10171  esac
10172
10173  if test "x$lt_cv_dlopen" != xno; then
10174    enable_dlopen=yes
10175  else
10176    enable_dlopen=no
10177  fi
10178
10179  case $lt_cv_dlopen in
10180  dlopen)
10181    save_CPPFLAGS="$CPPFLAGS"
10182    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10183
10184    save_LDFLAGS="$LDFLAGS"
10185    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10186
10187    save_LIBS="$LIBS"
10188    LIBS="$lt_cv_dlopen_libs $LIBS"
10189
10190    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10191echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10192if test "${lt_cv_dlopen_self+set}" = set; then
10193  echo $ECHO_N "(cached) $ECHO_C" >&6
10194else
10195          if test "$cross_compiling" = yes; then :
10196  lt_cv_dlopen_self=cross
10197else
10198  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10199  lt_status=$lt_dlunknown
10200  cat > conftest.$ac_ext <<EOF
10201#line 10201 "configure"
10202#include "confdefs.h"
10203
10204#if HAVE_DLFCN_H
10205#include <dlfcn.h>
10206#endif
10207
10208#include <stdio.h>
10209
10210#ifdef RTLD_GLOBAL
10211#  define LT_DLGLOBAL           RTLD_GLOBAL
10212#else
10213#  ifdef DL_GLOBAL
10214#    define LT_DLGLOBAL         DL_GLOBAL
10215#  else
10216#    define LT_DLGLOBAL         0
10217#  endif
10218#endif
10219
10220/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10221   find out it does not work in some platform. */
10222#ifndef LT_DLLAZY_OR_NOW
10223#  ifdef RTLD_LAZY
10224#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10225#  else
10226#    ifdef DL_LAZY
10227#      define LT_DLLAZY_OR_NOW          DL_LAZY
10228#    else
10229#      ifdef RTLD_NOW
10230#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10231#      else
10232#        ifdef DL_NOW
10233#          define LT_DLLAZY_OR_NOW      DL_NOW
10234#        else
10235#          define LT_DLLAZY_OR_NOW      0
10236#        endif
10237#      endif
10238#    endif
10239#  endif
10240#endif
10241
10242#ifdef __cplusplus
10243extern "C" void exit (int);
10244#endif
10245
10246void fnord() { int i=42;}
10247int main ()
10248{
10249  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10250  int status = $lt_dlunknown;
10251
10252  if (self)
10253    {
10254      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10255      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10256      /* dlclose (self); */
10257    }
10258  else
10259    puts (dlerror ());
10260
10261    exit (status);
10262}
10263EOF
10264  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265  (eval $ac_link) 2>&5
10266  ac_status=$?
10267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10269    (./conftest; exit; ) >&5 2>/dev/null
10270    lt_status=$?
10271    case x$lt_status in
10272      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10273      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10274      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10275    esac
10276  else :
10277    # compilation failed
10278    lt_cv_dlopen_self=no
10279  fi
10280fi
10281rm -fr conftest*
10282
10283
10284fi
10285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10286echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10287
10288    if test "x$lt_cv_dlopen_self" = xyes; then
10289      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10290      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10292if test "${lt_cv_dlopen_self_static+set}" = set; then
10293  echo $ECHO_N "(cached) $ECHO_C" >&6
10294else
10295          if test "$cross_compiling" = yes; then :
10296  lt_cv_dlopen_self_static=cross
10297else
10298  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299  lt_status=$lt_dlunknown
10300  cat > conftest.$ac_ext <<EOF
10301#line 10301 "configure"
10302#include "confdefs.h"
10303
10304#if HAVE_DLFCN_H
10305#include <dlfcn.h>
10306#endif
10307
10308#include <stdio.h>
10309
10310#ifdef RTLD_GLOBAL
10311#  define LT_DLGLOBAL           RTLD_GLOBAL
10312#else
10313#  ifdef DL_GLOBAL
10314#    define LT_DLGLOBAL         DL_GLOBAL
10315#  else
10316#    define LT_DLGLOBAL         0
10317#  endif
10318#endif
10319
10320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321   find out it does not work in some platform. */
10322#ifndef LT_DLLAZY_OR_NOW
10323#  ifdef RTLD_LAZY
10324#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10325#  else
10326#    ifdef DL_LAZY
10327#      define LT_DLLAZY_OR_NOW          DL_LAZY
10328#    else
10329#      ifdef RTLD_NOW
10330#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10331#      else
10332#        ifdef DL_NOW
10333#          define LT_DLLAZY_OR_NOW      DL_NOW
10334#        else
10335#          define LT_DLLAZY_OR_NOW      0
10336#        endif
10337#      endif
10338#    endif
10339#  endif
10340#endif
10341
10342#ifdef __cplusplus
10343extern "C" void exit (int);
10344#endif
10345
10346void fnord() { int i=42;}
10347int main ()
10348{
10349  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350  int status = $lt_dlunknown;
10351
10352  if (self)
10353    {
10354      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10355      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356      /* dlclose (self); */
10357    }
10358  else
10359    puts (dlerror ());
10360
10361    exit (status);
10362}
10363EOF
10364  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365  (eval $ac_link) 2>&5
10366  ac_status=$?
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369    (./conftest; exit; ) >&5 2>/dev/null
10370    lt_status=$?
10371    case x$lt_status in
10372      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10373      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10374      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10375    esac
10376  else :
10377    # compilation failed
10378    lt_cv_dlopen_self_static=no
10379  fi
10380fi
10381rm -fr conftest*
10382
10383
10384fi
10385echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10386echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10387    fi
10388
10389    CPPFLAGS="$save_CPPFLAGS"
10390    LDFLAGS="$save_LDFLAGS"
10391    LIBS="$save_LIBS"
10392    ;;
10393  esac
10394
10395  case $lt_cv_dlopen_self in
10396  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10397  *) enable_dlopen_self=unknown ;;
10398  esac
10399
10400  case $lt_cv_dlopen_self_static in
10401  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10402  *) enable_dlopen_self_static=unknown ;;
10403  esac
10404fi
10405
10406
10407# Report which library types will actually be built
10408echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10409echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10410echo "$as_me:$LINENO: result: $can_build_shared" >&5
10411echo "${ECHO_T}$can_build_shared" >&6
10412
10413echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10414echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10415test "$can_build_shared" = "no" && enable_shared=no
10416
10417# On AIX, shared libraries and static libraries use the same namespace, and
10418# are all built from PIC.
10419case $host_os in
10420aix3*)
10421  test "$enable_shared" = yes && enable_static=no
10422  if test -n "$RANLIB"; then
10423    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10424    postinstall_cmds='$RANLIB $lib'
10425  fi
10426  ;;
10427
10428aix4* | aix5*)
10429  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10430    test "$enable_shared" = yes && enable_static=no
10431  fi
10432    ;;
10433esac
10434echo "$as_me:$LINENO: result: $enable_shared" >&5
10435echo "${ECHO_T}$enable_shared" >&6
10436
10437echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10438echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10439# Make sure either enable_shared or enable_static is yes.
10440test "$enable_shared" = yes || enable_static=yes
10441echo "$as_me:$LINENO: result: $enable_static" >&5
10442echo "${ECHO_T}$enable_static" >&6
10443
10444# The else clause should only fire when bootstrapping the
10445# libtool distribution, otherwise you forgot to ship ltmain.sh
10446# with your package, and you will get complaints that there are
10447# no rules to generate ltmain.sh.
10448if test -f "$ltmain"; then
10449  # See if we are running on zsh, and set the options which allow our commands through
10450  # without removal of \ escapes.
10451  if test -n "${ZSH_VERSION+set}" ; then
10452    setopt NO_GLOB_SUBST
10453  fi
10454  # Now quote all the things that may contain metacharacters while being
10455  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10456  # variables and quote the copies for generation of the libtool script.
10457  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10458    SED SHELL STRIP \
10459    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10460    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10461    deplibs_check_method reload_flag reload_cmds need_locks \
10462    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10463    lt_cv_sys_global_symbol_to_c_name_address \
10464    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10465    old_postinstall_cmds old_postuninstall_cmds \
10466    compiler \
10467    CC \
10468    LD \
10469    lt_prog_compiler_wl \
10470    lt_prog_compiler_pic \
10471    lt_prog_compiler_static \
10472    lt_prog_compiler_no_builtin_flag \
10473    export_dynamic_flag_spec \
10474    thread_safe_flag_spec \
10475    whole_archive_flag_spec \
10476    enable_shared_with_static_runtimes \
10477    old_archive_cmds \
10478    old_archive_from_new_cmds \
10479    predep_objects \
10480    postdep_objects \
10481    predeps \
10482    postdeps \
10483    compiler_lib_search_path \
10484    archive_cmds \
10485    archive_expsym_cmds \
10486    postinstall_cmds \
10487    postuninstall_cmds \
10488    old_archive_from_expsyms_cmds \
10489    allow_undefined_flag \
10490    no_undefined_flag \
10491    export_symbols_cmds \
10492    hardcode_libdir_flag_spec \
10493    hardcode_libdir_flag_spec_ld \
10494    hardcode_libdir_separator \
10495    hardcode_automatic \
10496    module_cmds \
10497    module_expsym_cmds \
10498    lt_cv_prog_compiler_c_o \
10499    exclude_expsyms \
10500    include_expsyms; do
10501
10502    case $var in
10503    old_archive_cmds | \
10504    old_archive_from_new_cmds | \
10505    archive_cmds | \
10506    archive_expsym_cmds | \
10507    module_cmds | \
10508    module_expsym_cmds | \
10509    old_archive_from_expsyms_cmds | \
10510    export_symbols_cmds | \
10511    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10512    postinstall_cmds | postuninstall_cmds | \
10513    old_postinstall_cmds | old_postuninstall_cmds | \
10514    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10515      # Double-quote double-evaled strings.
10516      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10517      ;;
10518    *)
10519      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10520      ;;
10521    esac
10522  done
10523
10524  case $lt_echo in
10525  *'\$0 --fallback-echo"')
10526    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10527    ;;
10528  esac
10529
10530cfgfile="${ofile}T"
10531  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10532  $rm -f "$cfgfile"
10533  { echo "$as_me:$LINENO: creating $ofile" >&5
10534echo "$as_me: creating $ofile" >&6;}
10535
10536  cat <<__EOF__ >> "$cfgfile"
10537#! $SHELL
10538
10539# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10540# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10541# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10542#
10543# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10544# Free Software Foundation, Inc.
10545#
10546# This file is part of GNU Libtool:
10547# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10548#
10549# This program is free software; you can redistribute it and/or modify
10550# it under the terms of the GNU General Public License as published by
10551# the Free Software Foundation; either version 2 of the License, or
10552# (at your option) any later version.
10553#
10554# This program is distributed in the hope that it will be useful, but
10555# WITHOUT ANY WARRANTY; without even the implied warranty of
10556# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10557# General Public License for more details.
10558#
10559# You should have received a copy of the GNU General Public License
10560# along with this program; if not, write to the Free Software
10561# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10562#
10563# As a special exception to the GNU General Public License, if you
10564# distribute this file as part of a program that contains a
10565# configuration script generated by Autoconf, you may include it under
10566# the same distribution terms that you use for the rest of that program.
10567
10568# A sed program that does not truncate output.
10569SED=$lt_SED
10570
10571# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10572Xsed="$SED -e 1s/^X//"
10573
10574# The HP-UX ksh and POSIX shell print the target directory to stdout
10575# if CDPATH is set.
10576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10577
10578# The names of the tagged configurations supported by this script.
10579available_tags=
10580
10581# ### BEGIN LIBTOOL CONFIG
10582
10583# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10584
10585# Shell to use when invoking shell scripts.
10586SHELL=$lt_SHELL
10587
10588# Whether or not to build shared libraries.
10589build_libtool_libs=$enable_shared
10590
10591# Whether or not to build static libraries.
10592build_old_libs=$enable_static
10593
10594# Whether or not to add -lc for building shared libraries.
10595build_libtool_need_lc=$archive_cmds_need_lc
10596
10597# Whether or not to disallow shared libs when runtime libs are static
10598allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10599
10600# Whether or not to optimize for fast installation.
10601fast_install=$enable_fast_install
10602
10603# The host system.
10604host_alias=$host_alias
10605host=$host
10606host_os=$host_os
10607
10608# The build system.
10609build_alias=$build_alias
10610build=$build
10611build_os=$build_os
10612
10613# An echo program that does not interpret backslashes.
10614echo=$lt_echo
10615
10616# The archiver.
10617AR=$lt_AR
10618AR_FLAGS=$lt_AR_FLAGS
10619
10620# A C compiler.
10621LTCC=$lt_LTCC
10622
10623# LTCC compiler flags.
10624LTCFLAGS=$lt_LTCFLAGS
10625
10626# A language-specific compiler.
10627CC=$lt_compiler
10628
10629# Is the compiler the GNU C compiler?
10630with_gcc=$GCC
10631
10632# An ERE matcher.
10633EGREP=$lt_EGREP
10634
10635# The linker used to build libraries.
10636LD=$lt_LD
10637
10638# Whether we need hard or soft links.
10639LN_S=$lt_LN_S
10640
10641# A BSD-compatible nm program.
10642NM=$lt_NM
10643
10644# A symbol stripping program
10645STRIP=$lt_STRIP
10646
10647# Used to examine libraries when file_magic_cmd begins "file"
10648MAGIC_CMD=$MAGIC_CMD
10649
10650# Used on cygwin: DLL creation program.
10651DLLTOOL="$DLLTOOL"
10652
10653# Used on cygwin: object dumper.
10654OBJDUMP="$OBJDUMP"
10655
10656# Used on cygwin: assembler.
10657AS="$AS"
10658
10659# The name of the directory that contains temporary libtool files.
10660objdir=$objdir
10661
10662# How to create reloadable object files.
10663reload_flag=$lt_reload_flag
10664reload_cmds=$lt_reload_cmds
10665
10666# How to pass a linker flag through the compiler.
10667wl=$lt_lt_prog_compiler_wl
10668
10669# Object file suffix (normally "o").
10670objext="$ac_objext"
10671
10672# Old archive suffix (normally "a").
10673libext="$libext"
10674
10675# Shared library suffix (normally ".so").
10676shrext_cmds='$shrext_cmds'
10677
10678# Executable file suffix (normally "").
10679exeext="$exeext"
10680
10681# Additional compiler flags for building library objects.
10682pic_flag=$lt_lt_prog_compiler_pic
10683pic_mode=$pic_mode
10684
10685# What is the maximum length of a command?
10686max_cmd_len=$lt_cv_sys_max_cmd_len
10687
10688# Does compiler simultaneously support -c and -o options?
10689compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10690
10691# Must we lock files when doing compilation?
10692need_locks=$lt_need_locks
10693
10694# Do we need the lib prefix for modules?
10695need_lib_prefix=$need_lib_prefix
10696
10697# Do we need a version for libraries?
10698need_version=$need_version
10699
10700# Whether dlopen is supported.
10701dlopen_support=$enable_dlopen
10702
10703# Whether dlopen of programs is supported.
10704dlopen_self=$enable_dlopen_self
10705
10706# Whether dlopen of statically linked programs is supported.
10707dlopen_self_static=$enable_dlopen_self_static
10708
10709# Compiler flag to prevent dynamic linking.
10710link_static_flag=$lt_lt_prog_compiler_static
10711
10712# Compiler flag to turn off builtin functions.
10713no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10714
10715# Compiler flag to allow reflexive dlopens.
10716export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10717
10718# Compiler flag to generate shared objects directly from archives.
10719whole_archive_flag_spec=$lt_whole_archive_flag_spec
10720
10721# Compiler flag to generate thread-safe objects.
10722thread_safe_flag_spec=$lt_thread_safe_flag_spec
10723
10724# Library versioning type.
10725version_type=$version_type
10726
10727# Format of library name prefix.
10728libname_spec=$lt_libname_spec
10729
10730# List of archive names.  First name is the real one, the rest are links.
10731# The last name is the one that the linker finds with -lNAME.
10732library_names_spec=$lt_library_names_spec
10733
10734# The coded name of the library, if different from the real name.
10735soname_spec=$lt_soname_spec
10736
10737# Commands used to build and install an old-style archive.
10738RANLIB=$lt_RANLIB
10739old_archive_cmds=$lt_old_archive_cmds
10740old_postinstall_cmds=$lt_old_postinstall_cmds
10741old_postuninstall_cmds=$lt_old_postuninstall_cmds
10742
10743# Create an old-style archive from a shared archive.
10744old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10745
10746# Create a temporary old-style archive to link instead of a shared archive.
10747old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10748
10749# Commands used to build and install a shared archive.
10750archive_cmds=$lt_archive_cmds
10751archive_expsym_cmds=$lt_archive_expsym_cmds
10752postinstall_cmds=$lt_postinstall_cmds
10753postuninstall_cmds=$lt_postuninstall_cmds
10754
10755# Commands used to build a loadable module (assumed same as above if empty)
10756module_cmds=$lt_module_cmds
10757module_expsym_cmds=$lt_module_expsym_cmds
10758
10759# Commands to strip libraries.
10760old_striplib=$lt_old_striplib
10761striplib=$lt_striplib
10762
10763# Dependencies to place before the objects being linked to create a
10764# shared library.
10765predep_objects=$lt_predep_objects
10766
10767# Dependencies to place after the objects being linked to create a
10768# shared library.
10769postdep_objects=$lt_postdep_objects
10770
10771# Dependencies to place before the objects being linked to create a
10772# shared library.
10773predeps=$lt_predeps
10774
10775# Dependencies to place after the objects being linked to create a
10776# shared library.
10777postdeps=$lt_postdeps
10778
10779# The library search path used internally by the compiler when linking
10780# a shared library.
10781compiler_lib_search_path=$lt_compiler_lib_search_path
10782
10783# Method to check whether dependent libraries are shared objects.
10784deplibs_check_method=$lt_deplibs_check_method
10785
10786# Command to use when deplibs_check_method == file_magic.
10787file_magic_cmd=$lt_file_magic_cmd
10788
10789# Flag that allows shared libraries with undefined symbols to be built.
10790allow_undefined_flag=$lt_allow_undefined_flag
10791
10792# Flag that forces no undefined symbols.
10793no_undefined_flag=$lt_no_undefined_flag
10794
10795# Commands used to finish a libtool library installation in a directory.