source: ThirdParty/ASL/trunk/configure @ 1386

Last change on this file since 1386 was 1386, checked in by stefan, 11 years ago

rerun autotools

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