source: ThirdParty/ASL/trunk/configure @ 1664

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

add prefix to COIN_PKG_CONFIG_PATH, also if it does not exists at configure time

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