source: ThirdParty/ASL/releases/1.0.15/configure @ 1848

Last change on this file since 1848 was 1130, checked in by stefan, 12 years ago

temporarily committing release candidate to stable

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