source: ThirdParty/ASL/trunk/configure @ 3380

Last change on this file since 3380 was 3380, checked in by tkr, 5 years ago

Re-running the autotools

  • Property svn:executable set to *
File size: 715.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyASL trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A HOST_TYPE HOST_IS_CYGWIN_TRUE HOST_IS_CYGWIN_FALSE ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL trunk to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL trunk:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068
1069  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1070  --enable-static[=PKGS]
1071                          build static libraries [default=no]
1072  --disable-dependency-tracking  speeds up one-time build
1073  --enable-dependency-tracking   do not reject slow dependency extractors
1074  --enable-maintainer-mode  enable make rules and dependencies not useful
1075                          (and sometimes confusing) to the casual installer
1076  --enable-shared[=PKGS]
1077                          build shared libraries [default=yes]
1078  --enable-fast-install[=PKGS]
1079                          optimize for fast installation [default=yes]
1080  --disable-libtool-lock  avoid locking (might break parallel builds)
1081  --disable-dependency-linking
1082                          disable linking library dependencies into shared
1083                          libraries
1084  --disable-pkg-config    disable use of pkg-config (if available)
1085
1086Optional Packages:
1087  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1088  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1089  --with-asl-verbosity specify the debug verbosity level for project ASL
1090  --with-asl-checklevel specify the sanity check level for project ASL
1091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092  --with-pic              try to use only PIC/non-PIC objects [default=use
1093                          both]
1094  --with-tags[=TAGS]
1095                          include additional configurations [automatic]
1096  --with-coin-instdir     prefix of installation directory for precompiled
1097                          COIN packages
1098
1099Some influential environment variables:
1100  CDEFS       Additional -D flags to be used when compiling C code.
1101  ADD_CFLAGS  Additional C compiler options
1102  DBG_CFLAGS  Debug C compiler options
1103  OPT_CFLAGS  Optimize C compiler options
1104  CC          C compiler command
1105  CFLAGS      C compiler flags
1106  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107              nonstandard directory <lib dir>
1108  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109              headers in a nonstandard directory <include dir>
1110  MPICC       C MPI Compiler
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117  PKG_CONFIG  path to pkg-config utility
1118  ASLMAKEFLAGS
1119              Compilation flags necessary for compiling the AMPL solver
1120              library
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
1125Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130  # If there are subdirs, report their specific --help.
1131  ac_popdir=`pwd`
1132  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133    test -d $ac_dir || continue
1134    ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138  # A "../" for each directory in $ac_dir_suffix.
1139  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141  ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145  .)  # No --srcdir option.  We are building in place.
1146    ac_srcdir=.
1147    if test -z "$ac_top_builddir"; then
1148       ac_top_srcdir=.
1149    else
1150       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151    fi ;;
1152  [\\/]* | ?:[\\/]* )  # Absolute path.
1153    ac_srcdir=$srcdir$ac_dir_suffix;
1154    ac_top_srcdir=$srcdir ;;
1155  *) # Relative path.
1156    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165  case "$ac_dir" in
1166  .) ac_abs_builddir=`pwd`;;
1167  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169  esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174  case ${ac_top_builddir}. in
1175  .) ac_abs_top_builddir=$ac_abs_builddir;;
1176  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178  esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183  case $ac_srcdir in
1184  .) ac_abs_srcdir=$ac_abs_builddir;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192  case $ac_top_srcdir in
1193  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196  esac;;
1197esac
1198
1199    cd $ac_dir
1200    # Check for guested configure; otherwise get Cygnus style configure.
1201    if test -f $ac_srcdir/configure.gnu; then
1202      echo
1203      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1204    elif test -f $ac_srcdir/configure; then
1205      echo
1206      $SHELL $ac_srcdir/configure  --help=recursive
1207    elif test -f $ac_srcdir/configure.ac ||
1208           test -f $ac_srcdir/configure.in; then
1209      echo
1210      $ac_configure --help
1211    else
1212      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213    fi
1214    cd $ac_popdir
1215  done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220  cat <<\_ACEOF
1221ThirdPartyASL configure trunk
1222generated by GNU Autoconf 2.59
1223
1224Copyright (C) 2003 Free Software Foundation, Inc.
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227
1228
1229Copyright 2006, 2007, 2009 International Business Machines and others.
1230All Rights Reserved.
1231This file is part of the open source package Coin which is distributed
1232under the Eclipse Public License.
1233_ACEOF
1234  exit 0
1235fi
1236exec 5>config.log
1237cat >&5 <<_ACEOF
1238This file contains any messages produced by compilers while
1239running configure, to aid debugging if configure makes a mistake.
1240
1241It was created by ThirdPartyASL $as_me trunk, which was
1242generated by GNU Autoconf 2.59.  Invocation command line was
1243
1244  $ $0 $@
1245
1246_ACEOF
1247{
1248cat <<_ASUNAME
1249## --------- ##
1250## Platform. ##
1251## --------- ##
1252
1253hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1254uname -m = `(uname -m) 2>/dev/null || echo unknown`
1255uname -r = `(uname -r) 2>/dev/null || echo unknown`
1256uname -s = `(uname -s) 2>/dev/null || echo unknown`
1257uname -v = `(uname -v) 2>/dev/null || echo unknown`
1258
1259/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1260/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1261
1262/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1263/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1264/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1265hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1266/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1267/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1268/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1269
1270_ASUNAME
1271
1272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273for as_dir in $PATH
1274do
1275  IFS=$as_save_IFS
1276  test -z "$as_dir" && as_dir=.
1277  echo "PATH: $as_dir"
1278done
1279
1280} >&5
1281
1282cat >&5 <<_ACEOF
1283
1284
1285## ----------- ##
1286## Core tests. ##
1287## ----------- ##
1288
1289_ACEOF
1290
1291
1292# Keep a trace of the command line.
1293# Strip out --no-create and --no-recursion so they do not pile up.
1294# Strip out --silent because we don't want to record it for future runs.
1295# Also quote any args containing shell meta-characters.
1296# Make two passes to allow for proper duplicate-argument suppression.
1297ac_configure_args=
1298ac_configure_args0=
1299ac_configure_args1=
1300ac_sep=
1301ac_must_keep_next=false
1302for ac_pass in 1 2
1303do
1304  for ac_arg
1305  do
1306    case $ac_arg in
1307    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1308    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309    | -silent | --silent | --silen | --sile | --sil)
1310      continue ;;
1311    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1313    esac
1314    case $ac_pass in
1315    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1316    2)
1317      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1318      if test $ac_must_keep_next = true; then
1319        ac_must_keep_next=false # Got value, back to normal.
1320      else
1321        case $ac_arg in
1322          *=* | --config-cache | -C | -disable-* | --disable-* \
1323          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1324          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1325          | -with-* | --with-* | -without-* | --without-* | --x)
1326            case "$ac_configure_args0 " in
1327              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1328            esac
1329            ;;
1330          -* ) ac_must_keep_next=true ;;
1331        esac
1332      fi
1333      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1334      # Get rid of the leading space.
1335      ac_sep=" "
1336      ;;
1337    esac
1338  done
1339done
1340$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1341$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1342
1343# When interrupted or exit'd, cleanup temporary files, and complete
1344# config.log.  We remove comments because anyway the quotes in there
1345# would cause problems or look ugly.
1346# WARNING: Be sure not to use single quotes in there, as some shells,
1347# such as our DU 5.0 friend, will then `close' the trap.
1348trap 'exit_status=$?
1349  # Save into config.log some information that might help in debugging.
1350  {
1351    echo
1352
1353    cat <<\_ASBOX
1354## ---------------- ##
1355## Cache variables. ##
1356## ---------------- ##
1357_ASBOX
1358    echo
1359    # The following way of writing the cache mishandles newlines in values,
1360{
1361  (set) 2>&1 |
1362    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1363    *ac_space=\ *)
1364      sed -n \
1365        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1366          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1367      ;;
1368    *)
1369      sed -n \
1370        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1371      ;;
1372    esac;
1373}
1374    echo
1375
1376    cat <<\_ASBOX
1377## ----------------- ##
1378## Output variables. ##
1379## ----------------- ##
1380_ASBOX
1381    echo
1382    for ac_var in $ac_subst_vars
1383    do
1384      eval ac_val=$`echo $ac_var`
1385      echo "$ac_var='"'"'$ac_val'"'"'"
1386    done | sort
1387    echo
1388
1389    if test -n "$ac_subst_files"; then
1390      cat <<\_ASBOX
1391## ------------- ##
1392## Output files. ##
1393## ------------- ##
1394_ASBOX
1395      echo
1396      for ac_var in $ac_subst_files
1397      do
1398        eval ac_val=$`echo $ac_var`
1399        echo "$ac_var='"'"'$ac_val'"'"'"
1400      done | sort
1401      echo
1402    fi
1403
1404    if test -s confdefs.h; then
1405      cat <<\_ASBOX
1406## ----------- ##
1407## confdefs.h. ##
1408## ----------- ##
1409_ASBOX
1410      echo
1411      sed "/^$/d" confdefs.h | sort
1412      echo
1413    fi
1414    test "$ac_signal" != 0 &&
1415      echo "$as_me: caught signal $ac_signal"
1416    echo "$as_me: exit $exit_status"
1417  } >&5
1418  rm -f core *.core &&
1419  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1420    exit $exit_status
1421     ' 0
1422for ac_signal in 1 2 13 15; do
1423  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1424done
1425ac_signal=0
1426
1427# confdefs.h avoids OS command line length limits that DEFS can exceed.
1428rm -rf conftest* confdefs.h
1429# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1430echo >confdefs.h
1431
1432# Predefined preprocessor variables.
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_NAME "$PACKAGE_NAME"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_VERSION "$PACKAGE_VERSION"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_STRING "$PACKAGE_STRING"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1456_ACEOF
1457
1458
1459# Let the site file select an alternate cache file if it wants to.
1460# Prefer explicitly selected file to automatically selected ones.
1461if test -z "$CONFIG_SITE"; then
1462  if test "x$prefix" != xNONE; then
1463    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1464  else
1465    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1466  fi
1467fi
1468for ac_site_file in $CONFIG_SITE; do
1469  if test -r "$ac_site_file"; then
1470    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1471echo "$as_me: loading site script $ac_site_file" >&6;}
1472    sed 's/^/| /' "$ac_site_file" >&5
1473    . "$ac_site_file"
1474  fi
1475done
1476
1477if test -r "$cache_file"; then
1478  # Some versions of bash will fail to source /dev/null (special
1479  # files actually), so we avoid doing that.
1480  if test -f "$cache_file"; then
1481    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1482echo "$as_me: loading cache $cache_file" >&6;}
1483    case $cache_file in
1484      [\\/]* | ?:[\\/]* ) . $cache_file;;
1485      *)                      . ./$cache_file;;
1486    esac
1487  fi
1488else
1489  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1490echo "$as_me: creating cache $cache_file" >&6;}
1491  >$cache_file
1492fi
1493
1494# Check that the precious variables saved in the cache have kept the same
1495# value.
1496ac_cache_corrupted=false
1497for ac_var in `(set) 2>&1 |
1498               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1499  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1500  eval ac_new_set=\$ac_env_${ac_var}_set
1501  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1502  eval ac_new_val="\$ac_env_${ac_var}_value"
1503  case $ac_old_set,$ac_new_set in
1504    set,)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,set)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,);;
1513    *)
1514      if test "x$ac_old_val" != "x$ac_new_val"; then
1515        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1516echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1517        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1518echo "$as_me:   former value:  $ac_old_val" >&2;}
1519        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1520echo "$as_me:   current value: $ac_new_val" >&2;}
1521        ac_cache_corrupted=:
1522      fi;;
1523  esac
1524  # Pass precious variables to config.status.
1525  if test "$ac_new_set" = set; then
1526    case $ac_new_val in
1527    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1528      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1529    *) ac_arg=$ac_var=$ac_new_val ;;
1530    esac
1531    case " $ac_configure_args " in
1532      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1533      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1534    esac
1535  fi
1536done
1537if $ac_cache_corrupted; then
1538  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1539echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1540  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1541echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1542   { (exit 1); exit 1; }; }
1543fi
1544
1545ac_ext=c
1546ac_cpp='$CPP $CPPFLAGS'
1547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1549ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1580# List one file in the package so that the configure script can test
1581# whether the package is actually there
1582
1583
1584# Where should everything be installed by default?  Here, we want it
1585# to be installed directly in 'bin', 'lib', 'include' subdirectories
1586# of the directory where configure is run.  The default would be
1587# /usr/local.
1588
1589
1590#############################################################################
1591#                         Standard build tool stuff                         #
1592#############################################################################
1593
1594# Get the system type
1595ac_aux_dir=
1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597  if test -f $ac_dir/install-sh; then
1598    ac_aux_dir=$ac_dir
1599    ac_install_sh="$ac_aux_dir/install-sh -c"
1600    break
1601  elif test -f $ac_dir/install.sh; then
1602    ac_aux_dir=$ac_dir
1603    ac_install_sh="$ac_aux_dir/install.sh -c"
1604    break
1605  elif test -f $ac_dir/shtool; then
1606    ac_aux_dir=$ac_dir
1607    ac_install_sh="$ac_aux_dir/shtool install -c"
1608    break
1609  fi
1610done
1611if test -z "$ac_aux_dir"; then
1612  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620# Make sure we can run config.sub.
1621$ac_config_sub sun4 >/dev/null 2>&1 ||
1622  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624   { (exit 1); exit 1; }; }
1625
1626echo "$as_me:$LINENO: checking build system type" >&5
1627echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628if test "${ac_cv_build+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  ac_cv_build_alias=$build_alias
1632test -z "$ac_cv_build_alias" &&
1633  ac_cv_build_alias=`$ac_config_guess`
1634test -z "$ac_cv_build_alias" &&
1635  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637   { (exit 1); exit 1; }; }
1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641   { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645echo "${ECHO_T}$ac_cv_build" >&6
1646build=$ac_cv_build
1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652
1653# A bit of initial setup.
1654
1655# As backup, we make sure we don't loose an FLIBS if it has been set
1656# by the user
1657save_FLIBS="$FLIBS"
1658
1659# A useful makefile conditional that is always false
1660
1661
1662if false; then
1663  ALWAYS_FALSE_TRUE=
1664  ALWAYS_FALSE_FALSE='#'
1665else
1666  ALWAYS_FALSE_TRUE='#'
1667  ALWAYS_FALSE_FALSE=
1668fi
1669
1670
1671# We set the following variable so that we know later in AC_COIN_FINALIZE
1672# that we are in a project main directory
1673coin_projectdir=yes
1674
1675# Set the project's version numbers
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define ASL_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1684  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1685  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1686  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1687  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1688  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1689
1690cat >>confdefs.h <<_ACEOF
1691#define ASL_VERSION_MAJOR $coin_majorver
1692_ACEOF
1693
1694
1695cat >>confdefs.h <<_ACEOF
1696#define ASL_VERSION_MINOR $coin_minorver
1697_ACEOF
1698
1699
1700cat >>confdefs.h <<_ACEOF
1701#define ASL_VERSION_RELEASE $coin_releasever
1702_ACEOF
1703
1704
1705  # We use the following variable to have a string with the upper case
1706  # version of the project name
1707  COIN_PRJCT=ASL
1708
1709  # Set the project's SVN revision number. The complicated sed expression
1710  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1711  # as a single number.
1712  # Extract the first word of "svnversion", so it can be a program name with args.
1713set dummy svnversion; ac_word=$2
1714echo "$as_me:$LINENO: checking for $ac_word" >&5
1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716if test "${ac_cv_prog_have_svnversion+set}" = set; then
1717  echo $ECHO_N "(cached) $ECHO_C" >&6
1718else
1719  if test -n "$have_svnversion"; then
1720  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1721else
1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723for as_dir in $PATH
1724do
1725  IFS=$as_save_IFS
1726  test -z "$as_dir" && as_dir=.
1727  for ac_exec_ext in '' $ac_executable_extensions; do
1728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729    ac_cv_prog_have_svnversion="yes"
1730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731    break 2
1732  fi
1733done
1734done
1735
1736  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1737fi
1738fi
1739have_svnversion=$ac_cv_prog_have_svnversion
1740if test -n "$have_svnversion"; then
1741  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1742echo "${ECHO_T}$have_svnversion" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748  if test "x$have_svnversion" = xyes; then
1749
1750    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1751    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1752      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1753
1754cat >>confdefs.h <<_ACEOF
1755#define ASL_SVN_REV $ASL_SVN_REV
1756_ACEOF
1757
1758    fi
1759  fi
1760
1761
1762
1763# Capture libtool library version, if given.
1764
1765
1766
1767
1768# Turn off warnings and pedantic mode since they could make trouble on some
1769# platforms, and we can't fix issues in third-party code.
1770coin_skip_warn_cflags=yes
1771
1772# Check if user wants to produce debugging code
1773
1774echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1775echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1776
1777# Check whether --enable-debug or --disable-debug was given.
1778if test "${enable_debug+set}" = set; then
1779  enableval="$enable_debug"
1780  case "${enableval}" in
1781   yes) coin_debug_compile=true
1782        if test "${enable_shared+set}" = set; then :; else
1783          enable_shared=no
1784        fi
1785        ;;
1786   no)  coin_debug_compile=false
1787        ;;
1788   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1789echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1790   { (exit 1); exit 1; }; }
1791        ;;
1792esac
1793else
1794  coin_debug_compile=false
1795fi;
1796
1797# Check whether --enable-debug-asl or --disable-debug-asl was given.
1798if test "${enable_debug_asl+set}" = set; then
1799  enableval="$enable_debug_asl"
1800  case "${enableval}" in
1801    yes) coin_debug_compile=true
1802         ;;
1803    no)  coin_debug_compile=false
1804         ;;
1805    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1806echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1807   { (exit 1); exit 1; }; }
1808         ;;
1809 esac
1810else
1811  :
1812fi;
1813
1814 # m4_ifvaln([ASL],
1815
1816if test $coin_debug_compile = true; then
1817  echo "$as_me:$LINENO: result: yes" >&5
1818echo "${ECHO_T}yes" >&6
1819else
1820  echo "$as_me:$LINENO: result: no" >&5
1821echo "${ECHO_T}no" >&6
1822fi
1823
1824
1825# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1826if test "${with_asl_verbosity+set}" = set; then
1827  withval="$with_asl_verbosity"
1828  if test "$withval" = yes; then
1829                withval=1
1830              fi
1831              coin_asl_verbosity=$withval
1832else
1833  coin_asl_verbosity=0
1834fi;
1835
1836cat >>confdefs.h <<_ACEOF
1837#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1838_ACEOF
1839
1840
1841
1842# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1843if test "${with_asl_checklevel+set}" = set; then
1844  withval="$with_asl_checklevel"
1845  if test "$withval" = yes; then
1846                withval=1
1847              fi
1848              coin_asl_checklevel=$withval
1849else
1850  coin_asl_checklevel=0
1851fi;
1852
1853cat >>confdefs.h <<_ACEOF
1854#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1855_ACEOF
1856
1857
1858 # m4_ifvaln([ASL],
1859
1860
1861
1862# We need egrep and ln -s somewhere
1863echo "$as_me:$LINENO: checking for egrep" >&5
1864echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1865if test "${ac_cv_prog_egrep+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1869    then ac_cv_prog_egrep='grep -E'
1870    else ac_cv_prog_egrep='egrep'
1871    fi
1872fi
1873echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1874echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1875 EGREP=$ac_cv_prog_egrep
1876
1877
1878echo "$as_me:$LINENO: checking whether ln -s works" >&5
1879echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1880LN_S=$as_ln_s
1881if test "$LN_S" = "ln -s"; then
1882  echo "$as_me:$LINENO: result: yes" >&5
1883echo "${ECHO_T}yes" >&6
1884else
1885  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1886echo "${ECHO_T}no, using $LN_S" >&6
1887fi
1888
1889
1890# Get the name of the C compiler and compiler flags
1891
1892
1893  # for backward compatibility
1894  # Check whether --enable-doscompile or --disable-doscompile was given.
1895if test "${enable_doscompile+set}" = set; then
1896  enableval="$enable_doscompile"
1897  enable_doscompile=$enableval
1898else
1899  enable_doscompile=no
1900fi;
1901
1902  # Check whether --enable-msvc or --disable-msvc was given.
1903if test "${enable_msvc+set}" = set; then
1904  enableval="$enable_msvc"
1905  enable_msvc=$enableval
1906else
1907  enable_msvc=no
1908     if test "$enable_doscompile" = msvc ; then
1909       enable_msvc=yes
1910     elif test "$enable_doscompile" != no ; then
1911       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1912echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1913   { (exit 1); exit 1; }; }
1914     fi
1915
1916fi;
1917
1918  if test "$enable_msvc" = MD; then
1919    enable_shared=yes
1920    enable_msvc=yes
1921  fi
1922
1923  if test "$enable_msvc" = yes; then
1924    case $build in
1925      *-cygwin* | *-mingw*) ;;
1926      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1927echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1928   { (exit 1); exit 1; }; } ;;
1929    esac
1930  fi
1931
1932
1933
1934ac_ext=c
1935ac_cpp='$CPP $CPPFLAGS'
1936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1938ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939
1940
1941# For consistency, we set the C compiler to the same value of the C++
1942# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1943if test x"$CXX" != x; then
1944  case "$CXX" in
1945    clang* ) ;;
1946    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1947      if test x"$CC" = x; then
1948        CC="$CXX"
1949        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1950echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1951      fi
1952      ;;
1953  esac
1954fi
1955
1956
1957
1958
1959
1960
1961coin_has_cc=yes
1962
1963save_cflags="$CFLAGS"
1964
1965# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1966# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1967# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1968# compiler. In this case, put cc after gcc.
1969
1970case $build in
1971  *-cygwin* | *-mingw*)
1972             if test "$enable_msvc" = yes ; then
1973               comps="icl cl gcc"
1974             else
1975               comps="gcc icl cl"
1976             fi ;;
1977  *-*-solaris*)
1978             # Extract the first word of "cc", so it can be a program name with args.
1979set dummy cc; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1983  echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985  if test -n "$sol_cc_compiler"; then
1986  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1987else
1988  ac_prog_rejected=no
1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990for as_dir in $PATH
1991do
1992  IFS=$as_save_IFS
1993  test -z "$as_dir" && as_dir=.
1994  for ac_exec_ext in '' $ac_executable_extensions; do
1995  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997       ac_prog_rejected=yes
1998       continue
1999     fi
2000    ac_cv_prog_sol_cc_compiler="cc"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006
2007if test $ac_prog_rejected = yes; then
2008  # We found a bogon in the path, so make sure we never use it.
2009  set dummy $ac_cv_prog_sol_cc_compiler
2010  shift
2011  if test $# != 0; then
2012    # We chose a different compiler from the bogus one.
2013    # However, it has the same basename, so the bogon will be chosen
2014    # first if we set sol_cc_compiler to just the basename; use the full file name.
2015    shift
2016    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2017  fi
2018fi
2019fi
2020fi
2021sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2022if test -n "$sol_cc_compiler"; then
2023  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2024echo "${ECHO_T}$sol_cc_compiler" >&6
2025else
2026  echo "$as_me:$LINENO: result: no" >&5
2027echo "${ECHO_T}no" >&6
2028fi
2029
2030             if test "$sol_cc_compiler" = "cc" ; then
2031               comps="cc xlc gcc pgcc icc"
2032             else
2033               comps="xlc gcc pgcc icc cc"
2034             fi
2035             ;;
2036  *-*-darwin*) comps="clang gcc cc" ;;
2037  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2038  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2039  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2040esac
2041
2042# We delete the cached value, since the test might not have been
2043# performed with our choice of compilers earlier
2044$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2045# AC_MSG_NOTICE([C compiler candidates: $comps])
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051if test -n "$ac_tool_prefix"; then
2052  for ac_prog in $comps
2053  do
2054    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056echo "$as_me:$LINENO: checking for $ac_word" >&5
2057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058if test "${ac_cv_prog_CC+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  if test -n "$CC"; then
2062  ac_cv_prog_CC="$CC" # Let the user override the test.
2063else
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067  IFS=$as_save_IFS
2068  test -z "$as_dir" && as_dir=.
2069  for ac_exec_ext in '' $ac_executable_extensions; do
2070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078fi
2079fi
2080CC=$ac_cv_prog_CC
2081if test -n "$CC"; then
2082  echo "$as_me:$LINENO: result: $CC" >&5
2083echo "${ECHO_T}$CC" >&6
2084else
2085  echo "$as_me:$LINENO: result: no" >&5
2086echo "${ECHO_T}no" >&6
2087fi
2088
2089    test -n "$CC" && break
2090  done
2091fi
2092if test -z "$CC"; then
2093  ac_ct_CC=$CC
2094  for ac_prog in $comps
2095do
2096  # Extract the first word of "$ac_prog", so it can be a program name with args.
2097set dummy $ac_prog; ac_word=$2
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  if test -n "$ac_ct_CC"; then
2104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109  IFS=$as_save_IFS
2110  test -z "$as_dir" && as_dir=.
2111  for ac_exec_ext in '' $ac_executable_extensions; do
2112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113    ac_cv_prog_ac_ct_CC="$ac_prog"
2114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115    break 2
2116  fi
2117done
2118done
2119
2120fi
2121fi
2122ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123if test -n "$ac_ct_CC"; then
2124  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125echo "${ECHO_T}$ac_ct_CC" >&6
2126else
2127  echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
2129fi
2130
2131  test -n "$ac_ct_CC" && break
2132done
2133
2134  CC=$ac_ct_CC
2135fi
2136
2137
2138test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&2;}
2142   { (exit 1); exit 1; }; }
2143
2144# Provide some information about the compiler.
2145echo "$as_me:$LINENO:" \
2146     "checking for C compiler version" >&5
2147ac_compiler=`set X $ac_compile; echo $2`
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149  (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159  (eval $ac_compiler -V </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2188  (eval $ac_link_default) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  # Find the output, starting from the most likely.  This scheme is
2193# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194# resort.
2195
2196# Be careful to initialize this variable, since it used to be cached.
2197# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198ac_cv_exeext=
2199# b.out is created by i960 compilers.
2200for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201do
2202  test -f "$ac_file" || continue
2203  case $ac_file in
2204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205        ;;
2206    conftest.$ac_ext )
2207        # This is the source file.
2208        ;;
2209    [ab].out )
2210        # We found the default executable, but exeext='' is most
2211        # certainly right.
2212        break;;
2213    *.* )
2214        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215        # FIXME: I believe we export ac_cv_exeext for Libtool,
2216        # but it would be cool to find out if it's true.  Does anybody
2217        # maintain Libtool? --akim.
2218        export ac_cv_exeext
2219        break;;
2220    * )
2221        break;;
2222  esac
2223done
2224else
2225  echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: C compiler cannot create executables
2231See \`config.log' for more details." >&2;}
2232   { (exit 77); exit 77; }; }
2233fi
2234
2235ac_exeext=$ac_cv_exeext
2236echo "$as_me:$LINENO: result: $ac_file" >&5
2237echo "${ECHO_T}$ac_file" >&6
2238
2239# Check the compiler produces executables we can run.  If not, either
2240# the compiler is broken, or we cross compile.
2241echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244# If not cross compiling, check that we can run a simple program.
2245if test "$cross_compiling" != yes; then
2246  if { ac_try='./$ac_file'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; }; then
2252    cross_compiling=no
2253  else
2254    if test "$cross_compiling" = maybe; then
2255        cross_compiling=yes
2256    else
2257        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258If you meant to cross compile, use \`--host'.
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: cannot run C compiled programs.
2261If you meant to cross compile, use \`--host'.
2262See \`config.log' for more details." >&2;}
2263   { (exit 1); exit 1; }; }
2264    fi
2265  fi
2266fi
2267echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6
2269
2270rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271ac_clean_files=$ac_clean_files_save
2272# Check the compiler produces executables we can run.  If not, either
2273# the compiler is broken, or we cross compile.
2274echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277echo "${ECHO_T}$cross_compiling" >&6
2278
2279echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2282  (eval $ac_link) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; then
2286  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288# work properly (i.e., refer to `conftest.exe'), while it won't with
2289# `rm'.
2290for ac_file in conftest.exe conftest conftest.*; do
2291  test -f "$ac_file" || continue
2292  case $ac_file in
2293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2294    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295          export ac_cv_exeext
2296          break;;
2297    * ) break;;
2298  esac
2299done
2300else
2301  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307
2308rm -f conftest$ac_cv_exeext
2309echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310echo "${ECHO_T}$ac_cv_exeext" >&6
2311
2312rm -f conftest.$ac_ext
2313EXEEXT=$ac_cv_exeext
2314ac_exeext=$EXEEXT
2315echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317if test "${ac_cv_objext+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h.  */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h.  */
2326
2327int
2328main ()
2329{
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335rm -f conftest.o conftest.obj
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; then
2341  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342  case $ac_file in
2343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345       break;;
2346  esac
2347done
2348else
2349  echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&2;}
2356   { (exit 1); exit 1; }; }
2357fi
2358
2359rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362echo "${ECHO_T}$ac_cv_objext" >&6
2363OBJEXT=$ac_cv_objext
2364ac_objext=$OBJEXT
2365echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376
2377int
2378main ()
2379{
2380#ifndef __GNUC__
2381       choke me
2382#endif
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390  (eval $ac_compile) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } &&
2397         { ac_try='test -z "$ac_c_werror_flag"
2398                         || test ! -s conftest.err'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  ac_compiler_gnu=yes
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415ac_compiler_gnu=no
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420fi
2421echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423GCC=`test $ac_compiler_gnu = yes && echo yes`
2424ac_test_CFLAGS=${CFLAGS+set}
2425ac_save_CFLAGS=$CFLAGS
2426CFLAGS="-g"
2427echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h.  */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h.  */
2438
2439int
2440main ()
2441{
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  ac_cv_prog_cc_g=yes
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474ac_cv_prog_cc_g=no
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480if test "$ac_test_CFLAGS" = set; then
2481  CFLAGS=$ac_save_CFLAGS
2482elif test $ac_cv_prog_cc_g = yes; then
2483  if test "$GCC" = yes; then
2484    CFLAGS="-g -O2"
2485  else
2486    CFLAGS="-g"
2487  fi
2488else
2489  if test "$GCC" = yes; then
2490    CFLAGS="-O2"
2491  else
2492    CFLAGS=
2493  fi
2494fi
2495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  ac_cv_prog_cc_stdc=no
2501ac_save_CC=$CC
2502cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508#include <stdarg.h>
2509#include <stdio.h>
2510#include <sys/types.h>
2511#include <sys/stat.h>
2512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2513struct buf { int x; };
2514FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515static char *e (p, i)
2516     char **p;
2517     int i;
2518{
2519  return p[i];
2520}
2521static char *f (char * (*g) (char **, int), char **p, ...)
2522{
2523  char *s;
2524  va_list v;
2525  va_start (v,p);
2526  s = g (p, va_arg (v,int));
2527  va_end (v);
2528  return s;
2529}
2530
2531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2532   function prototypes and stuff, but not '\xHH' hex character constants.
2533   These don't provoke an error unfortunately, instead are silently treated
2534   as 'x'.  The following induces an error, until -std1 is added to get
2535   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2536   array size at least.  It's necessary to write '\x00'==0 to get something
2537   that's true only with -std1.  */
2538int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
2540int test (int i, double x);
2541struct s1 {int (*f) (int a);};
2542struct s2 {int (*f) (double a);};
2543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544int argc;
2545char **argv;
2546int
2547main ()
2548{
2549return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554# Don't try gcc -ansi; that turns off useful extensions and
2555# breaks some systems' header files.
2556# AIX                   -qlanglvl=ansi
2557# Ultrix and OSF/1      -std1
2558# HP-UX 10.20 and later -Ae
2559# HP-UX older versions  -Aa -D_HPUX_SOURCE
2560# SVR4                  -Xc -D__EXTENSIONS__
2561for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562do
2563  CC="$ac_save_CC $ac_arg"
2564  rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>conftest.er1
2567  ac_status=$?
2568  grep -v '^ *+' conftest.er1 >conftest.err
2569  rm -f conftest.er1
2570  cat conftest.err >&5
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); } &&
2573         { ac_try='test -z "$ac_c_werror_flag"
2574                         || test ! -s conftest.err'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; } &&
2580         { ac_try='test -s conftest.$ac_objext'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; }; then
2586  ac_cv_prog_cc_stdc=$ac_arg
2587break
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592fi
2593rm -f conftest.err conftest.$ac_objext
2594done
2595rm -f conftest.$ac_ext conftest.$ac_objext
2596CC=$ac_save_CC
2597
2598fi
2599
2600case "x$ac_cv_prog_cc_stdc" in
2601  x|xno)
2602    echo "$as_me:$LINENO: result: none needed" >&5
2603echo "${ECHO_T}none needed" >&6 ;;
2604  *)
2605    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607    CC="$CC $ac_cv_prog_cc_stdc" ;;
2608esac
2609
2610# Some people use a C++ compiler to compile C.  Since we use `exit',
2611# in C++ we need to declare it.  In case someone uses the same compiler
2612# for both compiling C and C++ we need to have the C++ compiler decide
2613# the declaration of exit, since it's the most demanding environment.
2614cat >conftest.$ac_ext <<_ACEOF
2615#ifndef __cplusplus
2616  choke me
2617#endif
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621  (eval $ac_compile) 2>conftest.er1
2622  ac_status=$?
2623  grep -v '^ *+' conftest.er1 >conftest.err
2624  rm -f conftest.er1
2625  cat conftest.err >&5
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); } &&
2628         { ac_try='test -z "$ac_c_werror_flag"
2629                         || test ! -s conftest.err'
2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631  (eval $ac_try) 2>&5
2632  ac_status=$?
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); }; } &&
2635         { ac_try='test -s conftest.$ac_objext'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; }; then
2641  for ac_declaration in \
2642   '' \
2643   'extern "C" void std::exit (int) throw (); using std::exit;' \
2644   'extern "C" void std::exit (int); using std::exit;' \
2645   'extern "C" void exit (int) throw ();' \
2646   'extern "C" void exit (int);' \
2647   'void exit (int);'
2648do
2649  cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655$ac_declaration
2656#include <stdlib.h>
2657int
2658main ()
2659{
2660exit (42);
2661  ;
2662  return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext
2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667  (eval $ac_compile) 2>conftest.er1
2668  ac_status=$?
2669  grep -v '^ *+' conftest.er1 >conftest.err
2670  rm -f conftest.er1
2671  cat conftest.err >&5
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } &&
2674         { ac_try='test -z "$ac_c_werror_flag"
2675                         || test ! -s conftest.err'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; } &&
2681         { ac_try='test -s conftest.$ac_objext'
2682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683  (eval $ac_try) 2>&5
2684  ac_status=$?
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); }; }; then
2687  :
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692continue
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695  cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h.  */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h.  */
2701$ac_declaration
2702int
2703main ()
2704{
2705exit (42);
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719         { ac_try='test -z "$ac_c_werror_flag"
2720                         || test ! -s conftest.err'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; } &&
2726         { ac_try='test -s conftest.$ac_objext'
2727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728  (eval $ac_try) 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }; }; then
2732  break
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739done
2740rm -f conftest*
2741if test -n "$ac_declaration"; then
2742  echo '#ifdef __cplusplus' >>confdefs.h
2743  echo $ac_declaration      >>confdefs.h
2744  echo '#endif'             >>confdefs.h
2745fi
2746
2747else
2748  echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759if test -z "$CC" ; then
2760  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2761echo "$as_me: error: Failed to find a C compiler!" >&2;}
2762   { (exit 1); exit 1; }; }
2763fi
2764# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2765case "$CC" in
2766  clang* ) ;;
2767  cl* | */cl* | CL* | */CL* )
2768    if test "$ac_cv_prog_cc_g" = yes ; then
2769      ac_cv_prog_cc_g=no
2770      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2771echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2772    fi ;;
2773  * )
2774    if test x"$CYGPATH_W" = x ; then
2775      CYGPATH_W=echo
2776    fi
2777    ;;
2778esac
2779CFLAGS="$save_cflags"
2780
2781# add automake conditional so we can recognize cl compiler in makefile
2782coin_cc_is_cl=false
2783case "$CC" in
2784  clang* ) ;;
2785  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2786    coin_cc_is_cl=true
2787    ;;
2788esac
2789
2790
2791if test $coin_cc_is_cl = true; then
2792  COIN_CC_IS_CL_TRUE=
2793  COIN_CC_IS_CL_FALSE='#'
2794else
2795  COIN_CC_IS_CL_TRUE='#'
2796  COIN_CC_IS_CL_FALSE=
2797fi
2798
2799
2800# Check if a project specific CFLAGS variable has been set
2801if test x$COIN_PRJCT != x; then
2802  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2803  if test x$coin_tmp = xset; then
2804    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2805  fi
2806fi
2807
2808if test x"$CFLAGS" = x; then
2809
2810  coin_add_cflags=
2811  coin_opt_cflags=
2812  coin_dbg_cflags=
2813  coin_warn_cflags=
2814
2815  if test "$GCC" = "yes"; then
2816    case "$CC" in
2817      icc* | */icc*)
2818        ;;
2819      *)
2820        coin_opt_cflags="-O3"
2821        coin_add_cflags="-pipe"
2822        coin_dbg_cflags="-g -O0"
2823        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2824        case $build in
2825          *-darwin*)
2826            ;;
2827          *)
2828            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2829            ;;
2830        esac
2831    esac
2832  fi
2833  if test -z "$coin_opt_cflags"; then
2834    case $build in
2835      *-cygwin* | *-mingw*)
2836        case "$CC" in
2837          clang* ) ;;
2838          cl* | */cl* | CL* | */CL*)
2839            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2840              coin_opt_cflags='-MD -O2'
2841              coin_dbg_cflags='-MDd'
2842            else
2843              coin_opt_cflags='-MT -O2'
2844              coin_dbg_cflags='-MTd'
2845            fi
2846            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2847            ;;
2848          icl* | */icl* | ICL* | */ICL*)
2849            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2850              coin_opt_cflags='-MD -Ox'
2851              coin_dbg_cflags='-MDd -debug'
2852            else
2853              coin_opt_cflags='-MT -Ox'
2854              coin_dbg_cflags='-MTd -debug'
2855            fi
2856            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2857            ;;
2858        esac
2859        ;;
2860      *-linux-*)
2861        case "$CC" in
2862          icc* | */icc*)
2863            coin_opt_cflags="-O3 -ip -mp1"
2864            coin_add_cflags=""
2865            coin_dbg_cflags="-g"
2866            # Check if -i_dynamic is necessary (for new glibc library)
2867            CFLAGS=
2868            cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h.  */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h.  */
2874
2875int
2876main ()
2877{
2878int i=0; i++;
2879  ;
2880  return 0;
2881}
2882_ACEOF
2883rm -f conftest.$ac_objext conftest$ac_exeext
2884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2885  (eval $ac_link) 2>conftest.er1
2886  ac_status=$?
2887  grep -v '^ *+' conftest.er1 >conftest.err
2888  rm -f conftest.er1
2889  cat conftest.err >&5
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); } &&
2892         { ac_try='test -z "$ac_c_werror_flag"
2893                         || test ! -s conftest.err'
2894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895  (eval $ac_try) 2>&5
2896  ac_status=$?
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); }; } &&
2899         { ac_try='test -s conftest$ac_exeext'
2900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901  (eval $ac_try) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); }; }; then
2905  :
2906else
2907  echo "$as_me: failed program was:" >&5
2908sed 's/^/| /' conftest.$ac_ext >&5
2909
2910coin_add_cflags="-i_dynamic $coin_add_cflags"
2911fi
2912rm -f conftest.err conftest.$ac_objext \
2913      conftest$ac_exeext conftest.$ac_ext
2914            ;;
2915          pgcc* | */pgcc*)
2916            coin_opt_cflags="-fast"
2917            coin_add_cflags="-Kieee -pc 64"
2918            coin_dbg_cflags="-g"
2919            ;;
2920        esac
2921        ;;
2922      *-ibm-*)
2923        case "$CC" in
2924          xlc* | */xlc* | mpxlc* | */mpxlc*)
2925            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2926            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2927            coin_dbg_cflags="-g"
2928          ;;
2929        esac
2930        ;;
2931      *-hp-*)
2932        coin_opt_cflags="-O"
2933        coin_add_cflags="-Ae"
2934        coin_dbg_cflags="-g"
2935        ;;
2936      *-*-solaris*)
2937        coin_opt_cflags="-xO4"
2938        coin_dbg_cflags="-g"
2939        ;;
2940      *-sgi-*)
2941        coin_opt_cflags="-O -OPT:Olimit=0"
2942        coin_dbg_cflags="-g"
2943        ;;
2944    esac
2945  fi
2946
2947  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2948    coin_dbg_cflags="-g"
2949  fi
2950
2951  if test -z "$coin_opt_cflags"; then
2952    # Try if -O option works if nothing else is set
2953    CFLAGS="-O"
2954    cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h.  */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964int i=0; i++;
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext conftest$ac_exeext
2970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2971  (eval $ac_link) 2>conftest.er1
2972  ac_status=$?
2973  grep -v '^ *+' conftest.er1 >conftest.err
2974  rm -f conftest.er1
2975  cat conftest.err >&5
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); } &&
2978         { ac_try='test -z "$ac_c_werror_flag"
2979                         || test ! -s conftest.err'
2980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981  (eval $ac_try) 2>&5
2982  ac_status=$?
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); }; } &&
2985         { ac_try='test -s conftest$ac_exeext'
2986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987  (eval $ac_try) 2>&5
2988  ac_status=$?
2989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990  (exit $ac_status); }; }; then
2991  coin_opt_cflags="-O"
2992else
2993  echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996fi
2997rm -f conftest.err conftest.$ac_objext \
2998      conftest$ac_exeext conftest.$ac_ext
2999  fi
3000
3001  # if PM doesn't want the warning messages, take them out
3002  if test x"$coin_skip_warn_cflags" = xyes; then
3003    coin_warn_cflags=
3004  fi
3005
3006  if test x${DBG_CFLAGS+set} != xset; then
3007    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3008  fi
3009  if test x${OPT_CFLAGS+set} != xset; then
3010    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3011  fi
3012
3013  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3014  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3015
3016  if test "$coin_debug_compile" = "true"; then
3017    CFLAGS="$DBG_CFLAGS"
3018  else
3019    CFLAGS="$OPT_CFLAGS"
3020  fi
3021else
3022  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3023  if test x${DBG_CFLAGS+set} != xset; then
3024    DBG_CFLAGS="$CFLAGS"
3025  fi
3026  if test x${OPT_CFLAGS+set} != xset; then
3027    OPT_CFLAGS="$CFLAGS"
3028  fi
3029fi
3030
3031# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3032if test x$COIN_PRJCT != x; then
3033  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3034fi
3035
3036# Try if CFLAGS works
3037save_CFLAGS="$CFLAGS"
3038cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048int i=0; i++;
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext conftest$ac_exeext
3054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055  (eval $ac_link) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062         { ac_try='test -z "$ac_c_werror_flag"
3063                         || test ! -s conftest.err'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; } &&
3069         { ac_try='test -s conftest$ac_exeext'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; }; then
3075  :
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080CFLAGS=
3081fi
3082rm -f conftest.err conftest.$ac_objext \
3083      conftest$ac_exeext conftest.$ac_ext
3084if test -z "$CFLAGS"; then
3085  { 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
3086echo "$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;}
3087  CFLAGS='-O'
3088  cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098int i=0; i++;
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext conftest$ac_exeext
3104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3105  (eval $ac_link) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112         { ac_try='test -z "$ac_c_werror_flag"
3113                         || test ! -s conftest.err'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; } &&
3119         { ac_try='test -s conftest$ac_exeext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  :
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130CFLAGS=
3131fi
3132rm -f conftest.err conftest.$ac_objext \
3133      conftest$ac_exeext conftest.$ac_ext
3134  if test -z "$CFLAGS"; then
3135    { 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
3136echo "$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;}
3137  fi
3138fi
3139
3140{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3141echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3142
3143
3144if test x"$MPICC" = x; then :; else
3145  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3146echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3147  CC="$MPICC"
3148fi
3149
3150# Correct the LD variable if we are using the MS or Intel-windows compiler
3151case "$CC" in
3152  clang* ) ;;
3153  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3154    LD=link
3155    ;;
3156esac
3157
3158ac_ext=c
3159ac_cpp='$CPP $CPPFLAGS'
3160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
3164
3165
3166# Initialize automake and libtool
3167{
3168
3169
3170
3171# START
3172
3173coin_disable_shared=no
3174# Test if force_shared has been set
3175if test "x" = xforce_shared; then
3176  if test x$enable_shared = xno; then
3177    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3178echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3179   { (exit 1); exit 1; }; }
3180  fi
3181  enable_shared=yes;
3182else
3183  case $build in
3184    *-cygwin* | *-mingw*)
3185      coin_disable_shared=yes
3186      if test x"$enable_shared" = xyes; then
3187        case "$CC" in
3188          clang* )
3189            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3190echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3191            ;;
3192          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3193            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3194echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3195            ;;
3196          *gcc*)
3197            if test x"$enable_dependency_linking" = xyes; then
3198              coin_disable_shared=no
3199            else
3200              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3201echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3202            fi
3203            ;;
3204          *)
3205            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3206echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3207            ;;
3208        esac
3209      fi
3210    ;;
3211    *-aix*)
3212      coin_disable_shared=yes
3213      platform=AIX
3214      if test x"$enable_shared" = xyes; then
3215        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3216echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3217      fi
3218    ;;
3219  esac
3220fi
3221if test x"$coin_disable_shared" = xyes; then
3222  if test x"$enable_shared" = xyes; then
3223    :
3224  else
3225    # we don't disable shared, because it was not selected anyway
3226    coin_disable_shared=no
3227  fi
3228  enable_shared=no
3229fi
3230# By default, we only want the shared objects to be compiled
3231# Check whether --enable-static or --disable-static was given.
3232if test "${enable_static+set}" = set; then
3233  enableval="$enable_static"
3234  p=${PACKAGE-default}
3235    case $enableval in
3236    yes) enable_static=yes ;;
3237    no) enable_static=no ;;
3238    *)
3239     enable_static=no
3240      # Look at the argument we got.  We use all the common list separators.
3241      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3242      for pkg in $enableval; do
3243        IFS="$lt_save_ifs"
3244        if test "X$pkg" = "X$p"; then
3245          enable_static=yes
3246        fi
3247      done
3248      IFS="$lt_save_ifs"
3249      ;;
3250    esac
3251else
3252  enable_static=no
3253fi;
3254
3255
3256
3257
3258# Initialize automake
3259am__api_version="1.9"
3260# Find a good install program.  We prefer a C program (faster),
3261# so one script is as good as another.  But avoid the broken or
3262# incompatible versions:
3263# SysV /etc/install, /usr/sbin/install
3264# SunOS /usr/etc/install
3265# IRIX /sbin/install
3266# AIX /bin/install
3267# AmigaOS /C/install, which installs bootblocks on floppy discs
3268# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3269# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3270# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3271# OS/2's system install, which has a completely different semantic
3272# ./install, which can be erroneously created by make from ./install.sh.
3273echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3274echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3275if test -z "$INSTALL"; then
3276if test "${ac_cv_path_install+set}" = set; then
3277  echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282  IFS=$as_save_IFS
3283  test -z "$as_dir" && as_dir=.
3284  # Account for people who put trailing slashes in PATH elements.
3285case $as_dir/ in
3286  ./ | .// | /cC/* | \
3287  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3288  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3289  /usr/ucb/* ) ;;
3290  *)
3291    # OSF1 and SCO ODT 3.0 have their own names for install.
3292    # Don't use installbsd from OSF since it installs stuff as root
3293    # by default.
3294    for ac_prog in ginstall scoinst install; do
3295      for ac_exec_ext in '' $ac_executable_extensions; do
3296        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3297          if test $ac_prog = install &&
3298            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3299            # AIX install.  It has an incompatible calling convention.
3300            :
3301          elif test $ac_prog = install &&
3302            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303            # program-specific install script used by HP pwplus--don't use.
3304            :
3305          else
3306            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3307            break 3
3308          fi
3309        fi
3310      done
3311    done
3312    ;;
3313esac
3314done
3315
3316
3317fi
3318  if test "${ac_cv_path_install+set}" = set; then
3319    INSTALL=$ac_cv_path_install
3320  else
3321    # As a last resort, use the slow shell script.  We don't cache a
3322    # path for INSTALL within a source directory, because that will
3323    # break other packages using the cache if that directory is
3324    # removed, or if the path is relative.
3325    INSTALL=$ac_install_sh
3326  fi
3327fi
3328echo "$as_me:$LINENO: result: $INSTALL" >&5
3329echo "${ECHO_T}$INSTALL" >&6
3330
3331# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3332# It thinks the first close brace ends the variable substitution.
3333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3334
3335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3336
3337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3338
3339echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3340echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3341# Just in case
3342sleep 1
3343echo timestamp > conftest.file
3344# Do `set' in a subshell so we don't clobber the current shell's
3345# arguments.  Must try -L first in case configure is actually a
3346# symlink; some systems play weird games with the mod time of symlinks
3347# (eg FreeBSD returns the mod time of the symlink's containing
3348# directory).
3349if (
3350   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3351   if test "$*" = "X"; then
3352      # -L didn't work.
3353      set X `ls -t $srcdir/configure conftest.file`
3354   fi
3355   rm -f conftest.file
3356   if test "$*" != "X $srcdir/configure conftest.file" \
3357      && test "$*" != "X conftest.file $srcdir/configure"; then
3358
3359      # If neither matched, then we have a broken ls.  This can happen
3360      # if, for instance, CONFIG_SHELL is bash and it inherits a
3361      # broken ls alias from the environment.  This has actually
3362      # happened.  Such a system could not be considered "sane".
3363      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3364alias in your environment" >&5
3365echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3366alias in your environment" >&2;}
3367   { (exit 1); exit 1; }; }
3368   fi
3369
3370   test "$2" = conftest.file
3371   )
3372then
3373   # Ok.
3374   :
3375else
3376   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3377Check your system clock" >&5
3378echo "$as_me: error: newly created file is older than distributed files!
3379Check your system clock" >&2;}
3380   { (exit 1); exit 1; }; }
3381fi
3382echo "$as_me:$LINENO: result: yes" >&5
3383echo "${ECHO_T}yes" >&6
3384test "$program_prefix" != NONE &&
3385  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3386# Use a double $ so make ignores it.
3387test "$program_suffix" != NONE &&
3388  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3389# Double any \ or $.  echo might interpret backslashes.
3390# By default was `s,x,x', remove it if useless.
3391cat <<\_ACEOF >conftest.sed
3392s/[\\$]/&&/g;s/;s,x,x,$//
3393_ACEOF
3394program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3395rm conftest.sed
3396
3397# expand $ac_aux_dir to an absolute path
3398am_aux_dir=`cd $ac_aux_dir && pwd`
3399
3400test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3401# Use eval to expand $SHELL
3402if eval "$MISSING --run true"; then
3403  am_missing_run="$MISSING --run "
3404else
3405  am_missing_run=
3406  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3407echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3408fi
3409
3410if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3411  # We used to keeping the `.' as first argument, in order to
3412  # allow $(mkdir_p) to be used without argument.  As in
3413  #   $(mkdir_p) $(somedir)
3414  # where $(somedir) is conditionally defined.  However this is wrong
3415  # for two reasons:
3416  #  1. if the package is installed by a user who cannot write `.'
3417  #     make install will fail,
3418  #  2. the above comment should most certainly read
3419  #     $(mkdir_p) $(DESTDIR)$(somedir)
3420  #     so it does not work when $(somedir) is undefined and
3421  #     $(DESTDIR) is not.
3422  #  To support the latter case, we have to write
3423  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3424  #  so the `.' trick is pointless.
3425  mkdir_p='mkdir -p --'
3426else
3427  # On NextStep and OpenStep, the `mkdir' command does not
3428  # recognize any option.  It will interpret all options as
3429  # directories to create, and then abort because `.' already
3430  # exists.
3431  for d in ./-p ./--version;
3432  do
3433    test -d $d && rmdir $d
3434  done
3435  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3436  if test -f "$ac_aux_dir/mkinstalldirs"; then
3437    mkdir_p='$(mkinstalldirs)'
3438  else
3439    mkdir_p='$(install_sh) -d'
3440  fi
3441fi
3442
3443for ac_prog in gawk mawk nawk awk
3444do
3445  # Extract the first word of "$ac_prog", so it can be a program name with args.
3446set dummy $ac_prog; ac_word=$2
3447echo "$as_me:$LINENO: checking for $ac_word" >&5
3448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449if test "${ac_cv_prog_AWK+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  if test -n "$AWK"; then
3453  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3454else
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458  IFS=$as_save_IFS
3459  test -z "$as_dir" && as_dir=.
3460  for ac_exec_ext in '' $ac_executable_extensions; do
3461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462    ac_cv_prog_AWK="$ac_prog"
3463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464    break 2
3465  fi
3466done
3467done
3468
3469fi
3470fi
3471AWK=$ac_cv_prog_AWK
3472if test -n "$AWK"; then
3473  echo "$as_me:$LINENO: result: $AWK" >&5
3474echo "${ECHO_T}$AWK" >&6
3475else
3476  echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478fi
3479
3480  test -n "$AWK" && break
3481done
3482
3483echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3484echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3485set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3486if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3487  echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489  cat >conftest.make <<\_ACEOF
3490all:
3491        @echo 'ac_maketemp="$(MAKE)"'
3492_ACEOF
3493# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3494eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3495if test -n "$ac_maketemp"; then
3496  eval ac_cv_prog_make_${ac_make}_set=yes
3497else
3498  eval ac_cv_prog_make_${ac_make}_set=no
3499fi
3500rm -f conftest.make
3501fi
3502if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3503  echo "$as_me:$LINENO: result: yes" >&5
3504echo "${ECHO_T}yes" >&6
3505  SET_MAKE=
3506else
3507  echo "$as_me:$LINENO: result: no" >&5
3508echo "${ECHO_T}no" >&6
3509  SET_MAKE="MAKE=${MAKE-make}"
3510fi
3511
3512rm -rf .tst 2>/dev/null
3513mkdir .tst 2>/dev/null
3514if test -d .tst; then
3515  am__leading_dot=.
3516else
3517  am__leading_dot=_
3518fi
3519rmdir .tst 2>/dev/null
3520
3521DEPDIR="${am__leading_dot}deps"
3522
3523          ac_config_commands="$ac_config_commands depfiles"
3524
3525
3526am_make=${MAKE-make}
3527cat > confinc << 'END'
3528am__doit:
3529        @echo done
3530.PHONY: am__doit
3531END
3532# If we don't find an include directive, just comment out the code.
3533echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3534echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3535am__include="#"
3536am__quote=
3537_am_result=none
3538# First try GNU make style include.
3539echo "include confinc" > confmf
3540# We grep out `Entering directory' and `Leaving directory'
3541# messages which can occur if `w' ends up in MAKEFLAGS.
3542# In particular we don't look at `^make:' because GNU make might
3543# be invoked under some other name (usually "gmake"), in which
3544# case it prints its new name instead of `make'.
3545if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3546   am__include=include
3547   am__quote=
3548   _am_result=GNU
3549fi
3550# Now try BSD make style include.
3551if test "$am__include" = "#"; then
3552   echo '.include "confinc"' > confmf
3553   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3554      am__include=.include
3555      am__quote="\""
3556      _am_result=BSD
3557   fi
3558fi
3559
3560
3561echo "$as_me:$LINENO: result: $_am_result" >&5
3562echo "${ECHO_T}$_am_result" >&6
3563rm -f confinc confmf
3564
3565# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3566if test "${enable_dependency_tracking+set}" = set; then
3567  enableval="$enable_dependency_tracking"
3568
3569fi;
3570if test "x$enable_dependency_tracking" != xno; then
3571  am_depcomp="$ac_aux_dir/depcomp"
3572  AMDEPBACKSLASH='\'
3573fi
3574
3575
3576if test "x$enable_dependency_tracking" != xno; then
3577  AMDEP_TRUE=
3578  AMDEP_FALSE='#'
3579else
3580  AMDEP_TRUE='#'
3581  AMDEP_FALSE=
3582fi
3583
3584
3585
3586
3587
3588
3589# AC_MSG_NOTICE([Beginning automake initialisation.])
3590# Stuff for automake
3591# test to see if srcdir already configured
3592if test "`cd $srcdir && pwd`" != "`pwd`" &&
3593   test -f $srcdir/config.status; then
3594  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3595echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3596   { (exit 1); exit 1; }; }
3597fi
3598
3599# test whether we have cygpath
3600if test -z "$CYGPATH_W"; then
3601  if (cygpath --version) >/dev/null 2>/dev/null; then
3602    CYGPATH_W='cygpath -w'
3603  else
3604    CYGPATH_W=echo
3605  fi
3606fi
3607
3608
3609# Define the identity of the package.
3610 PACKAGE='thirdpartyasl'
3611 VERSION='trunk'
3612
3613
3614cat >>confdefs.h <<_ACEOF
3615#define PACKAGE "$PACKAGE"
3616_ACEOF
3617
3618
3619cat >>confdefs.h <<_ACEOF
3620#define VERSION "$VERSION"
3621_ACEOF
3622
3623# Some tools Automake needs.
3624
3625ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3626
3627
3628AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3629
3630
3631AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3632
3633
3634AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3635
3636
3637MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3638
3639install_sh=${install_sh-"$am_aux_dir/install-sh"}
3640
3641# Installed binaries are usually stripped using `strip' when the user
3642# run `make install-strip'.  However `strip' might not be the right
3643# tool to use in cross-compilation environments, therefore Automake
3644# will honor the `STRIP' environment variable to overrule this program.
3645if test "$cross_compiling" != no; then
3646  if test -n "$ac_tool_prefix"; then
3647  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3648set dummy ${ac_tool_prefix}strip; ac_word=$2
3649echo "$as_me:$LINENO: checking for $ac_word" >&5
3650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651if test "${ac_cv_prog_STRIP+set}" = set; then
3652  echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654  if test -n "$STRIP"; then
3655  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3656else
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660  IFS=$as_save_IFS
3661  test -z "$as_dir" && as_dir=.
3662  for ac_exec_ext in '' $ac_executable_extensions; do
3663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666    break 2
3667  fi
3668done
3669done
3670
3671fi
3672fi
3673STRIP=$ac_cv_prog_STRIP
3674if test -n "$STRIP"; then
3675  echo "$as_me:$LINENO: result: $STRIP" >&5
3676echo "${ECHO_T}$STRIP" >&6
3677else
3678  echo "$as_me:$LINENO: result: no" >&5
3679echo "${ECHO_T}no" >&6
3680fi
3681
3682fi
3683if test -z "$ac_cv_prog_STRIP"; then
3684  ac_ct_STRIP=$STRIP
3685  # Extract the first word of "strip", so it can be a program name with args.
3686set dummy strip; ac_word=$2
3687echo "$as_me:$LINENO: checking for $ac_word" >&5
3688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3690  echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692  if test -n "$ac_ct_STRIP"; then
3693  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3694else
3695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696for as_dir in $PATH
3697do
3698  IFS=$as_save_IFS
3699  test -z "$as_dir" && as_dir=.
3700  for ac_exec_ext in '' $ac_executable_extensions; do
3701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702    ac_cv_prog_ac_ct_STRIP="strip"
3703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704    break 2
3705  fi
3706done
3707done
3708
3709  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3710fi
3711fi
3712ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3713if test -n "$ac_ct_STRIP"; then
3714  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3715echo "${ECHO_T}$ac_ct_STRIP" >&6
3716else
3717  echo "$as_me:$LINENO: result: no" >&5
3718echo "${ECHO_T}no" >&6
3719fi
3720
3721  STRIP=$ac_ct_STRIP
3722else
3723  STRIP="$ac_cv_prog_STRIP"
3724fi
3725
3726fi
3727INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3728
3729# We need awk for the "check" target.  The system "awk" is bad on
3730# some platforms.
3731# Always define AMTAR for backward compatibility.
3732
3733AMTAR=${AMTAR-"${am_missing_run}tar"}
3734
3735am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3736
3737
3738
3739
3740depcc="$CC"   am_compiler_list=
3741
3742echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3743echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3744if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3745  echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748  # We make a subdir and do the tests there.  Otherwise we can end up
3749  # making bogus files that we don't know about and never remove.  For
3750  # instance it was reported that on HP-UX the gcc test will end up
3751  # making a dummy file named `D' -- because `-MD' means `put the output
3752  # in D'.
3753  mkdir conftest.dir
3754  # Copy depcomp to subdir because otherwise we won't find it if we're
3755  # using a relative directory.
3756  cp "$am_depcomp" conftest.dir
3757  cd conftest.dir
3758  # We will build objects and dependencies in a subdirectory because
3759  # it helps to detect inapplicable dependency modes.  For instance
3760  # both Tru64's cc and ICC support -MD to output dependencies as a
3761  # side effect of compilation, but ICC will put the dependencies in
3762  # the current directory while Tru64 will put them in the object
3763  # directory.
3764  mkdir sub
3765
3766  am_cv_CC_dependencies_compiler_type=none
3767  if test "$am_compiler_list" = ""; then
3768     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3769  fi
3770  for depmode in $am_compiler_list; do
3771    # Setup a source with many dependencies, because some compilers
3772    # like to wrap large dependency lists on column 80 (with \), and
3773    # we should not choose a depcomp mode which is confused by this.
3774    #
3775    # We need to recreate these files for each test, as the compiler may
3776    # overwrite some of them when testing with obscure command lines.
3777    # This happens at least with the AIX C compiler.
3778    : > sub/conftest.c
3779    for i in 1 2 3 4 5 6; do
3780      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3781      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3782      # Solaris 8's {/usr,}/bin/sh.
3783      touch sub/conftst$i.h
3784    done
3785    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3786
3787    case $depmode in
3788    nosideeffect)
3789      # after this tag, mechanisms are not by side-effect, so they'll
3790      # only be used when explicitly requested
3791      if test "x$enable_dependency_tracking" = xyes; then
3792        continue
3793      else
3794        break
3795      fi
3796      ;;
3797    none) break ;;
3798    esac
3799    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3800    # mode.  It turns out that the SunPro C++ compiler does not properly
3801    # handle `-M -o', and we need to detect this.
3802    if depmode=$depmode \
3803       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3804       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3805       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3806         >/dev/null 2>conftest.err &&
3807       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3808       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3809       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3810      # icc doesn't choke on unknown options, it will just issue warnings
3811      # or remarks (even with -Werror).  So we grep stderr for any message
3812      # that says an option was ignored or not supported.
3813      # When given -MP, icc 7.0 and 7.1 complain thusly:
3814      #   icc: Command line warning: ignoring option '-M'; no argument required
3815      # The diagnosis changed in icc 8.0:
3816      #   icc: Command line remark: option '-MP' not supported
3817      if (grep 'ignoring option' conftest.err ||
3818          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3819        am_cv_CC_dependencies_compiler_type=$depmode
3820        break
3821      fi
3822    fi
3823  done
3824
3825  cd ..
3826  rm -rf conftest.dir
3827else
3828  am_cv_CC_dependencies_compiler_type=none
3829fi
3830
3831fi
3832echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3833echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3834CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3835
3836
3837
3838if
3839  test "x$enable_dependency_tracking" != xno \
3840  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3841  am__fastdepCC_TRUE=
3842  am__fastdepCC_FALSE='#'
3843else
3844  am__fastdepCC_TRUE='#'
3845  am__fastdepCC_FALSE=
3846fi
3847
3848
3849
3850echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3851echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3852    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3853if test "${enable_maintainer_mode+set}" = set; then
3854  enableval="$enable_maintainer_mode"
3855  USE_MAINTAINER_MODE=$enableval
3856else
3857  USE_MAINTAINER_MODE=no
3858fi;
3859  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3860echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3861
3862
3863if test $USE_MAINTAINER_MODE = yes; then
3864  MAINTAINER_MODE_TRUE=
3865  MAINTAINER_MODE_FALSE='#'
3866else
3867  MAINTAINER_MODE_TRUE='#'
3868  MAINTAINER_MODE_FALSE=
3869fi
3870
3871  MAINT=$MAINTAINER_MODE_TRUE
3872
3873
3874
3875coin_have_externals=no
3876if test "$enable_maintainer_mode" = yes; then
3877
3878  # If maintainer mode is chosen, we make sure that the correct versions
3879  # of the tools are used, and that we know where libtool.m4 is (to
3880  # recreate acinclude.m4)
3881
3882
3883  LIBTOOLM4=
3884  # Normally, $HOME
3885  AUTOTOOLS_DFLT=$HOME
3886
3887  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
3888echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
3889if test "${ac_cv_use_correct_autotools+set}" = set; then
3890  echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892  ac_cv_use_correct_autotools=check
3893fi
3894echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
3895echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
3896
3897  if test $ac_cv_use_correct_autotools = check; then
3898    ac_cv_use_correct_autotools=yes
3899    # Check if we have autoconf
3900    # Extract the first word of "autoconf", so it can be a program name with args.
3901set dummy autoconf; ac_word=$2
3902echo "$as_me:$LINENO: checking for $ac_word" >&5
3903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904if test "${ac_cv_prog_have_autoconf+set}" = set; then
3905  echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907  if test -n "$have_autoconf"; then
3908  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
3909else
3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911for as_dir in $PATH
3912do
3913  IFS=$as_save_IFS
3914  test -z "$as_dir" && as_dir=.
3915  for ac_exec_ext in '' $ac_executable_extensions; do
3916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917    ac_cv_prog_have_autoconf="yes"
3918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919    break 2
3920  fi
3921done
3922done
3923
3924  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
3925fi
3926fi
3927have_autoconf=$ac_cv_prog_have_autoconf
3928if test -n "$have_autoconf"; then
3929  echo "$as_me:$LINENO: result: $have_autoconf" >&5
3930echo "${ECHO_T}$have_autoconf" >&6
3931else
3932  echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
3934fi
3935
3936    if test $have_autoconf = no; then
3937      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
3938echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
3939   { (exit 1); exit 1; }; }
3940    fi
3941
3942    # Check whether autoconf is the correct version
3943    correct_version='2.59'
3944    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
3945    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
3946echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
3947    autoconf --version > confauto.out 2>&1
3948    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
3949      echo "$as_me:$LINENO: result: yes" >&5
3950echo "${ECHO_T}yes" >&6
3951    else
3952      rm -f confauto.out
3953      echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
3955      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
3956echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
3957   { (exit 1); exit 1; }; }
3958    fi
3959    rm -f confauto.out
3960
3961    # Check if the executable autoconf is picked up from the correct location
3962    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
3963echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
3964    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
3965    autoconf_dir=`cd $autoconf_dir; pwd`
3966    if test x$AUTOTOOLS_DIR = x; then
3967      want_dir=$AUTOTOOLS_DFLT/bin
3968    else
3969      want_dir=$AUTOTOOLS_DIR/bin
3970    fi
3971    if test $autoconf_dir = `cd $want_dir; pwd`; then
3972      echo "$as_me:$LINENO: result: yes" >&5
3973echo "${ECHO_T}yes" >&6
3974    else
3975      rm -f confauto.out
3976      echo "$as_me:$LINENO: result: no" >&5
3977echo "${ECHO_T}no" >&6
3978      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
3979echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
3980   { (exit 1); exit 1; }; }
3981    fi
3982
3983    # Check if we have automake
3984    # Extract the first word of "automake", so it can be a program name with args.
3985set dummy automake; ac_word=$2
3986echo "$as_me:$LINENO: checking for $ac_word" >&5
3987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3988if test "${ac_cv_prog_have_automake+set}" = set; then
3989  echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991  if test -n "$have_automake"; then
3992  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
3993else
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997  IFS=$as_save_IFS
3998  test -z "$as_dir" && as_dir=.
3999  for ac_exec_ext in '' $ac_executable_extensions; do
4000  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4001    ac_cv_prog_have_automake="yes"
4002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003    break 2
4004  fi
4005done
4006done
4007
4008  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4009fi
4010fi
4011have_automake=$ac_cv_prog_have_automake
4012if test -n "$have_automake"; then
4013  echo "$as_me:$LINENO: result: $have_automake" >&5
4014echo "${ECHO_T}$have_automake" >&6
4015else
4016  echo "$as_me:$LINENO: result: no" >&5
4017echo "${ECHO_T}no" >&6
4018fi
4019
4020    if test $have_automake = no; then
4021      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4022echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4023   { (exit 1); exit 1; }; }
4024    fi
4025
4026    # Check whether automake is the correct version
4027    correct_version='1.9.6'
4028    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4029    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4030echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4031    automake --version > confauto.out 2>&1
4032    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4033      echo "$as_me:$LINENO: result: yes" >&5
4034echo "${ECHO_T}yes" >&6
4035    else
4036      rm -f confauto.out
4037      echo "$as_me:$LINENO: result: no" >&5
4038echo "${ECHO_T}no" >&6
4039      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4040echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4041   { (exit 1); exit 1; }; }
4042    fi
4043    rm -f confauto.out
4044
4045    # Check if the executable automake is picked up from the correct location
4046    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4047echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4048    automake_dir=`which automake | sed -e 's=/automake=='`
4049    automake_dir=`cd $automake_dir; pwd`
4050    if test x$AUTOTOOLS_DIR = x; then
4051      want_dir=$AUTOTOOLS_DFLT/bin
4052    else
4053      want_dir=$AUTOTOOLS_DIR/bin
4054    fi
4055    if test $automake_dir = `cd $want_dir; pwd`; then
4056      echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
4058    else
4059      rm -f confauto.out
4060      echo "$as_me:$LINENO: result: no" >&5
4061echo "${ECHO_T}no" >&6
4062      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4063echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4064   { (exit 1); exit 1; }; }
4065    fi
4066
4067    # Check if this is the correct version of libtool (with escaped dots)
4068    if test x$AUTOTOOLS_DIR = x; then
4069      want_dir=$AUTOTOOLS_DFLT/share
4070    else
4071      want_dir=$AUTOTOOLS_DIR/share
4072    fi
4073    correct_version='1.5.22'
4074    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4075    if test -r $want_dir/libtool/ltmain.sh; then
4076  have_ltmain=yes
4077  :
4078else
4079  have_ltmain=no
4080  :
4081fi
4082
4083    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4084echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4085    if test $have_ltmain = yes; then
4086    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4087        echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089      else
4090        echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4093echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4094   { (exit 1); exit 1; }; }
4095      fi
4096    else
4097      echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4100echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4101   { (exit 1); exit 1; }; }
4102    fi
4103  fi
4104
4105  # Check if we can find the libtool file
4106  if test x$AUTOTOOLS_DIR = x; then
4107    want_dir=$AUTOTOOLS_DFLT/share
4108  else
4109    want_dir=$AUTOTOOLS_DIR/share
4110  fi
4111  if test -r $want_dir/aclocal/libtool.m4; then
4112  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4113  :
4114else
4115  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4116echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4117   { (exit 1); exit 1; }; }
4118  :
4119fi
4120
4121
4122  # Check if we have an Dependencies file
4123  if test -r $srcdir/Dependencies; then
4124    coin_have_externals=yes
4125  fi
4126  # Check if subversion is installed and understands https
4127  # Extract the first word of "svn", so it can be a program name with args.
4128set dummy svn; ac_word=$2
4129echo "$as_me:$LINENO: checking for $ac_word" >&5
4130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131if test "${ac_cv_prog_have_svn+set}" = set; then
4132  echo $ECHO_N "(cached) $ECHO_C" >&6
4133else
4134  if test -n "$have_svn"; then
4135  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140  IFS=$as_save_IFS
4141  test -z "$as_dir" && as_dir=.
4142  for ac_exec_ext in '' $ac_executable_extensions; do
4143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144    ac_cv_prog_have_svn="yes"
4145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146    break 2
4147  fi
4148done
4149done
4150
4151  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4152fi
4153fi
4154have_svn=$ac_cv_prog_have_svn
4155if test -n "$have_svn"; then
4156  echo "$as_me:$LINENO: result: $have_svn" >&5
4157echo "${ECHO_T}$have_svn" >&6
4158else
4159  echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161fi
4162
4163  if test x$have_svn = xyes; then
4164    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4165echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4166if test "${ac_cv_svn_understands_https+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169  svn --version > confauto.out 2>&1
4170                    if $EGREP https confauto.out >/dev/null 2>&1; then
4171                      ac_cv_svn_understands_https=yes
4172                    else
4173                      ac_cv_svn_understands_https=no
4174                      have_svn=no
4175                      ac_cv_prog_have_svn=no
4176                    fi
4177                    rm -f confauto.out
4178fi
4179echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4180echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4181  fi
4182
4183  # Find the location of the BuildTools directory
4184  BUILDTOOLSDIR=
4185  if test -r $srcdir/BuildTools/coin.m4; then
4186    BUILDTOOLSDIR=$srcdir/BuildTools
4187  else
4188    if test -r $srcdir/../BuildTools/coin.m4; then
4189      BUILDTOOLSDIR=$srcdir/../BuildTools
4190    else
4191      if test -r $srcdir/../../BuildTools/coin.m4; then
4192        BUILDTOOLSDIR=$srcdir/../../BuildTools
4193      else
4194        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4195echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4196   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4197      fi
4198    fi
4199  fi
4200
4201
4202  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4203  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4204    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4205  fi
4206
4207  # The following variable is set to the name of the directory where
4208  # the autotool scripts are located
4209
4210  AUX_DIR=$ac_aux_dir
4211fi
4212
4213# helpful variable for the base directory of this package
4214abs_source_dir=`cd $srcdir; pwd`
4215
4216
4217# Stuff for example Makefiles
4218if test x$prefix = xNONE; then
4219  full_prefix=$ac_default_prefix
4220else
4221  full_prefix=$prefix
4222fi
4223full_prefix=`cd $full_prefix ; pwd`
4224
4225abs_lib_dir=$full_prefix/lib
4226
4227abs_include_dir=$full_prefix/include
4228
4229abs_bin_dir=$full_prefix/bin
4230
4231
4232
4233if test $coin_have_externals = yes && test x$have_svn = xyes; then
4234  HAVE_EXTERNALS_TRUE=
4235  HAVE_EXTERNALS_FALSE='#'
4236else
4237  HAVE_EXTERNALS_TRUE='#'
4238  HAVE_EXTERNALS_FALSE=
4239fi
4240
4241
4242# AC_MSG_NOTICE([End automake initialisation.])
4243
4244
4245
4246LIBTOOL=
4247if test -f ../libtool; then
4248  coin_config_dir=..
4249  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4250fi
4251if test "x$LIBTOOL" = x; then
4252  if test -f ../../libtool; then
4253    coin_config_dir=../..
4254    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4255  fi
4256fi
4257
4258if test "x$LIBTOOL" = x; then
4259# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4260  # Stuff for libtool
4261  # Check whether --enable-shared or --disable-shared was given.
4262if test "${enable_shared+set}" = set; then
4263  enableval="$enable_shared"
4264  p=${PACKAGE-default}
4265    case $enableval in
4266    yes) enable_shared=yes ;;
4267    no) enable_shared=no ;;
4268    *)
4269      enable_shared=no
4270      # Look at the argument we got.  We use all the common list separators.
4271      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4272      for pkg in $enableval; do
4273        IFS="$lt_save_ifs"
4274        if test "X$pkg" = "X$p"; then
4275          enable_shared=yes
4276        fi
4277      done
4278      IFS="$lt_save_ifs"
4279      ;;
4280    esac
4281else
4282  enable_shared=yes
4283fi;
4284
4285# Check whether --enable-fast-install or --disable-fast-install was given.
4286if test "${enable_fast_install+set}" = set; then
4287  enableval="$enable_fast_install"
4288  p=${PACKAGE-default}
4289    case $enableval in
4290    yes) enable_fast_install=yes ;;
4291    no) enable_fast_install=no ;;
4292    *)
4293      enable_fast_install=no
4294      # Look at the argument we got.  We use all the common list separators.
4295      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4296      for pkg in $enableval; do
4297        IFS="$lt_save_ifs"
4298        if test "X$pkg" = "X$p"; then
4299          enable_fast_install=yes
4300        fi
4301      done
4302      IFS="$lt_save_ifs"
4303      ;;
4304    esac
4305else
4306  enable_fast_install=yes
4307fi;
4308
4309echo "$as_me:$LINENO: checking host system type" >&5
4310echo $ECHO_N "checking host system type... $ECHO_C" >&6
4311if test "${ac_cv_host+set}" = set; then
4312  echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
4314  ac_cv_host_alias=$host_alias
4315test -z "$ac_cv_host_alias" &&
4316  ac_cv_host_alias=$ac_cv_build_alias
4317ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4318  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4319echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4320   { (exit 1); exit 1; }; }
4321
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4324echo "${ECHO_T}$ac_cv_host" >&6
4325host=$ac_cv_host
4326host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4327host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4328host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4329
4330
4331echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4332echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4333if test "${lt_cv_path_SED+set}" = set; then
4334  echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336  # Loop through the user's path and test for sed and gsed.
4337# Then use that list of sed's as ones to test for truncation.
4338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339for as_dir in $PATH
4340do
4341  IFS=$as_save_IFS
4342  test -z "$as_dir" && as_dir=.
4343  for lt_ac_prog in sed gsed; do
4344    for ac_exec_ext in '' $ac_executable_extensions; do
4345      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4346        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4347      fi
4348    done
4349  done
4350done
4351lt_ac_max=0
4352lt_ac_count=0
4353# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4354# along with /bin/sed that truncates output.
4355for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4356  test ! -f $lt_ac_sed && continue
4357  cat /dev/null > conftest.in
4358  lt_ac_count=0
4359  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4360  # Check for GNU sed and select it if it is found.
4361  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4362    lt_cv_path_SED=$lt_ac_sed
4363    break
4364  fi
4365  while true; do
4366    cat conftest.in conftest.in >conftest.tmp
4367    mv conftest.tmp conftest.in
4368    cp conftest.in conftest.nl
4369    echo >>conftest.nl
4370    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4371    cmp -s conftest.out conftest.nl || break
4372    # 10000 chars as input seems more than enough
4373    test $lt_ac_count -gt 10 && break
4374    lt_ac_count=`expr $lt_ac_count + 1`
4375    if test $lt_ac_count -gt $lt_ac_max; then
4376      lt_ac_max=$lt_ac_count
4377      lt_cv_path_SED=$lt_ac_sed
4378    fi
4379  done
4380done
4381
4382fi
4383
4384SED=$lt_cv_path_SED
4385echo "$as_me:$LINENO: result: $SED" >&5
4386echo "${ECHO_T}$SED" >&6
4387
4388
4389# Check whether --with-gnu-ld or --without-gnu-ld was given.
4390if test "${with_gnu_ld+set}" = set; then
4391  withval="$with_gnu_ld"
4392  test "$withval" = no || with_gnu_ld=yes
4393else
4394  with_gnu_ld=no
4395fi;
4396ac_prog=ld
4397if test "$GCC" = yes; then
4398  # Check if gcc -print-prog-name=ld gives a path.
4399  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4400echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4401  case $host in
4402  *-*-mingw*)
4403    # gcc leaves a trailing carriage return which upsets mingw
4404    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4405  *)
4406    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4407  esac
4408  case $ac_prog in
4409    # Accept absolute paths.
4410    [\\/]* | ?:[\\/]*)
4411      re_direlt='/[^/][^/]*/\.\./'
4412      # Canonicalize the pathname of ld
4413      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4414      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4415        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4416      done
4417      test -z "$LD" && LD="$ac_prog"
4418      ;;
4419  "")
4420    # If it fails, then pretend we aren't using GCC.
4421    ac_prog=ld
4422    ;;
4423  *)
4424    # If it is relative, then search for the first ld in PATH.
4425    with_gnu_ld=unknown
4426    ;;
4427  esac
4428elif test "$with_gnu_ld" = yes; then
4429  echo "$as_me:$LINENO: checking for GNU ld" >&5
4430echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4431else
4432  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4433echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4434fi
4435if test "${lt_cv_path_LD+set}" = set; then
4436  echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438  if test -z "$LD"; then
4439  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4440  for ac_dir in $PATH; do
4441    IFS="$lt_save_ifs"
4442    test -z "$ac_dir" && ac_dir=.
4443    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4444      lt_cv_path_LD="$ac_dir/$ac_prog"
4445      # Check to see if the program is GNU ld.  I'd rather use --version,
4446      # but apparently some variants of GNU ld only accept -v.
4447      # Break only if it was the GNU/non-GNU ld that we prefer.
4448      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4449      *GNU* | *'with BFD'*)
4450        test "$with_gnu_ld" != no && break
4451        ;;
4452      *)
4453        test "$with_gnu_ld" != yes && break
4454        ;;
4455      esac
4456    fi
4457  done
4458  IFS="$lt_save_ifs"
4459else
4460  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4461fi
4462fi
4463
4464LD="$lt_cv_path_LD"
4465if test -n "$LD"; then
4466  echo "$as_me:$LINENO: result: $LD" >&5
4467echo "${ECHO_T}$LD" >&6
4468else
4469  echo "$as_me:$LINENO: result: no" >&5
4470echo "${ECHO_T}no" >&6
4471fi
4472test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4473echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4474   { (exit 1); exit 1; }; }
4475echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4476echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4477if test "${lt_cv_prog_gnu_ld+set}" = set; then
4478  echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4481case `$LD -v 2>&1 </dev/null` in
4482*GNU* | *'with BFD'*)
4483  lt_cv_prog_gnu_ld=yes
4484  ;;
4485*)
4486  lt_cv_prog_gnu_ld=no
4487  ;;
4488esac
4489fi
4490echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4491echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4492with_gnu_ld=$lt_cv_prog_gnu_ld
4493
4494
4495echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4496echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4497if test "${lt_cv_ld_reload_flag+set}" = set; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  lt_cv_ld_reload_flag='-r'
4501fi
4502echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4503echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4504reload_flag=$lt_cv_ld_reload_flag
4505case $reload_flag in
4506"" | " "*) ;;
4507*) reload_flag=" $reload_flag" ;;
4508esac
4509reload_cmds='$LD$reload_flag -o $output$reload_objs'
4510case $host_os in
4511  darwin*)
4512    if test "$GCC" = yes; then
4513      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4514    else
4515      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4516    fi
4517    ;;
4518esac
4519
4520echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4521echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4522if test "${lt_cv_path_NM+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  if test -n "$NM"; then
4526  # Let the user override the test.
4527  lt_cv_path_NM="$NM"
4528else
4529  lt_nm_to_check="${ac_tool_prefix}nm"
4530  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4531    lt_nm_to_check="$lt_nm_to_check nm"
4532  fi
4533  for lt_tmp_nm in $lt_nm_to_check; do
4534    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4535    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4536      IFS="$lt_save_ifs"
4537      test -z "$ac_dir" && ac_dir=.
4538      tmp_nm="$ac_dir/$lt_tmp_nm"
4539      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4540        # Check to see if the nm accepts a BSD-compat flag.
4541        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4542        #   nm: unknown option "B" ignored
4543        # Tru64's nm complains that /dev/null is an invalid object file
4544        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4545        */dev/null* | *'Invalid file or object type'*)
4546          lt_cv_path_NM="$tmp_nm -B"
4547          break
4548          ;;
4549        *)
4550          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4551          */dev/null*)
4552            lt_cv_path_NM="$tmp_nm -p"
4553            break
4554            ;;
4555          *)
4556            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4557            continue # so that we can try to find one that supports BSD flags
4558            ;;
4559          esac
4560          ;;
4561        esac
4562      fi
4563    done
4564    IFS="$lt_save_ifs"
4565  done
4566  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4567fi
4568fi
4569echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4570echo "${ECHO_T}$lt_cv_path_NM" >&6
4571NM="$lt_cv_path_NM"
4572
4573echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4574echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4575if test "${lt_cv_deplibs_check_method+set}" = set; then
4576  echo $ECHO_N "(cached) $ECHO_C" >&6
4577else
4578  lt_cv_file_magic_cmd='$MAGIC_CMD'
4579lt_cv_file_magic_test_file=
4580lt_cv_deplibs_check_method='unknown'
4581# Need to set the preceding variable on all platforms that support
4582# interlibrary dependencies.
4583# 'none' -- dependencies not supported.
4584# `unknown' -- same as none, but documents that we really don't know.
4585# 'pass_all' -- all dependencies passed with no checks.
4586# 'test_compile' -- check by making test program.
4587# 'file_magic [[regex]]' -- check by looking for files in library path
4588# which responds to the $file_magic_cmd with a given extended regex.
4589# If you have `file' or equivalent on your system and you're not sure
4590# whether `pass_all' will *always* work, you probably want this one.
4591
4592case $host_os in
4593aix4* | aix5*)
4594  lt_cv_deplibs_check_method=pass_all
4595  ;;
4596
4597beos*)
4598  lt_cv_deplibs_check_method=pass_all
4599  ;;
4600
4601bsdi[45]*)
4602  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4603  lt_cv_file_magic_cmd='/usr/bin/file -L'
4604  lt_cv_file_magic_test_file=/shlib/libc.so
4605  ;;
4606
4607cygwin*)
4608  # func_win32_libid is a shell function defined in ltmain.sh
4609  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4610  lt_cv_file_magic_cmd='func_win32_libid'
4611  ;;
4612
4613mingw* | pw32*)
4614  # Base MSYS/MinGW do not provide the 'file' command needed by
4615  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4616  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4617  lt_cv_file_magic_cmd='$OBJDUMP -f'
4618  ;;
4619
4620darwin* | rhapsody*)
4621  lt_cv_deplibs_check_method=pass_all
4622  ;;
4623
4624freebsd* | kfreebsd*-gnu | dragonfly*)
4625  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4626    case $host_cpu in
4627    i*86 )
4628      # Not sure whether the presence of OpenBSD here was a mistake.
4629      # Let's accept both of them until this is cleared up.
4630      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4631      lt_cv_file_magic_cmd=/usr/bin/file
4632      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4633      ;;
4634    esac
4635  else
4636    lt_cv_deplibs_check_method=pass_all
4637  fi
4638  ;;
4639
4640gnu*)
4641  lt_cv_deplibs_check_method=pass_all
4642  ;;
4643
4644hpux10.20* | hpux11*)
4645  lt_cv_file_magic_cmd=/usr/bin/file
4646  case $host_cpu in
4647  ia64*)
4648    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4649    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4650    ;;
4651  hppa*64*)
4652    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]'
4653    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4654    ;;
4655  *)
4656    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4657    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4658    ;;
4659  esac
4660  ;;
4661
4662interix3*)
4663  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4664  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4665  ;;
4666
4667irix5* | irix6* | nonstopux*)
4668  case $LD in
4669  *-32|*"-32 ") libmagic=32-bit;;
4670  *-n32|*"-n32 ") libmagic=N32;;
4671  *-64|*"-64 ") libmagic=64-bit;;
4672  *) libmagic=never-match;;
4673  esac
4674  lt_cv_deplibs_check_method=pass_all
4675  ;;
4676
4677# This must be Linux ELF.
4678linux*)
4679  lt_cv_deplibs_check_method=pass_all
4680  ;;
4681
4682netbsd*)
4683  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4684    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4685  else
4686    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4687  fi
4688  ;;
4689
4690newos6*)
4691  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4692  lt_cv_file_magic_cmd=/usr/bin/file
4693  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4694  ;;
4695
4696nto-qnx*)
4697  lt_cv_deplibs_check_method=unknown
4698  ;;
4699
4700openbsd*)
4701  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4702    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4703  else
4704    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4705  fi
4706  ;;
4707
4708osf3* | osf4* | osf5*)
4709  lt_cv_deplibs_check_method=pass_all
4710  ;;
4711
4712solaris*)
4713  lt_cv_deplibs_check_method=pass_all
4714  ;;
4715
4716sysv4 | sysv4.3*)
4717  case $host_vendor in
4718  motorola)
4719    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]'
4720    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4721    ;;
4722  ncr)
4723    lt_cv_deplibs_check_method=pass_all
4724    ;;
4725  sequent)
4726    lt_cv_file_magic_cmd='/bin/file'
4727    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4728    ;;
4729  sni)
4730    lt_cv_file_magic_cmd='/bin/file'
4731    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4732    lt_cv_file_magic_test_file=/lib/libc.so
4733    ;;
4734  siemens)
4735    lt_cv_deplibs_check_method=pass_all
4736    ;;
4737  pc)
4738    lt_cv_deplibs_check_method=pass_all
4739    ;;
4740  esac
4741  ;;
4742
4743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4744  lt_cv_deplibs_check_method=pass_all
4745  ;;
4746esac
4747
4748fi
4749echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4750echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4751file_magic_cmd=$lt_cv_file_magic_cmd
4752deplibs_check_method=$lt_cv_deplibs_check_method
4753test -z "$deplibs_check_method" && deplibs_check_method=unknown
4754
4755
4756
4757
4758# If no C compiler was specified, use CC.
4759LTCC=${LTCC-"$CC"}
4760
4761# If no C compiler flags were specified, use CFLAGS.
4762LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4763
4764# Allow CC to be a program name with arguments.
4765compiler=$CC
4766
4767# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4768if test "${enable_libtool_lock+set}" = set; then
4769  enableval="$enable_libtool_lock"
4770
4771fi;
4772test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4773
4774# Some flags need to be propagated to the compiler or linker for good
4775# libtool support.
4776case $host in
4777ia64-*-hpux*)
4778  # Find out which ABI we are using.
4779  echo 'int i;' > conftest.$ac_ext
4780  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4781  (eval $ac_compile) 2>&5
4782  ac_status=$?
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); }; then
4785    case `/usr/bin/file conftest.$ac_objext` in
4786    *ELF-32*)
4787      HPUX_IA64_MODE="32"
4788      ;;
4789    *ELF-64*)
4790      HPUX_IA64_MODE="64"
4791      ;;
4792    esac
4793  fi
4794  rm -rf conftest*
4795  ;;
4796*-*-irix6*)
4797  # Find out which ABI we are using.
4798  echo '#line 4798 "configure"' > conftest.$ac_ext
4799  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800  (eval $ac_compile) 2>&5
4801  ac_status=$?
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; then
4804   if test "$lt_cv_prog_gnu_ld" = yes; then
4805    case `/usr/bin/file conftest.$ac_objext` in
4806    *32-bit*)
4807      LD="${LD-ld} -melf32bsmip"
4808      ;;
4809    *N32*)
4810      LD="${LD-ld} -melf32bmipn32"
4811      ;;
4812    *64-bit*)
4813      LD="${LD-ld} -melf64bmip"
4814      ;;
4815    esac
4816   else
4817    case `/usr/bin/file conftest.$ac_objext` in
4818    *32-bit*)
4819      LD="${LD-ld} -32"
4820      ;;
4821    *N32*)
4822      LD="${LD-ld} -n32"
4823      ;;
4824    *64-bit*)
4825      LD="${LD-ld} -64"
4826      ;;
4827    esac
4828   fi
4829  fi
4830  rm -rf conftest*
4831  ;;
4832
4833x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4834  # Find out which ABI we are using.
4835  echo 'int i;' > conftest.$ac_ext
4836  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837  (eval $ac_compile) 2>&5
4838  ac_status=$?
4839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840  (exit $ac_status); }; then
4841    case `/usr/bin/file conftest.o` in
4842    *32-bit*)
4843      case $host in
4844        x86_64-*linux*)
4845          LD="${LD-ld} -m elf_i386"
4846          ;;
4847        ppc64-*linux*|powerpc64-*linux*)
4848          LD="${LD-ld} -m elf32ppclinux"
4849          ;;
4850        s390x-*linux*)
4851          LD="${LD-ld} -m elf_s390"
4852          ;;
4853        sparc64-*linux*)
4854          LD="${LD-ld} -m elf32_sparc"
4855          ;;
4856      esac
4857      ;;
4858    *64-bit*)
4859      case $host in
4860        x86_64-*linux*)
4861          LD="${LD-ld} -m elf_x86_64"
4862          ;;
4863        ppc*-*linux*|powerpc*-*linux*)
4864          LD="${LD-ld} -m elf64ppc"
4865          ;;
4866        s390*-*linux*)
4867          LD="${LD-ld} -m elf64_s390"
4868          ;;
4869        sparc*-*linux*)
4870          LD="${LD-ld} -m elf64_sparc"
4871          ;;
4872      esac
4873      ;;
4874    esac
4875  fi
4876  rm -rf conftest*
4877  ;;
4878
4879*-*-sco3.2v5*)
4880  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4881  SAVE_CFLAGS="$CFLAGS"
4882  CFLAGS="$CFLAGS -belf"
4883  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4884echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4885if test "${lt_cv_cc_needs_belf+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  ac_ext=c
4889ac_cpp='$CPP $CPPFLAGS'
4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894     cat >conftest.$ac_ext <<_ACEOF
4895/* confdefs.h.  */
4896_ACEOF
4897cat confdefs.h >>conftest.$ac_ext
4898cat >>conftest.$ac_ext <<_ACEOF
4899/* end confdefs.h.  */
4900
4901int
4902main ()
4903{
4904
4905  ;
4906  return 0;
4907}
4908_ACEOF
4909rm -f conftest.$ac_objext conftest$ac_exeext
4910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4911  (eval $ac_link) 2>conftest.er1
4912  ac_status=$?
4913  grep -v '^ *+' conftest.er1 >conftest.err
4914  rm -f conftest.er1
4915  cat conftest.err >&5
4916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917  (exit $ac_status); } &&
4918         { ac_try='test -z "$ac_c_werror_flag"
4919                         || test ! -s conftest.err'
4920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921  (eval $ac_try) 2>&5
4922  ac_status=$?
4923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924  (exit $ac_status); }; } &&
4925         { ac_try='test -s conftest$ac_exeext'
4926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927  (eval $ac_try) 2>&5
4928  ac_status=$?
4929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930  (exit $ac_status); }; }; then
4931  lt_cv_cc_needs_belf=yes
4932else
4933  echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936lt_cv_cc_needs_belf=no
4937fi
4938rm -f conftest.err conftest.$ac_objext \
4939      conftest$ac_exeext conftest.$ac_ext
4940     ac_ext=c
4941ac_cpp='$CPP $CPPFLAGS'
4942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946fi
4947echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4948echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4949  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4950    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4951    CFLAGS="$SAVE_CFLAGS"
4952  fi
4953  ;;
4954sparc*-*solaris*)
4955  # Find out which ABI we are using.
4956  echo 'int i;' > conftest.$ac_ext
4957  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958  (eval $ac_compile) 2>&5
4959  ac_status=$?
4960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961  (exit $ac_status); }; then
4962    case `/usr/bin/file conftest.o` in
4963    *64-bit*)
4964      case $lt_cv_prog_gnu_ld in
4965      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4966      *)    LD="${LD-ld} -64" ;;
4967      esac
4968      ;;
4969    esac
4970  fi
4971  rm -rf conftest*
4972  ;;
4973
4974
4975esac
4976
4977need_locks="$enable_libtool_lock"
4978
4979
4980ac_ext=c
4981ac_cpp='$CPP $CPPFLAGS'
4982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4986echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4987# On Suns, sometimes $CPP names a directory.
4988if test -n "$CPP" && test -d "$CPP"; then
4989  CPP=
4990fi
4991if test -z "$CPP"; then
4992  if test "${ac_cv_prog_CPP+set}" = set; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995      # Double quotes because CPP needs to be expanded
4996    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4997    do
4998      ac_preproc_ok=false
4999for ac_c_preproc_warn_flag in '' yes
5000do
5001  # Use a header file that comes with gcc, so configuring glibc
5002  # with a fresh cross-compiler works.
5003  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5004  # <limits.h> exists even on freestanding compilers.
5005  # On the NeXT, cc -E runs the code through the compiler's parser,
5006  # not just through cpp. "Syntax error" is here to catch this case.
5007  cat >conftest.$ac_ext <<_ACEOF
5008/* confdefs.h.  */
5009_ACEOF
5010cat confdefs.h >>conftest.$ac_ext
5011cat >>conftest.$ac_ext <<_ACEOF
5012/* end confdefs.h.  */
5013#ifdef __STDC__
5014# include <limits.h>
5015#else
5016# include <assert.h>
5017#endif
5018                     Syntax error
5019_ACEOF
5020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5021  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5022  ac_status=$?
5023  grep -v '^ *+' conftest.er1 >conftest.err
5024  rm -f conftest.er1
5025  cat conftest.err >&5
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); } >/dev/null; then
5028  if test -s conftest.err; then
5029    ac_cpp_err=$ac_c_preproc_warn_flag
5030    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5031  else
5032    ac_cpp_err=
5033  fi
5034else
5035  ac_cpp_err=yes
5036fi
5037if test -z "$ac_cpp_err"; then
5038  :
5039else
5040  echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043  # Broken: fails on valid input.
5044continue
5045fi
5046rm -f conftest.err conftest.$ac_ext
5047
5048  # OK, works on sane cases.  Now check whether non-existent headers
5049  # can be detected and how.
5050  cat >conftest.$ac_ext <<_ACEOF
5051/* confdefs.h.  */
5052_ACEOF
5053cat confdefs.h >>conftest.$ac_ext
5054cat >>conftest.$ac_ext <<_ACEOF
5055/* end confdefs.h.  */
5056#include <ac_nonexistent.h>
5057_ACEOF
5058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5060  ac_status=$?
5061  grep -v '^ *+' conftest.er1 >conftest.err
5062  rm -f conftest.er1
5063  cat conftest.err >&5
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); } >/dev/null; then
5066  if test -s conftest.err; then
5067    ac_cpp_err=$ac_c_preproc_warn_flag
5068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5069  else
5070    ac_cpp_err=
5071  fi
5072else
5073  ac_cpp_err=yes
5074fi
5075if test -z "$ac_cpp_err"; then
5076  # Broken: success on invalid input.
5077continue
5078else
5079  echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082  # Passes both tests.
5083ac_preproc_ok=:
5084break
5085fi
5086rm -f conftest.err conftest.$ac_ext
5087
5088done
5089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090rm -f conftest.err conftest.$ac_ext
5091if $ac_preproc_ok; then
5092  break
5093fi
5094
5095    done
5096    ac_cv_prog_CPP=$CPP
5097
5098fi
5099  CPP=$ac_cv_prog_CPP
5100else
5101  ac_cv_prog_CPP=$CPP
5102fi
5103echo "$as_me:$LINENO: result: $CPP" >&5
5104echo "${ECHO_T}$CPP" >&6
5105ac_preproc_ok=false
5106for ac_c_preproc_warn_flag in '' yes
5107do
5108  # Use a header file that comes with gcc, so configuring glibc
5109  # with a fresh cross-compiler works.
5110  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111  # <limits.h> exists even on freestanding compilers.
5112  # On the NeXT, cc -E runs the code through the compiler's parser,
5113  # not just through cpp. "Syntax error" is here to catch this case.
5114  cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h.  */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h.  */
5120#ifdef __STDC__
5121# include <limits.h>
5122#else
5123# include <assert.h>
5124#endif
5125                     Syntax error
5126_ACEOF
5127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129  ac_status=$?
5130  grep -v '^ *+' conftest.er1 >conftest.err
5131  rm -f conftest.er1
5132  cat conftest.err >&5
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); } >/dev/null; then
5135  if test -s conftest.err; then
5136    ac_cpp_err=$ac_c_preproc_warn_flag
5137    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5138  else
5139    ac_cpp_err=
5140  fi
5141else
5142  ac_cpp_err=yes
5143fi
5144if test -z "$ac_cpp_err"; then
5145  :
5146else
5147  echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150  # Broken: fails on valid input.
5151continue
5152fi
5153rm -f conftest.err conftest.$ac_ext
5154
5155  # OK, works on sane cases.  Now check whether non-existent headers
5156  # can be detected and how.
5157  cat >conftest.$ac_ext <<_ACEOF
5158/* confdefs.h.  */
5159_ACEOF
5160cat confdefs.h >>conftest.$ac_ext
5161cat >>conftest.$ac_ext <<_ACEOF
5162/* end confdefs.h.  */
5163#include <ac_nonexistent.h>
5164_ACEOF
5165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5166  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5167  ac_status=$?
5168  grep -v '^ *+' conftest.er1 >conftest.err
5169  rm -f conftest.er1
5170  cat conftest.err >&5
5171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172  (exit $ac_status); } >/dev/null; then
5173  if test -s conftest.err; then
5174    ac_cpp_err=$ac_c_preproc_warn_flag
5175    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5176  else
5177    ac_cpp_err=
5178  fi
5179else
5180  ac_cpp_err=yes
5181fi
5182if test -z "$ac_cpp_err"; then
5183  # Broken: success on invalid input.
5184continue
5185else
5186  echo "$as_me: failed program was:" >&5
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
5189  # Passes both tests.
5190ac_preproc_ok=:
5191break
5192fi
5193rm -f conftest.err conftest.$ac_ext
5194
5195done
5196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5197rm -f conftest.err conftest.$ac_ext
5198if $ac_preproc_ok; then
5199  :
5200else
5201  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5202See \`config.log' for more details." >&5
5203echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5204See \`config.log' for more details." >&2;}
5205   { (exit 1); exit 1; }; }
5206fi
5207
5208ac_ext=c
5209ac_cpp='$CPP $CPPFLAGS'
5210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214
5215echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5216echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5217if test "${ac_cv_header_stdc+set}" = set; then
5218  echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220  cat >conftest.$ac_ext <<_ACEOF
5221/* confdefs.h.  */
5222_ACEOF
5223cat confdefs.h >>conftest.$ac_ext
5224cat >>conftest.$ac_ext <<_ACEOF
5225/* end confdefs.h.  */
5226#include <stdlib.h>
5227#include <stdarg.h>
5228#include <string.h>
5229#include <float.h>
5230
5231int
5232main ()
5233{
5234
5235  ;
5236  return 0;
5237}
5238_ACEOF
5239rm -f conftest.$ac_objext
5240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241  (eval $ac_compile) 2>conftest.er1
5242  ac_status=$?
5243  grep -v '^ *+' conftest.er1 >conftest.err
5244  rm -f conftest.er1
5245  cat conftest.err >&5
5246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247  (exit $ac_status); } &&
5248         { ac_try='test -z "$ac_c_werror_flag"
5249                         || test ! -s conftest.err'
5250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251  (eval $ac_try) 2>&5
5252  ac_status=$?
5253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254  (exit $ac_status); }; } &&
5255         { ac_try='test -s conftest.$ac_objext'
5256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257  (eval $ac_try) 2>&5
5258  ac_status=$?
5259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260  (exit $ac_status); }; }; then
5261  ac_cv_header_stdc=yes
5262else
5263  echo "$as_me: failed program was:" >&5
5264sed 's/^/| /' conftest.$ac_ext >&5
5265
5266ac_cv_header_stdc=no
5267fi
5268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5269
5270if test $ac_cv_header_stdc = yes; then
5271  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5272  cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h.  */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h.  */
5278#include <string.h>
5279
5280_ACEOF
5281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282  $EGREP "memchr" >/dev/null 2>&1; then
5283  :
5284else
5285  ac_cv_header_stdc=no
5286fi
5287rm -f conftest*
5288
5289fi
5290
5291if test $ac_cv_header_stdc = yes; then
5292  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5293  cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299#include <stdlib.h>
5300
5301_ACEOF
5302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303  $EGREP "free" >/dev/null 2>&1; then
5304  :
5305else
5306  ac_cv_header_stdc=no
5307fi
5308rm -f conftest*
5309
5310fi
5311
5312if test $ac_cv_header_stdc = yes; then
5313  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5314  if test "$cross_compiling" = yes; then
5315  :
5316else
5317  cat >conftest.$ac_ext <<_ACEOF
5318/* confdefs.h.  */
5319_ACEOF
5320cat confdefs.h >>conftest.$ac_ext
5321cat >>conftest.$ac_ext <<_ACEOF
5322/* end confdefs.h.  */
5323#include <ctype.h>
5324#if ((' ' & 0x0FF) == 0x020)
5325# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5326# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5327#else
5328# define ISLOWER(c) \
5329                   (('a' <= (c) && (c) <= 'i') \
5330                     || ('j' <= (c) && (c) <= 'r') \
5331                     || ('s' <= (c) && (c) <= 'z'))
5332# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5333#endif
5334
5335#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5336int
5337main ()
5338{
5339  int i;
5340  for (i = 0; i < 256; i++)
5341    if (XOR (islower (i), ISLOWER (i))
5342        || toupper (i) != TOUPPER (i))
5343      exit(2);
5344  exit (0);
5345}
5346_ACEOF
5347rm -f conftest$ac_exeext
5348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5349  (eval $ac_link) 2>&5
5350  ac_status=$?
5351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354  (eval $ac_try) 2>&5
5355  ac_status=$?
5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357  (exit $ac_status); }; }; then
5358  :
5359else
5360  echo "$as_me: program exited with status $ac_status" >&5
5361echo "$as_me: failed program was:" >&5
5362sed 's/^/| /' conftest.$ac_ext >&5
5363
5364( exit $ac_status )
5365ac_cv_header_stdc=no
5366fi
5367rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5368fi
5369fi
5370fi
5371echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5372echo "${ECHO_T}$ac_cv_header_stdc" >&6
5373if test $ac_cv_header_stdc = yes; then
5374
5375cat >>confdefs.h <<\_ACEOF
5376#define STDC_HEADERS 1
5377_ACEOF
5378
5379fi
5380
5381# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5392                  inttypes.h stdint.h unistd.h
5393do
5394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5395echo "$as_me:$LINENO: checking for $ac_header" >&5
5396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5397if eval "test \"\${$as_ac_Header+set}\" = set"; then
5398  echo $ECHO_N "(cached) $ECHO_C" >&6
5399else
5400  cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h.  */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h.  */
5406$ac_includes_default
5407
5408#include <$ac_header>
5409_ACEOF
5410rm -f conftest.$ac_objext
5411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412  (eval $ac_compile) 2>conftest.er1
5413  ac_status=$?
5414  grep -v '^ *+' conftest.er1 >conftest.err
5415  rm -f conftest.er1
5416  cat conftest.err >&5
5417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418  (exit $ac_status); } &&
5419         { ac_try='test -z "$ac_c_werror_flag"
5420                         || test ! -s conftest.err'
5421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422  (eval $ac_try) 2>&5
5423  ac_status=$?
5424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425  (exit $ac_status); }; } &&
5426         { ac_try='test -s conftest.$ac_objext'
5427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428  (eval $ac_try) 2>&5
5429  ac_status=$?
5430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); }; }; then
5432  eval "$as_ac_Header=yes"
5433else
5434  echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437eval "$as_ac_Header=no"
5438fi
5439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440fi
5441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5443if test `eval echo '${'$as_ac_Header'}'` = yes; then
5444  cat >>confdefs.h <<_ACEOF
5445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5446_ACEOF
5447
5448fi
5449
5450done
5451
5452
5453
5454for ac_header in dlfcn.h
5455do
5456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5457if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458  echo "$as_me:$LINENO: checking for $ac_header" >&5
5459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5460if eval "test \"\${$as_ac_Header+set}\" = set"; then
5461  echo $ECHO_N "(cached) $ECHO_C" >&6
5462fi
5463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5465else
5466  # Is the header compilable?
5467echo "$as_me:$LINENO: checking $ac_header usability" >&5
5468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5469cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h.  */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h.  */
5475$ac_includes_default
5476#include <$ac_header>
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5480  (eval $ac_compile) 2>conftest.er1
5481  ac_status=$?
5482  grep -v '^ *+' conftest.er1 >conftest.err
5483  rm -f conftest.er1
5484  cat conftest.err >&5
5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486  (exit $ac_status); } &&
5487         { ac_try='test -z "$ac_c_werror_flag"
5488                         || test ! -s conftest.err'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; } &&
5494         { ac_try='test -s conftest.$ac_objext'
5495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496  (eval $ac_try) 2>&5
5497  ac_status=$?
5498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499  (exit $ac_status); }; }; then
5500  ac_header_compiler=yes
5501else
5502  echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
5505ac_header_compiler=no
5506fi
5507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5509echo "${ECHO_T}$ac_header_compiler" >&6
5510
5511# Is the header present?
5512echo "$as_me:$LINENO: checking $ac_header presence" >&5
5513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5514cat >conftest.$ac_ext <<_ACEOF
5515/* confdefs.h.  */
5516_ACEOF
5517cat confdefs.h >>conftest.$ac_ext
5518cat >>conftest.$ac_ext <<_ACEOF
5519/* end confdefs.h.  */
5520#include <$ac_header>
5521_ACEOF
5522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524  ac_status=$?
5525  grep -v '^ *+' conftest.er1 >conftest.err
5526  rm -f conftest.er1
5527  cat conftest.err >&5
5528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529  (exit $ac_status); } >/dev/null; then
5530  if test -s conftest.err; then
5531    ac_cpp_err=$ac_c_preproc_warn_flag
5532    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5533  else
5534    ac_cpp_err=
5535  fi
5536else
5537  ac_cpp_err=yes
5538fi
5539if test -z "$ac_cpp_err"; then
5540  ac_header_preproc=yes
5541else
5542  echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545  ac_header_preproc=no
5546fi
5547rm -f conftest.err conftest.$ac_ext
5548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5549echo "${ECHO_T}$ac_header_preproc" >&6
5550
5551# So?  What about this header?
5552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5553  yes:no: )
5554    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5556    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5558    ac_header_preproc=yes
5559    ;;
5560  no:yes:* )
5561    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5563    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5564echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5565    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5567    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5568echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5569    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5571    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5573    (
5574      cat <<\_ASBOX
5575## --------------------------------------------------------------- ##
5576## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5577## --------------------------------------------------------------- ##
5578_ASBOX
5579    ) |
5580      sed "s/^/$as_me: WARNING:     /" >&2
5581    ;;
5582esac
5583echo "$as_me:$LINENO: checking for $ac_header" >&5
5584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5585if eval "test \"\${$as_ac_Header+set}\" = set"; then
5586  echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588  eval "$as_ac_Header=\$ac_header_preproc"
5589fi
5590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592
5593fi
5594if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595  cat >>confdefs.h <<_ACEOF
5596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597_ACEOF
5598
5599fi
5600
5601done
5602
5603ac_ext=cc
5604ac_cpp='$CXXCPP $CPPFLAGS'
5605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5608if test -n "$ac_tool_prefix"; then
5609  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5610  do
5611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5613echo "$as_me:$LINENO: checking for $ac_word" >&5
5614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615if test "${ac_cv_prog_CXX+set}" = set; then
5616  echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618  if test -n "$CXX"; then
5619  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626  for ac_exec_ext in '' $ac_executable_extensions; do
5627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633done
5634
5635fi
5636fi
5637CXX=$ac_cv_prog_CXX
5638if test -n "$CXX"; then
5639  echo "$as_me:$LINENO: result: $CXX" >&5
5640echo "${ECHO_T}$CXX" >&6
5641else
5642  echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6
5644fi
5645
5646    test -n "$CXX" && break
5647  done
5648fi
5649if test -z "$CXX"; then
5650  ac_ct_CXX=$CXX
5651  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5652do
5653  # Extract the first word of "$ac_prog", so it can be a program name with args.
5654set dummy $ac_prog; ac_word=$2
5655echo "$as_me:$LINENO: checking for $ac_word" >&5
5656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5658  echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660  if test -n "$ac_ct_CXX"; then
5661  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668  for ac_exec_ext in '' $ac_executable_extensions; do
5669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670    ac_cv_prog_ac_ct_CXX="$ac_prog"
5671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672    break 2
5673  fi
5674done
5675done
5676
5677fi
5678fi
5679ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5680if test -n "$ac_ct_CXX"; then
5681  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5682echo "${ECHO_T}$ac_ct_CXX" >&6
5683else
5684  echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6
5686fi
5687
5688  test -n "$ac_ct_CXX" && break
5689done
5690test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5691
5692  CXX=$ac_ct_CXX
5693fi
5694
5695
5696# Provide some information about the compiler.
5697echo "$as_me:$LINENO:" \
5698     "checking for C++ compiler version" >&5
5699ac_compiler=`set X $ac_compile; echo $2`
5700{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5701  (eval $ac_compiler --version </dev/null >&5) 2>&5
5702  ac_status=$?
5703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704  (exit $ac_status); }
5705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5706  (eval $ac_compiler -v </dev/null >&5) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }
5710{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5711  (eval $ac_compiler -V </dev/null >&5) 2>&5
5712  ac_status=$?
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); }
5715
5716echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5717echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5718if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5719  echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721  cat >conftest.$ac_ext <<_ACEOF
5722/* confdefs.h.  */
5723_ACEOF
5724cat confdefs.h >>conftest.$ac_ext
5725cat >>conftest.$ac_ext <<_ACEOF
5726/* end confdefs.h.  */
5727
5728int
5729main ()
5730{
5731#ifndef __GNUC__
5732       choke me
5733#endif
5734
5735  ;
5736  return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext
5740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5741  (eval $ac_compile) 2>conftest.er1
5742  ac_status=$?
5743  grep -v '^ *+' conftest.er1 >conftest.err
5744  rm -f conftest.er1
5745  cat conftest.err >&5
5746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747  (exit $ac_status); } &&
5748         { ac_try='test -z "$ac_cxx_werror_flag"
5749                         || test ! -s conftest.err'
5750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751  (eval $ac_try) 2>&5
5752  ac_status=$?
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); }; } &&
5755         { ac_try='test -s conftest.$ac_objext'
5756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757  (eval $ac_try) 2>&5
5758  ac_status=$?
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); }; }; then
5761  ac_compiler_gnu=yes
5762else
5763  echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
5765
5766ac_compiler_gnu=no
5767fi
5768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5769ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5770
5771fi
5772echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5773echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5774GXX=`test $ac_compiler_gnu = yes && echo yes`
5775ac_test_CXXFLAGS=${CXXFLAGS+set}
5776ac_save_CXXFLAGS=$CXXFLAGS
5777CXXFLAGS="-g"
5778echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5779echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5780if test "${ac_cv_prog_cxx_g+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h.  */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h.  */
5789
5790int
5791main ()
5792{
5793
5794  ;
5795  return 0;
5796}
5797_ACEOF
5798rm -f conftest.$ac_objext
5799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800  (eval $ac_compile) 2>conftest.er1
5801  ac_status=$?
5802  grep -v '^ *+' conftest.er1 >conftest.err
5803  rm -f conftest.er1
5804  cat conftest.err >&5
5805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806  (exit $ac_status); } &&
5807         { ac_try='test -z "$ac_cxx_werror_flag"
5808                         || test ! -s conftest.err'
5809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810  (eval $ac_try) 2>&5
5811  ac_status=$?
5812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813  (exit $ac_status); }; } &&
5814         { ac_try='test -s conftest.$ac_objext'
5815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816  (eval $ac_try) 2>&5
5817  ac_status=$?
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); }; }; then
5820  ac_cv_prog_cxx_g=yes
5821else
5822  echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825ac_cv_prog_cxx_g=no
5826fi
5827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5828fi
5829echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5830echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5831if test "$ac_test_CXXFLAGS" = set; then
5832  CXXFLAGS=$ac_save_CXXFLAGS
5833elif test $ac_cv_prog_cxx_g = yes; then
5834  if test "$GXX" = yes; then
5835    CXXFLAGS="-g -O2"
5836  else
5837    CXXFLAGS="-g"
5838  fi
5839else
5840  if test "$GXX" = yes; then
5841    CXXFLAGS="-O2"
5842  else
5843    CXXFLAGS=
5844  fi
5845fi
5846for ac_declaration in \
5847   '' \
5848   'extern "C" void std::exit (int) throw (); using std::exit;' \
5849   'extern "C" void std::exit (int); using std::exit;' \
5850   'extern "C" void exit (int) throw ();' \
5851   'extern "C" void exit (int);' \
5852   'void exit (int);'
5853do
5854  cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h.  */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h.  */
5860$ac_declaration
5861#include <stdlib.h>
5862int
5863main ()
5864{
5865exit (42);
5866  ;
5867  return 0;
5868}
5869_ACEOF
5870rm -f conftest.$ac_objext
5871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5872  (eval $ac_compile) 2>conftest.er1
5873  ac_status=$?
5874  grep -v '^ *+' conftest.er1 >conftest.err
5875  rm -f conftest.er1
5876  cat conftest.err >&5
5877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); } &&
5879         { ac_try='test -z "$ac_cxx_werror_flag"
5880                         || test ! -s conftest.err'
5881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882  (eval $ac_try) 2>&5
5883  ac_status=$?
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); }; } &&
5886         { ac_try='test -s conftest.$ac_objext'
5887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888  (eval $ac_try) 2>&5
5889  ac_status=$?
5890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891  (exit $ac_status); }; }; then
5892  :
5893else
5894  echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897continue
5898fi
5899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5900  cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h.  */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h.  */
5906$ac_declaration
5907int
5908main ()
5909{
5910exit (42);
5911  ;
5912  return 0;
5913}
5914_ACEOF
5915rm -f conftest.$ac_objext
5916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917  (eval $ac_compile) 2>conftest.er1
5918  ac_status=$?
5919  grep -v '^ *+' conftest.er1 >conftest.err
5920  rm -f conftest.er1
5921  cat conftest.err >&5
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); } &&
5924         { ac_try='test -z "$ac_cxx_werror_flag"
5925                         || test ! -s conftest.err'
5926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927  (eval $ac_try) 2>&5
5928  ac_status=$?
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); }; } &&
5931         { ac_try='test -s conftest.$ac_objext'
5932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933  (eval $ac_try) 2>&5
5934  ac_status=$?
5935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936  (exit $ac_status); }; }; then
5937  break
5938else
5939  echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942fi
5943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5944done
5945rm -f conftest*
5946if test -n "$ac_declaration"; then
5947  echo '#ifdef __cplusplus' >>confdefs.h
5948  echo $ac_declaration      >>confdefs.h
5949  echo '#endif'             >>confdefs.h
5950fi
5951
5952ac_ext=cc
5953ac_cpp='$CXXCPP $CPPFLAGS'
5954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5957
5958depcc="$CXX"  am_compiler_list=
5959
5960echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5961echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5962if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5963  echo $ECHO_N "(cached) $ECHO_C" >&6
5964else
5965  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5966  # We make a subdir and do the tests there.  Otherwise we can end up
5967  # making bogus files that we don't know about and never remove.  For
5968  # instance it was reported that on HP-UX the gcc test will end up
5969  # making a dummy file named `D' -- because `-MD' means `put the output
5970  # in D'.
5971  mkdir conftest.dir
5972  # Copy depcomp to subdir because otherwise we won't find it if we're
5973  # using a relative directory.
5974  cp "$am_depcomp" conftest.dir
5975  cd conftest.dir
5976  # We will build objects and dependencies in a subdirectory because
5977  # it helps to detect inapplicable dependency modes.  For instance
5978  # both Tru64's cc and ICC support -MD to output dependencies as a
5979  # side effect of compilation, but ICC will put the dependencies in
5980  # the current directory while Tru64 will put them in the object
5981  # directory.
5982  mkdir sub
5983
5984  am_cv_CXX_dependencies_compiler_type=none
5985  if test "$am_compiler_list" = ""; then
5986     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5987  fi
5988  for depmode in $am_compiler_list; do
5989    # Setup a source with many dependencies, because some compilers
5990    # like to wrap large dependency lists on column 80 (with \), and
5991    # we should not choose a depcomp mode which is confused by this.
5992    #
5993    # We need to recreate these files for each test, as the compiler may
5994    # overwrite some of them when testing with obscure command lines.
5995    # This happens at least with the AIX C compiler.
5996    : > sub/conftest.c
5997    for i in 1 2 3 4 5 6; do
5998      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5999      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6000      # Solaris 8's {/usr,}/bin/sh.
6001      touch sub/conftst$i.h
6002    done
6003    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6004
6005    case $depmode in
6006    nosideeffect)
6007      # after this tag, mechanisms are not by side-effect, so they'll
6008      # only be used when explicitly requested
6009      if test "x$enable_dependency_tracking" = xyes; then
6010        continue
6011      else
6012        break
6013      fi
6014      ;;
6015    none) break ;;
6016    esac
6017    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6018    # mode.  It turns out that the SunPro C++ compiler does not properly
6019    # handle `-M -o', and we need to detect this.
6020    if depmode=$depmode \
6021       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6022       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6023       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6024         >/dev/null 2>conftest.err &&
6025       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6026       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6027       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6028      # icc doesn't choke on unknown options, it will just issue warnings
6029      # or remarks (even with -Werror).  So we grep stderr for any message
6030      # that says an option was ignored or not supported.
6031      # When given -MP, icc 7.0 and 7.1 complain thusly:
6032      #   icc: Command line warning: ignoring option '-M'; no argument required
6033      # The diagnosis changed in icc 8.0:
6034      #   icc: Command line remark: option '-MP' not supported
6035      if (grep 'ignoring option' conftest.err ||
6036          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6037        am_cv_CXX_dependencies_compiler_type=$depmode
6038        break
6039      fi
6040    fi
6041  done
6042
6043  cd ..
6044  rm -rf conftest.dir
6045else
6046  am_cv_CXX_dependencies_compiler_type=none
6047fi
6048
6049fi
6050echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6051echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6052CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6053
6054
6055
6056if
6057  test "x$enable_dependency_tracking" != xno \
6058  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6059  am__fastdepCXX_TRUE=
6060  am__fastdepCXX_FALSE='#'
6061else
6062  am__fastdepCXX_TRUE='#'
6063  am__fastdepCXX_FALSE=
6064fi
6065
6066
6067
6068
6069if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6070    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6071    (test "X$CXX" != "Xg++"))) ; then
6072  ac_ext=cc
6073ac_cpp='$CXXCPP $CPPFLAGS'
6074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6077echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6078echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6079if test -z "$CXXCPP"; then
6080  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6081  echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083      # Double quotes because CXXCPP needs to be expanded
6084    for CXXCPP in "$CXX -E" "/lib/cpp"
6085    do
6086      ac_preproc_ok=false
6087for ac_cxx_preproc_warn_flag in '' yes
6088do
6089  # Use a header file that comes with gcc, so configuring glibc
6090  # with a fresh cross-compiler works.
6091  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6092  # <limits.h> exists even on freestanding compilers.
6093  # On the NeXT, cc -E runs the code through the compiler's parser,
6094  # not just through cpp. "Syntax error" is here to catch this case.
6095  cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h.  */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h.  */
6101#ifdef __STDC__
6102# include <limits.h>
6103#else
6104# include <assert.h>
6105#endif
6106                     Syntax error
6107_ACEOF
6108if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6109  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110  ac_status=$?
6111  grep -v '^ *+' conftest.er1 >conftest.err
6112  rm -f conftest.er1
6113  cat conftest.err >&5
6114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115  (exit $ac_status); } >/dev/null; then
6116  if test -s conftest.err; then
6117    ac_cpp_err=$ac_cxx_preproc_warn_flag
6118    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6119  else
6120    ac_cpp_err=
6121  fi
6122else
6123  ac_cpp_err=yes
6124fi
6125if test -z "$ac_cpp_err"; then
6126  :
6127else
6128  echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131  # Broken: fails on valid input.
6132continue
6133fi
6134rm -f conftest.err conftest.$ac_ext
6135
6136  # OK, works on sane cases.  Now check whether non-existent headers
6137  # can be detected and how.
6138  cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h.  */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h.  */
6144#include <ac_nonexistent.h>
6145_ACEOF
6146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6147  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6148  ac_status=$?
6149  grep -v '^ *+' conftest.er1 >conftest.err
6150  rm -f conftest.er1
6151  cat conftest.err >&5
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); } >/dev/null; then
6154  if test -s conftest.err; then
6155    ac_cpp_err=$ac_cxx_preproc_warn_flag
6156    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6157  else
6158    ac_cpp_err=
6159  fi
6160else
6161  ac_cpp_err=yes
6162fi
6163if test -z "$ac_cpp_err"; then
6164  # Broken: success on invalid input.
6165continue
6166else
6167  echo "$as_me: failed program was:" >&5
6168sed 's/^/| /' conftest.$ac_ext >&5
6169
6170  # Passes both tests.
6171ac_preproc_ok=:
6172break
6173fi
6174rm -f conftest.err conftest.$ac_ext
6175
6176done
6177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6178rm -f conftest.err conftest.$ac_ext
6179if $ac_preproc_ok; then
6180  break
6181fi
6182
6183    done
6184    ac_cv_prog_CXXCPP=$CXXCPP
6185
6186fi
6187  CXXCPP=$ac_cv_prog_CXXCPP
6188else
6189  ac_cv_prog_CXXCPP=$CXXCPP
6190fi
6191echo "$as_me:$LINENO: result: $CXXCPP" >&5
6192echo "${ECHO_T}$CXXCPP" >&6
6193ac_preproc_ok=false
6194for ac_cxx_preproc_warn_flag in '' yes
6195do
6196  # Use a header file that comes with gcc, so configuring glibc
6197  # with a fresh cross-compiler works.
6198  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199  # <limits.h> exists even on freestanding compilers.
6200  # On the NeXT, cc -E runs the code through the compiler's parser,
6201  # not just through cpp. "Syntax error" is here to catch this case.
6202  cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h.  */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h.  */
6208#ifdef __STDC__
6209# include <limits.h>
6210#else
6211# include <assert.h>
6212#endif
6213                     Syntax error
6214_ACEOF
6215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6216  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217  ac_status=$?
6218  grep -v '^ *+' conftest.er1 >conftest.err
6219  rm -f conftest.er1
6220  cat conftest.err >&5
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); } >/dev/null; then
6223  if test -s conftest.err; then
6224    ac_cpp_err=$ac_cxx_preproc_warn_flag
6225    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6226  else
6227    ac_cpp_err=
6228  fi
6229else
6230  ac_cpp_err=yes
6231fi
6232if test -z "$ac_cpp_err"; then
6233  :
6234else
6235  echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238  # Broken: fails on valid input.
6239continue
6240fi
6241rm -f conftest.err conftest.$ac_ext
6242
6243  # OK, works on sane cases.  Now check whether non-existent headers
6244  # can be detected and how.
6245  cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h.  */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h.  */
6251#include <ac_nonexistent.h>
6252_ACEOF
6253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6255  ac_status=$?
6256  grep -v '^ *+' conftest.er1 >conftest.err
6257  rm -f conftest.er1
6258  cat conftest.err >&5
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); } >/dev/null; then
6261  if test -s conftest.err; then
6262    ac_cpp_err=$ac_cxx_preproc_warn_flag
6263    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6264  else
6265    ac_cpp_err=
6266  fi
6267else
6268  ac_cpp_err=yes
6269fi
6270if test -z "$ac_cpp_err"; then
6271  # Broken: success on invalid input.
6272continue
6273else
6274  echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277  # Passes both tests.
6278ac_preproc_ok=:
6279break
6280fi
6281rm -f conftest.err conftest.$ac_ext
6282
6283done
6284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6285rm -f conftest.err conftest.$ac_ext
6286if $ac_preproc_ok; then
6287  :
6288else
6289  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6290See \`config.log' for more details." >&5
6291echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6292See \`config.log' for more details." >&2;}
6293   { (exit 1); exit 1; }; }
6294fi
6295
6296ac_ext=cc
6297ac_cpp='$CXXCPP $CPPFLAGS'
6298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6301
6302fi
6303
6304
6305ac_ext=f
6306ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6307ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6309if test -n "$ac_tool_prefix"; then
6310  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6311  do
6312    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6314echo "$as_me:$LINENO: checking for $ac_word" >&5
6315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6316if test "${ac_cv_prog_F77+set}" = set; then
6317  echo $ECHO_N "(cached) $ECHO_C" >&6
6318else
6319  if test -n "$F77"; then
6320  ac_cv_prog_F77="$F77" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325  IFS=$as_save_IFS
6326  test -z "$as_dir" && as_dir=.
6327  for ac_exec_ext in '' $ac_executable_extensions; do
6328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331    break 2
6332  fi
6333done
6334done
6335
6336fi
6337fi
6338F77=$ac_cv_prog_F77
6339if test -n "$F77"; then
6340  echo "$as_me:$LINENO: result: $F77" >&5
6341echo "${ECHO_T}$F77" >&6
6342else
6343  echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345fi
6346
6347    test -n "$F77" && break
6348  done
6349fi
6350if test -z "$F77"; then
6351  ac_ct_F77=$F77
6352  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6353do
6354  # Extract the first word of "$ac_prog", so it can be a program name with args.
6355set dummy $ac_prog; ac_word=$2
6356echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6358if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361  if test -n "$ac_ct_F77"; then
6362  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367  IFS=$as_save_IFS
6368  test -z "$as_dir" && as_dir=.
6369  for ac_exec_ext in '' $ac_executable_extensions; do
6370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371    ac_cv_prog_ac_ct_F77="$ac_prog"
6372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373    break 2
6374  fi
6375done
6376done
6377
6378fi
6379fi
6380ac_ct_F77=$ac_cv_prog_ac_ct_F77
6381if test -n "$ac_ct_F77"; then
6382  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6383echo "${ECHO_T}$ac_ct_F77" >&6
6384else
6385  echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6
6387fi
6388
6389  test -n "$ac_ct_F77" && break
6390done
6391
6392  F77=$ac_ct_F77
6393fi
6394
6395
6396# Provide some information about the compiler.
6397echo "$as_me:6397:" \
6398     "checking for Fortran 77 compiler version" >&5
6399ac_compiler=`set X $ac_compile; echo $2`
6400{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6401  (eval $ac_compiler --version </dev/null >&5) 2>&5
6402  ac_status=$?
6403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404  (exit $ac_status); }
6405{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6406  (eval $ac_compiler -v </dev/null >&5) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }
6410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6411  (eval $ac_compiler -V </dev/null >&5) 2>&5
6412  ac_status=$?
6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414  (exit $ac_status); }
6415rm -f a.out
6416
6417# If we don't use `.F' as extension, the preprocessor is not run on the
6418# input file.  (Note that this only needs to work for GNU compilers.)
6419ac_save_ext=$ac_ext
6420ac_ext=F
6421echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6422echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6423if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6424  echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426  cat >conftest.$ac_ext <<_ACEOF
6427      program main
6428#ifndef __GNUC__
6429       choke me
6430#endif
6431
6432      end
6433_ACEOF
6434rm -f conftest.$ac_objext
6435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436  (eval $ac_compile) 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } &&
6443         { ac_try='test -z "$ac_f77_werror_flag"
6444                         || test ! -s conftest.err'
6445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446  (eval $ac_try) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; } &&
6450         { ac_try='test -s conftest.$ac_objext'
6451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452  (eval $ac_try) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; }; then
6456  ac_compiler_gnu=yes
6457else
6458  echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461ac_compiler_gnu=no
6462fi
6463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6465
6466fi
6467echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6468echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6469ac_ext=$ac_save_ext
6470ac_test_FFLAGS=${FFLAGS+set}
6471ac_save_FFLAGS=$FFLAGS
6472FFLAGS=
6473echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6474echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6475if test "${ac_cv_prog_f77_g+set}" = set; then
6476  echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478  FFLAGS=-g
6479cat >conftest.$ac_ext <<_ACEOF
6480      program main
6481
6482      end
6483_ACEOF
6484rm -f conftest.$ac_objext
6485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486  (eval $ac_compile) 2>conftest.er1
6487  ac_status=$?
6488  grep -v '^ *+' conftest.er1 >conftest.err
6489  rm -f conftest.er1
6490  cat conftest.err >&5
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); } &&
6493         { ac_try='test -z "$ac_f77_werror_flag"
6494                         || test ! -s conftest.err'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; } &&
6500         { ac_try='test -s conftest.$ac_objext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  ac_cv_prog_f77_g=yes
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511ac_cv_prog_f77_g=no
6512fi
6513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6514
6515fi
6516echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6517echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6518if test "$ac_test_FFLAGS" = set; then
6519  FFLAGS=$ac_save_FFLAGS
6520elif test $ac_cv_prog_f77_g = yes; then
6521  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6522    FFLAGS="-g -O2"
6523  else
6524    FFLAGS="-g"
6525  fi
6526else
6527  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6528    FFLAGS="-O2"
6529  else
6530    FFLAGS=
6531  fi
6532fi
6533
6534G77=`test $ac_compiler_gnu = yes && echo yes`
6535ac_ext=c
6536ac_cpp='$CPP $CPPFLAGS'
6537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
6541
6542
6543# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6544
6545# find the maximum length of command line arguments
6546echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6547echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6548if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6549  echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551    i=0
6552  teststring="ABCD"
6553
6554  case $build_os in
6555  msdosdjgpp*)
6556    # On DJGPP, this test can blow up pretty badly due to problems in libc
6557    # (any single argument exceeding 2000 bytes causes a buffer overrun
6558    # during glob expansion).  Even if it were fixed, the result of this
6559    # check would be larger than it should be.
6560    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6561    ;;
6562
6563  gnu*)
6564    # Under GNU Hurd, this test is not required because there is
6565    # no limit to the length of command line arguments.
6566    # Libtool will interpret -1 as no limit whatsoever
6567    lt_cv_sys_max_cmd_len=-1;
6568    ;;
6569
6570  cygwin* | mingw*)
6571    # On Win9x/ME, this test blows up -- it succeeds, but takes
6572    # about 5 minutes as the teststring grows exponentially.
6573    # Worse, since 9x/ME are not pre-emptively multitasking,
6574    # you end up with a "frozen" computer, even though with patience
6575    # the test eventually succeeds (with a max line length of 256k).
6576    # Instead, let's just punt: use the minimum linelength reported by
6577    # all of the supported platforms: 8192 (on NT/2K/XP).
6578    lt_cv_sys_max_cmd_len=8192;
6579    ;;
6580
6581  amigaos*)
6582    # On AmigaOS with pdksh, this test takes hours, literally.
6583    # So we just punt and use a minimum line length of 8192.
6584    lt_cv_sys_max_cmd_len=8192;
6585    ;;
6586
6587  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6588    # This has been around since 386BSD, at least.  Likely further.
6589    if test -x /sbin/sysctl; then
6590      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6591    elif test -x /usr/sbin/sysctl; then
6592      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6593    else
6594      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6595    fi
6596    # And add a safety zone
6597    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6598    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6599    ;;
6600
6601  interix*)
6602    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6603    lt_cv_sys_max_cmd_len=196608
6604    ;;
6605
6606  osf*)
6607    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6608    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6609    # nice to cause kernel panics so lets avoid the loop below.
6610    # First set a reasonable default.
6611    lt_cv_sys_max_cmd_len=16384
6612    #
6613    if test -x /sbin/sysconfig; then
6614      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6615        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6616      esac
6617    fi
6618    ;;
6619  sco3.2v5*)
6620    lt_cv_sys_max_cmd_len=102400
6621    ;;
6622  sysv5* | sco5v6* | sysv4.2uw2*)
6623    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6624    if test -n "$kargmax"; then
6625      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6626    else
6627      lt_cv_sys_max_cmd_len=32768
6628    fi
6629    ;;
6630  *)
6631    # If test is not a shell built-in, we'll probably end up computing a
6632    # maximum length that is only half of the actual maximum length, but
6633    # we can't tell.
6634    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6635    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6636               = "XX$teststring") >/dev/null 2>&1 &&
6637            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6638            lt_cv_sys_max_cmd_len=$new_result &&
6639            test $i != 17 # 1/2 MB should be enough
6640    do
6641      i=`expr $i + 1`
6642      teststring=$teststring$teststring
6643    done
6644    teststring=
6645    # Add a significant safety factor because C++ compilers can tack on massive
6646    # amounts of additional arguments before passing them to the linker.
6647    # It appears as though 1/2 is a usable value.
6648    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6649    ;;
6650  esac
6651
6652fi
6653
6654if test -n $lt_cv_sys_max_cmd_len ; then
6655  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6656echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6657else
6658  echo "$as_me:$LINENO: result: none" >&5
6659echo "${ECHO_T}none" >&6
6660fi
6661
6662
6663
6664
6665# Check for command to grab the raw symbol name followed by C symbol from nm.
6666echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6667echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6668if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671
6672# These are sane defaults that work on at least a few old systems.
6673# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6674
6675# Character class describing NM global symbol codes.
6676symcode='[BCDEGRST]'
6677
6678# Regexp to match symbols that can be accessed directly from C.
6679sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6680
6681# Transform an extracted symbol line into a proper C declaration
6682lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6683
6684# Transform an extracted symbol line into symbol name and symbol address
6685lt_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'"
6686
6687# Define system-specific variables.
6688case $host_os in
6689aix*)
6690  symcode='[BCDT]'
6691  ;;
6692cygwin* | mingw* | pw32*)
6693  symcode='[ABCDGISTW]'
6694  ;;
6695hpux*) # Its linker distinguishes data from code symbols
6696  if test "$host_cpu" = ia64; then
6697    symcode='[ABCDEGRST]'
6698  fi
6699  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6700  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'"
6701  ;;
6702linux*)
6703  if test "$host_cpu" = ia64; then
6704    symcode='[ABCDGIRSTW]'
6705    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6706    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'"
6707  fi
6708  ;;
6709irix* | nonstopux*)
6710  symcode='[BCDEGRST]'
6711  ;;
6712osf*)
6713  symcode='[BCDEGQRST]'
6714  ;;
6715solaris*)
6716  symcode='[BDRT]'
6717  ;;
6718sco3.2v5*)
6719  symcode='[DT]'
6720  ;;
6721sysv4.2uw2*)
6722  symcode='[DT]'
6723  ;;
6724sysv5* | sco5v6* | unixware* | OpenUNIX*)
6725  symcode='[ABDT]'
6726  ;;
6727sysv4)
6728  symcode='[DFNSTU]'
6729  ;;
6730esac
6731
6732# Handle CRLF in mingw tool chain
6733opt_cr=
6734case $build_os in
6735mingw*)
6736  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6737  ;;
6738esac
6739
6740# If we're using GNU nm, then use its standard symbol codes.
6741case `$NM -V 2>&1` in
6742*GNU* | *'with BFD'*)
6743  symcode='[ABCDGIRSTW]' ;;
6744esac
6745
6746# Try without a prefix undercore, then with it.
6747for ac_symprfx in "" "_"; do
6748
6749  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6750  symxfrm="\\1 $ac_symprfx\\2 \\2"
6751
6752  # Write the raw and C identifiers.
6753  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6754
6755  # Check to see that the pipe works correctly.
6756  pipe_works=no
6757
6758  rm -f conftest*
6759  cat > conftest.$ac_ext <<EOF
6760#ifdef __cplusplus
6761extern "C" {
6762#endif
6763char nm_test_var;
6764void nm_test_func(){}
6765#ifdef __cplusplus
6766}
6767#endif
6768int main(){nm_test_var='a';nm_test_func();return(0);}
6769EOF
6770
6771  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6772  (eval $ac_compile) 2>&5
6773  ac_status=$?
6774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775  (exit $ac_status); }; then
6776    # Now try to grab the symbols.
6777    nlist=conftest.nm
6778    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6779  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); } && test -s "$nlist"; then
6783      # Try sorting and uniquifying the output.
6784      if sort "$nlist" | uniq > "$nlist"T; then
6785        mv -f "$nlist"T "$nlist"
6786      else
6787        rm -f "$nlist"T
6788      fi
6789
6790      # Make sure that we snagged all the symbols we need.
6791      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6792        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6793          cat <<EOF > conftest.$ac_ext
6794#ifdef __cplusplus
6795extern "C" {
6796#endif
6797
6798EOF
6799          # Now generate the symbol file.
6800          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6801
6802          cat <<EOF >> conftest.$ac_ext
6803#if defined (__STDC__) && __STDC__
6804# define lt_ptr_t void *
6805#else
6806# define lt_ptr_t char *
6807# define const
6808#endif
6809
6810/* The mapping between symbol names and symbols. */
6811const struct {
6812  const char *name;
6813  lt_ptr_t address;
6814}
6815lt_preloaded_symbols[] =
6816{
6817EOF
6818          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6819          cat <<\EOF >> conftest.$ac_ext
6820  {0, (lt_ptr_t) 0}
6821};
6822
6823#ifdef __cplusplus
6824}
6825#endif
6826EOF
6827          # Now try linking the two files.
6828          mv conftest.$ac_objext conftstm.$ac_objext
6829          lt_save_LIBS="$LIBS"
6830          lt_save_CFLAGS="$CFLAGS"
6831          LIBS="conftstm.$ac_objext"
6832          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6833          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834  (eval $ac_link) 2>&5
6835  ac_status=$?
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6838            pipe_works=yes
6839          fi
6840          LIBS="$lt_save_LIBS"
6841          CFLAGS="$lt_save_CFLAGS"
6842        else
6843          echo "cannot find nm_test_func in $nlist" >&5
6844        fi
6845      else
6846        echo "cannot find nm_test_var in $nlist" >&5
6847      fi
6848    else
6849      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6850    fi
6851  else
6852    echo "$progname: failed program was:" >&5
6853    cat conftest.$ac_ext >&5
6854  fi
6855  rm -f conftest* conftst*
6856
6857  # Do not use the global_symbol_pipe unless it works.
6858  if test "$pipe_works" = yes; then
6859    break
6860  else
6861    lt_cv_sys_global_symbol_pipe=
6862  fi
6863done
6864
6865fi
6866
6867if test -z "$lt_cv_sys_global_symbol_pipe"; then
6868  lt_cv_sys_global_symbol_to_cdecl=
6869fi
6870if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6871  echo "$as_me:$LINENO: result: failed" >&5
6872echo "${ECHO_T}failed" >&6
6873else
6874  echo "$as_me:$LINENO: result: ok" >&5
6875echo "${ECHO_T}ok" >&6
6876fi
6877
6878echo "$as_me:$LINENO: checking for objdir" >&5
6879echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6880if test "${lt_cv_objdir+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883  rm -f .libs 2>/dev/null
6884mkdir .libs 2>/dev/null
6885if test -d .libs; then
6886  lt_cv_objdir=.libs
6887else
6888  # MS-DOS does not allow filenames that begin with a dot.
6889  lt_cv_objdir=_libs
6890fi
6891rmdir .libs 2>/dev/null
6892fi
6893echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6894echo "${ECHO_T}$lt_cv_objdir" >&6
6895objdir=$lt_cv_objdir
6896
6897
6898
6899
6900
6901case $host_os in
6902aix3*)
6903  # AIX sometimes has problems with the GCC collect2 program.  For some
6904  # reason, if we set the COLLECT_NAMES environment variable, the problems
6905  # vanish in a puff of smoke.
6906  if test "X${COLLECT_NAMES+set}" != Xset; then
6907    COLLECT_NAMES=
6908    export COLLECT_NAMES
6909  fi
6910  ;;
6911esac
6912
6913# Sed substitution that helps us do robust quoting.  It backslashifies
6914# metacharacters that are still active within double-quoted strings.
6915Xsed='sed -e 1s/^X//'
6916sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6917
6918# Same as above, but do not quote variable references.
6919double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6920
6921# Sed substitution to delay expansion of an escaped shell variable in a
6922# double_quote_subst'ed string.
6923delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6924
6925# Sed substitution to avoid accidental globbing in evaled expressions
6926no_glob_subst='s/\*/\\\*/g'
6927
6928# Constants:
6929rm="rm -f"
6930
6931# Global variables:
6932default_ofile=libtool
6933can_build_shared=yes
6934
6935# All known linkers require a `.a' archive for static linking (except MSVC,
6936# which needs '.lib').
6937libext=a
6938ltmain="$ac_aux_dir/ltmain.sh"
6939ofile="$default_ofile"
6940with_gnu_ld="$lt_cv_prog_gnu_ld"
6941
6942if test -n "$ac_tool_prefix"; then
6943  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6944set dummy ${ac_tool_prefix}ar; ac_word=$2
6945echo "$as_me:$LINENO: checking for $ac_word" >&5
6946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6947if test "${ac_cv_prog_AR+set}" = set; then
6948  echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950  if test -n "$AR"; then
6951  ac_cv_prog_AR="$AR" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956  IFS=$as_save_IFS
6957  test -z "$as_dir" && as_dir=.
6958  for ac_exec_ext in '' $ac_executable_extensions; do
6959  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960    ac_cv_prog_AR="${ac_tool_prefix}ar"
6961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962    break 2
6963  fi
6964done
6965done
6966
6967fi
6968fi
6969AR=$ac_cv_prog_AR
6970if test -n "$AR"; then
6971  echo "$as_me:$LINENO: result: $AR" >&5
6972echo "${ECHO_T}$AR" >&6
6973else
6974  echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976fi
6977
6978fi
6979if test -z "$ac_cv_prog_AR"; then
6980  ac_ct_AR=$AR
6981  # Extract the first word of "ar", so it can be a program name with args.
6982set dummy ar; ac_word=$2
6983echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6985if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6986  echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988  if test -n "$ac_ct_AR"; then
6989  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6990else
6991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994  IFS=$as_save_IFS
6995  test -z "$as_dir" && as_dir=.
6996  for ac_exec_ext in '' $ac_executable_extensions; do
6997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998    ac_cv_prog_ac_ct_AR="ar"
6999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000    break 2
7001  fi
7002done
7003done
7004
7005  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7006fi
7007fi
7008ac_ct_AR=$ac_cv_prog_ac_ct_AR
7009if test -n "$ac_ct_AR"; then
7010  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7011echo "${ECHO_T}$ac_ct_AR" >&6
7012else
7013  echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6
7015fi
7016
7017  AR=$ac_ct_AR
7018else
7019  AR="$ac_cv_prog_AR"
7020fi
7021
7022if test -n "$ac_tool_prefix"; then
7023  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7025echo "$as_me:$LINENO: checking for $ac_word" >&5
7026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7027if test "${ac_cv_prog_RANLIB+set}" = set; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029else
7030  if test -n "$RANLIB"; then
7031  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036  IFS=$as_save_IFS
7037  test -z "$as_dir" && as_dir=.
7038  for ac_exec_ext in '' $ac_executable_extensions; do
7039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7040    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042    break 2
7043  fi
7044done
7045done
7046
7047fi
7048fi
7049RANLIB=$ac_cv_prog_RANLIB
7050if test -n "$RANLIB"; then
7051  echo "$as_me:$LINENO: result: $RANLIB" >&5
7052echo "${ECHO_T}$RANLIB" >&6
7053else
7054  echo "$as_me:$LINENO: result: no" >&5
7055echo "${ECHO_T}no" >&6
7056fi
7057
7058fi
7059if test -z "$ac_cv_prog_RANLIB"; then
7060  ac_ct_RANLIB=$RANLIB
7061  # Extract the first word of "ranlib", so it can be a program name with args.
7062set dummy ranlib; ac_word=$2
7063echo "$as_me:$LINENO: checking for $ac_word" >&5
7064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7065if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068  if test -n "$ac_ct_RANLIB"; then
7069  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7070else
7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072for as_dir in $PATH
7073do
7074  IFS=$as_save_IFS
7075  test -z "$as_dir" && as_dir=.
7076  for ac_exec_ext in '' $ac_executable_extensions; do
7077  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078    ac_cv_prog_ac_ct_RANLIB="ranlib"
7079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080    break 2
7081  fi
7082done
7083done
7084
7085  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7086fi
7087fi
7088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7089if test -n "$ac_ct_RANLIB"; then
7090  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7091echo "${ECHO_T}$ac_ct_RANLIB" >&6
7092else
7093  echo "$as_me:$LINENO: result: no" >&5
7094echo "${ECHO_T}no" >&6
7095fi
7096
7097  RANLIB=$ac_ct_RANLIB
7098else
7099  RANLIB="$ac_cv_prog_RANLIB"
7100fi
7101
7102if test -n "$ac_tool_prefix"; then
7103  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7104set dummy ${ac_tool_prefix}strip; ac_word=$2
7105echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7107if test "${ac_cv_prog_STRIP+set}" = set; then
7108  echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110  if test -n "$STRIP"; then
7111  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7112else
7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116  IFS=$as_save_IFS
7117  test -z "$as_dir" && as_dir=.
7118  for ac_exec_ext in '' $ac_executable_extensions; do
7119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7120    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122    break 2
7123  fi
7124done
7125done
7126
7127fi
7128fi
7129STRIP=$ac_cv_prog_STRIP
7130if test -n "$STRIP"; then
7131  echo "$as_me:$LINENO: result: $STRIP" >&5
7132echo "${ECHO_T}$STRIP" >&6
7133else
7134  echo "$as_me:$LINENO: result: no" >&5
7135echo "${ECHO_T}no" >&6
7136fi
7137
7138fi
7139if test -z "$ac_cv_prog_STRIP"; then
7140  ac_ct_STRIP=$STRIP
7141  # Extract the first word of "strip", so it can be a program name with args.
7142set dummy strip; ac_word=$2
7143echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7146  echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148  if test -n "$ac_ct_STRIP"; then
7149  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154  IFS=$as_save_IFS
7155  test -z "$as_dir" && as_dir=.
7156  for ac_exec_ext in '' $ac_executable_extensions; do
7157  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158    ac_cv_prog_ac_ct_STRIP="strip"
7159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160    break 2
7161  fi
7162done
7163done
7164
7165  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7166fi
7167fi
7168ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7169if test -n "$ac_ct_STRIP"; then
7170  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7171echo "${ECHO_T}$ac_ct_STRIP" >&6
7172else
7173  echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6
7175fi
7176
7177  STRIP=$ac_ct_STRIP
7178else
7179  STRIP="$ac_cv_prog_STRIP"
7180fi
7181
7182
7183old_CC="$CC"
7184old_CFLAGS="$CFLAGS"
7185
7186# Set sane defaults for various variables
7187test -z "$AR" && AR=ar
7188test -z "$AR_FLAGS" && AR_FLAGS=cru
7189test -z "$AS" && AS=as
7190test -z "$CC" && CC=cc
7191test -z "$LTCC" && LTCC=$CC
7192test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7193test -z "$DLLTOOL" && DLLTOOL=dlltool
7194test -z "$LD" && LD=ld
7195test -z "$LN_S" && LN_S="ln -s"
7196test -z "$MAGIC_CMD" && MAGIC_CMD=file
7197test -z "$NM" && NM=nm
7198test -z "$SED" && SED=sed
7199test -z "$OBJDUMP" && OBJDUMP=objdump
7200test -z "$RANLIB" && RANLIB=:
7201test -z "$STRIP" && STRIP=:
7202test -z "$ac_objext" && ac_objext=o
7203
7204# Determine commands to create old-style static archives.
7205old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7206old_postinstall_cmds='chmod 644 $oldlib'
7207old_postuninstall_cmds=
7208
7209if test -n "$RANLIB"; then
7210  case $host_os in
7211  openbsd*)
7212    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7213    ;;
7214  *)
7215    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7216    ;;
7217  esac
7218  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7219fi
7220
7221for cc_temp in $compiler""; do
7222  case $cc_temp in
7223    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7224    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7225    \-*) ;;
7226    *) break;;
7227  esac
7228done
7229cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7230
7231
7232# Only perform the check for file, if the check method requires it
7233case $deplibs_check_method in
7234file_magic*)
7235  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7236    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7237echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7238if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7239  echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241  case $MAGIC_CMD in
7242[\\/*] |  ?:[\\/]*)
7243  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7244  ;;
7245*)
7246  lt_save_MAGIC_CMD="$MAGIC_CMD"
7247  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7248  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7249  for ac_dir in $ac_dummy; do
7250    IFS="$lt_save_ifs"
7251    test -z "$ac_dir" && ac_dir=.
7252    if test -f $ac_dir/${ac_tool_prefix}file; then
7253      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7254      if test -n "$file_magic_test_file"; then
7255        case $deplibs_check_method in
7256        "file_magic "*)
7257          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7258          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7259          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7260            $EGREP "$file_magic_regex" > /dev/null; then
7261            :
7262          else
7263            cat <<EOF 1>&2
7264
7265*** Warning: the command libtool uses to detect shared libraries,
7266*** $file_magic_cmd, produces output that libtool cannot recognize.
7267*** The result is that libtool may fail to recognize shared libraries
7268*** as such.  This will affect the creation of libtool libraries that
7269*** depend on shared libraries, but programs linked with such libtool
7270*** libraries will work regardless of this problem.  Nevertheless, you
7271*** may want to report the problem to your system manager and/or to
7272*** bug-libtool@gnu.org
7273
7274EOF
7275          fi ;;
7276        esac
7277      fi
7278      break
7279    fi
7280  done
7281  IFS="$lt_save_ifs"
7282  MAGIC_CMD="$lt_save_MAGIC_CMD"
7283  ;;
7284esac
7285fi
7286
7287MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288if test -n "$MAGIC_CMD"; then
7289  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7290echo "${ECHO_T}$MAGIC_CMD" >&6
7291else
7292  echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6
7294fi
7295
7296if test -z "$lt_cv_path_MAGIC_CMD"; then
7297  if test -n "$ac_tool_prefix"; then
7298    echo "$as_me:$LINENO: checking for file" >&5
7299echo $ECHO_N "checking for file... $ECHO_C" >&6
7300if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7301  echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303  case $MAGIC_CMD in
7304[\\/*] |  ?:[\\/]*)
7305  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7306  ;;
7307*)
7308  lt_save_MAGIC_CMD="$MAGIC_CMD"
7309  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7310  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7311  for ac_dir in $ac_dummy; do
7312    IFS="$lt_save_ifs"
7313    test -z "$ac_dir" && ac_dir=.
7314    if test -f $ac_dir/file; then
7315      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7316      if test -n "$file_magic_test_file"; then
7317        case $deplibs_check_method in
7318        "file_magic "*)
7319          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7320          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7321          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7322            $EGREP "$file_magic_regex" > /dev/null; then
7323            :
7324          else
7325            cat <<EOF 1>&2
7326
7327*** Warning: the command libtool uses to detect shared libraries,
7328*** $file_magic_cmd, produces output that libtool cannot recognize.
7329*** The result is that libtool may fail to recognize shared libraries
7330*** as such.  This will affect the creation of libtool libraries that
7331*** depend on shared libraries, but programs linked with such libtool
7332*** libraries will work regardless of this problem.  Nevertheless, you
7333*** may want to report the problem to your system manager and/or to
7334*** bug-libtool@gnu.org
7335
7336EOF
7337          fi ;;
7338        esac
7339      fi
7340      break
7341    fi
7342  done
7343  IFS="$lt_save_ifs"
7344  MAGIC_CMD="$lt_save_MAGIC_CMD"
7345  ;;
7346esac
7347fi
7348
7349MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7350if test -n "$MAGIC_CMD"; then
7351  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7352echo "${ECHO_T}$MAGIC_CMD" >&6
7353else
7354  echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
7356fi
7357
7358  else
7359    MAGIC_CMD=:
7360  fi
7361fi
7362
7363  fi
7364  ;;
7365esac
7366
7367enable_dlopen=no
7368enable_win32_dll=no
7369
7370# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7371if test "${enable_libtool_lock+set}" = set; then
7372  enableval="$enable_libtool_lock"
7373
7374fi;
7375test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7376
7377
7378# Check whether --with-pic or --without-pic was given.
7379if test "${with_pic+set}" = set; then
7380  withval="$with_pic"
7381  pic_mode="$withval"
7382else
7383  pic_mode=default
7384fi;
7385test -z "$pic_mode" && pic_mode=default
7386
7387# Use C for the default configuration in the libtool script
7388tagname=
7389lt_save_CC="$CC"
7390ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396
7397# Source file extension for C test sources.
7398ac_ext=c
7399
7400# Object file extension for compiled C test sources.
7401objext=o
7402objext=$objext
7403
7404# Code to be used in simple compile tests
7405lt_simple_compile_test_code="int some_variable = 0;\n"
7406
7407# Code to be used in simple link tests
7408lt_simple_link_test_code='int main(){return(0);}\n'
7409
7410
7411# If no C compiler was specified, use CC.
7412LTCC=${LTCC-"$CC"}
7413
7414# If no C compiler flags were specified, use CFLAGS.
7415LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7416
7417# Allow CC to be a program name with arguments.
7418compiler=$CC
7419
7420
7421# save warnings/boilerplate of simple test code
7422ac_outfile=conftest.$ac_objext
7423printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7424eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7425_lt_compiler_boilerplate=`cat conftest.err`
7426$rm conftest*
7427
7428ac_outfile=conftest.$ac_objext
7429printf "$lt_simple_link_test_code" >conftest.$ac_ext
7430eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7431_lt_linker_boilerplate=`cat conftest.err`
7432$rm conftest*
7433
7434
7435## CAVEAT EMPTOR:
7436## There is no encapsulation within the following macros, do not change
7437## the running order or otherwise move them around unless you know exactly
7438## what you are doing...
7439
7440lt_prog_compiler_no_builtin_flag=
7441
7442if test "$GCC" = yes; then
7443  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7444
7445
7446echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7447echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7448if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  lt_cv_prog_compiler_rtti_exceptions=no
7452  ac_outfile=conftest.$ac_objext
7453   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7454   lt_compiler_flag="-fno-rtti -fno-exceptions"
7455   # Insert the option either (1) after the last *FLAGS variable, or
7456   # (2) before a word containing "conftest.", or (3) at the end.
7457   # Note that $ac_compile itself does not contain backslashes and begins
7458   # with a dollar sign (not a hyphen), so the echo should work correctly.
7459   # The option is referenced via a variable to avoid confusing sed.
7460   lt_compile=`echo "$ac_compile" | $SED \
7461   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7462   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7463   -e 's:$: $lt_compiler_flag:'`
7464   (eval echo "\"\$as_me:7464: $lt_compile\"" >&5)
7465   (eval "$lt_compile" 2>conftest.err)
7466   ac_status=$?
7467   cat conftest.err >&5
7468   echo "$as_me:7468: \$? = $ac_status" >&5
7469   if (exit $ac_status) && test -s "$ac_outfile"; then
7470     # The compiler can only warn and ignore the option if not recognized
7471     # So say no if there are warnings other than the usual output.
7472     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7473     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7475       lt_cv_prog_compiler_rtti_exceptions=yes
7476     fi
7477   fi
7478   $rm conftest*
7479
7480fi
7481echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7482echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7483
7484if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7485    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7486else
7487    :
7488fi
7489
7490fi
7491
7492lt_prog_compiler_wl=
7493lt_prog_compiler_pic=
7494lt_prog_compiler_static=
7495
7496echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7497echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7498
7499  if test "$GCC" = yes; then
7500    lt_prog_compiler_wl='-Wl,'
7501    lt_prog_compiler_static='-static'
7502
7503    case $host_os in
7504      aix*)
7505      # All AIX code is PIC.
7506      if test "$host_cpu" = ia64; then
7507        # AIX 5 now supports IA64 processor
7508        lt_prog_compiler_static='-Bstatic'
7509      fi
7510      ;;
7511
7512    amigaos*)
7513      # FIXME: we need at least 68020 code to build shared libraries, but
7514      # adding the `-m68020' flag to GCC prevents building anything better,
7515      # like `-m68040'.
7516      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7517      ;;
7518
7519    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7520      # PIC is the default for these OSes.
7521      ;;
7522
7523    mingw* | pw32* | os2*)
7524      # This hack is so that the source file can tell whether it is being
7525      # built for inclusion in a dll (and should export symbols for example).
7526      lt_prog_compiler_pic='-DDLL_EXPORT'
7527      ;;
7528
7529    darwin* | rhapsody*)
7530      # PIC is the default on this platform
7531      # Common symbols not allowed in MH_DYLIB files
7532      lt_prog_compiler_pic='-fno-common'
7533      ;;
7534
7535    interix3*)
7536      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7537      # Instead, we relocate shared libraries at runtime.
7538      ;;
7539
7540    msdosdjgpp*)
7541      # Just because we use GCC doesn't mean we suddenly get shared libraries
7542      # on systems that don't support them.
7543      lt_prog_compiler_can_build_shared=no
7544      enable_shared=no
7545      ;;
7546
7547    sysv4*MP*)
7548      if test -d /usr/nec; then
7549        lt_prog_compiler_pic=-Kconform_pic
7550      fi
7551      ;;
7552
7553    hpux*)
7554      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7555      # not for PA HP-UX.
7556      case $host_cpu in
7557      hppa*64*|ia64*)
7558        # +Z the default
7559        ;;
7560      *)
7561        lt_prog_compiler_pic='-fPIC'
7562        ;;
7563      esac
7564      ;;
7565
7566    *)
7567      lt_prog_compiler_pic='-fPIC'
7568      ;;
7569    esac
7570  else
7571    # PORTME Check for flag to pass linker flags through the system compiler.
7572    case $host_os in
7573    aix*)
7574      lt_prog_compiler_wl='-Wl,'
7575      if test "$host_cpu" = ia64; then
7576        # AIX 5 now supports IA64 processor
7577        lt_prog_compiler_static='-Bstatic'
7578      else
7579        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7580      fi
7581      ;;
7582      darwin*)
7583        # PIC is the default on this platform
7584        # Common symbols not allowed in MH_DYLIB files
7585       case $cc_basename in
7586         xlc*)
7587         lt_prog_compiler_pic='-qnocommon'
7588         lt_prog_compiler_wl='-Wl,'
7589         ;;
7590       esac
7591       ;;
7592
7593    mingw* | pw32* | os2*)
7594      # This hack is so that the source file can tell whether it is being
7595      # built for inclusion in a dll (and should export symbols for example).
7596      lt_prog_compiler_pic='-DDLL_EXPORT'
7597      ;;
7598
7599    hpux9* | hpux10* | hpux11*)
7600      lt_prog_compiler_wl='-Wl,'
7601      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7602      # not for PA HP-UX.
7603      case $host_cpu in
7604      hppa*64*|ia64*)
7605        # +Z the default
7606        ;;
7607      *)
7608        lt_prog_compiler_pic='+Z'
7609        ;;
7610      esac
7611      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7612      lt_prog_compiler_static='${wl}-a ${wl}archive'
7613      ;;
7614
7615    irix5* | irix6* | nonstopux*)
7616      lt_prog_compiler_wl='-Wl,'
7617      # PIC (with -KPIC) is the default.
7618      lt_prog_compiler_static='-non_shared'
7619      ;;
7620
7621    newsos6)
7622      lt_prog_compiler_pic='-KPIC'
7623      lt_prog_compiler_static='-Bstatic'
7624      ;;
7625
7626    linux*)
7627      case $cc_basename in
7628      icc* | ecc*)
7629        lt_prog_compiler_wl='-Wl,'
7630        lt_prog_compiler_pic='-KPIC'
7631        lt_prog_compiler_static='-static'
7632        ;;
7633      pgcc* | pgf77* | pgf90* | pgf95*)
7634        # Portland Group compilers (*not* the Pentium gcc compiler,
7635        # which looks to be a dead project)
7636        lt_prog_compiler_wl='-Wl,'
7637        lt_prog_compiler_pic='-fpic'
7638        lt_prog_compiler_static='-Bstatic'
7639        ;;
7640      ccc*)
7641        lt_prog_compiler_wl='-Wl,'
7642        # All Alpha code is PIC.
7643        lt_prog_compiler_static='-non_shared'
7644        ;;
7645      esac
7646      ;;
7647
7648    osf3* | osf4* | osf5*)
7649      lt_prog_compiler_wl='-Wl,'
7650      # All OSF/1 code is PIC.
7651      lt_prog_compiler_static='-non_shared'
7652      ;;
7653
7654    solaris*)
7655      lt_prog_compiler_pic='-KPIC'
7656      lt_prog_compiler_static='-Bstatic'
7657      case $cc_basename in
7658      f77* | f90* | f95*)
7659        lt_prog_compiler_wl='-Qoption ld ';;
7660      *)
7661        lt_prog_compiler_wl='-Wl,';;
7662      esac
7663      ;;
7664
7665    sunos4*)
7666      lt_prog_compiler_wl='-Qoption ld '
7667      lt_prog_compiler_pic='-PIC'
7668      lt_prog_compiler_static='-Bstatic'
7669      ;;
7670
7671    sysv4 | sysv4.2uw2* | sysv4.3*)
7672      lt_prog_compiler_wl='-Wl,'
7673      lt_prog_compiler_pic='-KPIC'
7674      lt_prog_compiler_static='-Bstatic'
7675      ;;
7676
7677    sysv4*MP*)
7678      if test -d /usr/nec ;then
7679        lt_prog_compiler_pic='-Kconform_pic'
7680        lt_prog_compiler_static='-Bstatic'
7681      fi
7682      ;;
7683
7684    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7685      lt_prog_compiler_wl='-Wl,'
7686      lt_prog_compiler_pic='-KPIC'
7687      lt_prog_compiler_static='-Bstatic'
7688      ;;
7689
7690    unicos*)
7691      lt_prog_compiler_wl='-Wl,'
7692      lt_prog_compiler_can_build_shared=no
7693      ;;
7694
7695    uts4*)
7696      lt_prog_compiler_pic='-pic'
7697      lt_prog_compiler_static='-Bstatic'
7698      ;;
7699
7700    *)
7701      lt_prog_compiler_can_build_shared=no
7702      ;;
7703    esac
7704  fi
7705
7706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7707echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7708
7709#
7710# Check to make sure the PIC flag actually works.
7711#
7712if test -n "$lt_prog_compiler_pic"; then
7713
7714echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7715echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7716if test "${lt_prog_compiler_pic_works+set}" = set; then
7717  echo $ECHO_N "(cached) $ECHO_C" >&6
7718else
7719  lt_prog_compiler_pic_works=no
7720  ac_outfile=conftest.$ac_objext
7721   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7722   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7723   # Insert the option either (1) after the last *FLAGS variable, or
7724   # (2) before a word containing "conftest.", or (3) at the end.
7725   # Note that $ac_compile itself does not contain backslashes and begins
7726   # with a dollar sign (not a hyphen), so the echo should work correctly.
7727   # The option is referenced via a variable to avoid confusing sed.
7728   lt_compile=`echo "$ac_compile" | $SED \
7729   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7730   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7731   -e 's:$: $lt_compiler_flag:'`
7732   (eval echo "\"\$as_me:7732: $lt_compile\"" >&5)
7733   (eval "$lt_compile" 2>conftest.err)
7734   ac_status=$?
7735   cat conftest.err >&5
7736   echo "$as_me:7736: \$? = $ac_status" >&5
7737   if (exit $ac_status) && test -s "$ac_outfile"; then
7738     # The compiler can only warn and ignore the option if not recognized
7739     # So say no if there are warnings other than the usual output.
7740     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7741     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7742     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7743       lt_prog_compiler_pic_works=yes
7744     fi
7745   fi
7746   $rm conftest*
7747
7748fi
7749echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7750echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7751
7752if test x"$lt_prog_compiler_pic_works" = xyes; then
7753    case $lt_prog_compiler_pic in
7754     "" | " "*) ;;
7755     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7756     esac
7757else
7758    lt_prog_compiler_pic=
7759     lt_prog_compiler_can_build_shared=no
7760fi
7761
7762fi
7763case $host_os in
7764  # For platforms which do not support PIC, -DPIC is meaningless:
7765  *djgpp*)
7766    lt_prog_compiler_pic=
7767    ;;
7768  *)
7769    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7770    ;;
7771esac
7772
7773#
7774# Check to make sure the static flag actually works.
7775#
7776wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7777echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7778echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7779if test "${lt_prog_compiler_static_works+set}" = set; then
7780  echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782  lt_prog_compiler_static_works=no
7783   save_LDFLAGS="$LDFLAGS"
7784   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7785   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7786   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7787     # The linker can only warn and ignore the option if not recognized
7788     # So say no if there are warnings
7789     if test -s conftest.err; then
7790       # Append any errors to the config.log.
7791       cat conftest.err 1>&5
7792       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7793       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794       if diff conftest.exp conftest.er2 >/dev/null; then
7795         lt_prog_compiler_static_works=yes
7796       fi
7797     else
7798       lt_prog_compiler_static_works=yes
7799     fi
7800   fi
7801   $rm conftest*
7802   LDFLAGS="$save_LDFLAGS"
7803
7804fi
7805echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7806echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7807
7808if test x"$lt_prog_compiler_static_works" = xyes; then
7809    :
7810else
7811    lt_prog_compiler_static=
7812fi
7813
7814
7815echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7816echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7817if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  lt_cv_prog_compiler_c_o=no
7821   $rm -r conftest 2>/dev/null
7822   mkdir conftest
7823   cd conftest
7824   mkdir out
7825   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7826
7827   lt_compiler_flag="-o out/conftest2.$ac_objext"
7828   # Insert the option either (1) after the last *FLAGS variable, or
7829   # (2) before a word containing "conftest.", or (3) at the end.
7830   # Note that $ac_compile itself does not contain backslashes and begins
7831   # with a dollar sign (not a hyphen), so the echo should work correctly.
7832   lt_compile=`echo "$ac_compile" | $SED \
7833   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7834   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7835   -e 's:$: $lt_compiler_flag:'`
7836   (eval echo "\"\$as_me:7836: $lt_compile\"" >&5)
7837   (eval "$lt_compile" 2>out/conftest.err)
7838   ac_status=$?
7839   cat out/conftest.err >&5
7840   echo "$as_me:7840: \$? = $ac_status" >&5
7841   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7842   then
7843     # The compiler can only warn and ignore the option if not recognized
7844     # So say no if there are warnings
7845     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7846     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7847     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7848       lt_cv_prog_compiler_c_o=yes
7849     fi
7850   fi
7851   chmod u+w . 2>&5
7852   $rm conftest*
7853   # SGI C++ compiler will create directory out/ii_files/ for
7854   # template instantiation
7855   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7856   $rm out/* && rmdir out
7857   cd ..
7858   rmdir conftest
7859   $rm conftest*
7860
7861fi
7862echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7863echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7864
7865
7866hard_links="nottested"
7867if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7868  # do not overwrite the value of need_locks provided by the user
7869  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7870echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7871  hard_links=yes
7872  $rm conftest*
7873  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7874  touch conftest.a
7875  ln conftest.a conftest.b 2>&5 || hard_links=no
7876  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7877  echo "$as_me:$LINENO: result: $hard_links" >&5
7878echo "${ECHO_T}$hard_links" >&6
7879  if test "$hard_links" = no; then
7880    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7881echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7882    need_locks=warn
7883  fi
7884else
7885  need_locks=no
7886fi
7887
7888echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7890
7891  runpath_var=
7892  allow_undefined_flag=
7893  enable_shared_with_static_runtimes=no
7894  archive_cmds=
7895  archive_expsym_cmds=
7896  old_archive_From_new_cmds=
7897  old_archive_from_expsyms_cmds=
7898  export_dynamic_flag_spec=
7899  whole_archive_flag_spec=
7900  thread_safe_flag_spec=
7901  hardcode_libdir_flag_spec=
7902  hardcode_libdir_flag_spec_ld=
7903  hardcode_libdir_separator=
7904  hardcode_direct=no
7905  hardcode_minus_L=no
7906  hardcode_shlibpath_var=unsupported
7907  link_all_deplibs=unknown
7908  hardcode_automatic=no
7909  module_cmds=
7910  module_expsym_cmds=
7911  always_export_symbols=no
7912  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7913  # include_expsyms should be a list of space-separated symbols to be *always*
7914  # included in the symbol list
7915  include_expsyms=
7916  # exclude_expsyms can be an extended regexp of symbols to exclude
7917  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7918  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7919  # as well as any symbol that contains `d'.
7920  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7921  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7922  # platforms (ab)use it in PIC code, but their linkers get confused if
7923  # the symbol is explicitly referenced.  Since portable code cannot
7924  # rely on this symbol name, it's probably fine to never include it in
7925  # preloaded symbol tables.
7926  extract_expsyms_cmds=
7927  # Just being paranoid about ensuring that cc_basename is set.
7928  for cc_temp in $compiler""; do
7929  case $cc_temp in
7930    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7931    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7932    \-*) ;;
7933    *) break;;
7934  esac
7935done
7936cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7937
7938  case $host_os in
7939  cygwin* | mingw* | pw32*)
7940    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7941    # When not using gcc, we currently assume that we are using
7942    # Microsoft Visual C++.
7943    if test "$GCC" != yes; then
7944      with_gnu_ld=no
7945    fi
7946    ;;
7947  interix*)
7948    # we just hope/assume this is gcc and not c89 (= MSVC++)
7949    with_gnu_ld=yes
7950    ;;
7951  openbsd*)
7952    with_gnu_ld=no
7953    ;;
7954  esac
7955
7956  ld_shlibs=yes
7957  if test "$with_gnu_ld" = yes; then
7958    # If archive_cmds runs LD, not CC, wlarc should be empty
7959    wlarc='${wl}'
7960
7961    # Set some defaults for GNU ld with shared library support. These
7962    # are reset later if shared libraries are not supported. Putting them
7963    # here allows them to be overridden if necessary.
7964    runpath_var=LD_RUN_PATH
7965    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7966    export_dynamic_flag_spec='${wl}--export-dynamic'
7967    # ancient GNU ld didn't support --whole-archive et. al.
7968    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7969        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7970      else
7971        whole_archive_flag_spec=
7972    fi
7973    supports_anon_versioning=no
7974    case `$LD -v 2>/dev/null` in
7975      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7976      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7977      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7978      *\ 2.11.*) ;; # other 2.11 versions
7979      *) supports_anon_versioning=yes ;;
7980    esac
7981
7982    # See if GNU ld supports shared libraries.
7983    case $host_os in
7984    aix3* | aix4* | aix5*)
7985      # On AIX/PPC, the GNU linker is very broken
7986      if test "$host_cpu" != ia64; then
7987        ld_shlibs=no
7988        cat <<EOF 1>&2
7989
7990*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7991*** to be unable to reliably create shared libraries on AIX.
7992*** Therefore, libtool is disabling shared libraries support.  If you
7993*** really care for shared libraries, you may want to modify your PATH
7994*** so that a non-GNU linker is found, and then restart.
7995
7996EOF
7997      fi
7998      ;;
7999
8000    amigaos*)
8001      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)'
8002      hardcode_libdir_flag_spec='-L$libdir'
8003      hardcode_minus_L=yes
8004
8005      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8006      # that the semantics of dynamic libraries on AmigaOS, at least up
8007      # to version 4, is to share data among multiple programs linked
8008      # with the same dynamic library.  Since this doesn't match the
8009      # behavior of shared libraries on other platforms, we can't use
8010      # them.
8011      ld_shlibs=no
8012      ;;
8013
8014    beos*)
8015      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8016        allow_undefined_flag=unsupported
8017        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8018        # support --undefined.  This deserves some investigation.  FIXME
8019        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8020      else
8021        ld_shlibs=no
8022      fi
8023      ;;
8024
8025    cygwin* | mingw* | pw32*)
8026      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8027      # as there is no search path for DLLs.
8028      hardcode_libdir_flag_spec='-L$libdir'
8029      allow_undefined_flag=unsupported
8030      always_export_symbols=no
8031      enable_shared_with_static_runtimes=yes
8032      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8033
8034      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8035        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8036        # If the export-symbols file already is a .def file (1st line
8037        # is EXPORTS), use it as is; otherwise, prepend...
8038        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8039          cp $export_symbols $output_objdir/$soname.def;
8040        else
8041          echo EXPORTS > $output_objdir/$soname.def;
8042          cat $export_symbols >> $output_objdir/$soname.def;
8043        fi~
8044        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8045      else
8046        ld_shlibs=no
8047      fi
8048      ;;
8049
8050    interix3*)
8051      hardcode_direct=no
8052      hardcode_shlibpath_var=no
8053      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8054      export_dynamic_flag_spec='${wl}-E'
8055      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8056      # Instead, shared libraries are loaded at an image base (0x10000000 by
8057      # default) and relocated if they conflict, which is a slow very memory
8058      # consuming and fragmenting process.  To avoid this, we pick a random,
8059      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8060      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8061      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8062      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'
8063      ;;
8064
8065    linux*)
8066      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8067        tmp_addflag=
8068        case $cc_basename,$host_cpu in
8069        pgcc*)                          # Portland Group C compiler
8070          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'
8071          tmp_addflag=' $pic_flag'
8072          ;;
8073        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8074          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'
8075          tmp_addflag=' $pic_flag -Mnomain' ;;
8076        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8077          tmp_addflag=' -i_dynamic' ;;
8078        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8079          tmp_addflag=' -i_dynamic -nofor_main' ;;
8080        ifc* | ifort*)                  # Intel Fortran compiler
8081          tmp_addflag=' -nofor_main' ;;
8082        esac
8083        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8084
8085        if test $supports_anon_versioning = yes; then
8086          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8087  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8088  $echo "local: *; };" >> $output_objdir/$libname.ver~
8089          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8090        fi
8091      else
8092        ld_shlibs=no
8093      fi
8094      ;;
8095
8096    netbsd*)
8097      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8098        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8099        wlarc=
8100      else
8101        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8102        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8103      fi
8104      ;;
8105
8106    solaris*)
8107      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8108        ld_shlibs=no
8109        cat <<EOF 1>&2
8110
8111*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8112*** create shared libraries on Solaris systems.  Therefore, libtool
8113*** is disabling shared libraries support.  We urge you to upgrade GNU
8114*** binutils to release 2.9.1 or newer.  Another option is to modify
8115*** your PATH or compiler configuration so that the native linker is
8116*** used, and then restart.
8117
8118EOF
8119      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8120        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8122      else
8123        ld_shlibs=no
8124      fi
8125      ;;
8126
8127    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8128      case `$LD -v 2>&1` in
8129        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8130        ld_shlibs=no
8131        cat <<_LT_EOF 1>&2
8132
8133*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8134*** reliably create shared libraries on SCO systems.  Therefore, libtool
8135*** is disabling shared libraries support.  We urge you to upgrade GNU
8136*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8137*** your PATH or compiler configuration so that the native linker is
8138*** used, and then restart.
8139
8140_LT_EOF
8141        ;;
8142        *)
8143          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8144            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8145            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8146            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8147          else
8148            ld_shlibs=no
8149          fi
8150        ;;
8151      esac
8152      ;;
8153
8154    sunos4*)
8155      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8156      wlarc=
8157      hardcode_direct=yes
8158      hardcode_shlibpath_var=no
8159      ;;
8160
8161    *)
8162      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8163        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8165      else
8166        ld_shlibs=no
8167      fi
8168      ;;
8169    esac
8170
8171    if test "$ld_shlibs" = no; then
8172      runpath_var=
8173      hardcode_libdir_flag_spec=
8174      export_dynamic_flag_spec=
8175      whole_archive_flag_spec=
8176    fi
8177  else
8178    # PORTME fill in a description of your system's linker (not GNU ld)
8179    case $host_os in
8180    aix3*)
8181      allow_undefined_flag=unsupported
8182      always_export_symbols=yes
8183      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'
8184      # Note: this linker hardcodes the directories in LIBPATH if there
8185      # are no directories specified by -L.
8186      hardcode_minus_L=yes
8187      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8188        # Neither direct hardcoding nor static linking is supported with a
8189        # broken collect2.
8190        hardcode_direct=unsupported
8191      fi
8192      ;;
8193
8194    aix4* | aix5*)
8195      if test "$host_cpu" = ia64; then
8196        # On IA64, the linker does run time linking by default, so we don't
8197        # have to do anything special.
8198        aix_use_runtimelinking=no
8199        exp_sym_flag='-Bexport'
8200        no_entry_flag=""
8201      else
8202        # If we're using GNU nm, then we don't want the "-C" option.
8203        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8204        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8205          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'
8206        else
8207          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'
8208        fi
8209        aix_use_runtimelinking=no
8210
8211        # Test if we are trying to use run time linking or normal
8212        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8213        # need to do runtime linking.
8214        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8215          for ld_flag in $LDFLAGS; do
8216          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8217            aix_use_runtimelinking=yes
8218            break
8219          fi
8220          done
8221          ;;
8222        esac
8223
8224        exp_sym_flag='-bexport'
8225        no_entry_flag='-bnoentry'
8226      fi
8227
8228      # When large executables or shared objects are built, AIX ld can
8229      # have problems creating the table of contents.  If linking a library
8230      # or program results in "error TOC overflow" add -mminimal-toc to
8231      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8232      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8233
8234      archive_cmds=''
8235      hardcode_direct=yes
8236      hardcode_libdir_separator=':'
8237      link_all_deplibs=yes
8238
8239      if test "$GCC" = yes; then
8240        case $host_os in aix4.[012]|aix4.[012].*)
8241        # We only want to do this on AIX 4.2 and lower, the check
8242        # below for broken collect2 doesn't work under 4.3+
8243          collect2name=`${CC} -print-prog-name=collect2`
8244          if test -f "$collect2name" && \
8245           strings "$collect2name" | grep resolve_lib_name >/dev/null
8246          then
8247          # We have reworked collect2
8248          hardcode_direct=yes
8249          else
8250          # We have old collect2
8251          hardcode_direct=unsupported
8252          # It fails to find uninstalled libraries when the uninstalled
8253          # path is not listed in the libpath.  Setting hardcode_minus_L
8254          # to unsupported forces relinking
8255          hardcode_minus_L=yes
8256          hardcode_libdir_flag_spec='-L$libdir'
8257          hardcode_libdir_separator=
8258          fi
8259          ;;
8260        esac
8261        shared_flag='-shared'
8262        if test "$aix_use_runtimelinking" = yes; then
8263          shared_flag="$shared_flag "'${wl}-G'
8264        fi
8265      else
8266        # not using gcc
8267        if test "$host_cpu" = ia64; then
8268        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8269        # chokes on -Wl,-G. The following line is correct:
8270          shared_flag='-G'
8271        else
8272          if test "$aix_use_runtimelinking" = yes; then
8273            shared_flag='${wl}-G'
8274          else
8275            shared_flag='${wl}-bM:SRE'
8276          fi
8277        fi
8278      fi
8279
8280      # It seems that -bexpall does not export symbols beginning with
8281      # underscore (_), so it is better to generate a list of symbols to export.
8282      always_export_symbols=yes
8283      if test "$aix_use_runtimelinking" = yes; then
8284        # Warning - without using the other runtime loading flags (-brtl),
8285        # -berok will link without error, but may produce a broken library.
8286        allow_undefined_flag='-berok'
8287       # Determine the default libpath from the value encoded in an empty executable.
8288       cat >conftest.$ac_ext <<_ACEOF
8289/* confdefs.h.  */
8290_ACEOF
8291cat confdefs.h >>conftest.$ac_ext
8292cat >>conftest.$ac_ext <<_ACEOF
8293/* end confdefs.h.  */
8294
8295int
8296main ()
8297{
8298
8299  ;
8300  return 0;
8301}
8302_ACEOF
8303rm -f conftest.$ac_objext conftest$ac_exeext
8304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305  (eval $ac_link) 2>conftest.er1
8306  ac_status=$?
8307  grep -v '^ *+' conftest.er1 >conftest.err
8308  rm -f conftest.er1
8309  cat conftest.err >&5
8310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311  (exit $ac_status); } &&
8312         { ac_try='test -z "$ac_c_werror_flag"
8313                         || test ! -s conftest.err'
8314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315  (eval $ac_try) 2>&5
8316  ac_status=$?
8317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318  (exit $ac_status); }; } &&
8319         { ac_try='test -s conftest$ac_exeext'
8320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321  (eval $ac_try) 2>&5
8322  ac_status=$?
8323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324  (exit $ac_status); }; }; then
8325
8326aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8327}'`
8328# Check for a 64-bit object if we didn't find anything.
8329if 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; }
8330}'`; fi
8331else
8332  echo "$as_me: failed program was:" >&5
8333sed 's/^/| /' conftest.$ac_ext >&5
8334
8335fi
8336rm -f conftest.err conftest.$ac_objext \
8337      conftest$ac_exeext conftest.$ac_ext
8338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8339
8340       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8341        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"
8342       else
8343        if test "$host_cpu" = ia64; then
8344          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8345          allow_undefined_flag="-z nodefs"
8346          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"
8347        else
8348         # Determine the default libpath from the value encoded in an empty executable.
8349         cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h.  */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h.  */
8355
8356int
8357main ()
8358{
8359
8360  ;
8361  return 0;
8362}
8363_ACEOF
8364rm -f conftest.$ac_objext conftest$ac_exeext
8365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8366  (eval $ac_link) 2>conftest.er1
8367  ac_status=$?
8368  grep -v '^ *+' conftest.er1 >conftest.err
8369  rm -f conftest.er1
8370  cat conftest.err >&5
8371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372  (exit $ac_status); } &&
8373         { ac_try='test -z "$ac_c_werror_flag"
8374                         || test ! -s conftest.err'
8375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376  (eval $ac_try) 2>&5
8377  ac_status=$?
8378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379  (exit $ac_status); }; } &&
8380         { ac_try='test -s conftest$ac_exeext'
8381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382  (eval $ac_try) 2>&5
8383  ac_status=$?
8384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385  (exit $ac_status); }; }; then
8386
8387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8388}'`
8389# Check for a 64-bit object if we didn't find anything.
8390if 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; }
8391}'`; fi
8392else
8393  echo "$as_me: failed program was:" >&5
8394sed 's/^/| /' conftest.$ac_ext >&5
8395
8396fi
8397rm -f conftest.err conftest.$ac_objext \
8398      conftest$ac_exeext conftest.$ac_ext
8399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8400
8401         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8402          # Warning - without using the other run time loading flags,
8403          # -berok will link without error, but may produce a broken library.
8404          no_undefined_flag=' ${wl}-bernotok'
8405          allow_undefined_flag=' ${wl}-berok'
8406          # Exported symbols can be pulled into shared objects from archives
8407          whole_archive_flag_spec='$convenience'
8408          archive_cmds_need_lc=yes
8409          # This is similar to how AIX traditionally builds its shared libraries.
8410          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'
8411        fi
8412      fi
8413      ;;
8414
8415    amigaos*)
8416      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)'
8417      hardcode_libdir_flag_spec='-L$libdir'
8418      hardcode_minus_L=yes
8419      # see comment about different semantics on the GNU ld section
8420      ld_shlibs=no
8421      ;;
8422
8423    bsdi[45]*)
8424      export_dynamic_flag_spec=-rdynamic
8425      ;;
8426
8427    cygwin* | mingw* | pw32*)
8428      # When not using gcc, we currently assume that we are using
8429      # Microsoft Visual C++.
8430      # hardcode_libdir_flag_spec is actually meaningless, as there is
8431      # no search path for DLLs.
8432      hardcode_libdir_flag_spec=' '
8433      allow_undefined_flag=unsupported
8434      # Tell ltmain to make .lib files, not .a files.
8435      libext=lib
8436      # Tell ltmain to make .dll files, not .so files.
8437      shrext_cmds=".dll"
8438      # FIXME: Setting linknames here is a bad hack.
8439      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8440      # The linker will automatically build a .lib file if we build a DLL.
8441      old_archive_From_new_cmds='true'
8442      # FIXME: Should let the user specify the lib program.
8443      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8444      fix_srcfile_path='`cygpath -w "$srcfile"`'
8445      enable_shared_with_static_runtimes=yes
8446      ;;
8447
8448    darwin* | rhapsody*)
8449      case $host_os in
8450        rhapsody* | darwin1.[012])
8451         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8452         ;;
8453       *) # Darwin 1.3 on
8454         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8455           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8456         else
8457           case ${MACOSX_DEPLOYMENT_TARGET} in
8458             10.[012])
8459               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8460               ;;
8461             10.*)
8462               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8463               ;;
8464           esac
8465         fi
8466         ;;
8467      esac
8468      archive_cmds_need_lc=no
8469      hardcode_direct=no
8470      hardcode_automatic=yes
8471      hardcode_shlibpath_var=unsupported
8472      whole_archive_flag_spec=''
8473      link_all_deplibs=yes
8474    if test "$GCC" = yes ; then
8475        output_verbose_link_cmd='echo'
8476        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8477      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8478      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8479      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}'
8480      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}'
8481    else
8482      case $cc_basename in
8483        xlc*)
8484         output_verbose_link_cmd='echo'
8485         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8486         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8487          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8488         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}'
8489          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}'
8490          ;;
8491       *)
8492         ld_shlibs=no
8493          ;;
8494      esac
8495    fi
8496      ;;
8497
8498    dgux*)
8499      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8500      hardcode_libdir_flag_spec='-L$libdir'
8501      hardcode_shlibpath_var=no
8502      ;;
8503
8504    freebsd1*)
8505      ld_shlibs=no
8506      ;;
8507
8508    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8509    # support.  Future versions do this automatically, but an explicit c++rt0.o
8510    # does not break anything, and helps significantly (at the cost of a little
8511    # extra space).
8512    freebsd2.2*)
8513      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8514      hardcode_libdir_flag_spec='-R$libdir'
8515      hardcode_direct=yes
8516      hardcode_shlibpath_var=no
8517      ;;
8518
8519    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8520    freebsd2*)
8521      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522      hardcode_direct=yes
8523      hardcode_minus_L=yes
8524      hardcode_shlibpath_var=no
8525      ;;
8526
8527    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8528    freebsd* | kfreebsd*-gnu | dragonfly*)
8529      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8530      hardcode_libdir_flag_spec='-R$libdir'
8531      hardcode_direct=yes
8532      hardcode_shlibpath_var=no
8533      ;;
8534
8535    hpux9*)
8536      if test "$GCC" = yes; then
8537        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'
8538      else
8539        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'
8540      fi
8541      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8542      hardcode_libdir_separator=:
8543      hardcode_direct=yes
8544
8545      # hardcode_minus_L: Not really in the search PATH,
8546      # but as the default location of the library.
8547      hardcode_minus_L=yes
8548      export_dynamic_flag_spec='${wl}-E'
8549      ;;
8550
8551    hpux10*)
8552      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8553        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8554      else
8555        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8556      fi
8557      if test "$with_gnu_ld" = no; then
8558        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8559        hardcode_libdir_separator=:
8560
8561        hardcode_direct=yes
8562        export_dynamic_flag_spec='${wl}-E'
8563
8564        # hardcode_minus_L: Not really in the search PATH,
8565        # but as the default location of the library.
8566        hardcode_minus_L=yes
8567      fi
8568      ;;
8569
8570    hpux11*)
8571      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8572        case $host_cpu in
8573        hppa*64*)
8574          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8575          ;;
8576        ia64*)
8577          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8578          ;;
8579        *)
8580          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8581          ;;
8582        esac
8583      else
8584        case $host_cpu in
8585        hppa*64*)
8586          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8587          ;;
8588        ia64*)
8589          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8590          ;;
8591        *)
8592          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8593          ;;
8594        esac
8595      fi
8596      if test "$with_gnu_ld" = no; then
8597        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8598        hardcode_libdir_separator=:
8599
8600        case $host_cpu in
8601        hppa*64*|ia64*)
8602          hardcode_libdir_flag_spec_ld='+b $libdir'
8603          hardcode_direct=no
8604          hardcode_shlibpath_var=no
8605          ;;
8606        *)
8607          hardcode_direct=yes
8608          export_dynamic_flag_spec='${wl}-E'
8609
8610          # hardcode_minus_L: Not really in the search PATH,
8611          # but as the default location of the library.
8612          hardcode_minus_L=yes
8613          ;;
8614        esac
8615      fi
8616      ;;
8617
8618    irix5* | irix6* | nonstopux*)
8619      if test "$GCC" = yes; then
8620        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'
8621      else
8622        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'
8623        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8624      fi
8625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626      hardcode_libdir_separator=:
8627      link_all_deplibs=yes
8628      ;;
8629
8630    netbsd*)
8631      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8632        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8633      else
8634        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8635      fi
8636      hardcode_libdir_flag_spec='-R$libdir'
8637      hardcode_direct=yes
8638      hardcode_shlibpath_var=no
8639      ;;
8640
8641    newsos6)
8642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643      hardcode_direct=yes
8644      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645      hardcode_libdir_separator=:
8646      hardcode_shlibpath_var=no
8647      ;;
8648
8649    openbsd*)
8650      hardcode_direct=yes
8651      hardcode_shlibpath_var=no
8652      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8653        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8654        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8655        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8656        export_dynamic_flag_spec='${wl}-E'
8657      else
8658       case $host_os in
8659         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8660           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661           hardcode_libdir_flag_spec='-R$libdir'
8662           ;;
8663         *)
8664           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666           ;;
8667       esac
8668      fi
8669      ;;
8670
8671    os2*)
8672      hardcode_libdir_flag_spec='-L$libdir'
8673      hardcode_minus_L=yes
8674      allow_undefined_flag=unsupported
8675      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'
8676      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8677      ;;
8678
8679    osf3*)
8680      if test "$GCC" = yes; then
8681        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8682        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'
8683      else
8684        allow_undefined_flag=' -expect_unresolved \*'
8685        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'
8686      fi
8687      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8688      hardcode_libdir_separator=:
8689      ;;
8690
8691    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8692      if test "$GCC" = yes; then
8693        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694        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'
8695        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8696      else
8697        allow_undefined_flag=' -expect_unresolved \*'
8698        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'
8699        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8700        $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'
8701
8702        # Both c and cxx compiler support -rpath directly
8703        hardcode_libdir_flag_spec='-rpath $libdir'
8704      fi
8705      hardcode_libdir_separator=:
8706      ;;
8707
8708    solaris*)
8709      no_undefined_flag=' -z text'
8710      if test "$GCC" = yes; then
8711        wlarc='${wl}'
8712        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8714          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8715      else
8716        wlarc=''
8717        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8718        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8719        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8720      fi
8721      hardcode_libdir_flag_spec='-R$libdir'
8722      hardcode_shlibpath_var=no
8723      case $host_os in
8724      solaris2.[0-5] | solaris2.[0-5].*) ;;
8725      *)
8726        # The compiler driver will combine linker options so we
8727        # cannot just pass the convience library names through
8728        # without $wl, iff we do not link with $LD.
8729        # Luckily, gcc supports the same syntax we need for Sun Studio.
8730        # Supported since Solaris 2.6 (maybe 2.5.1?)
8731        case $wlarc in
8732        '')
8733          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8734        *)
8735          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' ;;
8736        esac ;;
8737      esac
8738      link_all_deplibs=yes
8739      ;;
8740
8741    sunos4*)
8742      if test "x$host_vendor" = xsequent; then
8743        # Use $CC to link under sequent, because it throws in some extra .o
8744        # files that make .init and .fini sections work.
8745        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8746      else
8747        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8748      fi
8749      hardcode_libdir_flag_spec='-L$libdir'
8750      hardcode_direct=yes
8751      hardcode_minus_L=yes
8752      hardcode_shlibpath_var=no
8753      ;;
8754
8755    sysv4)
8756      case $host_vendor in
8757        sni)
8758          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759          hardcode_direct=yes # is this really true???
8760        ;;
8761        siemens)
8762          ## LD is ld it makes a PLAMLIB
8763          ## CC just makes a GrossModule.
8764          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8765          reload_cmds='$CC -r -o $output$reload_objs'
8766          hardcode_direct=no
8767        ;;
8768        motorola)
8769          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8771        ;;
8772      esac
8773      runpath_var='LD_RUN_PATH'
8774      hardcode_shlibpath_var=no
8775      ;;
8776
8777    sysv4.3*)
8778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779      hardcode_shlibpath_var=no
8780      export_dynamic_flag_spec='-Bexport'
8781      ;;
8782
8783    sysv4*MP*)
8784      if test -d /usr/nec; then
8785        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786        hardcode_shlibpath_var=no
8787        runpath_var=LD_RUN_PATH
8788        hardcode_runpath_var=yes
8789        ld_shlibs=yes
8790      fi
8791      ;;
8792
8793    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8794      no_undefined_flag='${wl}-z,text'
8795      archive_cmds_need_lc=no
8796      hardcode_shlibpath_var=no
8797      runpath_var='LD_RUN_PATH'
8798
8799      if test "$GCC" = yes; then
8800        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802      else
8803        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805      fi
8806      ;;
8807
8808    sysv5* | sco3.2v5* | sco5v6*)
8809      # Note: We can NOT use -z defs as we might desire, because we do not
8810      # link with -lc, and that would cause any symbols used from libc to
8811      # always be unresolved, which means just about no library would
8812      # ever link correctly.  If we're not using GNU ld we use -z text
8813      # though, which does catch some bad symbols but isn't as heavy-handed
8814      # as -z defs.
8815      no_undefined_flag='${wl}-z,text'
8816      allow_undefined_flag='${wl}-z,nodefs'
8817      archive_cmds_need_lc=no
8818      hardcode_shlibpath_var=no
8819      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8820      hardcode_libdir_separator=':'
8821      link_all_deplibs=yes
8822      export_dynamic_flag_spec='${wl}-Bexport'
8823      runpath_var='LD_RUN_PATH'
8824
8825      if test "$GCC" = yes; then
8826        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828      else
8829        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831      fi
8832      ;;
8833
8834    uts4*)
8835      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8836      hardcode_libdir_flag_spec='-L$libdir'
8837      hardcode_shlibpath_var=no
8838      ;;
8839
8840    *)
8841      ld_shlibs=no
8842      ;;
8843    esac
8844  fi
8845
8846echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8847echo "${ECHO_T}$ld_shlibs" >&6
8848test "$ld_shlibs" = no && can_build_shared=no
8849
8850#
8851# Do we need to explicitly link libc?
8852#
8853case "x$archive_cmds_need_lc" in
8854x|xyes)
8855  # Assume -lc should be added
8856  archive_cmds_need_lc=yes
8857
8858  if test "$enable_shared" = yes && test "$GCC" = yes; then
8859    case $archive_cmds in
8860    *'~'*)
8861      # FIXME: we may have to deal with multi-command sequences.
8862      ;;
8863    '$CC '*)
8864      # Test whether the compiler implicitly links with -lc since on some
8865      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8866      # to ld, don't add -lc before -lgcc.
8867      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8868echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8869      $rm conftest*
8870      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8871
8872      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8873  (eval $ac_compile) 2>&5
8874  ac_status=$?
8875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876  (exit $ac_status); } 2>conftest.err; then
8877        soname=conftest
8878        lib=conftest
8879        libobjs=conftest.$ac_objext
8880        deplibs=
8881        wl=$lt_prog_compiler_wl
8882        pic_flag=$lt_prog_compiler_pic
8883        compiler_flags=-v
8884        linker_flags=-v
8885        verstring=
8886        output_objdir=.
8887        libname=conftest
8888        lt_save_allow_undefined_flag=$allow_undefined_flag
8889        allow_undefined_flag=
8890        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8891  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8892  ac_status=$?
8893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894  (exit $ac_status); }
8895        then
8896          archive_cmds_need_lc=no
8897        else
8898          archive_cmds_need_lc=yes
8899        fi
8900        allow_undefined_flag=$lt_save_allow_undefined_flag
8901      else
8902        cat conftest.err 1>&5
8903      fi
8904      $rm conftest*
8905      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8906echo "${ECHO_T}$archive_cmds_need_lc" >&6
8907      ;;
8908    esac
8909  fi
8910  ;;
8911esac
8912
8913echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8914echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8915library_names_spec=
8916libname_spec='lib$name'
8917soname_spec=
8918shrext_cmds=".so"
8919postinstall_cmds=
8920postuninstall_cmds=
8921finish_cmds=
8922finish_eval=
8923shlibpath_var=
8924shlibpath_overrides_runpath=unknown
8925version_type=none
8926dynamic_linker="$host_os ld.so"
8927sys_lib_dlsearch_path_spec="/lib /usr/lib"
8928if test "$GCC" = yes; then
8929  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8930  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8931    # if the path contains ";" then we assume it to be the separator
8932    # otherwise default to the standard path separator (i.e. ":") - it is
8933    # assumed that no part of a normal pathname contains ";" but that should
8934    # okay in the real world where ";" in dirpaths is itself problematic.
8935    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8936  else
8937    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8938  fi
8939else
8940  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8941fi
8942need_lib_prefix=unknown
8943hardcode_into_libs=no
8944
8945# when you set need_version to no, make sure it does not cause -set_version
8946# flags to be left without arguments
8947need_version=unknown
8948
8949case $host_os in
8950aix3*)
8951  version_type=linux
8952  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8953  shlibpath_var=LIBPATH
8954
8955  # AIX 3 has no versioning support, so we append a major version to the name.
8956  soname_spec='${libname}${release}${shared_ext}$major'
8957  ;;
8958
8959aix4* | aix5*)
8960  version_type=linux
8961  need_lib_prefix=no
8962  need_version=no
8963  hardcode_into_libs=yes
8964  if test "$host_cpu" = ia64; then
8965    # AIX 5 supports IA64
8966    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8967    shlibpath_var=LD_LIBRARY_PATH
8968  else
8969    # With GCC up to 2.95.x, collect2 would create an import file
8970    # for dependence libraries.  The import file would start with
8971    # the line `#! .'.  This would cause the generated library to
8972    # depend on `.', always an invalid library.  This was fixed in
8973    # development snapshots of GCC prior to 3.0.
8974    case $host_os in
8975      aix4 | aix4.[01] | aix4.[01].*)
8976      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8977           echo ' yes '
8978           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8979        :
8980      else
8981        can_build_shared=no
8982      fi
8983      ;;
8984    esac
8985    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8986    # soname into executable. Probably we can add versioning support to
8987    # collect2, so additional links can be useful in future.
8988    if test "$aix_use_runtimelinking" = yes; then
8989      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8990      # instead of lib<name>.a to let people know that these are not
8991      # typical AIX shared libraries.
8992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993    else
8994      # We preserve .a as extension for shared libraries through AIX4.2
8995      # and later when we are not doing run time linking.
8996      library_names_spec='${libname}${release}.a $libname.a'
8997      soname_spec='${libname}${release}${shared_ext}$major'
8998    fi
8999    shlibpath_var=LIBPATH
9000  fi
9001  ;;
9002
9003amigaos*)
9004  library_names_spec='$libname.ixlibrary $libname.a'
9005  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9006  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'
9007  ;;
9008
9009beos*)
9010  library_names_spec='${libname}${shared_ext}'
9011  dynamic_linker="$host_os ld.so"
9012  shlibpath_var=LIBRARY_PATH
9013  ;;
9014
9015bsdi[45]*)
9016  version_type=linux
9017  need_version=no
9018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019  soname_spec='${libname}${release}${shared_ext}$major'
9020  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9021  shlibpath_var=LD_LIBRARY_PATH
9022  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9023  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9024  # the default ld.so.conf also contains /usr/contrib/lib and
9025  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9026  # libtool to hard-code these into programs
9027  ;;
9028
9029cygwin* | mingw* | pw32*)
9030  version_type=windows
9031  shrext_cmds=".dll"
9032  need_version=no
9033  need_lib_prefix=no
9034
9035  case $GCC,$host_os in
9036  yes,cygwin* | yes,mingw* | yes,pw32*)
9037    library_names_spec='$libname.dll.a'
9038    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9039    postinstall_cmds='base_file=`basename \${file}`~
9040      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9041      dldir=$destdir/`dirname \$dlpath`~
9042      test -d \$dldir || mkdir -p \$dldir~
9043      $install_prog $dir/$dlname \$dldir/$dlname~
9044      chmod a+x \$dldir/$dlname'
9045    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9046      dlpath=$dir/\$dldll~
9047       $rm \$dlpath'
9048    shlibpath_overrides_runpath=yes
9049
9050    case $host_os in
9051    cygwin*)
9052      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9053      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9054      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9055      ;;
9056    mingw*)
9057      # MinGW DLLs use traditional 'lib' prefix
9058      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9059      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9060      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9061        # It is most probably a Windows format PATH printed by
9062        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9063        # path with ; separators, and with drive letters. We can handle the
9064        # drive letters (cygwin fileutils understands them), so leave them,
9065        # especially as we might pass files found there to a mingw objdump,
9066        # which wouldn't understand a cygwinified path. Ahh.
9067        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9068      else
9069        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9070      fi
9071      ;;
9072    pw32*)
9073      # pw32 DLLs use 'pw' prefix rather than 'lib'
9074      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9075      ;;
9076    esac
9077    ;;
9078
9079  *)
9080    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9081    ;;
9082  esac
9083  dynamic_linker='Win32 ld.exe'
9084  # FIXME: first we should search . and the directory the executable is in
9085  shlibpath_var=PATH
9086  ;;
9087
9088darwin* | rhapsody*)
9089  dynamic_linker="$host_os dyld"
9090  version_type=darwin
9091  need_lib_prefix=no
9092  need_version=no
9093  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9094  soname_spec='${libname}${release}${major}$shared_ext'
9095  shlibpath_overrides_runpath=yes
9096  shlibpath_var=DYLD_LIBRARY_PATH
9097  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9098  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9099  if test "$GCC" = yes; then
9100    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"`
9101  else
9102    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9103  fi
9104  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9105  ;;
9106
9107dgux*)
9108  version_type=linux
9109  need_lib_prefix=no
9110  need_version=no
9111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9112  soname_spec='${libname}${release}${shared_ext}$major'
9113  shlibpath_var=LD_LIBRARY_PATH
9114  ;;
9115
9116freebsd1*)
9117  dynamic_linker=no
9118  ;;
9119
9120kfreebsd*-gnu)
9121  version_type=linux
9122  need_lib_prefix=no
9123  need_version=no
9124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9125  soname_spec='${libname}${release}${shared_ext}$major'
9126  shlibpath_var=LD_LIBRARY_PATH
9127  shlibpath_overrides_runpath=no
9128  hardcode_into_libs=yes
9129  dynamic_linker='GNU ld.so'
9130  ;;
9131
9132freebsd* | dragonfly*)
9133  # DragonFly does not have aout.  When/if they implement a new
9134  # versioning mechanism, adjust this.
9135  if test -x /usr/bin/objformat; then
9136    objformat=`/usr/bin/objformat`
9137  else
9138    case $host_os in
9139    freebsd[123]*) objformat=aout ;;
9140    *) objformat=elf ;;
9141    esac
9142  fi
9143  version_type=freebsd-$objformat
9144  case $version_type in
9145    freebsd-elf*)
9146      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9147      need_version=no
9148      need_lib_prefix=no
9149      ;;
9150    freebsd-*)
9151      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9152      need_version=yes
9153      ;;
9154  esac
9155  shlibpath_var=LD_LIBRARY_PATH
9156  case $host_os in
9157  freebsd2*)
9158    shlibpath_overrides_runpath=yes
9159    ;;
9160  freebsd3.[01]* | freebsdelf3.[01]*)
9161    shlibpath_overrides_runpath=yes
9162    hardcode_into_libs=yes
9163    ;;
9164  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9165  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9166    shlibpath_overrides_runpath=no
9167    hardcode_into_libs=yes
9168    ;;
9169  freebsd*) # from 4.6 on
9170    shlibpath_overrides_runpath=yes
9171    hardcode_into_libs=yes
9172    ;;
9173  esac
9174  ;;
9175
9176gnu*)
9177  version_type=linux
9178  need_lib_prefix=no
9179  need_version=no
9180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9181  soname_spec='${libname}${release}${shared_ext}$major'
9182  shlibpath_var=LD_LIBRARY_PATH
9183  hardcode_into_libs=yes
9184  ;;
9185
9186hpux9* | hpux10* | hpux11*)
9187  # Give a soname corresponding to the major version so that dld.sl refuses to
9188  # link against other versions.
9189  version_type=sunos
9190  need_lib_prefix=no
9191  need_version=no
9192  case $host_cpu in
9193  ia64*)
9194    shrext_cmds='.so'
9195    hardcode_into_libs=yes
9196    dynamic_linker="$host_os dld.so"
9197    shlibpath_var=LD_LIBRARY_PATH
9198    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9199    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9200    soname_spec='${libname}${release}${shared_ext}$major'
9201    if test "X$HPUX_IA64_MODE" = X32; then
9202      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9203    else
9204      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9205    fi
9206    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9207    ;;
9208   hppa*64*)
9209     shrext_cmds='.sl'
9210     hardcode_into_libs=yes
9211     dynamic_linker="$host_os dld.sl"
9212     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9213     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215     soname_spec='${libname}${release}${shared_ext}$major'
9216     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9218     ;;
9219   *)
9220    shrext_cmds='.sl'
9221    dynamic_linker="$host_os dld.sl"
9222    shlibpath_var=SHLIB_PATH
9223    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9224    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225    soname_spec='${libname}${release}${shared_ext}$major'
9226    ;;
9227  esac
9228  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9229  postinstall_cmds='chmod 555 $lib'
9230  ;;
9231
9232interix3*)
9233  version_type=linux
9234  need_lib_prefix=no
9235  need_version=no
9236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9237  soname_spec='${libname}${release}${shared_ext}$major'
9238  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9239  shlibpath_var=LD_LIBRARY_PATH
9240  shlibpath_overrides_runpath=no
9241  hardcode_into_libs=yes
9242  ;;
9243
9244irix5* | irix6* | nonstopux*)
9245  case $host_os in
9246    nonstopux*) version_type=nonstopux ;;
9247    *)
9248        if test "$lt_cv_prog_gnu_ld" = yes; then
9249                version_type=linux
9250        else
9251                version_type=irix
9252        fi ;;
9253  esac
9254  need_lib_prefix=no
9255  need_version=no
9256  soname_spec='${libname}${release}${shared_ext}$major'
9257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9258  case $host_os in
9259  irix5* | nonstopux*)
9260    libsuff= shlibsuff=
9261    ;;
9262  *)
9263    case $LD in # libtool.m4 will add one of these switches to LD
9264    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9265      libsuff= shlibsuff= libmagic=32-bit;;
9266    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9267      libsuff=32 shlibsuff=N32 libmagic=N32;;
9268    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9269      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9270    *) libsuff= shlibsuff= libmagic=never-match;;
9271    esac
9272    ;;
9273  esac
9274  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9275  shlibpath_overrides_runpath=no
9276  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9277  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9278  hardcode_into_libs=yes
9279  ;;
9280
9281# No shared lib support for Linux oldld, aout, or coff.
9282linux*oldld* | linux*aout* | linux*coff*)
9283  dynamic_linker=no
9284  ;;
9285
9286# This must be Linux ELF.
9287linux*)
9288  version_type=linux
9289  need_lib_prefix=no
9290  need_version=no
9291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292  soname_spec='${libname}${release}${shared_ext}$major'
9293  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9294  shlibpath_var=LD_LIBRARY_PATH
9295  shlibpath_overrides_runpath=no
9296  # This implies no fast_install, which is unacceptable.
9297  # Some rework will be needed to allow for fast_install
9298  # before this can be enabled.
9299  hardcode_into_libs=yes
9300
9301  # Append ld.so.conf contents to the search path
9302  if test -f /etc/ld.so.conf; then
9303    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' ' '`
9304    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9305  fi
9306
9307  # We used to test for /lib/ld.so.1 and disable shared libraries on
9308  # powerpc, because MkLinux only supported shared libraries with the
9309  # GNU dynamic linker.  Since this was broken with cross compilers,
9310  # most powerpc-linux boxes support dynamic linking these days and
9311  # people can always --disable-shared, the test was removed, and we
9312  # assume the GNU/Linux dynamic linker is in use.
9313  dynamic_linker='GNU/Linux ld.so'
9314  ;;
9315
9316knetbsd*-gnu)
9317  version_type=linux
9318  need_lib_prefix=no
9319  need_version=no
9320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9321  soname_spec='${libname}${release}${shared_ext}$major'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  shlibpath_overrides_runpath=no
9324  hardcode_into_libs=yes
9325  dynamic_linker='GNU ld.so'
9326  ;;
9327
9328netbsd*)
9329  version_type=sunos
9330  need_lib_prefix=no
9331  need_version=no
9332  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9334    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9335    dynamic_linker='NetBSD (a.out) ld.so'
9336  else
9337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9338    soname_spec='${libname}${release}${shared_ext}$major'
9339    dynamic_linker='NetBSD ld.elf_so'
9340  fi
9341  shlibpath_var=LD_LIBRARY_PATH
9342  shlibpath_overrides_runpath=yes
9343  hardcode_into_libs=yes
9344  ;;
9345
9346newsos6)
9347  version_type=linux
9348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349  shlibpath_var=LD_LIBRARY_PATH
9350  shlibpath_overrides_runpath=yes
9351  ;;
9352
9353nto-qnx*)
9354  version_type=linux
9355  need_lib_prefix=no
9356  need_version=no
9357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358  soname_spec='${libname}${release}${shared_ext}$major'
9359  shlibpath_var=LD_LIBRARY_PATH
9360  shlibpath_overrides_runpath=yes
9361  ;;
9362
9363openbsd*)
9364  version_type=sunos
9365  sys_lib_dlsearch_path_spec="/usr/lib"
9366  need_lib_prefix=no
9367  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9368  case $host_os in
9369    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9370    *)                         need_version=no  ;;
9371  esac
9372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9373  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9374  shlibpath_var=LD_LIBRARY_PATH
9375  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9376    case $host_os in
9377      openbsd2.[89] | openbsd2.[89].*)
9378        shlibpath_overrides_runpath=no
9379        ;;
9380      *)
9381        shlibpath_overrides_runpath=yes
9382        ;;
9383      esac
9384  else
9385    shlibpath_overrides_runpath=yes
9386  fi
9387  ;;
9388
9389os2*)
9390  libname_spec='$name'
9391  shrext_cmds=".dll"
9392  need_lib_prefix=no
9393  library_names_spec='$libname${shared_ext} $libname.a'
9394  dynamic_linker='OS/2 ld.exe'
9395  shlibpath_var=LIBPATH
9396  ;;
9397
9398osf3* | osf4* | osf5*)
9399  version_type=osf
9400  need_lib_prefix=no
9401  need_version=no
9402  soname_spec='${libname}${release}${shared_ext}$major'
9403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9404  shlibpath_var=LD_LIBRARY_PATH
9405  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9406  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9407  ;;
9408
9409solaris*)
9410  version_type=linux
9411  need_lib_prefix=no
9412  need_version=no
9413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414  soname_spec='${libname}${release}${shared_ext}$major'
9415  shlibpath_var=LD_LIBRARY_PATH
9416  shlibpath_overrides_runpath=yes
9417  hardcode_into_libs=yes
9418  # ldd complains unless libraries are executable
9419  postinstall_cmds='chmod +x $lib'
9420  ;;
9421
9422sunos4*)
9423  version_type=sunos
9424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9425  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9426  shlibpath_var=LD_LIBRARY_PATH
9427  shlibpath_overrides_runpath=yes
9428  if test "$with_gnu_ld" = yes; then
9429    need_lib_prefix=no
9430  fi
9431  need_version=yes
9432  ;;
9433
9434sysv4 | sysv4.3*)
9435  version_type=linux
9436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437  soname_spec='${libname}${release}${shared_ext}$major'
9438  shlibpath_var=LD_LIBRARY_PATH
9439  case $host_vendor in
9440    sni)
9441      shlibpath_overrides_runpath=no
9442      need_lib_prefix=no
9443      export_dynamic_flag_spec='${wl}-Blargedynsym'
9444      runpath_var=LD_RUN_PATH
9445      ;;
9446    siemens)
9447      need_lib_prefix=no
9448      ;;
9449    motorola)
9450      need_lib_prefix=no
9451      need_version=no
9452      shlibpath_overrides_runpath=no
9453      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9454      ;;
9455  esac
9456  ;;
9457
9458sysv4*MP*)
9459  if test -d /usr/nec ;then
9460    version_type=linux
9461    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9462    soname_spec='$libname${shared_ext}.$major'
9463    shlibpath_var=LD_LIBRARY_PATH
9464  fi
9465  ;;
9466
9467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9468  version_type=freebsd-elf
9469  need_lib_prefix=no
9470  need_version=no
9471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9472  soname_spec='${libname}${release}${shared_ext}$major'
9473  shlibpath_var=LD_LIBRARY_PATH
9474  hardcode_into_libs=yes
9475  if test "$with_gnu_ld" = yes; then
9476    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9477    shlibpath_overrides_runpath=no
9478  else
9479    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9480    shlibpath_overrides_runpath=yes
9481    case $host_os in
9482      sco3.2v5*)
9483        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9484        ;;
9485    esac
9486  fi
9487  sys_lib_dlsearch_path_spec='/usr/lib'
9488  ;;
9489
9490uts4*)
9491  version_type=linux
9492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493  soname_spec='${libname}${release}${shared_ext}$major'
9494  shlibpath_var=LD_LIBRARY_PATH
9495  ;;
9496
9497*)
9498  dynamic_linker=no
9499  ;;
9500esac
9501echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9502echo "${ECHO_T}$dynamic_linker" >&6
9503test "$dynamic_linker" = no && can_build_shared=no
9504
9505variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9506if test "$GCC" = yes; then
9507  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9508fi
9509
9510echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9511echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9512hardcode_action=
9513if test -n "$hardcode_libdir_flag_spec" || \
9514   test -n "$runpath_var" || \
9515   test "X$hardcode_automatic" = "Xyes" ; then
9516
9517  # We can hardcode non-existant directories.
9518  if test "$hardcode_direct" != no &&
9519     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9520     # have to relink, otherwise we might link with an installed library
9521     # when we should be linking with a yet-to-be-installed one
9522     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9523     test "$hardcode_minus_L" != no; then
9524    # Linking always hardcodes the temporary library directory.
9525    hardcode_action=relink
9526  else
9527    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9528    hardcode_action=immediate
9529  fi
9530else
9531  # We cannot hardcode anything, or else we can only hardcode existing
9532  # directories.
9533  hardcode_action=unsupported
9534fi
9535echo "$as_me:$LINENO: result: $hardcode_action" >&5
9536echo "${ECHO_T}$hardcode_action" >&6
9537
9538if test "$hardcode_action" = relink; then
9539  # Fast installation is not supported
9540  enable_fast_install=no
9541elif test "$shlibpath_overrides_runpath" = yes ||
9542     test "$enable_shared" = no; then
9543  # Fast installation is not necessary
9544  enable_fast_install=needless
9545fi
9546
9547striplib=
9548old_striplib=
9549echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9550echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9551if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9552  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9553  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9554  echo "$as_me:$LINENO: result: yes" >&5
9555echo "${ECHO_T}yes" >&6
9556else
9557# FIXME - insert some real tests, host_os isn't really good enough
9558  case $host_os in
9559   darwin*)
9560       if test -n "$STRIP" ; then
9561         striplib="$STRIP -x"
9562         echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
9564       else
9565  echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
9567fi
9568       ;;
9569   *)
9570  echo "$as_me:$LINENO: result: no" >&5
9571echo "${ECHO_T}no" >&6
9572    ;;
9573  esac
9574fi
9575
9576if test "x$enable_dlopen" != xyes; then
9577  enable_dlopen=unknown
9578  enable_dlopen_self=unknown
9579  enable_dlopen_self_static=unknown
9580else
9581  lt_cv_dlopen=no
9582  lt_cv_dlopen_libs=
9583
9584  case $host_os in
9585  beos*)
9586    lt_cv_dlopen="load_add_on"
9587    lt_cv_dlopen_libs=
9588    lt_cv_dlopen_self=yes
9589    ;;
9590
9591  mingw* | pw32*)
9592    lt_cv_dlopen="LoadLibrary"
9593    lt_cv_dlopen_libs=
9594   ;;
9595
9596  cygwin*)
9597    lt_cv_dlopen="dlopen"
9598    lt_cv_dlopen_libs=
9599   ;;
9600
9601  darwin*)
9602  # if libdl is installed we need to link against it
9603    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9604echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9605if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9606  echo $ECHO_N "(cached) $ECHO_C" >&6
9607else
9608  ac_check_lib_save_LIBS=$LIBS
9609LIBS="-ldl  $LIBS"
9610cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h.  */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h.  */
9616
9617/* Override any gcc2 internal prototype to avoid an error.  */
9618#ifdef __cplusplus
9619extern "C"
9620#endif
9621/* We use char because int might match the return type of a gcc2
9622   builtin and then its argument prototype would still apply.  */
9623char dlopen ();
9624int
9625main ()
9626{
9627dlopen ();
9628  ;
9629  return 0;
9630}
9631_ACEOF
9632rm -f conftest.$ac_objext conftest$ac_exeext
9633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9634  (eval $ac_link) 2>conftest.er1
9635  ac_status=$?
9636  grep -v '^ *+' conftest.er1 >conftest.err
9637  rm -f conftest.er1
9638  cat conftest.err >&5
9639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640  (exit $ac_status); } &&
9641         { ac_try='test -z "$ac_c_werror_flag"
9642                         || test ! -s conftest.err'
9643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644  (eval $ac_try) 2>&5
9645  ac_status=$?
9646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647  (exit $ac_status); }; } &&
9648         { ac_try='test -s conftest$ac_exeext'
9649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650  (eval $ac_try) 2>&5
9651  ac_status=$?
9652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653  (exit $ac_status); }; }; then
9654  ac_cv_lib_dl_dlopen=yes
9655else
9656  echo "$as_me: failed program was:" >&5
9657sed 's/^/| /' conftest.$ac_ext >&5
9658
9659ac_cv_lib_dl_dlopen=no
9660fi
9661rm -f conftest.err conftest.$ac_objext \
9662      conftest$ac_exeext conftest.$ac_ext
9663LIBS=$ac_check_lib_save_LIBS
9664fi
9665echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9666echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9667if test $ac_cv_lib_dl_dlopen = yes; then
9668  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9669else
9670
9671    lt_cv_dlopen="dyld"
9672    lt_cv_dlopen_libs=
9673    lt_cv_dlopen_self=yes
9674
9675fi
9676
9677   ;;
9678
9679  *)
9680    echo "$as_me:$LINENO: checking for shl_load" >&5
9681echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9682if test "${ac_cv_func_shl_load+set}" = set; then
9683  echo $ECHO_N "(cached) $ECHO_C" >&6
9684else
9685  cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h.  */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h.  */
9691/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9692   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9693#define shl_load innocuous_shl_load
9694
9695/* System header to define __stub macros and hopefully few prototypes,
9696    which can conflict with char shl_load (); below.
9697    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9698    <limits.h> exists even on freestanding compilers.  */
9699
9700#ifdef __STDC__
9701# include <limits.h>
9702#else
9703# include <assert.h>
9704#endif
9705
9706#undef shl_load
9707
9708/* Override any gcc2 internal prototype to avoid an error.  */
9709#ifdef __cplusplus
9710extern "C"
9711{
9712#endif
9713/* We use char because int might match the return type of a gcc2
9714   builtin and then its argument prototype would still apply.  */
9715char shl_load ();
9716/* The GNU C library defines this for functions which it implements
9717    to always fail with ENOSYS.  Some functions are actually named
9718    something starting with __ and the normal name is an alias.  */
9719#if defined (__stub_shl_load) || defined (__stub___shl_load)
9720choke me
9721#else
9722char (*f) () = shl_load;
9723#endif
9724#ifdef __cplusplus
9725}
9726#endif
9727
9728int
9729main ()
9730{
9731return f != shl_load;
9732  ;
9733  return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext conftest$ac_exeext
9737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738  (eval $ac_link) 2>conftest.er1
9739  ac_status=$?
9740  grep -v '^ *+' conftest.er1 >conftest.err
9741  rm -f conftest.er1
9742  cat conftest.err >&5
9743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744  (exit $ac_status); } &&
9745         { ac_try='test -z "$ac_c_werror_flag"
9746                         || test ! -s conftest.err'
9747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748  (eval $ac_try) 2>&5
9749  ac_status=$?
9750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751  (exit $ac_status); }; } &&
9752         { ac_try='test -s conftest$ac_exeext'
9753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754  (eval $ac_try) 2>&5
9755  ac_status=$?
9756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757  (exit $ac_status); }; }; then
9758  ac_cv_func_shl_load=yes
9759else
9760  echo "$as_me: failed program was:" >&5
9761sed 's/^/| /' conftest.$ac_ext >&5
9762
9763ac_cv_func_shl_load=no
9764fi
9765rm -f conftest.err conftest.$ac_objext \
9766      conftest$ac_exeext conftest.$ac_ext
9767fi
9768echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9769echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9770if test $ac_cv_func_shl_load = yes; then
9771  lt_cv_dlopen="shl_load"
9772else
9773  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9774echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9775if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9776  echo $ECHO_N "(cached) $ECHO_C" >&6
9777else
9778  ac_check_lib_save_LIBS=$LIBS
9779LIBS="-ldld  $LIBS"
9780cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h.  */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h.  */
9786
9787/* Override any gcc2 internal prototype to avoid an error.  */
9788#ifdef __cplusplus
9789extern "C"
9790#endif
9791/* We use char because int might match the return type of a gcc2
9792   builtin and then its argument prototype would still apply.  */
9793char shl_load ();
9794int
9795main ()
9796{
9797shl_load ();
9798  ;
9799  return 0;
9800}
9801_ACEOF
9802rm -f conftest.$ac_objext conftest$ac_exeext
9803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804  (eval $ac_link) 2>conftest.er1
9805  ac_status=$?
9806  grep -v '^ *+' conftest.er1 >conftest.err
9807  rm -f conftest.er1
9808  cat conftest.err >&5
9809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810  (exit $ac_status); } &&
9811         { ac_try='test -z "$ac_c_werror_flag"
9812                         || test ! -s conftest.err'
9813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814  (eval $ac_try) 2>&5
9815  ac_status=$?
9816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817  (exit $ac_status); }; } &&
9818         { ac_try='test -s conftest$ac_exeext'
9819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820  (eval $ac_try) 2>&5
9821  ac_status=$?
9822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823  (exit $ac_status); }; }; then
9824  ac_cv_lib_dld_shl_load=yes
9825else
9826  echo "$as_me: failed program was:" >&5
9827sed 's/^/| /' conftest.$ac_ext >&5
9828
9829ac_cv_lib_dld_shl_load=no
9830fi
9831rm -f conftest.err conftest.$ac_objext \
9832      conftest$ac_exeext conftest.$ac_ext
9833LIBS=$ac_check_lib_save_LIBS
9834fi
9835echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9836echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9837if test $ac_cv_lib_dld_shl_load = yes; then
9838  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9839else
9840  echo "$as_me:$LINENO: checking for dlopen" >&5
9841echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9842if test "${ac_cv_func_dlopen+set}" = set; then
9843  echo $ECHO_N "(cached) $ECHO_C" >&6
9844else
9845  cat >conftest.$ac_ext <<_ACEOF
9846/* confdefs.h.  */
9847_ACEOF
9848cat confdefs.h >>conftest.$ac_ext
9849cat >>conftest.$ac_ext <<_ACEOF
9850/* end confdefs.h.  */
9851/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9852   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9853#define dlopen innocuous_dlopen
9854
9855/* System header to define __stub macros and hopefully few prototypes,
9856    which can conflict with char dlopen (); below.
9857    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9858    <limits.h> exists even on freestanding compilers.  */
9859
9860#ifdef __STDC__
9861# include <limits.h>
9862#else
9863# include <assert.h>
9864#endif
9865
9866#undef dlopen
9867
9868/* Override any gcc2 internal prototype to avoid an error.  */
9869#ifdef __cplusplus
9870extern "C"
9871{
9872#endif
9873/* We use char because int might match the return type of a gcc2
9874   builtin and then its argument prototype would still apply.  */
9875char dlopen ();
9876/* The GNU C library defines this for functions which it implements
9877    to always fail with ENOSYS.  Some functions are actually named
9878    something starting with __ and the normal name is an alias.  */
9879#if defined (__stub_dlopen) || defined (__stub___dlopen)
9880choke me
9881#else
9882char (*f) () = dlopen;
9883#endif
9884#ifdef __cplusplus
9885}
9886#endif
9887
9888int
9889main ()
9890{
9891return f != dlopen;
9892  ;
9893  return 0;
9894}
9895_ACEOF
9896rm -f conftest.$ac_objext conftest$ac_exeext
9897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898  (eval $ac_link) 2>conftest.er1
9899  ac_status=$?
9900  grep -v '^ *+' conftest.er1 >conftest.err
9901  rm -f conftest.er1
9902  cat conftest.err >&5
9903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904  (exit $ac_status); } &&
9905         { ac_try='test -z "$ac_c_werror_flag"
9906                         || test ! -s conftest.err'
9907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908  (eval $ac_try) 2>&5
9909  ac_status=$?
9910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911  (exit $ac_status); }; } &&
9912         { ac_try='test -s conftest$ac_exeext'
9913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914  (eval $ac_try) 2>&5
9915  ac_status=$?
9916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917  (exit $ac_status); }; }; then
9918  ac_cv_func_dlopen=yes
9919else
9920  echo "$as_me: failed program was:" >&5
9921sed 's/^/| /' conftest.$ac_ext >&5
9922
9923ac_cv_func_dlopen=no
9924fi
9925rm -f conftest.err conftest.$ac_objext \
9926      conftest$ac_exeext conftest.$ac_ext
9927fi
9928echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9929echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9930if test $ac_cv_func_dlopen = yes; then
9931  lt_cv_dlopen="dlopen"
9932else
9933  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9934echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9935if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9936  echo $ECHO_N "(cached) $ECHO_C" >&6
9937else
9938  ac_check_lib_save_LIBS=$LIBS
9939LIBS="-ldl  $LIBS"
9940cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h.  */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h.  */
9946
9947/* Override any gcc2 internal prototype to avoid an error.  */
9948#ifdef __cplusplus
9949extern "C"
9950#endif
9951/* We use char because int might match the return type of a gcc2
9952   builtin and then its argument prototype would still apply.  */
9953char dlopen ();
9954int
9955main ()
9956{
9957dlopen ();
9958  ;
9959  return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
9963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964  (eval $ac_link) 2>conftest.er1
9965  ac_status=$?
9966  grep -v '^ *+' conftest.er1 >conftest.err
9967  rm -f conftest.er1
9968  cat conftest.err >&5
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); } &&
9971         { ac_try='test -z "$ac_c_werror_flag"
9972                         || test ! -s conftest.err'
9973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974  (eval $ac_try) 2>&5
9975  ac_status=$?
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); }; } &&
9978         { ac_try='test -s conftest$ac_exeext'
9979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980  (eval $ac_try) 2>&5
9981  ac_status=$?
9982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983  (exit $ac_status); }; }; then
9984  ac_cv_lib_dl_dlopen=yes
9985else
9986  echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989ac_cv_lib_dl_dlopen=no
9990fi
9991rm -f conftest.err conftest.$ac_objext \
9992      conftest$ac_exeext conftest.$ac_ext
9993LIBS=$ac_check_lib_save_LIBS
9994fi
9995echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9996echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9997if test $ac_cv_lib_dl_dlopen = yes; then
9998  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9999else
10000  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10001echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10002if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10003  echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005  ac_check_lib_save_LIBS=$LIBS
10006LIBS="-lsvld  $LIBS"
10007cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h.  */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h.  */
10013
10014/* Override any gcc2 internal prototype to avoid an error.  */
10015#ifdef __cplusplus
10016extern "C"
10017#endif
10018/* We use char because int might match the return type of a gcc2
10019   builtin and then its argument prototype would still apply.  */
10020char dlopen ();
10021int
10022main ()
10023{
10024dlopen ();
10025  ;
10026  return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
10030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031  (eval $ac_link) 2>conftest.er1
10032  ac_status=$?
10033  grep -v '^ *+' conftest.er1 >conftest.err
10034  rm -f conftest.er1
10035  cat conftest.err >&5
10036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037  (exit $ac_status); } &&
10038         { ac_try='test -z "$ac_c_werror_flag"
10039                         || test ! -s conftest.err'
10040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041  (eval $ac_try) 2>&5
10042  ac_status=$?
10043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044  (exit $ac_status); }; } &&
10045         { ac_try='test -s conftest$ac_exeext'
10046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047  (eval $ac_try) 2>&5
10048  ac_status=$?
10049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050  (exit $ac_status); }; }; then
10051  ac_cv_lib_svld_dlopen=yes
10052else
10053  echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
10056ac_cv_lib_svld_dlopen=no
10057fi
10058rm -f conftest.err conftest.$ac_objext \
10059      conftest$ac_exeext conftest.$ac_ext
10060LIBS=$ac_check_lib_save_LIBS
10061fi
10062echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10063echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10064if test $ac_cv_lib_svld_dlopen = yes; then
10065  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10066else
10067  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10068echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10069if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10070  echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072  ac_check_lib_save_LIBS=$LIBS
10073LIBS="-ldld  $LIBS"
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h.  */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h.  */
10080
10081/* Override any gcc2 internal prototype to avoid an error.  */
10082#ifdef __cplusplus
10083extern "C"
10084#endif
10085/* We use char because int might match the return type of a gcc2
10086   builtin and then its argument prototype would still apply.  */
10087char dld_link ();
10088int
10089main ()
10090{
10091dld_link ();
10092  ;
10093  return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext conftest$ac_exeext
10097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10098  (eval $ac_link) 2>conftest.er1
10099  ac_status=$?
10100  grep -v '^ *+' conftest.er1 >conftest.err
10101  rm -f conftest.er1
10102  cat conftest.err >&5
10103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104  (exit $ac_status); } &&
10105         { ac_try='test -z "$ac_c_werror_flag"
10106                         || test ! -s conftest.err'
10107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108  (eval $ac_try) 2>&5
10109  ac_status=$?
10110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111  (exit $ac_status); }; } &&
10112         { ac_try='test -s conftest$ac_exeext'
10113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114  (eval $ac_try) 2>&5
10115  ac_status=$?
10116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117  (exit $ac_status); }; }; then
10118  ac_cv_lib_dld_dld_link=yes
10119else
10120  echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123ac_cv_lib_dld_dld_link=no
10124fi
10125rm -f conftest.err conftest.$ac_objext \
10126      conftest$ac_exeext conftest.$ac_ext
10127LIBS=$ac_check_lib_save_LIBS
10128fi
10129echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10130echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10131if test $ac_cv_lib_dld_dld_link = yes; then
10132  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10133fi
10134
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144
10145fi
10146
10147
10148fi
10149
10150    ;;
10151  esac
10152
10153  if test "x$lt_cv_dlopen" != xno; then
10154    enable_dlopen=yes
10155  else
10156    enable_dlopen=no
10157  fi
10158
10159  case $lt_cv_dlopen in
10160  dlopen)
10161    save_CPPFLAGS="$CPPFLAGS"
10162    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10163
10164    save_LDFLAGS="$LDFLAGS"
10165    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10166
10167    save_LIBS="$LIBS"
10168    LIBS="$lt_cv_dlopen_libs $LIBS"
10169
10170    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10171echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10172if test "${lt_cv_dlopen_self+set}" = set; then
10173  echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175          if test "$cross_compiling" = yes; then :
10176  lt_cv_dlopen_self=cross
10177else
10178  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10179  lt_status=$lt_dlunknown
10180  cat > conftest.$ac_ext <<EOF
10181#line 10181 "configure"
10182#include "confdefs.h"
10183
10184#if HAVE_DLFCN_H
10185#include <dlfcn.h>
10186#endif
10187
10188#include <stdio.h>
10189
10190#ifdef RTLD_GLOBAL
10191#  define LT_DLGLOBAL           RTLD_GLOBAL
10192#else
10193#  ifdef DL_GLOBAL
10194#    define LT_DLGLOBAL         DL_GLOBAL
10195#  else
10196#    define LT_DLGLOBAL         0
10197#  endif
10198#endif
10199
10200/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10201   find out it does not work in some platform. */
10202#ifndef LT_DLLAZY_OR_NOW
10203#  ifdef RTLD_LAZY
10204#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10205#  else
10206#    ifdef DL_LAZY
10207#      define LT_DLLAZY_OR_NOW          DL_LAZY
10208#    else
10209#      ifdef RTLD_NOW
10210#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10211#      else
10212#        ifdef DL_NOW
10213#          define LT_DLLAZY_OR_NOW      DL_NOW
10214#        else
10215#          define LT_DLLAZY_OR_NOW      0
10216#        endif
10217#      endif
10218#    endif
10219#  endif
10220#endif
10221
10222#ifdef __cplusplus
10223extern "C" void exit (int);
10224#endif
10225
10226void fnord() { int i=42;}
10227int main ()
10228{
10229  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10230  int status = $lt_dlunknown;
10231
10232  if (self)
10233    {
10234      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10235      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10236      /* dlclose (self); */
10237    }
10238  else
10239    puts (dlerror ());
10240
10241    exit (status);
10242}
10243EOF
10244  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245  (eval $ac_link) 2>&5
10246  ac_status=$?
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10249    (./conftest; exit; ) >&5 2>/dev/null
10250    lt_status=$?
10251    case x$lt_status in
10252      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10253      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10254      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10255    esac
10256  else :
10257    # compilation failed
10258    lt_cv_dlopen_self=no
10259  fi
10260fi
10261rm -fr conftest*
10262
10263
10264fi
10265echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10266echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10267
10268    if test "x$lt_cv_dlopen_self" = xyes; then
10269      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10270      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10271echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10272if test "${lt_cv_dlopen_self_static+set}" = set; then
10273  echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275          if test "$cross_compiling" = yes; then :
10276  lt_cv_dlopen_self_static=cross
10277else
10278  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10279  lt_status=$lt_dlunknown
10280  cat > conftest.$ac_ext <<EOF
10281#line 10281 "configure"
10282#include "confdefs.h"
10283
10284#if HAVE_DLFCN_H
10285#include <dlfcn.h>
10286#endif
10287
10288#include <stdio.h>
10289
10290#ifdef RTLD_GLOBAL
10291#  define LT_DLGLOBAL           RTLD_GLOBAL
10292#else
10293#  ifdef DL_GLOBAL
10294#    define LT_DLGLOBAL         DL_GLOBAL
10295#  else
10296#    define LT_DLGLOBAL         0
10297#  endif
10298#endif
10299
10300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10301   find out it does not work in some platform. */
10302#ifndef LT_DLLAZY_OR_NOW
10303#  ifdef RTLD_LAZY
10304#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10305#  else
10306#    ifdef DL_LAZY
10307#      define LT_DLLAZY_OR_NOW          DL_LAZY
10308#    else
10309#      ifdef RTLD_NOW
10310#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10311#      else
10312#        ifdef DL_NOW
10313#          define LT_DLLAZY_OR_NOW      DL_NOW
10314#        else
10315#          define LT_DLLAZY_OR_NOW      0
10316#        endif
10317#      endif
10318#    endif
10319#  endif
10320#endif
10321
10322#ifdef __cplusplus
10323extern "C" void exit (int);
10324#endif
10325
10326void fnord() { int i=42;}
10327int main ()
10328{
10329  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10330  int status = $lt_dlunknown;
10331
10332  if (self)
10333    {
10334      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10335      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10336      /* dlclose (self); */
10337    }
10338  else
10339    puts (dlerror ());
10340
10341    exit (status);
10342}
10343EOF
10344  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345  (eval $ac_link) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10349    (./conftest; exit; ) >&5 2>/dev/null
10350    lt_status=$?
10351    case x$lt_status in
10352      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10353      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10354      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10355    esac
10356  else :
10357    # compilation failed
10358    lt_cv_dlopen_self_static=no
10359  fi
10360fi
10361rm -fr conftest*
10362
10363
10364fi
10365echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10366echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10367    fi
10368
10369    CPPFLAGS="$save_CPPFLAGS"
10370    LDFLAGS="$save_LDFLAGS"
10371    LIBS="$save_LIBS"
10372    ;;
10373  esac
10374
10375  case $lt_cv_dlopen_self in
10376  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10377  *) enable_dlopen_self=unknown ;;
10378  esac
10379
10380  case $lt_cv_dlopen_self_static in
10381  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10382  *) enable_dlopen_self_static=unknown ;;
10383  esac
10384fi
10385
10386
10387# Report which library types will actually be built
10388echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10389echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10390echo "$as_me:$LINENO: result: $can_build_shared" >&5
10391echo "${ECHO_T}$can_build_shared" >&6
10392
10393echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10394echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10395test "$can_build_shared" = "no" && enable_shared=no
10396
10397# On AIX, shared libraries and static libraries use the same namespace, and
10398# are all built from PIC.
10399case $host_os in
10400aix3*)
10401  test "$enable_shared" = yes && enable_static=no
10402  if test -n "$RANLIB"; then
10403    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10404    postinstall_cmds='$RANLIB $lib'
10405  fi
10406  ;;
10407
10408aix4* | aix5*)
10409  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10410    test "$enable_shared" = yes && enable_static=no
10411  fi
10412    ;;
10413esac
10414echo "$as_me:$LINENO: result: $enable_shared" >&5
10415echo "${ECHO_T}$enable_shared" >&6
10416
10417echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10418echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10419# Make sure either enable_shared or enable_static is yes.
10420test "$enable_shared" = yes || enable_static=yes
10421echo "$as_me:$LINENO: result: $enable_static" >&5
10422echo "${ECHO_T}$enable_static" >&6
10423
10424# The else clause should only fire when bootstrapping the
10425# libtool distribution, otherwise you forgot to ship ltmain.sh
10426# with your package, and you will get complaints that there are
10427# no rules to generate ltmain.sh.
10428if test -f "$ltmain"; then
10429  # See if we are running on zsh, and set the options which allow our commands through
10430  # without removal of \ escapes.
10431  if test -n "${ZSH_VERSION+set}" ; then
10432    setopt NO_GLOB_SUBST
10433  fi
10434  # Now quote all the things that may contain metacharacters while being
10435  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10436  # variables and quote the copies for generation of the libtool script.
10437  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10438    SED SHELL STRIP \
10439    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10440    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10441    deplibs_check_method reload_flag reload_cmds need_locks \
10442    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10443    lt_cv_sys_global_symbol_to_c_name_address \
10444    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10445    old_postinstall_cmds old_postuninstall_cmds \
10446    compiler \
10447    CC \
10448    LD \
10449    lt_prog_compiler_wl \
10450    lt_prog_compiler_pic \
10451    lt_prog_compiler_static \
10452    lt_prog_compiler_no_builtin_flag \
10453    export_dynamic_flag_spec \
10454    thread_safe_flag_spec \
10455    whole_archive_flag_spec \
10456    enable_shared_with_static_runtimes \
10457    old_archive_cmds \
10458    old_archive_from_new_cmds \
10459    predep_objects \
10460    postdep_objects \
10461    predeps \
10462    postdeps \
10463    compiler_lib_search_path \
10464    archive_cmds \
10465    archive_expsym_cmds \
10466    postinstall_cmds \
10467    postuninstall_cmds \
10468    old_archive_from_expsyms_cmds \
10469    allow_undefined_flag \
10470    no_undefined_flag \
10471    export_symbols_cmds \
10472    hardcode_libdir_flag_spec \
10473    hardcode_libdir_flag_spec_ld \
10474    hardcode_libdir_separator \
10475    hardcode_automatic \
10476    module_cmds \
10477    module_expsym_cmds \
10478    lt_cv_prog_compiler_c_o \
10479    exclude_expsyms \
10480    include_expsyms; do
10481
10482    case $var in
10483    old_archive_cmds | \
10484    old_archive_from_new_cmds | \
10485    archive_cmds | \
10486    archive_expsym_cmds | \
10487    module_cmds | \
10488    module_expsym_cmds | \
10489    old_archive_from_expsyms_cmds | \
10490    export_symbols_cmds | \
10491    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10492    postinstall_cmds | postuninstall_cmds | \
10493    old_postinstall_cmds | old_postuninstall_cmds | \
10494    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10495      # Double-quote double-evaled strings.
10496      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10497      ;;
10498    *)
10499      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10500      ;;
10501    esac
10502  done
10503
10504  case $lt_echo in
10505  *'\$0 --fallback-echo"')
10506    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10507    ;;
10508  esac
10509
10510cfgfile="${ofile}T"
10511  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10512  $rm -f "$cfgfile"
10513  { echo "$as_me:$LINENO: creating $ofile" >&5
10514echo "$as_me: creating $ofile" >&6;}
10515
10516  cat <<__EOF__ >> "$cfgfile"
10517#! $SHELL
10518
10519# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10520# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10521# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10522#
10523# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10524# Free Software Foundation, Inc.
10525#
10526# This file is part of GNU Libtool:
10527# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10528#
10529# This program is free software; you can redistribute it and/or modify
10530# it under the terms of the GNU General Public License as published by
10531# the Free Software Foundation; either version 2 of the License, or
10532# (at your option) any later version.
10533#
10534# This program is distributed in the hope that it will be useful, but
10535# WITHOUT ANY WARRANTY; without even the implied warranty of
10536# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10537# General Public License for more details.
10538#
10539# You should have received a copy of the GNU General Public License
10540# along with this program; if not, write to the Free Software
10541# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10542#
10543# As a special exception to the GNU General Public License, if you
10544# distribute this file as part of a program that contains a
10545# configuration script generated by Autoconf, you may include it under
10546# the same distribution terms that you use for the rest of that program.
10547
10548# A sed program that does not truncate output.
10549SED=$lt_SED
10550
10551# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10552Xsed="$SED -e 1s/^X//"
10553
10554# The HP-UX ksh and POSIX shell print the target directory to stdout
10555# if CDPATH is set.
10556(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10557
10558# The names of the tagged configurations supported by this script.
10559available_tags=
10560
10561# ### BEGIN LIBTOOL CONFIG
10562
10563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10564
10565# Shell to use when invoking shell scripts.
10566SHELL=$lt_SHELL
10567
10568# Whether or not to build shared libraries.
10569build_libtool_libs=$enable_shared
10570
10571# Whether or not to build static libraries.
10572build_old_libs=$enable_static
10573
10574# Whether or not to add -lc for building shared libraries.
10575build_libtool_need_lc=$archive_cmds_need_lc
10576
10577# Whether or not to disallow shared libs when runtime libs are static
10578allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10579
10580# Whether or not to optimize for fast installation.
10581fast_install=$enable_fast_install
10582
10583# The host system.
10584host_alias=$host_alias
10585host=$host
10586host_os=$host_os
10587
10588# The build system.
10589build_alias=$build_alias
10590build=$build
10591build_os=$build_os
10592
10593# An echo program that does not interpret backslashes.
10594echo=$lt_echo
10595
10596# The archiver.
10597AR=$lt_AR
10598AR_FLAGS=$lt_AR_FLAGS
10599
10600# A C compiler.
10601LTCC=$lt_LTCC
10602
10603# LTCC compiler flags.
10604LTCFLAGS=$lt_LTCFLAGS
10605
10606# A language-specific compiler.
10607CC=$lt_compiler
10608
10609# Is the compiler the GNU C compiler?
10610with_gcc=$GCC
10611
10612# An ERE matcher.
10613EGREP=$lt_EGREP
10614
10615# The linker used to build libraries.
10616LD=$lt_LD
10617
10618# Whether we need hard or soft links.
10619LN_S=$lt_LN_S
10620
10621# A BSD-compatible nm program.
10622NM=$lt_NM
10623
10624# A symbol stripping program
10625STRIP=$lt_STRIP
10626
10627# Used to examine libraries when file_magic_cmd begins "file"
10628MAGIC_CMD=$MAGIC_CMD
10629
10630# Used on cygwin: DLL creation program.
10631DLLTOOL="$DLLTOOL"
10632
10633# Used on cygwin: object dumper.
10634OBJDUMP="$OBJDUMP"
10635
10636# Used on cygwin: assembler.
10637AS="$AS"
10638
10639# The name of the directory that contains temporary libtool files.
10640objdir=$objdir
10641
10642# How to create reloadable object files.
10643reload_flag=$lt_reload_flag
10644reload_cmds=$lt_reload_cmds
10645
10646# How to pass a linker flag through the compiler.
10647wl=$lt_lt_prog_compiler_wl
10648
10649# Object file suffix (normally "o").
10650objext="$ac_objext"
10651
10652# Old archive suffix (normally "a").
10653libext="$libext"
10654
10655# Shared library suffix (normally ".so").
10656shrext_cmds='$shrext_cmds'
10657
10658# Executable file suffix (normally "").
10659exeext="$exeext"
10660
10661# Additional compiler flags for building library objects.
10662pic_flag=$lt_lt_prog_compiler_pic
10663pic_mode=$pic_mode
10664
10665# What is the maximum length of a command?
10666max_cmd_len=$lt_cv_sys_max_cmd_len
10667
10668# Does compiler simultaneously support -c and -o options?
10669compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10670
10671# Must we lock files when doing compilation?
10672need_locks=$lt_need_locks
10673
10674# Do we need the lib prefix for modules?
10675need_lib_prefix=$need_lib_prefix
10676
10677# Do we need a version for libraries?
10678need_version=$need_version
10679
10680# Whether dlopen is supported.
10681dlopen_support=$enable_dlopen
10682
10683# Whether dlopen of programs is supported.
10684dlopen_self=$enable_dlopen_self
10685
10686# Whether dlopen of statically linked programs is supported.
10687dlopen_self_static=$enable_dlopen_self_static
10688
10689# Compiler flag to prevent dynamic linking.
10690link_static_flag=$lt_lt_prog_compiler_static
10691
10692# Compiler flag to turn off builtin functions.
10693no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10694
10695# Compiler flag to allow reflexive dlopens.
10696export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10697
10698# Compiler flag to generate shared objects directly from archives.
10699whole_archive_flag_spec=$lt_whole_archive_flag_spec
10700
10701# Compiler flag to generate thread-safe objects.
10702thread_safe_flag_spec=$lt_thread_safe_flag_spec
10703
10704# Library versioning type.
10705version_type=$version_type
10706
10707# Format of library name prefix.
10708libname_spec=$lt_libname_spec
10709
10710# List of archive names.  First name is the real one, the rest are links.
10711# The last name is the one that the linker finds with -lNAME.
10712library_names_spec=$lt_library_names_spec
10713
10714# The coded name of the library, if different from the real name.
10715soname_spec=$lt_soname_spec
10716
10717# Commands used to build and install an old-style archive.
10718RANLIB=$lt_RANLIB
10719old_archive_cmds=$lt_old_archive_cmds
10720old_postinstall_cmds=$lt_old_postinstall_cmds
10721old_postuninstall_cmds=$lt_old_postuninstall_cmds
10722
10723# Create an old-style archive from a shared archive.
10724old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10725
10726# Create a temporary old-style archive to link instead of a shared archive.
10727old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10728
10729# Commands used to build and install a shared archive.
10730archive_cmds=$lt_archive_cmds
10731archive_expsym_cmds=$lt_archive_expsym_cmds
10732postinstall_cmds=$lt_postinstall_cmds
10733postuninstall_cmds=$lt_postuninstall_cmds
10734
10735# Commands used to build a loadable module (assumed same as above if empty)
10736module_cmds=$lt_module_cmds
10737module_expsym_cmds=$lt_module_expsym_cmds
10738
10739# Commands to strip libraries.
10740old_striplib=$lt_old_striplib
10741striplib=$lt_striplib
10742
10743# Dependencies to place before the objects being linked to create a
10744# shared library.
10745predep_objects=$lt_predep_objects
10746
10747# Dependencies to place after the objects being linked to create a
10748# shared library.
10749postdep_objects=$lt_postdep_objects
10750
10751# Dependencies to place before the objects being linked to create a
10752# shared library.
10753predeps=$lt_predeps
10754
10755# Dependencies to place after the objects being linked to create a
10756# shared library.
10757postdeps=$lt_postdeps
10758
10759# The library search path used internally by the compiler when linking
10760# a shared library.
10761compiler_lib_search_path=$lt_compiler_lib_search_path
10762
10763# Method to check whether dependent libraries are shared objects.
10764deplibs_check_method=$lt_deplibs_check_method
10765
10766# Command to use when deplibs_check_method == file_magic.
10767file_magic_cmd=$lt_file_magic_cmd
10768
10769# Flag that allows shared libraries with undefined symbols to be built.
10770allow_undefined_flag=$lt_allow_undefined_flag
10771
10772# Flag that forces no undefined symbols.
10773no_undefined_flag=$lt_no_undefined_flag
10774
10775# Commands used to finish a libtool library installation in a directory.
10776finish_cmds=$lt_finish_cmds
10777
10778# Same as above, but a single script fragment to be evaled but not shown.
10779finish_eval=$lt_finish_eval
10780
10781# Take the output of nm and produce a listing of raw symbols and C names.
10782global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pi